33 lines
847 B
C++
33 lines
847 B
C++
/** @file
|
|
* @author Edouard DUPIN
|
|
* @copyright 2011, Edouard DUPIN, all right reserved
|
|
* @license MPL v2.0 (see license file)
|
|
*/
|
|
#pragma once
|
|
|
|
#include <egami/egami.hpp>
|
|
|
|
namespace egami {
|
|
/**
|
|
* @breif Load a bmp file in the image.
|
|
* @param[in] _fileName Name of the file.
|
|
* @return Generate image or empty image
|
|
*/
|
|
egami::Image loadBMP(const etk::String& _fileName);
|
|
/**
|
|
* @breif Load a bmp file in the image.
|
|
* @param[in] _buffer file buffer
|
|
* @return Generate image or empty image
|
|
*/
|
|
egami::Image loadBMP(const etk::Vector<uint8_t>& _buffer);
|
|
/**
|
|
* @breif Store a bmp file in the image.
|
|
* @param[in] _fileName Name of the file.
|
|
* @param[in] _inputImage write data.
|
|
* @return true if all is done correctly, false otherwise.
|
|
*/
|
|
bool storeBMP(const etk::String& _fileName, const egami::Image& _inputImage);
|
|
}
|
|
|
|
|