User Tools

Site Tools


Table of Contents

TGIS_BitmapFMX.DrawShape(TObject; Boolean; Double; TPoint) method

DK11 for Delphi | FMX.GisFramework.TGIS_BitmapFMX.DrawShape | Overloads | Constructors | Methods | Properties

Draw a shape on a bitmap. Used for internal purposes of TGIS_Shape.PrepareContourInternal.


Overrides TGIS_BitmapAbstract.DrawShape.

// Delphi
  procedure DrawShape(
    const _shape : TObject;
    const _outline : Boolean;
    var _scale : Double;
    var _offset : TPoint
  ); overload; override;
// C++ Builder
  virtual void DrawShape(
    TObject* const _shape,
    const bool _outline,
    double &_scale,
    TPoint* &_offset
  ) /* overload */;


Name Type Description
_shape TObject TGIS_Shape object
_outline Boolean if _true then polygonal shape will be drawn with black outline, otherwise only internal will be drawn.
_scale Double pixels/unit scale of a shape
_offset TPoint margin between left-up corner of the bitmap and left-up corner of shape extent (expressed in pixels)


Internals will be drawn as TGIS_Color.DimGray; borders will be drawn with TGIS_Color.Black. Default PPI for platfom is used (96 for Windows)

2022/08/31 01:09

Page Tools