Legacy Documentclose button

Important: The information in this document is obsolete and should not be used for new development.

Previous Book Contents Book Index Next

Inside Macintosh: Imaging With QuickDraw /
Chapter 4 - Color QuickDraw / Color QuickDraw Reference
Color QuickDraw Routines / Creating, Setting, and Disposing of Pixel Maps


CopyPixMap

Although you typically don't need to call this routine in your application code, you can use the CopyPixMap procedure to duplicate a PixMap record.

PROCEDURE CopyPixMap (srcPM,dstPM: PixMapHandle);
srcPM
A handle to the PixMap record to be copied.
dstPM
A handle to the duplicated PixMap record.
DESCRIPTION
The CopyPixMap procedure copies the contents of the source PixMap record to the destination PixMap record. The contents of the color table are copied, so the destination PixMap has its own copy of the color table. Because the baseAddr field of the PixMap record is a pointer, the pointer, but not the image itself, is copied.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
7 JUL 1996