crop method
Implementation
@override
FutureOr<String?> crop(Uint8List imageData, int x, int y, int width, int height)
{
// get decoder
final decoder = findDecoderForData(imageData);
if (decoder == null) return null;
// decode image
Image? image = decoder.decode(imageData);
if (image != null)
{
image = copyCrop(image,x: x,y: y, width: width, height: height);
return _encode(image, decoder);
}
return null;
}