Mikroelektronika MIKROE-724 データシート
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)