User Tools

Site Tools


api:dk11:delphi:gisinterfaces.igis_viewer.maptoscreen_tgis_point

Table of Contents



IGIS_Viewer.MapToScreen method

DK for Delphi | GisInterfaces.IGIS_Viewer.MapToScreen | Methods | Properties

Converts point coordinates from map coordinates to screen coordinates.

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

Syntax

// Delphi
public
  function MapToScreen(
    const _ptg : TGIS_Point
  ) : TPoint;
// C++ Builder
public:
  TPoint* MapToScreen(
    TGIS_Point* const _ptg
  ) = 0;

Parameters

Name Type Description
_ptg TGIS_Point Coordinate in map units.

Result

Type Description
TPoint Map coordinates converted to screen coordinates.

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/09/20 23:47

Page Tools