ImageGetFitRectangle Method (Rectangle, Int32)
Gets rectangle which fits the current bitmap taking into account the pixels passed. The passed pixels array count should be equal to the fitting rectangle size.

Namespace: Aspose.Imaging
Assembly: Aspose.Imaging (in Aspose.Imaging.dll) Version: 20.06
Syntax
protected Rectangle GetFitRectangle(
	Rectangle rectangle,
	int[] pixels
)

Parameters

rectangle
Type: Aspose.ImagingRectangle
The rectangle to get fitting rectangle for.
pixels
Type: SystemInt32
The 32-bit ARGB pixels array.

Return Value

Type: Rectangle
The fitting rectangle.
See Also