7.52. Desplazamiento

The Offset… command shifts the content of the active layer. Anything shifted outside the layer boundary is cropped. This command displays a dialog which allows you to specify how much to shift the layer and how to fill the space that is left empty by shifting it. It can be used to create tileable patterns.

This command only works on a single layer.

7.52.1. Activar el comando

You can access this command

  • From the main menu through LayerTransformOffset….

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

7.52.2. Opciones de Desplazamiento

Figura 16.116. El diálogo Desplazamiento

El diálogo “Desplazamiento”

Presets, Preview, Split view

Estas opciones son comunes a los diálogos basados en GEGL. Consulte Sección 2, “Características comunes”.

Desplazamiento
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

Con este botón, puede seleccionar automáticamente el desplazamiento X e Y de forma que que el contenido se desplaza exactamente la mitad de la anchura y altura de la imagen.

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.

Comportamiento de los bordes

Puede especificar una de las tres maneras para tratar las áreas sobrantes vacías cuando se desplazan los contenidos de la capa:

  • Volver al principio: el espacio vacío en un lado de la capa se rellena con la parte de la capa que se desplazó fuera del otro lado, por lo que no se pierde nada del contenido.

  • Rellenar con el color de fondo: el espacio vacío se rellena con el color de fondo, que se muestra en el área de color de la caja de herramientas.

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

7.52.3. Ejemplos

Figura 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


Figura 16.118. Patrón reproducible

Patrón reproducible

Original image; the corresponding Layers Dialog

Patrón reproducible

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

Patrón reproducible

Create a repeated pattern via the Tile filter