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

📄 0378-0380.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="0375-0377.html">Previous</A> | <a href="../ewtoc.html">Table of Contents</A> | <a href="0381-0384.html">Next</A></CENTER></P>







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





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

pgmtoppm

</A></H3>

<P>pgmtoppm&#151;Colorize a portable graymap into a portable pixmap

</P>



<P><B>

SYNOPSIS

</B>

</P>

<!-- CODE SNIP //-->

<PRE>

pgmtoppm colorspec [pgmfile]

pgmtoppm colorspec1-colorspec2 [pgmfile]

pgmtoppm -map mapfile [pgmfile]

</PRE>

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



<P><B>

DESCRIPTION

</B>

</P>

<P>pgmtoppm reads a portable graymap as input, colorizes it by multiplying the gray values by specified color or colors,

and produces a portable pixmap as output.

</P>



<P>If only one color is specified, black in the PGM file stays black and white in the PGM file turns into the specified color

in the PPM file. If two colors (separated by a hyphen) are specified, then black gets mapped to the first color and white

gets mapped to the second.

</P>



<P>The color 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>Also, the -map flag lets you specify an entire colormap to be used. The mapfile is just a PPM file; it can be any shape, all

that matters is the colors in it and their order. In this case, black gets mapped to the first color in the mapfile, and white

gets mapped to the last.

</P>



<P><B>

SEE ALSO

</B>

</P>

<!-- CODE SNIP //-->

<PRE>

rgb3toppm(1), ppmtopgm(1), ppmtorgb3(1), ppm(5),

pgm(5)

</PRE>

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



<P><B>

AUTHOR

</B>

</P>

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

</P>



<P>11 January 1991

</P>



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

pi1toppm

</A></H3>

<P>pi1toppm&#151;Convert an Atari Degas PI1 into a portable pixmap

</P>



<P><B>

SYNOPSIS

</B>

</P>

<!-- CODE SNIP //-->

<PRE>

pi1toppm [pi1file]

</PRE>

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



<P><B>

DESCRIPTION

</B>

</P>

<P>pi1toppm reads an Atari Degas PI1 file as input and produces a portable pixmap as output.

</P>



<P><B>

SEE ALSO

</B>

</P>

<!-- CODE SNIP //-->

<PRE>ppmtopi1(1), ppm(5), pi3topbm(1), pbmtopi3(1)

</PRE>

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



<P><B>

AUTHOR

</B>

</P>

<P>Copyright&quot; 1991 by Steve Belczyk

(seb3@gte.com) and Jef Poskanzer.

</P>



<P>19 July 1990

</P>



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





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

pi3topbm

</A></H3>

<P>pi3topbm&#151;Convert an Atari Degas PI3 file into a portable bitmap

</P>



<P><B>

SYNOPSIS

</B>

</P>

<!-- CODE SNIP //-->

<PRE>

pi3topbm [pi3file]

</PRE>

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



<P><B>

DESCRIPTION

</B>

</P>

<P>pi3topbm reads an Atari Degas PI3 file as input. Produces a portable bitmap as output.

</P>



<P><B>

SEE ALSO

</B>

</P>

<!-- CODE SNIP //-->

<PRE>

pbmtopi3(1), pbm(5), pi1toppm(1), ppmtopi1(1)

</PRE>

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



<P><B>

AUTHORS

</B>

</P>

<P>Copyright&quot; 1988 by David Beckemeyer

(bdt!david) and Diomidis D. Spinellis.

</P>



<P>11 March 1990

</P>



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

picttoppm

</A></H3>

<P>picttoppm&#151;Convert a Macintosh PICT file into a portable pixmap

</P>



<P><B>

SYNOPSIS

</B>

</P>

<!-- CODE SNIP //-->

<PRE>

picttoppm [-verbose][-fullres][-noheader][-quickdraw][-fontdirfile] [pictfile]

</PRE>

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



<P><B>

DESCRIPTION

</B>

</P>

<P>picttoppm reads a PICT file (version 1 or 2) and outputs a portable pixmap. Useful as the first step in converting a

scanned image to something that can be displayed on UNIX.

</P>



<P><B>

OPTIONS

</B>

</P>

<TABLE>



<TR><TD>

_fontdir file

</TD><TD>

Make the list of BDF fonts in

file available for use by pict-toppm when drawing text. For the format

of the fontdir file, see the &quot;fontdir File Format&quot; subsection.

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

_fullres

</TD><TD>

Force any images in the PICT file to be output with at least their full resolution. A PICT file may

indicate that a contained image is to be scaled down before output. This option forces images to retain their

sizes and prevent information loss. Use of this option disables all PICT operations except images.

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

_noheader

</TD><TD>

Do not skip the 512-byte header that is present on all PICT files. This is useful when you have PICT

data that was not stored in the data fork of a PICT file.

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

_quickdraw

</TD><TD>

Execute only pure quickdraw operations. In particular, turn off the interpretation of special

PostScript printer operations.

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

_verbose

</TD><TD>

Turns on verbose mode, which prints a whole bunch of information that only

picttoppm hackers really care about.

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



<P><B>

BUGS

</B>

</P>

<P>The PICT file format is a general drawing format.

picttoppm does not support all the drawing commands, but it does

have full support for any image commands and reasonable support for line, rectangle, polygon, and text drawing. It is useful

for converting scanned images and some drawing conversion.

</P>



<P>Memory is used very liberally with at least six bytes needed for every pixel. Large bitmap PICT files will likely run

your computer out of memory.

</P>



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





<P><B>

fontdir File Format

</B></P>

<P>picttoppm has a built-in default font and your local installer probably provided adequate extra fonts. You can point

picttoppm at more fonts that you specify in a font directory file. Each line in the file is either a comment line, which must begin with

#, or font information. The font information consists of four whitespace separated fields. The first is the font number,

the second is the font size in pixels, the third is the font style, and the fourth is the name of a BDF file containing the font.

The BDF format is defined by the X Window System and is not described here.

</P>



<P>The font number indicates the type face. Here is a list of known font numbers and their faces.

</P>



<TABLE>



<TR><TD>

0

</TD><TD>

Chicago

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

1

</TD><TD>

Application font

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

2

</TD><TD>

New York

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

3

</TD><TD>

Geneva

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

4

</TD><TD>

Monaco

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

5

</TD><TD>

Venice

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

6

</TD><TD>

London

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

7

</TD><TD>

Athens

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

8

</TD><TD>

San Francisco

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

9

</TD><TD>

Toronto

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

11

</TD><TD>

Cairo

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

12

</TD><TD>

Los Angeles

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

20

</TD><TD>

Times Roman

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

21

</TD><TD>

Helvetica

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

22

</TD><TD>

Courier

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

23

</TD><TD>

Symbol

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

24

</TD><TD>

Taliesin

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



<P>The font style indicates a variation on the font. Multiple variations may apply to a font and the font style is the sum of

the variation numbers, which are

</P>



<TABLE>



<TR><TD>

1

</TD><TD>

Boldface

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

2

</TD><TD>

Italic

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

4

</TD><TD>

Underlined

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

8

</TD><TD>

Outlined

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

16

</TD><TD>

Shadow

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

32

</TD><TD>

Condensed

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

64

</TD><TD>

Extended

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



<P>Obviously, the font definitions are strongly related to the Macintosh. More font numbers and information about fonts

can be found in Macintosh documentation.

</P>



<P><B>

SEE ALSO

</B>

</P>

<P>Inside Macintosh volumes 1 and 5, ppmtopict(1),

ppm(5)

</P>



<P><B>

AUTHOR

</B>

</P>

<P>Copyright &quot;1993 George Phillips.

</P>



<P>29 November 1991

</P>







<P><CENTER>

<a href="0375-0377.html">Previous</A> | <a href="../ewtoc.html">Table of Contents</A> | <a href="0381-0384.html">Next</A></CENTER></P>







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

<!-- begin footer information -->







</body></html>

⌨️ 快捷键说明

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