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