version 2 showing authors affecting page license.
.
Rev |
Author |
# |
Line |
1 |
perry |
1 |
picttoppm |
|
|
2 |
!!!picttoppm |
|
|
3 |
NAME |
|
|
4 |
SYNOPSIS |
|
|
5 |
DESCRIPTION |
|
|
6 |
OPTIONS |
|
|
7 |
BUGS |
|
|
8 |
FONT DIR FILE FORMAT |
|
|
9 |
SEE ALSO |
|
|
10 |
AUTHOR |
|
|
11 |
---- |
|
|
12 |
!!NAME |
|
|
13 |
|
|
|
14 |
|
|
|
15 |
picttoppm - convert a Macintosh PICT file into a portable pixmap |
|
|
16 |
!!SYNOPSIS |
|
|
17 |
|
|
|
18 |
|
|
|
19 |
__picttoppm__ [[__-verbose__] [[__-fullres__] |
|
|
20 |
[[__-noheader__] [[__-quickdraw__] |
|
|
21 |
[[__-fontdir__file__]__ [[''pictfile''] |
|
|
22 |
!!DESCRIPTION |
|
|
23 |
|
|
|
24 |
|
|
|
25 |
Reads a PICT file (version 1 or 2) and outputs a portable |
|
|
26 |
pixmap. Useful as the first step in converting a scanned |
|
|
27 |
image to something that can be displayed on |
|
|
28 |
Unix. |
|
|
29 |
!!OPTIONS |
|
|
30 |
|
|
|
31 |
|
|
|
32 |
__-fontdir__ ''file'' |
|
|
33 |
|
|
|
34 |
|
|
|
35 |
Make the list of BDF fonts in ``file'' available for use by |
|
|
36 |
''picttoppm'' when drawing text. See below for the format |
|
|
37 |
of the fontdir file. |
|
|
38 |
|
|
|
39 |
|
|
|
40 |
__-fullres__ |
|
|
41 |
|
|
|
42 |
|
|
|
43 |
Force any images in the PICT file to be output with at least |
|
|
44 |
their full resolution. A PICT file may indicate that a |
|
|
45 |
contained image is to be scaled down before output. This |
|
|
46 |
option forces images to retain their sizes and prevent |
|
|
47 |
information loss. Use of this option disables all PICT |
|
|
48 |
operations except images. |
|
|
49 |
|
|
|
50 |
|
|
|
51 |
__-noheader__ |
|
|
52 |
|
|
|
53 |
|
|
|
54 |
Do not skip the 512 byte header that is present on all PICT |
|
|
55 |
files. This is useful when you have PICT data that was not |
|
|
56 |
stored in the data fork of a PICT file. |
|
|
57 |
|
|
|
58 |
|
|
|
59 |
__-quickdraw__ |
|
|
60 |
|
|
|
61 |
|
|
|
62 |
Execute only pure quickdraw operations. In particular, turn |
|
|
63 |
off the interpretation of special !PostScript printer |
|
|
64 |
operations. |
|
|
65 |
|
|
|
66 |
|
|
|
67 |
__-verbose__ |
|
|
68 |
|
|
|
69 |
|
|
|
70 |
Turns on verbose mode which prints a a whole bunch of |
|
|
71 |
information that only ''picttoppm'' hackers really care |
|
|
72 |
about. |
|
|
73 |
!!BUGS |
|
|
74 |
|
|
|
75 |
|
|
|
76 |
The PICT file format is a general drawing format. |
|
|
77 |
''picttoppm'' does not support all the drawing commands, |
|
|
78 |
but it does have full support for any image commands and |
|
|
79 |
reasonable support for line, rectangle, polgon and text |
|
|
80 |
drawing. It is useful for converting scanned images and some |
|
|
81 |
drawing conversion. |
|
|
82 |
|
|
|
83 |
|
|
|
84 |
Memory is used very liberally with at least 6 bytes needed |
|
|
85 |
for every pixel. Large bitmap PICT files will likely run |
|
|
86 |
your computer out of memory. |
|
|
87 |
!!FONT DIR FILE FORMAT |
|
|
88 |
|
|
|
89 |
|
|
|
90 |
''picttoppm'' has a built in default font and your local |
|
|
91 |
installer probably provided adequate extra fonts. You can |
|
|
92 |
point ''picttoppm'' at more fonts which you specify in a |
|
|
93 |
font directory file. Each line in the file is either a |
|
|
94 |
comment line which must begin with ``#'' or font |
|
|
95 |
information. The font information consists of 4 whitespace |
|
|
96 |
spearated fields. The first is the font number, the second |
|
|
97 |
is the font size in pixels, the third is the font style and |
|
|
98 |
the fourth is the name of a BDF file containing the font. |
|
|
99 |
The BDF format is defined by the X window system and is not |
|
|
100 |
described here. |
|
|
101 |
|
|
|
102 |
|
|
|
103 |
The font number indicates the type face. Here is a list of |
|
|
104 |
known font numbers and their faces. |
|
|
105 |
|
|
|
106 |
|
|
|
107 |
0 Chicago |
|
|
108 |
1 application font |
|
|
109 |
2 New York |
|
|
110 |
3 Geneva |
|
|
111 |
4 Monaco |
|
|
112 |
5 Venice |
|
|
113 |
6 London |
|
|
114 |
7 Athens |
|
|
115 |
8 San Franciso |
|
|
116 |
9 Toronto |
|
|
117 |
11 Cairo |
|
|
118 |
12 Los Angeles |
|
|
119 |
20 Times Roman |
|
|
120 |
21 Helvetica |
|
|
121 |
22 Courier |
|
|
122 |
23 Symbol |
|
|
123 |
24 Taliesin |
|
|
124 |
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: |
|
|
125 |
|
|
|
126 |
|
|
|
127 |
1 Boldface |
|
|
128 |
2 Italic |
|
|
129 |
4 Underlined |
|
|
130 |
8 Outlined |
|
|
131 |
16 Shadow |
|
|
132 |
32 Condensed |
|
|
133 |
64 Extended |
|
|
134 |
Obviously the font defintions are strongly related to the Macintosh. More font numbers and information about fonts can be found in Macintosh documentation. |
|
|
135 |
!!SEE ALSO |
|
|
136 |
|
|
|
137 |
|
|
|
138 |
Inside Macintosh volumes 1 and 5, ppmtopict(1), |
|
|
139 |
ppm(5) |
|
|
140 |
!!AUTHOR |
|
|
141 |
|
|
|
142 |
|
|
|
143 |
Copyright 1993 George Phillips |
|
|
144 |
---- |