• Articles
  • API Documentation
Search Results for

    Show / Hide Table of Contents
    • SixLabors.ImageSharp.Drawing
      • ClipPathExtensions
      • ComplexPolygon
      • CubicBezierLineSegment
      • EllipsePolygon
      • EndCapStyle
      • ILineSegment
      • IntersectionRule
      • IPath
      • IPathCollection
      • ISimplePath
      • JointStyle
      • LinearLineSegment
      • OutlinePathExtensions
      • Path
      • PathBuilder
      • PathCollection
      • PathExtensions
      • PathTypes
      • Polygon
      • RectangularPolygon
      • Region
      • RegularPolygon
      • SegmentInfo
      • Star
      • TextBuilder
    • SixLabors.ImageSharp.Drawing.PolygonClipper
      • ClippablePath
      • Clipper
      • ClippingType
    • SixLabors.ImageSharp.Drawing.Processing
      • BrushApplicator<TPixel>
      • Brushes
      • ClearExtensions
      • ClearPathExtensions
      • ClearRectangleExtensions
      • ClearRegionExtensions
      • ColorStop
      • DrawBezierExtensions
      • DrawingOptions
      • DrawingOptionsDefaultsExtensions
      • DrawLineExtensions
      • DrawPathCollectionExtensions
      • DrawPathExtensions
      • DrawPolygonExtensions
      • DrawRectangleExtensions
      • DrawTextExtensions
      • EllipticGradientBrush
      • FillExtensions
      • FillPathBuilderExtensions
      • FillPathCollectionExtensions
      • FillPathExtensions
      • FillPolygonExtensions
      • FillRectangleExtensions
      • FillRegionExtensions
      • GradientBrush
      • GradientRepetitionMode
      • IBrush
      • ImageBrush
      • IPen
      • LinearGradientBrush
      • PathGradientBrush
      • PatternBrush
      • Pen
      • Pens
      • RadialGradientBrush
      • RecolorBrush
      • ShapeGraphicOptionsDefaultsExtensions
      • ShapeOptions
      • SolidBrush
      • TextOptions
      • TextOptionsDefaultsExtensions
    • SixLabors.ImageSharp.Drawing.Processing.Processors.Drawing
      • DrawPathProcessor
      • FillPathProcessor
      • FillProcessor
      • FillRegionProcessor
    • SixLabors.ImageSharp.Drawing.Processing.Processors.Text
      • DrawTextProcessor

    Class BrushApplicator<TPixel>

    Performs the application of an IBrush 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 : struct, IPixel<TPixel>
    Type Parameters
    Name Description
    TPixel

    The pixel format.

    Properties

    | Improve this Doc View Source

    Configuration

    Gets the configuration instance to use when performing operations.

    Declaration
    protected Configuration Configuration { get; }
    Property Value
    Type Description
    Configuration
    | Improve this Doc View Source

    Options

    Gets the graphics options

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

    Target

    Gets the target image frame.

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

    Methods

    | Improve this Doc View Source

    Apply(Span<Single>, Int32, Int32)

    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<Single> scanline

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

    Int32 x

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

    Int32 y

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

    | Improve this Doc View Source

    Dispose()

    Declaration
    public void Dispose()
    | Improve this Doc View Source

    Dispose(Boolean)

    Disposes the object and frees resources for the Garbage Collector.

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

    Whether to dispose managed and unmanaged objects.

    Implements

    System.IDisposable

    See Also

    IDisposable
    • Improve this Doc
    • View Source
    In This Article
    Back to top Generated by DocFX