Click or drag to resize

ImageViewOnAfterCustomPaint Event

This event is fired when the EnableCustomDrawing property is True, and the control is about to finish painting its content.

Namespace:  Kofax.OmniPageCSDK.ToolBoxes
Assembly:  Kofax.OmniPageCSDK.ToolBoxes (in Kofax.OmniPageCSDK.ToolBoxes.dll) Version: 1.0.0.0
Syntax
public event ImageViewAfterCustomPaintHandler OnAfterCustomPaint

Value

Type: Kofax.OmniPageCSDK.ToolBoxesImageViewAfterCustomPaintHandler
Remarks

This event allows you to override or modify the default drawing implementation. Left, Top, Width and Height parameters hold the View coordinates of the rectangle being painted. DC contains the memory HDC which you can use to perform painting.

Note that painting is clipped to the rectangle specified by the Left, Top, Width and Height parameters, so any custom painting outside this rectangle will take no effect. When drawing to the passed HDC, always use View coordinates. To learn more about the different ImageView coordinate systems and the usage of this event, refer to the Coordinate Systems chapter of the documentation.

Use this event if you need to extend the default ImageView drawing capabilities with some custom additions. In this case ensure that the BeforeCustomPaint event returns True, so the default control drawing code will paint the ThumbnailView. Once the default painting is done, the AfterCustomPaint event is raised to provide a final stage to add custom drawing over the default rendering.

See Also