471,347 Members | 1,700 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,347 software developers and data experts.

transparent

I manage to put an image into popupmenu, but I can't get a transparency.
BackgroundColor is white.

Hrcko
Feb 10 '06 #1
2 1041
Did you try Bitmap.MakeTransparent?

--
Bob Powell [MVP]
Visual C#, System.Drawing

Ramuseco Limited .NET consulting
http://www.ramuseco.com

Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm

All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.

"Hrvoje Voda" <hr*********@luatech.com> wrote in message
news:ds**********@ss405.t-com.hr...
I manage to put an image into popupmenu, but I can't get a transparency.
BackgroundColor is white.

Hrcko

Feb 11 '06 #2
Bob Powell [MVP] a écrit :
Did you try Bitmap.MakeTransparent?


Hello,

MakeTransparent works with a color to compute transparency.

Is it possible Bitmap use alpha layer of a 32 bits bitmap ?

I try using a PNG image for a control BackgroundImage but it seems to does not
work. I could not see the Control's BackColor throught the Bitmap's alphalayer.

Thanks for your lights,
cyrille
Feb 11 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Efkas | last post: by
3 posts views Thread by Steve Koon | last post: by
4 posts views Thread by jcrouse | last post: by
reply views Thread by Ronak mishra | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.