User Tools

Site Tools


api:dk11:delphi:fmx.giscontrolscale.tgis_controlscale.drawbmp_tbitmap_double_integer

Table of Contents



TGIS_ControlScale.DrawBmp method

DK for Delphi | FMX.GisControlScale.TGIS_ControlScale.DrawBmp | Constructors | Methods | Properties | Events

Draws the scale control on a provided bitmap.

Available also on: ActiveX.

Syntax

// 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
  );

Parameters

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

Result

Type Description
TBitmap Bitmap containing the rendered scale control; this is a newly created bitmap when _bmp is nil.
2026/07/11 00:18

Page Tools