ImageGear for C and C++ on Windows v20.1 - Updated
ART_memory_export
API Reference Guide > ART Component API Reference > ART Component Functions Reference > Memory Functions > ART_memory_export

This function saves the marks associated with the HIGEAR image to a separate previously allocated memory block.

Declaration:

 
Copy Code
AT_ERRCOUNT ART_memory_export (
        HIGEAR hIGear, 
        LPVOID lpMem, 
        DWORD dwSize
);

Arguments:

Name Type Description
hIGear HIGEAR HIGEAR handle to the image.
lpMem LPVOID A 32-bit or 64-bit pointer to memory (based on the system's bit architecture).
dwSize DWORD 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++.

Sample:

None

Example

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