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.
// Delphi public function TwipsToPixels( const _size : Integer; const _maxValue : Integer ) : Integer; overload;
// C++ Builder public: int TwipsToPixels( const int _size, const int _maxValue ) /* overload */;
Name | Type | Description |
---|---|---|
_size | Integer | size in twips; if negative then treated as pixels |
_maxValue | Integer | maximal value |
Type | Description |
---|---|
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. Maximum value is _maxValue. If _maxValue is set to 0, then there is no limit.