User Tools

Site Tools


api:dk11:delphi:gisrendererabstract.tgis_rendererabstract.twipstopoints_integer

Table of Contents

TGIS_RendererAbstract.TwipsToPoints method

DK11 for Delphi | GisRendererAbstract.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: .NET | Java | ActiveX.

Syntax

// Delphi
public
  function TwipsToPoints(
    const _size : Integer
  ) : Integer;
// C++ Builder
public:
  int TwipsToPoints(
    const int _size
  );

Parameters

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

Result

Type Description
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.

2018/02/17 00:10