221 lines
5.8 KiB
HTML
221 lines
5.8 KiB
HTML
|
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
<HTML><HEAD><TITLE>Man page of ppmtoacad</TITLE>
|
|
</HEAD><BODY>
|
|
<H1>ppmtoacad</H1>
|
|
Section: User Commands (1)<BR>Updated: 10 October 1991<BR><A HREF="#index">Index</A>
|
|
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
|
|
|
|
<A NAME="ixAAB"></A>
|
|
<A NAME="ixAAC"></A>
|
|
<A NAME="lbAB"> </A>
|
|
<H2>NAME</H2>
|
|
|
|
ppmtoacad - convert portable pixmap to AutoCAD database or slide
|
|
<A NAME="lbAC"> </A>
|
|
<H2>SYNOPSIS</H2>
|
|
|
|
|
|
<B>ppmtoacad</B>
|
|
|
|
|
|
[<B>-dxb</B>]
|
|
|
|
[<B>-poly</B>]
|
|
|
|
[<B>-background</B>
|
|
|
|
<I>colour</I>]
|
|
|
|
[<B>-white</B>]
|
|
|
|
[<B>-aspect</B>
|
|
|
|
<I>ratio</I>]
|
|
|
|
[<B>-8</B>]
|
|
|
|
[<I>ppmfile</I>]
|
|
|
|
|
|
|
|
<A NAME="lbAD"> </A>
|
|
<H2>DESCRIPTION</H2>
|
|
|
|
Reads a portable pixmap as input. Produces an AutoCAD® slide file or
|
|
binary database import (.dxb) file as output.
|
|
If no
|
|
<I>ppmfile</I>
|
|
|
|
is specified, input is read from standard input.
|
|
<A NAME="lbAE"> </A>
|
|
<H2>OPTIONS</H2>
|
|
|
|
<DL COMPACT>
|
|
<DT id="1"><B>-dxb</B>
|
|
|
|
<DD>
|
|
An AutoCAD binary database import (.dxb) file is written. This file
|
|
is read with the DXBIN command and, once loaded, becomes part of
|
|
the AutoCAD geometrical database and can be viewed and edited 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.
|
|
<DT id="2"><B>-poly</B>
|
|
|
|
<DD>
|
|
If the
|
|
<B>-dxb</B>
|
|
|
|
option is not specified, the output of
|
|
<B>ppmtoacad</B>
|
|
|
|
is an AutoCAD slide file. Normally each row of pixels is
|
|
represented by an AutoCAD line entity. If
|
|
<B>-poly</B>
|
|
|
|
is selected, the pixels are rendered as filled polygons. If the
|
|
slide is viewed on a display with higher resolution than the source
|
|
pixmap, this will cause the pixels to expand instead of appearing as
|
|
discrete lines against the screen background colour. Regrettably,
|
|
this representation yields slide files which occupy more disc space
|
|
and take longer to display.
|
|
<DT id="3"><B>-background</B><I> colour</I>
|
|
|
|
<DD>
|
|
Most AutoCAD display drivers can be configured to use any available
|
|
colour as the screen background. Some users perfer a black screen
|
|
background, others white, while splinter groups advocate burnt ocher,
|
|
tawny puce, and shocking grey. Discarding pixels whose closest
|
|
AutoCAD colour representation is equal to the background colour can
|
|
substantially reduce the size of the AutoCAD database or slide file
|
|
needed to represent a bitmap. If no
|
|
<B>-background</B>
|
|
|
|
colour is specified, the screen background colour is assumed to be
|
|
black. Any AutoCAD colour number may be specified as the screen
|
|
background; colour numbers are assumed to specify the hues defined
|
|
in the standard AutoCAD 256 colour palette.
|
|
<DT id="4"><B>-white</B>
|
|
|
|
<DD>
|
|
Since many AutoCAD users choose a white screen background, this option
|
|
is provided as a short-cut. Specifying
|
|
<B>-white</B>
|
|
|
|
is identical in effect to
|
|
<B>-background 7</B>.
|
|
|
|
<DT id="5"><B>-aspect</B><I> ratio</I>
|
|
|
|
<DD>
|
|
If the source pixmap had non-square pixels, the ratio of the pixel
|
|
width to pixel height should be specified as
|
|
<I>ratio</I>.
|
|
|
|
The resulting slide or .dxb file will be corrected so that pixels on
|
|
the AutoCAD screen will be square. For example, to correct an image made
|
|
for a 320x200 VGA/MCGA screen, specify
|
|
<B>-aspect 0.8333</B>.
|
|
|
|
<DT id="6"><B>-8</B>
|
|
|
|
<DD>
|
|
Restricts the colours in the output file to the 8 RGB shades.
|
|
</DL>
|
|
<P>
|
|
|
|
All flags can be abbreviated to their shortest unique prefix.
|
|
<A NAME="lbAF"> </A>
|
|
<H2>BUGS</H2>
|
|
|
|
AutoCAD has a fixed palette of 256 colours, distributed along the hue,
|
|
lightness, and saturation axes. Pixmaps which contain many
|
|
nearly-identical colours, or colours not closely approximated by
|
|
AutoCAD's palette, may be poorly rendered.
|
|
<P>
|
|
|
|
<B>ppmtoacad</B>
|
|
|
|
works best if the system displaying its output supports the full 256
|
|
colour AutoCAD palette. Monochrome, 8 colour, and 16 colour
|
|
configurations will produce less than optimal results.
|
|
<P>
|
|
|
|
When creating a .dxb file or a slide file with the
|
|
<B>-poly</B>
|
|
|
|
option,
|
|
<B>ppmtoacad</B>
|
|
|
|
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 colour but it's no substitute for true raster to vector
|
|
conversion. In particular, thin diagonal lines are not optimised at
|
|
all by this process.
|
|
<P>
|
|
|
|
Output files can be huge.
|
|
<A NAME="lbAG"> </A>
|
|
<H2>SEE ALSO</H2>
|
|
|
|
AutoCAD Reference Manual:
|
|
<I>Slide File Format</I>
|
|
|
|
and
|
|
<I>Binary Drawing Interchange (DXB) Files</I>,
|
|
|
|
<B><A HREF="/cgi-bin/man/man2html?5+ppm">ppm</A></B>(5)
|
|
|
|
<A NAME="lbAH"> </A>
|
|
<H2>AUTHOR</H2>
|
|
|
|
<DL COMPACT><DT id="7"><DD>
|
|
<PRE>
|
|
John Walker
|
|
Autodesk SA
|
|
Avenue des Champs-Montants 14b
|
|
CH-2074 MARIN
|
|
Suisse/Schweiz/Svizzera/Svizra/Switzerland
|
|
<DL COMPACT>
|
|
<DT id="8">Usenet:<DD><A HREF="mailto:kelvin@Autodesk.com">kelvin@Autodesk.com</A>
|
|
<DT id="9">Fax:<DD>038/33 88 15
|
|
<DT id="10">Voice:<DD>038/33 76 33
|
|
</PRE>
|
|
|
|
</DL>
|
|
</DL>
|
|
|
|
|
|
<P>
|
|
|
|
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.
|
|
<P>
|
|
|
|
AutoCAD and Autodesk are registered trademarks of Autodesk, Inc.
|
|
<P>
|
|
|
|
<HR>
|
|
<A NAME="index"> </A><H2>Index</H2>
|
|
<DL>
|
|
<DT id="11"><A HREF="#lbAB">NAME</A><DD>
|
|
<DT id="12"><A HREF="#lbAC">SYNOPSIS</A><DD>
|
|
<DT id="13"><A HREF="#lbAD">DESCRIPTION</A><DD>
|
|
<DT id="14"><A HREF="#lbAE">OPTIONS</A><DD>
|
|
<DT id="15"><A HREF="#lbAF">BUGS</A><DD>
|
|
<DT id="16"><A HREF="#lbAG">SEE ALSO</A><DD>
|
|
<DT id="17"><A HREF="#lbAH">AUTHOR</A><DD>
|
|
</DL>
|
|
<HR>
|
|
This document was created by
|
|
<A HREF="/cgi-bin/man/man2html">man2html</A>,
|
|
using the manual pages.<BR>
|
|
Time: 00:05:25 GMT, March 31, 2021
|
|
</BODY>
|
|
</HTML>
|