Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ line_width(3G) — HP-UX ANSI C A.10.11

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 line_width ( fildes, width, mode );
int fildes, mode;
float width;

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

FORTRAN77 Syntax:

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

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

Pascal Syntax:

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

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

DESCRIPTION

Input Parameters

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

width 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  —  November 03, 1994

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