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.
Declaration:
Copy Code | |
---|---|
AT_ERRCOUNT ACCUAPI IG_save_file_size_calc( HIGEAR hIGear, AT_LMODE lFormatType, LPAT_UINT lpFileSize ); |
Arguments:
hIGear | HIGEAR handle of the image on which to calculate the size. |
lFormatType | Specifies the format to use for saving, and also the compression scheme if applicable. See enumIGSaveFormats. |
lpFileSize | Returned argument showing the required size of the file or memory. |
Return Value:
Returns 0 if successful. Otherwise, returns the number of ImageGear errors that occurred during this function call.Supported Raster Image Formats:
All pixel formats supported by ImageGear Professional.
Sample:
Memory IO
Remarks:
This call may be used prior to calling IG_save_mem to determine the amount of memory that needs to be allocated.