User Tools

Site Tools


api:dk11:python:tatukgis.pdk.tgis_bitmapabstract.drawshape_tobject_integer_boolean_double_tpoint

Table of Contents

TGIS_BitmapAbstract.DrawShape(TObject, int, bool, float, TPoint) method

DK11 for Python | tatukgis.pdk.TGIS_BitmapAbstract.DrawShape | Overloads | Methods | Properties

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

Available also on: Delphi | .NET | Java.

Syntax

# Python
def DrawShape(
  self,
  _shape: TObject,
  _ppi: int,
  _outline: bool,
  _scale: VarParameter,
  _offset: VarParameter
) -> None: 

Parameters

Name Type Description
_shape TObject shape to be drawn
_ppi int pixels per inch; us3ed to calculate proper line sizes etc.
_outline bool if True then outline of polygonal object will be drawn; otherwise only interiors will be drawn
_scale float 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.

This method is for internal use only.

2023/08/09 01:51

Page Tools