ObjectWithBounds Class

Summary: The object having bounds.

Module: aspose.imaging

Full Name: aspose.imaging.ObjectWithBounds

Aspose.Imaging Version: 24.5.0

Properties

NameTypeAccessDescription
boundsRectangleFrGets the object’s bounds.

Methods

NameDescription
get_bounds(matrix)Gets the object’s bounds.
get_bounds(matrix, pen)Gets the object’s bounds.
transform(transform)Applies the specified transformation to the shape.

Method: get_bounds(matrix)

 get_bounds(matrix) 

Gets the object’s bounds.

Parameters:

ParameterTypeDescription
matrixMatrixThe matrix to apply before bounds will be calculated.

Returns

TypeDescription
RectangleFThe estimated object’s bounds.

Method: get_bounds(matrix, pen)

 get_bounds(matrix, pen) 

Gets the object’s bounds.

Parameters:

ParameterTypeDescription
matrixMatrixThe matrix to apply before bounds will be calculated.
penPenThe pen to use for object. This can influence the object’s bounds size.

Returns

TypeDescription
RectangleFThe estimated object’s bounds.

Method: transform(transform)

 transform(transform) 

Applies the specified transformation to the shape.

Parameters:

ParameterTypeDescription
transformMatrixThe transformation to apply.