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

    | Improve this Doc View Source

    GetDrawingOptions(IImageProcessingContext)

    Gets the default shape processing options against the 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.

    | Improve this Doc 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.

    | Improve this Doc 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.

    | Improve this Doc 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.

    | Improve this Doc 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.

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