7.52. Décalage

Le Décalage vous permet de décaler le contenu du calque actif. Tout ce qui est décalé en-dehors des bords du calque est découpé. Le choix de cette entrée du menu ouvre une boîte de dialogue qui vous permet de spécifier la façon de décaler et comment remplir l’espace laissé vide par le décalage. Il sert à créer des motifs raccordables.

This command only works on a single layer.

7.52.1. Accès à la commande

You can access this command

  • From the main menu through LayerTransformOffset….

  • By using the keyboard shortcut Shift+Ctrl+O.

7.52.2. Options de « Décalage »

Figure 16.116. Le dialogue « Décalage »

Le dialogue « Décalage »

Préréglages, Aperçu, Diviser la vue

Ces options sont communes aux dialogues fondés sur GEGL. Reportez-vous à Section 2, « Options communes ».

Décalage
X; Y

With these two values, you specify how far the contents of the layer should be shifted in the horizontal (X) and vertical (Y) directions.

You can enter the offsets in the text boxes. Positive values move the layer to the right and downward. The default unit is pixels, but you can choose a different unit of measurement with the drop-down menu. A unit of « % » is sometimes useful.

You can also click-and-drag on canvas to move the layer.

By width/2, height/2

Grâce à ce bouton, vous pouvez fixer automatiquement les décalages X et Y à la moitié de la largeur et de la hauteur de l’image respectivement.

By width/2

Same as above, but only the X offset is set to exactly half the width of the image.

By height/2

Same as above, but only the Y offset is set to exactly half the height of the image.

Comportement sur les bords

Il y a trois façons de remplir la partie du calque dégagée par le décalage:

  • Reboucler: Ce qui sort d’un côté rentre de l’autre côté.

  • Remplir avec la couleur d’Arrière-plan: Utilise la couleur d’arrière-plan de la Boîte à outils.

  • Make transparent: The empty space is made transparent. If the layer does not have an alpha channel, this choice is disabled.

7.52.3. Exemples

Figure 16.117.  Using « Offset » together with « Edge Behavior »

Using « Offset » together with « Edge Behavior »

Original image

Using « Offset » together with « Edge Behavior »

Y = -40, Edge Behavior = Wrap around

Using « Offset » together with « Edge Behavior »

Y = -40, Edge Behavior = Fill with background color

Using « Offset » together with « Edge Behavior »

Y = -40, Edge Behavior = Make transparent


Figure 16.118. Motif répétitif

Motif répétitif

Original image; the corresponding Layers Dialog

Motif répétitif

Edge Behavior = Wrap around, Offset = By width/2, height/2

Motif répétitif

Create a repeated pattern via the Tile filter