28 int get_width() const;
29 int get_height() const;
31 Format get_format() const;
33 bool create(int x, int y, Format fmt = FMT_RGBA);
34 bool set_pixels(int xsz, int ysz, void *pixels, Format fmt = FMT_RGBA);
35 bool set_pixels(int xsz, int ysz, void *pixels, int scan_width, Format fmt = FMT_RGBA);
36 bool set_pixels(int xsz, int ysz, void *pixels, int x, int y, int scan_width = -1, Format fmt = FMT_RGBA);
37 void *get_pixels() const;
39 void flip_horizontal();
45 bool load(const char *fname);
46 bool save(const char *fname) const;