Radio Shack TRS-80 Operation Manual page 49

Hide thumbs Also See for TRS-80:
Table of Contents

Advertisement

Computer Graphics
Operation Manual
- - - - - - - - - - T R S · B O
® - - - - - - - - - -
jointly. Together, they allow you to "get" a rectangular
pixel area which contains a graphic display, store it in an
array, then "put" the array back on the screen later.
Remember that before you GET or PUT, you have to create an
array to store the bit contents of the display rectangular
pixel area. The size of the array must match that of the
display rectangular pixel area.
PUT moves your GET rectangular pixel area to the startpoint
in your PUT statement and the startpoint is the new upper-
left corner of the rectangular pixel area.
To illustrate:
5 DIM V(3)
l~
GET (2,3)-(7,7),V
l~~
PUT
(5~,5~),V,PSET
After GETting, PUT this rectangular pixel area to
(5~,5~).
The new coordinates are:
(5~,5~)
(5l,5~)
(52,5g)
(53,5~)
(54,5~)
(55,5~)
(5~,5l)
(51,51) (52,51) (53,51) (54,51) (55,51)
(5~,52)
(51,52) (52,52) (53,52) (54,52) (55,52)
(5~,53)
(51,53) (52,53) (53,53) (54,53) (55,53)
(5~,54)
(51,54) (52,54) (53,54) (54,54) (55,54)
The rectangular pixel area
«5~,5g)-(55,54»
is exactly the
same pixel size as (2,3)-(7,7); only the location is
different.
- - - - - - - - - I t a d l e l h a e l l - - - - - - - - -
-47-

Advertisement

Table of Contents
loading

Table of Contents