Click here to Skip to main content
15,887,915 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to place a transparent 'gif' image over a video.

What i did is: one form for playing the video (I am using directx for playing video)and other one a transparent form (Form backcolor and transparent key same color)for placing the image.

But on playing the video, image containing form flickers.
Is there any solution to avoid this flicker?

Please help...i am in trouble.
Posted
Updated 1-Jul-10 23:23pm
v2
Comments
Sandeep Mewara 2-Jul-10 5:24am    
Rectified lots of spelling mistakes and made it readable.

Where is your code ? I suspect you're not going to be able to do this cleanly, what are you trying to do exactly ? I bet WPF will do it without flicker, so I assume you're using Winforms ?
 
Share this answer
 
Turn on double-buffering for all of the forms in your app.
 
Share this answer
 
Yes ,its also true .Then too it flickers .I hope u got wht i meant.

1.form with a control panel used to play video (Using Direct x)
since i cannot adda transaparent image over this form .I added new form(with back color and transaparent key of same color to make the form transparent) and the added a picture box control over the form .


On running this form2(transaparent form) comes up on the form (video form).
On changing the video ,the Form2 starts to flicker.

Image path value is passed from form1 to form2.

Also thanku for helping me
 
Share this answer
 
Comments
Christian Graus 2-Jul-10 7:10am    
Don't push 'answer' to add more detail, edit your post, or add a comment, like this one. I expect the only solution is to use WPF. I think directX and winforms are fighting it out.
Toli Cuturicu 2-Jul-10 15:01pm    
Reason for my vote of 1
fake 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