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

Author
Edouard DUPIN
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]_inputInput file name
[in]_outputOutput 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]_fileNameName of the file (SVG, BMP, PNG).
[in]_sizeDimention 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]_fileNameName 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]_inputData of the image.
[in]_fileNameName of the file.
Returns
true if the file is corectly Stored, false otherwise