DevIL Documentation Previous | IL | Next

 

ilSave

 

ilSave can be used much in the same way ilSaveImage is used, except with ilSave, it is possible to force OpenIL to save a file as a specific image format, no matter what the extension.

 

ILboolean ilSave(
  ILenum Type, char * File );


Parameters

 
Type
Image format.
File
The filename of the file to save to.


Types

 
IL_BMP, IL_CHEAD, IL_JPG, IL_PNM, IL_PSD, IL_PSD, IL_SGI, IL_TGA, IL_TYPE_UNKNOWN,

Errors

 
IL_COULD_NOT_OPEN_FILE
The file pointed to by FileName could not be opened. Either the file does not exist or is in use by another process.
IL_INVALID_ENUM
Type was of an invalid value.

See Also

 
ilBindImage, ilGenImages, ilLoadImage, ilSave, ilSaveImage, ilSetFileCallbacks,