ImageGear Professional DLL v18.1 for Windows
LPFNIG_MEM_FREE
Send Feedback
ImageGear Professional v18.1 > API Reference Guide > Core Component API Reference > Core Component Callback Functions Reference > LPFNIG_MEM_FREE

Glossary Item Box

Create a function of this type to give your application the flexibility of replacing ImageGear's memory free routine with your own.

Declaration:

  Copy Code
typedef LPBYTE (ACCUAPI LPFNIG_MEM_FREE) ( LPBYTE lpBuffer); 

Arguments:

Name Type Description
lpBuffer LPBYTE Far pointer to the buffer to be freed.

Return Value:

Usually NULL.

Supported Raster Image Formats:

This function does not process image pixels.

Sample:

Filters

Example:

  Copy Code
/*************************************************************/
/* Memory Free callback function definition       */
*************************************************************/
LPBYTE  ACCUAPI MyMemFree( LPBYTE lpBuffer)
{
        /*MEMORY FREE CODE*/
        return NULL;
};
/*See also example for IG_mem_CB_register() */

Remarks:

This callback function is registered by calling IG_mem_CB_register(). The register function must be called prior to any user-defined callback functions being used by the ImageGear library.

©2014. Accusoft Corporation. All Rights Reserved.