 |
TextureFactoryCreateHeightRawImageData(Single, Single, 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.1.9680+a1b1e43de1ad9a7e35472c33948d688d7b40ef79
Syntaxpublic static RawImageData CreateHeightRawImageData(
float[,] data,
float minValue,
float maxValue,
GradientStop[] gradientStops,
bool isColorAlphaPremultiplied = false
)
Parameters
- data Single
- Two-dimensional array of height data.
- minValue Single
- Minimum value in the data.
- maxValue Single
- Maximum value in the 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 RawImageData.
See Also