Debian Codegraph @

help/C/tools_selection.page

raw
1 <?xml version="1.0" encoding="utf-8"?>
2 <page xmlns="http://projectmallard.org/1.0/"
3 xmlns:its="http://www.w3.org/2005/11/its" type="task" style="task"
4 id="tools_selection">
5
6 <info>
7 <link type="guide" xref="index#tools"/>
8 <include xmlns="http://www.w3.org/2001/XInclude" href="legal.xml"/>
9 <credit type="author">
10 <name its:translate="no">Romain F. T.</name>
11 <email its:translate="no">[email protected]</email>
12 </credit>
13 <desc>Select a part of the image.</desc>
14 </info>
15
16 <title>Selection</title>
17
18 <section>
19 <title>Selecting an area</title>
20
21 <p>Tools such as <gui style="button">Rectangle Selection</gui> or <gui
22 style="button">Free Selection</gui> are available in the side bar, along
23 with <link xref="tools_classic">the other tools</link>. You can use them
24 to define a part of the image for further manipulations.</p>
25
26 <p>Aside of defining the contour of an area with the mouse, the selection
27 can also be created in various ways:</p>
28 <list>
29 <item>
30 <p><gui style="button">Import</gui> an existing file as your selection.</p>
31 </item>
32 <item>
33 <p><gui style="button">Paste</gui> an image from your clipboard.</p>
34 </item>
35 <item>
36 <p>Right-click, <gui style="menuitem">Select all</gui>.</p>
37 </item>
38 </list>
39
40 <note style="tip">
41 <p>A tool named <gui style="button">Color Selection</gui> also exists, and
42 tries to select an area according to its color, but it doesn't always work
43 as expected so this tool is <link xref="preferences#tools">disabled by
44 default</link>.</p>
45 </note>
46
47 <p>Before you start to define a selection, you may want to choose what color
48 will replace the selected pixels once they'll be moved or deleted:</p>
49 <list>
50 <item>
51 <p><gui style="menuitem">Transparency</gui>.</p>
52 </item>
53 <item>
54 <p><gui style="menuitem">Default color</gui> (the color of your initial
55 canvas, as defined in <link xref="preferences#image">the app preferences
56 </link>).</p>
57 </item>
58 <item>
59 <p><gui style="menuitem">Secondary color</gui> (the color corresponding
60 to the right-click when you use a <link xref="tools_classic">classic
61 tool</link>).</p>
62 </item>
63 </list>
64 <p>The option "<gui style="menuitem">Extract from this color</gui>" means,
65 if it's checked, that the pixels corresponding to the replacement color will
66 not be included in the selection.</p>
67 <p>Example: if you replace the selected pixels with white, and you select a
68 figure on a white background, only the figure will be selected. If this
69 figure has been drawn without <link xref="tools_classic#basic-draw">
70 anti-aliasing</link>, it can easily be moved to a background of an other
71 color and it would look good.</p>
72 </section>
73
74 <section>
75 <title>Define an image from the selection</title>
76
77 <p>If the selected area interests you more than the rest of the image,
78 several actions — in the <gui style="menuitem">More actions</gui> submenu of
79 the right-click — may help you:</p>
80 <list>
81 <item>
82 <p>Define the selection as the current image.</p>
83 </item>
84 <item>
85 <p>Reshape the current image so its size should match the size of the
86 selection (for example if you import or paste a big image).</p>
87 </item>
88 <item>
89 <p>Open the selection as a new image.</p>
90 </item>
91 <item>
92 <p>Export the selection as a new file.</p>
93 </item>
94 </list>
95 </section>
96
97 <section>
98 <title>Using the selection</title>
99
100 <p>Once the selection is defined, you can then perform various actions with
101 this selected area:</p>
102 <list>
103 <item>
104 <p>Move it on the canvas.</p>
105 </item>
106 <item>
107 <p>Transform it with tools. <link xref="tools_transform">The compatible
108 tools</link> can be accessed with a right-click on the selection.</p>
109 <media type="image" mime="image/png" width="80%" its:translate="no"
110 src="figures/screenshot_selection.png" />
111 </item>
112 <item>
113 <p>Copy it (or cut it) to the clipboard.</p>
114 </item>
115 <item>
116 <p>Delete it.</p>
117 </item>
118 </list>
119 <p>Click outside of the selected area to unselect, or use the <gui
120 style="menuitem">Deselect</gui> menu item.</p>
121
122 <p>If you try to save while a selection is defined, a dialog will remind you
123 that you should deselect it before saving.</p>
124 </section>
125
126 </page>
127