File:  [Research Unix] / researchv10dc / 630 / man / src / p_man / man3 / segment.3r
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 17:21:34 2018 UTC (8 years, 1 month ago) by root
Branches: belllabs, MAIN
CVS tags: researchv10, HEAD
researchv10 Dan Cross

.ds ZZ DEVELOPMENT PACKAGE
.TH SEGMENT 3R "630 MTG"
.XE "segment()"
.SH NAME
segment \- draw a line segment in a Bitmap
.SH SYNOPSIS
.B #include <dmd.h>
.sp
.B void segment (b, p, q, f) 
.br
.B Bitmap \(**b;
.br
.B Point p, q;
.br
.B Code f;
.SH DESCRIPTION
The
.I segment
utility
draws a line segment in Bitmap
.I b
from Point
.I p
to Point
.I q
with function Code
.IR f .
.PP
Like all the other graphics operations,
.I segment
clips the line so that only the portion of the line intersecting the
Bitmap is displayed.
.SH EXAMPLE
The following call simply draws a line connecting a window's
origin Point to its corner Point (a diagonal line from the upper
left corner to the lower right corner of the window).
.PP
.RS 3
.nf
.ft CM
#include <dmd.h>

connectcorners()
{

	segment (&display, Drect.origin,
 	       Drect.corner, F_XOR);

}

\fR
.fi
.RE
.SH SEE ALSO
jsegment(3R).
.RE

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.