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);
}