Click or drag to resize
Ab4d.SharpEngine logo

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.Utilities
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 5.0.1075+bc537c8d217949260b11f66ee86aefa6456ac517
Syntax
C#
public 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

RawImageData
Generated texture.
See Also