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

JPEGSource Class Reference

A class which implements the ImageSource interface as a source of Images from a file stored in the jpeg format. More...

#include <JPEGSource.h>

Inheritance diagram for JPEGSource::

ImageSource List of all members.

Public Methods

 JPEGSource (char *jpeg_name)
 Create an Image source from a file. More...

virtual ImageSourceoperator>> (ImageRGB &)
 Extract colour Image from jpeg source. More...

virtual ImageSourceoperator>> (ImageGrey &)
 Extract a greyscale Image from jpeg source. More...

virtual ImageSourceoperator>> (Image &)
 Extract a Image from jpeg source. More...

void get_size (unsigned int &w, unsigned int &h)
int get_height ()

Detailed Description

A class which implements the ImageSource interface as a source of Images from a file stored in the jpeg format.

Each image that is extracted from the JPEGSource class is a copy of the original jpeg image.

Definition at line 43 of file JPEGSource.h.


Constructor & Destructor Documentation

JPEGSource::JPEGSource ( char * jpeg_name )
 

Create an Image source from a file.

Parameters:
jpeg_name   JPEG source file.

Definition at line 24 of file JPEGSource.cpp.


Member Function Documentation

ImageSource & JPEGSource::operator>> ( Image & img ) [virtual]
 

Extract a Image from jpeg source.

The Image could be colour or greyscale depending on the default palette type for this class.

Parameters:
img   The Image to be extracted to.

Reimplemented from ImageSource.

Definition at line 102 of file JPEGSource.cpp.

ImageSource & JPEGSource::operator>> ( ImageGrey & img ) [virtual]
 

Extract a greyscale Image from jpeg source.

Parameters:
img   The greyscale Image to be extracted to.

Reimplemented from ImageSource.

Definition at line 72 of file JPEGSource.cpp.

ImageSource & JPEGSource::operator>> ( ImageRGB & img ) [virtual]
 

Extract colour Image from jpeg source.

Parameters:
img   The colour Image to be extracted to.

Reimplemented from ImageSource.

Definition at line 44 of file JPEGSource.cpp.


The documentation for this class was generated from the following files:
Generated at Fri Aug 13 17:29:22 2004 for libRTImage by doxygen1.2.8.1 written by Dimitri van Heesch, © 1997-2001