ConvertElevationToGrayscale Data Member Function

Quantizes 32-bit elevation data to RGB colorspace.

Prototype

int32 ConvertElevationToGrayscale( Float32Array p_afElevationData, ColorArray p_acGrays )

Parameters

Parameter Type Parameter Name Documentation
<Float32Array>p_afElevationDataA pointer to a <Float32Array> containing the elevation data.
<ColorArray>p_acGraysA pointer to a <ColorArray> that will contain the quantized elevation values. You can pass in a non-null zero count array and this function will allocate sufficient storage. Alternatively, you can pre-allocate enough storage if you need precise control over when memory allocation occurs.

Examples

Copy Text To Clipboard

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