User Tools

Site Tools


api:dk11:activex:tatukgis_xdk11.itgis_rendererabstract.twipstopixels_2_integer_integer

Table of Contents

ITGIS_RendererAbstract.TwipsToPixels_2 method

DK11 for ActiveX | TatukGIS_XDK11.ITGIS_RendererAbstract.TwipsToPixels_2 | 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.

Syntax

// C#
public int TwipsToPixels_2(
  int _size,
  int _maxValue
);
' VisualBasic
Public Function TwipsToPixels_2(
  ByVal _size As Integer,
  ByVal _maxValue As Integer
) As Integer
// Oxygene
public
  function TwipsToPixels_2(
    _size : Integer;
    _maxValue : Integer
  ) : Integer;

Parameters

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

Result

Type Description
int
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 _maxValue. If _maxValue is set to 0, then there is no limit.

2020/05/08 23:16

Page Tools