gflLoadThumbnailFromMemory

GFL SDK

gflLoadThumbnailFromMemory

The gflLoadThumbnailFromMemory function load a picture file as a thumbnail from memory.

GFL_ERROR gflLoadThumbnailFromMemory(
  GFL_UINT8 * data,  
  GFL_UINT32 data_length,  
  GFL_INT32 width,  
  GFL_INT32 height,  
  GFL_BITMAP ** bitmap,  
  GFL_LOAD_PARAMS * params,  
  GFL_FILE_INFORMATION * informations,  
);

Parameters

    data
    Pointer to the picture.
    data_length
    Length of data.
    width
    Width of the thumbnail.
    height
    Height of the thumbnail.
    bitmap
    Address of a pointer to a GFL_BITMAP structure.
    params
    Pointer to a GFL_LOAD_PARAMS structure.
    This structure must be filled correctly.
    informations
    Pointer to a GFL_FILE_INFORMATION structure. Can be NULL if you don't want it.
    You must use gflFreeFileInformation to free his content.

Return value

    The function returns GFL_NO_ERROR if it is successful or a value of GFL_ERROR.

See also