Mikroelektronika MIKROE-724 データシート

ページ / 726
362
mikoBasic PRO for dsPIC30/33 and PIC24
MikroElektronika
Glcd_Image
Glcd_PartialImage
Prototype
sub procedure Glcd_Image(dim byref constimage as byte)
Description Displays bitmap on Glcd.
Parameters 
image
: image to be displayed. Bitmap array can be located in both code and RAM memory (due to 
the mikroBasic PRO for dsPIC30/33 and PIC24 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 mikroBasic PRO for dsPIC30/33 and PIC24 integrated Glcd Bitmap Editor, 
Tools > Glcd 
Bitmap Editor, to convert image to a constant array suitable for displaying on Glcd.
Prototype
sub procedure Glcd_PartialImage(dim x_left, y_top, width, height, picture_
width, picture_height as word, const image as ^byte)
Description Displays a partial area of the image on a desired location.
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 mikroBasic 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 mikroBasic PRO for dsPIC30/33 and PIC24 integrated Glcd Bitmap Editor, 
Tools > Glcd 
Bitmap Editor, to convert image to a constant array suitable for displaying on Glcd.