Mikroelektronika MIKROE-724 データシート
mikroBasic PRO for dsPIC30/33 and PIC24
MikroElektronika
603
TFT_Rectangle_Round_Edges
TFT_Circle
TFT_Image
Prototype
sub procedure TFT_Rectangle_Round_Edges(dim x_upper_left, y_upper_left, x_
bottom_right, y_bottom_right, round_radius as word)
Returns
Nothing.
Description Draws a rounded edge rectangle on TFT.
Parameters:
-
x_upper_left
: x coordinate of the upper left rectangle corner.
-
y_upper_left
: y coordinate of the upper left rectangle corner.
-
x_bottom_right
: x coordinate of the lower right rectangle corner.
-
y_bottom_right
: y coordinate of the lower right rectangle corner.
-
round_radius
: radius of the rounded edge.
Requires
TFT module needs to be initialized. See the TFT_Init routine.
Example
TFT_Rectangle_Round_Edges(20, 20, 219, 107, 12)
Prototype
sub procedure TFT_Circle(dim x_center, y_center, radius as integer)
Returns
Nothing.
Description Draws a circle on TFT.
Parameters:
-
x
: x coordinate of the circle center.
-
y
: y coordinate of the circle center.
-
r
: radius size.
Requires
TFT module needs to be initialized. See the TFT_Init routine.
Example
TFT_Circle(120, 64, 110)
Prototype
sub procedure TFT_Image(dim left, top as word, dim image as far const byte,
dim stretch as byte)
Returns
Nothing.
Description Displays an image on a desired location.
Parameters:
-
left
: position of the image’s left edge.
-
top
:position of the image’s top edge.
-
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
TFT_Image(0, 0, @image, 1)