TCustomRichView.OnAfterDrawImage

<< Click to display table of contents >>

TCustomRichView.OnAfterDrawImage

Allows custom drawing on pictures and hot-pictures.

VCL and LCL:

type

  TRVAfterDrawImageEvent = procedure (Sender: TCustomRichView

    ARVData: TCustomRVData;

    AItem: TCustomRVItemInfo; AState: TRVItemDrawStates;
    const ARect: TRVCoordRect; ACanvas: TCanvas) of object;

FireMonkey:

type

  TRVAfterDrawImageEvent = procedure (Sender: TCustomRichView

    ARVData: TCustomRVData;

    AItem: TCustomRVItemInfo; AState: TRVItemDrawStates;

    const ARect: TRVCoordRect; ACanvas: TRVFMXCanvasof object;

 

property OnAfterDrawImage: TRVAfterDrawImageEvent;

(introduced in version 20)

Parameters:

ACanvas canvas for painting.

ARVData a document containing the item.

AItem an item that is being drawn.

ARect image rectangle on ACanvas; it does not include spacing and borders.

 

This event occurs when the image is already drawn. It allows drawing additional content on top of it.

 

See also:

TCustomRVPrint.OnAfterPrintImage