DevIL Documentation Home | Previous | Next


The iluPixelize function pixelizes an image, giving it a blocky appearance.

ILboolean iluPixelize(
  ILuint PixSize


New pixel size


iluPixelize performs the effect that can be seen on television, where people want their identity to remain anonymous, so the editors cover the person's face with a very blocky pixelized version. iluPixelize performs this effect on the entire image, not just a region, though if I get any requests to do so (, I will gladly incorporate it. PixSize specifies how blocky the image should be, with 1 being the lowest blockiness (doesn't change the image).

Error Codes

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

See Also

ilGenImages, ilBindImage