The OpenD Programming Language

PNG.getChunk

Gets the chunk with the given name, or throws if it cannot be found.

struct PNG
pure @trusted
getChunk
(
string what
)

Return Value

Type: Chunk*

A non-null pointer to the chunk in the chunks array.

Throws

an exception if the chunk can not be found. The type of this exception is subject to change at this time.

See Also

getChunkNullable, which returns a null pointer instead of throwing.

Meta