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.decodeImage(imageData);
if (image != null)
{
image = copyCrop(image,x,y,width,height);
return _encode(image, decoder);
}
return null;
}