User Tools

Site Tools


api:dk11:java:tatukgis.jdk.tgis_rendererabstract.pixelstotwips_integer

Table of Contents

TGIS_RendererAbstract.PixelsToTwips method

DK11 for Java | tatukgis.jdk.TGIS_RendererAbstract.PixelsToTwips | Fields | Methods | Properties

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

Available also on: Delphi | .NET | ActiveX.

Syntax

// Java
public int PixelsToTwips(
  int _size
);
// Oxygene
public
  function PixelsToTwips(
    _size : Integer
  ) : Integer;

Parameters

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

Result

Type Description
int
Integer
Size in twips.

Remarks

This implementation will calculate always on actual canvas PPI while TGIS_Viewer version can provide improper results on non-standard temporary devices like bitmap output on different PPI then default.

2018/02/17 00:18