decXpmImage Class Reference

Simple XPM Image container. More...

#include <decXpmImage.h>

List of all members.

Public Member Functions

Constructors and Destructors
 decXpmImage (const char *xpmData[], bool flip)
 Creates a new xpm image object from the given xmp data source.
 ~decXpmImage ()
 Cleans up the xpm image object.
Management
int GetWidth () const
 Retrieves the width of the image.
int GetHeight () const
 Retrieves the height of the image.
const char * GetData () const
 Retrieves the pointer to the RGB aligned data.

Detailed Description

Simple XPM Image container.

A simple parser for XPM images linked into the code. It is very basic and stores the image as RGB format.

Author:
Plüss Roland
Version:
1.0
Date:
2008

Constructor & Destructor Documentation

decXpmImage::decXpmImage ( const char *  xpmData[],
bool  flip 
)

Creates a new xpm image object from the given xmp data source.

Parameters:
xpmDataPointer to the xpm data. Usually the pointer to the compiled in xpm data.
flipDetermines if the image has to be flippep upside down. Can be used for opengl for example which expects images to be upside down.
decXpmImage::~decXpmImage (  )

Cleans up the xpm image object.


Member Function Documentation

const char* decXpmImage::GetData (  ) const [inline]

Retrieves the pointer to the RGB aligned data.

int decXpmImage::GetHeight (  ) const [inline]

Retrieves the height of the image.

int decXpmImage::GetWidth (  ) const [inline]

Retrieves the width of the image.


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