User Tools

Site Tools


api:dk11:delphi:gistypesui.tgis_bitmap.drawshape_tobject_boolean_double_tpoint

Table of Contents

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

DK11 for Delphi | GisTypesUI.TGIS_Bitmap.DrawShape | Overloads | Constructors | Methods | Properties

Draw a shape on a bitmap (for internal TGIS_Shape.PrepareContourInternal purposes).

Available also on: .NET | Java | ActiveX | Python.

Syntax

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

Parameters

Name Type Description
_shape TObject shape to be drawn
_outline Boolean if True then outline of polygonal object will be drawn; otherwise only interiors will be drawn
_scale Double shape size in pixels divided by the shape size in map units
_offset TPoint offset of shape within bitmap caused by map placement, margins etc.

Remarks

Interiors are drawn with TGIS_Color.LightGray. Borders and lines are drawn TGIS_Color.DimGray. Default PPI for platfom is used (96 for Windows).

This method is for internal use only.

2023/12/20 13:16

Page Tools