kolrabi's another Image Library  1.11.0
 All Files Functions Groups Pages

Simple image transformations. More...

Functions

ILboolean ILAPIENTRY iluCrop (ILuint XOff, ILuint YOff, ILuint ZOff, ILuint Width, ILuint Height, ILuint Depth)
 "Crops" the current image to new dimensions. More...
 
ILboolean ILAPIENTRY iluEnlargeCanvas (ILuint Width, ILuint Height, ILuint Depth)
 Enlarges the canvas of the current image. More...
 
ILboolean ILAPIENTRY iluEnlargeImage (ILfloat XDim, ILfloat YDim, ILfloat ZDim)
 Enlarges an image's dimensions by multipliers, via iluScale. More...
 
ILboolean ILAPIENTRY iluFlipImage ()
 Flips an image over its x axis.
 
ILboolean ILAPIENTRY iluMirror ()
 Mirrors an image over its y axis.
 
ILboolean ILAPIENTRY iluRotate (ILfloat Angle)
 Simply rotates an image about the center by Angle degrees. More...
 
ILboolean ILAPIENTRY iluRotate3D (ILfloat x, ILfloat y, ILfloat z, ILfloat Angle)
 Rotates an image around a given axis. More...
 
ILboolean ILAPIENTRY iluScale (ILuint Width, ILuint Height, ILuint Depth)
 Scales the image to the new dimensions specified, shrinking or enlarging the image, depending on the image's original dimensions. More...
 

Detailed Description

Simple image transformations.

Resizing, rescaling, flipping, mirroring, etc.

Function Documentation

ILboolean ILAPIENTRY iluCrop ( ILuint  XOff,
ILuint  YOff,
ILuint  ZOff,
ILuint  Width,
ILuint  Height,
ILuint  Depth 
)

"Crops" the current image to new dimensions.

The new image appears the same as the original, but portions of the image are clipped-off, depending on the values of the parameters of these functions. If XOff + Width, YOff + Height or ZOff + Depth is larger than the current image's dimensions, ILU_ILLEGAL_OPERATION is set.

ILboolean ILAPIENTRY iluEnlargeCanvas ( ILuint  Width,
ILuint  Height,
ILuint  Depth 
)

Enlarges the canvas of the current image.

Clears the background to the colour specified in ilClearColour. To control the placement of the image, use iluImageParameter().

ILboolean ILAPIENTRY iluEnlargeImage ( ILfloat  XDim,
ILfloat  YDim,
ILfloat  ZDim 
)

Enlarges an image's dimensions by multipliers, via iluScale.

This function could be useful if you wanted to double the size of all images or something similar.

ILboolean ILAPIENTRY iluRotate ( ILfloat  Angle)

Simply rotates an image about the center by Angle degrees.

The background where there is space left by the rotation will be filled with the colour set by ilClearColour().

ILboolean ILAPIENTRY iluRotate3D ( ILfloat  x,
ILfloat  y,
ILfloat  z,
ILfloat  Angle 
)

Rotates an image around a given axis.

Deprecated:
Not working. Never worked and I'm not planning to implement it.
ILboolean ILAPIENTRY iluScale ( ILuint  Width,
ILuint  Height,
ILuint  Depth 
)

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.