Pixel buffer manager class. More...
#include <frz_pixbuf.hpp>

Public Member Functions | |
| Pixbuf (int w, int h, bool allocPixbuf=false) | |
| Constructs a Pixel buffer manager object. | |
| virtual | ~Pixbuf () |
| Destructor. | |
| void | saveBitmap (const char *filename) |
| Exports the buffer into a bitmap file. | |
Protected Attributes | |
| int | width |
| Surface width in pixels. | |
| int | height |
| Surface height in pixels. | |
| int | pitch |
| Surface pitch in pixels. | |
| uint32_t * | pixbuf |
Pixel buffer address, if allocated, 0 otherwise. | |
Pixel buffer manager class.
This class eventually handles a 32-bit ARGB pixel buffer of required width and height.
| Frz::Pixbuf::Pixbuf | ( | int | w, | |
| int | h, | |||
| bool | allocPixbuf = false | |||
| ) |
Constructs a Pixel buffer manager object.
| w | Picture width in pixels. | |
| h | Picture height in pixels. | |
| allocPixbuf | if true, allocate a screen buffer. |
| void Frz::Pixbuf::saveBitmap | ( | const char * | filename | ) |
Exports the buffer into a bitmap file.
The export file format is uncompressed 24-bit BMP.
| filename | The name of the file to be created. |
1.6.3