Function RasterHistogram256Result.ok

Whether the complete histogram was calculated successfully.

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

Example

Example checking that an uncomputed histogram is not success.

import raster;
RasterHistogram256Result result;
assert(!result.ok);
assert(result.bins[0] == 0);
assert(result.bins[255] == 0);
}