Class BrushApplicator<TPixel>
Performs the application of an IBrush implementation against individual scanlines.
Implements
Inherited Members
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 SourceConfiguration
Gets the configuration instance to use when performing operations.
Declaration
protected Configuration Configuration { get; }
Property Value
Type | Description |
---|---|
Configuration |
Options
Gets the graphics options
Declaration
protected GraphicsOptions Options { get; }
Property Value
Type | Description |
---|---|
GraphicsOptions |
Target
Gets the target image frame.
Declaration
protected ImageFrame<TPixel> Target { get; }
Property Value
Type | Description |
---|---|
ImageFrame<TPixel> |
Methods
| Improve this Doc View SourceApply(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. |
Dispose()
Declaration
public void Dispose()
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. |