|
Public Methods |
| Image () |
| Image (Cstr_ptr &file) |
| Image (cImage &img) |
| Image (uint w, uint h, uint bpp, uchar *data, bool nd=1) |
| Image (uint w, uint h, uint bpp) |
void | operator= (const Image &img) |
void | set (int w, int h, uint bpp, uchar *data, bool nd=1) |
void | clear () |
int | resize (uint w, uint h, uint b) |
int | copy_tile (const Image &tile, uint i, uint j) |
virtual | ~Image () |
int | width () const |
int | height () const |
uint | bpp () const |
int | size () const |
int | row_size () const |
point2i | dims () const |
uchar * | data () const |
uchar * | row (int k) const |
Cstr_ptr & | file () const |
uchar * | copy () const |
bool | empty () const |
void | expand_power2 () |
int | resize_rows_mult_4 () |
int | load_file (Cstr_ptr &file) |
int | read_png (Cstr_ptr &file) |
int | write_png (char *file) const |
int | read_pnm (Cstr_ptr &file) |
int | read_pnm (istream &in) |
int | read_pgm (istream &in, bool ascii) |
int | read_ppm (istream &in, bool ascii) |
int | write_pnm (char *file, bool ascii=false) const |
int | write_pnm (ostream &os, bool ascii) const |
Static Public Methods |
int | write_png (int w, int h, uint bpp, uchar *data, Cstr_ptr &file) |
Protected Types |
enum | { PNG_BYTES_TO_CHECK = 8
} |
Protected Methods |
FILE * | open_png (char *file) |
Protected Attributes |
uint | _width |
uint | _height |
uint | _bpp |
uchar * | _data |
bool | _no_delete |
str_ptr | _file |
Friends |
ostream & | operator<< (ostream &os, cImage &img) |
istream & | operator>> (istream &is, Image &img) |