Click or drag to resize
Ab4d.SharpEngine logo

HeightMapSurfaceNodeCreateHeightDataFromImageData Method

CreateHeightDataFromImageData method creates a two dimensional array from the specified imageData that can be used for the HeightData property. The supported image formats are R8G8B8A8Unorm, B8G8R8A8Unorm (32 bit where height value is average value of red, green and blue color values) and R8Unorm (8 bit grayscale).

Namespace: Ab4d.SharpEngine.SceneNodes
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 4.1.9680+a1b1e43de1ad9a7e35472c33948d688d7b40ef79
Syntax
C#
public static float[,] CreateHeightDataFromImageData(
	RawImageData imageData
)

Parameters

imageData  RawImageData
image data as RawImageData (supported formats: R8G8B8A8Unorm, B8G8R8A8Unorm, R8Unorm)

Return Value

Single
two dimensional array from the image data
Exceptions
ExceptionCondition
ArgumentException
See Also