User Tools

Site Tools


api:dk11:delphi:gistypesui.tgis_bitmapabstract.drawshape_tobject_integer_boolean_double_tpoint

Table of Contents

TGIS_BitmapAbstract.DrawShape(TObject; Integer; Boolean; Double; TPoint) method

DK for Delphi | GisTypesUI.TGIS_BitmapAbstract.DrawShape | Overloads | Fields | Methods | Properties

Draw a shape on the bitmap for internal TGIS_Shape.PrepareContourInternal processing.

Available also on: .NET | Java | Python.

Syntax

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

Parameters

Name Type Description
_shape TObject shape object to draw
_ppi Integer pixels per inch used to calculate line widths and related sizes
_outline Boolean if True, the outline of polygon shapes is drawn; otherwise only interiors are drawn
_scale Double pixels per map unit for the drawn shape
_offset TPoint margin between the upper-left bitmap corner and the upper-left corner of the shape extent, expressed in pixels

Remarks

Interiors are drawn with TGIS_Color.LightGray. Borders and lines are drawn with TGIS_Color.DimGray.

This method is for internal use only.

2026/09/20 23:49

Page Tools