⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 0426-0428.html

📁 linux-unix130.linux.and.unix.ebooks130 linux and unix ebookslinuxLearning Linux - Collection of 12 E
💻 HTML
字号:
<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="0423-0425.html">Previous</A> | <a href="../ewtoc.html">Table of Contents</A> | <a href="0429-0431.html">Next</A></CENTER></P>







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





<P><B>

Printing

</B></P>

<P>Generally, sixel files must reach the printer unfiltered. Use the

lpr -x option or cat filename &gt; /dev/tty0?.

</P>



<P><B>

BUGS

</B>

</P>

<P>Upon rescaling, truncation of the least significant bits of RGB values may result in poor color conversion. If the

original PPM maxval was greater than 100, rescaling also reduces the image depth. While the actual RGB values from the

ppm file are more or less retained, the color palette of the LJ250 may not match the colors on your screen. This seems to be a

printer limitation.

</P>



<P><B>

SEE ALSO

</B>

</P>

<!-- CODE SNIP //-->

<PRE>

ppm(5)

</PRE>

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



<P><B>

AUTHOR

</B>

</P>

<P>Copyright&quot; 1991 by Rick Vinci.

</P>



<P>26 April 1991

</P>



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

ppmtotga

</A></H3>

<P>ppmtotga&#151;Convert portable pixmap into a TrueVision Targa file

</P>



<P><B>

SYNOPSIS

</B>

</P>

<!-- CODE SNIP //-->

<PRE>

ppmtotga [-mono|-cmap|-rgb][-norle][ppmfile]

</PRE>

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



<P><B>

DESCRIPTION

</B>

</P>

<P>ppmtotga reads a portable pixmap as input and produces a TrueVision Targa file as output.

</P>



<P><B>

OPTIONS

</B>

</P>

<TABLE>



<TR><TD>

-mono

</TD><TD>

Forces Targa file to be of type 8-bit monochrome. Input must be a portable bitmap or a portable graymap.

</TD></TR><TR><TD>

-cmap

</TD><TD>

Forces Targa file to be of type 24-bit colormapped. Input must be a portable bitmap, a portable graymap, or

a portable pixmap containing no more than 256 distinct colors.

</TD></TR><TR><TD>

-rgb

</TD><TD>

Forces Targa file to be of type 24-bit unmapped color.

</TD></TR><TR><TD>

-norle

</TD><TD>

Disables run-length encoding, in case you have a Targa reader that can't read run-length encoded files.

</TD></TR></TABLE>



<P>All flags can be abbreviated to their shortest unique prefix. If no file type is specified, the most highly constained

compatible type is used, where monochrome is more constained than colormapped, which is in turn more constained than unmapped.

</P>



<P><B>

BUGS

</B>

</P>

<P>Does not support all possible Targa file types. Should really be in

pnm, not ppm.

</P>



<P><B>

SEE ALSO

</B>

</P>

<!-- CODE SNIP //-->

<PRE>

tgatoppm(1), ppm(5)

</PRE>

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



<P><B>

AUTHOR

</B>

</P>

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

</P>

<P>28 October 1991

</P>



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





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

ppmtouil

</A></H3>

<P>ppmtouil&#151;Convert a portable pixmap into a Motif UIL icon file

</P>



<P><B>

SYNOPSIS

</B>

</P>

<!-- CODE SNIP //-->

<PRE>

ppmtouil [-name uilname][ppmfile]

</PRE>

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



<P><B>

DESCRIPTION

</B>

</P>

<P>ppmtouil reads a portable pixmap as input and produces a Motif UIL icon file as output.

</P>

<P>If the program was compiled with an rgb database specified, and an RGB value from the

ppm input matches an RGB value from the database, then the corresponding color name mnemonic is printed in the UIL's colormap. If no

rgb database was compiled in, or if the RGB values don't match, then the color will be printed with the

#RGB, #RRGGBB, #RRRGGGBBB, or #RRRRGGGGBBBB hexadecimal format.

</P>



<P><B>

OPTIONS

</B>

</P>

<TBL>

<COLS=2>

<C>

-name

<C>

Allows you to specify the prefix string that is printed in the resulting UIL output. If not specified, it will default

to the filename (without extension) of the ppmfile argument. If

-name is not specified and no ppmfile is specified (that is, piped input), the prefix string will default to the string

&quot;noname&quot;.

</P>



<P>All flags can be abbreviated to their shortest unique prefix.

</P>



<P><B>

SEE ALSO

</B>

</P>

<!-- CODE SNIP //-->

<PRE>

ppm(5)

</PRE>

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



<P><B>

AUTHOR

</B>

</P>

<P>Converted by Jef Poskanzer from ppmtoxpm.c, which is

copyright&quot; 1990 by Mark W. Snitily.

</P>



<P>31 August 1990

</P>



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

ppmtoxpm

</A></H3>

<P>ppmtoxpm&#151;Convert a portable pixmap into an X11 pixmap

</P>



<P><B>

SYNOPSIS

</B>

</P>

<!-- CODE SNIP //-->

<PRE>

ppmtoxpm [-name &lt;xpmname&gt;] [-rgb &lt;rgb-textfile&gt;][&lt;ppmfile&gt;]

</PRE>

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



<P><B>

DESCRIPTION

</B>

</P>

<P>ppmtoxpm reads a portable pixmap as input and produces an X11 pixmap (version 3) as output that can be loaded directly

by the XPM library.

</P>

<P>The -name option allows you to specify the prefix string which is printed in the resulting XPM output. If not specified, it

will default to the filename (without extension) of the

ppmfile argument. If -name is not specified and

ppmfile is not specified (that is, piped input), the prefix string will default to the string

&quot;noname&quot;.

</P>

<P>The -rgb option allows you to specify an X11

rgb text file for the lookup of color name mnemonics. This RGB text file

is typically the /usr/lib/X11/rgb.txt of the MIT X11 distribution, but any file using the same format may be used.

When specified and an RGB value from the ppm input matches an RGB value from

the &lt;rgb-textfile&gt;, then the corresponding color name mnemonic is printed in the XPM's colormap. If

-rgb is not specified, or if the RGB values don't match, then

the color will be printed with the #RGB, #RRGGBB,

#RRRGGGBBB, or #RRRRGGGGBBBB hexadecimal format.

</P>



<P>All flags can be abbreviated to their shortest unique prefix.

</P>



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





<P>For example, to convert the file dot (found in

/usr/include/X11/bitmaps), from xbm to xpm, you could specify

</P>

<!-- CODE SNIP //-->

<PRE>

xbmtopbm dot | ppmtoxpm -name dot

</PRE>

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

<P>or, with an rgb text file (in the local directory)

</P>

<!-- CODE SNIP //-->

<PRE>

xbmtopbm dot | ppmtoxpm -name dot -rgb rgb.txt

</PRE>

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



<P><B>

BUGS

</B>

</P>

<P>An option to match the closest (rather than exact) color name mnemonic from the

rgb text would be a desirable enhancement.

</P>

<P>Truncation of the least significant bits of an RGB value may result in nonexact matches when performing color

name mnemonic lookups.

</P>



<P><B>

SEE ALSO

</B>

</P>

<!-- CODE SNIP //-->

<PRE>

ppm(5)

</PRE>

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

<P>XPM Manual by Arnaud Le Hors

(lehors@mirsa.inria.fr).

</P>



<P><B>

AUTHOR

</B>

</P>

<P>Copyright &quot; 1990 by Mark W. Snitily. This tool was developed for Schlumberger Technologies, ATE Division, and

with their permission is being made available to the public with the above copyright notice and permission notice.

</P>

<P>Upgraded to XPM2 by Paul Breslaw, Mecasoft SA, Zurich, Switzerland

(paul@mecazh.uu.ch); Thu, Nov 8, 16:01:17, 1990.

</P>

<P>Upgraded to XPM version 3 by Arnaud le Hors

(lehors@mirsa.inria.fr).

</P>

<P>9 April 1991

</P>



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

ppmtoyuv

</A></H3>

<P>ppmtoyuv&#151;Convert a portable pixmap into an Abekas YUV file

</P>



<P><B>

SYNOPSIS

</B>

</P>

<!-- CODE SNIP //-->

<PRE>

ppmtoyuv [ppmfile]

</PRE>

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



<P><B>

DESCRIPTION

</B>

</P>

<P>ppmtoyuv reads a portable pixmap as input and produces an Abekas YUV file as output.

</P>



<P><B>

SEE ALSO

</B>

</P>

<!-- CODE SNIP //-->

<PRE>

yuvtoppm(1), ppm(5)

</PRE>

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



<P><B>

AUTHOR

</B>

</P>

<P>Marc Boucher (&lt;marc@PostImage.COM&gt;), based on Example Conversion Program,

A60/A64 Digital Video Interface Manual, page 69.

Copyright&quot; 1991 by DHD Post Image Inc.

Copyright&quot; 1987 by Abekas Video Systems Inc.

</P>

<P>25 March 1991

</P>



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

ppmtoyuvsplit

</A></H3>

<P>ppmtoyuvsplit&#151;Convert a portable pixmap into three subsampled raw YUV files

</P>



<P><B>

SYNOPSIS

</B>

</P>

<!-- CODE SNIP //-->

<PRE>

ppmtoyuvsplit basename [ppmfile]

</PRE>

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









<P><CENTER>

<a href="0423-0425.html">Previous</A> | <a href="../ewtoc.html">Table of Contents</A> | <a href="0429-0431.html">Next</A></CENTER></P>







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

<!-- begin footer information -->







</body></html>

⌨️ 快捷键说明

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