ImageGear Professional DLL v17.1 for Windows Accusoft
IG_save_file_size_calc
Send Feedback  
ImageGear Professional DLL v17.1 for Windows > API Reference Guide > Core Component API Reference > Core Component Functions Reference > Save Functions > IG_save_file_size_calc

Glossary Item Box

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.

©2012. Accusoft Corporation. All Rights Reserved.