Function RasterView.empty

Whether this view has zero resident area.

bool empty() const pure nothrow @nogc @property @safe;

Example

Example recognizing an empty default view.

import raster;
RasterView!ubyte view;
assert(view.empty);