getRect method
- Rect rect
inherited
Returns a lazy iterable of pixels in the rectangle defined by rect
.
The returned iterable will contain all pixels in the buffer that are
within the rectangle defined by rect
.
The provided rectangle is clamped to the bounds of the buffer and yields no pixels if the rectangle is empty.
Implementation
@override
Iterable<T> getRect(Rect rect) {
rect = rect.intersect(bounds);
return lodim.getRectLinear(data, width: width, bounds: rect);
}