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: 3.2.9386+3a404a3e1ebfa4efd231da7fe6f10dfb23b95dc4
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
Remarks

[Missing <remarks> documentation for "M:Ab4d.SharpEngine.SceneNodes.HeightMapSurfaceNode.CreateHeightDataFromImageData(Ab4d.SharpEngine.Common.RawImageData)"]

See Also