SetRgnFromMask method (Main Control)

C++ Builder example

Delphi example

 

Builder Syntax

int SetRgnFromMask(unsigned uCombineMode);

Delphi Syntax

Function SetRgnFromMask(uCombineMode: L_UINT): L_INT;

Overview

Refer to Creating and Using a Bitmap Region.

Remarks

Creates or updates the bitmap region in the Bitmap property by adding the region specified by the white pixels in the MaskBitmap property.

The MaskBitmap property must contain a 1-bit image before calling this method. The MaskBitmap property can be set manually, by the user, or it may be updated by calling the CreateMaskFromBitmapRgn method.

See Also

Elements:

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

Topics:

Raster Images: Creating and Using a Region.