Mikroelektronika MIKROE-738 Datenbogen

Seite von 682
mikroC PRO for PIC32
MikroElektronika
575
TFT_Rectangle_Round_Edges
TFT_Circle
TFT_Image
Prototype
void  TFT_Rectangle_Round_Edges(unsigned  int  x_upper_left,  unsigned  int 
y_upper_left,  unsigned  int  x_bottom_right,  unsigned  int  y_bottom_right, 
unsigned int round_radius);
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
void TFT_Circle(int x_center, int y_center, int radius);
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
void TFT_Image(unsigned int left, unsigned int top, code const far unsigned 
short * image, unsigned short stretch);
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);