Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Property setting for PictureBox control
Message
De
29/07/2007 19:41:53
 
 
À
28/07/2007 11:57:35
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Versions des environnements
Environment:
C# 2.0
OS:
Windows XP SP2
Divers
Thread ID:
01244321
Message ID:
01244480
Vues:
14
>>>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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform