User Tools

Site Tools


api:dk11:activex:tatukgis_xdk11.itgis_viewer.ppi

Table of Contents

ITGIS_Viewer.PPI property

DK for ActiveX | TatukGIS_XDK11.ITGIS_Viewer.PPI | Methods | Properties

Rendering resolution in pixels per inch.

Available also on: Delphi | .NET | Java | Python.

Syntax

// C#
public Integer PPI
{
  get {}
}
' VisualBasic
Public Property PPI As Integer
  Get
  End Get
End Property
// Oxygene
public
  property PPI : Integer read;

Value

Type
int
Integer

Remarks

USAGE: Get current rendering DPI. Returns SystemPPI or CustomPPI*ControlCanvasScale. Use for DPI-aware rendering calculations.

dpi = gis.PPI       font_size = 12 * dpi / 96       # Scale 12pt font to match screen DPI
Returns SystemPPI or, when CustomPPI is not 0, CustomPPI multiplied by ControlCanvasScale.

2026/09/20 23:45

Page Tools