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
Changes the lightness of an image found:
  • in an Image control,
  • Versions 17 and later
    Reports and QueriesWindows in an Image variable.
    New in version 17
    Reports and QueriesWindows in an Image variable.
    Reports and QueriesWindows in an Image variable.
    in an Image variable.
Example
// Change the lightness of the image found in IMG_Image1
dModifyLightness(IMG_Image1, 50)
Syntax
<Result> = dModifyLightness(<Source image> , <Variation of lightness> [, <Destination image>])
<Result>: Boolean
  • True if the change was performed,
  • False otherwise.
<Source image>: Character string (with or without quotes) or Image variable
Image to use. This image can correspond to:
  • the name of an Image control.
  • Versions 17 and later
    Reports and QueriesWindows the name of an Image variable.
    New in version 17
    Reports and QueriesWindows the name of an Image variable.
    Reports and QueriesWindows the name of an Image variable.
    the name of an Image variable.
<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>: Name of the Image control or variable
Image where the transformed image will be drawn. This image can correspond to:
  • the name of an Image control.
  • Versions 17 and later
    Reports and QueriesWindows the name of an Image variable.
    New in version 17
    Reports and QueriesWindows the name of an Image variable.
    Reports and QueriesWindows the name of an Image variable.
    the name of an Image variable.
If this parameter is not specified, the transformation will be performed on the <Source image>.
Remarks
Component : wd250pnt.dll
Minimum version required
  • Version 10
This page is also available for…
Comments
Click [Add] to post a comment