• 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 DrawingOptionsDefaultsExtensions

    Adds extensions that help working with DrawingOptions.

    Inheritance
    object
    DrawingOptionsDefaultsExtensions
    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 DrawingOptionsDefaultsExtensions

    Methods

    | Edit this page View Source

    GetDrawingOptions(IImageProcessingContext)

    Gets the default shape processing options against The source image processing context.

    Declaration
    public static DrawingOptions GetDrawingOptions(this IImageProcessingContext context)
    Parameters
    Type Name Description
    IImageProcessingContext context

    The image processing context to retrieve defaults from.

    Returns
    Type Description
    DrawingOptions

    The globally configured default options.

    | Edit this page View Source

    GetDrawingTransform(Configuration)

    Gets the default 2D transformation matrix to be used during rasterization when drawing shapes or text.

    Declaration
    public static Matrix3x2 GetDrawingTransform(this Configuration configuration)
    Parameters
    Type Name Description
    Configuration configuration

    The configuration to retrieve defaults from.

    Returns
    Type Description
    Matrix3x2

    The globally configured default matrix.

    | Edit this page View Source

    GetDrawingTransform(IImageProcessingContext)

    Gets the default 2D transformation matrix to be used during rasterization when drawing shapes or text.

    Declaration
    public static Matrix3x2 GetDrawingTransform(this IImageProcessingContext context)
    Parameters
    Type Name Description
    IImageProcessingContext context

    The image processing context to retrieve defaults from.

    Returns
    Type Description
    Matrix3x2

    The matrix.

    | Edit this page View Source

    SetDrawingTransform(Configuration, Matrix3x2)

    Sets the default 2D transformation matrix to be used during rasterization when drawing shapes or text.

    Declaration
    public static void SetDrawingTransform(this Configuration configuration, Matrix3x2 matrix)
    Parameters
    Type Name Description
    Configuration configuration

    The configuration to store default against.

    Matrix3x2 matrix

    The default matrix to use.

    | Edit this page View Source

    SetDrawingTransform(IImageProcessingContext, Matrix3x2)

    Sets the 2D transformation matrix to be used during rasterization when drawing shapes or text.

    Declaration
    public static IImageProcessingContext SetDrawingTransform(this IImageProcessingContext context, Matrix3x2 matrix)
    Parameters
    Type Name Description
    IImageProcessingContext context

    The image processing context to store default against.

    Matrix3x2 matrix

    The matrix to use.

    Returns
    Type Description
    IImageProcessingContext

    The passed in context to allow chaining.

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