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 152
|
<!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>2.1.2 Specifying fill attributes</TITLE>
<META NAME="description" CONTENT="2.1.2 Specifying fill attributes">
<META NAME="keywords" CONTENT="tutorial">
<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="tutorial.css">
<LINK REL="next" HREF="node53.html">
<LINK REL="previous" HREF="node51.html">
<LINK REL="up" HREF="node50.html">
<LINK REL="next" HREF="node53.html">
</HEAD>
<BODY bgcolor="#ffffff">
<!--Navigation Panel-->
<A NAME="tex2html1157"
HREF="node53.html">
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next.gif"></A>
<A NAME="tex2html1151"
HREF="node50.html">
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up.gif"></A>
<A NAME="tex2html1145"
HREF="node51.html">
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="prev.gif"></A>
<A NAME="tex2html1153"
HREF="node1.html">
<IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="contents.gif"></A>
<A NAME="tex2html1155"
HREF="node79.html">
<IMG WIDTH="43" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="index" SRC="index.gif"></A>
<BR>
<B> Next:</B> <A NAME="tex2html1158"
HREF="node53.html">2.1.3 Examples</A>
<B> Up:</B> <A NAME="tex2html1152"
HREF="node50.html">2.1 General Information</A>
<B> Previous:</B> <A NAME="tex2html1146"
HREF="node51.html">2.1.1 Specifying pen attributes</A>
  <B> <A NAME="tex2html1154"
HREF="node1.html">Contents</A></B>
  <B> <A NAME="tex2html1156"
HREF="node79.html">Index</A></B>
<BR>
<BR>
<!--End of Navigation Panel-->
<H2><A NAME="SECTION00412000000000000000">
2.1.2 Specifying fill attributes</A>
</H2>
<P>
<A NAME="965"></A><A NAME="966"></A><A NAME="967"></A><A NAME="968"></A><A NAME="969"></A><A NAME="970"></A><A NAME="971"></A><A NAME="1728"></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.
The <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="tex2html171"
HREF="http://www.soest.hawaii.edu/gmt"><B>GMT</B></A> and reproduced in Appendix E in the Technical Reference.
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="tex2html172"
HREF="../psimage.html"><I><B>psimage</B></I></A><A NAME="2701"></A>. The format of Sun raster files is outlined in Appendix B
in the Technical Reference.
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 laser printers) 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</I> or <I>may not</I> solve the problem!
<P>
<HR>
<!--Navigation Panel-->
<A NAME="tex2html1157"
HREF="node53.html">
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next.gif"></A>
<A NAME="tex2html1151"
HREF="node50.html">
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up.gif"></A>
<A NAME="tex2html1145"
HREF="node51.html">
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="prev.gif"></A>
<A NAME="tex2html1153"
HREF="node1.html">
<IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="contents.gif"></A>
<A NAME="tex2html1155"
HREF="node79.html">
<IMG WIDTH="43" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="index" SRC="index.gif"></A>
<BR>
<B> Next:</B> <A NAME="tex2html1158"
HREF="node53.html">2.1.3 Examples</A>
<B> Up:</B> <A NAME="tex2html1152"
HREF="node50.html">2.1 General Information</A>
<B> Previous:</B> <A NAME="tex2html1146"
HREF="node51.html">2.1.1 Specifying pen attributes</A>
  <B> <A NAME="tex2html1154"
HREF="node1.html">Contents</A></B>
  <B> <A NAME="tex2html1156"
HREF="node79.html">Index</A></B>
<!--End of Navigation Panel-->
<ADDRESS>
Paul Wessel
2001-04-18
</ADDRESS>
</BODY>
</HTML>
|