Important: The information in this document is obsolete and should not be used for new development.
Creating, Setting, and Disposing of Pixel Maps
QuickDraw automatically creates pixel maps when you create a color window with theGetNewCWindow
orNewCWindow
function (described in the chapter "Window Manager" in Inside Macintosh: Macintosh Toolbox Essentials), when you create offscreen graphics worlds with theNewGWorld
function (described in the chapter "Offscreen Graphics Worlds" in this book), and when you use theOpenCPort
function. QuickDraw also disposes of a pixel map when it disposes of a color graphics port. Although your application typically won't need to create or dispose of pixel maps, you can use theNewPixMap
function and theCopyPixMap
procedure to create them, and you can use theDisposePixMap
procedure to dispose of them. Although you should never need to do so, you can also set the pixel map for the current color graphics port by using theSetPortPix
procedure.
Subtopics
- NewPixMap
- CopyPixMap
- SetPortPix
- DisposePixMap