CreateMaskFromBitmapRgn method (Main Control)

C++ Builder example

Delphi example

 

Builder Syntax

int CreateMaskFromBitmapRgn ();

Delphi Syntax

Function CreateMaskFromBitmapRgn (): L_INT;

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, SetRgnFromMask method, SetRgnEllipse method, SetRgnRect method, SetRgnRoundRect method, PolygonSize property, OffsetRgn method, SetRgnColor method.

Topics:

Raster Images: Creating and Using a Region