ImageGear Professional v18.2 > 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.
Copy Code
|
|
---|---|
AT_ERRCOUNT ART_memory_export ( HIGEAR hIGear, LPVOID lpMem, DWORD dwSize ); |
Name | Type | Description |
hIGear | HIGEAR | HIGEAR handle to the image. |
lpMem | LPVOID | A 32-bit pointer to memory. |
dwSize | DWORD | The size of memory block. |
Returns the number of ImageGear errors that occurred during the function call.
All pixel formats supported by ImageGear Professional.
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); |