PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Saves an image in icon format either in a file, or in memory.
Example
// Create an icon
MyIcon is Icon
MyIcon..Image[1]..Image = "C:\MyImages\logo48.gif"
MyIcon..TransparencyColor[1] = LightMagenta
MyIcon..Format[1] = icoFormatBMP
MyIcon..Image[2]..Image = "C:\MyImages\logo256.png"
MyIcon..TransparencyColor[2] = Transparent
MyIcon..Format[2] = icoFormatPNG
dSaveImageICO(MyIcon, "Logo.ICO")
Syntax

Saving an icon in a file in ICO format Hide the details

<Result> = dSaveImageICO(<Icon> , <File name>)
<Result>: Boolean
  • True if the image was saved,
  • False otherwise. To find out the error details, use ErrorInfo associated with the errMessage constant.
<Icon>: Icon variable
Name of the Icon variable to use.
<File name>: Character string (with quotes)
Name and full (or relative) path of ICO file to create. A UNC path can be used. The file extension is optional.
Caution:
  • The destination directory must exist in order for the image to be saved.
  • The existence of the ICO file is not checked. This file is automatically overwritten if it already exists.

Saving an icon in memory Hide the details

<Result> = dSaveImageICO(<Icon> , <inMemory>)
<Result>: Buffer
Byte string containing the image in ICO format. Then, this byte string can be assigned to an Image control, saved in a file (fSaveText), ...
<Icon>: Icon variable
Name of the Icon variable to use.
<inMemory>: Constant
inMemory: Constant used to save an image in memory.
Component : wd240pnt.dll
Minimum version required
  • Version 19
This page is also available for…
Comments
Click [Add] to post a comment