ML_images.h File Reference
This file contains images headers.
More...
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:
-
- See also:
- ML_FlushImage
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 |
This function refreshes the image when you have done some modifications with it.
- Parameters:
-
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:
-
- 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