Manual Page Result
0
Command: mbits | Section: 6 | Source: UNIX v10 | File: mbits.6
MBITS(6) Games Manual MBITS(6)
NAME
mbits - macros to typeset bitmaps
SYNOPSIS
troff [ option ... ] -mbits [ option ... ] file ...
DESCRIPTION
These macros are used to typeset bitmaps. They are compatible with
other troff macro packages, so that bitmap figures may be included in
documents.
.BM f Set the format for subsequent .BM requests to f. The de-
fault is for blitblt(9.1) output. The other possibility
is for faces and large icons in ASCII format.
.BM f s Insert the bitmap from file f; each pixel will be s basic
units square. The bitmap origin is placed at the current
point, which is left unchanged.
.BM f s dX dY Set the number registers dX and dY to the width and
height (in basic units) of the bitmap in file f, assuming
pixel size s. This form may be used to calculate posi-
tioning.
EXAMPLES
This sequence centers the bitmap and spaces past it to continue with
the text:
.BM i
.BM /n/face/48x48x1/pjw 6 dX dY
.sp
.in (\n(.lu-\n(dXu)/2u
.BM /n/face/48x48x1/pjw 6
.in
.sp \n(dYu
FILES
SEE ALSO
blitblt(9.1), troff(1), bitfile(9.5), ms(6)
BUGS
At time of writing, mbits does not work with PostScript output devices.
See mpictures(6) for an alternative.
.BM does not work inside a diversion.
The concept of `pixel size' varies among typesetting devices.
MBITS(6)