Color components and endianess

Adam Goode agoode at andrew.cmu.edu
Fri Jun 11 14:38:07 EDT 2010


Of course my psuedocode was wrong.

Should be:
  a = (pixel >> 24) & 0xFF
  r = (pixel >> 16) & 0xFF
  g = (pixel >> 8) & 0xFF
  b = pixel & 0xFF



Adam

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 261 bytes
Desc: OpenPGP digital signature
Url : http://lists.andrew.cmu.edu/pipermail/openslide-users/attachments/20100611/0bc43c56/attachment.bin 


More information about the openslide-users mailing list