public DMimage(String Filename) { DMIParser parser = new DMIParser(); parser.parse(new FileStream(Filename, FileMode.Open, FileAccess.Read)); states = parser.states; width = parser.width; height = parser.height; }