PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
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 PicOpen(IE_MyEditor, sFile) = False THEN
Error(ErrorInfo())
END
Syntax
<Result> = PicOpen(<Image Editor Control> , <Image>)
<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 Image Editor control to use.
<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.
Remarks
This function is equivalent to the following syntax:
<Name of Image Editor control> = <Image Path>
<Name of Image Editor control> = <Image Variable>
Component : wd240pic.dll
Minimum required version
  • Version 23
This page is also available for…
Comments
Video PicOpen


https://youtu.be/S606ShCw06o

https://windevdesenvolvimento.blogspot.com/2019/01/dicas-1975-publica-windev-imagen-11.html


// BTN_PROCURA_IMAGEN
// VAMOS PROCURAR UMA IMAGEN E COLOCAR NO EDT IMAGEN
// WE WILL LOOK FOR AN IMAGE AND PLACE IN EDIT IMAGE
// NOUS CHERCHERONS UNE IMAGE ET PLACERONS-NOUS ÉDITER UNE IMAGE
sFile is string
// Opens the image picker
sFile = fImageSelect("", "", "Selecione Uma Imagen", "ima" + TAB + "*.jpg")
EDT_IMAGEN=sFile
// VAMOS ABRIR A IMAGEN DENTRO DO NOSSO EDITOR
// LET'S OPEN THE IMAGE WITHIN OUR EDITOR
// OUVRONS L'IMAGE DANS NOTRE ÉDITEUR

IF PicOpen(IE_NoName1,sFile)=False THEN
Error(ErrorInfo())

END
amarildo
Jan. 03 2019