ML_images.h File Reference

This file contains images headers. More...

Functions

void ML_CloneImage (ML_Image *image1, ML_Image *image2)
 This function clones two images.
void ML_DeleteImage (ML_Image *image)
 This function deletes an image. Call it when exiting the app/game or if you don't use it anymore.
void ML_FlushImage (ML_Image *image)
 This function refreshes the image when you have done some modifications with it.
void ML_SetPixelColor (ML_Image *image, int x, int y, u32 color)
 This function sets the color value of a pixel on a sprite. You need to call ML_FlushImage() after doing your modifications ! ;).
u32 ML_GetPixelColor (ML_Image *image, int x, int y)
 This function returns the color value of the pixel on a sprite.
void ML_InvertImageColors (ML_Image *image)
 This function inverts the image colors. You need to call ML_FlushImage() after doing your modifications ! ;).
void ML_ApplyGrayscaleToImage (ML_Image *image)
 This function applies grayscale onto the image. You need to call ML_FlushImage() after doing your modifications ! ;).

Detailed Description

This file contains images headers.


Function Documentation

void ML_ApplyGrayscaleToImage ( ML_Image image  ) 

This function applies grayscale onto the image. You need to call ML_FlushImage() after doing your modifications ! ;).

Parameters:
image Image
See also:
ML_FlushImage
void ML_CloneImage ( ML_Image image1,
ML_Image image2 
)

This function clones two images.

Parameters:
image1 The original image
image2 The image which will be the same as image1
void ML_DeleteImage ( ML_Image image  ) 

This function deletes an image. Call it when exiting the app/game or if you don't use it anymore.

Parameters:
image The image which will be deleted
void ML_FlushImage ( ML_Image image  ) 

This function refreshes the image when you have done some modifications with it.

Parameters:
image Image
u32 ML_GetPixelColor ( ML_Image image,
int  x,
int  y 
)

This function returns the color value of the pixel on a sprite.

Parameters:
image Image
x X position of the pixel
y Y position of the pixel
Returns:
Color of the pixel
void ML_InvertImageColors ( ML_Image image  ) 

This function inverts the image colors. You need to call ML_FlushImage() after doing your modifications ! ;).

Parameters:
image Image
See also:
ML_FlushImage
void ML_SetPixelColor ( ML_Image image,
int  x,
int  y,
u32  color 
)

This function sets the color value of a pixel on a sprite. You need to call ML_FlushImage() after doing your modifications ! ;).

Parameters:
image Image
x X position of the pixel
y Y position of the pixel
color New color of the pixel
See also:
ML_FlushImage
 All Data Structures Files Functions Variables Defines

Generated on Wed Jan 19 18:15:34 2011 for MLlib by  doxygen 1.6.1