PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
  • Overview
  • Displaying an image in an Image Editor control
  • Clearing or reinitializing the content of an Image Editor control
  • Handling the image displayed in the Image Editor control
  • Associated WLanguage properties
  • Properties specific to the management of Image Editor control
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Overview
WINDEV allows you to handle an Image Editor control through programming. To do so, use the control variable in the code.
An Image Editor control can also be handled through programming via the Picxxx functions. These functions are used to create, save, open and close an image in an Image Editor control.
This help page explains how to handle an Image Editor control through programming.
Displaying an image in an Image Editor control
To display an image in an Image Editor control, you can:
  • use an assignment (direct or by variable) with path of image file.
    // Direct assignment
    IE_MyImage = "C:\Temp\MyImage.gif"
    // Assignment by variable
    ImagePath = fCurrentDir() + "\MyImage.gif"
    IE_MyImage = ImagePath
  • use an assignment with an Image variable.
    MyImage is Image
    // Load from a file
    MyImage = dLoadImage("image.png")
    // Assign the Image Editor control
    IE_MyImage = MyImage
Remark: To find out the path of image file displayed in an Image Editor control, use FilePath.
Clearing or reinitializing the content of an Image Editor control
To clear or reinitialize an Image Editor control, all you have to do is assign an empty string to the Image Editor control. For example:
IE_MyImage = ""
Remark: You also have the ability to use PicClose.
Handling the image displayed in the Image Editor control
To handle the image found in the Image Editor control, we recommend that you use an Imagevariable. Then, all the drawing functions can be used on this Image variable. To update the Image Editor control, all you have to do is assign the control with the Image variable.
You also have the ability to use a WDPic variable. This variable is mainly used to manage the display of layers in a ".wdpic" file.
Associated WLanguage properties

Properties specific to the management of Image Editor control

The following properties are used to manage the characteristics of an Image Editor control through programming:
Versions 23 and later
FilePath
New in version 23
FilePath
FilePath
The FilePath property is used to identify:
  • the name of the xlsx file associated with a Spreadsheet control. This name is initialized by SpreadsheetLoad and SpreadsheetSave.
  • the name of the file associated with an Image Editor control. This name is initialized by PicOpen and PicSave.
  • the name of the PDF file associated with a PDF Reader control. This name is initialized by PDFReaderOpen.
  • the name of the DOCX file associated with a Word Processing control. This name is initialized by DocOpen and DocSave.
Versions 23 and later
ImageType
New in version 23
ImageType
ImageType
The ImageType property is used to get the type of image being edited in an Image Editor control (icon or image).
Versions 23 and later
PaneVisible
New in version 23
PaneVisible
PaneVisible
The PaneVisible property is used to:
  • determine if the pane of the Image Editor control is visible,
  • show or hide the pane of the Image Editor control.
For a complete list of WLanguage properties that can be used with an Image Editor control, see Properties associated with the Image Editor control.
Minimum version required
  • Version 23
Comments
Click [Add] to post a comment