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

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

    Inheritance
    object
    Path
    Polygon
    RegularPolygon
    Implements
    ISimplePath
    IPath
    Inherited Members
    Polygon.IsClosed
    Polygon.Transform(Matrix3x2)
    Path.Empty
    Path.Points
    Path.Bounds
    Path.PathType
    Path.LineSegments
    Path.AsClosedPath()
    Path.Flatten()
    Path.TryParseSvgPath(string, out IPath)
    Path.TryParseSvgPath(ReadOnlySpan<char>, out IPath)
    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 RegularPolygon : Polygon, ISimplePath, IPath

    Constructors

    | Edit this page View Source

    RegularPolygon(PointF, int, float)

    Initializes a new instance of the RegularPolygon class.

    Declaration
    public RegularPolygon(PointF location, int vertices, float radius)
    Parameters
    Type Name Description
    PointF location

    The location the center of the polygon will be placed.

    int vertices

    The number of vertices the RegularPolygon should have.

    float radius

    The radius of the circle that would touch all vertices.

    | Edit this page View Source

    RegularPolygon(PointF, int, float, float)

    Initializes a new instance of the RegularPolygon class.

    Declaration
    public RegularPolygon(PointF location, int vertices, float radius, float angle)
    Parameters
    Type Name Description
    PointF location

    The location the center of the polygon will be placed.

    int vertices

    The number of vertices the RegularPolygon should have.

    float radius

    The radius of the circle that would touch all vertices.

    float angle

    The angle of rotation in Radians

    | Edit this page View Source

    RegularPolygon(float, float, int, float)

    Initializes a new instance of the RegularPolygon class.

    Declaration
    public RegularPolygon(float x, float y, int vertices, float radius)
    Parameters
    Type Name Description
    float x

    The x-coordinate of the center of the polygon.

    float y

    The y-coordinate of the center of the polygon.

    int vertices

    The number of vertices the RegularPolygon should have.

    float radius

    The radius of the circle that would touch all vertices.

    | Edit this page View Source

    RegularPolygon(float, float, int, float, float)

    Initializes a new instance of the RegularPolygon class.

    Declaration
    public RegularPolygon(float x, float y, int vertices, float radius, float angle)
    Parameters
    Type Name Description
    float x

    The x-coordinate of the center of the polygon.

    float y

    The y-coordinate of the center of the polygon.

    int vertices

    The number of vertices the RegularPolygon should have.

    float radius

    The radius of the circle that would touch all vertices.

    float angle

    The angle of rotation in Radians

    Implements

    ISimplePath
    IPath

    Extension Methods

    ClipPathExtensions.Clip(IPath, params IPath[])
    ClipPathExtensions.Clip(IPath, ShapeOptions, params IPath[])
    ClipPathExtensions.Clip(IPath, ShapeOptions, IEnumerable<IPath>)
    ClipPathExtensions.Clip(IPath, IEnumerable<IPath>)
    OutlinePathExtensions.GenerateOutline(IPath, float)
    OutlinePathExtensions.GenerateOutline(IPath, float, JointStyle, EndCapStyle)
    OutlinePathExtensions.GenerateOutline(IPath, float, ReadOnlySpan<float>)
    OutlinePathExtensions.GenerateOutline(IPath, float, ReadOnlySpan<float>, JointStyle, EndCapStyle)
    OutlinePathExtensions.GenerateOutline(IPath, float, ReadOnlySpan<float>, bool)
    OutlinePathExtensions.GenerateOutline(IPath, float, ReadOnlySpan<float>, bool, JointStyle, EndCapStyle)
    PathExtensions.ComputeLength(IPath)
    PathExtensions.Rotate(IPath, float)
    PathExtensions.RotateDegree(IPath, float)
    PathExtensions.Scale(IPath, float)
    PathExtensions.Scale(IPath, float, float)
    PathExtensions.Translate(IPath, PointF)
    PathExtensions.Translate(IPath, float, float)
    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX