Mikroelektronika MIKROE-738 Datenbogen
![Mikroelektronika](https://files.manualsbrain.com/attachments/e0529b3b58069a916ad7bb89f7e9f5f0eda73421/common/fit/150/50/1b07b99aa3112e022a916b06db07f1f4f211e91d41878452d87c7638b1bf/brand_logo.gif)
mikroC PRO for PIC32
MikroElektronika
491
SPI_Glcd_Rectangle_Round_Edges
SPI_Glcd_Rectangle_Round_Edges_Fill
Prototype
void SPI_Glcd_Rectangle_Round_Edges(unsigned short x_upper_left, unsigned
short y_upper_left, unsigned short x_bottom_right, unsigned short y_bottom_
right, unsigned short round_radius, unsigned short color);
Description Draws a rounded edge rectangle on Glcd.
Parameters -
Parameters -
x_upper_left
: x coordinate of the upper left rectangle corner. Valid values: 0..127
-
y_upper_left
: y coordinate of the upper left rectangle corner. Valid values: 0..63
-
x_bottom_right
: x coordinate of the lower right rectangle corner. Valid values: 0..127
-
y_bottom_right
: y coordinate of the lower right rectangle corner. Valid values: 0..63
-
round_radius
: radius of the rounded edge.
-
color
: color parameter. Valid values: 0..2
Returns
Nothing.
Requires
Glcd needs to be initialized, see SPI_Glcd_Init routine.
Example
// Draw a rounded edge rectangle between dots (5,5) and (40,40) with the
radius of 12
SPI_Glcd_Rectangle_Round_Edges(5, 5, 40, 40, 12, 1);
Notes
None.
Prototype
void SPI_Glcd_Rectangle_Round_Edges_Fill(unsigned short x_upper_left,
unsigned short y_upper_left, unsigned short x_bottom_right, unsigned short
y_bottom_right, unsigned short round_radius, unsigned short color);
Description Draws a filled rounded edge rectangle on Glcd with color.
Parameters -
Parameters -
x_upper_left
: x coordinate of the upper left rectangle corner. Valid values: 0..127
-
y_upper_left
: y coordinate of the upper left rectangle corner. Valid values: 0..63
-
x_bottom_right
: x coordinate of the lower right rectangle corner. Valid values: 0..127
-
y_bottom_right
: y coordinate of the lower right rectangle corner. Valid values: 0..63
-
round_radius
: radius of the rounded edge
-
color
: color parameter. Valid values: 0..2
The parameter
color
determines the color of the rectangle border: 0 white, 1 black, and 2 inverts
each dot.
Returns
Nothing.
Requires
Glcd needs to be initialized, see SPI_Glcd_Init routine.
Example
// Draws a filled rounded edge rectangle between dots (5,5) and (40,40) with
the radius of 12
SPI_Glcd_Rectangle_Round_Edges_Fill(5, 5, 40, 40, 12, 1);
Notes
None.