User Tools

Site Tools


api:dk11:delphi:fmx.gisviewerwnd.tgis_viewerwnd.pixelstotwips_integer

Table of Contents

TGIS_ViewerWnd.PixelsToTwips method

DK11 for Delphi | FMX.GisViewerWnd.TGIS_ViewerWnd.PixelsToTwips | Constructors | Methods | Properties | Events

Convert size from device dependent pixels to device independent Twips (1/1440 inch). Used to make map device independent.

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

Syntax

Implements IGIS_Viewer.PixelsToTwips.

// Delphi
public
  function PixelsToTwips(
    const _size : Integer
  ) : Integer;
// C++ Builder
public:
  int PixelsToTwips(
    const int _size
  );

Parameters

Name Type Description
_size Integer size in pixels; absolute value will be taken

Result

Type Description
Integer Size in twips.
2022/11/16 01:14

Page Tools