#include <image.h>
Public Member Functions | |
Image (int w, int h) | |
~Image () | |
void | setPixel (int x, int y, uchar val) |
uchar | getPixel (int x, int y) const |
void | writeChar (int x, int y, char c, uchar fg) |
void | writeString (int x, int y, const char *s, uchar fg) |
void | drawHorzLine (int y, int xs, int xe, uchar colIndex, uint mask) |
void | drawHorzArrow (int y, int xs, int xe, uchar colIndex, uint mask) |
void | drawVertLine (int x, int ys, int ye, uchar colIndex, uint mask) |
void | drawVertArrow (int x, int ys, int ye, uchar colIndex, uint mask) |
void | drawRect (int x, int y, int width, int height, uchar colIndex, uint mask) |
void | fillRect (int x, int y, int width, int height, uchar colIndex, uint mask) |
bool | save (const char *fileName, int mode=0) |
uint | getWidth () const |
uint | getHeight () const |
uchar * | getData () const |
Static Public Member Functions | |
static uint | stringLength (const char *s) |
Private Attributes | |
int | width |
int | height |
uchar * | data |
Friends | |
uint | stringLength (const char *s) |
Image::Image | ( | int | w, |
int | h | ||
) |
Definition at line 210 of file image.cpp.
Image::~Image | ( | ) |
Definition at line 335 of file image.cpp.
Definition at line 366 of file image.cpp.
Definition at line 355 of file image.cpp.
bool Image::save | ( | const char * | fileName, |
int | mode = 0 |
||
) |
Definition at line 383 of file image.cpp.
|
static |
void Image::writeString | ( | int | x, |
int | y, | ||
const char * | s, | ||
uchar | fg | ||
) |