Shiny Language Reference
Language Reference > Image Functions
setimagecontrast
bool setimagecontrast(image MyImage, double Contrast);
Alters the contrast of the image
The SETIMAGECONTRAST statement alters the contrast of an image. This statement works in exactly the same way as any contrast 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.
Contrast
A value from -100.0 to +100.0 specifying the contrast value to apply. All values below 0.0 decrease the contrast, all values above 0.0 increase the contrast.
Return Value
True if altering the contrast succeeded, otherwise False.
Example Code
image MyImage;
if(createimage(MyImage, "C:\\MyBitmap.bmp") == TRUE)
{
// Increase the image contrast
setimagecontrast(MyImage, 30);
}