RGBLuminanceSource.crop constructor
RGBLuminanceSource.crop()
Implementation
RGBLuminanceSource.crop(Int8List pixels, this._dataWidth, this._dataHeight,
this._left, this._top, int width, int height)
: _luminances = pixels,
super(width, height) {
if (_left + width > _dataWidth || _top + height > _dataHeight) {
throw ArgumentError('Crop rectangle does not fit within image data.');
}
}