BitMapToRegion
BitMap *bMap; a bitmap or pixel map record returns an error code.
You can convert bitmaps or pixel maps to regions using the
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.
pixmapTooDeepErr (-148) Pixel map record is deeper than 1 bit per pixel
rgnTooBigErr (-500) Bitmap would convert to a region greater than 64 KB