1MAKEPATTERN(1) Generic Mapping Tools MAKEPATTERN(1)
2
3
4
6 makepattern - make GMT color pattern from b/w pattern or icon
7
9 makepattern 1bit.ras | iconfile -Cfr/g/b -Cbr/g/b
10
12 makepattern reads either a Sun 1-bit rasterfile OR a Sun icon file. It
13 then accepts color choices for the foreground and background pixels and
14 colorizes the pattern, writing it as a 8-bit Sun rasterfile on stdout.
15 These patterns may then be used in GMT (3.1 or later) -Gp settings or
16 by psimage.
17
18 1bit.ras | iconfile
19 Either a 1-bit Sun rasterfile (standard format, no RLE) or a Sun
20 icon file (as used in GMT 3.0).
21
22 -Cf Sets the color for the foreground pixels (the ones) [black].
23
24 -Cb Sets the color for the background pixels (the zeros) [white].
25
27 Since binary redirection under WIN32 does not work, you must specify
28 the output file with -Gnewfile.ras. This option is only available
29 under WIN32.
30
32 To create a colorized red/blue 8-bit Sun rasterfile pattern from the
33 old 3.0-style iconpattern stored in file custom.icon, run
34
35 makepattern custom.icon -Cfred -Cbblue > custom.ras
36
37 To create a green/blue 8-bit Sun rasterfile pattern from a 1-bit Sun
38 raster called bits.ras, run
39
40 makepattern bits.ras -Cfgreen -Cbblue > colorbits.ras
41
43 GMT(1), psimage(1)
44
45
46
47GMT 4.5.6 10 Mar 2011 MAKEPATTERN(1)