 |
TextureFactoryCreateHeightRawImageData(Single, GradientStop, Boolean) Method |
Create a RawImageData with data array filled with colors from the height data and specified gradient stops.
Namespace: Ab4d.SharpEngine.UtilitiesAssembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 4.0.9584+ba1aaa26d4181dd3fa8ed7b6398391d1affa36c8
Syntaxpublic static RawImageData CreateHeightRawImageData(
float[,] data,
GradientStop[] gradientStops,
bool isColorAlphaPremultiplied = false
)
Parameters
- data Single
- Two-dimensional array of height data.
- gradientStops GradientStop
- Array of gradient stops.
- isColorAlphaPremultiplied Boolean (Optional)
- when true, then the colors in gradientStops are already alpha-premultiplied. When false (by default), then the colors are not alpha-premultiplied
Return Value
RawImageDataGenerated texture.
See Also