CreateMaskFromRgn method (ILEADRaster)

Visual Basic example

Visual C++ example

 

Syntax

short CreateMaskFromRgn ();

Overview

Refer to Creating and Using a Bitmap Region.

Remarks

Creates a 1-bit mask image from the region that is defined in the source bitmap, contained in the Bitmap property, and updates the MaskBitmap property with it.

A bitmap region is an area of interest within a bitmap. A bitmap can have only one region at a time, but the region can be complex, including, for example, multiple noncontiguous shapes.

See Also

Elements:

MaskBitmap property, SetRgnEllipse method, SetRgnRect method, SetRgnRoundRect method, PolygonSize property, OffsetRgn method, SetRgnColor method.

Topics:

Raster Images: Creating and Using a Region

 

Saving a Region