Sign in Join
FPDoc Onlineexperiment

TBrush.Bitmap property

Member of TBrushpublicIn unit Graphics

Bitmap with the pattern for the Brush.

Declaration

pascal
property Bitmap: TCustomBitmap read FBitmap write SetBitmap;

Description

Bitmap is a TCustomBitmap property which contains the pattern used to draw the brush, and is generally used to fill shapes or rectangular areas.

When assigned, the Bitmap image is used to draw the brush pattern instead of using the Style for brush. Setting a value for the property causes values in Color and Style to be reset. Color is set to clWhite, and the brush Style is set to bsSolid. The Handle for the brush is freed, and the Changed method is called to signal the OnChange event handler (when assigned).

The image in Bitmap is discarded when a new value is assigned to the Style property.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.