User Tools

Site Tools


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

Table of Contents

TGIS_ViewerWnd.PixelsToTwips method

DK11 for Delphi | VCL.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: Delphi FMX | .NET WinForms | .NET WPF | Java.

Syntax

// 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
2018/09/13 10:09