// This code demonstrates how to read the image
// dimensions from a TIFF file.
#include <iostream>
#include "CTiffFile.h"
using namespace std;
using namespace arc;
int main()
{
try {
CTiffFile cTiff( "Image.tif" );
cout << "Image rows: " << cTiff.GetRows() << endl;
cout << "Image cols: " << cTiff.GetCols() << endl;
}
catch ( std::exception &e )
{
cerr << "Exception Occurred: " << e.what() << endl;
}
catch ( ... )
{
cerr << "System Exception Occurred!" << endl;
}
}
© Astronomical Research Cameras, Inc.