• Articles
  • API Documentation
Search Results for

    Show / Hide Table of Contents
    • SixLabors.ImageSharp.Drawing
      • ArcLineSegment
      • ClipPathExtensions
      • ClippingOperation
      • ComplexPolygon
      • CubicBezierLineSegment
      • EllipsePolygon
      • EmptyPath
      • EndCapStyle
      • ILineSegment
      • IPath
      • IPathCollection
      • ISimplePath
      • IntersectionRule
      • JointStyle
      • LinearLineSegment
      • OutlinePathExtensions
      • Path
      • PathBuilder
      • PathCollection
      • PathExtensions
      • PathTypes
      • Polygon
      • RectangularPolygon
      • RegularPolygon
      • SegmentInfo
      • Star
      • TextBuilder
    • SixLabors.ImageSharp.Drawing.Processing
      • Brush
      • BrushApplicator<TPixel>
      • Brushes
      • ClearExtensions
      • ClearPathExtensions
      • ClearRectangleExtensions
      • ClipPathExtensions
      • ColorStop
      • DrawBezierExtensions
      • DrawLineExtensions
      • DrawPathCollectionExtensions
      • DrawPathExtensions
      • DrawPolygonExtensions
      • DrawRectangleExtensions
      • DrawTextExtensions
      • DrawingOptions
      • DrawingOptionsDefaultsExtensions
      • EllipticGradientBrush
      • FillExtensions
      • FillPathBuilderExtensions
      • FillPathCollectionExtensions
      • FillPathExtensions
      • FillPolygonExtensions
      • FillRectangleExtensions
      • GradientBrush
      • GradientRepetitionMode
      • ImageBrush
      • LinearGradientBrush
      • PathGradientBrush
      • PatternBrush
      • PatternPen
      • Pen
      • PenOptions
      • Pens
      • RadialGradientBrush
      • RecolorBrush
      • RichTextOptions
      • RichTextRun
      • ShapeGraphicOptionsDefaultsExtensions
      • ShapeOptions
      • SolidBrush
      • SolidPen
    • SixLabors.ImageSharp.Drawing.Processing.Processors.Drawing
      • ClipPathProcessor
      • DrawPathProcessor
      • FillPathProcessor
      • FillProcessor
    • SixLabors.ImageSharp.Drawing.Processing.Processors.Text
      • DrawTextProcessor
    • SixLabors.ImageSharp.Drawing.Shapes.PolygonClipper
      • ClipperException
      • ClippingType

    Class Brushes

    A collection of methods for creating generic brushes.

    Inheritance
    object
    Brushes
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: SixLabors.ImageSharp.Drawing.Processing
    Assembly: SixLabors.ImageSharp.Drawing.dll
    Syntax
    public static class Brushes

    Methods

    | Edit this page View Source

    BackwardDiagonal(Color)

    Create as brush that will paint a Backward Diagonal Hatch Pattern with the specified foreground color and a transparent background.

    Declaration
    public static PatternBrush BackwardDiagonal(Color foreColor)
    Parameters
    Type Name Description
    Color foreColor

    Color of the foreground.

    Returns
    Type Description
    PatternBrush

    A new PatternBrush

    | Edit this page View Source

    BackwardDiagonal(Color, Color)

    Create as brush that will paint a Backward Diagonal Hatch Pattern with the specified colors

    Declaration
    public static PatternBrush BackwardDiagonal(Color foreColor, Color backColor)
    Parameters
    Type Name Description
    Color foreColor

    Color of the foreground.

    Color backColor

    Color of the background.

    Returns
    Type Description
    PatternBrush

    A new PatternBrush

    | Edit this page View Source

    ForwardDiagonal(Color)

    Create as brush that will paint a Forward Diagonal Hatch Pattern with the specified foreground color and a transparent background.

    Declaration
    public static PatternBrush ForwardDiagonal(Color foreColor)
    Parameters
    Type Name Description
    Color foreColor

    Color of the foreground.

    Returns
    Type Description
    PatternBrush

    A new PatternBrush

    | Edit this page View Source

    ForwardDiagonal(Color, Color)

    Create as brush that will paint a Forward Diagonal Hatch Pattern with the specified colors

    Declaration
    public static PatternBrush ForwardDiagonal(Color foreColor, Color backColor)
    Parameters
    Type Name Description
    Color foreColor

    Color of the foreground.

    Color backColor

    Color of the background.

    Returns
    Type Description
    PatternBrush

    A new PatternBrush

    | Edit this page View Source

    Horizontal(Color)

    Create as brush that will paint a Horizontal Hatch Pattern with the specified foreground color and a transparent background.

    Declaration
    public static PatternBrush Horizontal(Color foreColor)
    Parameters
    Type Name Description
    Color foreColor

    Color of the foreground.

    Returns
    Type Description
    PatternBrush

    A new PatternBrush

    | Edit this page View Source

    Horizontal(Color, Color)

    Create as brush that will paint a Horizontal Hatch Pattern with the specified colors

    Declaration
    public static PatternBrush Horizontal(Color foreColor, Color backColor)
    Parameters
    Type Name Description
    Color foreColor

    Color of the foreground.

    Color backColor

    Color of the background.

    Returns
    Type Description
    PatternBrush

    A new PatternBrush

    | Edit this page View Source

    Min(Color)

    Create as brush that will paint a Min Hatch Pattern with the specified foreground color and a transparent background.

    Declaration
    public static PatternBrush Min(Color foreColor)
    Parameters
    Type Name Description
    Color foreColor

    Color of the foreground.

    Returns
    Type Description
    PatternBrush

    A new PatternBrush

    | Edit this page View Source

    Min(Color, Color)

    Create as brush that will paint a Min Hatch Pattern with the specified colors

    Declaration
    public static PatternBrush Min(Color foreColor, Color backColor)
    Parameters
    Type Name Description
    Color foreColor

    Color of the foreground.

    Color backColor

    Color of the background.

    Returns
    Type Description
    PatternBrush

    A new PatternBrush

    | Edit this page View Source

    Percent10(Color)

    Create as brush that will paint a Percent10 Hatch Pattern with the specified colors

    Declaration
    public static PatternBrush Percent10(Color foreColor)
    Parameters
    Type Name Description
    Color foreColor

    Color of the foreground.

    Returns
    Type Description
    PatternBrush

    A new PatternBrush

    | Edit this page View Source

    Percent10(Color, Color)

    Create as brush that will paint a Percent10 Hatch Pattern with the specified colors

    Declaration
    public static PatternBrush Percent10(Color foreColor, Color backColor)
    Parameters
    Type Name Description
    Color foreColor

    Color of the foreground.

    Color backColor

    Color of the background.

    Returns
    Type Description
    PatternBrush

    A new PatternBrush

    | Edit this page View Source

    Percent20(Color)

    Create as brush that will paint a Percent20 Hatch Pattern with the specified foreground color and a transparent background.

    Declaration
    public static PatternBrush Percent20(Color foreColor)
    Parameters
    Type Name Description
    Color foreColor

    Color of the foreground.

    Returns
    Type Description
    PatternBrush

    A new PatternBrush

    | Edit this page View Source

    Percent20(Color, Color)

    Create as brush that will paint a Percent20 Hatch Pattern with the specified colors

    Declaration
    public static PatternBrush Percent20(Color foreColor, Color backColor)
    Parameters
    Type Name Description
    Color foreColor

    Color of the foreground.

    Color backColor

    Color of the background.

    Returns
    Type Description
    PatternBrush

    A new PatternBrush

    | Edit this page View Source

    Solid(Color)

    Create as brush that will paint a solid color

    Declaration
    public static SolidBrush Solid(Color color)
    Parameters
    Type Name Description
    Color color

    The color.

    Returns
    Type Description
    SolidBrush

    A new PatternBrush

    | Edit this page View Source

    Vertical(Color)

    Create as brush that will paint a Vertical Hatch Pattern with the specified foreground color and a transparent background.

    Declaration
    public static PatternBrush Vertical(Color foreColor)
    Parameters
    Type Name Description
    Color foreColor

    Color of the foreground.

    Returns
    Type Description
    PatternBrush

    A new PatternBrush

    | Edit this page View Source

    Vertical(Color, Color)

    Create as brush that will paint a Vertical Hatch Pattern with the specified colors

    Declaration
    public static PatternBrush Vertical(Color foreColor, Color backColor)
    Parameters
    Type Name Description
    Color foreColor

    Color of the foreground.

    Color backColor

    Color of the background.

    Returns
    Type Description
    PatternBrush

    A new PatternBrush

    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX