User Tools

Site Tools


api:dk11:activex:tatukgis_xdk11.itgis_viewerwndevents.beforepaintevent_wordbool_itbaseobject

Table of Contents

ITGIS_ViewerWndEvents.BeforePaintEvent method

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.

Syntax

// 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
  );

Parameters

Name Type Description
Translated WordBool
Canvas ITBaseObject

Remarks

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.

2020/05/22 01:05

Page Tools