Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Property setting for PictureBox control
Message
From
29/07/2007 19:41:53
 
 
To
28/07/2007 11:57:35
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Environment versions
Environment:
C# 2.0
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01244321
Message ID:
01244480
Views:
13
>>>Hi
>>>
>>>In VFP we have a setting for for a image control:
>>>
>>>BackStyle = 1 (transparent)
>>>
>>>This makes the white background of any image transparent only showing the other coloured parts.
>>>
>>>What is the property/setting in NET to set, to get the same effect so that the background is transparent?
>>>
>>>Thanks
>>
>>I think the solution is to use a format with an alpha channel, like png.
>
>
>Ok I can do that. So you are saying there is no property in NET like there is in VFP, that I can set, that will make the backgroung transparent - No BMP, JPG etc. just gif and Png?

Just found another way Bitmap.MakeTransparent

http://msdn2.microsoft.com/en-us/library/system.drawing.bitmap.maketransparent.aspx

Haven't tried it but it might work for you.

I keep hoping that someone with more .NET experience than me will jump in and confirm this but that's what I know of for now.
Previous
Reply
Map
View

Click here to load this message in the networking platform