46 lines
1.4 KiB
C++
46 lines
1.4 KiB
C++
/** @file
|
|
* @author Edouard DUPIN
|
|
* @copyright 2011, Edouard DUPIN, all right reserved
|
|
* @license APACHE v2.0 (see license file)
|
|
*/
|
|
#pragma once
|
|
|
|
#include <etk/types.hpp>
|
|
#include <vector>
|
|
#include <etk/math/Vector2D.hpp>
|
|
#include <etk/Color.hpp>
|
|
#include <egami/Image.hpp>
|
|
#include <egami/ImageMono.hpp>
|
|
|
|
namespace egami {
|
|
/**
|
|
* @brief Load a specific ilage file in the requested image data.
|
|
* @param[in] _fileName Name of the file (SVG, BMP, PNG).
|
|
* @param[in] _size Dimention of the file when resizable (SVG).
|
|
*/
|
|
egami::Image load(const std::string& _fileName, const ivec2& _size=ivec2(-1,-1) );
|
|
/**
|
|
* @brief Save an image in a file.
|
|
* @param[in] _input Data of the image.
|
|
* @param[in] _fileName Name of the file.
|
|
* @return true if the file is corectly Stored, false otherwise
|
|
*/
|
|
bool store(const egami::Image& _input, const std::string& _fileName);
|
|
/**
|
|
* @brief know if a file can have multiple size definition.
|
|
* @param[in] _fileName Name of the file.
|
|
* @return true if the format is scalable.
|
|
*/
|
|
bool scalable(const std::string& _fileName);
|
|
/**
|
|
* @brief Generate a distance field output file from an input file;
|
|
* @param[in] _input Input file name
|
|
* @param[in] _output Output file name
|
|
* @return true All done corectly.
|
|
* @return false An error occured.
|
|
*/
|
|
bool generateDistanceFieldFile(const std::string& _input, const std::string& _output);
|
|
}
|
|
|
|
|