GetFitRectangle

Image.GetFitRectangle method (1 of 2)

Gets rectangle which fits the current image.

protected Rectangle GetFitRectangle(Rectangle rectangle)
parameterdescription
rectangleThe rectangle to get fitting rectangle for.

Return Value

The fitting rectangle

See Also


Image.GetFitRectangle method (2 of 2)

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.

protected Rectangle GetFitRectangle(Rectangle rectangle, int[] pixels)
parameterdescription
rectangleThe rectangle to get fitting rectangle for.
pixelsThe 32-bit ARGB pixels array.

Return Value

The fitting rectangle.

See Also