DevIL Documentation Previous | IL | Next

 

ilSaveL

 

ilSaveL saves an image to a memory lump

 

ILboolean ilSaveL(
  ILenum Type, ILvoid * Lump, ILuint Size );


Parameters

 
Type
Image format
Lump
Lump Address
Size
Lump size


Types

 
IL_BMP
Save the image as a Microsoft bitmap (.bmp).
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_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_LIB_JPEG_ERROR
Error occurred when trying to load a jpeg.
IL_LIB_PNG_ERROR
Error occurred when trying to load a png.
IL_OUT_OF_MEMORY
Could not allocate memory for the new image palette.

See Also

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