3. Быстрая маска

Рисунок 7.9. Изображение с активной быстрой маской

Изображение с активной быстрой маской

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

3.1. Общая информация

Normally when you create a selection in GIMP, you see it represented by the "marching ants" that trace along its outline. But really there may be a lot more to a selection than the marching ants show you: in GIMP a selection is actually a full-fledged grayscale channel, covering the image, with pixel values ranging from 0 (unselected) to 255 (fully selected). The marching ants are drawn along a contour of half-selected pixels. Thus, what the marching ants show you as either inside or outside the boundary is really just a slice through a continuum.

The QuickMask is GIMP's way of showing you the full structure of the selection. Activating it also gives you the ability to interact with the selection in new, and substantially more powerful, ways. To activate the QuickMask, click on the small red-outlined button at the lower left of the image window. The button is a toggle, so clicking it again will return you to normal marching-ant mode. You can also activate the QuickMask by selecting in the image window menu SelectToggle QuickMask, or by using the Shift+Q shortcut.

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

When you are in QuickMask mode, many image manipulations act on the selection channel rather than the image itself. This includes, in particular, paint tools. Painting with white causes the painted pixels to be selected; painting with black causes them to be unselected. You can use any of the paint tools, as well as the bucket fill and gradient fill tools, in this way. Advanced users of GIMP learn that «painting the selection» is the easiest and most effective way to delicately manipulate it.

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

To save the selection done by the Quickmask to a new channel; Make sure that there is a selection and that Quickmask is not active in the image window. Select in the image menu SelectSave to Channel. This will create a new channel in the channel dialog called «SelectionMask copy» (if you repeat this command you will create a «..copy#1», «...copy#2» and so on...).

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

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

You can learn more on Selection masks in the section dedicated to the channel dialog.