RectangleExtensions Class

Summary: Contains extension methods for Rectangle.

Module: aspose.psd.extensions

Full Name: aspose.psd.extensions.RectangleExtensions

Aspose.PSD Version: 24.4.0

Methods

NameDescription
to_gdi_rectangle(rectangle)Converts the Rectangle to the .
to_gdi_rectangle(rectangle)Converts the Rectangle to the .
union_with(rectangle, other_rectangle)Unions two rectangle.

Method: to_gdi_rectangle(rectangle) [static]

 to_gdi_rectangle(rectangle) 

Converts the Rectangle to the .

Parameters:

ParameterTypeDescription
rectangleRectangleThe rectangle to convert.

Returns

TypeDescription
System.Drawing.RectangleThe converted .

Method: to_gdi_rectangle(rectangle) [static]

 to_gdi_rectangle(rectangle) 

Converts the Rectangle to the .

Parameters:

ParameterTypeDescription
rectangleRectangleFThe rectangle to convert.

Returns

TypeDescription
System.Drawing.RectangleFThe converted .

Method: union_with(rectangle, other_rectangle) [static]

 union_with(rectangle, other_rectangle) 

Unions two rectangle.

Parameters:

ParameterTypeDescription
rectangleRectangleFThe first rectangle.
other_rectangleRectangleFThe second rectangle.

Returns

TypeDescription
RectangleFNew rectangle as union operation result