User manual

603
mikoPascal PRO for dsPIC30/33 and PIC24
MikroElektronika
TFT_Partial_Image
TFT_Image_Jpeg
Prototype
procedure TFT_Partial_Image(left, top, width, height : word; image : ^const
far byte; stretch : byte) ;
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
function TFT_Image_Jpeg(left, top : word; image : ^const far byte): byte;
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);