PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
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:
  • WINDEV in an Image Editor control.
  • Versions 25 and later
    in a variable of type WDPic.
    New in version 25
    in a variable of type WDPic.
    in a variable of type WDPic.
Versions 25 and later
WEBDEV - Server code This function is now available for WEBDEV sites in Windows.
New in version 25
WEBDEV - Server code This function is now available for WEBDEV sites in Windows.
WEBDEV - Server code This function is now available for WEBDEV sites in Windows.
Example
WINDEV
// Request to save the image found in an Image Editor control
IF PicSave(IE_MyEditor) = False THEN
Error(ErrorInfo())
END
Versions 25 and later
MyWDPicImage is WDPic
...
// Asks to save the image
IF PicSave(MyWDPicImage, "C:\temp\test.png") = False THEN
Error(ErrorInfo())
END
New in version 25
MyWDPicImage is WDPic
...
// Asks to save the image
IF PicSave(MyWDPicImage, "C:\temp\test.png") = False THEN
Error(ErrorInfo())
END
MyWDPicImage is WDPic
...
// Asks to save the image
IF PicSave(MyWDPicImage, "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. The image can correspond to:
  • WINDEV the name of the Image Editor to use.
  • Versions 25 and later
    the name of the WDPic variable to use.
    New in version 25
    the name of the WDPic variable 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 For an Image Editor control: the action performed corresponds to the save feature of the image editor (diskette icon in the ribbon).
    If the image was never saved, the file picker is displayed.
  • Versions 25 and later
    For a variable of type WDPic , a fatal error is displayed.
    New in version 25
    For a variable of type WDPic , a fatal error 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: wd270pic.dll
Minimum version required
  • Version 23
This page is also available for…
Comments
Click [Add] to post a comment