Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

halftoner::ImageIO Class Reference

#include <ImageIO.h>

List of all members.


Detailed Description

Class ImageIO gives a namespace to image loading and saving routines.

Todo:
allow the saving of PNG image also.

Definition at line 84 of file ImageIO.h.

Public Methods

Static Public Methods

Class methods

Private Methods

Disabled operations

Constructor & Destructor Documentation

halftoner::ImageIO::ImageIO   throw () [private]
 

Disable the default constructor.

halftoner::ImageIO::ImageIO const ImageIO &    throw () [private]
 

Disable the copy constructor.

halftoner::ImageIO::~ImageIO   throw ()
 

Destructor.


Member Function Documentation

Image * halftoner::ImageIO::loadPGM std::istream &    is throw (ImageFormatError, IOError) [static]
 

Loads the specified PGM image.

Parameters:
is  the stream to load the image from
Exceptions:
ImageFormatError  if the data in the stream is not in PGM format.
IOError  if I/O errors occur.
Todo:
i/o error checks.

write better implementation (make sure delete data is called - use autor_ptr.

Definition at line 38 of file ImageIO.cxx.

References halftoner::Image::setColorAt().

ImageIO halftoner::ImageIO::operator= const ImageIO &    throw () [private]
 

Disable the assignement operator.

void halftoner::ImageIO::savePBMascii const Image   image,
std::ostream &    os
throw (IOError) [static]
 

Saves the image in the PBM ascii format.

Parameters:
image  the image to save.
os  the stream to send the data into.
Exceptions:
IOError  if I/O errors occur.
Todo:
i/o error checks.

Definition at line 265 of file ImageIO.cxx.

void halftoner::ImageIO::savePBMraw const Image   image,
std::ostream &    os
throw (IOError) [static]
 

Saves the image in the PBM raw format.

Parameters:
image  the image to save.
os  the stream to send the data into.
Exceptions:
IOError  if I/O errors occur.
Todo:
make sure the output is correct and it is not ACDSee that is bugged.

i/o error checks.

Definition at line 218 of file ImageIO.cxx.

References halftoner::Image::getCopy().


The documentation for this class was generated from the following files:
Generated on Sat Sep 7 16:35:55 2002 for Halftoning Library by doxygen1.2.17