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__load.htm below:

ArrayFire: loadImageMem

Load an image from memory which is stored as a FreeImage stream (FIMEMORY). More...

Load an image from memory which is stored as a FreeImage stream (FIMEMORY).

Supported formats include JPG, PNG, PPM and other formats supported by freeimage

◆ af_load_image_memory()

C Interface for loading an image from memory.

Parameters
[out] out is an array that will contain the image [in] ptr is the FIMEMORY pointer created by either saveImageMem function, the af_save_image_memory function, or the FreeImage_OpenMemory API.
Returns
AF_SUCCESS if successful
◆ loadImageMem()

C++ Interface for loading an image from memory.

Parameters
[in] ptr is the location of the image data in memory. This is the pointer created by saveImage.
Returns
image loaded as af::array()
Note
The pointer used is a void* cast of the FreeImage type FIMEMORY which is created using the FreeImage_OpenMemory API. If the user is opening a FreeImage stream external to ArrayFire, that pointer can be passed to this function as well.

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