DK for Delphi | FMX.GisControlScale.TGIS_ControlScale.DrawBmp | Constructors | Methods | Properties | Events
Draws the scale control on a provided bitmap.
Available also on: ActiveX.
// Delphi public function DrawBmp( const _bmp : TBitmap; const _scale : Double; const _ppi : Integer ) : TBitmap;
// C++ Builder public: TBitmap* DrawBmp( TBitmap* const _bmp, const double _scale, const int _ppi );
| Name | Type | Description |
|---|---|---|
| _bmp | TBitmap | bitmap on which drawing will be performed; if nil, a bitmap is created based on the control size and returned by the function |
| _scale | Double | map scale to use; if <= 0, the current viewer map scale is used |
| _ppi | Integer | forced PPI resolution; if 0, the value is taken from the corresponding GIS_Viewer object |
| Type | Description |
|---|---|
| TBitmap | Bitmap containing the rendered scale control; this is a newly created bitmap when _bmp is nil. |