A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://arrayfire.org/docs/group__imagemem__func__save.htm below:

ArrayFire: saveImageMem

Save an array to memory as an image using FreeImage stream (FIMEMORY). More...

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_save_image_memory()

C Interface for saving an image to memory using FreeImage.

Parameters
[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.
Returns
AF_SUCCESS if successful.
◆ saveImageMem()

C++ Interface for saving an image to memory.

Parameters
[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.
Returns
a void* pointer which is a type cast of the FreeImage type FIMEMORY* pointer.
Note
Ensure that deleteImageMem is called on this pointer. Otherwise there will be memory leaks

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4