IND_ImageManager Class Reference
[IND_ImageManager]

List of all members.

Public Member Functions

bool Init ()
void End ()
bool Add (IND_Image *pNewImage, char *pName)
bool Add (IND_Image *pNewImage, int pWidth, int pHeight, IND_Format pFormat)
bool Delete (IND_Image *pIm)
bool Save (IND_Image *pIm, char *pName)
bool Clone (IND_Image *pNewImage, IND_Image *pOldImage)


Detailed Description

This manager that stores IND_Image objects works as a mediator between the image (bitmap) loaded in memory and the IND_Surface object which finally appears in the screen. The IND_Image objects which are stored in this class can not be rendered directly to the screen. But this class is very useful for applying filters (like in Gimp or Photoshop programs) to loaded images, and later they can be converted to IND_Surface objects, which can be directly rendered.

Other possible uses of this class are:


Member Function Documentation

bool IND_ImageManager::Init (  ) 

This function returns 1 (true) if the adminstrator is successfully initialized. Must be called before using any method.

void IND_ImageManager::End (  ) 

Operation:

This function frees the manager and all the objects that it contains.

bool IND_ImageManager::Add ( IND_Image pNewImage,
char *  pName 
)

Parameters:

Operation:

This function returns 1 (true) if the image object passed as a parameter exists and is added successfully to the manager.

It supports the following graphics formats (thanks to http://openil.sourceforge.net): bmp, png, tga, jpg y pcx.

bool IND_ImageManager::Add ( IND_Image pNewImage,
int  pWidht,
int  pHeight,
IND_Format  pFormat 
)

Parameters:

Operation:

This function returns 1 (true) if the image object passed as a parameter exists and is added successfully to the manager creating a new procedural image.

By default, the new image is not initialized to any color, you should used the Clear() method in order to assing a valid colour.

bool IND_ImageManager::Delete ( IND_Image pIm  ) 

Parameters:

Operation:

This function returns 1(true) if the image object passed as parameter exists and it is deleted from the manager successfully.

bool IND_ImageManager::Save ( IND_Image pIm,
char *  pName 
)

Parameters:

Operation:

This function returns 1 (true) if the image object passed as a parameter exists and saves this image in a file with extension and type specified in the name.

It supports the following graphics formats (thanks to http://openil.sourceforge.net): bmp, png, tga, jpg and pcx.

bool IND_ImageManager::Clone ( IND_Image pNewImage,
IND_Image pOldImage 
)

Parameters:

Operation:

This function returns 1 (true) if the image object passed as a parameter exists and is added successfully to the manager creating a new image cloning from a previous one.


The documentation for this class was generated from the following files:
Generated on Fri Jan 2 17:16:47 2009 for IndieLib by  doxygen 1.5.4