Click or drag to resize
AB4D logo

WpfMaterialDefaultGradientBrushTextureSize Field

DefaultGradientBrushTextureSize static field defines the width and height of the RenderTargetBitmap that is created when a GradientBrush (LinearGradientBrush or RadialGradientBrush) is rendered into texture that is used in DXEngine. The value can be overridden by RenderedBrushTextureWidth and RenderedBrushTextureHeight properties.

Namespace: Ab3d.DirectX.Materials
Assembly: Ab3d.DXEngine.Wpf (in Ab3d.DXEngine.Wpf.dll) Version: 7.0.8865.1045
Syntax
C#
public static int DefaultGradientBrushTextureSize

Field Value

Int32
Remarks

DefaultGradientBrushTextureSizestatic static field defines the width and height of the RenderTargetBitmap that is created when a GradientBrush (LinearGradientBrush or RadialGradientBrush) is rendered into texture that is used in DXEngine.

The value can be overridden by RenderedBrushTextureWidth and RenderedBrushTextureHeight properties.

When a vertical LinearGradientBrush is rendered, the RenderTargetBitmap height is set to 1 and width is set to DefaultGradientBrushTextureSize (or RenderedBrushTextureWidth when set). Also when a horizontal LinearGradientBrush is rendered, the RenderTargetBitmap width is set to 1 and height is set to DefaultGradientBrushTextureSize (or RenderedBrushTextureHeight when set).

See Also