ImageGetFittingRectangle Method (Rectangle, Int32, Int32)
Gets rectangle which fits the current image.

Namespace: Aspose.PSD
Assembly: Aspose.PSD (in Aspose.PSD.dll) Version: 20.6
Syntax
public static Rectangle GetFittingRectangle(
	Rectangle rectangle,
	int width,
	int height
)

Parameters

rectangle
Type: Aspose.PSDRectangle
The rectangle to get fitting rectangle for.
width
Type: SystemInt32
The object width.
height
Type: SystemInt32
The object height.

Return Value

Type: Rectangle
The fitting rectangle or exception if no fitting rectangle can be found.
See Also