11.01.2015 Views

CLIM 2 User Guide

CLIM 2 User Guide

CLIM 2 User Guide

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

3.4 Medium-level drawing functions in <strong>CLIM</strong><br />

The medium-level drawing functions are the lowest level, portable functions for doing graphical output.<br />

They bypass all other high-level facilities, including output recording. They take no drawing options<br />

because these are extracted from the medium. You should use these when performance is the most important.<br />

medium-draw-point*<br />

Arguments: medium x y<br />

[Generic function]<br />

■ Draws a point on the medium medium. The point is drawn at (x,y), transformed by the medium's<br />

current transformation. The ink, clipping region, and line style are gotten from the medium.<br />

medium-draw-points*<br />

[Generic function]<br />

Arguments: medium position-seq<br />

Draws a set of points on the medium medium. position-seq is a sequence of coordinate pairs,<br />

which are real numbers. It is an error if position-seq does not contain an even number of elements.<br />

The coordinates in position-seq are transformed by the medium's current transformation. The ink,<br />

clipping region, and line style are gotten from the medium.<br />

medium-draw-line*<br />

Arguments: medium x1 y1 x2 y2<br />

[Generic function]<br />

■ Draws a line on the medium medium. The line is drawn from (x1,y1) to (x2,y2), with the start<br />

and end positions transformed by the medium's current transformation. The ink, clipping region, and<br />

line style are gotten from the medium.<br />

medium-draw-lines*<br />

Arguments: medium position-seq<br />

[Generic function]<br />

■ Draws a set of disconnected lines on the medium medium. position-seq is a sequence of<br />

coordinate pairs, which are real numbers. It is an error if position-seq does not contain an even<br />

number of elements. The coordinates in position-seq are transformed by the medium's current<br />

transformation. The ink, clipping region, and line style are gotten from the medium.<br />

medium-draw-rectangle*<br />

Arguments: medium x1 y1 x2 y2 filled<br />

[Generic function]<br />

■ Draws a rectangle on the medium medium. The corners of the rectangle are at (x1,y1) and<br />

(x2,y2), with the corner positions transformed by the medium's current transformation. If filled<br />

is t, the rectangle is filled, otherwise it is not. The ink, clipping region, and line style are gotten from<br />

the medium.<br />

medium-copy-area<br />

[Generic function]<br />

Arguments: from-medium from-x from-y width height to-medium to-x to-y<br />

&optional (boole-fun boole-1)<br />

■ Copies the pixels from from-medium starting at the position specified by (from-x,from-y)<br />

to the position (to-x,to-y) onto-medium. A rectangle whose width and height is specified by<br />

width and height is copied. from-x, from-y, to-x, and to-y are specified in user coordinates.<br />

(If medium is a sheet or a stream, then from-x and from-y are transformed by the user<br />

transformation.)<br />

38 <strong>CLIM</strong> 2.2 <strong>User</strong> <strong>Guide</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!