ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Standard functions / External file functions
  • Tip
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
fIsImage (Function)
In french: fEstUneImage
Determines whether a file on disk or in a buffer corresponds to an image format recognized by WINDEV or WEBDEV.
Example
IF fIsImage(MonBuffer) = True THEN
	Info("La variable correspond à une 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: wd300std.dll
Minimum version required
  • Version 16
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 03/28/2025

Send a report | Local help