crop method

crop

Cropping the image.

def crop(self, rectangle):
    ...
ParameterTypeDescription
rectangleRectangleThe rectangle.

crop

Crop image with shifts.

def crop(self, left_shift, right_shift, top_shift, bottom_shift):
    ...
ParameterTypeDescription
left_shiftintThe left shift.
right_shiftintThe right shift.
top_shiftintThe top shift.
bottom_shiftintThe bottom shift.

See Also