ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Controls, pages and windows / Drawing functions
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Changes the lightness of an image found:
  • in an Image control,
  • in a variable of type Image.
Example
// Change la luminosité de l'image contenue dans le champ IMG_Image1
dModifyLightness(IMG_Image1, 50)
Syntax
<Result> = dModifyLightness(<Source image> , <Variation of lightness> [, <Destination image>])
<Result>: Boolean
  • True if the change has been made,
  • False otherwise.
<Source image>: Name of the Image control or variable
Image to use. This image can correspond to:
  • the name of an Image control.
  • the name of a variable of type Image.
<Variation of lightness>: Integer
Value between -100 and +100. This value will be added to the current lightness of each pixel to get a new lightness.
<Destination image>: Optional control name or optional Image variable
Image where the transformed image will be drawn. This 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>.
Remarks
Component: wd300pnt.dll
Minimum version required
  • Version 10
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 05/30/2025

Send a report | Local help