DevIL Documentation Previous | IL | Next

 

ilSaveF

 

ilSaveF saves an image to a previously opened file

 

ILboolean ilSaveF(
  ILenum Type, ILHANDLE File );


Parameters

 
Type
Image format
File
Pointer to a previous opened file


Types

 
IL_BMP
Save the image as a Microsoft bitmap (.bmp).
IL_CHEAD
Save a C Header style image.
IL_JPG
Save the image as a Jpeg (.jpg).
IL_PNM
Save a Portable AnyMap (.pbm, .pgm or .ppm).
IL_PSD
Save a PhotoShop (.psd) file.
IL_SGI
Save an SGI (.bw, .rgb, .rgba or .sgi).
IL_TGA
Save a TrueVision Targa.
IL_TYPE_UNKNOWN
Tells OpenIL to try to determine the type of image present in FileName, File or Lump.

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_ILLEGAL_OPERATION
There is currently no image bound. Use ilGenImages and ilBindImage before calling this function.
IL_INVALID_ENUM
Type was of an invalid value.
IL_INVALID_PARAM
FileName or Type was NULL.
IL_LIB_JPEG_ERROR
Error occurred when trying to save a jpeg.
IL_LIB_PNG_ERROR
Error occurred when trying to save a png.

See Also

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