7.50. Poslinkis

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.

7.50.1. Activating the Command

  • You can access this command from the main menu through LayerTransformOffset…,

  • arba naudojant klavišų kombinaciją Shift+Ctrl+O.

7.50.2. Offset Options

Pav. 16.116. Dialogas Poslinkis

Dialogas „Poslinkis“

Presets, Preview, Split view

These options are common to GEGL-based dialogs. Please refer to Skyrius 2, „Common Features“.

Poslinkis
X; Y

Šiomis reikšmėmis nurodote kaip toli turėtų būti perkeltas sluoksnio turinys horizontalia (X) ir vertikalia (Y) kryptimi. Šiuos poslinkius galite įvesti teksto laukeliuose. Teigiamos reikšmės perkelia sluoksnį į dešinę ir žemyn. Numatytasis vienetas yra pikselis, tačiau meniu galite pasirinkti kitą matavimo vienetą. Kartais naudingas matavimo vienetas yra %.

Since GIMP-2.10.12, you can click-and-drag on canvas to move the layer.

By width/2, height/2

Šiuo mygtuku galite automatiškai nustatyti X ir Y poslinkius, kad turinys būtų paslenkamas tiksliai per pusę paveikslėlio pločio ir aukščio.

Kraštų elgsena

Galite pasirinkti vieną iš trijų būdų, kaip elgtis su tuščiomis sritimis, atsiradusiomis perkėlus sluoksnio turinį:

  • Apvesti: viename sluoksnio šone esanti tuščia erdvė yra užpildoma sluoksnio, kuris perkeliamas iš kitos pusės, dalimi, todėl joks turinys neprarandamas.

  • Užpildyti fono spalva: tuščia erdvė užpildoma fono spalva, kuri parodyta įrankinės Spalvos srityje.

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

7.50.3. Examples

Pav. 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


Pav. 16.118. Repeatable pattern

Repeatable pattern

Original image; the corresponding Layer Dialog

Repeatable pattern

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

Repeatable pattern

Create a repeated pattern via the Tile filter