SDL_image && PNG alpha transparency

Is SDL_image capable of loading the alpha channel of a PNG? Looking at
the docs and the source it appears that it is, but when I actually
load a PNG with alpha the alpha gets lost. Am I doing something wrong?

Thanks

Daniel
-------------- next part --------------
A non-text attachment was scrubbed…
Name: not available
Type: application/pgp-signature
Size: 232 bytes
Desc: not available
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20000125/fa2173bd/attachment.pgp

Blitting PNG with alpha channel works for me.
Check that you are not using SDL_DisplayFormat to copy the surface, as this
destroys the alpha clannel.> -----Original Message-----

From: Daniel Arbuckle [SMTP:djarb at wildebeest.dyn.dhs.org]
Sent: 25. januar 2000 16:10
To: sdl at lokigames.com
Subject: [SDL] SDL_image && PNG alpha transparency

Is SDL_image capable of loading the alpha channel of a PNG? Looking at
the docs and the source it appears that it is, but when I actually
load a PNG with alpha the alpha gets lost. Am I doing something wrong?

Thanks

Daniel

Ah, that’s the problem. Thanks.

DanielOn Wed, Jan 26, 2000 at 08:40:20AM +0100, Robert Hopland wrote:

Blitting PNG with alpha channel works for me.
Check that you are not using SDL_DisplayFormat to copy the surface, as this
destroys the alpha clannel.

-----Original Message-----
From: Daniel Arbuckle [SMTP:@Daniel_Arbuckle]
Sent: 25. januar 2000 16:10
To: sdl at lokigames.com
Subject: [SDL] SDL_image && PNG alpha transparency

Is SDL_image capable of loading the alpha channel of a PNG? Looking at
the docs and the source it appears that it is, but when I actually
load a PNG with alpha the alpha gets lost. Am I doing something wrong?

Thanks

Daniel
-------------- next part --------------
A non-text attachment was scrubbed…
Name: not available
Type: application/pgp-signature
Size: 232 bytes
Desc: not available
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20000126/f2c30d0d/attachment.pgp