Quantizes 32-bit elevation data to RGB colorspace.
int32 ConvertElevationToGrayscale( Float32Array p_afElevationData, ColorArray p_acGrays )
Parameter Type | Parameter Name | Documentation |
---|---|---|
<Float32Array> | p_afElevationData | A pointer to a <Float32Array> containing the elevation data. |
<ColorArray> | p_acGrays | A 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. |
None published. Please look for an example in the Scenome Scripting Language code base.