User Tools

Site Tools


api:dk11:delphi:gisrendererabstract.tgis_rendererabstract.twipstopixels_integer

Table of Contents

TGIS_RendererAbstract.TwipsToPixels(Integer) method

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

Syntax

// Delphi
public
  function TwipsToPixels(
    const _size : Integer
  ) : Integer; overload;
// C++ Builder
public:
  int TwipsToPixels(
    const int _size
  ) /* overload */;

Parameters

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

Result

Type Description
Integer Size in twips.

Remarks

This implemenetion 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 4096.

2021/04/15 01:10

Page Tools