Skip to content
Member Filters
Show Inherited
Show Protected
Show abstract
GR32_Image🞂TCustomImage32🞂OnPaintStageEvent

TCustomImage32.OnPaintStage

Fired during execution of custom PST_CUSTOM paint stage.

Declaration ​

pascal
type
  TPaintStageEvent = procedure(Sender: TObject; Buffer: TBitmap32; StageNum: Cardinal) of object;

property OnPaintStage: TPaintStageEvent read FOnPaintStage write FOnPaintStage;

Parameters ​

ParameterTypeDescription
SenderTObjectThe image control executing the paint stage.
BufferTBitmap32The destination 32-bit bitmap surface being rendered into.
StageNumCardinalThe identifier or index number of the custom paint stage being executed.

Description ​

OnPaintStage is invoked when executing a paint stage with PST_CUSTOM, allowing user code to render custom graphics into the destination Buffer.


See also ​