32 Bit PNG and Transparency

G

Guest

I'm trying to use 32 bit png as images for toolbar control in my windows forms application

They seems to be drawn correctly when I load them in my ImageList Control, but when I select one of them as toolbar button image, transparency is not rendered correctly: all my Icons have some sort of blue "halo" around them

Does someone have some advice for me?
 
H

Herfried K. Wagner [MVP]

* "=?Utf-8?B?Q3JhZA==?= said:
I'm trying to use 32 bit png as images for toolbar control in my windows forms application.

They seems to be drawn correctly when I load them in my ImageList
Control, but when I select one of them as toolbar button image,
transparency is not rendered correctly: all my Icons have some sort of
blue "halo" around them.

If you are referring to an alpha channel -- this doesn't currently
work with PNG files in .NET.
 
S

Stumpy842

Well lets say it sort of works. If I load a png (32bppArgb) in a
picturebox it shows correctly, but trying to use them in an imagelist
does not. The workarounds I have seen don't seem to be worth all the
bother, they are very 'worky' indeed!
 
M

Mick Doherty

Yes there is a problem with Alpha in ImageLists. It is still a problem in
VS2005 and I have reported it as a bug.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top