Class RectangleProjectedShape
Namespace: Aspose.Imaging.Shapes
Assembly: Aspose.Imaging.dll (25.2.0)
Represents a shape which is projected over rectangle turned to a particular orientation. Specified by four points which can be rotated in space maintaining the same edges length and 90 degrees between adjacent edges.
[JsonObject(MemberSerialization.OptIn)]
public abstract class RectangleProjectedShape : Shape
Inheritance
object ← ObjectWithBounds ← Shape ← RectangleProjectedShape
Derived
Inherited Members
Shape.Equals(object), Shape.GetHashCode(), Shape.Equals(Shape), Shape.Center, Shape.Segments, Shape.HasSegments, 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
RectangleProjectedShape()
Initializes a new instance of the Aspose.Imaging.Shapes.RectangleProjectedShape class.
[JsonConstructor]
public RectangleProjectedShape()
RectangleProjectedShape(RectangleF)
Initializes a new instance of the Aspose.Imaging.Shapes.RectangleProjectedShape class.
public RectangleProjectedShape(RectangleF rectangle)
Parameters
rectangle
RectangleF
The rectangle to initialize from.
Properties
Bounds
Gets the object’s bounds.
[JsonIgnore]
public override RectangleF Bounds { get; }
Property Value
Center
Gets the shape’s center.
[JsonIgnore]
public override PointF Center { get; }
Property Value
HasSegments
Gets a value indicating whether shape has segments.
[JsonIgnore]
public override bool HasSegments { get; }
Property Value
LeftBottom
Gets the left bottom rectangle point.
public PointF LeftBottom { get; }
Property Value
LeftTop
Gets the left top rectangle point.
public PointF LeftTop { get; }
Property Value
RectangleHeight
Gets the rectangle height.
[JsonIgnore]
public double RectangleHeight { get; }
Property Value
RectangleWidth
Gets the rectangle width.
[JsonIgnore]
public double RectangleWidth { get; }
Property Value
RightBottom
Gets the right bottom rectangle point.
public PointF RightBottom { get; }
Property Value
RightTop
Gets the right top rectangle point.
public PointF RightTop { get; }
Property Value
Methods
Equals(object)
Determines whether the specified System.Object is equal to this instance.
public override bool Equals(object obj)
Parameters
obj
object
The System.Object to compare with this instance.
Returns
true
if the specified System.Object is equal to this instance; otherwise, false
.
Equals(RectangleProjectedShape)
Check if objects are equal.
protected bool Equals(RectangleProjectedShape other)
Parameters
other
RectangleProjectedShape
The other object.
Returns
The equality comparison result.
GetBounds(Matrix)
Gets the object’s bounds.
public override RectangleF GetBounds(Matrix matrix)
Parameters
matrix
Matrix
The matrix to apply before bounds will be calculated.
Returns
The estimated object’s bounds.
GetBounds(Matrix, Pen)
Gets the object’s bounds.
public override RectangleF GetBounds(Matrix matrix, Pen pen)
Parameters
matrix
Matrix
The matrix to apply before bounds will be calculated.
pen
Pen
The pen to use for object. This can influence the object’s bounds size.
Returns
The estimated object’s bounds.
GetHashCode()
Returns a hash code for this instance.
public override int GetHashCode()
Returns
A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.
Transform(Matrix)
Applies the specified transformation to the shape.
public override void Transform(Matrix transform)
Parameters
transform
Matrix
The transformation to apply.