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 hue, saturation and lightness of an image in an Image variable.
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
WINDEVLinux This function is now available for WINDEV applications in Linux.
WEBDEV - Server codeLinux This function is now available for WEBDEV sites in Linux.
Universal Windows 10 App This function is now available for Windows Phone applications.
iPhone/iPad This function is now available for iPhone/iPad applications.
Linux Caution: A specific configuration is required to use this function in Linux. See The drawings for more details.
New in version 17
WINDEVLinux This function is now available for WINDEV applications in Linux.
WEBDEV - Server codeLinux This function is now available for WEBDEV sites in Linux.
Universal Windows 10 App This function is now available for Windows Phone applications.
iPhone/iPad This function is now available for iPhone/iPad applications.
Linux Caution: A specific configuration is required to use this function in Linux. See The drawings for more details.
WINDEVLinux This function is now available for WINDEV applications in Linux.
WEBDEV - Server codeLinux This function is now available for WEBDEV sites in Linux.
Universal Windows 10 App This function is now available for Windows Phone applications.
iPhone/iPad This function is now available for iPhone/iPad applications.
Linux Caution: A specific configuration is required to use this function in Linux. See The drawings for more details.
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
MyImage is Image = "Test.gif"
// Changes the hue, the lightness and the saturation
// of the image found in the IMG_Image1 control
MyImage.ModifyHSL(50,50,50)
IMG_MyDrawing = MyImage
 
Syntax
<Result> = <Image variable>.ModifyHSL(<Variation of hue> , <Variation of saturation> , <Variation of lightness> [, <Destination image>])
<Result>: Boolean
  • True if the change was performed,
  • False otherwise.
<Image variable>: Image variable
Name of the Image variable to use.
<Variation of hue>: Integer
Value included between -360 and +360. This value will be added to the current hue of each pixel to get a new hue.
<Variation of saturation>: Integer
Value included between -100 and +100. This value will be added to the current saturation of each pixel to get a new saturation.
<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
    WINDEVWEBDEV - Server codeWINDEV MobileReports and QueriesWindowsLinuxiPhone/iPadUser code (UMC) the name of an Image variable.
    New in version 17
    WINDEVWEBDEV - Server codeWINDEV MobileReports and QueriesWindowsLinuxiPhone/iPadUser code (UMC) the name of an Image variable.
    WINDEVWEBDEV - Server codeWINDEV MobileReports and QueriesWindowsLinuxiPhone/iPadUser code (UMC) the name of an Image variable.
    the name of an Image variable.
If this parameter is not specified, the transformation will be performed on <Image variable>
Related Examples:
Modifying the Hue, Saturation and Lightness Unit examples (WINDEV): Modifying the Hue, Saturation and Lightness
[ + ] Process on the images via the WLanguage dModifyHSL function.
This function is used to modify the hue, the saturation and the lightness of an image.
Component : wd250pnt.dll
Minimum version required
  • Version 24
This page is also available for…
Comments
Click [Add] to post a comment