24 int get_width() const;
25 int get_height() const;
27 Format get_format() const;
29 bool create(int x, int y, Format fmt = FMT_RGBA);
30 bool set_pixels(int xsz, int ysz, void *pixels, Format fmt = FMT_RGBA);
31 bool set_pixels(int xsz, int ysz, void *pixels, int scan_width, Format fmt = FMT_RGBA);
32 bool set_pixels(int xsz, int ysz, void *pixels, int x, int y, int scan_width = -1, Format fmt = FMT_RGBA);
33 void *get_pixels() const;
35 void flip_horizontal();
39 bool load(const char *fname);
40 bool save(const char *fname) const;