Description This method retrieves information about the specified image file. This method is available for TIFF, JPEG, PDF (image only), PNG, DIB, GIF, IOCA, MO:DCA (image only) , WMF, EMF, PCX, DCX, CLP, TGA, FAX or CALS file formats.
Syntax Ret = [BiDib.]GetImageInfoStructure FileName Image Width Height BitCount DPIX DPIY
Remarks Ret Long Error code. Available error codes are listed in LoadImageintoDIB section.
FileName String Path and name of the file.
Image Long Image number. This parameter is a zero based integer. You can use to select image from file. This parameter is available only for TIFF, PDF, MO:DCA, GIF, FAX and DCX files.
Width Long* Width of the image.
Height Long* Height of the image.
BitCount Short* Bitcount of the image.
DPIX Long* Horizontal dpi of the image.
DPIY Long* Vertical dpi of the image.
Format Short* Image format. See enumFileFormats.
Programming notes The GetImageInfoStructure method determines the file format based on the file content, not the extension, so any extension can be used for the files.
See Also LoadImageIntoDIB Method, SaveDIBInImageFormat Method