CopyBits
CopyBits Copy bitMap, with optional scaling, clipping, etc.
#include <Quickdraw.h> Color Quickdraw
void CopyBits( srcMap, destMap, srcRect, destRect, tMode, maskRgn );
BitMap *srcMap ; address of BitMap or PixMap of source image
BitMap *destMap ; address of BitMap or PixMap to hold the duplicate
Rect *srcRect ; size, location of data from source BitMap or PixMap
Rect *destRect ; size, location to store data in destination
short tMode ; transfer mode; srcCopy, srcOr, etc,
RgnHandle maskRgn ; mask for special clipping; NIL = not needed
CopyBits is the basis of most screen image movement on the Mac. An image
can be copied verbatim, or it can be scaled horizontally and/or vertically and
clipped to an arbitrary shape. The image can be combined with a background
(e.g., inverted, ORed, XORed, etc.). This function can copy to and from an
off-screen area of memory.