[comp.sys.mac.programmer] Palette Manager and offscreen pixmaps

mce@tc.fluke.COM (Brian McElhinney) (09/16/88)

Has anyone else been able to draw into an offscreen pixmap *and* use Palette
Manager colors in that pixmap?  The two operations work fine independently,
but when I combine them the resulting image uses the wrong colors.  The
Palette Manager is setting the CLUT correctly, but the offscreen drawing (or
CopyBits() to the screen?) uses the wrong pixel values.

I've tried placing the palette color table in the offscreen pixmap (this seems
logical to me!) in place of the device color table, but that didn't help.
SetPalette() also seems logical, but it requires a WindowPtr not a CGrafPtr.

What am I doing wrong?  Surely I'm leaving something out...?  I'm using LSC
3.0 on (surprise) a Mac II.


Brian McElhinney
mce@tc.fluke.com