Class Shape
Namespace: Aspose.Imaging
Assembly: Aspose.Imaging.dll (25.2.0)
The shape. A continuous set of points connected using a specific rule.
public abstract class Shape : ObjectWithBounds
Inheritance
object ← ObjectWithBounds ← Shape
Derived
PolygonShape, RectangleProjectedShape
Inherited Members
ObjectWithBounds.GetBounds(Matrix), ObjectWithBounds.GetBounds(Matrix, Pen), ObjectWithBounds.Transform(Matrix), ObjectWithBounds.Equals(object), ObjectWithBounds.GetHashCode(), ObjectWithBounds.Equals(ObjectWithBounds), ObjectWithBounds.Bounds, object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Constructors
Shape()
protected Shape()
Properties
Center
Gets the shape’s center.
public abstract PointF Center { get; }
Property Value
HasSegments
Gets a value indicating whether shape has segments.
public abstract bool HasSegments { get; }
Property Value
Segments
Gets the shape segments.
public abstract ShapeSegment[] Segments { get; }
Property Value
Methods
Equals(object)
Check if objects are equal.
public override bool Equals(object obj)
Parameters
obj
object
The other object.
Returns
The equality comparison result.
Equals(Shape)
Check if objects are equal.
protected bool Equals(Shape other)
Parameters
other
Shape
The other object.
Returns
The equality comparison result.
GetHashCode()
Get hash code of the current object.
public override int GetHashCode()
Returns
The hash code.