36 lines
58 KiB
Plaintext
36 lines
58 KiB
Plaintext
1
|
||
|
||
Medley for the Novice, Release 2.0
|
||
1
|
||
|
||
Medley for the Novice, Release 2.0
|
||
15. DISPLAYSTREAMS
|
||
1
|
||
|
||
15. DISPLAYSTREAMS
|
||
1
|
||
|
||
|
||
"15"15. DISPLAYSTREAMS
|
||
6
|
||
|
||
|
||
A displaystream(DISPLAYSTREAM NIL Displaystream NIL NIL 1) is a generaJized "place to display". They determine exactly what is displayed where. One example of a displaystream is a window. Windows are the only displaystreams that will be used in this chapter. If you want to draw on a bitmap that is not a window, other than with BITBLT, or want to use other types of displaystreams, please refer to Chapter 27 in the IRM.
|
||
|
||
This chapter explains functions for drawing on displaystreams: DRAWLINE, DRAWTO, DRAWCIRCLE., and FILLCIRCLE. In addition, functions for locating and changIng your curreAt position in the displaystream are covered: DSPXPOSITION, DSPYPOSITION, and MOVETO.
|
||
Drawing on a Displaystream
|
||
1
|
||
|
||
|
||
The examples belowshow you how the functions for drawing on a display stream work. First, create a window. Windows are displaystreams, and the one you create are used for the examples in this chapter. Type:
|
||
(SETQ EXAMPLE.WINDOW (CREATEW))
|
||
DRAWLlNE
|
||
|
||
DRAWLINE(DRAWLINE (Function) NIL NIL NIL 1) draws a line in a displaystream. For example, type:
|
||
(DRAWLINE 10 15 100 150 5 'INVERT EXAMPLE.WINDOW)
|
||
The results should look like Figure 15-1:
|
||
|