DK11 for ActiveX | TatukGIS_XDK11.ITGIS_RendererAbstract.PixelsToTwips | Methods | Properties
Convert size from device dependent pixels to device independent Twips (1/1440 inch). Used to make map device independent.
// C# public int PixelsToTwips( int _size );
' VisualBasic Public Function PixelsToTwips( ByVal _size As Integer ) As Integer
// Oxygene public function PixelsToTwips( _size : Integer ) : Integer;
Name | Type | Description |
---|---|---|
_size | int Integer | size in pixels; absolute value will be taken |
Type | Description |
---|---|
int Integer | Size in twips. |
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.