3. Snabbmask

Figur 7.9. Image with QuickMask enabled

Image with QuickMask enabled

smarkeringsverktyg uppvisar ibland sina begränsning när man skall använda dem för att göra en komplex markering. I dessa gör en snabbmask saker och ting mycket lättare. Enkelt uttryckt, snabbmasken låter dig att måla en markering istället för att rita längs konturerna på den.

3.1. Översikt

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.

Aktivera snabbmasken visar dig markering som om det fanns en halvgenomskinlig skärm som låg över bilden, vars transparens för varje pixel indikerar i vilken grad den pixeln är markerad. Som standard visas masken i rött, men du kan ändra det om du anser att en annan maskfärg skulle vara mer lämplig. Ju mindre än pixel är markerad, desto mer täckt är den av masken. Helt markerade pixlar visas helt.

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.

[Tips] Tips

För att spara en markering som gjorts med snabbmask till en ny kanal; se till att det finns en markering och att snabbmasken inte är aktiv i bildfönstret. Välj i bildmenyn MarkeraSpara till kanal. Detta kommer att skapa en ny kanal i kanaldialogen som kallas ”Markeringsmask-kopia” (om du upprepar kommandot så skapas en ”..kopia#1”, ”...kopia#2” och så vidare...).

[Tips] Tips

När snabbmasken är aktiv agerar klippa och klistra in snarare på markeringen än bilden. Du använda dig av detta på som det mest behändiga sättet att föra över en markering från en bild till en annan.

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