 |
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.SceneNodesAssembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 3.1.9316+94bbd23b55747f096f056a5602f7dd90558b3673
Syntaxpublic static float[,] CreateHeightDataFromImageData(
RawImageData imageData
)
Parameters
- imageData RawImageData
- image data as RawImageData (supported formats: R8G8B8A8Unorm, B8G8R8A8Unorm, R8Unorm)
Return Value
Singletwo dimensional array from the image data
ExceptionsException | Condition |
---|
ArgumentException | |
Remarks[Missing <remarks> documentation for "M:Ab4d.SharpEngine.SceneNodes.HeightMapSurfaceNode.CreateHeightDataFromImageData(Ab4d.SharpEngine.Common.RawImageData)"]
See Also