I am trying to draw color bitmaps, which are stored in a db, using their own
colortables.  If I draw them directly to the screen, the color translation
works fine.  The problem is that my application always draws to an offscreen
window and when the offscreen window is copied to the screen, the colors are
not correct.

It appears that the bitmaps are drawn using the system palette instead of
the colortable, but I can't tell if the colortable translation isn't being
used when drawing to the offscreen window or if it's the offscreen copying
that's losing the colors.

There are other objects, possibly other bitmaps, in the window so I don't
want to set the window palette to the bitmap's colortable.  I have tried
creating the offscreen window with both WinCreateOffscreenWindow and
WinCreateBitmapWindow.  I use WinDrawBitmap to draw the to the offscreen
window.

Does anyone have any suggestions?

tia -

Mary



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to