ImageGear Professional DLL v18.1 for Windows
ART_memory_export
Send Feedback
ImageGear Professional v18.1 > API Reference Guide > ART Component API Reference > ART Component Functions Reference > Memory Functions > ART_memory_export

Glossary Item Box

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 pointer to memory.
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 Professional.

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);
©2014. Accusoft Corporation. All Rights Reserved.