20 lines
301 B
C++
20 lines
301 B
C++
#include <iostream>
|
|
#include "TIFF.h"
|
|
|
|
int main(int argc, char** argv) {
|
|
if (argc < 2) {
|
|
std::cout << "too few arguments" << std::endl;
|
|
return 1;
|
|
}
|
|
|
|
std::string fileName = argv[1];
|
|
|
|
TIFF tiff(fileName);
|
|
for(auto const& ifd: tiff.ifds()) {
|
|
ifd.dumpInfo();
|
|
}
|
|
|
|
system("pause");
|
|
|
|
return 0;
|
|
} |