DK for .NET | TatukGIS.NDK.IGIS_Viewer.MapToScreen | Methods | Properties
Converts point coordinates from map coordinates to screen coordinates.
// C# public TPoint MapToScreen( TGIS_Point _ptg );
' VisualBasic Public Function MapToScreen( ByVal _ptg As TGIS_Point ) As TPoint
// Oxygene public function MapToScreen( _ptg : TGIS_Point ) : TPoint;
| Name | Type | Description |
|---|---|---|
| _ptg | TGIS_Point | Coordinate in map units. |
| Type | Description |
|---|---|
| TPoint | Map coordinates converted to screen coordinates. |
See TGIS_LayerVector.DrawLabel for an example.
USAGE: Convert map coordinates to screen pixels for custom drawing.
screen_pt = GIS.MapToScreen(shape.PointOnShape)