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

    Defines a processor to draw text on an Image.

    Inheritance
    object
    DrawTextProcessor
    Implements
    IImageProcessor
    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.Processors.Text
    Assembly: SixLabors.ImageSharp.Drawing.dll
    Syntax
    public class DrawTextProcessor : IImageProcessor

    Constructors

    | Edit this page View Source

    DrawTextProcessor(DrawingOptions, RichTextOptions, string, Brush?, Pen?)

    Initializes a new instance of the DrawTextProcessor class.

    Declaration
    public DrawTextProcessor(DrawingOptions drawingOptions, RichTextOptions textOptions, string text, Brush? brush, Pen? pen)
    Parameters
    Type Name Description
    DrawingOptions drawingOptions

    The drawing options.

    RichTextOptions textOptions

    The text rendering options.

    string text

    The text we want to render

    Brush brush

    The brush to source pixel colors from.

    Pen pen

    The pen to outline text with.

    Properties

    | Edit this page View Source

    Brush

    Gets the brush used to fill the glyphs.

    Declaration
    public Brush? Brush { get; }
    Property Value
    Type Description
    Brush
    | Edit this page View Source

    DrawingOptions

    Gets the DrawingOptions defining blending modes and shape drawing settings.

    Declaration
    public DrawingOptions DrawingOptions { get; }
    Property Value
    Type Description
    DrawingOptions
    | Edit this page View Source

    Location

    Gets the location to draw the text at.

    Declaration
    public PointF Location { get; }
    Property Value
    Type Description
    PointF
    | Edit this page View Source

    Pen

    Gets the pen used for outlining the text, if Null then we will not outline

    Declaration
    public Pen? Pen { get; }
    Property Value
    Type Description
    Pen
    | Edit this page View Source

    Text

    Gets the text to draw.

    Declaration
    public string Text { get; }
    Property Value
    Type Description
    string
    | Edit this page View Source

    TextOptions

    Gets the RichTextOptions defining text-specific drawing settings.

    Declaration
    public RichTextOptions TextOptions { get; }
    Property Value
    Type Description
    RichTextOptions

    Methods

    | Edit this page View Source

    CreatePixelSpecificProcessor<TPixel>(Configuration, Image<TPixel>, Rectangle)

    Creates a pixel specific IImageProcessor<TPixel> that is capable of executing the processing algorithm on an Image<TPixel>.

    Declaration
    public IImageProcessor<TPixel> CreatePixelSpecificProcessor<TPixel>(Configuration configuration, Image<TPixel> source, Rectangle sourceRectangle) where TPixel : unmanaged, IPixel<TPixel>
    Parameters
    Type Name Description
    Configuration configuration

    The configuration which allows altering default behaviour or extending the library.

    Image<TPixel> source

    The source image. Cannot be null.

    Rectangle sourceRectangle

    The Rectangle structure that specifies the portion of the image object to draw.

    Returns
    Type Description
    IImageProcessor<TPixel>

    The IImageProcessor<TPixel>

    Type Parameters
    Name Description
    TPixel

    The pixel type.

    Implements

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