Discussion:
How to saving a transparent image?
(too old to reply)
unknown
2010-01-11 15:13:30 UTC
Permalink
I have a 32BPP png image with red background. RGB(255, 0,0)
I want to make the background transparent and save it as png with the transparent background.


I tried using CImage class but I was not able to get the transparent background.

I also tried using Gdiplus::Bitmap. I set the pixel values with appropriate Alpha values. But when I save I do not get the transparent background.

Can some one help me to solve this problem?

PB


Submitted via EggHeadCafe - Software Developer Portal of Choice
Save XAML Files In Any Image Format
http://www.eggheadcafe.com/tutorials/aspnet/6d8e27d4-818b-481a-8a75-5717898a0e55/save-xaml-files-in-any-im.aspx
Alexis
2010-01-17 11:13:26 UTC
Permalink
Post by unknown
I have a 32BPP png image with red background. RGB(255, 0,0)
I want to make the background transparent and save it as png with the transparent background.
I tried using CImage class but I was not able to get the transparent background.
I also tried using Gdiplus::Bitmap. I set the pixel values with appropriate Alpha values. But when I save I do not get the transparent background.
Can some one help me to solve this problem?
You can ask on advanced Win32 ng (http://tinyurl.com/yjy3ajr)
where it has often been explained.. (locking, etc)

Loading...