[comp.graphics] Desperately seeking Alpha channel help

zap@lysator.liu.se (Zap Andersson) (01/06/91)

HiThere, Netters!

I've written a program supporting, among others, Targa 32 bit format. But
my doc's on the targa format only describes those 32 bits as 'One byte blue, one byte green, one byte red and one byte attribute'. Yeah, rite....
 
Now I assume that 'attribute' means alpha channel. Right or wrong? Or is only
a few of those 8 bits alpha? Or...? Please let me know! I want my files to be
'correct' and to work in other softwares than mine!

Also: How should the 'remaining' R,G and B be treated, f'rinstance at an anti-
aliased edge? Should they be 'faded towards black' while alpha increases, to
let through whatever was behind? And what IS opaque? Is it alpha 0 or 255?
 
Todays assumption goes: 255 is totally transparent, 0 is totally opaque. The
colors (R,G and B) should be decreased when alpha increases, and yeah, the
entire byte is alpha. But, what I want to know, IS THIS CORRECT!!!
 
Pleaze email me or post here! I'll be sooooooooo happy to know!

/Z

--
* * * * * * * * * * * * * * * * *
* My signature is smaller than  *
* yours!  - zap@lysator.liu.se  *
* * * * * * * * * * * * * * * * *