imageFromPng

The return value should be casted to indexed or truecolor depending on what you need.

To get an image from a png file, do this:

auto i = cast(TrueColorImage) imageFromPng(readPng(cast(ubyte)[]) std.file.read("file.png")));

Image
imageFromPng
(
PNG* png
)
Suggestion Box / Bug Report