|DevIL Documentation||Home | Previous | Next|
The iluPixelize function pixelizes an image, giving it a blocky appearance.
ILboolean iluPixelize( ILuint PixSize );
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 (email@example.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).
ILU_ILLEGAL_OPERATION - There is currently no image bound. Use ilGenImages and ilBindImage before calling this function.