GetFileDimensions

The GetFileDimensions method retrieves information about specified GIF image: width, height and palette

imagetype = GetFileDimensions (Filepath,Width,Height[,Palette])

Parameters

Filepath
Name of the file or path to image file. You can also specify a safearray containig gif image data.
Width
Out. Method returns width of image into this parameter.
Height
Out. Method returns height of image into this parameter.
Palette
Out, optional. Method returns image palette as two-dimensional array.


Return value
Method returns negative error code if error occurs, zero if file was not recognized as a gif image, and 1 if image is a gif.
Note
You can use this methods to check image before calling the Read method.