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 theSetPortPixprocedure.
PROCEDURE SetPortPix (pm: PixMapHandle);
pm- A handle to the
PixMaprecord.DESCRIPTION
TheSetPortPixprocedure replaces theportPixMapfield of the currentCGrafPortrecord with the handle you specify in thepmparameter.SPECIAL CONSIDERATIONS
TheSetPortPixprocedure is analogous to the basic QuickDraw procedureSetPortBits, which sets the bitmap for the current basic graphics port. TheSetPortPixprocedure has no effect when used with a basic graphics port. Similarly,SetPortBitshas no effect when used with a color graphics port.Both
SetPortPixandSetPortBitsallow 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."