Alpha Channel in Bitmaps

Heyho!

I’m developing a little game with SDL. Works great.
But now i wanted to have surface with Source-Alpha.

The png i created did not act the way i wanted it to…
There was a transparency, but not an alpha blending.
Then i found out, that saving an image with a mask is not the same than an
alpha channel…
So i created an alpha channel out of the mask and wanted to save it.
But unfortunately Corel PhotoPaint 8 told me, alpha channels cannot be saved
with pngs…
I don’ belive that :wink:

Since SDL_Image does not support cpt, psd or tif files i have a problem…

Can annyone give me a tip?
( should i use gimp? )

Thanks for reading and thanks for answering :wink:

Daniel Stiefelmaier

But unfortunately Corel PhotoPaint 8 told me, alpha channels cannot be saved
with pngs…
Crap. Alpha is what PNG was made for.
I don’ believe that :wink:
Very good.
Since SDL_Image does not support cpt, psd or tif files i have a problem…
You need libtiff for TIFF images, IIRC.
Can anyone give me a tip?
( should i use gimp? )
Definitely.

JakobOn Wed, Dec 12, 2001 at 09:24:24PM +0100, Daniel Stiefelmaier wrote:

“Daniel Stiefelmaier” wrote:

Since SDL_Image does not support cpt, psd or tif files i have a problem…

SDL_image has some limited TIFF support, but it’s not as stable as most of
the other modules so it’s turned off by default. Configure with --enable-tif
and see if it works for you.

Otherwise, if PhotoPaint really is unable to save PNGs with alpha channel,
you could try a conversion program. Also, if PhotoPaint can save images as
TGA with alpha, try that — SDL_image has a good TGA reader :slight_smile: