User Tools

Site Tools


api:dk11:net:tatukgis.ndk.tgis_shape.preparecontourinternal_integer_boolean_tgis_pixels_double_tpoint

Table of Contents

TGIS_Shape.PrepareContourInternal method

DK for .NET | TatukGIS.NDK.TGIS_Shape.PrepareContourInternal | Constructors | Fields | Methods | Properties

Prepares a rasterized contour bitmap for internal geometry-to-pixel processing by converting the shape to a pixel grid.

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

Syntax

// C#
public void PrepareContourInternal(
  int _size,
  bool _outline,
  ref Int32[] _pixels,
  ref double _scale,
  ref TPoint _offset
);
' VisualBasic
Public Sub PrepareContourInternal(
  ByVal _size As Integer,
  ByVal _outline As Boolean,
  ByRef _pixels As Int32(),
  ByRef _scale As Double,
  ByRef _offset As TPoint
)
// Oxygene
public
  procedure PrepareContourInternal(
    _size : Integer;
    _outline : Boolean;
    var _pixels : TGIS_Pixels;
    var _scale : Double;
    var _offset : TPoint
  );

Parameters

Name Type Description
_size int
Integer
Bitmap width and height in pixels that determine rasterization resolution.
_outline bool
Boolean
If True, rasterize only shape boundaries; if False, rasterize the filled shape.
_pixels Int32[]
TGIS_Pixels
Output pixel buffer containing the rasterized image.
_scale double
Double
Output conversion factor from shape units to pixel units.
_offset TPoint Output pixel-space offset applied during rasterization.

Remarks

PURPOSE: Supports internal geometry processing by converting vector shape geometry to a raster representation.

BEHAVIOR: Sets _scale to 0, exits if no native bitmap factory is available, draws the shape to a square bitmap, and copies bitmap pixels to _pixels when rasterization succeeds.

CONSTRAINTS: Internal-use helper. If rasterization does not produce a valid scale, _pixels is not populated.

2026/09/20 23:54

Page Tools