[DEV] correct the saving of bmp

This commit is contained in:
Edouard DUPIN 2015-08-24 22:40:32 +02:00
parent 1b1e216ae1
commit 350f76c677

View File

@ -252,11 +252,13 @@ bool egami::storeBMP(const std::string& _fileName, const egami::Image& _inputIma
fileName.fileClose();
return false;
}
if(false == fileName.fileSeek(m_FileHeader.bfOffBits, etk::FSN_SEEK_START)) {
/* TODO: Avec ca, ca ne fonctionne pas ... ==> check
if(fileName.fileSeek(m_FileHeader.bfOffBits, etk::FSN_SEEK_START) == false) {
EGAMI_ERROR("error with the 'bfOffBits' in the file named=\"" << fileName << "\"");
fileName.fileClose();
return false;
}
*/
uint8_t data[16];
for(int32_t yyy=0; yyy<_inputImage.getSize().y(); yyy++) {
for(int32_t xxx=0; xxx<_inputImage.getSize().x(); xxx++) {