Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

Image Class Reference

Grayscale and RGB pixmap. More...

#include <Image.h>

List of all members.

Public Types

enum  Type { GrayScale, GrayScaleAlpha, RGB, RGBA }

Public Methods

 Image (unsigned int w=100, unsigned int h=100, Type t=RGB, uint8 *buf=NULL)
 ~Image ()
unsigned int getWidth ()
unsigned int getHeight ()
Type getType ()
unsigned int getComponents ()
unsigned int lineSize ()
uint8 * data ()
uint8 * getLineBuffer (unsigned short line)
void setColor (unsigned int w, unsigned int h, Color3 &c)
Color3 color (unsigned int w, unsigned int h)
void insertAlpha (const Image &i)
void flipV ()
void allocate ()
void deallocate ()

Static Public Methods

bool find (RefImage &image, const string &name)
RefImage & store (RefImage &image, const string &name)

Protected Attributes

Type type
uint8 * buffer
unsigned int width
unsigned int height


Detailed Description

Grayscale and RGB pixmap.


The documentation for this class was generated from the following files:
This documentation was generated using doxygen. If you have any comments or additions please mail me.