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

Image Class Reference

#include <Image.h>

Inheritance diagram for Image:

RGBEImage RGBAImage ByteImage

List of all members.


Public Members

 Image (ImgTag it)
virtual Void SetSize (Int width, Int height) = 0
Int Height () const
Int Width () const
virtual Void Clear (const Colour &c) = 0
virtual Void CopyFrom (Int x, Int y, Image &i)
virtual Void GammaCorrect (ClrReal gamma = 2.2)
virtual Void Scale (ClrReal scale)
virtual ClrReal MaxComponent ()
virtual Colour AverageColour ()
virtual Void FindComponentBounds (Colour &min, Colour &max)
virtual Void Transform (const ClrTrans &trans)
Apply the given colour transformation to the image.

virtual Void Over (Int x, Int y, Image &i)
virtual Void DownSample (Image &out)
quick hack for now. do proper arbitrary filtered scaling sometime.

virtual Void SetPixel (Int x, Int y, const Colour &c) = 0
virtual Colour GetPixel (Int x, Int y) const = 0
virtual Void SetRealPixel (Int x, Int y, ClrReal r, ImgChannel channel = chMono)
virtual ClrReal GetRealPixel (Int x, Int y, ImgChannel channel = chMono) const
virtual Void SetSpan (Int row, Int start, Int length, const Colour *src) = 0
virtual Void GetSpan (Int row, Int start, Int length, Colour *dst) const = 0
virtual Void SetRGBASpan (Int row, Int start, Int length, const RGBAPixel *src)
virtual Void GetRGBASpan (Int row, Int start, Int length, RGBAPixel *dst) const
virtual Void SetRealSpan (Int row, Int start, Int length, const ClrReal *src, ImgChannel channel = chMono)
virtual Void GetRealSpan (Int row, Int start, Int length, ClrReal *dst, ImgChannel channel = chMono) const
virtual Void SetByteSpan (Int row, Int start, Int length, const Byte *src, ImgChannel channel = chMono)
virtual Void GetByteSpan (Int row, Int start, Int length, Byte *dst, ImgChannel channel = chMono) const
Int Save (FileName &filename)
Int Load (FileName &filename)
Int SavePPM (const Char *filename)
Int LoadPPM (const Char *filename)
Int SaveTIFF (const Char *filename)
Int LoadTIFF (const Char *filename)
Int SaveJPEG (const Char *filename)
Int LoadJPEG (const Char *filename)
Int SaveGIF (const Char *filename)
Int LoadGIF (const Char *filename)
ImgTag Tag () const

Static Public Members

Void PrintSupportedFormats (ostream &s)
Int sJPEGQuality = 90

Protected Members

Int width
Int height
ImgTag tag

Detailed Description

Definition at line 72 of file Image.h.


Constructor & Destructor Documentation

Image::Image (ImgTag it)

Definition at line 75 of file Image.h.


Member Function Documentation

Colour Image::AverageColour () [virtual]

Definition at line 103 of file Image.cc.

Void Image::Clear (const Colour & c) [pure virtual]

Reimplemented in ByteImage, RGBAImage, and RGBEImage.

Definition at line 26 of file Image.cc.

Void Image::CopyFrom (Int x, Int y, Image & img) [virtual]

Definition at line 36 of file Image.cc.

Void Image::DownSample (Image & out) [virtual]

quick hack for now. do proper arbitrary filtered scaling sometime.

Definition at line 178 of file Image.cc.

Void Image::FindComponentBounds (Colour & min, Colour & max) [virtual]

Definition at line 126 of file Image.cc.

Void Image::GammaCorrect (ClrReal gamma = 2.2) [virtual]

Definition at line 53 of file Image.cc.

Void Image::GetByteSpan (Int row, Int start, Int length, Byte * dst, ImgChannel channel = chMono) const [virtual]

Reimplemented in ByteImage.

Definition at line 294 of file Image.cc.

virtual Colour Image::GetPixel (Int x, Int y) const [pure virtual]

Reimplemented in ByteImage, RGBAImage, and RGBEImage.

Void Image::GetRGBASpan (Int row, Int start, Int length, RGBAPixel * dst) const [virtual]

Reimplemented in RGBAImage.

Definition at line 267 of file Image.cc.

ClrReal Image::GetRealPixel (Int x, Int y, ImgChannel ch = chMono) const [virtual]

Reimplemented in ByteImage.

Definition at line 221 of file Image.cc.

Void Image::GetRealSpan (Int row, Int start, Int length, ClrReal * dst, ImgChannel channel = chMono) const [virtual]

Definition at line 245 of file Image.cc.

virtual Void Image::GetSpan (Int row, Int start, Int length, Colour * dst) const [pure virtual]

Reimplemented in ByteImage, RGBAImage, and RGBEImage.

Int Image::Height () const [inline]

Definition at line 79 of file Image.h.

Int Image::Load (FileName & filename)

Definition at line 386 of file Image.cc.

Int Image::LoadGIF (const Char * filename)

Definition at line 853 of file Image.cc.

Int Image::LoadJPEG (const Char * filename)

Definition at line 1008 of file Image.cc.

Int Image::LoadPPM (const Char * filename)

Definition at line 478 of file Image.cc.

Int Image::LoadTIFF (const Char * filename)

Definition at line 663 of file Image.cc.

ClrReal Image::MaxComponent () [virtual]

Definition at line 87 of file Image.cc.

Void Image::Over (Int x, Int y, Image & img) [virtual]

Definition at line 159 of file Image.cc.

Void Image::PrintSupportedFormats (ostream & s) [static]

Definition at line 326 of file Image.cc.

Int Image::Save (FileName & filename)

Definition at line 339 of file Image.cc.

Int Image::SaveGIF (const Char * filename)

Definition at line 848 of file Image.cc.

Int Image::SaveJPEG (const Char * filename)

Definition at line 946 of file Image.cc.

Int Image::SavePPM (const Char * filename)

Definition at line 425 of file Image.cc.

Int Image::SaveTIFF (const Char * filename)

Definition at line 585 of file Image.cc.

Void Image::Scale (ClrReal scale) [virtual]

Definition at line 72 of file Image.cc.

Void Image::SetByteSpan (Int row, Int start, Int length, const Byte * src, ImgChannel channel = chMono) [virtual]

Reimplemented in ByteImage.

Definition at line 280 of file Image.cc.

virtual Void Image::SetPixel (Int x, Int y, const Colour & c) [pure virtual]

Reimplemented in ByteImage, RGBAImage, and RGBEImage.

Void Image::SetRGBASpan (Int row, Int start, Int length, const RGBAPixel * src) [virtual]

Reimplemented in RGBAImage.

Definition at line 254 of file Image.cc.

Void Image::SetRealPixel (Int x, Int y, ClrReal r, ImgChannel ch = chMono) [virtual]

Reimplemented in ByteImage.

Definition at line 208 of file Image.cc.

Void Image::SetRealSpan (Int row, Int start, Int length, const ClrReal * src, ImgChannel channel = chMono) [virtual]

Definition at line 236 of file Image.cc.

virtual Void Image::SetSize (Int width, Int height) [pure virtual]

Reimplemented in ByteImage, RGBAImage, and RGBEImage.

virtual Void Image::SetSpan (Int row, Int start, Int length, const Colour * src) [pure virtual]

Reimplemented in ByteImage, RGBAImage, and RGBEImage.

ImgTag Image::Tag () const [inline]

Definition at line 140 of file Image.h.

Void Image::Transform (const ClrTrans & trans) [inline, virtual]

Apply the given colour transformation to the image.

Definition at line 140 of file Image.cc.

Int Image::Width () const [inline]

Definition at line 80 of file Image.h.


Member Data Documentation

Int Image::height [protected]

Definition at line 146 of file Image.h.

Int Image::sJPEGQuality = 90 [static]

Definition at line 142 of file Image.h.

ImgTag Image::tag [protected]

Definition at line 147 of file Image.h.

Int Image::width [protected]

Definition at line 145 of file Image.h.


The documentation for this class was generated from the following files:
Generated at Sat Aug 5 00:17:08 2000 for Graphics Class Library by doxygen 1.1.0 written by Dimitri van Heesch, © 1997-2000