2013-12-09 21:16:00 +00:00
|
|
|
#ifndef PICTUREWRITER_H
|
|
|
|
#define PICTUREWRITER_H
|
|
|
|
|
|
|
|
#include "system_global.h"
|
|
|
|
|
|
|
|
namespace paysages {
|
|
|
|
namespace system {
|
|
|
|
|
2015-11-09 21:30:46 +00:00
|
|
|
class SYSTEMSHARED_EXPORT PictureWriter {
|
|
|
|
public:
|
2013-12-09 21:16:00 +00:00
|
|
|
/**
|
|
|
|
* @brief Start saving the picture in a file.
|
|
|
|
*/
|
|
|
|
bool save(const std::string &filepath, int width, int height);
|
|
|
|
|
2015-11-09 21:30:46 +00:00
|
|
|
protected:
|
2013-12-09 21:16:00 +00:00
|
|
|
/**
|
|
|
|
* @brief Get the (x, y) pixel, in BGRA format
|
|
|
|
*/
|
|
|
|
virtual unsigned int getPixel(int x, int y) = 0;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif // PICTUREWRITER_H
|