25 Image(const Image &img);
26 Image &operator =(const Image &img);
29 Image &operator =(Image &&img);
31 int get_width() const;
32 int get_height() const;
34 Format get_format() const;
36 bool create(int x, int y, Format fmt = FMT_RGBA);
37 bool set_pixels(int x, int y, void *pixels, Format fmt = FMT_RGBA);
38 void *get_pixels() const;
40 bool load(const char *fname);
41 bool save(const char *fname) const;