AccusoftImagXpress13 ActiveX DLL > ImagXpress Object : QueryFile Method |
This method has been deprecated and will be removed from ImagXpress in a future release. Please use QueryFile2 instead. |
Obtains information about an image file.
QueryFile obtains information about an image file but does not load the image. Information about the image is returned in the Width, Height, BPP, Format, FileSize, ResUnits, ResX, and ResY parameters.
FileName may be a remote or local file. It may not be an http or ftp address.
ResUnits, ResX, and ResY are returned for the following image formats: TIFF, JPEG, PDF, PIC, PNG, BMP, RLE, PCX. These values will be set to zero if the image does not contain resolution information.
If QueryFile is successful, the ImagError Property is set to 0 (ErrorNone). If QueryFile fails, the ImagError Property will be set to a non zero value.
The QueryFileV2 Method is identical to the QueryFile Method, except that the return values for Width, Height, BPP, Format, FileSize, ResUnits, ResX, and ResY are VARIANTS. If you are using VB Script, or if you are using Visual Basic, and wish to use implicit variables, you must use the QueryFileV Method. If using C++, you can avoid the variant conversions by using this QueryFile Method.