ImageDecode Function

Microchip Graphics Library

Microchip Graphics Library
ImageDecode Function
C
BYTE ImageDecode(
    IMG_FILE * pImageFile, 
    IMG_FILE_FORMAT eImgFormat, 
    WORD wStartx, 
    WORD wStarty, 
    WORD wWidth, 
    WORD wHeight, 
    WORD wFlags, 
    IMG_FILE_SYSTEM_API * pFileAPIs, 
    IMG_PIXEL_OUTPUT pPixelOutput
);
Overview

This function decodes and displays the image on the screen

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_bDecode(pImageFile, IMG_JPEG, 0, 0, 320, 240, 0, NULL, NULL);
    IMG_FCLOSE(pImageFile);
    while(1);
}
Microchip Graphics Library Version 3.06.02 - October 15, 2012
Copyright © 2012 Microchip Technology, Inc.  All rights reserved