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
Opens an image in an Image Editor control.
Example
sFile is string
 
// Opens the image picker
sFile = fImageSelect("", "", "Select an image...")
 
IF sFile = "" THEN
RETURN
END
 
// Open the image in the Image Editor control
IF IE_MyEditor.Open(sFile) = False THEN
Error(ErrorInfo())
END
Syntax
<Result> = <Image Editor control>.Open(<Image> [, <Opening mode>])
<Result>: Boolean
  • True if the image was opened,
  • False otherwise. To find out the error details, use ErrorInfo associated with the errMessage constant.
<Image Editor control>: Control name
Name of the Image Editor control used to display the image.
<Image>: Character string (between quotes) or Image variable
Image to display in the Image Editor control. This parameter can correspond to:
  • an Image variable.
  • the path of image file.
<Opening mode>: Optional Integer constant
Versions 24 and later
Image opening mode:
odOptionNone
(default value)
The image is displayed in the Image Editor control in read/write mode.
odOptionReadOnlyThe image is displayed in read-only mode in the image editor.
In this mode, all modification options will be accessible in the Image Editor control and the "Save as" option will be available to the user.
New in version 24
Image opening mode:
odOptionNone
(default value)
The image is displayed in the Image Editor control in read/write mode.
odOptionReadOnlyThe image is displayed in read-only mode in the image editor.
In this mode, all modification options will be accessible in the Image Editor control and the "Save as" option will be available to the user.
Image opening mode:
odOptionNone
(default value)
The image is displayed in the Image Editor control in read/write mode.
odOptionReadOnlyThe image is displayed in read-only mode in the image editor.
In this mode, all modification options will be accessible in the Image Editor control and the "Save as" option will be available to the user.
Remarks
This function is equivalent to the following syntaxes:
<Image Editor control> = <Image path>
<Image Editor control> = <Image variable>
Component : wd240pic.dll
Minimum version required
  • Version 23
This page is also available for…
Comments
Click [Add] to post a comment