egami.hpp File Reference
#include <etk/types.hpp>
#include <vector>
#include <etk/math/Vector2D.hpp>
#include <etk/Color.hpp>
#include <egami/Image.hpp>
#include <egami/ImageMono.hpp>
Go to the source code of this file.
Functions | |
egami::Image | egami::load (const std::string &_fileName, const ivec2 &_size=ivec2(-1,-1)) |
bool | egami::store (const egami::Image &_input, const std::string &_fileName) |
bool | egami::scalable (const std::string &_fileName) |
bool | egami::generateDistanceFieldFile (const std::string &_input, const std::string &_output) |
Detailed Description
- Copyright
- 2011, Edouard DUPIN, all right reserved
- Note
- License: APACHE v2.0 (see license file)
Function Documentation
§ generateDistanceFieldFile()
bool egami::generateDistanceFieldFile | ( | const std::string & | _input, |
const std::string & | _output | ||
) |
Generate a distance field output file from an input file;.
- Parameters
-
[in] _input Input file name [in] _output Output file name
- Returns
- true All done corectly.
- false An error occured.
§ load()
egami::Image egami::load | ( | const std::string & | _fileName, |
const ivec2 & | _size = ivec2(-1,-1) |
||
) |
Load a specific ilage file in the requested image data.
- Parameters
-
[in] _fileName Name of the file (SVG, BMP, PNG). [in] _size Dimention of the file when resizable (SVG).
§ scalable()
bool egami::scalable | ( | const std::string & | _fileName | ) |
know if a file can have multiple size definition.
- Parameters
-
[in] _fileName Name of the file.
- Returns
- true if the format is scalable.
§ store()
bool egami::store | ( | const egami::Image & | _input, |
const std::string & | _fileName | ||
) |
Save an image in a file.
- Parameters
-
[in] _input Data of the image. [in] _fileName Name of the file.
- Returns
- true if the file is corectly Stored, false otherwise