C
#define ImageFullScreenDecode(pImageFile, eImgFormat, pFileAPIs, pPixelOutput) \ ImageDecode(pImageFile, eImgFormat, 0, 0, IMG_SCREEN_WIDTH, IMG_SCREEN_HEIGHT, (IMG_ALIGN_CENTER | IMG_DOWN_SCALE), pFileAPIs, pPixelOutput)
Overview
This function decodes and displays the image on the screen in fullscreen mode with center aligned and downscaled if required
Returns
Error code -> 0 means no error
Side Effects
None
Example
void main(void)
{
IMG_FILE pImageFile;
IMG_vInitialize();
pImageFile = IMG_FOPEN("Image.jpg", "r");
if(pImageFile == NULL)
{
<- Error handling ->
}
IMG_bFullScreenDecode(pImageFile, IMG_JPEG, NULL, NULL);
IMG_FCLOSE(pImageFile);
while(1);
}