PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN

  • Tip
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
fIsImage (Function)
In french: fEstUneImage
Used to find out whether a file found on disk or a file contained in a buffer corresponds to an image format recognized by WINDEV, WEBDEV or WINDEV Mobile.
Example
IF fIsImage(MyBuffer) = True THEN
Info("The variable corresponds to an image.")
END
Syntax

Examining an external file Hide the details

<Result> = fIsImage(<File name and path>)
<Result>: Boolean
  • True if the file is an image that can be loaded by WINDEV, WEBDEV or WINDEV Mobile,
  • False otherwise.
<File name and path>: Ansi or Unicode character string
Name and full (or relative) path of the file to identify. A UNC path can be used.

Analyzing a Buffer variable Hide the details

<Result> = fIsImage(<Variable name>)
<Result>: Boolean
  • True if the buffer corresponds to an image,
  • False otherwise.
<Variable name>: Buffer or Binary Memo variable
Name of the Buffer or Binary Memo variable containing the image to be analyzed.
Remarks

Tip

fIsImage can be quite slow because it tries to load the image. To quickly check whether a file is an image, you also have the ability to check the file extension directly.
Component: wd270std.dll
Minimum version required
  • Version 16
This page is also available for…
Comments
Click [Add] to post a comment