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.
// 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 );
| 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. |
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.