Click or drag to resize
AB4D logo

HeightMapMesh3DCreateGradientTexture Method

CreateGradientTexture returns a a one dimensional texture textureWidth x 1 pixel) created from the specified gradient.

Namespace: Ab3d.Meshes
Assembly: Ab3d.PowerToys (in Ab3d.PowerToys.dll) Version: 11.1.8864.1045
Syntax
C#
public static WriteableBitmap CreateGradientTexture(
	LinearGradientBrush gradient,
	int textureWidth
)

Parameters

gradient  LinearGradientBrush
gradient
textureWidth  Int32
width of the bitmap in pixels

Return Value

WriteableBitmap
bitmapWidth x 1 pixels bitmap created from the specified gradient
See Also