GetFittingRectangle
GetFittingRectangle(Rectangle, int, int)
获取适合当前图像的矩形。
public static Rectangle GetFittingRectangle(Rectangle rectangle, int width, int height)
| 范围 | 类型 | 描述 |
|---|---|---|
| rectangle | Rectangle | 得到拟合矩形的矩形。 |
| width | Int32 | 对象宽度。 |
| height | Int32 | 物体高度。 |
返回值
拟合矩形或找不到拟合矩形时的异常。
也可以看看
- struct Rectangle
- class Image
- 命名空间 Aspose.Imaging
- 部件 Aspose.Imaging
GetFittingRectangle(Rectangle, int[], int, int)
获取适合当前图像的矩形。
public static Rectangle GetFittingRectangle(Rectangle rectangle, int[] pixels, int width,
int height)
| 范围 | 类型 | 描述 |
|---|---|---|
| rectangle | Rectangle | 得到拟合矩形的矩形。 |
| pixels | Int32[] | 32 位 ARGB 像素。 |
| width | Int32 | 对象宽度。 |
| height | Int32 | 物体高度。 |
返回值
拟合矩形或找不到拟合矩形时的异常。
也可以看看
- struct Rectangle
- class Image
- 命名空间 Aspose.Imaging
- 部件 Aspose.Imaging