DevIL Documentation Home | Previous | Next

ilSetInteger

The ilSetInteger function sets file format-specific parameters.

ILvoid ilSetInteger(
  ILenum Mode,  ILint Param);



Parameters

Mode
The mode value to be set. The following values are accepted:
IL_TGA_CREATE_STAMP
Boolean specifying whether you want a postage stamp sized image placed in the extensions section of Targas when saving.
IL_JPG_QUALITY
Integer value from 0-99 specifying the quality you want .jpg files to be saved at. Higher values produce better images but increase the size.
Param
When used, the value is stored here instead of returned.


Remarks

ilSetInteger sets DevIL's behaviour with specific file formats. Since file formats have features that make them unique, DevIL is able to control these via ilSetInteger.

Error Codes

IL_INVALID_ENUM - Mode was an invalid enum.
IL_INVALID_PARAM - The value in Param was invalid or out of bounds for the specific mode.

See Also

ilGetBoolean, ilGetBooleanv, ilGetInteger, ilGetIntegerv