GetCols
Reads the column dimension of an image from an open TIFF file.
Syntax
long GetCols();
Parameters
None
Returns
long - The column dimension of the TIFF image.
Required Headers
CTiffFile.h
Namespace
arc
Throws
None
Remarks
None
Example
        // 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.