File: ch03s03s08.html

package info (click to toggle)
gimp-help 2%2B0.7-5
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 30,852 kB
  • ctags: 4
  • sloc: xml: 104,248; sh: 544; makefile: 262; perl: 42
file content (409 lines) | stat: -rw-r--r-- 16,531 bytes parent folder | download
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
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>3.8. Clone Tool</title>
    <link rel="stylesheet" href="gimp-help-plain.css" type="text/css" />
    <link rel="stylesheet" href="gimp-help-screen.css" type="text/css" />
    <meta name="generator" content="DocBook XSL Stylesheets V1.66.1" />
    <link rel="start" href="index.html" title="&#10;      &#10;    " />
    <link rel="up" href="ch03s03.html" title="3. Brush Tools" />
    <link rel="prev" href="ch03s03s07.html" title="3.7. Ink Tool" />
    <link rel="next" href="ch03s03s09.html" title="3.9. Convolve (Blur/Sharpen)" />
  </head>
  <body>
    <div xmlns="" class="navheader">
      <table width="100%" summary="Navigation header">
        <tr>
          <th colspan="3" align="center" id="chaptername">3.8. Clone Tool</th>
        </tr>
        <tr>
          <td width="20%" align="left"><a accesskey="p" href="ch03s03s07.html">Prev</a> </td>
          <th width="60%" align="center" id="sectionname">3.8. Clone Tool</th>
          <td width="20%" align="right"> <a accesskey="n" href="ch03s03s09.html">Next</a></td>
        </tr>
      </table>
      <hr />
    </div>
    <div class="sect2" lang="en" xml:lang="en">
      <div class="titlepage">
        <div>
          <div>
            <h3 class="title"><a id="gimp-tool-clone"></a>3.8. Clone Tool</h3>
          </div>
        </div>
      </div>
      <a id="id3324774" class="indexterm"></a>
      <div class="informalfigure">
        <div class="mediaobject">
          <img src="../images/toolbox/toolbox-clone.png" />
          <div class="caption">
            <p>
          Clone tool icon in the Toolbox
        </p>
          </div>
        </div>
      </div>
      <p>
    The Clone tool uses the current brush to copy from an image or
    pattern.  It has many uses:  one of the most important is to
    repair problem areas in digital photos, by "painting over" them
    with pixel data from other areas.  This technique takes a while to
    learn, but in the hands of a skilled user it is very
    powerful. Another important use is to draw patterned lines or
    curves:  see <a href="ch02s04s10.html" title="4.10. Patterns">Patterns</a> for
    examples. 
  </p>
      <p>
    If you want to clone from an image, instead of a pattern, you must
    tell GIMP which image you want to copy from.  You do this by
    holding down the Ctrl key and clicking in the desired source
    image.  Until you have set the source in this way, you will not be
    able to paint with the Clone tool:  the tool cursor tells you this
    by showing a "forbidden" symbol.
  </p>
      <p>
    If you clone from a pattern, the pattern is
    <span class="emphasis"><em>tiled</em></span>; that is, when the point you are
    copying from moves past one of the edges, it jumps to the opposite
    edge and continues, as though the pattern were repeated
    side-by-side, indefinitely.  When you clone from an image this
    does not happen:  if you go beyond the edges of the source, the
    Clone tool stops producing any changes.
  </p>
      <p>
    You can clone from any drawable (that is, any layer, layer mask,
    or channel) to any other drawable.  You can even clone to or from
    the selection mask, by switching to QuickMask mode.  If this means
    copying colors that the target does not support (for example,
    cloning from an RGB layer to an Indexed layer or a layer mask),
    then the colors will be converted to the closest possible
    approximations.
  </p>
      <div class="simplesect" lang="en" xml:lang="en">
        <div class="titlepage">
          <div>
            <div>
              <h4 class="title"><a id="id3323821"></a>How to Activate</h4>
            </div>
          </div>
        </div>
        <p>
      The Clone tool can be activated from an image menu as
      <span class="guimenu">Tools</span>-&gt;<span class="guisubmenu">Paint Tools</span>-&gt;<span class="guimenuitem">Clone</span>; 
      from the Toolbox by clicking on the tool icon 
      <span class="guiicon">
	<span class="inlinemediaobject"><img src="../images/toolbox/clone.png" /></span>
      </span>;
      or from the keyboard using the shortcut <span><b class="keycap">c</b></span>.
    </p>
      </div>
      <div class="simplesect" lang="en" xml:lang="en">
        <div class="titlepage">
          <div>
            <div>
              <h4 class="title"><a id="id3325373"></a>Key modifiers</h4>
            </div>
          </div>
        </div>
        <p>
      See the <a href="ch03s03.html#gimp-tool-brush" title="3.1. Common Features">Brush Tools
      Overview</a> for a description of key modifiers that have the
      same effect on all brush tools.
    </p>
        <div class="variablelist">
          <dl>
            <dt>
              <span class="term">
                <span>
                  <b class="keycap">Ctrl</b>
                </span>
              </span>
            </dt>
            <dd>
              <p>
            The Ctrl key is used to select the source, if you are
            cloning from an image:  it has no effect if you are
            cloning from a pattern.  You can clone from any layer of any
            image, by clicking on the image display, with the Ctrl key
            held down, while the layer is active (as shown in the Layers
            dialog).  If the Alignment is set to "Non-aligned" or
            "Aligned" in the Tool Options, then the point you click on
            becomes the origin for cloning:  the image data at that
            point will be used when you first begin painting with the
            Clone tool.  In source-selection mode, the cursor changes to
            a crosshair-symbol.
          </p>
            </dd>
          </dl>
        </div>
      </div>
      <div class="simplesect" lang="en" xml:lang="en">
        <div class="titlepage">
          <div>
            <div>
              <h4 class="title"><a id="id3325622"></a>Tool Options</h4>
            </div>
          </div>
        </div>
        <div class="informalfigure">
          <div class="mediaobject">
            <img src="../images/toolbox/tool-options-clone.png" />
            <div class="caption">
              <p>
            Tool Options for the Clone tool
          </p>
            </div>
          </div>
        </div>
        <div class="note" style="margin-left: 0.5in; margin-right: 0.5in;">
          <table border="0" summary="Note">
            <tr>
              <td rowspan="2" align="center" valign="top" width="25">
                <img alt="[Note]" src="../images/note.png" />
              </td>
              <th align="left">Note</th>
            </tr>
            <tr>
              <td colspan="2" align="left" valign="top">
                <p>
        See the <a href="ch03s03.html#gimp-tool-brush" title="3.1. Common Features">Brush Tools
        Overview</a> for a description of tool options that apply to
        many or all brush tools.
      </p>
              </td>
            </tr>
          </table>
        </div>
        <div class="variablelist">
          <dl>
            <dt>
              <span class="term">Pattern</span>
            </dt>
            <dd>
              <p>
          Clicking on the pattern symbol brings up the Patterns
          dialog, which you can use to select the pattern to paint
          with.  This option is only relevant if you are cloning from
          a Pattern source.
        </p>
            </dd>
            <dt>
              <span class="term">Source</span>
            </dt>
            <dd>
              <p>
          The choice you make here determines whether data will be
          copied from the pattern shown above, or from one of the
          images you have open.  If you choose "Image source", you
          must tell GIMP which layer to use as the source, by
          Ctrl-clicking on it, before you can paint with the tool.
        </p>
            </dd>
            <dt>
              <span class="term">Alignment</span>
            </dt>
            <dd>
              <p>
          The Alignment mode sets how the source
          position is offset from each brush stroke.
        </p>
              <div class="informaltable">
                <table border="0">
                  <colgroup>
                    <col />
                    <col />
                    <col />
                  </colgroup>
                  <tbody>
                    <tr>
                      <td>
                  <div class="mediaobject"><img src="../images/tool-options/clone-non-align.png" /></div>
                </td>
                      <td>
                  <div class="mediaobject"><img src="../images/tool-options/clone-align.png" /></div>
                </td>
                      <td>
                  <div class="mediaobject"><img src="../images/tool-options/clone-registered.png" /></div>
                </td>
                    </tr>
                    <tr>
                      <td>
                  <p>Non-aligned</p>
                </td>
                      <td>
                  <p>Aligned</p>
                </td>
                      <td>
                  <p>Registered</p>
                </td>
                    </tr>
                  </tbody>
                </table>
              </div>
              <p>
          Above: schematic illustration of the three possible alignment
          modes.  The mouse cursor is shown as a red rectangle,
          and the source point as a black crosshair.
        </p>
              <div class="itemizedlist">
                <ul type="disc">
                  <li>
                    <p><b>Non-aligned. </b>
                In this mode, each brushstroke is treated separately.  For
                each stroke, the point where you first click is copied from
                the source origin; there is no relationship between one
                brush stroke and another.  In non-aligned mode, different
                brush strokes will usually clash if they intersect each
                other.
              </p>
                  </li>
                  <li>
                    <p><b>Aligned. </b>
                In this mode, the first click you make when painting sets
                the offset between the source origin and the cloned result,
                and all subsequent brushstrokes use the same offset.  Thus,
                you can use as many brushstrokes as you like, and they will
                all mesh smoothly with one another.
              </p>
                    <p>
              If you want to change the offset, you can do this by
              switching to non-aligned mode, painting one stroke, then
              switching back to aligned mode.  Subsequent strokes will
              use the same offset as the first stroke.
            </p>
                  </li>
                  <li>
                    <p><b>Registered. </b>
                This mode copies each pixel in the source to the pixel with
                the same offset in the target.  It is most commonly useful
                when you want to clone from one layer to another layer
                within the same image.  It is also useful when cloning from
                a pattern, if you want the left or upper edges of the
                pattern to line up precisely with the corresponding edges
                of the target layer.
              </p>
                  </li>
                </ul>
              </div>
            </dd>
          </dl>
        </div>
      </div>
      <div class="simplesect" lang="en" xml:lang="en">
        <div class="titlepage">
          <div>
            <div>
              <h4 class="title"><a id="id3325699"></a>Further Information</h4>
            </div>
          </div>
        </div>
        <div class="variablelist">
          <dl>
            <dt>
              <span class="term">Transparency</span>
            </dt>
            <dd>
              <p>
            The effects of the Clone tool on transparency are a bit
            complicated.  You cannot clone transparency:  if you try to
            clone from a transparent source, nothing happens to the target.
            If you clone from a partially transparent source, the effect is
            weighted by the opacity of the source.  So, assuming 100%
            opacity and a hard brush:
          </p>
              <div class="itemizedlist">
                <ul type="disc">
                  <li>
                    <p>
                Cloning translucent black onto white produces gray.
              </p>
                  </li>
                  <li>
                    <p>
                Cloning translucent black onto black produces black.
              </p>
                  </li>
                  <li>
                    <p>
                Cloning translucent white onto white produces white.
              </p>
                  </li>
                  <li>
                    <p>
                Cloning translucent white onto black produces gray.
              </p>
                  </li>
                </ul>
              </div>
              <p>
            Cloning can never increase transparency, but, unless "keep
            transparency" is turned on for the layer, it can reduce it.
            Cloning an opaque area onto a translucent area produces an
            opaque result; cloning a translucent area onto another
            translucent area causes an increase in opacity.  
          </p>
            </dd>
            <dt>
              <span class="term">"Filter" brushes</span>
            </dt>
            <dd>
              <p>
            There are a few non-obvious ways to use the Clone tool to
            obtain powerful effects.  One thing you can do is to create
            "Filter brushes", that is, create the effect of applying a
            filter with a brush.  To do this, duplicate the layer you
            want to work on, and apply the filter to the copy.  Then
            activate the Clone tool, setting Source to "Image source"
            and Alignment to "Registered".  Ctrl-click on the filtered
            layer to set it as the source, and paint on the original
            layer:  you will then in effect be painting the filtered
            image data onto the original layer. 
          </p>
            </dd>
            <dt>
              <span class="term">History brush</span>
            </dt>
            <dd>
              <p>
            You can use a similar approach to imitate Photoshop's
            "History brush", which allows you to selectively undo or
            redo changes using a brush.  To do this, start by
            duplicating the image; then, in the original, go back to
            the desired state in the image's history, either by
            undoing or by using the Undo History dialog.  (This must
            be done in the original, not the copy, because duplicating
            an image does not duplicate the Undo history.)  Now
            activate the Clone tool, setting Source to "Image source" 
            and Alignment to "Registered".  Ctrl-click on a layer from
            one image, and paint on the corresponding layer from the
            other image.  Depending on how you do it, this gives you
            either an "undo brush" or a "redo brush".
          </p>
            </dd>
          </dl>
        </div>
      </div>
    </div>
    <div class="navfooter">
      <hr />
      <table width="100%" summary="Navigation footer">
        <tr>
          <td width="40%" align="left"><a accesskey="p" href="ch03s03s07.html">Prev</a> </td>
          <td width="20%" align="center">
            <a accesskey="u" href="ch03s03.html">Up</a>
          </td>
          <td width="40%" align="right"> <a accesskey="n" href="ch03s03s09.html">Next</a></td>
        </tr>
        <tr>
          <td width="40%" align="left" valign="top">3.7. Ink Tool </td>
          <td width="20%" align="center">
            <a accesskey="h" href="index.html">Home</a>
          </td>
          <td width="40%" align="right" valign="top"> 3.9. Convolve (Blur/Sharpen)</td>
        </tr>
      </table>
    </div>
  </body>
</html>