ImageGear for C and C++ on Windows v19.0
IG_save_file_size_calc

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:

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.

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 for C and C++.

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.

 

 


©2017. Accusoft Corporation. All Rights Reserved.

Send Feedback