|
|
1.1 root 1: .ds ZZ DEVELOPMENT PACKAGE
2: .TH SEGMENT 3R "630 MTG"
3: .XE "segment()"
4: .SH NAME
5: segment \- draw a line segment in a Bitmap
6: .SH SYNOPSIS
7: .B #include <dmd.h>
8: .sp
9: .B void segment (b, p, q, f)
10: .br
11: .B Bitmap \(**b;
12: .br
13: .B Point p, q;
14: .br
15: .B Code f;
16: .SH DESCRIPTION
17: The
18: .I segment
19: utility
20: draws a line segment in Bitmap
21: .I b
22: from Point
23: .I p
24: to Point
25: .I q
26: with function Code
27: .IR f .
28: .PP
29: Like all the other graphics operations,
30: .I segment
31: clips the line so that only the portion of the line intersecting the
32: Bitmap is displayed.
33: .SH EXAMPLE
34: The following call simply draws a line connecting a window's
35: origin Point to its corner Point (a diagonal line from the upper
36: left corner to the lower right corner of the window).
37: .PP
38: .RS 3
39: .nf
40: .ft CM
41: #include <dmd.h>
42:
43: connectcorners()
44: {
45:
46: segment (&display, Drect.origin,
47: Drect.corner, F_XOR);
48:
49: }
50:
51: \fR
52: .fi
53: .RE
54: .SH SEE ALSO
55: jsegment(3R).
56: .RE
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.