Следующий диалог позволяет управлять и манипулировать такими структурами изображения, как слои, каналы и контуры.
Диалог «Слои» является главным интерфейсом для редактирования, изменения и управлениями слоями.
Диалог «Буферы» можно прикрепить на панель. Более подробно об этом написано в разделе Раздел 2.3, «Диалоги и панели».
Его можно открыть следующими способами:
from the main menu:
→ → ;from the Tab menu in any dockable dialog by clicking on and selecting → ,
при помощи клавиши быстрого доступа (по умолчанию): Ctrl+L.
In the detached windows which exists only if at least one dialog remains open. In this case, you can raise the «Layers» dialog from the main menu: → .
menu, there is a list ofКаждый слой появляется в диалоге в виде миниатюрного изображения. Когда изображение содержит несколько слоёв, они появляются в виде списков. Верхний слой в списке является первым видимым (самым верхним в стопке), а самый нижний — последним видимым, то есть фоновым. Над списком можно увидеть характеристики активного (выбранного в данный момент) слоя. Под списком находятся кнопки управления списком слоёв. При нажатии правой кнопкой мыши на изображении вызывается меню слоя.
Each entry in the list is a layer along with its attributes:
Clicking this icon toggles whether the layer is visible or not. (Shift-clicking on the icon causes all other layers to be hidden.)
Clicking on the empty checkbox in the lock column of a layer opens a menu with the following options:
Lock pixels: When this toggle button is enabled, you cannot use any brush-based tool (Paintbrush, Pencil, Eraser etc.), the Airbrush or the Ink tool on the currently selected layer. This may be necessary to protect them from unwanted changes.
Lock position and size: This toggle button enables or disables protection of layers from moving them around or transforming them. When this is enabled, then you cannot use any transform tool (Rotate, Shear, Perspective and others) or move it.
Lock visibility: This toggle button controls the «Lock» setting for the visibility of the layer. If this is enabled, the layer visibility cannot be changed.
Lock alpha channel: This toggle button controls the «Lock» setting for the transparency of the layer. If this is enabled, the alpha channel for the layer is locked, and no manipulation has any effect on it. In particular, nothing that you do to a transparent part of the layer will have any effect.
Подсказка | |
---|---|
Если название слоя выделено жирным шрифтом, у этого слоя нет альфа-канала. |
The layer content is represented in a thumbnail. Maintaining left-click for a second on this thumbnail makes it larger. The border color of the layer depends on whether the layer is active or inactive.
You can change the name of the layer by double-clicking on it. You can also use the Edit Layer Attributes dialog in the context menu that you get by right-clicking on the layer.
Примечание | |
---|---|
In the case of an animation layer (GIF or MNG), the name of the layer can be used to specify certain parameters: Layer_name (delay in ms) (combination mode), for example Frame-1 (100 ms) (replace). The delay sets the time during which the layer is visible in the animation. The combination mode sets whether you combine the layer with the previous layer or replace it: the two modes are (combine) or (replace). |
Above the layer list, it is possible to specify some properties for the active layers. The active layers are highlighted. The properties are:
Режим слоя определяет способ взаимодействия активного слоя с другими слоями. Через ниспадающий список можно выбрать любой из доступных в GIMP режимов. Подробнее о каждом из режимов можно прочитать в Раздел 2, «Режимы слоёв».
Перемещая ползунок, вы увеличиваете или уменьшаете непрозрачность слоя. Когда значение непрозрачности равно 0, слой является прозрачным и абсолютно невидимым. Не путайте это с маской слоя, которая устанавливает прозрачность поточечно.
Под списком слоёв находятся несколько кнопок, при помощи которых осуществляются основные операции со списком слоёв.
Здесь можно создать новый слой. Будет открыт диалог, описываемый в разделе Создать слой.
Нажмите Shift для создания нового слоя с последними использованными ранее параметрами.
Здесь можно создать новую группу слоёв. Будет создан новый слой, в котором можно разместить другие слои.
Группы слоёв описываются в разделе Группы слоёв.
С помощью этой функции можно поднять активный слой на один уровень выше в списке. Если при этом удерживать нажатой клавишу Shift, слой станет самым верхним.
С помощью этой функции можно опустить активный слой на один уровень ниже в списке. Если при этом удерживать нажатой клавишу Shift, слой окажется в самом низу.
Подсказка | |
---|---|
Для того, чтобы переместить самый нижний слой, к фоновому слою сначала может понадобиться добавить прозрачный слой (также называемый альфа-каналом. Чтобы сделать это, щёлкните правой клавишей мыши по фоновому слою и выберите в появившемся меню Добавить альфа-канал. |
Here you can create a copy of the selected layers. Name of new layer is suffixed with "copy".
Before GIMP-2.10.18, this button was permanently for anchoring. Now, it becomes an anchor only when a floating selection is created (it anchors the floating selection to the previous active layer). Else, it is a with several possibilities:
iconMerge these layers with the first visible layer below it.
Pressing Shift: merge the layer group's layers into one normal layer.
Pressing Ctrl: merge all visible layers into one layer.
Pressing Shift+Ctrl: merge all visible layers with last used values.
Add masks to selected layers.
Select layers by patterns and store layer sets.
Allows you to group layers for operations on more than one layer at a time (for example with the Move tool).
Here you can delete the active layers.
Other functions about layer size are available in the Layer context menu you get by right clicking on the Layer Dialog. You can find them also in the submenu of the main menu.
You will find merging layers functions in the Image main menu.
Нажмите и потяните миниатюрное изображение слоя: оно увеличится и его можно будет перемещать с помощью мыши.
Таким образом слои можно менять местами в списке.
Кроме того, если переместить слой на панель инструментов, то будет создано новое изображение, состоящее только из этого слоя.
Наконец, вы можете переместить слой в другое изображение, он будет добавлен и станет самым верхним в стопке.
By right-clicking in the layer dialog, or by opening the
from the tab menu, a context menu for the Layers dialog will open.Most of the commands in this menu have already been documented above, or elsewhere:
Except for Width, Height, and Fill with, this dialog is the same as the New Layer Dialog. For information about the layer attributes we therefore refer to the documentation for that dialog.
See Blend space in the New Layer dialog.
See Composite space in the New Layer dialog.
See Composite mode in the New Layer dialog.
See the Color tag documentation in the New Layer dialog.
These commands are explained above, see layer characteristics.
See the New from Visible menu command documentation.
See the Layer Boundary Size… menu command documentation.
See the Layer to Image Size menu command documentation.
See the Scale Layer… menu command documentation.
See the Layer Mask submenu documentation for these commands.
Only one of these will be enabled. If the current layer does not have an alpha channel, you will be able to add one. If it does, you can remove the alpha channel.
This command merges all visible layers into one layer.
This command merges all layers into one layer and removes transparency.
A transparency mask can be added to each layer, which defines what parts of the layer are transparent or opaque. We call this a layer mask. A layer mask has the same size and same number of pixels as the layer to which it is attached. Every pixel of the mask can then be coupled with a pixel at the same location in the layer. The mask is a set of pixels in grayscale. The pixels with a value 0 are black and give a full transparency to the coupled pixel in the layer. The pixels with the maximum value (either 1.0 or 255) are white and give full opacity to the coupled pixel in the layer.
To create a layer mask start with a right click on the layer to call the context menu and select
in the menu. A dialog appears where you can initialize the content of the mask:Белый цвет (полная непрозрачность): в диалоге слоёв маска — белая. Все точки слоя видимы в изображении, поскольку рисование белым на маске делает точки слоя видимыми. При рисовании чёрным точки слоя становятся прозрачными.
Чёрный цвет (полная прозрачность): в диалоге слоёв маска — чёрная. Весь слой полностью прозрачен, поскольку рисование чёрным по маске делает точки слоя невидимыми. Рисование белым удалит маску и сделает точки слоя видимыми.
Layer's alpha channel: the mask is initialized according to the contents of the layer's alpha channel.
Передать альфа-канал слоя: Действует аналогично предыдущему параметру, за исключением того, что этот параметр сбрасывает альфа-канал слоя в полную непрозрачность.
Selection: the mask is initialized according to pixel values found in the current selection.
Grayscale copy of layer: the mask is initialized according to a grayscale representation of the pixel values of the layer.
Канал: маска слоя создаётся из маски выделения, созданной ранее и сохранённой в диалоге каналов.
Invert mask: This checkbox allows you to invert: black turns to white and white turns to black.
When the mask is created, it appears as a thumbnail next to that of the layer itself. You can select the layer or the mask for editing by clicking on their respective thumbnails. The active item has a white border (which may not be clearly visible when you have a white mask).
When working with masks, it is a good idea to keep the Layers Dialog prominently visible, because you can't see, by looking at the canvas, whether the layer or the mask is active.
Pressing Alt (or Ctrl+Alt and clicking on the layer mask thumbnail) is equivalent to the Show Layer Mask command: the layer mask border turns to green. If you press Ctrl the border is red and the result is equivalent to the Disable Layer Mask command. To return to normal view repeat the last operation. These options are for greater convenience in your work.