#include <Image.h>
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 |