40 lines
1.1 KiB
C++
40 lines
1.1 KiB
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] _uri Uri of the file.
|
|
* @return Generate image or empty image
|
|
*/
|
|
egami::Image loadBMP(const etk::Uri& _uri);
|
|
/**
|
|
* @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] _uri Uri of the file.
|
|
* @param[in] _inputImage write data.
|
|
* @return true if all is done correctly, false otherwise.
|
|
*/
|
|
bool storeBMP(const etk::Uri& _uri, const egami::Image& _inputImage);
|
|
/**
|
|
* @breif Store a bmp file in the image.
|
|
* @param[out] _buffer output file buffer.
|
|
* @param[in] _inputImage write data.
|
|
* @return true if all is done correctly, false otherwise.
|
|
*/
|
|
bool storeBMP(etk::Vector<uint8_t>& _buffer, const egami::Image& _inputImage);
|
|
}
|
|
|
|
|