User Tools

Site Tools


api:dk11:delphi:gisviewer.tgis_viewer.pixelstotwips_integer

Table of Contents

TGIS_Viewer.PixelsToTwips method

DK11 for Delphi | GisViewer.TGIS_Viewer.PixelsToTwips | Constructors | Fields | 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 | Java | ActiveX | Python.

Syntax

Implements IGIS_Viewer.PixelsToTwips.

// Delphi
public
  function PixelsToTwips(
    const _size : Integer
  ) : Integer; inline;
// 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/30 19:19

Page Tools