[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Saving a screen pixmap
- To: info-mcl@cambridge.apple.com
- Subject: Saving a screen pixmap
- From: "Mark A. Tapia" <markt@dgp.toronto.edu>
- Date: Wed, 29 Apr 1992 11:21:40 -0400
Does anyone have code that saves a snapshot of a portion
of the color screen (e.g. the upper left rectangle from
#@(0 0) to #@(100 100)) and that draws the snapshot in
a color window, with the correct color table?
Whenever I try to do this, the snapshot is monochrome.
(I use the oodles-of-utils functions to get the
wmgrPort and use copyBits to copy the pixMap after
focusing the view on the *wmgrView*. I've also
tried copying the bits from the grafPort specified
by the getMaxDevice trap call). Similar efforts with
C code have been equally unsucessful. Am I using the wrong
color table?
Thanks,
mark