1 #ifndef MSP_GRAPHICS_IMAGE_H_
2 #define MSP_GRAPHICS_IMAGE_H_
6 #include "pixelformat.h"
11 class unsupported_image_format: public std::runtime_error
14 unsupported_image_format(const std::string &w): std::runtime_error(w) { }
15 virtual ~unsupported_image_format() throw() { }
18 class bad_image_data: public std::runtime_error
21 bad_image_data(const std::string &w): std::runtime_error(w) { }
22 virtual ~bad_image_data() throw() { }
38 void load_file(const std::string &);
39 void load_memory(const void *, unsigned);
40 PixelFormat get_format() const;
41 unsigned get_width() const;
42 unsigned get_height() const;
43 const void *get_data() const;
46 } // namespace Graphics