Bits-Per-Pixel Constants
Syntax
CFitsFile::BPP16
CFitsFile::BPP32
Type
const static int
Required Headers
CFitsFile.h
Remarks
Integer class constants that correspond to the bits-per-pixel for the FITS image data.

NAME DESCRIPTION VALUE
BPP16 16 bits-per-pixel image data 16
BPP32 32 bits-per-pixel image data 32
Example
        // This code demonstrates how to create a 16-bit
        // FITS file.

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

        using namespace std;
        using namespace arc;

        int main()
        {
            try {
                CFitsFile cFits( "Image.fit", 512, 600 );

                //
                // Could also do this ...
                //
                CFitsFile cFits2( "Image.fit", 512, 600, CFitsFile::BPP16 ); 
            }
            catch ( std::exception &e )
            {
                cerr << "Exception Occurred: " << e.what() << endl;
            }
        }

© Astronomical Research Cameras, Inc.