directX

  • Thread starter Thread starter Andrew Bullock
  • Start date Start date
A

Andrew Bullock

Hi,


I'm completely new to DirectX in CS, so if my question is too advanced
for a simple answer, could someone point me at some good tutorials?
Thanks...


Im using http://www.codeproject.com/cs/media/directxcapture.asp to
capture video input from a webcam. Thats all working fine :)

What I want to do is draw lines/shapes over the image.

I'm actually doing some image processing/object tracking and I need to
draw a crosshair over the image to indicate where my software thinks its
located something.


Whats the best way to do this? Im guessing DirectDraw, but how do I go
about drawing lines over the image received from the webcam?

If you think the method in the given url is pants and have a better
idea, I'm open to all suggestions!


Thanks a lot for any help :)

Regards,

Andrew
 
Andrew Bullock said:
Hi,


I'm completely new to DirectX in CS, so if my question is too advanced
for a simple answer, could someone point me at some good tutorials?
Thanks...


Im using http://www.codeproject.com/cs/media/directxcapture.asp to capture
video input from a webcam. Thats all working fine :)

What I want to do is draw lines/shapes over the image.

I'm actually doing some image processing/object tracking and I need to
draw a crosshair over the image to indicate where my software thinks its
located something.


Whats the best way to do this? Im guessing DirectDraw, but how do I go
about drawing lines over the image received from the webcam?

If you think the method in the given url is pants and have a better idea,
I'm open to all suggestions!

Ask in microsoft.public.win32.programmer.directx.video. There are ways to
draw to the video frames as they come through. I think you could use the
sample grabber and modify the buffer of each frame as it comes through, or
there are other filters you can use that allow you to modify each frame.
Otherwise you could write a custom filter to do this.

Michael
 
Michael said:
Ask in microsoft.public.win32.programmer.directx.video. There are ways to
draw to the video frames as they come through. I think you could use the
sample grabber and modify the buffer of each frame as it comes through, or
there are other filters you can use that allow you to modify each frame.
Otherwise you could write a custom filter to do this.

Michael


Ace thanks :)


Andrew
 
Back
Top