DevIL Documentation | Home | Previous | Next |
The iluEnlargeCanvas function enlarges the image while leaving the original data unchanged.
ILboolean iluEnlargeCanvas(
ILuint Width,
ILuint Height,
ILuint Depth
);
iluEnlargeCanvas enlarges the "canvas" of the current image, clearing the background to the colour specified in ilClearColour. To control the placement of the image, use iluImageParameter.
ILU_ILLEGAL_OPERATION - There is currently no image bound. Use ilGenImages and ilBindImage before calling this function. This error can also be used if any of the parameter dimensions are smaller than the original image's dimensions.
ilGenImages, ilBindImage, ilClearColour, iluImageParameter,