/*
 * Implementation of class GreymapFile
 *
 * $Date$
 * $Revision$
 *
 */

#include "WImage/GreymapFile.hh"
#include "WImage/ImageArray.hh"
#include "WImage/debug.h"
#include <stdexcept>

#if !(defined __WATCOMC__ && __WATCOMC__ < 1230)
using namespace std;
#endif

GreymapFile::GreymapFile (char const * name, ImageArray<coeff> &data)
{
  this->m_fname = name;
  this->m_coeffs = &data;
  m_pixels = NEW (ImageArray<pixel> (0, 0));
}

GreymapFile::~GreymapFile (void)
{
  DELETE (m_pixels);
}

