void main() { /* Load the image */ char[] filename = "/home/joe/plasma.png"; ubyte[] image; Info info = lodepng.png.decode32(image, cast(ubyte[])read(filename)); if (info.error != 0) throw new Exception("Error loading png " ~ filename ~ ", errorcode: " ~ toString(info.error)); if(image.length % 4 != 0) throw new Exception("Failcopter"); ubyte[] data; for(uint i; i