File: node29.html

package info (click to toggle)
gmt-doc 3.4-1.1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 4,756 kB
  • ctags: 1,800
  • sloc: makefile: 30
file content (151 lines) | stat: -rw-r--r-- 6,194 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">

<!--Converted with LaTeX2HTML 99.2beta8 (1.46)
original version by:  Nikos Drakos, CBLU, University of Leeds
* revised and updated by:  Marcus Hennecke, Ross Moore, Herb Swan
* with significant contributions from:
  Jens Lippmann, Marek Rouchal, Martin Wilck and others -->
<HTML>
<HEAD>
<TITLE>4.14 Specifying area fill attributes</TITLE>
<META NAME="description" CONTENT="4.14 Specifying area fill attributes">
<META NAME="keywords" CONTENT="GMT_Docs">
<META NAME="resource-type" CONTENT="document">
<META NAME="distribution" CONTENT="global">

<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="LaTeX2HTML v99.2beta8">
<META HTTP-EQUIV="Content-Style-Type" CONTENT="text/css">

<LINK REL="STYLESHEET" HREF="GMT_Docs.css">

<LINK REL="next" HREF="node30.html">
<LINK REL="previous" HREF="node28.html">
<LINK REL="up" HREF="node15.html">
<LINK REL="next" HREF="node30.html">
</HEAD>

<BODY  bgcolor="#ffffff">
<!--Navigation Panel-->
<A NAME="tex2html1358"
  HREF="node30.html">
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next.gif"></A> 
<A NAME="tex2html1352"
  HREF="node15.html">
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up.gif"></A> 
<A NAME="tex2html1346"
  HREF="node28.html">
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="prev.gif"></A> 
<A NAME="tex2html1354"
  HREF="node1.html">
<IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="contents.gif"></A> 
<A NAME="tex2html1356"
  HREF="node149.html">
<IMG WIDTH="43" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="index" SRC="index.gif"></A> 
<BR>
<B> Next:</B> <A NAME="tex2html1359"
  HREF="node30.html">4.15 Color palette tables</A>
<B> Up:</B> <A NAME="tex2html1353"
  HREF="node15.html">4. General features</A>
<B> Previous:</B> <A NAME="tex2html1347"
  HREF="node28.html">4.13 Specifying pen attributes</A>
 &nbsp <B>  <A NAME="tex2html1355"
  HREF="node1.html">Contents</A></B> 
 &nbsp <B>  <A NAME="tex2html1357"
  HREF="node149.html">Index</A></B> 
<BR>
<BR>
<!--End of Navigation Panel-->

<H1><A NAME="SECTION0012140000000000000000">
4.14 Specifying area fill attributes</A>
</H1>

<P>
<A NAME="4297"></A><A NAME="4298"></A><A NAME="4299"></A><A NAME="4300"></A><A NAME="4301"></A><A NAME="4302"></A><A NAME="4303"></A><A NAME="4583"></A>

<P>
Many plotting programs will allow the user to draw filled polygons or
symbols.  The fill may take two forms: 

<P>
<BR> 

<P>
<B>-G</B><I>fill</I>
<P>
<P>
<B>-Gp</B><I>dpi/pattern</I>[:<B>B</B><I>r/g/b</I>[<B>F</B><I>r/g/b</I>]]
<P>
<BR> 

<P>
In the first case we may specify a <I>gray</I> shade (0-255) or a color
(<I>r</I>/<I>g</I>/<I>b</I> in the 0-255 range), similar to the pen color
settings.  The second form allows us to use a predefined bit-image pattern.
<I>pattern</I> can either be a number in the range 1-90 or the name of a 1-,
8-, or 24-bit Sun raster file.  The former will result in one of the 90
predefined 64 x 64 bit-patterns provided with <A NAME="tex2html254"
  HREF="http://www.soest.hawaii.edu/gmt"><B>GMT</B></A> and reproduced in Appendix E.
The latter allows the user to create customized, repeating images using
standard Sun rasterfiles.  The <I>dpi</I> parameter sets the resolution of
this image on the page;  the area fill is thus made up of a series of these
``tiles''.  Specifying <I>dpi</I> as 0 will result in highest resolution
obtainable given the present dpi setting in <U>.gmtdefaults</U>.
By specifying upper case <B>-GP</B> instead of <B>-Gp</B> the image will be
bit-reversed, i.e., white and black areas will be interchanged (only applies
to 1-bit images or predefined bit-image patterns).  For these patterns and
other 1-bit images one may specify alternative background and foreground
colors (by appending :<B>B</B><I>r/g/b</I>[<B>F</B><I>r/g/b</I>]) that will
replace the default white and black pixels, respectively.  Setting one of the
fore- or background colors to - yields a transparent image where only the
back- or foreground pixels will be painted.
Due to <I>PostScript</I> implementation limitations the rasterimages used with
<B>-G</B> must be less than 146 x 146 pixels in size; for larger images see
<A NAME="tex2html255"
  HREF="../psimage.html"><I><B>psimage</B></I></A><A NAME="4815"></A>.  The format of Sun raster files is outlined in Appendix B.
Note that under <I>PostScript</I> Level 1 the patterns are filled by using
the polygon as a <I>clip path</I>.  Complex clip paths may require
more memory than the <I>PostScript</I> interpreter has been assigned.
There is therefore the possibility that some <I>PostScript</I> interpreters
(especially those supplied with older laserwriters) will run out of memory
and abort.  Should that occur we recommend that you use a regular grayshade
fill instead of the patterns.  Installing more memory in your printer
<I>may or may not</I> solve the problem! 

<P>
<HR>
<!--Navigation Panel-->
<A NAME="tex2html1358"
  HREF="node30.html">
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next.gif"></A> 
<A NAME="tex2html1352"
  HREF="node15.html">
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up.gif"></A> 
<A NAME="tex2html1346"
  HREF="node28.html">
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="prev.gif"></A> 
<A NAME="tex2html1354"
  HREF="node1.html">
<IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="contents.gif"></A> 
<A NAME="tex2html1356"
  HREF="node149.html">
<IMG WIDTH="43" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="index" SRC="index.gif"></A> 
<BR>
<B> Next:</B> <A NAME="tex2html1359"
  HREF="node30.html">4.15 Color palette tables</A>
<B> Up:</B> <A NAME="tex2html1353"
  HREF="node15.html">4. General features</A>
<B> Previous:</B> <A NAME="tex2html1347"
  HREF="node28.html">4.13 Specifying pen attributes</A>
 &nbsp <B>  <A NAME="tex2html1355"
  HREF="node1.html">Contents</A></B> 
 &nbsp <B>  <A NAME="tex2html1357"
  HREF="node149.html">Index</A></B> 
<!--End of Navigation Panel-->
<ADDRESS>
Paul Wessel
2001-04-18
</ADDRESS>
</BODY>
</HTML>