ADC Home > Reference Library > Technical Q&As > Carbon > Graphics & Imaging >
Not Recommended Document
Important: The information in this document is Not Recommended and should not be used for new development.
Current information on this Reference Library topic can be found here:
Technical Q&A QD61
Q: What is
GetPortBitMapForCopyBits and is it only for
GetPortBitMapForCopyBits is designed to do the right thing when extracting
BitMap/PixMap out of a
GrafPort/CGrafPort/GWorld. If you are given a
port and need to pull out the
BitMap/PixMap to pass to a QuickDraw function
that takes a pointer to a
BitMap, then you should use
While the name
GetPortBitMapForCopyBits suggests that the function can
only be used with
CopyBits, there are a number of other APIs in QuickDraw
BitMap pointers for parameters but can take
PixMap pointers as well.
CopyDeepMask are two examples.
[Nov 08 2000]