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

    Adds extensions that allow the drawing of text to the type.

    Inheritance
    Object
    DrawTextExtensions
    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 DrawTextExtensions

    Methods

    | Improve this Doc View Source

    DrawText(IImageProcessingContext, DrawingOptions, String, Font, Color, PointF)

    Draws the text onto the image filled via the brush.

    Declaration
    public static IImageProcessingContext DrawText(this IImageProcessingContext source, DrawingOptions options, string text, Font font, Color color, PointF location)
    Parameters
    Type Name Description
    IImageProcessingContext source

    The image this method extends.

    DrawingOptions options

    The options.

    String text

    The text.

    Font font

    The font.

    Color color

    The color.

    PointF location

    The location.

    Returns
    Type Description
    IImageProcessingContext

    The .

    | Improve this Doc View Source

    DrawText(IImageProcessingContext, DrawingOptions, String, Font, IBrush, PointF)

    Draws the text onto the image filled via the brush.

    Declaration
    public static IImageProcessingContext DrawText(this IImageProcessingContext source, DrawingOptions options, string text, Font font, IBrush brush, PointF location)
    Parameters
    Type Name Description
    IImageProcessingContext source

    The image this method extends.

    DrawingOptions options

    The options.

    String text

    The text.

    Font font

    The font.

    IBrush brush

    The brush.

    PointF location

    The location.

    Returns
    Type Description
    IImageProcessingContext

    The .

    | Improve this Doc View Source

    DrawText(IImageProcessingContext, DrawingOptions, String, Font, IBrush, IPen, PointF)

    Draws the text using the default resolution of 72dpi onto the image filled via the brush then outlined via the pen.

    Declaration
    public static IImageProcessingContext DrawText(this IImageProcessingContext source, DrawingOptions options, string text, Font font, IBrush brush, IPen pen, PointF location)
    Parameters
    Type Name Description
    IImageProcessingContext source

    The image this method extends.

    DrawingOptions options

    The options.

    String text

    The text.

    Font font

    The font.

    IBrush brush

    The brush.

    IPen pen

    The pen.

    PointF location

    The location.

    Returns
    Type Description
    IImageProcessingContext

    The .

    | Improve this Doc View Source

    DrawText(IImageProcessingContext, DrawingOptions, String, Font, IPen, PointF)

    Draws the text onto the image outlined via the pen.

    Declaration
    public static IImageProcessingContext DrawText(this IImageProcessingContext source, DrawingOptions options, string text, Font font, IPen pen, PointF location)
    Parameters
    Type Name Description
    IImageProcessingContext source

    The image this method extends.

    DrawingOptions options

    The options.

    String text

    The text.

    Font font

    The font.

    IPen pen

    The pen.

    PointF location

    The location.

    Returns
    Type Description
    IImageProcessingContext

    The .

    | Improve this Doc View Source

    DrawText(IImageProcessingContext, String, Font, Color, PointF)

    Draws the text onto the image filled via the brush.

    Declaration
    public static IImageProcessingContext DrawText(this IImageProcessingContext source, string text, Font font, Color color, PointF location)
    Parameters
    Type Name Description
    IImageProcessingContext source

    The image this method extends.

    String text

    The text.

    Font font

    The font.

    Color color

    The color.

    PointF location

    The location.

    Returns
    Type Description
    IImageProcessingContext

    The .

    | Improve this Doc View Source

    DrawText(IImageProcessingContext, String, Font, IBrush, PointF)

    Draws the text onto the image filled via the brush.

    Declaration
    public static IImageProcessingContext DrawText(this IImageProcessingContext source, string text, Font font, IBrush brush, PointF location)
    Parameters
    Type Name Description
    IImageProcessingContext source

    The image this method extends.

    String text

    The text.

    Font font

    The font.

    IBrush brush

    The brush.

    PointF location

    The location.

    Returns
    Type Description
    IImageProcessingContext

    The .

    | Improve this Doc View Source

    DrawText(IImageProcessingContext, String, Font, IBrush, IPen, PointF)

    Draws the text onto the image filled via the brush then outlined via the pen.

    Declaration
    public static IImageProcessingContext DrawText(this IImageProcessingContext source, string text, Font font, IBrush brush, IPen pen, PointF location)
    Parameters
    Type Name Description
    IImageProcessingContext source

    The image this method extends.

    String text

    The text.

    Font font

    The font.

    IBrush brush

    The brush.

    IPen pen

    The pen.

    PointF location

    The location.

    Returns
    Type Description
    IImageProcessingContext

    The .

    | Improve this Doc View Source

    DrawText(IImageProcessingContext, String, Font, IPen, PointF)

    Draws the text onto the image outlined via the pen.

    Declaration
    public static IImageProcessingContext DrawText(this IImageProcessingContext source, string text, Font font, IPen pen, PointF location)
    Parameters
    Type Name Description
    IImageProcessingContext source

    The image this method extends.

    String text

    The text.

    Font font

    The font.

    IPen pen

    The pen.

    PointF location

    The location.

    Returns
    Type Description
    IImageProcessingContext

    The .

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