PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
  • Pattern and PHP
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 of an image 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 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
// Changes the hue of the image found in the IMG_Image1 control
IMG_Image1.ModifyHue(50)
Syntax
<Result> = <Image control>.ModifyHue(<Variation of hue> [, <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 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.
<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.
  • the name of an Image variable.
    PHP This type of variable is not available.
If this parameter is not specified, the transformation will be performed in <Image control>
Remarks
PHP

Pattern and PHP

In PHP, the drawing functions are based on the graphic library GD. This library is commonly used by the PHP hosting companies and therefore it is always enabled. The version of the GD library must be version 2.0.28 (or later). This library can be downloaded from the PHP site.
To enable (if necessary) this library locally, the following elements are required:
  • PHP installed.
  • the PHP.INI file found in the Windows directory must contain the following line: "extension=php_gd2.dll" (instead of ";extension=php_gd2.dll").
  • the php_gd2.dll file must exist in the directory of PHP extensions. This directory is defined in the PHP.INI file by the "extension_dir" variable.
Component: wd260pnt.dll
Minimum version required
  • Version 24
This page is also available for…
Comments
Click [Add] to post a comment