This function is used to determine the size that is required for saving the image to the file or memory buffer in the given format.
Copy Code
|
|
---|---|
AT_ERRCOUNT ACCUAPI IG_save_file_size_calc( HIGEAR hIGear, AT_LMODE lFormatType, LPAT_UINT lpFileSize ); |
Name | Type | Description |
---|---|---|
hIGear | HIGEAR | HIGEAR handle of the image on which to calculate the size. |
lFormatType | AT_LMODE | Specifies the format to use for saving, and also the compression scheme if applicable. See enumIGSaveFormats. |
lpFileSize | LPAT_UINT | Returned argument showing the required size of the file or memory. |
All pixel formats supported by ImageGear for C and C++.
This call may be used prior to calling IG_save_mem to determine the amount of memory that needs to be allocated.