Could someone tell me which image formats support alpha channels? (out of GIF, JPEG, and PNG)
Thanks.
mike
http://www.coolgroups.com/
alpha channels
Started by coolgroupsdotcom, Sep 07 2005 07:09 PM
7 replies to this topic
#1
Posted 07 September 2005 - 07:09 PM
#2
Posted 07 September 2005 - 08:49 PM
of those three, only PNG supports alpha channels.
reedbeta.com - developer blog, OpenGL demos, and other projects
#3
Posted 07 September 2005 - 10:35 PM
True. But GIF support simple on/off transparency, wich migt be enough in some cases.
#4
Posted 08 September 2005 - 04:42 AM
And, although it's not in the short list, there's also TGA. That supports alpha and is very easy to handle in code.
#5
Posted 08 September 2005 - 07:58 AM
BMP also handle alpha.
My favorite, though for quick tests is PSD. It is pretty bloated, so I would not use it in a final release, but it Is really convienient to just load the layer you want directly from your photoshop document.
I have some loading code here, buried in some useless alphablending stuff:
http://www.ds.hj.se/~geon/image/
My favorite, though for quick tests is PSD. It is pretty bloated, so I would not use it in a final release, but it Is really convienient to just load the layer you want directly from your photoshop document.
I have some loading code here, buried in some useless alphablending stuff:
http://www.ds.hj.se/~geon/image/
#6
Posted 16 September 2005 - 06:33 AM
Ordinary the bitmap file cannot handle alpha blending
Maybe it is in 24 bit, but we must make the mask bitmap for blending. So just have two bitmap, one is original bitmap and other is mask bitmap...
It depends on the code in program.
Maybe it is in 24 bit, but we must make the mask bitmap for blending. So just have two bitmap, one is original bitmap and other is mask bitmap...
It depends on the code in program.
#7
Posted 16 September 2005 - 09:03 AM
When we're allready suggesting other formats, the .dss format also handles alpha channels and is probably the easiest to write an importer for as long as you include the ddraw.h or copy/paste whatever you need. The best bit is that it supports handy stuff like mipmaps, cubemaps, 3d-textures etc.etc.
-si
-si
#8
Posted 19 September 2005 - 03:04 AM
I second the .tga format. Very easy to implement...
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users












