WebPImage.Crop
Crop(Rectangle)
使用指定的矩形区域裁剪图像,去除不需要的部分同时保留所需内容。将此方法集成到图像处理工作流,以精确提取并聚焦图像中的特定感兴趣区域,提升各种应用的清晰度和构图。
public override void Crop(Rectangle rectangle)
| 参数 | 类型 | 描述 |
|---|---|---|
| 矩形 | Rectangle | 矩形。 |
另请参见
- struct Rectangle
- class WebPImage
- namespace Aspose.Imaging.FileFormats.Webp
- assembly Aspose.Imaging
Crop(int, int, int, int)
通过左右上下偏移裁剪图像,有效选择图像中的感兴趣区域。利用此方法动态提取所需的图像部分,并根据应用需求调整其构图和焦点。
public override void Crop(int leftShift, int rightShift, int topShift, int bottomShift)
| 参数 | 类型 | 描述 |
|---|---|---|
| leftShift | Int32 | 左移。 |
| rightShift | Int32 | 右移。 |
| topShift | Int32 | 上移。 |
| bottomShift | Int32 | 下移。 |
另请参见
- class WebPImage
- namespace Aspose.Imaging.FileFormats.Webp
- assembly Aspose.Imaging