PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
This content has been translated automatically. Click here to view the French version.
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
Saves the image found:
  • Versions 25 and later
    in an variable of type WDPic.
    New in version 25
    in an variable of type WDPic.
    in an variable of type WDPic.
Example
Versions 25 and later
MonImageWDPic is WDPic
...
// Demande de sauvegarde de l'image
IF PicSave(MonImageWDPic, "C:\temp\test.png") = False THEN
Error(ErrorInfo())
END
New in version 25
MonImageWDPic is WDPic
...
// Demande de sauvegarde de l'image
IF PicSave(MonImageWDPic, "C:\temp\test.png") = False THEN
Error(ErrorInfo())
END
MonImageWDPic is WDPic
...
// Demande de sauvegarde de l'image
IF PicSave(MonImageWDPic, "C:\temp\test.png") = False THEN
Error(ErrorInfo())
END
Syntax
<Result> = PicSave(<Image> [, <File>])
<Result>: Boolean
  • True if the image was created,
  • False otherwise (error, cancelation of file picker, ...). If an error occurs, ErrorOccurred is set to True and ErrorInfo returns the details of the error.
<Image>: Control name or WDPic variable
Image to save. This image can correspond to:
  • Versions 25 and later
    on behalf of an variable of the type WDPic to handle.
    New in version 25
    on behalf of an variable of the type WDPic to handle.
    on behalf of an variable of the type WDPic to handle.
<File>: Optional character string
Name and path of image file to save. The file extension defines the type of image to save.
If this parameter is not specified:
  • Versions 25 and later
    For a WDPic , a fatal error is displayed.
    New in version 25
    For a WDPic , a fatal error is displayed.
    For a WDPic , a fatal error is displayed.
Related Examples:
WDPic type Unit examples (WINDEV): WDPic type
[ + ] This example shows how to use the WDPic WLanguage type.
Business / UI classification: UI Code
Component: wd270pic.dll
Minimum version required
  • Version 23
This page is also available for…
Comments
Click [Add] to post a comment