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 TIFF format either in a file, or in memory.
Example
// Load the file
MyTiff is Tiff = "MyFile.tiff"
// Replace the first page
MyTiff..Image[1] = "C:\MyImages\logo48.gif"
// Save the file
MyTiff.SaveTIFF("MyModifiedFile.tiff")
Syntax

Saving a TIFF image in a file Hide the details

<Result> = <Tiff image>.SaveTIFF(<File name>)
<Result>: Boolean
  • True if the image was saved,
  • False otherwise. To know the error details, use ErrorInfo with the constant errMessage.
<Tiff image>: Tiff variable
Name of Tiff variable to use.
<File name>: Character string (with quotes)
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> = <Tiff image>.Save(<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), ...
<Tiff image>: Tiff variable
Name of the Tiff variable to use.
<inMemory>: Constant
inMemory: Constant used to save an image in memory.
Component : wd250pnt.dll
Minimum version required
  • Version 24
This page is also available for…
Comments
Click [Add] to post a comment