Chapter 15 graphic display port – Remote Processing RPC-2350 User Manual

Page 66

Advertising
background image

CHAPTER 15

GRAPHIC DISPLAY PORT

15-5

Scroll up time may be an important factor. It takes
about 65 mS to move all 1160 characters of the text up
one line.

CHANGING AND LOADING FONTS

Mediu m and lar ge size char acter fon ts are stor ed in
Flash EPR OM U 3. You can change or customize the
fonts using the supplied programs and a Windows bitmap
graphics program (such as PC Paint Brush).

If U3 is missing, damaged or W11 is removed, garbage
characters will be displayed.

Y o u c a n c h an g e a n d l oa d fo n ts u si ng th e pr o g ra m s
s u pp li e d i n t he d em o d is k . T he y ar e u nd e r th e F O N T
director y. Su pplied are all of the . BMP files used to
create each character. They are name d as Lxxx.BM P or
Mxxx.BM P. A n ‘L’ prefix specifies a large character
and an ‘M’ prefix is for medium . The num ber following
this letter is the ASCII value. Thus, M65. BMP is a
medium sized letter ‘A’

Modification instructions are in a READM E file in the
directory. Read this if you want to modify the
character s..

Characters sizes are fixed at 10 x 16 for medium and 32
x 48 for large.

DRAWING POINTS AND LINES

There are two basic commands used for drawing lines
and points:

D I S PL A Y L I N E
DISPLAY P

Both commands have a counter part to clear lines and
points:

C L E A R D IS P L A Y LI N E
CLEAR DISPLAY P

Drawing range is from 0,0 to 329,239. Coordinates are
shown in the figure below.

Figure 15-2

The demo progr am CIRC LE. BAS draws a circle using
point set (DISPLAY P (x,y)).

Minimal range checking is performed. If a point does
not show up or is in the wrong place, chances are either
the X or Y param eter is wrong.

CLEAR, FILL, AND XOR AREAS

You can clear (erase), fill, or XOR (toggle) a
rectangular area using one of the display com mands.

DISPLA Y F(x1, y1),(x2, y2)

Fills an area

DISPLA Y F, C(x1, y1),(x2, y2)

Clears an area

DISPLA Y F, X(x1,y1), (x2,y2)

Toggles an area

This com mand is use ful when yo u want to sele ctively
clear or fill an area (graphics, for example) without
clearing the entire screen. F illing an area is useful for
displaying a bar gra ph. It is faster than drawing lines.

XOR is useful when you want to highlight an area. The
data is reversed in whatever area is selected.

The fill com mand tak es time to exe cute, especially in
large areas. This is important if you are running
multitasking (ON COM , ON BIT, etc. ).

Display fill ope rates faste st when X is on an 8 bit
boundary. For exam ple, filling an area bounded by
(0,y), (96,y) is 20% faster than (1,y), (97,y), even though
the area is the same. XOR requires an extra 20% more
time to exec ute. Turn ing off spar kle (see ear lier in this
chapter) reduces write time by about ½.

Executio n time dep ends upon the size of the ar ea to fill.
Larger areas obviously take m ore time than sm all ones.

Advertising