PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
  • 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/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Overview
WINDEV allows you to handle an Image Editor control by programming. To do so, use the control variable in the code.
An Image Editor control can also be handled by 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 by 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
Note: 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 = ""
Note: 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 by programming:
Versions 23 and later
FilePath
New in version 23
FilePath
FilePath
..FilePath is used to find out:
  • the name of xlsx file associated with a Spreadsheet control. This name is initialized by SpreadsheetLoad and SpreadsheetSave.
  • the name of file associated with an Image Editor control. This name is initialized by PicOpen and PicSave.
  • the name of PDF file associated with a PDF Reader control. This name is initialized by PDFReaderOpen.
  • the name of 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
..ImageType is used to find out the type of image currently edited in an Image Editor control (icon or image).
Versions 23 and later
PaneVisible
New in version 23
PaneVisible
PaneVisible
..PaneVisible is used to:
  • find out whether the pane of Image Editor control is visible or not,
  • make the pane of Image Editor control visible or invisible.
To find out the entire 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