19 #if !defined(__NORI_BITMAP_H)
20 #define __NORI_BITMAP_H
22 #include <nori/color.h>
23 #include <nori/vector.h>
32 class Bitmap :
public Eigen::Array<Color3f, Eigen::Dynamic, Eigen::Dynamic, Eigen::RowMajor> {
34 typedef Eigen::Array<Color3f, Eigen::Dynamic, Eigen::Dynamic, Eigen::RowMajor> Base;
43 : Base(size.y(), size.x()) { }
46 Bitmap(
const std::string &filename);
49 void save(
const std::string &filenameStem);
52 void saveEXR(
const std::string &filenameStem);
55 void savePNG(
const std::string &filenameStem);
Stores a RGB high dynamic-range bitmap.
void save(const std::string &filenameStem)
Save the bitmap as an EXR and PNG file with the specified filename.
void saveEXR(const std::string &filenameStem)
Save the bitmap as an EXR file with the specified filename.
void savePNG(const std::string &filenameStem)
Save the bitmap as a PNG file with the specified filename.
Bitmap(const Vector2i &size=Vector2i(0, 0))
Allocate a new bitmap of the specified size.