getRectUnsafe method

Iterable<T> getRectUnsafe(
  1. Rect rect
)

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 must be contained within the bounds of the buffer or the behavior is undefined.

Implementation

Iterable<T> getRectUnsafe(Rect rect) {
  return lodim.getRect(rect, getUnsafe);
}