DevIL Documentation Home | Previous | Next

ilSetInteger

The ilSetInteger function sets the value of a selected mode.


ILvoid ilSetInteger(
  ILenum Mode,
  ILint Param
);

Parameters

Mode
The mode value to be returned. The following values are accepted:

IL_TGA_CREATE_STAMP
Sets whether .tga files are saved with a "postage stamp" in their extension fields (IL_TRUE or IL_FALSE accepted).
IL_JPG_QUALITY
Sets the quality .jpg files are saved at. Valid values are in the 0-99 range, with 99 being the best quality.
IL_PNG_INTERLACE
Tells DevIL to save .png files interlaced.
IL_TGA_RLE
Tells DevIL to save .tga files with RLE-compressed data.
IL_BMP_RLE
Tells DevIL to save .bmp files with RLE-compressed data.
IL_SGI_RLE
Tells DevIL to save .sgi files with RLE-compressed data.
IL_DXTC_FORMAT
Sets the compression mode for DXTC: IL_DXT1 to IL_DXT5.
IL_IMAGE_OFFX
Sets the offset (in pixels) from the left-hand side of the image.
IL_IMAGE_OFFY
Sets the offset (in pixels) from the top of the image.
IL_IMAGE_DURATION
Sets the image's duration (no specified unit currently).
IL_FORMAT_MODE
Specifies what the default image format is (to be used in conjunction with ilEnable(IL_FORMAT_SET).
IL_TYPE_MODE
Specifies what the default image type is (to be used in conjunction with ilEnable(IL_TYPE_SET).
IL_ORIGIN_MODE
Works exactly like ilOriginFunc.
IL_QUANTIZATION_MODE
Sets the quantization mode to be used with ilConvertImage(IL_COLOUR_INDEX). Accepted values are IL_WU_QUANT and IL_NEU_QUANT.
IL_NEU_QUANT_SAMPLE
Specifies the sample number to use with NeuQuantization. 1 is faster with low quality, while 30 is slower but with higher quality.

Param
The value to set the mode with.

Remarks

ilSetInteger is ilGetInteger's counterpart.

Error Codes

IL_INVALID_ENUM - Mode was an invalid enum.
IL_INVALID_PARAM - Param was not in range.

See Also

ilGetInteger, ilOriginFunc, ilEnable, ilConvertImage