SetPalette() question

Postby Mikael on Sun Oct 12, 2003 11:06 am

Am I right in thinking that if I want to display a 4 bit, 16 colour.bmp that I need anything up to 16 SetPalette() functions in a row, to account for each of the possible colours?
Mikael
 
Posts: 156
Joined: Sun Apr 13, 2003 9:19 am
Location: Denmark

Postby jstadolnik on Sun Oct 12, 2003 1:36 pm

Use SetDepth(5) to do this. You can also use SetPalette(), but I've already done all the dirty work for you with SetDepth(5).

Joe

The PToolboxLib guy.
http://www.geocities.com/retro_01775/PToolboxLib.htm
jstadolnik
 
Posts: 1741
Joined: Wed Dec 06, 2000 3:34 am
Location: USA


Return to PocketC for Palm OS KB

Who is online

Users browsing this forum: No registered users and 0 guests

cron