2. Modes de la capa

GIMP has thirty-eight layer modes, split up in seven groups: Normal, Lighten, Darken, Contrast, Inversion, HSV components, and LCh components. In addition to these layer modes, there are also the so-called legacy layer modes, which were used before GIMP 2.10. They are still available for backwards compatibility with saved images from older GIMP versions, but should normally not be used when creating new images.

Layer modes are also called «blending modes». Selecting a layer mode changes the appearance of the layer or image, based on the layer or layers beneath it. Each layer in an image can have a different layer mode. The effects of these layer modes are cumulative. However, setting the mode to anything but Normal for the bottom layer of any layer group and the bottom layer of the image has no effect.

You can set the layer mode in the Mode drop-down menu at the top of the Layers Dialog. GIMP uses the layer mode to determine how to combine each pixel in the top layer with the pixel in the same location in the layer below it.

[Nota] Nota

When the active tool is a painting tool, there is a drop-down list in the Tool Options which contains modes that affect the painting tools in a similar way to the layer modes. You can use all of the same modes for painting that are available for layers, and there are additional modes just for the painting tools. See Secció 3.1.3, «Exemples del mode pintura».

Layer modes permit complex color changes in the image. They are often used with a new layer which acts as a kind of mask. For example, if you put a solid white layer over an image and set the layer mode of the new layer to «HSV Saturation», the underlying visible layers will appear in shades of gray.

Figura 8.8. Images used for the layer mode examples

Images used for the layer mode examples

Background image (bottom layer)

Images used for the layer mode examples

Mask (top layer)


The examples below show the effects of each of the layer modes. Each example will also describe the effect of the layer mode.

Since the results of each mode vary greatly depending upon the colors on the layers, these images can only give you a general idea of how the modes work. You are encouraged to try them out yourself. You might start with two similar layers, where one is a copy of the other, but slightly modified (by being blurred, moved, rotated, scaled, color-inverted, etc.), and see what happens when you change the layer mode of the top layer.

2.1. Modes de les capes normals

The «Normal» group is a bit of a misnomer. Most of the modes besides «Normal» are cancellation modes.

Normal

Figura 8.9. Exemple del mode capa «Normal»

Exemple del mode capa «Normal»

Top layer is at 50% Opacity.

Exemple del mode capa «Normal»

With 100% opacity for the top layer, only the upper layer is shown when blending with «Normal», except for the transparent areas.


El mode Normal és el mode capa per defecte. La capa superior cobreix les capes que hi ha per sota. Si voleu veure qualsevol cosa per sota de la capa superior quan useu aquest mode, la capa ha de tenir àrees transparents.

Dissol

Figura 8.10. Exemple per al mode capa «Dissol»

Exemple per al mode capa «Dissol»

Top layer is at 50% Opacity. The effect of «Dissolve» is visible everywhere, except in areas that are completely transparent.

Exemple per al mode capa «Dissol»

With 100% opacity of the top layer, only some edges that are semi transparent are affected by «Dissolve».


Dissolve mode dissolves the upper layer into the layer beneath it by drawing a random pattern of pixels in areas of partial transparency. This is especially visible along the edges within an image. It can be useful as a layer mode, but it is also often used as a painting mode.

Esborrament del color

Figura 8.11. Example for layer mode «Color Erase»

Example for layer mode «Color Erase»

Top layer at 100% opacity using «Color Erase» mode.


Color Erase mode erases the colors in the upper layer from the lower layer. Black pixels in the upper layer make those parts in the bottom layer transparent, while white pixels have no effect. Anything in between removes those specific colors from the bottom layer, leaving the other color components intact.

Esborra

Figura 8.12. Example for layer mode «Erase»

Example for layer mode «Erase»

Top layer at 100% opacity using «Erase» mode. The white parts here are transparent.


Erase mode erases any non transparent area of the upper layer from the lower layer, making those parts in the bottom layer transparent.

Fusió

Figura 8.13. Example for layer mode «Merge»

Example for layer mode «Merge»

Top layer at 100% opacity using «Merge» mode.


Merge mode lays the source layer on top of the destination, the same as normal mode. However, it assumes the source and destination are two parts of an original whole, and are therefore mutually exclusive. This is useful for blending cut and pasted content without artifacts, or for replacing erased content in general.

Divisió

Figura 8.14. Example for layer mode «Split»

Example for layer mode «Split»

Top layer at 100% opacity using «Split» mode. The white parts here are transparent.


Split mode subtracts the source layer from the destination, such that recompositing the result with the source using merge mode reproduces the original content.