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.ImagingAssembly: Aspose.Imaging (in Aspose.Imaging.dll) Version: 22.05
Syntaxprotected Rectangle GetFitRectangle(
Rectangle rectangle,
int[] pixels
)
Protected Function GetFitRectangle (
rectangle As Rectangle,
pixels As Integer()
) As Rectangle
protected:
Rectangle GetFitRectangle(
Rectangle rectangle,
array<int>^ pixels
)
member GetFitRectangle :
rectangle : Rectangle *
pixels : int[] -> Rectangle
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