Mikroelektronika MIKROE-442 Datenbogen
![Mikroelektronika](https://files.manualsbrain.com/attachments/e0529b3b58069a916ad7bb89f7e9f5f0eda73421/common/fit/150/50/1b07b99aa3112e022a916b06db07f1f4f211e91d41878452d87c7638b1bf/brand_logo.gif)
604
mikoBasic PRO for dsPIC30/33 and PIC24
MikroElektronika
TFT_Partial_Image
TFT_Image_Jpeg
Prototype
sub procedure TFT_Partial_Image(dim left, top, width, height as word, dim
image as far const byte, dim stretch as 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
sub function TFT_Image_Jpeg(dim left, top as word, dim image as far const
byte) as 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)