User Tools

Site Tools


api:dk11:delphi:gisrendererabstract.tgis_rendererabstract.twipstopixels_integer_integer

Table of Contents

TGIS_RendererAbstract.TwipsToPixels(Integer; 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 | Python.

Syntax

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

Parameters

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

Result

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

2022/11/30 19:18

Page Tools