Main Page | Modules | Alphabetical List | Class List | File List | Class Members | File Members

TGA_Image Class Reference
[Image creation]

#include <tga_image.h>

Collaboration diagram for TGA_Image:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 TGA_Image (int xres, int yres)
void fill (const Colour &col)
void set_font (const Font &fnt)
void annotate (int xpos, int ypos, const Colour &col, const std::string &text, int scale=1)
void annotate_centered (int xpos, int ypos, const Colour &col, const std::string &text, int scale=1)
void put_pixel (int i, int j, const Colour &col)
void write (const std::string &file) const

Detailed Description

Class for creating and storing TGA image files.

Definition at line 132 of file tga_image.h.


Constructor & Destructor Documentation

TGA_Image::TGA_Image int  xres,
int  yres
 

Creates an image object with a resolution of xres by yres.

Definition at line 88 of file tga_image.cc.


Member Function Documentation

void TGA_Image::fill const Colour col  )  [inline]
 

Fills the entire image with colour col.

Definition at line 150 of file tga_image.h.

void TGA_Image::set_font const Font &  fnt  ) 
 

Sets the font used for annotations to fnt.

Definition at line 109 of file tga_image.cc.

void TGA_Image::annotate int  xpos,
int  ypos,
const Colour col,
const std::string &  text,
int  scale = 1
 

Outputs the string text in colour col. xpos, ypos is the lower left corner; the font is scaled by scale.

Definition at line 94 of file tga_image.cc.

void TGA_Image::annotate_centered int  xpos,
int  ypos,
const Colour col,
const std::string &  text,
int  scale = 1
 

Outputs the string text centered at position xpos, ypos in colour col. The font is scaled by scale.

Definition at line 101 of file tga_image.cc.

void TGA_Image::put_pixel int  i,
int  j,
const Colour col
[inline]
 

Sets the pixel i, j, to the colour col.

Definition at line 163 of file tga_image.h.

void TGA_Image::write const std::string &  file  )  const
 

Writes the image to file.

Definition at line 114 of file tga_image.cc.


The documentation for this class was generated from the following files:
Generated on Fri Jul 8 09:37:14 2005 for LevelS C++ support library