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) |
Other possible uses of this class are:
| 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:
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:
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:
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:
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.
Parameters:
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.
1.5.4