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

    A shape made up of a single closed path made up of one of more ILineSegments

    Inheritance
    Object
    Path
    Polygon
    RegularPolygon
    Star
    Implements
    ISimplePath
    IPath
    Inherited Members
    Path.ISimplePath.IsClosed
    Path.Points
    Path.Bounds
    Path.PathType
    Path.LineSegments
    Path.AsClosedPath()
    Path.Flatten()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Object.ReferenceEquals(Object, Object)
    Object.ToString()
    Namespace: SixLabors.ImageSharp.Drawing
    Assembly: SixLabors.ImageSharp.Drawing.dll
    Syntax
    public class Polygon : Path, ISimplePath, IPath

    Constructors

    | Improve this Doc View Source

    Polygon(ILineSegment)

    Initializes a new instance of the Polygon class.

    Declaration
    public Polygon(ILineSegment segment)
    Parameters
    Type Name Description
    ILineSegment segment

    The segment.

    | Improve this Doc View Source

    Polygon(ILineSegment[])

    Initializes a new instance of the Polygon class.

    Declaration
    public Polygon(params ILineSegment[] segments)
    Parameters
    Type Name Description
    ILineSegment[] segments

    The segments.

    | Improve this Doc View Source

    Polygon(IEnumerable<ILineSegment>)

    Initializes a new instance of the Polygon class.

    Declaration
    public Polygon(IEnumerable<ILineSegment> segments)
    Parameters
    Type Name Description
    IEnumerable<ILineSegment> segments

    The segments.

    Properties

    | Improve this Doc View Source

    IsClosed

    Gets a value indicating whether this instance is a closed path.

    Declaration
    public override bool IsClosed { get; }
    Property Value
    Type Description
    Boolean
    Overrides
    Path.IsClosed

    Methods

    | Improve this Doc View Source

    Transform(Matrix3x2)

    Transforms the path using the specified matrix.

    Declaration
    public override IPath Transform(Matrix3x2 matrix)
    Parameters
    Type Name Description
    Matrix3x2 matrix

    The matrix.

    Returns
    Type Description
    IPath

    A new path with the matrix applied to it.

    Overrides
    Path.Transform(Matrix3x2)

    Implements

    ISimplePath
    IPath

    Extension Methods

    ClipPathExtensions.Clip(IPath, IEnumerable<IPath>)
    ClipPathExtensions.Clip(IPath, IPath[])
    OutlinePathExtensions.GenerateOutline(IPath, Single, Single[])
    OutlinePathExtensions.GenerateOutline(IPath, Single, ReadOnlySpan<Single>)
    OutlinePathExtensions.GenerateOutline(IPath, Single, Single[], Boolean)
    OutlinePathExtensions.GenerateOutline(IPath, Single, ReadOnlySpan<Single>, Boolean)
    OutlinePathExtensions.GenerateOutline(IPath, Single, ReadOnlySpan<Single>, Boolean, JointStyle, EndCapStyle)
    OutlinePathExtensions.GenerateOutline(IPath, Single)
    OutlinePathExtensions.GenerateOutline(IPath, Single, JointStyle, EndCapStyle)
    PathExtensions.Rotate(IPath, Single)
    PathExtensions.RotateDegree(IPath, Single)
    PathExtensions.Translate(IPath, PointF)
    PathExtensions.Translate(IPath, Single, Single)
    PathExtensions.Scale(IPath, Single, Single)
    PathExtensions.Scale(IPath, Single)
    • Improve this Doc
    • View Source
    In This Article
    Back to top Generated by DocFX