Shiny Language Reference

Language Reference > Image Functions


invertimage

invertimage(image MyImage);

 

 

Inverts (negates) the image

The INVERTIMAGE statement inverts the RGB colour of the image, producing a photographic negative image effect.

 

Parameters

MyImage

A variable declared as type IMAGE and previously associated with a bitmap image using the CREATEIMAGE statement.

 

Return Value

None

 

Example Code

image MyImage;
if(createimage(MyImage, "C:\\MyBitmap.bmp") == TRUE)
{
    // Invert the image
    invertimage(MyImage);
}