ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Controls, pages and windows / Drawing functions
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
Warning
dSaveImage is kept for backward compatibility.
In this version, the image save process has been improved. Four functions can now be used to save images:
These functions allow you to optimize the image save process.
Remark: These functions cannot be used in reports.
The documentation about dSaveImage is as follows.
 
Purpose
Save an image on disk.
Syntax
<Result> = dSaveImage(<ImageControlName> , <FileName> [,<NumberColors> [, <Format> [, <Quality>]]])
  • <Result> is a boolean that is set to True if saved successfully.
  • <ImageControlName> is the name of the Image control we want to save.
  • <FileName> is the name of the file.
  • <NumberColors> is an integer used to define the number of colors in the image saved (0 by default).
  • <Format> "BMP" (by default) or "JPG" or "GIF".
  • <Quality> save quality: between 1 and 100 for JPEG, between 16 and 256 for GIF (=number of colors in the palette), not used for BMP
Details
dSaveImage saves the visible section of the relevant Image control.
Summary: Interaction between the different parameters of the function
<Format><NumberColors><Quality>Details
"BMP"0 or 16Not usedIf NumberColors=0, uses the number of colors defined in the resolution
"JPG"Not used1-100Color depth on 24 bits
"GIF"Not used16-256<Quality> indicates the number of colors in the palette
Remarks
The existence of the file is not checked. The file is overwritten if it existed.
dSaveImage saves images for screen resolutions up to 32 bits.
The drawing functions (starting with the letter "d") must only be used with the "image" controls.
Component: wd290obj.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 07/03/2023

Send a report | Local help