Resize
Resizes a single image FITS file by modifying the NAXES keyword and increasing/decreasing the image data portion of the file.
Syntax
void Resize( rows, cols );
Parameters
long rows
The new row dimension ( in pixels ).
long cols
The new column dimension ( in pixels ).
Returns
None
Required Headers
CFitsFile.h
Namespace
arc
Throws
std::runtime_error
Remarks
None
Example
        // This code demonstrates how to resize a 512x600
        // pixel FITS file to be 1024x1200.

        #include <iostream>
        #include "CFitsFile.h"

        using namespace std;
        using namespace arc;

        int main()
        {
            try {
                CFitsFile cFits( "Image.fit" );
                cFits.Resize( 1024, 1200 );
            }
            catch ( std::exception &e )
            {
                cerr << "Exception Occurred: " << e.what() << endl;
            }
        }

© Astronomical Research Cameras, Inc.