BGI: The Graphics Package
Written by Marc Vuilleumier
Last change October 5, 1993. First draft November 27, 1992
Subsections
User's manual
What is BGI?
What is different in P
C
S
CHEME
's implementation of BGI?
Coordinate systems
And further...
The PS and SPY drivers
How to use SPY
How to use PS
P
C
S
CHEME
BGI primitives reference
The Graphics Control System
(INIT-GRAPH
[driver [graph-mode [path-for-BGI-files]]]
)
(SET-WRITE-MODE
wmode
)
(RESTORE-CRT-MODE)
(SET-GRAPH-MODE
[mode]
)
(CLOSE-GRAPH)
(GRAPH-DEFAULTS)
(DETECT-GRAPH)
(GET-MODE-RANGE
[driver]
)
(GET-GRAPH-MODE)
(INSTALL-USER-DRIVER
name
)
(INSTALL-USER-FONT
name
)
Drawing
(LINE
start-point end-point
)
(RECTANGLE
upper-left-point lower-right-point
)
(DRAW-POLY
list-of-points
)
(CIRCLE
center-point radius
)
(ARC
center-point start-angle end-angle radius
)
(ELLIPSE
center-point start-angle end-angle distances
)
(GET-ARC-COORDS)
(SET-ASPECT-RATIO
factor
)
(GET-ASPECT-RATIO)
(SET-LINE-STYLE
line-style user-pattern thickness
)
(GET-LINE-SETTINGS)
(MOVE-TO
point
)
(LINE-TO
point
)
(MOVE-REL
distances
)
(LINE-REL
distances
)
Filling
(FLOOD-FILL
start-point stop-color
)
(BAR
upper-left-point lower-right-point
)
(BAR-3D
upper-left-point lower-right-point depth top?
)
(FILL-POLY
list-of-points
)
(FILL-ELLIPSE
center-point distances
)
(PIE-SLICE
center-point start-angle end-angle radius
)
(SECTOR
center-point start-angle end-angle distances
)
(SET-FILL-STYLE
fill-style color
)
(SET-FILL-PATTERN
fill-pattern color
)
(GET-FILL-SETTINGS)
(GET-FILL-PATTERN)
Bitmapping
(CLEAR-DEVICE)
(PUT-PIXEL
point color
)
(GET-PIXEL
point
)
(GET-IMAGE
upper-left-point lower-right-point
)
(PUT-IMAGE
new-upper-left-point image-string put-mode
)
(IMAGE-SIZE
upper-left-point lower-right-point
)
(SET-VIEWPORT
upper-left-point lower-right-point clip?
)
(CLEAR-VIEWPORT)
(GET-VIEW-SETTINGS)
(SET-ACTIVE-PAGE
page
)
(SET-VISUAL-PAGE
page
)
Writing text
(OUT-TEXT-XY
start-point text-string
)
(OUT-TEXT
text-string
)
(SET-TEXT-STYLE
font direction size
)
(SET-TEXT-JUSTIFY
horiz-just vert-just
)
(GET-TEXT-SETTINGS)
(SET-USER-CHAR-SIZE
x-ratio y-ratio
)
(TEXT-SIZE
text-string
)
Using Color
(SET-COLOR
color
)
(SET-BK-COLOR
color
)
(GET-COLOR)
(GET-BK-COLOR)
(GET-MAX-COLOR)
(SET-PALETTE
entry color
)
(SET-RGB-PALETTE
entry red green blue
)
(SET-ALL-PALETTE
color-list
)
(GET-PALETTE)
(GET-DEFAULT-PALETTE)
(GET-PALETTE-SIZE)
Miscellaneous queries
(GET-MAX-XY)
(GET-XY)
(GET-DRIVER-NAME)
(GET-MODE-NAME
mode
)
(GET-MAX-MODE)
(GRAPH-ERROR-MSG
error-id
)
(GRAPH-RESULT)