6.30. Alinea les capes visibles…

Amb l'ordre Alinea les capes visibles podeu posicionar amb molta precisió les capes visibles (aquelles marcades amb la icona de l'«ull»). Aquest grau de precisió és especialment útil si treballeu amb animacions, les quals normalment tenen capes petites. Si feu clic a Alinea les capes visibles, apareix un diàleg que us permet triar l'alineació de les capes.

6.30.1. Activació de l'ordre

  • Podeu accedir a aquesta ordre des del menú principal a través d'ImatgeAlinea les capes visibles.... No hi ha cap drecera de teclat predeterminada. Si la imatge només conté una sola capa, rebreu un missatge del GIMP que diu que ha d'haver-hi més d'una capa a la imatge per a executar l'ordre.

6.30.2. Example Image for Layer Alignment

The examples in the Description of the “Align Visible Layers” dialog section all use the same starting image. The image contains four layers. The order of those layers from top to bottom is as follows:

  • Green, vertical rectangle (top layer)

  • Yellow, horizontal rectangle

  • Red, small square

  • Blue, larger square (bottom layer)

Figura 16.76. Example Image for Layer Alignment

Example Image for Layer Alignment

The Align Visible Layers command aligns layers based on their boundaries. In the example image, each layer's boundary is adjusted to match the perimeter of the shape in that layer. For information about how to adjust a layer's boundary, see Layer Boundary Size. You can also use a command such as Crop Layers to Content to automatically adjust a layer's boundary.

[Nota] Nota

In the examples, the Ignore the bottom layer even if visible checkbox is left checked. The bottom layer, which is the larger blue square, is then not affected by any of the alignment operations.

6.30.3. Descripció del diàleg «Alinea les capes visibles»

Figura 16.77. Diàleg «Alinea les capes visibles»

Diàleg «Alinea les capes visibles»

Estil horitzontal, Estil vertical

Aquestes opcions controlen com s'haurien de moure les capes en relació amb les altres. Les opcions són:

  • Cap: No hi haurà canvis en la posició horitzontal o vertical, respectivament.

  • Recull: Les capes visibles s'alinearan al llenç, tal com es determina a les opcions Base horitzontal i Base vertical. Si seleccioneu Base horitzontal de la Vora dreta, podria ser que desapareguessin capes. Les podeu recuperar si engrandiu el llenç. Si seleccioneu l'opció Utilitza la capa (invisible) inferior com a base, les capes s'alinearan al cantó superior esquerra de la capa inferior.

    Figura 16.78. Example Use of Collect: Layers Aligned to Left Edge of the Canvas

    Example Use of Collect: Layers Aligned to Left Edge of the Canvas

    Imatge original

    Example Use of Collect: Layers Aligned to Left Edge of the Canvas

    Horizontal style: Collect , Horizontal base: Left edge.

    Les capes s'han mogut horitzontalment perquè les vores esquerres s'alineïn amb la vora esquerra del llenç.


    Figura 16.79. Example Use of Collect: Layers Aligned to Left Edge of the Bottom Layer

    Example Use of Collect: Layers Aligned to Left Edge of the Bottom Layer

    Imatge original

    Example Use of Collect: Layers Aligned to Left Edge of the Bottom Layer

    Same parameters as the previous example, but with the Use the (invisible) bottom layer as the base checkbox checked.

    Les capes s'han mogut horitzontalment perquè les vores esquerres s'alineïn amb la vora esquerra de la capa del fons.


  • Omple (d'esquerra a dreta); Omple (de dalt a baix): les capes visibles s'alinearan amb el llenç segons les vores que seleccioneu amb Base horitzontal o Base vertical, respectivament. Les capes s'ordenen regularment perquè no se solapin. La capa superior de la pila es troba a la posició més a l'esquerra (o més alta) de la imatge. La capa inferior de la pila es troba a la posició més a la dreta (o més baixa) de la imatge. Les altres capes es troben regularment entre aquestes dues posicions. Si marqueu l'opció Utilitza la capa (invisible) inferior com a base, les capes s'alineen amb la vora corresponent de la capa inferior.

    Figura 16.80. Example Use of Fill: Layers Filled Left to Right

    Example Use of Fill: Layers Filled Left to Right

    Imatge original

    Example Use of Fill: Layers Filled Left to Right

    Horizontal style: Fill (left to right), Horizontal base : Left edge.

    The top layer in the stack, the green one, is placed all the way on the left. The bottom layer in the stack, the red one, is placed is on the right and the yellow layer is between the other two.


    Figura 16.81. Example Use of Fill: Layers Filled Left to Right With the Bottom Layer as the Base

    Example Use of Fill: Layers Filled Left to Right With the Bottom Layer as the Base

    Imatge original

    Example Use of Fill: Layers Filled Left to Right With the Bottom Layer as the Base

    Same parameters as the previous example, but with the Use the (invisible) bottom layer as the base checkbox checked.


  • Omple (de dreta a esquerra); Omple (de baix a dalt): Aquests paràmetres funcionen d'una manera semblant als esmentats més amunt, però s'omplen en la direcció oposada.

    Figura 16.82. Example Use of Fill: Layers Filled Bottom to Top With the Bottom Layer as the Base

    Example Use of Fill: Layers Filled Bottom to Top With the Bottom Layer as the Base

    Imatge original

    Example Use of Fill: Layers Filled Bottom to Top With the Bottom Layer as the Base

    Vertical style: Fill (bottom to top), Vertical base : Top edge, Use the (invisible) bottom layer as the base: checked.


    Hi ha d'haver almenys tres capes visibles a la imatge per a poder utilitzar les opcions d'«Omple».

  • Snap to grid: The visible layers will be aligned with a grid. Use the Grid setting to define the spacing of the grid. The base that you select will be aligned with its closest grid line. For example, if you select Left edge from the Horizontal base list, the left edge of each layer will be aligned with the grid line that is closest to the layer's left edge.

    In the following example, the image grid is turned on and its spacing set to the same value as the Grid setting. This is only to help demonstrate the effect of the Snap to grid option. You don't need to turn on the image grid and none of its settings are used when you align layers.

    Figura 16.83. Example Use of Snap to Grid: Layers Aligned to Top Left Corner of Grid Squares

    Example Use of Snap to Grid: Layers Aligned to Top Left Corner of Grid Squares

    Original image with an added 30 pixel image grid

    Example Use of Snap to Grid: Layers Aligned to Top Left Corner of Grid Squares

    Horizontal style: Snap to grid, Horizontal base: Left edge, Vertical style : Snap to grid, Vertical base: Top edge , Grid: 30

    Each layer other than the base is aligned with the top left corner of a 30 by 30 pixel grid square.


Quadrícula

If you choose the Snap to grid option from either the Horizontal style or Vertical style lists, the Grid setting defines the spacing of the grid to which layers are aligned.