Opens an image in an Image Editor control.
sFile is string
// Opens the image picker
sFile = fImageSelect("", "", "Select an image...")
IF sFile = "" THEN
// Open the image in the Image Editor control
IF PicOpen(IE_MyEditor, sFile) = False THEN
<Result> = PicOpen(<Image Editor control> , <Image> [, <Opening mode>])
- True if the image was opened,
- False otherwise. To get more details on the error, use ErrorInfo with the errMessage constant.
<Image Editor control>: Control name
Name of the Image Editor control used to display the image.
<Image>: Character string or Image variable
Image to display in the Image Editor control. This parameter can be:
- a variable of type Image.
- the path of image file.
<Opening mode>: Optional Integer constant
Image opening mode:
New in version 28odOptionHidePane |The image is displayed in the image editor in read/write mode and the right pane (that displays the color characteristics) is not displayed by default. |
|The image is displayed in the Image Editor control in read/write mode. |
|odOptionReadOnly||The 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.
This function is equivalent to the following syntaxes:
<Image Editor control> = <Image path>
<Image Editor control> = <Image variable>
Business / UI classification: UI Code