DK for Python | tatukgis_pdk.TGIS_Bitmap.DrawShape | Overloads | Constructors | Methods | Properties
Draw a shape on a bitmap (for internal TGIS_Shape.PrepareContourInternal purposes).
# Python def DrawShape( self, _shape: TObject, _ppi: int, _outline: bool, _areacolor: TGIS_Color, _linecolor: TGIS_Color, _scale: VarParameter, _offset: VarParameter ) -> None:
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 |
_areacolor | TGIS_Color | color for interiors |
_linecolor | TGIS_Color | color for lines and outlines |
_scale | float | pixels/unit scale of a shape |
_offset | TPoint | offset of shape within bitmap caused by map placement, margins etc. |
Interiors are drawn with TGIS_Color.LightGray. Borders and lines are drawn TGIS_Color.DimGray.