User Tools

Site Tools


api:dk11:activex:tatukgis_xdk11.itgis_shape.preparecontourinternal_integer_wordbool_itgis_pixels_double_itpoint

Table of Contents

ITGIS_Shape.PrepareContourInternal method

DK for ActiveX | TatukGIS_XDK11.ITGIS_Shape.PrepareContourInternal | Methods | Properties

Prepares a rasterized contour bitmap for internal polygon topology operations by converting vector geometry to a pixel grid.

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

Syntax

// C#
public void PrepareContourInternal(
  int _size,
  WordBool _outline,
  ref ITGIS_Pixels _pixels,
  ref double _scale,
  ref ITPoint _offset
);
' VisualBasic
Public Sub PrepareContourInternal(
  ByVal _size As Integer,
  ByVal _outline As WordBool,
  ByRef _pixels As ITGIS_Pixels,
  ByRef _scale As Double,
  ByRef _offset As ITPoint
)
// Oxygene
public
  procedure PrepareContourInternal(
    _size : Integer;
    _outline : WordBool;
    var _pixels : ITGIS_Pixels;
    var _scale : Double;
    var _offset : ITPoint
  );

Parameters

Name Type Description
_size int
Integer
Bitmap width and height in pixels that determine rasterization resolution.
_outline WordBool If True, rasterize only polygon boundaries; if False, rasterize the polygon interior.
_pixels ITGIS_Pixels Output newly allocated pixel buffer containing the rasterized contour image.
_scale double
Double
Output conversion factor from shape units to pixel units.
_offset ITPoint Output pixel-space offset applied during rasterization.

Remarks

PURPOSE: Supports internal topology and coverage analysis by converting vector shape geometry to a raster representation that can be tested efficiently.

BEHAVIOR: Renders the shape to a square bitmap, optionally as outline-only or filled interior, and returns the pixel buffer together with scale and offset values needed for coordinate mapping.

CONSTRAINTS: Internal-use helper. Larger bitmap sizes increase precision but also increase memory use. The caller is responsible for releasing the allocated pixel buffer.

2026/07/05 01:25

Page Tools