// Copyright (c) Six Labors. // Licensed under the Six Labors Split License. namespace SixLabors.ImageSharp.Drawing.Processing { /// /// A collection of methods for creating generic brushes. /// public static partial class Brushes { /// /// Creates a brush that paints a solid color. /// /// The brush color. /// A new . public static SolidBrush Solid(Color color) => new(color); /// /// Creates a brush that paints horizontal line hatching using the foreground color on a transparent background. /// /// The foreground color. /// A new . public static PatternBrush Horizontal(Color foreColor) => new(foreColor, Color.Transparent, HorizontalPattern); /// /// Creates a brush that paints horizontal line hatching using the specified foreground and background colors. /// /// The foreground color. /// The background color. /// A new . public static PatternBrush Horizontal(Color foreColor, Color backColor) => new(foreColor, backColor, HorizontalPattern); /// /// Creates a brush that paints horizontal line hatching for the minimum hatch style using the foreground color on a transparent background. /// /// The foreground color. /// A new . public static PatternBrush Min(Color foreColor) => new(foreColor, Color.Transparent, HorizontalPattern); /// /// Creates a brush that paints horizontal line hatching for the minimum hatch style using the specified foreground and background colors. /// /// The foreground color. /// The background color. /// A new . public static PatternBrush Min(Color foreColor, Color backColor) => new(foreColor, backColor, HorizontalPattern); /// /// Creates a brush that paints vertical line hatching using the foreground color on a transparent background. /// /// The foreground color. /// A new . public static PatternBrush Vertical(Color foreColor) => new(foreColor, Color.Transparent, VerticalPattern); /// /// Creates a brush that paints vertical line hatching using the specified foreground and background colors. /// /// The foreground color. /// The background color. /// A new . public static PatternBrush Vertical(Color foreColor, Color backColor) => new(foreColor, backColor, VerticalPattern); /// /// Creates a brush that paints diagonal line hatching from upper left to lower right using the foreground color on a transparent background. /// /// The foreground color. /// A new . public static PatternBrush ForwardDiagonal(Color foreColor) => new(foreColor, Color.Transparent, ForwardDiagonalPattern); /// /// Creates a brush that paints diagonal line hatching from upper left to lower right using the specified foreground and background colors. /// /// The foreground color. /// The background color. /// A new . public static PatternBrush ForwardDiagonal(Color foreColor, Color backColor) => new(foreColor, backColor, ForwardDiagonalPattern); /// /// Creates a brush that paints diagonal line hatching from upper right to lower left using the foreground color on a transparent background. /// /// The foreground color. /// A new . public static PatternBrush BackwardDiagonal(Color foreColor) => new(foreColor, Color.Transparent, BackwardDiagonalPattern); /// /// Creates a brush that paints diagonal line hatching from upper right to lower left using the specified foreground and background colors. /// /// The foreground color. /// The background color. /// A new . public static PatternBrush BackwardDiagonal(Color foreColor, Color backColor) => new(foreColor, backColor, BackwardDiagonalPattern); /// /// Creates a brush that paints intersecting horizontal and vertical line hatching using the foreground color on a transparent background. /// /// The foreground color. /// A new . public static PatternBrush Cross(Color foreColor) => new(foreColor, Color.Transparent, CrossPattern); /// /// Creates a brush that paints intersecting horizontal and vertical line hatching using the specified foreground and background colors. /// /// The foreground color. /// The background color. /// A new . public static PatternBrush Cross(Color foreColor, Color backColor) => new(foreColor, backColor, CrossPattern); /// /// Creates a brush that paints intersecting forward and backward diagonal line hatching using the foreground color on a transparent background. /// /// The foreground color. /// A new . public static PatternBrush DiagonalCross(Color foreColor) => new(foreColor, Color.Transparent, DiagonalCrossPattern); /// /// Creates a brush that paints intersecting forward and backward diagonal line hatching using the specified foreground and background colors. /// /// The foreground color. /// The background color. /// A new . public static PatternBrush DiagonalCross(Color foreColor, Color backColor) => new(foreColor, backColor, DiagonalCrossPattern); /// /// Creates a brush that paints a 5-percent hatch using the foreground color on a transparent background; the foreground-to-background color ratio is 5:95. /// /// The foreground color. /// A new . public static PatternBrush Percent05(Color foreColor) => new(foreColor, Color.Transparent, Percent05Pattern); /// /// Creates a brush that paints a 5-percent hatch using the specified foreground and background colors; the foreground-to-background color ratio is 5:95. /// /// The foreground color. /// The background color. /// A new . public static PatternBrush Percent05(Color foreColor, Color backColor) => new(foreColor, backColor, Percent05Pattern); /// /// Creates a brush that paints a 10-percent hatch using the foreground color on a transparent background; the foreground-to-background color ratio is 10:90. /// /// The foreground color. /// A new . public static PatternBrush Percent10(Color foreColor) => new(foreColor, Color.Transparent, Percent10Pattern); /// /// Creates a brush that paints a 10-percent hatch using the specified foreground and background colors; the foreground-to-background color ratio is 10:90. /// /// The foreground color. /// The background color. /// A new . public static PatternBrush Percent10(Color foreColor, Color backColor) => new(foreColor, backColor, Percent10Pattern); /// /// Creates a brush that paints a 20-percent hatch using the foreground color on a transparent background; the foreground-to-background color ratio is 20:80. /// /// The foreground color. /// A new . public static PatternBrush Percent20(Color foreColor) => new(foreColor, Color.Transparent, Percent20Pattern); /// /// Creates a brush that paints a 20-percent hatch using the specified foreground and background colors; the foreground-to-background color ratio is 20:80. /// /// The foreground color. /// The background color. /// A new . public static PatternBrush Percent20(Color foreColor, Color backColor) => new(foreColor, backColor, Percent20Pattern); /// /// Creates a brush that paints a 25-percent hatch using the foreground color on a transparent background; the foreground-to-background color ratio is 25:75. /// /// The foreground color. /// A new . public static PatternBrush Percent25(Color foreColor) => new(foreColor, Color.Transparent, Percent25Pattern); /// /// Creates a brush that paints a 25-percent hatch using the specified foreground and background colors; the foreground-to-background color ratio is 25:75. /// /// The foreground color. /// The background color. /// A new . public static PatternBrush Percent25(Color foreColor, Color backColor) => new(foreColor, backColor, Percent25Pattern); /// /// Creates a brush that paints a 30-percent hatch using the foreground color on a transparent background; the foreground-to-background color ratio is 30:70. /// /// The foreground color. /// A new . public static PatternBrush Percent30(Color foreColor) => new(foreColor, Color.Transparent, Percent30Pattern); /// /// Creates a brush that paints a 30-percent hatch using the specified foreground and background colors; the foreground-to-background color ratio is 30:70. /// /// The foreground color. /// The background color. /// A new . public static PatternBrush Percent30(Color foreColor, Color backColor) => new(foreColor, backColor, Percent30Pattern); /// /// Creates a brush that paints a 40-percent hatch using the foreground color on a transparent background; the foreground-to-background color ratio is 40:60. /// /// The foreground color. /// A new . public static PatternBrush Percent40(Color foreColor) => new(foreColor, Color.Transparent, Percent40Pattern); /// /// Creates a brush that paints a 40-percent hatch using the specified foreground and background colors; the foreground-to-background color ratio is 40:60. /// /// The foreground color. /// The background color. /// A new . public static PatternBrush Percent40(Color foreColor, Color backColor) => new(foreColor, backColor, Percent40Pattern); /// /// Creates a brush that paints a 50-percent hatch using the foreground color on a transparent background; the foreground-to-background color ratio is 50:50. /// /// The foreground color. /// A new . public static PatternBrush Percent50(Color foreColor) => new(foreColor, Color.Transparent, Percent50Pattern); /// /// Creates a brush that paints a 50-percent hatch using the specified foreground and background colors; the foreground-to-background color ratio is 50:50. /// /// The foreground color. /// The background color. /// A new . public static PatternBrush Percent50(Color foreColor, Color backColor) => new(foreColor, backColor, Percent50Pattern); /// /// Creates a brush that paints a 60-percent hatch using the foreground color on a transparent background; the foreground-to-background color ratio is 60:40. /// /// The foreground color. /// A new . public static PatternBrush Percent60(Color foreColor) => new(foreColor, Color.Transparent, Percent60Pattern); /// /// Creates a brush that paints a 60-percent hatch using the specified foreground and background colors; the foreground-to-background color ratio is 60:40. /// /// The foreground color. /// The background color. /// A new . public static PatternBrush Percent60(Color foreColor, Color backColor) => new(foreColor, backColor, Percent60Pattern); /// /// Creates a brush that paints a 70-percent hatch using the foreground color on a transparent background; the foreground-to-background color ratio is 70:30. /// /// The foreground color. /// A new . public static PatternBrush Percent70(Color foreColor) => new(foreColor, Color.Transparent, Percent70Pattern); /// /// Creates a brush that paints a 70-percent hatch using the specified foreground and background colors; the foreground-to-background color ratio is 70:30. /// /// The foreground color. /// The background color. /// A new . public static PatternBrush Percent70(Color foreColor, Color backColor) => new(foreColor, backColor, Percent70Pattern); /// /// Creates a brush that paints a 75-percent hatch using the foreground color on a transparent background; the foreground-to-background color ratio is 75:25. /// /// The foreground color. /// A new . public static PatternBrush Percent75(Color foreColor) => new(foreColor, Color.Transparent, Percent75Pattern); /// /// Creates a brush that paints a 75-percent hatch using the specified foreground and background colors; the foreground-to-background color ratio is 75:25. /// /// The foreground color. /// The background color. /// A new . public static PatternBrush Percent75(Color foreColor, Color backColor) => new(foreColor, backColor, Percent75Pattern); /// /// Creates a brush that paints an 80-percent hatch using the foreground color on a transparent background; the foreground-to-background color ratio is 80:20. /// /// The foreground color. /// A new . public static PatternBrush Percent80(Color foreColor) => new(foreColor, Color.Transparent, Percent80Pattern); /// /// Creates a brush that paints an 80-percent hatch using the specified foreground and background colors; the foreground-to-background color ratio is 80:20. /// /// The foreground color. /// The background color. /// A new . public static PatternBrush Percent80(Color foreColor, Color backColor) => new(foreColor, backColor, Percent80Pattern); /// /// Creates a brush that paints a 90-percent hatch using the foreground color on a transparent background; the foreground-to-background color ratio is 90:10. /// /// The foreground color. /// A new . public static PatternBrush Percent90(Color foreColor) => new(foreColor, Color.Transparent, Percent90Pattern); /// /// Creates a brush that paints a 90-percent hatch using the specified foreground and background colors; the foreground-to-background color ratio is 90:10. /// /// The foreground color. /// The background color. /// A new . public static PatternBrush Percent90(Color foreColor, Color backColor) => new(foreColor, backColor, Percent90Pattern); /// /// Creates a brush that paints downward diagonal lines spaced more closely than ForwardDiagonal using the foreground color on a transparent background. /// /// The foreground color. /// A new . public static PatternBrush LightDownwardDiagonal(Color foreColor) => new(foreColor, Color.Transparent, LightDownwardDiagonalPattern); /// /// Creates a brush that paints downward diagonal lines spaced more closely than ForwardDiagonal using the specified foreground and background colors. /// /// The foreground color. /// The background color. /// A new . public static PatternBrush LightDownwardDiagonal(Color foreColor, Color backColor) => new(foreColor, backColor, LightDownwardDiagonalPattern); /// /// Creates a brush that paints upward diagonal lines spaced more closely than BackwardDiagonal using the foreground color on a transparent background. /// /// The foreground color. /// A new . public static PatternBrush LightUpwardDiagonal(Color foreColor) => new(foreColor, Color.Transparent, LightUpwardDiagonalPattern); /// /// Creates a brush that paints upward diagonal lines spaced more closely than BackwardDiagonal using the specified foreground and background colors. /// /// The foreground color. /// The background color. /// A new . public static PatternBrush LightUpwardDiagonal(Color foreColor, Color backColor) => new(foreColor, backColor, LightUpwardDiagonalPattern); /// /// Creates a brush that paints thicker downward diagonal lines spaced more closely than ForwardDiagonal using the foreground color on a transparent background. /// /// The foreground color. /// A new . public static PatternBrush DarkDownwardDiagonal(Color foreColor) => new(foreColor, Color.Transparent, DarkDownwardDiagonalPattern); /// /// Creates a brush that paints thicker downward diagonal lines spaced more closely than ForwardDiagonal using the specified foreground and background colors. /// /// The foreground color. /// The background color. /// A new . public static PatternBrush DarkDownwardDiagonal(Color foreColor, Color backColor) => new(foreColor, backColor, DarkDownwardDiagonalPattern); /// /// Creates a brush that paints thicker upward diagonal lines spaced more closely than BackwardDiagonal using the foreground color on a transparent background. /// /// The foreground color. /// A new . public static PatternBrush DarkUpwardDiagonal(Color foreColor) => new(foreColor, Color.Transparent, DarkUpwardDiagonalPattern); /// /// Creates a brush that paints thicker upward diagonal lines spaced more closely than BackwardDiagonal using the specified foreground and background colors. /// /// The foreground color. /// The background color. /// A new . public static PatternBrush DarkUpwardDiagonal(Color foreColor, Color backColor) => new(foreColor, backColor, DarkUpwardDiagonalPattern); /// /// Creates a brush that paints wide downward diagonal lines with ForwardDiagonal spacing using the foreground color on a transparent background. /// /// The foreground color. /// A new . public static PatternBrush WideDownwardDiagonal(Color foreColor) => new(foreColor, Color.Transparent, WideDownwardDiagonalPattern); /// /// Creates a brush that paints wide downward diagonal lines with ForwardDiagonal spacing using the specified foreground and background colors. /// /// The foreground color. /// The background color. /// A new . public static PatternBrush WideDownwardDiagonal(Color foreColor, Color backColor) => new(foreColor, backColor, WideDownwardDiagonalPattern); /// /// Creates a brush that paints wide upward diagonal lines with BackwardDiagonal spacing using the foreground color on a transparent background. /// /// The foreground color. /// A new . public static PatternBrush WideUpwardDiagonal(Color foreColor) => new(foreColor, Color.Transparent, WideUpwardDiagonalPattern); /// /// Creates a brush that paints wide upward diagonal lines with BackwardDiagonal spacing using the specified foreground and background colors. /// /// The foreground color. /// The background color. /// A new . public static PatternBrush WideUpwardDiagonal(Color foreColor, Color backColor) => new(foreColor, backColor, WideUpwardDiagonalPattern); /// /// Creates a brush that paints vertical lines spaced more closely than Vertical using the foreground color on a transparent background. /// /// The foreground color. /// A new . public static PatternBrush LightVertical(Color foreColor) => new(foreColor, Color.Transparent, LightVerticalPattern); /// /// Creates a brush that paints vertical lines spaced more closely than Vertical using the specified foreground and background colors. /// /// The foreground color. /// The background color. /// A new . public static PatternBrush LightVertical(Color foreColor, Color backColor) => new(foreColor, backColor, LightVerticalPattern); /// /// Creates a brush that paints horizontal lines spaced more closely than Horizontal using the foreground color on a transparent background. /// /// The foreground color. /// A new . public static PatternBrush LightHorizontal(Color foreColor) => new(foreColor, Color.Transparent, LightHorizontalPattern); /// /// Creates a brush that paints horizontal lines spaced more closely than Horizontal using the specified foreground and background colors. /// /// The foreground color. /// The background color. /// A new . public static PatternBrush LightHorizontal(Color foreColor, Color backColor) => new(foreColor, backColor, LightHorizontalPattern); /// /// Creates a brush that paints narrow vertical lines spaced more closely than LightVertical using the foreground color on a transparent background. /// /// The foreground color. /// A new . public static PatternBrush NarrowVertical(Color foreColor) => new(foreColor, Color.Transparent, NarrowVerticalPattern); /// /// Creates a brush that paints narrow vertical lines spaced more closely than LightVertical using the specified foreground and background colors. /// /// The foreground color. /// The background color. /// A new . public static PatternBrush NarrowVertical(Color foreColor, Color backColor) => new(foreColor, backColor, NarrowVerticalPattern); /// /// Creates a brush that paints narrow horizontal lines spaced more closely than LightHorizontal using the foreground color on a transparent background. /// /// The foreground color. /// A new . public static PatternBrush NarrowHorizontal(Color foreColor) => new(foreColor, Color.Transparent, NarrowHorizontalPattern); /// /// Creates a brush that paints narrow horizontal lines spaced more closely than LightHorizontal using the specified foreground and background colors. /// /// The foreground color. /// The background color. /// A new . public static PatternBrush NarrowHorizontal(Color foreColor, Color backColor) => new(foreColor, backColor, NarrowHorizontalPattern); /// /// Creates a brush that paints thicker vertical lines spaced more closely than Vertical using the foreground color on a transparent background. /// /// The foreground color. /// A new . public static PatternBrush DarkVertical(Color foreColor) => new(foreColor, Color.Transparent, DarkVerticalPattern); /// /// Creates a brush that paints thicker vertical lines spaced more closely than Vertical using the specified foreground and background colors. /// /// The foreground color. /// The background color. /// A new . public static PatternBrush DarkVertical(Color foreColor, Color backColor) => new(foreColor, backColor, DarkVerticalPattern); /// /// Creates a brush that paints thicker horizontal lines spaced more closely than Horizontal using the foreground color on a transparent background. /// /// The foreground color. /// A new . public static PatternBrush DarkHorizontal(Color foreColor) => new(foreColor, Color.Transparent, DarkHorizontalPattern); /// /// Creates a brush that paints thicker horizontal lines spaced more closely than Horizontal using the specified foreground and background colors. /// /// The foreground color. /// The background color. /// A new . public static PatternBrush DarkHorizontal(Color foreColor, Color backColor) => new(foreColor, backColor, DarkHorizontalPattern); /// /// Creates a brush that paints dashed diagonal lines from upper left to lower right using the foreground color on a transparent background. /// /// The foreground color. /// A new . public static PatternBrush DashedDownwardDiagonal(Color foreColor) => new(foreColor, Color.Transparent, DashedDownwardDiagonalPattern); /// /// Creates a brush that paints dashed diagonal lines from upper left to lower right using the specified foreground and background colors. /// /// The foreground color. /// The background color. /// A new . public static PatternBrush DashedDownwardDiagonal(Color foreColor, Color backColor) => new(foreColor, backColor, DashedDownwardDiagonalPattern); /// /// Creates a brush that paints dashed diagonal lines from upper right to lower left using the foreground color on a transparent background. /// /// The foreground color. /// A new . public static PatternBrush DashedUpwardDiagonal(Color foreColor) => new(foreColor, Color.Transparent, DashedUpwardDiagonalPattern); /// /// Creates a brush that paints dashed diagonal lines from upper right to lower left using the specified foreground and background colors. /// /// The foreground color. /// The background color. /// A new . public static PatternBrush DashedUpwardDiagonal(Color foreColor, Color backColor) => new(foreColor, backColor, DashedUpwardDiagonalPattern); /// /// Creates a brush that paints dashed horizontal lines using the foreground color on a transparent background. /// /// The foreground color. /// A new . public static PatternBrush DashedHorizontal(Color foreColor) => new(foreColor, Color.Transparent, DashedHorizontalPattern); /// /// Creates a brush that paints dashed horizontal lines using the specified foreground and background colors. /// /// The foreground color. /// The background color. /// A new . public static PatternBrush DashedHorizontal(Color foreColor, Color backColor) => new(foreColor, backColor, DashedHorizontalPattern); /// /// Creates a brush that paints dashed vertical lines using the foreground color on a transparent background. /// /// The foreground color. /// A new . public static PatternBrush DashedVertical(Color foreColor) => new(foreColor, Color.Transparent, DashedVerticalPattern); /// /// Creates a brush that paints dashed vertical lines using the specified foreground and background colors. /// /// The foreground color. /// The background color. /// A new . public static PatternBrush DashedVertical(Color foreColor, Color backColor) => new(foreColor, backColor, DashedVerticalPattern); /// /// Creates a brush that paints a small confetti-style hatch using the foreground color on a transparent background. /// /// The foreground color. /// A new . public static PatternBrush SmallConfetti(Color foreColor) => new(foreColor, Color.Transparent, SmallConfettiPattern); /// /// Creates a brush that paints a small confetti-style hatch using the specified foreground and background colors. /// /// The foreground color. /// The background color. /// A new . public static PatternBrush SmallConfetti(Color foreColor, Color backColor) => new(foreColor, backColor, SmallConfettiPattern); /// /// Creates a brush that paints a confetti-style hatch with larger pieces than SmallConfetti using the foreground color on a transparent background. /// /// The foreground color. /// A new . public static PatternBrush LargeConfetti(Color foreColor) => new(foreColor, Color.Transparent, LargeConfettiPattern); /// /// Creates a brush that paints a confetti-style hatch with larger pieces than SmallConfetti using the specified foreground and background colors. /// /// The foreground color. /// The background color. /// A new . public static PatternBrush LargeConfetti(Color foreColor, Color backColor) => new(foreColor, backColor, LargeConfettiPattern); /// /// Creates a brush that paints horizontal lines formed from zigzags using the foreground color on a transparent background. /// /// The foreground color. /// A new . public static PatternBrush ZigZag(Color foreColor) => new(foreColor, Color.Transparent, ZigZagPattern); /// /// Creates a brush that paints horizontal lines formed from zigzags using the specified foreground and background colors. /// /// The foreground color. /// The background color. /// A new . public static PatternBrush ZigZag(Color foreColor, Color backColor) => new(foreColor, backColor, ZigZagPattern); /// /// Creates a brush that paints horizontal lines formed from wave shapes using the foreground color on a transparent background. /// /// The foreground color. /// A new . public static PatternBrush Wave(Color foreColor) => new(foreColor, Color.Transparent, WavePattern); /// /// Creates a brush that paints horizontal lines formed from wave shapes using the specified foreground and background colors. /// /// The foreground color. /// The background color. /// A new . public static PatternBrush Wave(Color foreColor, Color backColor) => new(foreColor, backColor, WavePattern); /// /// Creates a brush that paints staggered brick shapes running diagonally upward using the foreground color on a transparent background. /// /// The foreground color. /// A new . public static PatternBrush DiagonalBrick(Color foreColor) => new(foreColor, Color.Transparent, DiagonalBrickPattern); /// /// Creates a brush that paints staggered brick shapes running diagonally upward using the specified foreground and background colors. /// /// The foreground color. /// The background color. /// A new . public static PatternBrush DiagonalBrick(Color foreColor, Color backColor) => new(foreColor, backColor, DiagonalBrickPattern); /// /// Creates a brush that paints staggered brick shapes arranged horizontally using the foreground color on a transparent background. /// /// The foreground color. /// A new . public static PatternBrush HorizontalBrick(Color foreColor) => new(foreColor, Color.Transparent, HorizontalBrickPattern); /// /// Creates a brush that paints staggered brick shapes arranged horizontally using the specified foreground and background colors. /// /// The foreground color. /// The background color. /// A new . public static PatternBrush HorizontalBrick(Color foreColor, Color backColor) => new(foreColor, backColor, HorizontalBrickPattern); /// /// Creates a brush that paints a woven-material hatch using the foreground color on a transparent background. /// /// The foreground color. /// A new . public static PatternBrush Weave(Color foreColor) => new(foreColor, Color.Transparent, WeavePattern); /// /// Creates a brush that paints a woven-material hatch using the specified foreground and background colors. /// /// The foreground color. /// The background color. /// A new . public static PatternBrush Weave(Color foreColor, Color backColor) => new(foreColor, backColor, WeavePattern); /// /// Creates a brush that paints a plaid-material hatch using the foreground color on a transparent background. /// /// The foreground color. /// A new . public static PatternBrush Plaid(Color foreColor) => new(foreColor, Color.Transparent, PlaidPattern); /// /// Creates a brush that paints a plaid-material hatch using the specified foreground and background colors. /// /// The foreground color. /// The background color. /// A new . public static PatternBrush Plaid(Color foreColor, Color backColor) => new(foreColor, backColor, PlaidPattern); /// /// Creates a brush that paints a divot-style hatch using the foreground color on a transparent background. /// /// The foreground color. /// A new . public static PatternBrush Divot(Color foreColor) => new(foreColor, Color.Transparent, DivotPattern); /// /// Creates a brush that paints a divot-style hatch using the specified foreground and background colors. /// /// The foreground color. /// The background color. /// A new . public static PatternBrush Divot(Color foreColor, Color backColor) => new(foreColor, backColor, DivotPattern); /// /// Creates a brush that paints intersecting horizontal and vertical dotted lines using the foreground color on a transparent background. /// /// The foreground color. /// A new . public static PatternBrush DottedGrid(Color foreColor) => new(foreColor, Color.Transparent, DottedGridPattern); /// /// Creates a brush that paints intersecting horizontal and vertical dotted lines using the specified foreground and background colors. /// /// The foreground color. /// The background color. /// A new . public static PatternBrush DottedGrid(Color foreColor, Color backColor) => new(foreColor, backColor, DottedGridPattern); /// /// Creates a brush that paints intersecting forward and backward diagonal dotted lines using the foreground color on a transparent background. /// /// The foreground color. /// A new . public static PatternBrush DottedDiamond(Color foreColor) => new(foreColor, Color.Transparent, DottedDiamondPattern); /// /// Creates a brush that paints intersecting forward and backward diagonal dotted lines using the specified foreground and background colors. /// /// The foreground color. /// The background color. /// A new . public static PatternBrush DottedDiamond(Color foreColor, Color backColor) => new(foreColor, backColor, DottedDiamondPattern); /// /// Creates a brush that paints layered shingle shapes running diagonally downward using the foreground color on a transparent background. /// /// The foreground color. /// A new . public static PatternBrush Shingle(Color foreColor) => new(foreColor, Color.Transparent, ShinglePattern); /// /// Creates a brush that paints layered shingle shapes running diagonally downward using the specified foreground and background colors. /// /// The foreground color. /// The background color. /// A new . public static PatternBrush Shingle(Color foreColor, Color backColor) => new(foreColor, backColor, ShinglePattern); /// /// Creates a brush that paints a trellis-style hatch using the foreground color on a transparent background. /// /// The foreground color. /// A new . public static PatternBrush Trellis(Color foreColor) => new(foreColor, Color.Transparent, TrellisPattern); /// /// Creates a brush that paints a trellis-style hatch using the specified foreground and background colors. /// /// The foreground color. /// The background color. /// A new . public static PatternBrush Trellis(Color foreColor, Color backColor) => new(foreColor, backColor, TrellisPattern); /// /// Creates a brush that paints adjacent sphere-like shapes using the foreground color on a transparent background. /// /// The foreground color. /// A new . public static PatternBrush Sphere(Color foreColor) => new(foreColor, Color.Transparent, SpherePattern); /// /// Creates a brush that paints adjacent sphere-like shapes using the specified foreground and background colors. /// /// The foreground color. /// The background color. /// A new . public static PatternBrush Sphere(Color foreColor, Color backColor) => new(foreColor, backColor, SpherePattern); /// /// Creates a brush that paints intersecting horizontal and vertical lines spaced more closely than Cross using the foreground color on a transparent background. /// /// The foreground color. /// A new . public static PatternBrush SmallGrid(Color foreColor) => new(foreColor, Color.Transparent, SmallGridPattern); /// /// Creates a brush that paints intersecting horizontal and vertical lines spaced more closely than Cross using the specified foreground and background colors. /// /// The foreground color. /// The background color. /// A new . public static PatternBrush SmallGrid(Color foreColor, Color backColor) => new(foreColor, backColor, SmallGridPattern); /// /// Creates a brush that paints a small checkerboard hatch using the foreground color on a transparent background. /// /// The foreground color. /// A new . public static PatternBrush SmallCheckerBoard(Color foreColor) => new(foreColor, Color.Transparent, SmallCheckerBoardPattern); /// /// Creates a brush that paints a small checkerboard hatch using the specified foreground and background colors. /// /// The foreground color. /// The background color. /// A new . public static PatternBrush SmallCheckerBoard(Color foreColor, Color backColor) => new(foreColor, backColor, SmallCheckerBoardPattern); /// /// Creates a brush that paints a checkerboard hatch with larger squares than SmallCheckerBoard using the foreground color on a transparent background. /// /// The foreground color. /// A new . public static PatternBrush LargeCheckerBoard(Color foreColor) => new(foreColor, Color.Transparent, LargeCheckerBoardPattern); /// /// Creates a brush that paints a checkerboard hatch with larger squares than SmallCheckerBoard using the specified foreground and background colors. /// /// The foreground color. /// The background color. /// A new . public static PatternBrush LargeCheckerBoard(Color foreColor, Color backColor) => new(foreColor, backColor, LargeCheckerBoardPattern); /// /// Creates a brush that paints outlined diamond shapes formed by crossing diagonal lines using the foreground color on a transparent background. /// /// The foreground color. /// A new . public static PatternBrush OutlinedDiamond(Color foreColor) => new(foreColor, Color.Transparent, OutlinedDiamondPattern); /// /// Creates a brush that paints outlined diamond shapes formed by crossing diagonal lines using the specified foreground and background colors. /// /// The foreground color. /// The background color. /// A new . public static PatternBrush OutlinedDiamond(Color foreColor, Color backColor) => new(foreColor, backColor, OutlinedDiamondPattern); /// /// Creates a brush that paints a filled diamond checkerboard hatch using the foreground color on a transparent background. /// /// The foreground color. /// A new . public static PatternBrush SolidDiamond(Color foreColor) => new(foreColor, Color.Transparent, SolidDiamondPattern); /// /// Creates a brush that paints a filled diamond checkerboard hatch using the specified foreground and background colors. /// /// The foreground color. /// The background color. /// A new . public static PatternBrush SolidDiamond(Color foreColor, Color backColor) => new(foreColor, backColor, SolidDiamondPattern); } }