Go to the documentation of this file.
28 #include <FreeImage.h>
69 public:
Image(
const std::string &_filename=
"");
76 public:
int Load(
const std::string &_filename);
80 public:
void SavePNG(
const std::string &_filename);
87 public:
void SetFromData(
const unsigned char *_data,
95 public:
void GetData(
unsigned char **_data,
96 unsigned int &_count)
const;
102 public:
void GetRGBData(
unsigned char **_data,
103 unsigned int &_count)
const;
107 public:
unsigned int GetWidth()
const;
115 public:
unsigned int GetBPP()
const;
145 public:
void Rescale(
int _width,
int _height);
149 public:
bool Valid()
const;
152 private:
void GetDataImpl(
unsigned char **_data,
unsigned int &_count,
153 FIBITMAP *_img)
const;
157 private:
static int count;
160 private: FIBITMAP *bitmap;
163 private: std::string fullName;