Function WritableRasterView.empty

Whether the represented region has zero area.

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

Example

Example recognizing an empty default writable view.

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