ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Controls, pages and windows / Drawing functions
  • Saving the content of an Image control in JPEG format
dSaveImageJPEG (Example)
Saving the content of an Image control in JPEG format
The following code is used to save the content of an Image control (IMG_ImageDrawing) in JPEG format.
In this example, we will assume that the Image control (IMG_ImageDrawing) contains one image or several drawings.
// Save the content of the "IMG_ImageDrawing" control
ResSave = dSaveImageJPEG(IMG_ImageDrawing, FilePath)
// Saved successfully?
IF ResSave = True THEN
Info("Saved successfully")
ELSE
Error(ErrorInfo(errMessage))
END
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 05/26/2022

Send a report | Local help