PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
  • Properties specific to the description of WDPic variables
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
The WDPic type is used to define the advanced characteristics of an image in ".wdpic" format. The characteristics of this image can be defined and modified by several WLanguage properties.
This type is mainly used to:
  • make layers visible/invisible by programming (ImageLayerVisible).
  • Versions 25 and later
    handle images in WDPic format as well as their layers.
    New in version 25
    handle images in WDPic format as well as their layers.
    handle images in WDPic format as well as their layers.
Remark: See Declaring a variable for more details on the declaration of this type of variable and the use of WLanguage properties.
Versions 24 and later
WEBDEV - Server codeWindows This type of variable is now available for WEBDEV sites in Windows.
New in version 24
WEBDEV - Server codeWindows This type of variable is now available for WEBDEV sites in Windows.
WEBDEV - Server codeWindows This type of variable is now available for WEBDEV sites in Windows.
Example
// Displays the product image in an Image control
PROCEDURE DisplayProduct(ImageControl is Control, sWDPicName is string, bPromo is boolean)
 
MyImage is WDPic
MyImage..FileName = sWDPicName
ImageLayerVisible(MyImage, "Promo layer", bPromo)
 
ImageControl..Value = MyImage
Remarks

Properties specific to the description of WDPic variables

The following properties can be used to handle an image in "wdpic" format:
Property nameType usedEffect
Versions 25 and later
Layer
New in version 25
Layer
Layer
Array of picLayerLayers defined on the "wdpic" image. Layers are identified by their names.
Versions 25 and later
Height
New in version 25
Height
Height
IntegerHeight of image expressed in pixels.
By default, when assigning an image to the WDPic variable, corresponds to the height of the image.
This property is available in read and write mode.
ImageImage associated with the variable.
This image is updated, for example, when an Image control is assigned to the variable.
This property is available in read-only.This property is available in read and write mode.
Versions 25 and later
Width
New in version 25
Width
Width
IntegerWidth of image expressed in pixels.
By default, when assigning an image to the WDPic variable, corresponds to the width of the image.
This property is available in read and write mode.
FileNameCharacter stringName of ".wdpic" file.

Remark: These properties can be handled by using one of the following syntaxes:
  • <Variable name>..<Property name>
  • <Variable name>.<Property name>
Minimum version required
  • Version 23
This page is also available for…
Comments
Click [Add] to post a comment