Sign in Join
FPDoc Onlineexperiment

TBrush class

In unit Graphics

The Brush to be used to Paint on the current Canvas.

Declaration

pascal
TBrush = class(TFPCustomBrush)

Inheritance

  1. TBrush
  2. TFPCustomBrush

Description

A Brush is typically used to fill an enclosed area on the Canvas with one particular color or colored pattern.

Properties

BitmappublicBitmap with the pattern for the Brush.
HandlepublicOperating System handle for the brush.
ReferencepublicContains a Reference to the handle allocated for the Brush.
ColorpublishedThe Color of the current Brush.
StylepublishedIndicates the pattern drawn using the brush.

Methods

DoAllocateResourcesprotectedPerforms actions needed to allocate (or reallocate) resources for the brush instance.
DoDeAllocateResourcesprotectedPerforms actions to free resources allocated for the brush instance.
DoCopyPropsprotectedCopies properties from the specified FCL brush into the current class instance.
SetColorprotectedSets the value for the Color property.
SetFPColorprotectedSets the Brush color to the specified TFPColor value.
SetBitmapprotectedSets the value for the Bitmap property.
SetStyleprotectedSets the value for the Style property.
AssignpublicCopies values from Source to the current brush instance.
CreatepublicConstructor for the class instance.
DestroypublicDestructor for the class instance.
EqualsBrushpublicCompares the specified Brush to the current class instance.

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