2.2. Zaznaczenie prostokątne

Rysunek 13.9. Zaznaczenie prostokątne na pasku narzędzi

„Zaznaczenie prostokątne” na pasku narzędzi

The Rectangle Selection tool is designed to select rectangular regions of the active layer: it is the most basic of the selection tools, but very commonly used. For information on selections and how they are used in GIMP see Selections; for information on features common to all selection tools see Selection Tools.

Narzędzie może być również używane do tworzenia prostokątów na obrazie. W tym celu należy utworzyć zaznaczenie prostokątne, a nastepnie wypełnić je przy pomocy Wypełnienia kubełkiem. Aby uzyskać prostokątną ścieżkę, najłatwiej jest utworzyć zaznaczenie prostokątne, a następnie stworzyć pociągnięcie.

2.2.1. Activating the tool

Narzędzie można aktywować na kilka sposobów:

  • from the image menu bar ToolsSelection ToolsRectangle Select,

  • by clicking on the tool icon in the ToolBox,

  • by using the keyboard shortcut R.

2.2.2. Key modifiers

[Uwaga] Uwaga

Klawisze modyfikujące, wspólne dla wszystkich Narzędzi zaznaczania opisane zostały na Narzędzia zaznaczania. Poniżej opisano klawisze, charakterystyczne tylko dla Zaznaczenia prostokątnego.

Ctrl

Pressing the Ctrl key after starting your selection, and holding it down until you are finished, causes your starting point to be used as the center of the selected rectangle, instead of a corner. Note that if you press the Ctrl key before starting to make the selection, the resulting selection will be subtracted from the existing selection. The cursor becomes

Shift

If you press the Shift key before starting the selection, the resulting selection will be added to the existing one. The cursor becomes

Pressing the Shift key after starting your selection, toggles the Fixed option, and holding it down until you are finished, will constrain the selection to a square, if it is your first selection. Later, with the default Aspect Ratio , your selection will respect the aspect ratio of the previous selection.

Ctrl+Shift

Pressing both keys after starting your selection combines the two effects, giving you a square selection centered on your starting point. Note that pressing these keys before starting your selection intersects the resulting selection with the existing one and the pointer change shape accordingly :

2.2.3. Tool manipulation

Rysunek 13.10. Example of Rectangle Selection.

Example of Rectangle Selection.

When this tool is selected the mouse pointer is displayed like this: as soon as it is over the image. A drag and drop allows to get a rectangular (or square) shape. When the mouse button is relaxed, a dotted line (marching ants) outlines the selection. It's not necessary to adjust the selection with care; you can resize it easily later.

When the pointer is moving on the canvas, the pointer and selection aspects change:

- outside the selection it looks like previously; this allows to design a new selection but will erase the existing one if this isn't combined with an action on the relevant key to add or subtract another selection as described in the previous paragraph.

- within selection peripheral parts, the mouse pointer changes into various shapes when overflying rectangular sensitive and clearly marked areas. These handles allow you to resize the selection. In selection corners the pointer changes into a shape according to the context; for instance in the low right corner it becomes: . So, by click-and-dragging these areas, you can magnify or shrink the selection size. Over median selection parts, lateral, low or up, pointer is changed into appropriate shapes according to the context. For instance, when the mouse pointer is over the median right side, the pointer looks like: . So you can click-and-drag to magnify or to shrink the selection size by moving the chosen boundary.

- inside selection central area the mouse pointer looks like usual for object manipulation, i.e.: . So you can move the whole selection by a click-and-drag.

Moreover, if you have not unchecked the Highlight option, your work will be easier because what is out the selection will be darkest than what is in the selection, and then the selection seems highlighted.

[Podpowiedź] Podpowiedź

If you use moving keys you can move the selection or modify its size by one pixel step. If you use it in combination with Shift you can move it by a 25 pixel step.

Rysunek 13.11. Sensitive selection areas

Sensitive selection areas

Display of all possible pointers in function of their localization with respect to the selection area.


After creating and modifying the selection, you will have to exit this editing mode (and commit any changes). You can do this with a single click inside the selection or by pressing the Enter key. Or you can just use a non-selection tool and, for example, fill or paint the selection.

2.2.4. Tool Options

Rysunek 13.12. Opcje Zaznaczenia prostokątnego

Opcje „Zaznaczenia prostokątnego”

Normally, tool options are displayed in a window attached under the Toolbox as soon as you activate a tool. If they are not, you can access them from the image menu bar through WindowsDockable WindowsTool Options which opens the option window of the selected tool.

[Uwaga] Uwaga

Оpis opcji wspólnych dla wszystkich narzędzi zaznaczania znajduje się na Narzędzia zaznaczania. Poniżej opisane zostały jedynie opcje charakterystyczne dla Zaznaczenia prostokątnego.

Mode; Antialiasing; Feather edges

Common select options.

Zaokrąglaj rogi

Zaznaczenie pola wyboru spowoduje pojawienie się suwaka, pozwalającego na wybór promienia, służącego do zaokrąglania rogów obrazu.

Powiększaj od środka

Zaznaczenie pola wyboru spowoduje, że punkt kliknięcia stanie się środkiem zaznaczenia.

Fixed

Opcja ta pozwala na ograniczenie formy końcowego prostokąta na kilka sposobów:

Proporcje

Opcja ta pozwala na zmianę rozmiaru zaznaczenia, nie zmieniając proporcji, które są określone w polach Szerokość i Wysokość.

Szerokość

Dzięki tej opcji można zmieniać szerokość zaznaczenia.

Wysokość

Opcja pozwala określić wysokość zaznaczenia.

Rozmiar

Opcja pozwala określić szerokość i wysokość zaznaczenia.

X; Y; Szerokość; Wysokość

Cztery pola pozwalają określić punkt początkowy, szrokość i wysokość zaznaczenia.

Podświetlenie

Zaznaczając pole, zaznaczenie jest podkreślone poprzez otaczającą maskę, aby łatwiej było je zwizualizować.

Prowadnice

Rozwijana lista pozwala wybrać rodzaj prowadnic, pokazywanych wewnątrz zaznaczenia. Ich zadaniem jest ułatwianie tworzenia zaznaczenia.

Bez prowadnic

Prowadnice nie są pokazywane.

Wyśrodkowane linie

Jedynie linie środkowe są pokazywane w charakterze prowadnic wewnątrz zaznaczenia.

Jedna trzecia

Prowadnice są wyświetlane wzdłuż jednej trzeciej podczas tworzenia zaznaczenia.

Złoty podział

Prowadnice są pokazywane w celu oznaczenia złotego podziału.

Zmniejsz zaznaczenie

Opcja Zmniejsz zaznaczenie zmniejszy zaznaczenie do najbliższej formy prostokątnej, dostępnej w warstwie. Algorytm znajdowania najlepszego prostokąta jest inteligentny, dlatego nie zawsze daje pożądane rezultaty. W każdym razie, jeśli obszar, który chcemy zaznaczyć, jest otoczony jednolitym kolorem, to opcja zawsze go znajdzie. Otrzymane zaznaczenie może się różnić od tego otrzymanego podczas ręcznego wprowadzania parametrów.

Wszystkie warstwy

Jeśli wybrana jest opcja Próbkuj wszystkie warstwy, to Zmniejsz zaznaczenie będzie korzystać z informacji о pikselach z całego obrazu, а nie tylko warstwy aktywnej. Więcej informacji na Próbkuj wszystkie warstwy.