User Tools

Site Tools


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

Table of Contents

TGIS_RendererAbstract.TwipsToPixels(int, int) method

DK11 for Java | tatukgis.jdk.TGIS_RendererAbstract.TwipsToPixels | Overloads | Constructors | Fields | Methods | Properties

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

Available also on: Delphi | .NET | ActiveX.

Syntax

// Java
public int TwipsToPixels(
  int _size,
  int _maxValue
);
// Oxygene
public
  function TwipsToPixels(
    _size : Integer;
    _maxValue : Integer
  ) : Integer;

Parameters

Name Type Description
_size int
Integer
size in twips; if negative then treated as pixels
_maxValue int
Integer
maximal value

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. Maximum value is _maxValue. If _maxValue is set to 0, then there is no limit.

2021/09/28 01:30

Page Tools