Save an array to memory as an image using FreeImage stream (FIMEMORY). More...
Functions | |
| void * | saveImageMem (const array &in, const imageFormat format=AF_FIF_PNG) |
| C++ Interface for saving an image to memory. | |
| af_err | af_save_image_memory (void **ptr, const af_array in, const af_image_format format) |
| C Interface for saving an image to memory using FreeImage. | |
Save an array to memory as an image using FreeImage stream (FIMEMORY).
Supported formats include JPG, PNG, PPM and other formats supported by freeimage
| af_err af_save_image_memory | ( | void ** | ptr, |
| const af_array | in, | ||
| const af_image_format | format ) |
C Interface for saving an image to memory using FreeImage.
| [out] | ptr | is the FIMEMORY pointer created by FreeImage. |
| [in] | in | is the arrayfire array to be saved as an image |
| [in] | format | is the type of image to create in memory. The enum borrows from the FREE_IMAGE_FORMAT enum of FreeImage. Other values not included in af_image_format but included in FREE_IMAGE_FORMAT can also be passed to this function. |
| void * saveImageMem | ( | const array & | in, |
| const imageFormat | format = AF_FIF_PNG ) |
C++ Interface for saving an image to memory.
| [in] | in | is the arrayfire array to be saved as an image |
| [in] | format | is the type of image to create in memory. The enum borrows from the FREE_IMAGE_FORMAT enum of FreeImage. Other values not included in imageFormat but included in FREE_IMAGE_FORMAT can also be passed to this function. |