Jump to content

What am I doing wrong here? (PNG transparency)


Recommended Posts

Windows 7 x64. Probably have all .NET versions by now (including .NET 4.0).

Not sure exactly which version started doing this, but now I tried both 3.5.4 and 3.5.5. Both versions destroy the transparency, filling in white where it should be transparent.

Please fix this as soon as possible. I'll look through my archives and see if I can get it to save PNG files properly using an older version.

Steps to reproduce:

1) Fill an image with black and delete a portion (e.g. making it transparent).

2) Save it as PNG 24-bit. The image still looks good.

3) Now close the image and reopen it. The transparent part is white.

Link to post
Share on other sites

24-bit does not support transparency. You can see this in the Save Configuration Dialog.

If you don't specifically need to specify bittedness when saving as PNG, you should always choose Auto-detect, which will determine the best format based on your image.

If you do need to specify bittedness, you should make the effort to understand what it means before claiming limitations of certain formats as a bug.

Link to post
Share on other sites

Maybe 24-bit doesn't preserve transparency?

"Maybe" ?

32-bit includes 8-bits each for red, green, blue, and alpha.

Guess which 8-bits are dropped with 24-bit mode. You get 1 guess.

I'm going to change the title of this thread to be less uninformed. Sheesh.

Link to post
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...