SetImageSize
Sets the image size in pixels on the controller. This is used during setup, subarray, binning, continuous readout, etc., whenever the image size is changed.
Syntax
void SetImageSize( rows, cols );
Parameters
long rows
The number of rows in the image.
long cols
The number of columns in the image.
Returns
None
Required Headers
CController.h
Namespace
arc
Throws
std::runtime_error
Remarks
This method will attempt to re-map the image buffer if the specified image size is greater than that of the image buffer. Exceptions can be caught using a try/catch block.
Example
        // This code demonstrates how to use SetImageSize().

        #include <iostream.h>
        #include "CController.h"
        using namespace std;
        using namespace arc;

        CController cController;

        // .... open driver, initialize, etc ....

        try {
            // Set the image size to 512x600
            cController.SetImageSize( 512, 600 );
        }
        catch ( std::exception &e )
        {
            cerr << "Exception Occurred: " << e.what() << endl;
        }

© Astronomical Research Cameras, Inc.