Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

draw(3G)

line_endpoint(3G)

polyline(3G)

line_width(3G)

NAME

line_width, intline_width − set line width

SYNOPSIS

C Syntax:

void intline_width(fildes,width,mode);
int fildes,width,mode;

void line_width(fildes,width,mode);
int fildes,mode;
float width;

FORTRAN77 Syntax:

subroutine intline_width(fildes,width,mode)
integer*4 fildes,width,mode

subroutine line_width(fildes,width,mode)
integer*4 fildes,mode
real width

Pascal Syntax:

procedure intline_width(fildes,width,mode:integer);

procedure line_width(fildes:integer;width:real;mode:integer);

DESCRIPTION

Input Parameters

fildes integer file descriptor returned by gopen when an I/O path to a graphics device is opened. 

width is width of a line in units specified by mode. 

mode a value specifying the units of width:

MC_UNITS = modeling coordinates
VDC_UNITS = virtual device coordinates

Discussion

line_width and intline_width set the line width for subsequent polyline2d, intpolyline2d, draw2d, and intdraw2d calls. 

If mode is MC_UNITS, width should be given in modeling coordinate units. 

If mode is VDC_UNITS, width should be given in virtual device coordinate units. 

Line width is measured by aligning a wide line with its ideal default-width defining line such that the distance between the defining line and either edge is half the line width. 

Integer operations are only available when using the INT_XFORM gopen mode. When in INT_XFORM mode, floating point operations are not available for that file descriptor. Floating point operations are the default, or can be specified explicitly with FLOAT_XFORM mode.  Device cannot be gopen ed with the THREE_D mode for line_width to work; it is intended for 2-D usage only.  For a list of integer operations, floating point operations, and common operations, see the starbase(3G) manual page. 

Note: Line_type does not apply to wide lines (width greater than zero). It is ignored.  When the mapping of the VDC space to device is anisotropic because of a vdc_extent call, the rendered width of a line will change with the direction of the line segment. 

DEFAULTS

width = 0.0; 1 pixel width. 

SEE ALSO

Starbase Reference: draw(3G), line_endpoint(3G), polyline(3G). 
Starbase Graphics Techniques. 

 

Hewlett-Packard Company  —  HP-UX Release 9.0: August 1992

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026