238
cab Produkttechnik GmbH & Co KG
238
PRODUCT MARKING AND BARCODE IDENTIFICATION
Hermes
Apollo
A-series
This
function is
available
for:
[TABLE OF CONTENTS] [COMMAND LIST]
M-series
Window-Handling:
abc uses a hidden window which can be (partially) mapped to the front panel LCD. The printer
handles the window as a bitmap with 8 bit indexed colours. So each dot can have a value of 0
(black) to 255 (white). During mapping to the LCD, each colour is mapped according to its brightness
which is predefined as grayscales, i.e. 128 to 255 gives white pixels, 0 to 127 black pixels. The
mapping can be changed with the POKE command to RGB colors which are useful if you want to
write the graphic to the card.
- ‘OPEN WINDOW width, height’ opens the window. Only one is allowed. As this window is stored
internally in standard memory, define it only the size you really need. (E.g. a window 100,100
takes 10kByte memory). For the front panel’s LCD a window of 120 by 32 is sufficient.
- There’s only one font (16 dots high), variable width with support of latin, greek, cyrillic, hebrew and
arabic scripts. The origin is in the upper left corner of the first character’s bounding box.
For right-to-left writing countries, the origin is in the upper right corner.
New functions compared to Yabasic:
- POKE „color#“,rgb, #=1 to 254, 0 stays always black, 255 stays always white,
e.g. POKE „color#15“,dec(„ff0000“) sets color no. 15 to red
- WINDOW TRANSFER TO „name“ transfers the window content to a JScript image „name“ which
can be used e.g. with the I command.
- WINDOW TRANSFER FROM „name“ loads the window with a JScript image. If the windows and
image size are not identical the result is clipped.
- WINDOW WRITE TO „name“ saves the actual window as PNG on the memory card.
- WINDOW READ FROM „name“ load a PNG into the actual window. Path names are allowed here.
The window has to be big enough to hold the image, else loading will fail! Supported formats
are:
- grayscale 1 to 8 bits per pixel
- paletted images 8 bits per pixel
Restrictions compared to Yabasic:
- No CIRCLE command.
- No BITBLT, GETBIT$ and so on.
- WINDOW ORIGIN is not supported, i.e. the origin 0,0 is always in the upper left corner.
The modifiers CLEAR and FILL have the following results (shown for the RECT command):
RECT:
frame in foreground color
CLEAR RECT:
frame in background color
FILL RECT:
filled area in foreground color
CLEAR FILL RECT:
filled area in background color
no
no