Shiny Language Reference
Language Reference > Image Functions
setimagebrightness
bool setimagebrightness(image MyImage, double Brightness);
Alters the brightness of the image
The SETIMAGEBRIGHTNESS statement alters the brightness of an image. This statement works in exactly the same way as any brightness tool in a paint package such as Paintshop Pro.
Parameters
MyImage
A variable declared as type IMAGE and previously associated with a bitmap image using the CREATEIMAGE statement.
Brightness
A value from -100.0 to +100.0 specifying the brightness value to apply. All values below 0.0 darken the image, all values above 0.0 lighten the image.
Return Value
True if altering the brightness succeeded, otherwise False.
Example Code
image MyImage;
if(createimage(MyImage, "C:\\MyBitmap.bmp") == TRUE)
{
// Darken the image
setimagebrightness(MyImage, -20);
}