Mikroc, Glcd_partial_image, Glcd_image – ABL electronic PIC Microcontrollers PIC16 User Manual
Page 224
mikroC - C Compiler for Microchip PIC microcontrollers
mikroC
making it simple...
216
MikroElektronika: Development tools - Books - Compilers
page
Prototype
void
Glcd_Partial_Image(unsigned short x1, unsigned short y1,
unsigned short
x2, unsigned short y2, unsigned short color,
const char
*image);
Description
Displays partial bitmap image on the GLCD. Parameter
image
should be formatted as
an array of 1024 bytes. Parameters (
x1
,
y1
) set the upper left corner, and (
x2
,
y2
) set
the lower right corner of the clip. Parameter
color
defines the fill: 0 draws a “white”
image (clear dots), 1 draws a “black” image (put dots), and 2 draws an inverted image
(invert each dot).
Use the mikroC’s integrated Bitmap-to-LCD editor (menu option Tools > Graphic LCD
Editor) to convert image to a constant array suitable for display on GLCD.
Requires
GLCD needs to be initialized. See
Glcd_Init
.
Example
Glcd_Partial_Image(0, 0, 32, 64, 1, my_image);
Glcd_Partial_Image
Prototype
void
Glcd_Image(const char *image);
Description
Displays bitmap image on the GLCD. Parameter
image
should be formatted as an array
of integers. Use the mikroC’s integrated Bitmap-to-LCD editor (menu option Tools >
BMP2LCD) to convert image to a constant array suitable for display on GLCD.
Requires
GLCD needs to be initialized. See
Glcd_Init
.
Example
Glcd_Image(my_image);
Glcd_Image