Important: The information in this document is obsolete and should not be used for new development.
SetPortPix
Although you should never need to do so, you can set the pixel map for the current color graphics port by using theSetPortPix
procedure.
PROCEDURE SetPortPix (pm: PixMapHandle);
pm
- A handle to the
PixMap
record.DESCRIPTION
TheSetPortPix
procedure replaces theportPixMap
field of the currentCGrafPort
record with the handle you specify in thepm
parameter.SPECIAL CONSIDERATIONS
TheSetPortPix
procedure is analogous to the basic QuickDraw procedureSetPortBits
, which sets the bitmap for the current basic graphics port. TheSetPortPix
procedure has no effect when used with a basic graphics port. Similarly,SetPortBits
has no effect when used with a color graphics port.Both
SetPortPix
andSetPortBits
allow you to perform drawing and calculations on a buffer other than the screen. However, instead of using these procedures, you should use the offscreen graphics capabilities described in the chapter "Offscreen Graphics Worlds."