 |
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: 4.0.9584+ba1aaa26d4181dd3fa8ed7b6398391d1affa36c8
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
Exceptions
See Also