RasterCachedMultipageImage.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下移。

异常

异常条件
ArgumentException矩形不正确。- rectangle 或 Rectangle 必须位于图像边界内。- rectangle
ImageExceptionCan’t crop image. Frame index: " + frameIndex or Can’t crop image.

另请参见