At 6:30 PM +0100 17-03-00, Scott L. Johnson wrote:
>Maybe in something like Chrome (the color scheme editor) or in some fancy
>online help system, where you'd want a picture of some screen objects drawn
>in the current scheme.
Yeah, OK, I can see that.
For something like that, yeah, I guess doing your own palette manipulation
would be relatively fast.
Remember that it'll only ever work for 8-bpp though. There's no guarantee
that WinSetPalette will actually do anything after all!
So it might be better to just write the translation routine. If you know
you've got 8-bpp source, it should be fairly quick. Read a byte, use it to
index into a translation array, write the value in the array back to the
bitmap, repeat.
--Bob
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palm.com/devzone/mailinglists.html