User Tools

Site Tools


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

Table of Contents

TGIS_RendererAbstract.TwipsToPoints method

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

Convert the size from to device independent Twips (1/1440 inch) to device points. Used for advanced font sizing.

Available also on: Delphi | .NET | ActiveX.

Syntax

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

Parameters

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

Result

Type Description
int
Integer
Size in points.

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.

2020/05/07 01:14

Page Tools