importing pictures
-
hi all! this is the nature of the problem i am facing: i imported a flash media on to a form. i need to put a picture over the flash media. the picture i created had a transparent background. but when i import it into form, it assumes the background of the form. i would want the image to keep the background transparent. how do i do that? am i following the right approach? would it be better if i created the media with the graphics libraries in C#? please help...fast...
-
hi all! this is the nature of the problem i am facing: i imported a flash media on to a form. i need to put a picture over the flash media. the picture i created had a transparent background. but when i import it into form, it assumes the background of the form. i would want the image to keep the background transparent. how do i do that? am i following the right approach? would it be better if i created the media with the graphics libraries in C#? please help...fast...
Puddle of Blood wrote:
but when i import it into form, it assumes the background of the form.
That is correct. Transparency in Windows at the present time is a fudge. Windows does not currently implement proper transparency as Windows Vista will do. The trick that the operating system uses is to ask the control's parent how it would render itself if it didn't have the control on top of it (This works most of the time, but you've found one of the instances where it doesn't). Windows then merges the parent's graphics with the rendering of the control and draws it solidly. In most circumstances the user wouldn't even know the difference. Since your picture control's parent will be the form, it is the form's background that gets rendered in the transparent area of the control. ColinMackay.net Scottish Developers are looking for speakers for user group sessions over the next few months. Do you want to know more?