WebPImage.Crop

Crop(Rectangle)

使用指定的矩形区域裁剪图像,去除不需要的部分同时保留所需内容。将此方法集成到图像处理工作流,以精确提取并聚焦图像中的特定感兴趣区域,提升各种应用的清晰度和构图。

public override void Crop(Rectangle rectangle)
参数类型描述
矩形Rectangle矩形。

另请参见


Crop(int, int, int, int)

通过左右上下偏移裁剪图像,有效选择图像中的感兴趣区域。利用此方法动态提取所需的图像部分,并根据应用需求调整其构图和焦点。

public override void Crop(int leftShift, int rightShift, int topShift, int bottomShift)
参数类型描述
leftShiftInt32左移。
rightShiftInt32右移。
topShiftInt32上移。
bottomShiftInt32下移。

另请参见