|
HeightMapMesh3DCreateGradientTexture Method |
CreateGradientTexture returns a a one dimensional texture textureWidth x 1 pixel) created from the specified gradient.
Namespace: Ab3d.MeshesAssembly: Ab3d.PowerToys (in Ab3d.PowerToys.dll) Version: 11.1.8864.1045
Syntax public static WriteableBitmap CreateGradientTexture(
LinearGradientBrush gradient,
int textureWidth
)
Parameters
- gradient LinearGradientBrush
- gradient
- textureWidth Int32
- width of the bitmap in pixels
Return Value
WriteableBitmapbitmapWidth x 1 pixels bitmap created from the specified gradient
See Also