BitmapCrop.fromLTWH constructor

BitmapCrop.fromLTWH({
  1. required int left,
  2. required int top,
  3. required int width,
  4. required int height,
})

Crops the source bitmap to rectangle defined by top, left, width and height.

Implementation

BitmapCrop.fromLTWH({
  required this.left,
  required this.top,
  required this.width,
  required this.height,
})  : assert(left >= 0),
      assert(top >= 0),
      assert(width > 0),
      assert(height > 0);