Function tryReadPlane
Copies one raster plane ROI into a dense row-major buffer. The view owns all physical layout and lifetime; the caller owns the destination buffer.
RasterAdapterError tryReadPlane(T)(
scope RasterView!T source,
size_t plane,
Region2D roi,
ref T[] destination
) @safe
if (is(T == ubyte) || is(T == ushort) || is(T == float) || is(T == double));