On Fri, 14 Jun 2002, r. zane rutledge wrote: > I know I could store a separate palette resource and make all this work, > but it seems ridiculous to separate a colortable from it's related > bitmap, all to avoid processing overhead that is easily avoided anyway. > > Am I missing something?...Does this behavior from WinDrawBitmap not seem > wrong?...
zane, the problem is, that if your bitmap *has* a color table - when you draw it, the os will try to convert it so it is visible on the screen. if your running in 256 color mode, it'll convert it to the system palette. you only get a real benefit from this if you are running in 16bpp i would assume.. Tbmp03e8.bin = the bitmap PALT03e8.bin = the palette you can keep some order with these resources, make the id's for both the same, and, you can keep more control of them.. let me add that drawing a bitmap with a color table is *very* slow.. the error you report may be due to the fact that the os doesn't support the color table anymore.. i know 3.5 did, not sure about 4.0+ - have not tested it cause no-one was really supposed to use it *g* // az [EMAIL PROTECTED] http://www.ardiri.com/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
