ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Controls, pages and windows / Drawing functions
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Saves the image found:
  • WINDEV in an Image Editor control.
  • in a variable of type WDPic.
Example
WINDEV
// Demande de sauvegarde de l'image présente dans un champ Editeur d'images
IF PicSave(EI_MonEditeur) = 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, cancellation 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:
  • WINDEV the name of the Image Editor to use.
  • the name of the WDPic variable to use.
<File>: Optional character string
Name and path of the image file to save. The file extension defines the type of image to save.
If this parameter is not specified:
  • WINDEV In the case of an Image Editor control: the action taken corresponds to the Record function of the Image Editor (click on the floppy disk in the Ribbon).
    If the image was never saved, the file picker is displayed.
  • For a variable of type 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: wd300pic.dll
Minimum version required
  • Version 23
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 03/27/2025

Send a report | Local help