• Articles
  • API Documentation
Search Results for

    Show / Hide Table of Contents
    • SixLabors.ImageSharp.Drawing
      • ArcLineSegment
      • ClipPathExtensions
      • ComplexPolygon
      • CubicBezierLineSegment
      • EllipsePolygon
      • EmptyPath
      • EndCapStyle
      • ILineSegment
      • IntersectionRule
      • IPath
      • IPathCollection
      • ISimplePath
      • JointStyle
      • LinearLineSegment
      • OutlinePathExtensions
      • Path
      • PathBuilder
      • PathCollection
      • PathExtensions
      • PathTypes
      • Polygon
      • RectangularPolygon
      • RegularPolygon
      • SegmentInfo
      • Star
      • TextBuilder
    • SixLabors.ImageSharp.Drawing.PolygonClipper
      • ClippablePath
      • ClipperException
      • ClippingType
    • SixLabors.ImageSharp.Drawing.Processing
      • BrushApplicator<TPixel>
      • Brushes
      • ClearExtensions
      • ClearPathExtensions
      • ClearRectangleExtensions
      • ClipPathExtensions
      • ColorStop
      • DrawBezierExtensions
      • DrawingOptions
      • DrawingOptionsDefaultsExtensions
      • DrawLineExtensions
      • DrawPathCollectionExtensions
      • DrawPathExtensions
      • DrawPolygonExtensions
      • DrawRectangleExtensions
      • DrawTextExtensions
      • EllipticGradientBrush
      • FillExtensions
      • FillPathBuilderExtensions
      • FillPathCollectionExtensions
      • FillPathExtensions
      • FillPolygonExtensions
      • FillRectangleExtensions
      • GradientBrush
      • GradientRepetitionMode
      • IBrush
      • ImageBrush
      • IPen
      • LinearGradientBrush
      • PathGradientBrush
      • PatternBrush
      • Pen
      • Pens
      • RadialGradientBrush
      • RecolorBrush
      • ShapeGraphicOptionsDefaultsExtensions
      • ShapeOptions
      • SolidBrush
    • SixLabors.ImageSharp.Drawing.Processing.Processors.Drawing
      • ClipPathProcessor
      • DrawPathProcessor
      • FillPathProcessor
      • FillProcessor
    • SixLabors.ImageSharp.Drawing.Processing.Processors.Text
      • DrawTextProcessor

    Class DrawTextProcessor

    Defines a processor to draw text on an .

    Inheritance
    Object
    DrawTextProcessor
    Namespace: SixLabors.ImageSharp.Drawing.Processing.Processors.Text
    Assembly: SixLabors.ImageSharp.Drawing.dll
    Syntax
    public class DrawTextProcessor : IImageProcessor

    Constructors

    | Improve this Doc View Source

    DrawTextProcessor(DrawingOptions, TextOptions, String, IBrush, IPen)

    Initializes a new instance of the DrawTextProcessor class.

    Declaration
    public DrawTextProcessor(DrawingOptions drawingOptions, TextOptions textOptions, string text, IBrush brush, IPen pen)
    Parameters
    Type Name Description
    DrawingOptions drawingOptions

    The drawing options.

    TextOptions textOptions

    The text rendering options.

    String text

    The text we want to render

    IBrush brush

    The brush to source pixel colors from.

    IPen pen

    The pen to outline text with.

    Properties

    | Improve this Doc View Source

    Brush

    Gets the brush used to fill the glyphs.

    Declaration
    public IBrush Brush { get; }
    Property Value
    Type Description
    IBrush
    | Improve this Doc View Source

    DrawingOptions

    Gets the DrawingOptions defining blending modes and shape drawing settings.

    Declaration
    public DrawingOptions DrawingOptions { get; }
    Property Value
    Type Description
    DrawingOptions
    | Improve this Doc View Source

    Location

    Gets the location to draw the text at.

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

    Pen

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

    Declaration
    public IPen Pen { get; }
    Property Value
    Type Description
    IPen
    | Improve this Doc View Source

    Text

    Gets the text to draw.

    Declaration
    public string Text { get; }
    Property Value
    Type Description
    String
    | Improve this Doc View Source

    TextOptions

    Gets the defining text-specific drawing settings.

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

    Methods

    | Improve this Doc View Source

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

    Declaration
    public IImageProcessor<TPixel> CreatePixelSpecificProcessor<TPixel>(Configuration configuration, Image<TPixel> source, Rectangle sourceRectangle)
        where TPixel : struct, IPixel<TPixel>
    Parameters
    Type Name Description
    Configuration configuration
    Image<TPixel> source
    Rectangle sourceRectangle
    Returns
    Type Description
    IImageProcessor<TPixel>
    Type Parameters
    Name Description
    TPixel
    • Improve this Doc
    • View Source
    In This Article
    Back to top Generated by DocFX