ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Controls, pages and windows / Drawing functions
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Changes the contrast of an image contained:
  • in an Image control,
  • in a variable of type Image.
Example
// Change contrast
dModifyContrast(IMG_Image1, 50)
Syntax
<Result> = dModifyContrast(<Source image> , <Contrast variation> [, <Destination image>])
<Result>: Boolean
  • True if the contrast was modified,
  • False otherwise.
<Source image>: Name of the Image control or variable
Image to use. The image can correspond to:
  • the name of an Image control.
  • the name of a variable of type Image.
<Contrast variation>: Real
Value between -100 and +100. Negative values decrease the contrast, positive values increase it. This value will be added to the current contrast to get a new contrast.
<Destination image>: Optional control name or optional Image variable
Image where the transformed image will be drawn. The image can correspond to:
  • the name of an Image control.
  • the name of a variable of type Image.
If this parameter is not specified, the transformation will be performed on the <Source image>.
Business / UI classification: Neutral code
Component: wd290pnt.dll
Minimum version required
  • Version 28
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 04/24/2023

Send a report | Local help