Returns a slice of all pixels OF ALL LAYERS at once in O(1).
This is only possible if the image is stored non-flipped, and without space
between scanlines and layers.
To avoid accidental correctness, the image NEEDS to have the layout constraints:
LAYOUT_GAPLESS | LAYOUT_VERT_STRAIGHT.
Tags: #valid #data #plain
Returns a slice of all pixels OF ALL LAYERS at once in O(1). This is only possible if the image is stored non-flipped, and without space between scanlines and layers. To avoid accidental correctness, the image NEEDS to have the layout constraints: LAYOUT_GAPLESS | LAYOUT_VERT_STRAIGHT. Tags: #valid #data #plain