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
Saves an image in TIFF format either in a file, or in memory.
Example
// Create a TIFF file containing two pages
arrImage is array of 2 Images
arrImage[1].Image = "C:\MyImages\Image1.gif"
arrImage[2].Image = "C:\MyImages\Image2.gif"
dSaveImageTIFF(arrImage, "MyFile.TIFF")
Syntax

Saving a TIFF image in a file Hide the details

<Result> = dSaveImageTIFF(<Images> , <File name>)
<Result>: Boolean
  • True if the image was saved,
  • False otherwise. To get more details on the error, use ErrorInfo with the errMessage constant.
<Images>: Array of images ou Tiff variable
  • Array containing the images for each page of TIFF file.
  • Name of the Tiff variable to be used.
<File name>: Character string
Name and full (or relative) path of TIFF 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 TIFF file is not checked. This file is automatically overwritten if it already exists.

Saving a TIFF image in memory Hide the details

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

Last update: 05/26/2022

Send a report | Local help