|
If the current bound image has a palette, ilSavePal saves the current image's palette to the file specified by FileName. Currently, OpenIL only supports saving to Paint Shop Pro .pal files.
| ILboolean ilSavePal( char * FileName );
|
Parameters | - FileName
- Filename to save the palette data to.
|
Errors | - IL_COULD_NOT_OPEN_FILE
- Could not open FileName for writing.
- IL_ILLEGAL_OPERATION
- The operation attempted is not allowable in the current state. The function returns with no ill side effects. Generally there is currently no image bound or it has been deleted via ilDeleteImages. You should use ilGenImages and ilBindImage before calling the function.
- IL_INVALID_EXTENSION
- No extension set matched FileName's extension.
- IL_INVALID_PARAM
- FileName or Type was NULL.
|
See Also
|