kolrabi's another Image Library
1.11.0
|
Perform operations on images. More...
Functions | |
ILboolean ILAPIENTRY | ilAddAlpha () |
Adds an opaque alpha channel to the currently bound image. More... | |
ILboolean ILAPIENTRY | ilApplyPal (ILconst_string FileName) |
Loads a palette from a file and applies it to the currently bound image. | |
ILboolean ILAPIENTRY | ilApplyProfile (ILstring InProfile, ILstring OutProfile) |
Apply a colour profile to the currently bound image. More... | |
ILboolean ILAPIENTRY | ilBlit (ILuint Source, ILint DestX, ILint DestY, ILint DestZ, ILuint SrcX, ILuint SrcY, ILuint SrcZ, ILuint Width, ILuint Height, ILuint Depth) |
Blit a region of pixels from a Source image into the currently bound image. | |
ILboolean ILAPIENTRY | ilClampNTSC (void) |
Clamps data values of unsigned bytes from 16 to 235 for display on an NTSC television. More... | |
ILboolean ILAPIENTRY | ilClearImage () |
Clears the current bound image to the values specified in ilClearColour(). | |
ILboolean ILAPIENTRY | ilConvertImage (ILenum DestFormat, ILenum DestType) |
Converts the current image to the DestFormat format. More... | |
ILboolean ILAPIENTRY | ilConvertPal (ILenum DestFormat) |
Converts the palette of current image to the DestFormat format. | |
ILuint ILAPIENTRY | ilCopyPixels (ILuint XOff, ILuint YOff, ILuint ZOff, ILuint Width, ILuint Height, ILuint Depth, ILenum Format, ILenum Type, void *Data) |
Copy the pixels of a region of the currently bound image to a buffer. More... | |
ILuint ILAPIENTRY | ilCreateSubImage (ILenum Type, ILuint Num) |
Creates sub images of the given type for the currently bound image. More... | |
ILboolean ILAPIENTRY | ilDefaultImage () |
Creates an ugly 64x64 black and yellow checkerboard image. | |
void ILAPIENTRY | ilModAlpha (ILdouble AlphaValue) |
Adds an alpha channel if not present and sets it to the given value. More... | |
ILboolean ILAPIENTRY | ilOverlayImage (ILuint Source, ILint XCoord, ILint YCoord, ILint ZCoord) |
Overlays the image found in Src on top of the current bound image at the coords specified. | |
ILboolean ILAPIENTRY | ilRemoveAlpha () |
Removes the alpha channel from the currently bound image. More... | |
ILboolean ILAPIENTRY | ilSetAlpha (ILdouble AlphaValue) |
Adds an alpha channel if not present and sets it to the given value. More... | |
ILboolean ILAPIENTRY | ilSetData (void *Data) |
Uploads Data of the same size to replace the current image's data. More... | |
void ILAPIENTRY | ilSetPixels (ILint XOff, ILint YOff, ILint ZOff, ILuint Width, ILuint Height, ILuint Depth, ILenum Format, ILenum Type, void *Data) |
Set the pixels in a region of the currently bound image. | |
ILboolean ILAPIENTRY | ilTexImage (ILuint Width, ILuint Height, ILuint Depth, ILubyte Bpp, ILenum Format, ILenum Type, void *Data) |
Changes the current bound image to use these new dimensions (current data is destroyed). More... | |
ILAPI ILboolean ILAPIENTRY | ilTexImageDxtc (ILuint Width, ILuint Height, ILuint Depth, ILenum DxtFormat, const ILubyte *Data) |
Sets the currently bound image data. More... | |
Perform operations on images.
ILboolean ILAPIENTRY ilAddAlpha | ( | ) |
Adds an opaque alpha channel to the currently bound image.
If IL_USE_KEY_COLOUR is enabled, the colour set with ilKeyColour will be transparent.
ILboolean ILAPIENTRY ilApplyProfile | ( | ILstring | InProfile, |
ILstring | OutProfile | ||
) |
Apply a colour profile to the currently bound image.
Profile names must be the file names of valid ICC profiles.
InProfile | Name of the image's current colour profile. |
OutProfile | Name of the colour profile to apply. |
ILboolean ILAPIENTRY ilClampNTSC | ( | void | ) |
Clamps data values of unsigned bytes from 16 to 235 for display on an NTSC television.
Reasoning for this is given at http://msdn.microsoft.com/en-us/library/bb174608.aspx
ILboolean ILAPIENTRY ilConvertImage | ( | ILenum | DestFormat, |
ILenum | DestType | ||
) |
Converts the current image to the DestFormat format.
DestFormat | An enum of the desired output format. Any format values are accepted. |
DestType | An enum of the desired output type. Any type values are accepted. |
IL_ILLEGAL_OPERATION | No currently bound image |
IL_INVALID_CONVERSION | DestFormat or DestType was an invalid identifier. |
IL_OUT_OF_MEMORY | Could not allocate enough memory. |
ILuint ILAPIENTRY ilCopyPixels | ( | ILuint | XOff, |
ILuint | YOff, | ||
ILuint | ZOff, | ||
ILuint | Width, | ||
ILuint | Height, | ||
ILuint | Depth, | ||
ILenum | Format, | ||
ILenum | Type, | ||
void * | Data | ||
) |
Copy the pixels of a region of the currently bound image to a buffer.
XOff | Left border of image subregion to copy in pixels. |
YOff | Top border of image subregion to copy in pixels. |
ZOff | Front border of image subregion to copy in slices. |
Width | Width of region to copy in pixels. |
Height | Height of region to copy in pixels. |
Depth | Depth of region to copy in slices. |
Format | Format of pixel data to get. |
Type | Underlying pixel data type. |
Data | Buffer to receive pixel data. |
ILuint ILAPIENTRY ilCreateSubImage | ( | ILenum | Type, |
ILuint | Num | ||
) |
Creates sub images of the given type for the currently bound image.
The new sub images will be empty. Existing sub images of the type will be replaced. The current image binding will not be changed.
Type | Sub image type, can be IL_SUB_NEXT to create animation frames after the current image, IL_SUB_MIPMAP to create mipmaps or IL_SUB_LAYER to create layers. |
Num | The number of images to create. |
void ILAPIENTRY ilModAlpha | ( | ILdouble | AlphaValue | ) |
Adds an alpha channel if not present and sets it to the given value.
ILboolean ILAPIENTRY ilRemoveAlpha | ( | ) |
Removes the alpha channel from the currently bound image.
ILboolean ILAPIENTRY ilSetAlpha | ( | ILdouble | AlphaValue | ) |
Adds an alpha channel if not present and sets it to the given value.
ILboolean ILAPIENTRY ilSetData | ( | void * | Data | ) |
Uploads Data of the same size to replace the current image's data.
Data | New image data to update the currently bound image |
IL_ILLEGAL_OPERATION | No currently bound image |
IL_INVALID_PARAM | Data was NULL. |
ILboolean ILAPIENTRY ilTexImage | ( | ILuint | Width, |
ILuint | Height, | ||
ILuint | Depth, | ||
ILubyte | Bpp, | ||
ILenum | Format, | ||
ILenum | Type, | ||
void * | Data | ||
) |
Changes the current bound image to use these new dimensions (current data is destroyed).
Width | Specifies the new image width. This cannot be 0. |
Height | Specifies the new image height. This cannot be 0. |
Depth | Specifies the new image depth. This cannot be 0. |
Bpp | Number of channels (ex. 3 for RGB) |
Format | Enum of the desired format. Any format values are accepted. |
Type | Enum of the desired type. Any type values are accepted. |
Data | Specifies data that should be copied to the new image. If this parameter is NULL, no data is copied, and the new image data consists of undefined values. |
IL_ILLEGAL_OPERATION | No currently bound image. |
IL_INVALID_PARAM | One of the parameters is incorrect, such as one of the dimensions being 0. |
IL_OUT_OF_MEMORY | Could not allocate enough memory. |
ILAPI ILboolean ILAPIENTRY ilTexImageDxtc | ( | ILuint | Width, |
ILuint | Height, | ||
ILuint | Depth, | ||
ILenum | DxtFormat, | ||
const ILubyte * | Data | ||
) |
Sets the currently bound image data.
Like ilTexImage but from DXTC compressed data.
Width | Specifies the new image width. This cannot be 0. |
Height | Specifies the new image height. This cannot be 0. |
Depth | Specifies the new image depth. This cannot be 0. |
DxtFormat | Describes the DXT compression data format. |
Data | The DTX compressed pixel data. |