I think there is no loss in bitmap data since total bitmap size is same to
each other. But I cannot understand translation machanism clearly.
Who wanna uncover fog? :)
This is just a palette lookup table (and it's the standard 4-bit palette
lookup table at that). Each byte of the 4-bit bitmap contains two pixels:
one in each nybble. Each nybble is translated to a 32-bit pixel by looking
up the corresponding index into the translation table. If the first pixel
is "1B", the output will be 00 80 00 00, 00 F0 F0 00.
However, that particular operation is only using a portion of the source
bitmap: you're only getting 16x16 pixels. In that sense, you ARE losing
data.
--
- Tim Roberts, ti...@probo.com
Providenza & Boekelheide, Inc.