ImageGear for C and C++ on Linux v20.0 - Updated
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.


Copy Code
AT_ERRCOUNT ART_memory_export_size_calc (
        HIGEAR hIGear,
        LPDWORD lpdwSize


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++.


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.