User Tools

Site Tools


api:dk11:net:tatukgis.ndk.tgis_bitmapabstract.drawshape_tobject_boolean_double_tpoint

Table of Contents

TGIS_BitmapAbstract.DrawShape method

DK11 for .NET | TatukGIS.NDK.TGIS_BitmapAbstract.DrawShape | Methods | Properties

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

Available also on: Delphi | Java.

Syntax

// C#
public abstract void DrawShape(
  TObject _shape,
  bool _outline,
  ref double _scale,
  ref TPoint _offset
);
' VisualBasic
Public MustOverride Sub DrawShape(
  ByVal _shape As TObject,
  ByVal _outline As Boolean,
  ByRef _scale As Double,
  ByRef _offset As TPoint
)
// Oxygene
public
  procedure DrawShape(
    _shape : TObject;
    _outline : Boolean;
    var _scale : Double;
    var _offset : TPoint
  ); virtual; abstract;

Parameters

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

2017/09/04 11:23