Wpf |
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).