DK11 for ActiveX | TatukGIS_XDK11.ITGIS_ViewerWndEvents.BeforePaintEvent | Methods
BeforePaint event. Will be fired before any Paint operation. Uses painting context object.
Available also on: Delphi FMX | .NET WinForms | Python.
// C# public void BeforePaintEvent( ref WordBool Translated, ITBaseObject Canvas );
' VisualBasic Public Sub BeforePaintEvent( ByRef Translated As WordBool, ByVal Canvas As ITBaseObject )
// Oxygene public procedure BeforePaintEvent( var Translated : WordBool; Canvas : ITBaseObject );
Name | Type | Description |
---|---|---|
Translated | WordBool | |
Canvas | ITBaseObject |
This even can be quite costly. To maintain compatibility with the old code we guarantee proper Canvas context even on Direct2D renderer. Try to replace this event with BeforePaintRendererEvent, which is always fast.