1 #ifndef MSP_GRAPHICS_IMAGE_H_
2 #define MSP_GRAPHICS_IMAGE_H_
6 #include <msp/io/seekable.h>
7 #include "pixelformat.h"
27 Data &operator=(const Data &);
35 void load_file(const std::string &);
36 void load_io(IO::Seekable &);
37 void load(ImageLoader &);
39 PixelFormat get_format() const { return data.fmt; }
40 unsigned get_width() const { return data.width; }
41 unsigned get_height() const { return data.height; }
42 unsigned get_stride() const { return data.stride; }
43 const void *get_data() const { return data.data; }
46 } // namespace Graphics