Frz::Pixbuf Class Reference

Pixel buffer manager class. More...

#include <frz_pixbuf.hpp>

Inheritance diagram for Frz::Pixbuf:
Inheritance graph
[legend]

List of all members.

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.

Detailed Description

Pixel buffer manager class.

This class eventually handles a 32-bit ARGB pixel buffer of required width and height.


Constructor & Destructor Documentation

Frz::Pixbuf::Pixbuf ( int  w,
int  h,
bool  allocPixbuf = false 
)

Constructs a Pixel buffer manager object.

Parameters:
w Picture width in pixels.
h Picture height in pixels.
allocPixbuf if true, allocate a screen buffer.

Member Function Documentation

void Frz::Pixbuf::saveBitmap ( const char *  filename  ) 

Exports the buffer into a bitmap file.

The export file format is uncompressed 24-bit BMP.

Parameters:
filename The name of the file to be created.

The documentation for this class was generated from the following file:
 All Classes Functions Variables Friends
Generated on Thu Jun 10 17:37:47 2010 for freezer-0.1.0 by  doxygen 1.6.3