ImageGear for C and C++ on Linux v20.0 - Updated
ART_memory_export_size_calc
API Reference Guide > ART Component API Reference > ART Component Functions Reference > Memory Functions > ART_memory_export_size_calc

This function calculates the size of memory needed to allocate and save marks using the ART_memory_export() function.

Declaration:

 
Copy Code
AT_ERRCOUNT ART_memory_export_size_calc (
        HIGEAR hIGear,
        LPDWORD lpdwSize
);

Arguments:

Name Type Description
hIGear HIGEAR HIGEAR handle to the image.
lpdwSize LPDWORD Returns the size of memory block.

Return Value:

Returns the number of ImageGear errors that occurred during the function call.

Supported Raster Image Formats:

All pixel formats supported by ImageGear for C and C++.

Example:

 
Copy Code
HIGEAR hIGear;   /* HIGEAR handle of Image  */
DWORD dwSize;   /* Size of memory block   */
AT_ERRCOUNT nErrCount; /* Tally of IG errors on stack  */
nErrCount = ART_memory_export_size_calc(hIGear,&dwSize);
Is this page helpful?
Yes No
Thanks for your feedback.