User Tools

Site Tools


api:dk11:net:tatukgis.ndk.tgis_bitmap.drawshape_tobject_integer_boolean_tgis_color_tgis_color_double_tpoint

Table of Contents

TGIS_Bitmap.DrawShape(TObject, int, bool, TGIS_Color, TGIS_Color, double, TPoint) method

DK11 for .NET | TatukGIS.NDK.TGIS_Bitmap.DrawShape | Overloads | Constructors | Methods | Properties

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

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

Syntax

// C#
public void DrawShape(
  TObject _shape,
  int _ppi,
  bool _outline,
  TGIS_Color _areacolor,
  TGIS_Color _linecolor,
  ref double _scale,
  ref TPoint _offset
);
' VisualBasic
Public Sub DrawShape(
  ByVal _shape As TObject,
  ByVal _ppi As Integer,
  ByVal _outline As Boolean,
  ByVal _areacolor As TGIS_Color,
  ByVal _linecolor As TGIS_Color,
  ByRef _scale As Double,
  ByRef _offset As TPoint
)
// Oxygene
public
  procedure DrawShape(
    _shape : TObject;
    _ppi : Integer;
    _outline : Boolean;
    _areacolor : TGIS_Color;
    _linecolor : TGIS_Color;
    var _scale : Double;
    var _offset : TPoint
  );

Parameters

Name Type Description
_shape TObject shape to be drawn
_ppi int
Integer
pixels per inch; us3ed to calculate proper line sizes etc.
_outline bool
Boolean
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 double
Double
pixels/unit scale of a shape
_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.

2024/12/20 22:21

Page Tools