#include <tga_image.h>
Collaboration diagram for TGA_Image:
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 |
Definition at line 132 of file tga_image.h.
|
Creates an image object with a resolution of xres by yres. Definition at line 88 of file tga_image.cc. |
|
Fills the entire image with colour col. Definition at line 150 of file tga_image.h. |
|
Sets the font used for annotations to fnt. Definition at line 109 of file tga_image.cc. |
|
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. |
|
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. |
|
Sets the pixel i, j, to the colour col. Definition at line 163 of file tga_image.h. |
|
Writes the image to file. Definition at line 114 of file tga_image.cc. |