Declaration ​
pascal
type
TPaintStageEvent = procedure(Sender: TObject; Buffer: TBitmap32; StageNum: Cardinal) of object;
property OnPaintStage: TPaintStageEvent read FOnPaintStage write FOnPaintStage;Parameters ​
| Parameter | Type | Description |
|---|---|---|
Sender | TObject | The image control executing the paint stage. |
Buffer | TBitmap32 | The destination 32-bit bitmap surface being rendered into. |
StageNum | Cardinal | The 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.