• 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 BrushApplicator<TPixel>

    Performs the application of an Brush implementation against individual scanlines.

    Inheritance
    object
    BrushApplicator<TPixel>
    Implements
    IDisposable
    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 abstract class BrushApplicator<TPixel> : IDisposable where TPixel : unmanaged, IPixel<TPixel>
    Type Parameters
    Name Description
    TPixel

    The pixel format.

    Constructors

    | Edit this page View Source

    BrushApplicator(Configuration, GraphicsOptions, ImageFrame<TPixel>)

    Initializes a new instance of the BrushApplicator<TPixel> class.

    Declaration
    protected BrushApplicator(Configuration configuration, GraphicsOptions options, ImageFrame<TPixel> target)
    Parameters
    Type Name Description
    Configuration configuration

    The configuration instance to use when performing operations.

    GraphicsOptions options

    The graphics options.

    ImageFrame<TPixel> target

    The target image frame.

    Properties

    | Edit this page View Source

    Configuration

    Gets the configuration instance to use when performing operations.

    Declaration
    protected Configuration Configuration { get; }
    Property Value
    Type Description
    Configuration
    | Edit this page View Source

    Options

    Gets the graphics options

    Declaration
    protected GraphicsOptions Options { get; }
    Property Value
    Type Description
    GraphicsOptions
    | Edit this page View Source

    Target

    Gets the target image frame.

    Declaration
    protected ImageFrame<TPixel> Target { get; }
    Property Value
    Type Description
    ImageFrame<TPixel>

    Methods

    | Edit this page View Source

    Apply(Span<float>, int, int)

    Applies the opacity weighting for each pixel in a scanline to the target based on the pattern contained in the brush.

    Declaration
    public abstract void Apply(Span<float> scanline, int x, int y)
    Parameters
    Type Name Description
    Span<float> scanline

    A collection of opacity values between 0 and 1 to be merged with the brushed color value before being applied to the target.

    int x

    The x-position in the target pixel space that the start of the scanline data corresponds to.

    int y

    The y-position in the target pixel space that whole scanline corresponds to.

    | Edit this page View Source

    Dispose()

    Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

    Declaration
    public void Dispose()
    | Edit this page View Source

    Dispose(bool)

    Disposes the object and frees resources for the Garbage Collector.

    Declaration
    protected virtual void Dispose(bool disposing)
    Parameters
    Type Name Description
    bool disposing

    Whether to dispose managed and unmanaged objects.

    Implements

    IDisposable

    See Also

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