DevIL Documentation Home | Previous | Next

iluPixelize

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


ILboolean iluPixelize(
  ILuint PixSize
);

Parameters

PixSize
New pixel size

Remarks

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 (doomwiz@ticnet.com), 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