This function retrieves the height and width and resolution of an image.

GetImageInfo(lcImageFile, @lnWidth, @lnHeight, @lnResolution)

Return Value

.T. or .F.


The image file to retrieve info for.

The width to retrieve. Pass by reference.

The height to retrieve. Pass by reference

The image resolution in Dot per Inch (DPI). Pass by reference.


Uses wwImaging.dll shipped in the Web Connection directory.

Note this is a function not a method of the wwAPI class. This function is simply stored in the wwAPI.prg file and is directly invoked without a class instance.

This function supports the following image formats that GDI+ supports:

  • jpg
  • png
  • gif
  • tiff
  • bmp


STORE 0 TO lnHeight, lnWidth, lnResolution
? GetImageInfo("c:\temp\bugreport.png",;

? lnWidth, lnHeight, lnResolution

See also:

Class wwAPI

© West Wind Technologies, 2023 • Updated: 04/12/22
Comment or report problem with topic