User manual

mikroBasic PRO for dsPIC30/33 and PIC24
MikroElektronika
337
S1D13700_PartialImage
Prototype
sub procedure S1D13700_PartialImage(dim x_left, y_top, width, height,
picture_width, picture_height as word, dim image as ^const byte)
Returns Nothing.
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 is located in code memory.
Note: Image dimension must match the display dimension.
Requires Glcd module needs to be initialized. See the S1D13700_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.
S1D13700_PartialImage(10, 12, 10, 15, 16, 32, @image)