4.5. Сделать плавающим

The Float command converts a normal selection into a «floating selection».

A floating selection (sometimes called a «floating layer») is a type of temporary layer which is similar in function to a normal layer, except that before you can resume working on any other layers in the image, a floating selection must be anchored. That is, you have to attach it to a normal (non-floating) layer, usually the original layer (the one which was active previously), for instance, by clicking on the image outside of the floating selection (see below).

[Важно] Важно

You cannot perform any operations on other layers while the image has a floating selection!

You can use various operations to change the image data on the floating selection. There can only be one floating selection in an image at a time.

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

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

In early versions of GIMP, floating selections were used for performing operations on a limited part of an image. You can do that more easily now with layers, but you can still use this way of working with images.

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

  • You can access this command from the image menubar through SelectFloat,

  • or by using the keyboard shortcut Shift+Ctrl+L.

4.5.2. Creating a Floating Selection Automatically

Some image operations create a floating selection automatically:

  • The «paste» operations, Paste Named Buffer, Paste or Paste Into, also create a floating selection.

  • In addition, the Transform tools, Flip, Shear, Scale, Rotate and Perspective, create a floating selection when they are used on a selection, rather than a layer. When the Affect mode is Transform Layer and a selection already exists, these tools transform the selection and create a floating selection with the result. If a selection does not exist, they transform the current layer and do not create a floating selection. (If the Affect mode is Transform Selection, they also do not create a floating selection.)

  • By click-and-dragging a selection while pressing the Ctrl+Alt keys (see Раздел 2.1, «Перемещение выделения») you also automatically create a floating selection.

4.5.3. Anchor a Floating Selection

You can anchor a floating selection in various ways:

  • You can anchor the floating selection to the current layer the selection is originating from. To do this, click anywhere on the image except on the floating selection. This merges the floating selection with the current layer.

  • Or you can use the Anchor layer command (Ctrl+H).

  • You can also anchor the floating selection to the current layer by clicking on the anchor button of the Layers dialog.

  • If you create a New Layer while there is a floating selection, the floating selection is anchored to this newly created layer.