MaskBitmap property (Main Control)

C++ Builder example

Delphi example

 

Builder Syntax

TBitmapHandle MaskBitmap;

Delphi Syntax

MaskBitmap: TBitmapHandle;

Overview

Refer to Creating and Using a Bitmap Region.

Remarks

Gets or sets the mask bitmap.

This property is updated by the CreateMaskFromRgn method.

The mask bitmap will be updated with a 1-bit, black-and-white image after calling the CreateMaskFromBitmapRgn method, where pixels from the region are white, and all others are black.

The user can also directly assign a bitmap to this property, but the bitmap must be a 1-bit mask image.

The image in this property is used by the SetRgnFromMask method to create or modify a region in the Bitmap property.

Therefore, before calling SetRgnFromMask The MaskBitmap property must contain the mask bitmap to be used by this method.

See Also

Elements:

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

Topics:

Raster Images: Creating and Using a Region