Page 1 of 1

Need help: losing transparent color on 2 color images

PostPosted: Sep 18, 2004 @ 11:47pm
by bguernsey

PostPosted: Sep 19, 2004 @ 8:22am
by Pejo Software - Per
Altough I have not used GapiDraw for a while I think I know what your problem is. The RGB macro works with 24-bit color and for example on a Pocket PC the color depth is only 16 bits. This means that RGB(1,1,1) will be the same color as RGB(0,0,0).
However I see that you are testing your work on a PC and I am not sure what color depth GapiDraw uses there. GapiDraw can very well be using 16 bit color representation there also to allow optimizations.

PostPosted: Sep 19, 2004 @ 4:20pm
by bguernsey
Thanks for the reponse.

The netpbm tools made it easy enough to test a theory. I remapped all RGB(1,1,1) to rgb(255,0,255) and changed my color key and the black masks started working.

The oddity I see is that this only seemed to affect my 2 color images. I used 1,1,1 with other images that had more colors and the masking worked fine, and many of the images contained color 0,0,0 as well, which stayed intact. But when I use those 2 in a 2 color image, the file that loaded had its 1,1,1 pixels converted to 0,0,0.

There is something not quite right in the loading of 2 color images.

Byron