paysages3d/src/system/PictureWriter.h

31 lines
523 B
C
Raw Normal View History

#ifndef PICTUREWRITER_H
#define PICTUREWRITER_H
#include "system_global.h"
#include <string>
namespace paysages {
namespace system {
class SYSTEMSHARED_EXPORT PictureWriter {
public:
2015-12-15 23:31:07 +00:00
PictureWriter();
virtual ~PictureWriter();
/**
2016-01-03 18:21:23 +00:00
* Start saving the picture in a file.
*/
2015-12-10 23:36:50 +00:00
bool save(const string &filepath, int width, int height);
protected:
/**
2016-01-03 18:21:23 +00:00
* Get the (x, y) pixel, in BGRA format
*/
virtual unsigned int getPixel(int x, int y) = 0;
};
}
}
#endif // PICTUREWRITER_H