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
Calculates the width of the image to print (in millimeters). This calculation is performed in relation to the resolution of the selected printer (and not in relation to the screen resolution). No enlargement factor is applied.
Linux Only images in JPEG format can be used.
Example
// Prints the dimensions of the image (in mm)
iPrint("Width of image: " + iImageWidth("LOGO.JPG") + "mm")
iPrint("Height of image: " + iImageHeight("LOGO.JPG") + "mm")
iEndPrinting()
Syntax

Calculating the width of an image found in a file Hide the details

<Result> = iImageWidth(<Image Name>)
<Result>: Real
Width of the image (in millimeters).
<Image Name>: Character string (with quotes)
Name and full (or relative) path of image file.
Linux Only images in JPEG format can be used.
Versions 17 and later
Caution: Syntax available from version 170069
WEBDEV - Server codeAjax

Calculating the width of an image found in an Image variable Hide the details

<Result> = iImageWidth(<Image>)
<Result>: Real
Width of the image (in millimeters).
<Image>: Image variable
Name of Image variable.
Linux Only images in JPEG format can be used.
New in version 17
Caution: Syntax available from version 170069
WEBDEV - Server codeAjax

Calculating the width of an image found in an Image variable Hide the details

<Result> = iImageWidth(<Image>)
<Result>: Real
Width of the image (in millimeters).
<Image>: Image variable
Name of Image variable.
Linux Only images in JPEG format can be used.
Caution: Syntax available from version 170069
WEBDEV - Server codeAjax

Calculating the width of an image found in an Image variable Hide the details

<Result> = iImageWidth(<Image>)
<Result>: Real
Width of the image (in millimeters).
<Image>: Image variable
Name of Image variable.
Linux Only images in JPEG format can be used.
Remarks
  • iImageHeight is used to find out the height of the image to print.
  • iImageWidth cannot be used to find out the width of an image in WMF format.
  • The dimensions of an image are returned by BitmapInfo.
Component : wd250prn.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment