User Tools

Site Tools


api:dk11:java:tatukgis.jdk.igis_viewer.maptoscreen_tgis_point

Table of Contents



IGIS_Viewer.MapToScreen method

DK for Java | tatukgis.jdk.IGIS_Viewer.MapToScreen | Methods | Properties

Converts point coordinates from map coordinates to screen coordinates.

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

Syntax

// Java
public abstract TPoint MapToScreen(
  TGIS_Point _ptg
);
// Oxygene
public
  function MapToScreen(
    _ptg : TGIS_Point
  ) : TPoint;

Parameters

Name Type Description
_ptg TGIS_Point Coordinate in map units.

Result

Type Description
TPoint Screen coordinates converted from the map coordinate.

Remarks

See TGIS_LayerVector.DrawLabel for an example.

USAGE: Convert map coordinates to screen pixels for custom drawing.

screen_pt = GIS.MapToScreen(shape.PointOnShape)

2026/10/31 23:12

Page Tools