From f953c730af2b90db99f709258c5d5e50fdcaadf7 Mon Sep 17 00:00:00 2001 From: BossCode45 Date: Fri, 27 Jun 2025 14:54:46 +1200 Subject: Initial commit Bringing a lot of stuff over from my maze-reader project in an attempt to split the image reading code off into a library. --- test/main.cpp | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 test/main.cpp (limited to 'test/main.cpp') diff --git a/test/main.cpp b/test/main.cpp new file mode 100644 index 0000000..f60017e --- /dev/null +++ b/test/main.cpp @@ -0,0 +1,24 @@ +#include +#include +#include +#include +#include +#include +#include + +using std::cout, std::endl; + +int main(int argc, char* argv[]) +{ + if(argc < 2) + { + cout << "usage: " << argv[0] << " " << endl; + return 1; + } + + std::string filename = argv[1]; + + PNGImage image(filename); + + while(image.readNextChunk()){} +} -- cgit v1.2.3