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: 2.0.8956+4c7684e186ca1be74e7a284fbe739d9a1b843d3c
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