Image.allPixelsAtOnce

Returns a slice of all pixels at once in O(1). This is only possible if the image is stored non-flipped, and without space between scanline. To avoid accidental correctness, the image need the layout constraints: LAYOUT_GAPLESS | LAYOUT_VERT_STRAIGHT. Tags: #type #data #plain

struct Image
nothrow @nogc @safe public inout pure @trusted
inout(ubyte)[]
allPixelsAtOnce
()

Meta