Page 1 of 1

PostPosted: Fri Aug 17, 2001 6:49 pm
by Claw
Looks like only bitmaps only use 16bit color and everything else uses 8bit.

Function SetFore,SetBack,SetTextColorm,UIColor & PickColor. They all seem to only work with 255 colors(8bits). Bitmaps work with 16 bit color.

I don't realy have a problem with this because only bitmaps really need 16bit color.

I just want to a clarification on this.

PostPosted: Fri Aug 17, 2001 7:40 pm
by jstadolnik
Actually, you do have access to all 65536 colors for drawing when in 16 bit color mode. However, the palatte size is fixed to 256 entries. You can use SetPalette to change the palette colors.


Edited by - jstadolnik on 08/17/2001 17:47:06

PostPosted: Fri Aug 17, 2001 11:08 pm
by Claw
ok thanks, now I understand that.

Is there a 16bit graphical palette? When I call PickColor() in 16bit mode it brings up the 8bit palette.

I have seen a 16bit graphical palette in a program called McColors.prc.

Is the palette part of Palm API or is that something that you make for your needs?

PostPosted: Sat Aug 18, 2001 1:11 am
by jstadolnik
A 16 bit palette would require 262144 bytes (= 4 * 65536) of dynamic heap space! No device/version of the palmOS supports a heap that big.

McColors fakes out a larger palette by displaying a 16 bit bitmap instead (also, the bitmap doesn't show all 65536 colors because there aren't that many screen pixels available).

A default palette is provided by the OS, but that can be changed in size (though not with any toolbox function).


Edited by - jstadolnik on 08/17/2001 20:59:43