BitMapToRegion
BitMapToRegion Convert bitmaps or pixel maps to regions
#include <Quickdraw.h> Color QuickDraw
OSErr BitMapToRegion ( region, bMap);
RgnHandle region ; a valid region handle
BitMap *bMap; a bitmap or pixel map record
returns an error code.
You can convert bitmaps or pixel maps to regions using the
BitMapToRegion function.
region must be a valid region handle created with a NewRgn function. The
old region contents are lost.
bMap may either be a bitmap or pixel map record. If you pass a pixel map
record, its pixel size (bits per pixel) must be 1.
Returns: an Error Code.
pixmapTooDeepErr (-148) Pixel map record is deeper than 1 bit per pixel
rgnTooBigErr (-500) Bitmap would convert to a region greater than 64 KB