FillRegion Data Member Function

Fills a region of the array as if the array were 2D. For example: for a source array representing a 256x256 view, you can use this algorithm to insert a 16x16 set of values any position within the 256x256 'view' of the source data.

Prototype

int32 FillRegion( Uint32Iterator first, Uint32Iterator last, Uint32Iterator dst, Int32Array params )

Parameters

Parameter Type Parameter Name Documentation
<Uint32Iterator>firstAn iterator at the start of the source data.
<Uint32Iterator>lastAn iterator at the end of the source data.
<Uint32Iterator>dstAn iterator at the start of the destination.
<Int32Array>paramsA pointer to an <Int32Array> containing parameters for the algorithm. This algorithm assumes the source data count matches the region width and region height parameters, and that the destination has sufficient storage. The specified region will be clipped to the width and height parameters. Index[0] = The source width, which is the total 'width' of the data. Index[1] = The source height, which is the total 'height' of the data. Index[2] = The lower left X coordinate of the region. Index[3] = The lower left Y coordinate of the region. Index[4] = The region width. Index[5] = The region height. Index[6] = The channel count.

Examples

Copy Text To Clipboard

None published. Please look for an example in the Scenome Scripting Language code base.