Class ObjectWithBounds

Class ObjectWithBounds

Namespace: Aspose.Imaging
Assembly: Aspose.Imaging.dll (25.2.0)

The object having bounds.

public abstract class ObjectWithBounds

Inheritance

objectObjectWithBounds

Derived

Figure, GraphicsPath, Shape

Inherited Members

object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Constructors

ObjectWithBounds()

protected ObjectWithBounds()

Properties

Bounds

Gets the object’s bounds.

public abstract RectangleF Bounds { get; }

Property Value

RectangleF

Methods

Equals(object)

Check if objects are equal.

public override bool Equals(object obj)

Parameters

obj object

The other object.

Returns

bool

The equality comparison result.

Equals(ObjectWithBounds)

Check if objects are equal.

protected bool Equals(ObjectWithBounds other)

Parameters

other ObjectWithBounds

The other object.

Returns

bool

The equality comparison result.

GetBounds(Matrix)

Gets the object’s bounds.

public abstract RectangleF GetBounds(Matrix matrix)

Parameters

matrix Matrix

The matrix to apply before bounds will be calculated.

Returns

RectangleF

The estimated object’s bounds.

GetBounds(Matrix, Pen)

Gets the object’s bounds.

public abstract 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

RectangleF

The estimated object’s bounds.

GetHashCode()

Get hash code of the current object.

public override int GetHashCode()

Returns

int

The hash code.

Transform(Matrix)

Applies the specified transformation to the shape.

public abstract void Transform(Matrix transform)

Parameters

transform Matrix

The transformation to apply.