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