bit structure of ALPHA PImage type
in
Programming Questions
•
2 years ago
hi,
there's lots written about color extraction, bit shifting, etc. but i can't find an answer to how many bits are used with the ALPHA PImage image type. 8, or 16?
I calculate the brightness of an RGB bitwise through
- bright=(((col>>16)&0xFF) + ((col>>8)&0xFF) + ((col)&0xFF))/3;
but then i want to stuff it into an ALPHA PImage. is that just an 8 bit GGGGGGGG, or ist that 16 bit AAAAAAAAGGGGGGGG ?
sorry if that has been cleared somewhere, wasn't able to find someting.
thx fk.
1