BitMapToRegion
To convert BitMaps or pixel maps to regions use the BitMapToRegion function.
FUNCTION BitMapToRegion(region as RgnHandle,bMap as BitMapPtr) as Integer
region
A valid region handle, created with the NewRgn
function.
bMap
A BitMapPtr, containing a one bit deep
bitmap or pixelmap.
returns: A error code
0 = no error
-148 = Pixel map record is deeper than 1 bit per pixel
-500 = BitMap would convert to a region greater than 64 kb
Supported platforms:
* MacOS PPC
* MacOS Carbon
* MacOS Mach-O
Unsupported platforms:
* Windows x86