Plan 9 from Bell Labs’s /usr/web/sources/contrib/pac/sys/doc/netpbm/ms/ppmtoacad.ms

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


.TL
Ppmtoacad User Manual
.SH 1
ppmtoacad
.LP
Updated: 10 October 1991
.br
Table Of Contents
.SH 2
NAME
.LP
ppmtoacad - convert PPM to Autocad database or slide
.SH 2
SYNOPSIS
.LP
\fBppmtoacad\fR
[\fB-dxb\fR]
[\fB-poly\fR]
[\fB-background\fR \fIcolor\fR]
[\fB-white\fR]
[\fB-aspect\fR \fIratio\fR]
[\fB-8\fR]
[\fIppmfile\fR]
.LP
You may abbreviate any option to its shortest unique prefix.
.SH 2
DESCRIPTION
.LP
.LP
This program is part of Netpbm.
.LP
\fBppmtoacad\fR reads a PPM image as input and produces an
Autocad® slide file or binary database import (.dxb) file as
output.  If you don't specify \fIppmfile\fR,
\fBppmtoacad\fR takes the input from Standard Input.
.LP
(Typographical note: the name of Autocad is often rendered as
AutoCAD.  Netpbm documentation uses standard American typography, wherein
that is not a valid form of capitalization).
.SH 2
OPTIONS
.LP
.RS
.IP "\fB-dxb\fR"
\fBppmtoacad\fR writes an Autocad binary database import (.dxb)
file.  You read this file with the DXBIN command and, once loaded, it
becomes part of the Autocad geometrical database, so you can view and
edit it like any other object.  Each sequence of identical pixels
becomes a separate object in the database; this can result in very
large Autocad drawing files.  However, if you want to trace over a
bitmap, it lets you zoom and pan around the bitmap as you wish.
.IP "\fB-poly\fR"
If you don't specify the \fB-dxb\fR option, \fBppmtoacad\fR
generates an Autocad slide file.  Normally each row of pixels is
represented by an Autocad line entity.  If you specify \fB-poly\fR,
\fBppmtoacad\fR renders the pixels as filled polygons.  If you view
the slide on a display with higher resolution than the source image,
this will cause the pixels to expand instead of appearing as discrete
lines against the screen background color.  Regrettably, this
representation yields slide files which occupy more storage space and
take longer to display.
.IP "\fB-background\fR \fIcolor\fR"
Most Autocad display drivers can be configured to use any
available color as the screen background.  Some users prefer a black
screen background, others white, while splinter groups advocate burnt
ocher, tawny puce, and shocking gray.  Discarding pixels whose closest
Autocad color representation is equal to the background color can
substantially reduce the size of the Autocad database or slide file
needed to represent a bitmap.  If you don't specify
\fB-background\fR, \fBppmtoacad\fR assumes the screen background
color to be black.  You may specify any Autocad color number as the
screen background; \fBppmtoacad\fR assumes color numbers to specify
the hues defined in the standard Autocad 256 color palette.
.IP "\fB-white\fR"
Since many Autocad users choose a white screen background, this
option is provided as a short-cut.  Specifying \fB-white\fR is
identical in effect to \fB-background 7\fR.
.IP "\fB-aspect\fR \fIratio\fR"
If the source image had non-square pixels (which means it is not
standard PPM), specify the ratio of the pixel width to pixel height as
\fIratio\fR.  \fBppmtoacad\fR will correct the resulting slide or
.dxb file so that pixels on the Autocad screen will be square.  For
example, to correct an image made for a 320x200 VGA/MCGA screen,
specify \fB-aspect 0.8333\fR.
.IP "\fB-8\fR"
Restricts the colors in the output file to the 8 RGB shades.
.RE
.SH 2
RESTRICTIONS
.LP
.LP
Autocad has a fixed palette of 256 colors, distributed along the
hue, lightness, and saturation axes.  So it may poorly render images
which contain many nearly-identical colors, or colors not closely
approximated by Autocad's palette.
.LP
\fBppmtoacad\fR works best if the system displaying its output can
display the full 256 color Autocad palette.  Monochrome, 8 color, and
16 color configurations will produce less than optimal results.
.LP
When creating a .dxb file or a slide file with the \fB-poly\fR
option, \fBppmtoacad\fR finds both vertical and horizontal runs of
identical pixels and consolidates them into rectangular regions to
reduce the size of the output file.  This is effective for images with
large areas of constant color but it's no substitute for true raster
to vector conversion.  In particular, this process does not optimize
thin diagonal lines at all.
.LP
Output files can be huge.
.SH 2
SEE ALSO
.LP
.LP
Autocad Reference Manual: \fISlide File Format\fR and \fIBinary
Drawing Interchange (DXB) Files\fR, \fBppm\fR
.SH 2
AUTHOR
.LP
.DS L
John Walker
Autodesk SA
Avenue des Champs-Montants 14b
CH-2074 MARIN
Suisse/Schweiz/Svizzera/Svizra/Switzerland
    \fBUsenet:\fRkelvin@Autodesk.com
    \fBFax:\fR038/33 88 15
    \fBVoice:\fR038/33 76 33
.DE
.LP
Permission to use, copy, modify, and distribute this software and
its documentation for any purpose and without fee is hereby granted,
without any conditions or restrictions.  This software is provided
"as is" without express or implied warranty.
.LP
Autocad and Autodesk are registered trademarks of Autodesk, Inc.
.br
\l'5i'
.SH 2
Table Of Contents
.LP
.IP \(bu
NAME
.IP \(bu
SYNOPSIS
.IP \(bu
DESCRIPTION
.IP \(bu
OPTIONS
.IP \(bu
LIMITATIONS
.IP \(bu
SEE ALSO
.IP \(bu
AUTHOR
.LP

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to webmaster@9p.io.