| Forum Home | ||||
| Press F1 | ||||
| Thread ID: 93853 | 2008-10-03 05:58:00 | C# programming help | JasonF (11755) | Press F1 |
| Post ID | Timestamp | Content | User | ||
| 709574 | 2008-10-03 05:58:00 | I'm trying to make a program where I can play video and draw lines on the video and then have the video still playing with the line showing the whole time. I can use the media player to play the video and I can draw lines using a bitmap but I am unsure if I can combine the two and make the bitmap completly transparent apart from the line. Does anyone have any ideas what I could use to achieve this? | JasonF (11755) | ||
| 709575 | 2008-10-03 06:58:00 | I think you might need flash for this | gary67 (56) | ||
| 709576 | 2008-10-03 07:03:00 | Why not draw a bitmap that is only the size of the line? | pine-o-cleen (2955) | ||
| 709577 | 2008-10-03 07:26:00 | I'm trying to make a program where I can play video and draw lines on the video and then have the video still playing with the line showing the whole time. I can use the media player to play the video and I can draw lines using a bitmap but I am unsure if I can combine the two and make the bitmap completly transparent apart from the line. Does anyone have any ideas what I could use to achieve this? Try: Creating a "PictureBox" on the windows form. For this example, imagine it's called "pictureBox". Declare a field: Graphics paper; The in the constructor: paper = pictureBox.CreateGraphics(); Then you can use the DrawLine() method and similar on the "paper" object. I believe you can set it to be transparent, and have the pictureBox control overlaid on top of the media player. |
somebody (208) | ||
| 709578 | 2008-10-04 07:30:00 | I think you might need flash for this If you don't know what you are talking about it is better to keep quiet. |
mikebartnz (21) | ||
| 709579 | 2008-10-04 21:25:00 | If you don't know what you are talking about it is better to keep quiet . Equally, if you can't help answer the question in the thread, you should do likewise . . . . :annoyed: |
nofam (9009) | ||
| 709580 | 2008-10-04 21:43:00 | Equally, if you can't help answer the question in the thread, you should do likewise . . . . :annoyed: Thanks, couldn't have put it better . My apologies for not getting the answer right in my first post |
gary67 (56) | ||
| 709581 | 2008-10-04 21:54:00 | JasonF: I sent you a Private Message a few days ago with some more code which might point you in the right direction. Please post back here to let us know how you got on. | somebody (208) | ||
| 709582 | 2008-10-04 22:09:00 | Equally, if you can't help answer the question in the thread, you should do likewise . . . . :annoyed: Actually somebody had already given a usefull answer which I didn't feel needed elaborating and he probably knows C# better than I do . . I also think you need to read again what you wrote . :( |
mikebartnz (21) | ||
| 709583 | 2008-10-06 08:10:00 | I know c# reasonably well my question was really what would be the best way about going and creating the application. If I sat down and really thought about it for a while I'm sure I could come up with a good way of doing this, but I was interested in hearing other peoples ideas on how this could be done. I had actually forgotten about the picture box so thanks Somebody for your post. I haven't got around to starting this yet - hopefully this weekend if I get some free time. | JasonF (11755) | ||
| 1 | |||||