User manual
mikroPascal PRO for dsPIC30/33 and PIC24
MikroElektronika
602
TFT_Rectangle_Round_Edges
TFT_Circle
TFT_Image
Prototype
procedure TFT_Rectangle_Round_Edges(x_upper_left, y_upper_left, x_bottom_
right, y_bottom_right, round_radius : 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
procedure TFT_Circle(x_center, y_center, radius : 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
procedure TFT_Image(left, top : word; image : ^const far byte; stretch :
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);