Metrologic IS1000 Series Guía de usuario Pagina 95

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 198
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 94
Chapter
5
BASIC
Commands
89
Example
LOCATE 1,1
PRINT String$(20,"")
LOCATE 1,1
A = 5
PRINT A, "square is "; A*A
' clear the whole line
See Also
CLS, ICON_ZONE_PRINT, SHOW_IMAGE
SHOW_IMAGE
Purpose
To show a bitmap image on the LCD.
Syntax
SHOW_IMAGE(x%, y%, size_x%, size_y%, image$)
Remarks
"x%" is an integer variable, indicating the x coordinate of the upper left point of the
rectangular area.
"y%" is an integer variable, indicating the y coordinate of the upper left point of the
rectangular area.
"size_x%" is an integer variable, indicating the width of the rectangular area in
pixels.
"size_y%" is an integer variable, indicating the height of the rectangular area in
pixels.
"image$" is a string variable, containing the bitmap data of the image.
The user needs to allocate a string variable to store the bitmap data of the image.
The string begins with the top row of pixels. Each row begins with the left-most
pixels. Each bit of the bitmap represents a single pixel of the image. If the bit is set
to 1, the pixel is marked; if it is 0, the pixel is unmarked. The first pixel in each row
is represented by the least significant bit of the first byte in each row. If the image is
wider than 8 pixels, the ninth pixel in each row is represented by the least significant
bit of the second byte in each row.
Below is an example of the company logo and the string variable - icon$, which is
used to store the bitmap data.
Vista de pagina 94
1 2 ... 90 91 92 93 94 95 96 97 98 99 100 ... 197 198

Comentarios a estos manuales

Sin comentarios