Image.GetFittingRectangle
GetFittingRectangle(Rectangle, int, int)
获取适合当前图像的矩形。
public static Rectangle GetFittingRectangle(Rectangle rectangle, int width, int height)
| 参数 | 类型 | 描述 |
|---|---|---|
| 矩形 | Rectangle | 用于获取适配矩形的矩形。 |
| 宽度 | Int32 | 对象宽度。 |
| 高度 | Int32 | 对象高度。 |
返回值
适配矩形,或者如果未找到适配矩形则抛出异常。
另请参见
- struct Rectangle
- class Image
- namespace Aspose.Imaging
- assembly Aspose.Imaging
GetFittingRectangle(Rectangle, int[], int, int)
获取适合当前图像的矩形。
public static Rectangle GetFittingRectangle(Rectangle rectangle, int[] pixels, int width,
int height)
| 参数 | 类型 | 描述 |
|---|---|---|
| 矩形 | Rectangle | 用于获取适配矩形的矩形。 |
| 像素 | Int32[] | 32 位 ARGB 像素。 |
| 宽度 | Int32 | 对象宽度。 |
| 高度 | Int32 | 对象高度。 |
返回值
适配矩形,或者如果未找到适配矩形则抛出异常。
另请参见
- struct Rectangle
- class Image
- namespace Aspose.Imaging
- assembly Aspose.Imaging