DevIL Documentation Home | Previous | Next

iluScale

The iluScale function shrinks or enlarges an image.


ILboolean iluScale(
  ILuint Width,
  ILuint Height,
  ILuint Depth
);

Parameters

Width
New width of the image.
Height
New height of the image.
Depth
New depth of the image.

Remarks

The iluScale function scales the image to the new dimensions specified, shrinking or enlarging the image, depending on the image's original dimensions. There are different filters that can be used to scale an image, and which filter to use can be specified via iluImageParameter.

Error Codes

ILU_ILLEGAL_OPERATION - There is currently no image bound. Use ilGenImages and ilBindImage before calling this function.

See Also

ilGenImages, ilBindImage, iluImageParameter