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.
This function requires wwImaging.dll and uses GDI+ which is available with XP/.NET Server by default and as separate installs on all other platforms. The latest versions of Internet Explorer (6.0), the Windows Media player and the .NET Platform also install GDI+.
Note this is a function not a method of the wwAPI class. This function is simply stored in the wwAPI.prg file.
This function supports the following image formats:
- gif
- jpg
- png
- tiff
- bmp
GDI+ is downloadable from:
http://www.microsoft.com/downloads/release.asp?releaseid=32738
Example
lnHeight = 0 lnWidth = 0 lnResolution = 0 ? GetImageInfo("d:\westwind\images\wconnect.gif",; @lnWidth,@lnHeight,@lnResolution) ? lnWidth, lnHeight, lnResolution
See also:
Class wwAPI© West Wind Technologies, 2004-2017 • Updated: 05/02/13
Comment or report problem with topic