User Tools

Site Tools


api:dk11:python:tatukgis.pdk.tgis_rendererabstract.twipstopixels_integer

Table of Contents

TGIS_RendererAbstract.TwipsToPixels(int) method

DK11 for Python | tatukgis.pdk.TGIS_RendererAbstract.TwipsToPixels | Overloads | Constructors | 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 | Java | ActiveX.

Syntax

# Python
def TwipsToPixels(
  self,
  _size: int
) -> int: 

Parameters

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

Result

Type Description
int 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 4096 * PPI / 96.

2023/08/09 01:58

Page Tools