5.2. Контуры

The Paths tool allows to create complex selections called Bézier Curves, a bit like the Free Selection tool but with all the adaptability of vectorial curves. You can edit your curve, you can paint with your curve, or even save, import, and export the curve. You can also use paths to create geometrical figures. Paths have their own dialog box: Dialog.

5.2.1. Активация инструмента

There are different possibilities to activate the tool:

  • From the main menu: ToolsPaths.

  • By clicking the tool icon in the Toolbox.

  • By pressing the B keyboard shortcut.

5.2.2. Клавиши-модификаторы (по умолчанию)

[Примечание] Примечание

Краткая справка по использованию этих клавиш появляется внизу окна изображения.

Shift

У этой клавиши несколько функций в зависимости от контекста. За подробностями обратитесь к описанию параметров.

Ctrl ; Alt

У инструмента «Контуры» три режима: Создание, Правка и Перемещение. Клавиша Ctrl переключает режимы между Созданием и Правкой. Клавиша Alt (а также Ctrl+Alt) переключает режимы между Созданием и Перемещением.

5.2.3. Параметры

Рисунок 14.134. Параметры инструмента «Контуры»

Параметры инструмента «Контуры»

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 main menu through WindowsDockable WindowsTool Options which opens the option window of the selected tool.

Режим создания

По умолчанию этот инструмент находится в режиме Создание. Контур создаётся последовательными щелчками по точкам изображения. Создаваемые контрольные точки (узлы) можно передвигать, предварительно щёлкнув по ним. Между узлами находятся сегменты контура.

Числа — это шаги создания прямого контура из двух сегментов.

Кривые сегменты легко строить, двигая сегменты или узлы. Голубые стрелки обозначают кривую. Два маленьких рычага позволяют искривлять кривую смещением их положения.

[Подсказка] Подсказка

To quickly close the curve, press Ctrl key and click on the initial control point. In previous versions, clicking inside a closed path converted it into Selection. Now, you can use the Create selection from path button or the Path to Selection button in the Path Dialog.

[Подсказка] Подсказка

Два рычага по умолчанию расположены симметрично. Однако при первом же дальнейшем перемещении каждый узел становится рассинхронизированым с другим. Клавиша Shift возвращает рычагам симметричность.

Several functions are available in Design mode:

Вставка нового узла: удерживая Ctrl и наведя курсор мыши на уже существующий контур, можно увидеть, что курсор принимает форму знака «+». Щелчок создаст новый узел контура в той точке, над которой удерживался курсор.

Перемещение одного или нескольких узлов: при расположении на узле, курсор принимает форму крестика с четырьмя стрелками. Этот крестик можно перемещать. Сразу несколько узлов можно выбрать, нажав клавишу Shift и перетаскивая узлы обычным образом. Нажатие сочетания Ctrl+Alt даёт возможность перемещения всего контура как выделения.

Modifying handles: You have to Edit a node first. A handle appears. Drag it to bend the curve. Pressing Shift toggles to symmetric handles.

Modify segment: When the mouse pointer moves over a segment, it turns to a 4-arrows cross. Click and drag it to bend the segment. As soon as you move it, handles appear at both ends of the segment. Pressing the Shift key toggles to symmetric handles.

Adding a new subpath: When you press Shift and hover the mouse pointer outside the existing path, the mouse pointer starts displaying a square. Clicking will start a subpath that isn't connected to other curves, but is considered a part of the path.

Режим правки

Edit performs functions which are not available in Design mode. With this mode, you can work only on the existing path. When the mouse pointer is not on the path, the pointer changes to a small crossed circle and you can not do any path editing.

Добавление сегмента между двумя узлами: щелчком активируйте узел с одного конца контура. Значок указателя мыши примет форму двух объединенных пустых окружностей, означающую объединение узлов. Щёлкните второй узел, чтобы связать их. Это полезно для соединения незакрытых компонентов.

Remove a segment from a path: While pressing Shift+Ctrl key combination, point to a segment. The mouse pointer turns to a "-" sign. Click to delete the segment.

Add a node to a path: point to a segment. Pointer turns to "+"". Click where you want to place the new control point.

Remove a node: While pressing Shift+Ctrl key combination, point to a node. Pointer turns to "-"". Click to delete the node.

Добавление рычага к узлу: укажите на узел. Значок указателя мыши примет форму руки. При перетаскивании узла появится рычаг. Нажатие клавиши Shift делает рычаги симметричными.

Remove a handle from a node: While pressing Shift+Ctrl key combination, point to a handle. The pointer doesn't turn to the expected "-"" and remains a hand. Click to delete the handle.

[Внимание] Внимание

There is no warning before removing a node, segment or a handle.

Режим перемещения

Режим Перемещение позволяет перемещать компоненты контура по одному или все разом. Просто щелкните контур и перетащите его.

If you have several components, only the selected one is moved. If you click and drag outside the path, all components are moved. Pressing the Shift key toggles between moving all components and selected components only.

Многоугольники

При выборе этого параметра сегменты становятся только прямыми. Рычаги не отображаются, а сегменты не гнутся при их перемещении.

Выделение из контура

This button allows creation of a selection that is based on the path in its present state. This selection is marked with the usual "marching ants". Note that the path is still present: the current tool is still the path tool and you can modify this path without modifying the selection that has become independent. If you change tools, the path becomes invisible, but it persists in the Paths dialog and you can re-activate it.

Если контур не закрыт, GIMP закроет его прямой линией.

As the help pop-up tells, pressing Shift when clicking on the button will add the new selection to an already existing one. Pressing Ctrl will subtract the selection from the pre-existing selection, and the Shift+Ctrl key combination will intersect the two selections.

Fill path

This lets you fill an enclosed path with a solid color or pattern.

Обводка по контуру

See Раздел 3.21, «Stroke Paths» and Раздел 5, « Контуры ».

See the Path concept.