Go to the documentation of this file.
28 #include <FreeImage.h>
70 public:
Image(
const std::string &_filename=
"");
77 public:
int Load(
const std::string &_filename);
81 public:
void SavePNG(
const std::string &_filename);
88 public:
void SetFromData(
const unsigned char *_data,
96 public:
void GetData(
unsigned char **_data,
97 unsigned int &_count)
const;
103 public:
void GetRGBData(
unsigned char **_data,
104 unsigned int &_count)
const;
108 public:
unsigned int GetWidth()
const;
116 public:
unsigned int GetBPP()
const;
146 public:
void Rescale(
int _width,
int _height);
150 public:
bool Valid()
const;
153 private:
void GetDataImpl(
unsigned char **_data,
unsigned int &_count,
154 FIBITMAP *_img)
const;
158 private:
static int count;
161 private: FIBITMAP *bitmap;
164 private: std::string fullName;