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