Creates a thumbnail image from a normal sized image by specify source and thumbnail filenames and Width and Height values.
The source file that the thumbnail is created from.
The name of the thumbnail file to be created.
Uses wwImaging.dll shipped in the Web Connection directory.
The height and width are calculated by taking the longer side and reducing it to the specified width or height value, then figuring out the aspect ratio on the other dimension. This means image aspect ratios are maintained and images are not sized to the exact dimensions specified, but only match on the longer side. Images are never distorted or stretched.
This function supports the following image formats:
* gif * jpg * png * tiff * bmp
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.
GDI+ is downloadable from: http://www.microsoft.com/downloads/release.asp?releaseid=32738
See also:Class wwAPI
Comment or report problem with topic