The OpenD Programming Language

Image.layerline

Returns a slice to the y nth line of pixels, in the given layer. scanline is a shortcut to index the first layer (layer index 0). Only possible if the image has plain pixels. What pixel format it points to, depends on the image type().

Horizontally: trailing pixels, gap bytes, and border pixels are NOT included in that scanline, which is only the nominal image extent.

However, vertically it is valid to adress scanlines on top and bottom of an image that has a border. It is also valid to call scanline() and scanptr() for images that have zero width, zero height, and/or zero layer.

struct Image
nothrow @nogc @safe inout pure @trusted
inout(void)[]
layerline
(
int layer
,
int y
)

Return Value

Type: inout(void)[]

The whole yth row of pixels. Tags: #valid #data #plain

Meta