Transparent Image Loading

What format is everyone using to load their alpha-channel-containing images?
I’ve been trying to get the SDL_Image library to work, but it doesn’t seem
to support TIF or TGA yet, and these are the only two widely used formats I
know of that use alpha.

Thanks!

  • Brent

``Beware of bugs in the above code; I have only proved it correct, not tried
it.’’
-Don Knuth

What format is everyone using to load their alpha-channel-containing images?

PNG, but of course! :slight_smile:

-bill!

What format is everyone using to load their alpha-channel-containing images?
I’ve been trying to get the SDL_Image library to work, but it doesn’t seem
to support TIF or TGA yet, and these are the only two widely used formats I
know of that use alpha.

TGA is one of the best supported formats in SDL_Image. It also supports
PNG with alpha-channels well, and TIFF (partly). PNG and TIFF require
libpng and libtiff respectively, but TGA doesn’t need any extra library.

What format is everyone using to load their alpha-channel-containing images?
I’ve been trying to get the SDL_Image library to work, but it doesn’t seem
to support TIF or TGA yet, and these are the only two widely used formats I
know of that use alpha.

TGA is one of the best supported formats in SDL_Image. It also supports
PNG with alpha-channels well, and TIFF (partly). PNG and TIFF require
libpng and libtiff respectively, but TGA doesn’t need any extra library.
g, I’m using native Photoshop files, works well, too… :slight_smile:

Bye,
Andreas PodgurskiOn Thu, 9 Nov 2000 11:04:53 +0100 (MET), Mattias Engdeg?rd wrote:

g, I’m using native Photoshop files, works well, too… :slight_smile:

PhotoShop’s native format isn’t supported by SDL_image, sorry. The
complexity of that format makes it unlikely that it will ever be
supported. Same thing with the Gimp .xcf format.

g, I’m using native Photoshop files, works well, too… :slight_smile:

PhotoShop’s native format isn’t supported by SDL_image, sorry. The
complexity of that format makes it unlikely that it will ever be
supported. Same thing with the Gimp .xcf format.
Never said, that I am using SDL_image, wrote it myself. But you are
wrong, it isn’t very complex nor difficult, you only need to read the
header and the layer section, which is only RLE compressed. Was
about a week to write that thing…

Regards,
Andreas Podgurski