13.12.2012 Views

emWin - SEGGER Microcontroller

emWin - SEGGER Microcontroller

emWin - SEGGER Microcontroller

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

168 CHAPTER Displaying bitmap files<br />

GUI_GIF_GetInfoEx()<br />

Description<br />

Returns an information structure with information about the size and the number of<br />

sub images within the given GIF file, which needs not to be loaded into memory.<br />

Prototype<br />

int GUI_GIF_GetInfoEx(GUI_GET_DATA_FUNC * pfGetData, void * p,<br />

GUI_GIF_INFO * pInfo);;<br />

Parameter Description<br />

pfGetData<br />

Pointer to a function which is called for getting data. For details about the GetData<br />

function, refer to “Getting data with the ...Ex() functions” on page 174.<br />

p Void pointer passed to the function pointed by pfGetData.<br />

pInfo Pointer to a GUI_GIF_INFO structure which will be filled by this function.<br />

Return value<br />

0 on success, != 0 on error.<br />

Elements of GUI_GIF_INFO<br />

Data type Element Description<br />

int XSize Pixel size in X of the image.<br />

int YSize Pixel size in Y of the image.<br />

int NumImages Number of sub images in the file.<br />

GUI_GIF_GetXSize()<br />

Description<br />

Returns the X-size of a specified GIF image, which has been loaded into memory.<br />

Prototype<br />

int GUI_GIF_GetXSize(const void * pGIF);<br />

Parameter Description<br />

pGIF Pointer to the start of the memory area in which the gif file resides.<br />

Return value<br />

X-size of the GIF image.<br />

GUI_GIF_GetXSizeEx()<br />

Description<br />

Returns the X-size of a specified GIF image, which needs not to be loaded into memory.<br />

Prototype<br />

int GUI_GIF_GetXSizeEx(GUI_GET_DATA_FUNC * pfGetData, void * p);<br />

Parameter Description<br />

pfGetData<br />

Pointer to a function which is called for getting data. For details about the GetData<br />

function, refer to “Getting data with the ...Ex() functions” on page 174.<br />

p Void pointer passed to the function pointed by pfGetData.<br />

Return value<br />

X-size of the GIF image.<br />

UM03001 User & Reference Guide for <strong>emWin</strong> V5.18 © 1997 - 2012 <strong>SEGGER</strong> <strong>Microcontroller</strong> GmbH & Co. KG

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!