Mikroelektronika MIKROE-738 Datenbogen
![Mikroelektronika](https://files.manualsbrain.com/attachments/e0529b3b58069a916ad7bb89f7e9f5f0eda73421/common/fit/150/50/1b07b99aa3112e022a916b06db07f1f4f211e91d41878452d87c7638b1bf/brand_logo.gif)
mikroC PRO for PIC32
MikroElektronika
337
Glcd_Image
Glcd_PartialImage
Prototype
void Glcd_Image(code const unsigned short *image);
Description Displays bitmap on Glcd.
Parameters -
Parameters -
image
: image to be displayed. Bitmap array can be located in both code and RAM memory (due to
the mikroC PRO for PIC32 pointer to const and pointer to RAM equivalency).
Returns
Nothing.
Requires
Glcd needs to be initialized, see Glcd_Init routine.
Example
// Draw image my_image on Glcd
Glcd_Image(my_image);
Notes
Use the mikroC PRO for PIC32 integrated Glcd Bitmap Editor,
Tools > Glcd Bitmap Editor, to convert
image to a constant array suitable for displaying on Glcd.
Prototype
void Glcd_PartialImage(unsigned int x_left, unsigned int y_top, unsigned
int width, unsigned int height, unsigned int picture_width, unsigned int
picture_height, code const unsigned short * image);
Description Displays a partial area of the image on a desired location.
Parameters -
Parameters -
x_left
: x coordinate of the desired location (upper left coordinate).
-
y_top
: y coordinate of the desired location (upper left coordinate).
-
width
: desired image width.
-
height
: desired image height.
-
picture_width
: width of the original image.
-
picture_height
: height of the original image.
-
image
: image to be displayed. Bitmap array can be located in both code and RAM memory (due to
the mikroC PRO for PIC pointer to const and pointer to RAM equivalency).
Returns
Nothing.
Requires
Glcd needs to be initialized, see Glcd_Init routine.
Example
// Draws a 10x15 part of the image starting from the upper left corner on
the coordinate (10,12). Original image size is 16x32.
Glcd_PartialImage(10, 12, 10, 15, 16, 32, image);
Notes
Use the mikroC PRO for PIC32 integrated Glcd Bitmap Editor,
Tools > Glcd Bitmap Editor, to convert
image to a constant array suitable for displaying on Glcd.