]> git.tdb.fi Git - libs/gui.git/blob - source/gbase/image.h
Drop Id tags and copyright notices from files
[libs/gui.git] / source / gbase / image.h
1 #ifndef MSP_GBASE_IMAGE_H_
2 #define MSP_GBASE_IMAGE_H_
3
4 #include <string>
5 #include "pixelformat.h"
6
7 namespace Msp {
8 namespace Graphics {
9
10 class Image
11 {
12 public:
13         struct Private;
14
15 private:
16         Private *priv;
17
18 public:
19         Image();
20         ~Image();
21
22         void load_file(const std::string &);
23         void load_memory(const void *, unsigned);
24         PixelFormat get_format() const;
25         unsigned get_width() const;
26         unsigned get_height() const;
27         const void *get_data() const;
28 };
29
30 } // namespace Graphics
31 } // namespace Msp
32
33 #endif