Nori  23
Bitmap Class Reference

Stores a RGB high dynamic-range bitmap. More...

#include <bitmap.h>

Inheritance diagram for Bitmap:
Collaboration diagram for Bitmap:

Public Types

typedef Eigen::Array< Color3f, Eigen::Dynamic, Eigen::Dynamic, Eigen::RowMajor > Base
 

Public Member Functions

 Bitmap (const Vector2i &size=Vector2i(0, 0))
 Allocate a new bitmap of the specified size. More...
 
 Bitmap (const std::string &filename)
 Load an OpenEXR file with the specified filename.
 
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.
 

Detailed Description

Stores a RGB high dynamic-range bitmap.

The bitmap class provides I/O support using the OpenEXR file format

Definition at line 32 of file bitmap.h.

Constructor & Destructor Documentation

◆ Bitmap()

Bitmap::Bitmap ( const Vector2i size = Vector2i(0, 0))
inline

Allocate a new bitmap of the specified size.

The contents will initially be undefined, so make sure to call clear() if necessary

Definition at line 42 of file bitmap.h.


The documentation for this class was generated from the following files: