Go to the documentation of this file.
28 #include <FreeImage.h>
45 "UNKNOWN_PIXEL_FORMAT",
100 const std::string &_format);
104 public:
explicit Image(
const std::string &_filename=
"");
111 public:
int Load(
const std::string &_filename);
115 public:
void SavePNG(
const std::string &_filename);
122 public:
void SetFromData(
const unsigned char *_data,
124 unsigned int _height,
130 public:
void GetData(
unsigned char **_data,
131 unsigned int &_count)
const;
137 public:
void GetRGBData(
unsigned char **_data,
138 unsigned int &_count)
const;
142 public:
unsigned int GetWidth()
const;
150 public:
unsigned int GetBPP()
const;
180 public:
void Rescale(
int _width,
int _height);
184 public:
bool Valid()
const;
187 private:
void GetDataImpl(
unsigned char **_data,
unsigned int &_count,
188 FIBITMAP *_img)
const;
192 private:
static int count;
195 private: FIBITMAP *bitmap;
198 private: std::string fullName;