copyCrop method

Painter copyCrop(
  1. int x,
  2. int y,
  3. int w,
  4. int h
)

Crop the underlying image.

Implementation

Painter copyCrop(int x, int y, int w, int h) => Painter.fromDecodedImage(
      img.copyCrop(
        _decodedBytes!,
        x: x,
        y: y,
        width: w,
        height: h,
      ),
    );