TCustomImage32.OnPaintStage

property OnPaintStage: TPaintStageEvent;

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

Description

An event, called by the control while it repaints itself. By default, TCustomImage32 does not generate OnPaintStage events, but this can be changed by adding PST_CUSTOM paint stages.

In the event handler, do not paint to Buffer directly, use the passed Dest parameter instead.

See Also

Paint Stages, TBitmap32, TCustomImage32, TCustomPaintBox32.Buffer