EasyManuals Logo

Tandy 1000 Basic Reference Manual

Default Icon
411 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #172 background imageLoading...
Page #172 background image
Chapter
10
I
BASIC
Ke-ywords
GET/Graphics
~ ~
Statement
Transfers points from an area on the display
to
an array.
(x1,yl)
specifies the coordinates where the image begins.
(x2,y2)
specifies the coordinates where the image ends.
x
is the horizontal coordinate and
y
is the vertical coordinate.
The ranges for the coordinates depend on the screen mode. See
Chapter
8,
“Displaying Color and Graphics,” for more
information.
Array
is a numeric array
to
hold the image. It must be dimen-
sioned large enough
to
hold the entire image.
To
ensure that the
array is large enough
to
hold the image, use the following
formula:
4
+
(INT((F,
*
b
+
7)/8)
*
u)
where:
h
is the length of the horizontal side
of
the image.
b
the number of bits per point
(2
in Screen Modes
1,
4,
and
u
is the length of the vertical side
of
the image.
6;
1
in Screen Mode
2;
and
4
in Screen Modes
3
and
5).
For example,
to
store an image that is
10
by
12
in Screen Mode
1,
type:
4
+
(INT((10
*
2
+
7)/8)
*
12)
=
40
The array must store
40
bytes. The number
of
bytes per element
of
an array are
2
for integer,
4
for single precision, and
6
for dou-
ble precision.
170

Table of Contents

Other manuals for Tandy 1000

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Tandy 1000 and is the answer not in the manual?

Tandy 1000 Specifications

General IconGeneral
ProcessorIntel 8088
Processor Speed4.77 MHz
RAM128 KB (expandable to 640 KB)
Operating SystemMS-DOS 2.11
ManufacturerTandy Corporation
Release Year1984
StorageSingle or double 5.25" floppy disk drive (360 KB), optional hard drive
SoundTandy 3-voice sound
PortsParallel, Serial
GraphicsCGA (Color Graphics Adapter)
Graphics Modes320x200, 640x200

Related product manuals