7.2. Создать слой

Команда Создать слой… запускает диалог «Создать новый слой», с помощью которого можно добавить новый пустой слой в стопку слоёв изображения, поверх активного слоя.

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

When a floating selection is present, this command will show up as To New Layer. Using this, will turn the floating selection into a normal layer without opening the New Layer dialog.

7.2.1. Активация команды

  • You can access this command from the main menu through LayerNew Layer…, or by clicking on the dedicated button in the layer dialog.

7.2.2. Описание диалога «Новый слой»

Рисунок 16.90. Диалог «Новый слой»

Диалог «Новый слой»

Below the title «Create a new layer», the name of the image that this new layer will belong to, is displayed. To the right of the title a thumbnail of that image is shown. This will enable you to check that you are adding the layer to the correct image when there is more than one image open.

Имя слоя

The name of the new layer. It does not have any functional significance; it is simply a convenient way for you to remember the purpose of the layer. The default name is «Layer», but it remembers the last name you used. If a layer with the name you chose already exists, a number is automatically appended to it to make the name unique (e.g., «Layer #1») when you click OK to create the layer.

Цветовая метка

If you click on one of these color buttons, the "Eye" icon box of the created layer will have this color. This can help you identify or group layers to make them easier to spot when you have a lot of layers in your image.

Режим

A layer's mode determines how the layer is combined with the layers below it. The default is «Normal». The drop-down list offers a wide choice of layer modes, also known as blend modes. On the right, there is another drop-down list to select between «Default» or «Legacy» layer modes.

Layer modes are described in more detail in Layer Modes and Legacy Layer Modes.

Пространство смешивания, Composite space

The color space used for blending or compositing the layer with the layers below it. «Blending» determines how the colors of the upper and lower layer are mixed together, and «compositing» how the upper and lower layer are merged together with respect to the transparency of each pixel.

Depending on the layer mode (see above) one or both of these settings may be disabled. It is only enabled for layer modes where setting this has any effect. When enabled, the default is Auto. The other choices are RGB (linear) and RGB (perceptual). Note that what Auto translates to, depends on the chosen layer mode. It is not the same for all modes. Some use linear, others use perceptual.

The linear and perceptual (non-linear) encodings are described in choosing precision and encoding and in the Glossary.

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

When changing the layer mode, both Blend space and Composite space are always reset to Auto to make sure the settings make sense for that particular layer mode.

Режим совмещения

The layer Mode, sometimes referred to as its «blend mode» (Normal, Multiply, etc.), determines how the color values of the layer and its backdrop are combined (together with the Blend space setting). The composite mode of a layer determines how the alpha values of the layer and its backdrop are combined (together with the Composite space setting). The layer's backdrop is the content against which the layer is composited; namely, it's the combination of the layers below it.

There are two regions of interest when compositing the layer against its backdrop: the opaque region of the backdrop, and the opaque region of the layer. The layer's blend mode determines how to combine the colors of the intersection of these two regions: i.e., the common opaque region of both the backdrop and the layer (pixels belonging to only one of these regions don't need to be combined with anything, and retain their original color). The layer's composite mode determines which part of these regions to keep, and which to discard.

The example images below show the composition of two layers — the bottom layer containing a red feathered circle, and the top layer containing a green feathered circle — using «Addition» mode, and different composite modes (applied to the top layer).

  • Объединение: сохраняет непрозрачные области и слоя и его задника, т.е. объединяет их.

    Рисунок 16.91. Пример для параметра «Объединение»

    Пример для параметра «Объединение»

  • Обрезка до фона: сохраняет непрозрачные области только задника (и таким образом включает общую непрозрачную область и в задник и в слой, то есть их пересечение).

    Рисунок 16.92. Пример для параметра «Обрезка до фона»

    Пример для параметра «Обрезка до фона»

  • Обрезка до слоя: сохраняет непрозрачные области только слоя (включая, таким образом, общую непрозрачную область и в задник и в слой, то есть их пересечение).

    Рисунок 16.93. Пример для параметра «Обрезка до слоя»

    Пример для параметра «Обрезка до слоя»

  • Пересечение: сохраняет непрозрачные области и задника и слоя, т.е. их пересечения.

    Рисунок 16.94. Пример для параметра «Пересечение»

    Пример для параметра «Пересечение»

  • Авто: режим «Авто» не является отдельным режимом совмещения, но скорее соответствует одному или другому режиму совмещения,в зависимости от режима смешивания: для режимов «Нормальный», «Растворение» и «Объединение» он соответствует «Объединению», а для других режимов (поддерживающих различные режимы совмещения) он соответствует режиму «Обрезка до фона».

Непрозрачность

Настраивает непрозрачность картины на холсте. Значение по умолчанию. — 100%.

Width, Height

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

Offset X, Offset Y

The default origin of the new layer is the upper left corner of the image canvas. Here, you can set the exact position of the layer. By choosing a negative offset, you can set the layer to be partially outside the image canvas.

Заливка

There are five options for filling the new layer: the current Foreground color, the current Background color, White, Transparency, and the current Pattern.

Переключатели

These switches on the right side of this dialog are described in the Layer Dialog documentation. See Layer Attributes (Visible and Linked), and Layer Characteristics (Lock pixels, Lock position and size, Lock alpha).