Click here to Skip to main content
15,883,741 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more: , +
hi every one i made an app that creates a steam using directshow & c++ using win32 components .
i'm able to stop this stream and take picture at any moment it's fine .
the thing is that i need in some way to place a rectangle inside the window render and be able to move this rectangle & resize it
i'm avoiding to develop a filter because it won't give me this functionality
any idea
could directDraw help me in this task !!
Posted
Comments
Joan M 28-Aug-12 15:18pm    
It's a pity Jack, not to be able to vote comments. I would vote this one a double 5.

You keep rephrasing the question and getting valid answers.

This question is likely to get you similar answers.

What you're asking for is an advanced topic. There are no simple or easy answers.

If you don't want to use filters, you'll have to draw the rectangle on the surface after your other functions draw on the surface. How you do that is going to be dependent on the technologies you use and the way you structure your drawing code.

You're going to have to learn more about graphics programming to proceed further.

It's not a topic we can spoon feed you on.

Look for examples on the web that do similar things. Study the code. Look up documentation on any calls you don't understand. Read tutorials on those topics.

As you learn more, please come back with more specific technical questions.
 
Share this answer
 
Comments
merousoft 29-Aug-12 4:16am    
oh thx for this info i just wanted some helping idea but ur answer were clear
Hello,

Drawing rectangle on a video can be done via few ways:
1. Implementing your own allocator presenter and do render video with your own drawing (Direct3D presenting EVR or VMR).
2. In application create callback via ISampleGrabber and draw image on incoming samples (mostly used GDI or GDI+)
3. Implementing own filter and perform drawing in there. Can be used any mechanism here but mostly will be fine with GDI+.

Regards,
Maxim.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900