GetFileInfo
Retrieves size, resolution and colordepth information of an image file.
GSErrCode GetFileInfo ( const IO::Location& fileLoc, Int32* hSize, Int32* vSize, Int32* hRes, Int32* vRes, Int32* pixelBitNum );
Parameters
- fileLoc
- The location of the image file queried.
- hSize
- The width of the image.
- vSize
- The height of the image.
- hRes
- The horizontal resolution of the image.
- vRes
- The vertical resolution of the image.
- pixelBitNum
- The bit depth of the pixels of the image.
Return values
- NoError
- The function has completed with success.
- Error
- The file is not exist or not an image file.
Remarks
This function is used to get information about an image file. If some information you don't need, you can give NULL for that parameter.
Requirements
- Version:
- GX
- Header:
- GXImageBase.hpp
- Import Library:
- GXImageBase.lib
- Module:
- GXImageBase.dll [WIN], GXImageBase.framework [MAC]