User Tools

Site Tools


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

Table of Contents

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

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

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

Available also on: Delphi | .NET | Java.

Syntax

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

Parameters

Name Type Description
_shape TObject TGIS_Shape object
_outline bool if _true then polygonal shape will be drawn with black outline, otherwise only internal will be drawn.
_scale float 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)

Remarks

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)

2023/08/09 01:51

Page Tools