Png with alpha

hi!
i am new in programming with the sdl and i found an Image-libary, but when i try to load an png with alpha channel i get an error message.

so i want to know if the sdl is able to load pngs with alpha channel.

thanks for support!

hi!
i am new in programming with the sdl and i found an Image-libary, but when
i try to load an png with alpha channel i get an error message.

so i want to know if the sdl is able to load pngs with alpha channel.

Yep, should be able to. Make sure that if you’re initializing a surface that
you expand it to include the extra channel and that the format flags are
right… or you could just use SDL_Image (available from the main SDL page).

thanks for support!

Cheers,

Nicholas

Nicholas Vining “While you’re out there struggling
vining at pacificcoast.net with your computer, I’m naked,
icq: 20872003 clueless, and feeling good!”
- Ratbert

----- Original Message -----
From: gamsta@gmx.net (Jurgen Weinberger)
To: sdl at lokigames.com
Date: Wednesday, March 01, 2000 4:21 AM
Subject: [SDL] png with alpha