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

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

    Inheritance
    object
    Path
    Polygon
    Star
    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.ReferenceEquals(object, object)
    object.ToString()
    Namespace: SixLabors.ImageSharp.Drawing
    Assembly: SixLabors.ImageSharp.Drawing.dll
    Syntax
    public sealed class Star : Polygon, ISimplePath, IPath

    Constructors

    | Edit this page View Source

    Star(PointF, int, float, float)

    Initializes a new instance of the Star class.

    Declaration
    public Star(PointF location, int prongs, float innerRadii, float outerRadii)
    Parameters
    Type Name Description
    PointF location

    The location the center of the polygon will be placed.

    int prongs

    The number of vertices the Star should have.

    float innerRadii

    The inner radii.

    float outerRadii

    The outer radii.

    | Edit this page View Source

    Star(PointF, int, float, float, float)

    Initializes a new instance of the Star class.

    Declaration
    public Star(PointF location, int prongs, float innerRadii, float outerRadii, float angle)
    Parameters
    Type Name Description
    PointF location

    The location the center of the polygon will be placed.

    int prongs

    The number of points the Star should have.

    float innerRadii

    The inner radii.

    float outerRadii

    The outer radii.

    float angle

    The angle of rotation in Radians

    | Edit this page View Source

    Star(float, float, int, float, float)

    Initializes a new instance of the Star class.

    Declaration
    public Star(float x, float y, int prongs, float innerRadii, float outerRadii)
    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 prongs

    The number of vertices the RegularPolygon should have.

    float innerRadii

    The inner radii.

    float outerRadii

    The outer radii.

    | Edit this page View Source

    Star(float, float, int, float, float, float)

    Initializes a new instance of the Star class.

    Declaration
    public Star(float x, float y, int prongs, float innerRadii, float outerRadii, 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 prongs

    The number of vertices the RegularPolygon should have.

    float innerRadii

    The inner radii.

    float outerRadii

    The outer radii.

    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