0400-0402.html

来自「linux-unix130.linux.and.unix.ebooks130 l」· HTML 代码 · 共 394 行

HTML
394
字号
<HTML>



<HEAD>

<TITLE>Linux Complete Command Reference:User Commands:EarthWeb Inc.-</TITLE>

</HEAD>

<META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW">
<SCRIPT>
<!--
function displayWindow(url, width, height) {
        var Win = window.open(url,"displayWindow",'width=' + width +
',height=' + height + ',resizable=1,scrollbars=yes');
}
//-->
</SCRIPT>
</HEAD>

 -->




<!-- ISBN=0672311046 //-->

<!-- TITLE=Linux Complete Command Reference//-->

<!-- AUTHOR=Red Hat//-->

<!-- PUBLISHER=Macmillan Computer Publishing//-->

<!-- IMPRINT=Sams//-->

<!-- CHAPTER=01 //-->

<!-- PAGES=0001-0736 //-->

<!-- UNASSIGNED1 //-->

<!-- UNASSIGNED2 //-->



<P><CENTER>

<a href="0397-0399.html">Previous</A> | <a href="../ewtoc.html">Table of Contents</A> | <a href="0403-0405.html">Next</A></CENTER></P>







<A NAME="PAGENUM-400"><P>Page 400</P></A>





<P>

output file. By default, the output file has the number of rows per strip set to a value that will ensure each strip is no

more than eight kilobytes long.

</P>



<P><B>

BUGS

</B>

</P>

<P>This program is not self-contained. To use it you must fetch the TIFF Software package listed in the

OTHER.SYSTEMS file and configure PBMPLUS to use

libtiff. See PBM-PLUS's Makefile for details on this configuration.

</P>



<P><B>

SEE ALSO

</B>

</P>

<!-- CODE SNIP //-->

<PRE>

tifftopnm(1), pnm(5)

</PRE>

<!-- END CODE SNIP //-->



<P><B>

AUTHOR

</B>

</P>

<P>Derived by Jef Poskanzer from ras2tiff.c, which is

Copyright&quot; 1990 by Sun Microsystems, Inc. Author: Patrick

J. Naughton (naughton@wind.sun.com).

</P>

<P>13 January 1991

</P>



<H3><A NAME="ch01_ 291">

pnmtoxwd

</A></H3>

<P>pnmtoxwd&#151;Convert a portable anymap into an X11 window dump

</P>



<P><B>

SYNOPSIS

</B>

</P>

<!-- CODE SNIP //-->

<PRE>

pnmtoxwd [-pseudodepth n][-directcolor][pnmfile]

</PRE>

<!-- END CODE SNIP //-->



<P><B>

DESCRIPTION

</B>

</P>

<P>pnmtoxwd reads a portable anymap as input and produces an X11 window dump as output. This window dump can

be displayed using the xwud tool.

</P>

<P>Normally, pnmtoxwd produces a StaticGray dump file for PBM and PGM files. For

ppm, it writes a PseudoColor dump file if there are up to 256 colors in the input, and a DirectColor dump file otherwise. The

-directcolor flag can be used to force a DirectColor dump. The

-pseudodepth flag can be used to change the depth of PseudoColor dumps from the default of 8

bits/256 colors.

</P>



<P><B>

SEE ALSO

</B>

</P>

<!-- CODE SNIP //-->

<PRE>xwdtopnm(1), pnm(5), xwud(1)

</PRE>

<!-- END CODE SNIP //-->



<P><B>

AUTHOR

</B>

</P>

<P>Copyright&quot; 1989, 1991 by Jef Poskanzer.

</P>



<P>24 September 1991

</P>



<H3><A NAME="ch01_ 292">

ppm3d

</A></H3>

<P>ppm3d&#151;Convert two portable pixmap into a red/blue 3D glasses pixmap

</P>



<P><B>

SYNOPSIS

</B>

</P>

<!-- CODE SNIP //-->

<PRE>

ppm3d leftppmfile rightppmfile [horizontal_offset]

</PRE>

<!-- END CODE SNIP //-->



<P><B>

DESCRIPTION

</B>

</P>

<P>ppm3d reads two portable pixmaps as input and produces a portable pixmap as output, with the images overlapping

by horizontal_offset pixels in blue/red format.

</P>



<P>horizontal_offset defaults to 30 pixels. Pixmaps

must be the same size.

</P>



<A NAME="PAGENUM-401"><P>Page 401</P></A>





<P><B>

See Also

</B></P>

<!-- CODE SNIP //-->

<PRE>

ppm(5)

</PRE>

<!-- END CODE SNIP //-->



<P><B>

AUTHOR

</B>

</P>

<P>Copyright &quot; 1993 by David K. Drum.

</P>



<P>2 November 1993

</P>



<H3><A NAME="ch01_ 293">

ppmbrighten

</A></H3>

<P>ppmbrighten&#151;Change an image's saturation and value from an HSV map

</P>



<P><B>

SYNOPSIS

</B>

</P>

<!-- CODE SNIP //-->

<PRE>

ppmbrighten [-n] [-s &lt;+- saturation&gt;] [-v &lt;+- value&gt;] &lt;ppmfile&gt;

</PRE>

<!-- END CODE SNIP //-->



<P><B>

DESCRIPTION

</B>

</P>

<P>ppmbrighten reads a portable pixmap as input, converts the image from RGB space to HSV space, and changes the value

by &lt;+- value&gt; as a percentage; the same with the saturation. Use

</P>



<!-- CODE SNIP //-->

<PRE>

ppmbrighten -v 100

</PRE>

<!-- END CODE SNIP //-->



<P>to add 100 percent to the value.

</P>



<P>The n option normalizes the value to exist between 0 and 1 (normalized).

</P>



<P><B>

SEE ALSO

</B>

</P>

<!-- CODE SNIP //-->

<PRE>pgmnorm(1), ppm(5)

</PRE>

<!-- END CODE SNIP //-->



<P><B>

AUTHOR

</B>

</P>

<P>Copyright&quot; 1990 by Brian Moffet.

Copyright&quot; 1989 by Jef Poskanzer.

</P>

<P>Permission to use, copy, modify, and distribute this software and its documentation for any purpose and without fee

is hereby granted, provided that the above copyright notice appear in all copies and that both that copyright notice and

this permission notice appear in supporting documentation. This software is provided &quot;as is&quot; without express or

implied warranty.

</P>



<P><B>

NOTES

</B>

</P>

<P>This program does not change the number of colors.

</P>



<P>20 November 1990

</P>



<H3><A NAME="ch01_ 294">

ppmchange

</A></H3>

<P>ppmchange&#151;Change all pixels of one color to another in a portable pixmap

</P>



<P><B>

SYNOPSIS

</B>

</P>

<!-- CODE SNIP //-->

<PRE>

ppmchange oldcolor newcolor [...] [ppmfile]

</PRE>

<!-- END CODE SNIP //-->



<P><B>

DESCRIPTION

</B>

</P>

<P>ppmchange reads a portable pixmap as input and changes all pixels of

oldcolor to newcolor, leaving all others unchanged.

Up to 256 colors may be replaced by specifying couples of colors on the command line.

</P>



<A NAME="PAGENUM-402"><P>Page 402</P></A>





<P>The colors can be specified in five ways:

</P>



<UL>

<LI>     A name, assuming that a pointer to an X11-style color names file was compiled in.

<LI>     An X11-style hexadecimal specifier:

rgb:r/g/b, where r, g, and b are each 1- to 4-digit hexadecimal numbers.

<LI>     An X11-style decimal specifier:

rgbi:r/g/b, where r, g, and b are floating-point numbers between 0 and 1.

<LI>     For backwards compatibility, an old-X11-style hexadecimal number:

#rgb, #rrggbb, #rrrgggbbb, or #rrrrggggbbbb.

<LI>     For backwards compatibility, a triplet of numbers separated by

commas: r,g,b, where r, g, and b are

floating-point numbers between 0 and 1. (This style was added before MIT came up with the similar

rgbi style.)

</UL>



<P><B>

SEE ALSO

</B>

</P>

<!-- CODE SNIP //-->

<PRE>

pgmtoppm(1), ppm(5)

</PRE>

<!-- END CODE SNIP //-->



<P><B>

AUTHOR

</B>

</P>

<P>Wilson H. Bent, Jr. (whb@usc.edu), with modifications by Alberto Accomazzi

(alberto@cfa.harvard.edu).

</P>



<P>3 December 1993

</P>



<H3><A NAME="ch01_ 295">

ppmdim

</A></H3>

<P>ppmdim&#151;Dim a portable pixmap down to total blackness

</P>



<P><B>

SYNOPSIS

</B>

</P>

<!-- CODE SNIP //-->

<PRE>

ppmdim dimfactor [ppmfile]

</PRE>

<!-- END CODE SNIP //-->



<P><B>

DESCRIPTION

</B>

</P>

<P>ppmdim reads a portable pixmap as input and diminishes its brightness by the specified

dimfactor down to total blackness. The dimfactor may be in the range from 0.0 (total blackness, deep night, nada, null, nothing) to 1.0 (original picture's

brightness).

</P>

<P>As pnmgamma does not do the brightness correction in the way I wanted it, I wrote this small program.

</P>

<P>ppmdim is similar to ppmbrighten, but not exactly the same.

</P>



<P><B>

SEE ALSO

</B>

</P>

<!-- CODE SNIP //-->

<PRE>

ppm(5), ppmflash(1), pnmgamma(1), ppmbrighten(1)

</PRE>

<!-- END CODE SNIP //-->



<P><B>

AUTHOR

</B>

</P>

<P>Copyright&quot; 1993 by Frank Neumann.

</P>



<P>16 November 1993

</P>



<H3><A NAME="ch01_ 296">

ppmdist

</A></H3>

<P>ppmdist&#151;Simplistic grayscale assignment for machine-generated color images

</P>



<P><B>

SYNOPSIS

</B>

</P>

<!-- CODE SNIP //-->

<PRE>

ppmdist [-intensity|-frequency][ppmfile]

</PRE>

<!-- END CODE SNIP //-->



<P><B>

DESCRIPTION

</B>

</P>

<P>ppmdist reads a portable pixmap as input and performs a simplistic grayscale assignment intended for use with grayscale

or bitmap printers.

</P>







<P><CENTER>

<a href="0397-0399.html">Previous</A> | <a href="../ewtoc.html">Table of Contents</A> | <a href="0403-0405.html">Next</A></CENTER></P>







</td>
</tr>
</table>

<!-- begin footer information -->







</body></html>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?