This site is no longer active and is available for archival purposes only. Registration and login is disabled.

Need help: losing transparent color on 2 color images


Need help: losing transparent color on 2 color images

Postby bguernsey » Sep 18, 2004 @ 11:47pm

bguernsey
pm Member
 
Posts: 5
Joined: Sep 18, 2004 @ 11:20pm


Postby Pejo Software - Per » Sep 19, 2004 @ 8:22am

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.
User avatar
Pejo Software - Per
pm Insider
 
Posts: 343
Joined: Apr 25, 2002 @ 1:00pm
Location: Mölndal, Sweden


Postby bguernsey » Sep 19, 2004 @ 4:20pm

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
bguernsey
pm Member
 
Posts: 5
Joined: Sep 18, 2004 @ 11:20pm


Return to GapiDraw


Sort


Forum Description

The Cross-platform Graphics SDK for Palms, Pocket PCs, Symbian Devices, and Stationary PCs.

Moderators:

sponge, Johan

Forum permissions

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

cron