GetImageInfo

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

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

Return Value

.T. or .F.

Parameters

lcImageFile
The image file to retrieve info for.

@lnWidth
The width to retrieve. Pass by reference.

@lnHeight
The height to retrieve. Pass by reference

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

Remarks

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

Example

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

? lnWidth, lnHeight, lnResolution

See also:

Class wwAPI

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