X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;ds=sidebyside;f=source%2Fgbase%2Fimage.h;fp=source%2Fgbase%2Fimage.h;h=0000000000000000000000000000000000000000;hb=1023b38fa278cea71fba3d2881e1bfde930cd025;hp=aec1b0dc15ffb1be598e9d67b0beb38279cc17c9;hpb=7d2b4349289578b8e7f322186a1f251684ddeb01;p=libs%2Fgui.git diff --git a/source/gbase/image.h b/source/gbase/image.h deleted file mode 100644 index aec1b0d..0000000 --- a/source/gbase/image.h +++ /dev/null @@ -1,48 +0,0 @@ -#ifndef MSP_GBASE_IMAGE_H_ -#define MSP_GBASE_IMAGE_H_ - -#include -#include "pixelformat.h" - -namespace Msp { -namespace Graphics { - -class unsupported_image_format: public std::runtime_error -{ -public: - unsupported_image_format(const std::string &w): std::runtime_error(w) { } - virtual ~unsupported_image_format() throw() { } -}; - -class bad_image_data: public std::runtime_error -{ -public: - bad_image_data(const std::string &w): std::runtime_error(w) { } - virtual ~bad_image_data() throw() { } -}; - - -class Image -{ -public: - struct Private; - -private: - Private *priv; - -public: - Image(); - ~Image(); - - void load_file(const std::string &); - void load_memory(const void *, unsigned); - PixelFormat get_format() const; - unsigned get_width() const; - unsigned get_height() const; - const void *get_data() const; -}; - -} // namespace Graphics -} // namespace Msp - -#endif