32 #include "Portability.h" 36 #ifndef DOXYGEN_SHOULD_SKIP_THIS 139 void create(
Vector2u size,
const uint8_t* pixels);
151 void createRGB(
Vector2u size,
const uint8_t* pixels);
167 bool loadFromFile(
const Path& filename);
184 bool loadFromMemory(
const uint8_t* data, std::size_t length);
216 bool saveToFile(
const Path& filename)
const;
235 void createMaskFromColor(
const Color4u& color, uint8_t alpha = 0);
278 const uint8_t* getPixelsPtr()
const;
285 void flipHorizontally();
289 std::vector<uint8_t> m_pixels;
293 #ifndef DOXYGEN_SHOULD_SKIP_THIS Class for loading, manipulating and saving images.
Definition: Image.h:92
The namespace for gf classes.
Definition: Action.h:34
boost::filesystem::path Path
A path in the filesystem.
Definition: Path.h:44