PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Modifies the lightness of an image contained in an Image control.
Versions 16 and later
Android This function is now available for Android applications.
New in version 16
Android This function is now available for Android applications.
Android This function is now available for Android applications.
Versions 17 and later
iPhone/iPad This function is now available for iPhone/iPad applications.
New in version 17
iPhone/iPad This function is now available for iPhone/iPad applications.
iPhone/iPad This function is now available for iPhone/iPad applications.
Versions 21 and later
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
New in version 21
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Example
// Change the lightness of the image found in IMG_Image1
IMG_Image1.ModifyLightness(50)
Syntax
<Result> = <Image control>.ModifyLightness(<Variation of lightness> [, <Destination image>])
<Result>: Boolean
  • True if the change was performed,
  • False otherwise.
<Image control>: Control name
Name of the Image control to use.
<Variation of lightness>: Integer
Value included between -100 and +100. This value will be added to the current lightness of each pixel to get a new lightness.
<Destination image>: Optional character string (with or without quotes) or 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 Image variable.
If this parameter is not specified, the transformation will be performed in <Image control>
Remarks
Component : wd250pnt.dll
Minimum version required
  • Version 24
This page is also available for…
Comments
Click [Add] to post a comment