Table of Contents

Namespace SixLabors.ImageSharp.Drawing.Processing

Classes

BackdropAcrylicLayerEffect

Blurs and tints the backdrop beneath a compositing layer, producing a frosted-glass acrylic material. This is the tinted extension of BackdropBlurLayerEffect and has no CSS equivalent; CSS composes the tint from the element's own translucent background instead.

BackdropBlurLayerEffect

Blurs the backdrop beneath a compositing layer. The CSS equivalent is backdrop-filter: blur().

BackdropBrightnessLayerEffect

Adjusts the brightness of the backdrop beneath a compositing layer. The CSS equivalent is backdrop-filter: brightness().

BackdropColorMatrixLayerEffect

Transforms the colours of the backdrop beneath a compositing layer through a colour matrix. The named backdrop colour effects all specialize this; use it directly for matrices they do not cover.

BackdropContrastLayerEffect

Adjusts the contrast of the backdrop beneath a compositing layer. The CSS equivalent is backdrop-filter: contrast().

BackdropDropShadowLayerEffect

Composites a drop shadow of the backdrop's silhouette beneath it. The CSS equivalent is backdrop-filter: drop-shadow().

BackdropGrayscaleLayerEffect

Desaturates the backdrop beneath a compositing layer towards grayscale using ITU-R BT.709 luminance coefficients, matching the CSS definition. The CSS equivalent is backdrop-filter: grayscale().

BackdropHueRotateLayerEffect

Rotates the hue of the backdrop beneath a compositing layer. The CSS equivalent is backdrop-filter: hue-rotate().

BackdropInvertLayerEffect

Inverts the colours of the backdrop beneath a compositing layer. The CSS equivalent is backdrop-filter: invert().

BackdropLayerEffect

Describes an effect applied to the backdrop of a compositing layer: the pixels already on the canvas beneath the layer's region are filtered when the layer is opened, and the layer's content then renders above the filtered backdrop. This is the CSS backdrop-filter model; the filtered result is clipped to the layer's region.

BackdropOpacityLayerEffect

Scales the opacity of the backdrop beneath a compositing layer. The CSS equivalent is backdrop-filter: opacity().

BackdropSaturateLayerEffect

Adjusts the colour saturation of the backdrop beneath a compositing layer. The CSS equivalent is backdrop-filter: saturate().

BackdropSepiaLayerEffect

Shifts the colours of the backdrop beneath a compositing layer towards sepia. The CSS equivalent is backdrop-filter: sepia().

BlurLayerEffect

Blurs the contents of a compositing layer when it is restored.

Brush

Represents a logical configuration of a brush which can be used to source pixel colors.

BrushRenderer<TPixel>

Renders a Brush against individual coverage scanlines.

BrushWorkspace<TPixel>

Worker-local scratch workspace used by prepared brushes during row composition.

Brushes

A collection of methods for creating generic brushes.

ColorMatrixLayerEffect

Transforms the colours of a compositing layer's contents through a colour matrix when the layer is restored. Covers the CSS filter family: grayscale, sepia, saturation, hue rotation, brightness, contrast, and invert are all colour matrices.

DrawingCanvas

Represents a stateful, retained-mode drawing canvas over a frame target.

DrawingCanvasFactoryExtensions

Extension methods for creating drawing canvas instances over ImageSharp image frames.

DrawingCanvas<TPixel>

A drawing canvas over a frame target.

DrawingClipDescriptor

Represents one clip primitive carried by a drawing command.

DrawingOptions

Provides options for influencing drawing operations, combining graphics rendering settings, the fill-rule intersection mode, and an optional coordinate transform.

DrawingOptionsDefaultsExtensions

Adds extensions that help working with DrawingOptions.

DrawingTextCache

Stores reusable text drawing data shared by one or more drawing canvases.

DropShadowLayerEffect

Composites a drop shadow beneath the contents of a compositing layer when it is restored. The shadow is the content's own silhouette tinted with the shadow colour, blurred, and offset.

EllipticGradientBrush

Provides an implementation of a brush for painting elliptical gradients. The ellipse is defined by a center point, a point on the longest axis, and the ratio between the longest and shortest axes.

GlowLayerEffect

Composites a glow beneath the contents of a compositing layer when it is restored: the content's own silhouette tinted with the glow colour and blurred, spreading evenly in all directions.

GradientBrush

Base class for gradient brushes. Derived brushes define a parameterization that maps each point to a scalar gradient position; this base class maps that position to a color via the sorted color stops and the GradientRepetitionMode.

ImageBrush

The untyped base class for image brushes, used to support non-generic brush references in drawing contexts.

ImageBrush<TPixel>

Provides an implementation of an image brush for painting images within areas.

InnerShadowLayerEffect

Composites a shadow inside the contents of a compositing layer when it is restored: the darkness outside the content's silhouette is tinted with the shadow colour, blurred, offset, and clipped onto the content itself, so the shadow hugs the content's inside edges.

LayerEffect

Describes an image effect applied to the contents of a compositing layer when it is restored. The layer isolates the content the effect operates on, so the effect sees only what was drawn into the layer, against transparency, before the result is composited onto the canvas.

LinearGradientBrush

Provides a brush that paints linear gradients within an area. Supports both classic two-point gradients and three-point (rotated) gradients.

PaintExtensions

Adds image-processing extensions that paint each frame through DrawingCanvas.

PaintProcessor

Defines the image processor used by Paint(IImageProcessingContext, DrawingOptions, CanvasAction) to execute a canvas callback for each image frame.

PathGradientBrush

Provides an implementation of a brush for painting gradients between multiple color positions in 2D coordinates.

PatternBrush

Provides an implementation of a pattern brush for painting patterns.

PatternPen

Defines a pen that can apply a pattern to a line with a set brush and thickness.

Pen

The base class for pens that can apply a pattern to a line with a set brush and thickness

Pens

Contains a collection of common pen styles.

RadialGradientBrush

A radial gradient brush defined by either one circle or two circles. When one circle is provided, the gradient parameter is the distance from the center divided by the radius. When two circles are provided, the gradient parameter is computed along the family of circles interpolating between the start and end circles.

RasterizerDefaultsExtensions

Adds extensions that allow configuring the drawing backend implementation.

RecolorBrush

Provides an implementation of a brush that can recolor an image. Pixels within Threshold of SourceColor are blended towards TargetColor, with the blend strength falling off as the color distance approaches the threshold.

RichGlyphOptions

Provides GlyphOptions for rendering a glyph by id with per-glyph Brush and Pen support. The paint is carried to the renderer via a RichTextRun, so it can vary per glyph across a run.

RichTextOptions

Provides configuration options for rendering and shaping of rich text.

RichTextRun

Represents a run of drawable text spanning a series of graphemes within a string.

SolidBrush

Provides an implementation of a solid brush for painting solid color areas.

SolidPen

Defines a pen that draws a continuous, unpatterned stroke with a set brush and thickness.

StrokeOptions

Provides configuration options for geometric stroke generation.

SweepGradientBrush

Provides an implementation of a brush for painting sweep (conic) gradients within areas. Angles increase counter-clockwise from +X on the design grid.

Structs

ColorStop

A struct that defines a single color stop: a color pinned to a position along a gradient.

DrawingClipState

Represents an ordered set of exact clip primitives carried by a drawing command.

PenOptions

Provides a set of configurations options for pens.

Enums

DrawingClipEdgeMode

Identifies how rectangle clip edges contribute coverage.

DrawingClipKind

Identifies the clip primitive represented by a drawing clip descriptor.

GradientRepetitionMode

Modes to repeat a gradient.

WrapMode

Defines how an ImageBrush samples beyond its source region along a single axis.

Delegates

CanvasAction

Represents the per-frame painting callback executed by Paint(IImageProcessingContext, CanvasAction).