User manual

Table Of Contents
576
mikoC PRO for PIC32
MikroElektronika
TFT_Partial_Image
TFT_Image_Jpeg
Prototype
void TFT_Partial_Image(unsigned int left, unsigned int top, unsigned int
width, unsigned int height, code const far unsigned short * image, unsigned
short stretch);
Returns Nothing.
Description Displays a partial area of the image on a desired location.
Parameters:
- left: left coordinate of the image.
- top: top coordinate of the image.
- width: desired image width.
- height: desired image height.
- image: image to be displayed. Bitmap array is located in code memory.
- stretch: stretches image by a given factor (if 2, it will double the image.).
Requires TFT module needs to be initialized. See the TFT_Init routine.
Example
// Draws a 10x15 part of the image starting from the upper left corner on
the coordinate (10,12)
TFT_PartialImage(10, 12, 10, 15, image, 1);
Prototype
char TFT_Image_Jpeg(unsigned int left, unsigned int top, code const far
unsigned short *image);
Returns - 0 - if image is loaded and displayed successfully.
- 1 - if error occured.
Description Displays a JPEG image on a desired location.
Parameters:
- left: left coordinate of the image.
- top: top coordinate of the image.
- image: image to be displayed. Bitmap array is located in code memory.
Requires TFT module needs to be initialized. See the TFT_Init routine.
Example
TFT_Image_Jpeg(0, 0, image);