-
May 8th, 2012, 02:41 PM
#1
Backgroundless image over .avi
VS 2010, .NET Framework 4.0
I am using directx sdk to display an .avi and over this I need to display an backgroundless image (a number between 0 and 9). The effect would be the movie playing behind the numbers.
I tried using pictureBox, but VS just adds a white background no matter what I do (the image has a transparent background, I tried setting the pictureBox background color to transparent). Maybe pictureBox is just not the way... is there any way to do this?
-
May 8th, 2012, 02:57 PM
#2
Re: Backgroundless image over .avi
Well, I'm not sure why you aren't using WPF for a new Windows UI project, but if you are intent on WinForms then you need to educate yourself a bit.
WinForms has no concept of transparency. You don't get it for free anyway, you need to do some work and simulate it by drawing underlying controls inside their (transparent) parent. Here, this should help:
http://www.codeproject.com/Articles/...-C-and-NET-3-5
As an aside, WPF give syou this for free.
If you liked my post go ahead and give me an upvote so that my epee.... ahem, reputation will grow.
Yes; I have a blog too - http://the-angry-gorilla.com/
-
June 8th, 2013, 03:20 AM
#3
Re: Backgroundless image over .avi
Problem solved: Sorry for the late reply but the problem was solved last year by using WPF. Thank you BigEd781.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|