2.3. Banedialogen

Er du usikker på kva ein bane er i denne samanhengen, kan du finne meir om dette i Del 5, « Banar ».

Figur 15.12. Banedialogen

Banedialogen

Banedialogen vert brukt når du skal arbeide på banar. Frå denne dialogen kan du opprette eller fjerne banar, lagra dei, omforma dei til og frå utval osv.

2.3.1. Aktivering

Dette er ein dialog som kan limast inn i andre dialogvindauge. Sjå nærare om dette i Del 2.3, «Dialogar og samlevindauge («dokker»)».

Du har tilgang til dialogvindauget

  • From the main menu, as WindowsDockable DialogsPaths.

  • from the Tab menu in any dockable dialog by clicking on and selecting Add TabPaths.

In the Windows menu, there is a list of detached windows which exists only if at least one dialog remains open. In this case, you can raise the «Paths» dialog from the main menu: WindowsPaths.

2.3.2. Å bruke banedialogen

Each path belongs to one image: paths are components of images just like layers. The Paths dialog shows you a list of all paths belonging to the currently active image: switching images causes the dialog to show a different list of paths. In multi-window mode, you can show the name of the active image at the top of the dock by choosing «Show Image Selection» from the Tab menu.

If you are familiar with the Layers dialog, you have a head start, because the Paths dialog is in several ways similar.

At the top, there are two «Lock» icons:

Lock Path

A «path» icon tells us whether editing the current path is locked (disabled) or not. Clicking the icon toggles between enabled and disabled.

[Notat] Notat

Until GIMP 2.10.32 this was called Lock Path Strokes. That name was considered ambiguous, because the term strokes is also used for stroking lines along a path, which this option does not change.

Lock Path Position

A «cross with arrows» icon tells us whether the current path position is locked (disabled) or not. When the path position is locked, the path can't be moved. Clicking the icon toggles between enabled and disabled.

The Paths dialog itself shows a list of all paths that exist in the image, with four items for each path:

Synleg bane av/på

Dersom banen er synleg, vert dette vist med eit bilete av eit «ope auge». Dersom banen ikkje er synleg, vil det i staden vere ein blank plass der auget skulle ha vore. Med «synleg» meiner ein her at det vert vist eit spor av banen på biletet. Sjølve banen vert eigentleg ikkje ein del av biletet før han vert strekt opp eller teikna på. Du kan slå visinga av banen av ved å klikka på augesymbolet, og på ved å klikka på plassen der det skulle ha vore.

Lenk saman banar

Til høgre for augesymbolet vert det vist eit «lenkesymbol» dersom banen er lenka saman med andre banar. Elles berre eit blankt område. At banane er lenka saman betyr i denne samanhengen at dersom du t.d. skalerer eller på andre måtar omformar eit bilete, vil dette påverka alle biletdelane som er lenka saman. Du kan slå lenka av ved å klikka på lenkesymbolet, og på ved å klikka på plassen der det skulle ha vore.

Miniatyrbilete

Miniatyren viser ei skisse av banen. Dersom du klikkar på miniatyren kan du dra han over i eit bilete for å lage ein kopi av banen der.

Banenamnet

Namnet på banen må vere unikt. Dersom du gir banen eit namn som er i bruk frå før, vert det lagt til eit tal, t.d. «#1» for å gjere det eineståande.

Dersom det finst namn i lista, vil eit av dei vere markerte for å vise kva for bane som er den aktive banen i biletet. Det er denne banen alle operasjonane vert utført på når du bruker dialogmenyen eller knappane nedst i dialogvindauget. Du kan klikke på lista for å gjere ønskt bane aktiv.

Høgreklikkar du på ei av oppføringane i lista, vil du få opp den lokale banemenyen.

2.3.3. Knappar

Knappene nedst i dialogvindauget samsvarar med tilsvarande oppføringar i banemenyen som dukkar opp når du høgreklikkar på lista. Noen av knappane har likevel noen tilleggsfunksjonar som vert tilgjengelege når du held nede ein kontrolltast medan du klikkar.

Ny bane

See New Path. Holding down Shift makes a new (empty) path with the last used values, without opening the New Path dialog.

Løft banen

See Raise Path. Holding down Shift moves the path to the top of the list.

Senk banen

See Lower Path. Holding down Shift moves the path to the bottom of the list.

Duplicate Paths

See Duplicate Paths.

Paths to Selection

Converts paths into a selection; see Paths to Selection for a full explanation. You can use modifier keys to set the way the new selection interacts with the existing selection:

Tast Handling
Ingen Byt med eksisterande utval
Forskyv Legg til i utvalet
Ctrl Trekk frå utvalet
Forskyv+Ctrl Snitt med utvalet
Utval til bane

Holding down Shift brings up the Advanced Options dialog, which probably is only useful to GIMP developers.

Paint along the paths

See Stroke Paths. Holding down Shift strokes the path based on the last used values without opening the Stroke Paths dialog.

Slett banen

Delete Path deletes the currently selected path.

2.3.4. Banemenyen

Figur 15.13. Banemenyen

Banemenyen

Den enklaste måte å få fram banemenyen er å høgreklikka på ei vising av ein bane i banedialogvindauget. Men du kan også klikka på fanemenyen og velje banemenyen derifrå. Banemenyen gir tilgang til dei aller fleste funksjonane du kan bruke på ein bane.

Edit Path

Edit Path is an alternative way to activate the Paths tool, used for creating and manipulating paths. It can also be activated from the Toolbox, or by using the keyboard shortcut B.

Rediger baneinnstillingane

Denne menyoppføringa lovar nok meir enn ho kan halda, for det einaste du kan bruke ho til, er å gi banen eit nytt namn i dialogvindauget som dukkar opp. Du kan oppnå det same ved å dobbeltklikka på banenamnet i banedialogen.

Color Tag

Color Tag brings up a sub menu, similar to the one in the Layers Dialog, that allows you to select a color tag for the selected path.

Ny bane

Dette valet oppretter ein ny bane og legg denne til lista i banedialogen. Den nye banen vert samstundes den aktive banen. Du får også opp dialogvindauget for å gi den nye banen eit namn. Den nye banen har ingen former for ankerpunkt, så du må bruka baneverktøyet for å leggja inn slike punkt før du kan bruka banen til noko som helst.

Løft banen

Denne kommandoen flytter banen eitt steg oppover på lista i banedialogen. Kva plass banen har i lista betyr ingenting for bruken av banen, men det kan vere til litt hjelp for å halde oversynet.

Senk banen

Denne kommandoen flytter banen eitt steg nedover på lista i banedialogen. Kva plass banen har i lista betyr ingenting for bruken av banen, men det kan vere til litt hjelp for å halde oversynet.

Dupliser banen

Duplicate Path creates a copy of the active path, assigns it a unique name, adds it to the list in the Paths dialog, and makes it the active path for the image. The copy will be visible only if the original path was visible.

Slett banen

Knappen Slett banen vert brukt for å fjerne den aktive banen frå lista og biletet.

Flett saman synlege banar

Dersom du klikkar på denne, vert alle synlege banar i biletet, dvs. banar som har synleg augesymbol i banedialogen, henta fram og sett saman til delar i ein og same bane. Dette kan vere nyttig dersom du ønskjer å streke dei opp med t.d. det same strekmønsteret.

Paths to Selection; Add Paths to Selection; Subtract Paths from Selection; Intersect Paths with Selection

These commands all convert the active paths into a selection, and then combine it with the existing selection in the specified ways. (Paths to Selection discards the existing selection and replaces it with one formed from the path.) If necessary, any unclosed components of the path are closed by connecting the last anchor point to the first anchor point with a straight line. The «marching ants» for the resulting selection should closely follow the path, but don't expect the correspondence to be perfect.

Utval til bane

Du har tilgjenge til denne operasjonen på fleire måtar:

  • From the main menu, as SelectTo Path

  • Frå banedialogen via Utval til bane.

  • From the Selection to Path button at the bottom of the Paths dialog.

Utval til bane lagar ein ny bane frå omrisset av det aktive utvalet. Som oftast vil banen følgja «dei marsjerande maura» som viser omrisset, men av og til kan det verta små avvik.

Converting a two-dimensional selection mask into a one-dimensional path involves some rather tricky algorithms: you can alter the way it is done using the Advanced Options, which are accessed by holding down the Shift key while pressing the Selection to Path button at the bottom of the Paths dialog. This brings up the Advanced Options dialog, which allows you to set 20 different options and variables, all with cryptic names. The Advanced Options are really intended for developers only, and help with them goes beyond the scope of this documentation. Generally speaking, Selection to Path will do what you expect it to, and you don't need to worry about how it is done (unless you want to).

Fill Paths

Du har tilgjenge til denne operasjonen på fleire måtar:

  • From the main menu, as EditFill Paths…

  • From the Paths dialog menu, as Fill Paths….

  • From the Fill Path button in the Tool Options for the Paths tool.

Fill Path fills all areas delimited by the path with the current foreground color or currently selected pattern. See the section about Fill Path for more information.

Stroke Paths…

Du har tilgjenge til denne operasjonen på fleire måtar:

  • From the main menu, as EditStroke Paths…

  • From the Paths dialog menu, as Stroke Paths….

  • From the Paint along the path button at the bottom of the Paths dialog.

  • From the Stroke Path button in the Tool Options for the Paths tool.

Stroke Path renders the active path on the active layer of the image, permitting a wide variety of line styles and stroking options. See the sections about Stroke Path and Stroking for more information.

Copy Paths

Copy Paths copies the active path to the Paths Clipboard, enabling you to paste it into a different image.

[Tips] Tips

Du kan også kopiere og lime inn ein bane ved å dra miniatyren i banedialogen over til eit biletvindauge.

[Notat] Notat

When you copy a path to an image, it is not visible. You have to make it visible in the Paths dialog.

Lim inn bane

Paste Path creates a new path from the contents of the Path Clipboard, adds it to the list in the Paths dialog, and makes it the active path for the image. If no path has previously been copied into the clipboard, the menu entry will be disabled.

Export Paths

Export Paths… allows you to save a path to a file: it pops up a file save dialog that allows you to specify the file name and location. You can later add this path to any GIMP image using the Import Path command. The format used for saving paths is SVG: this means that vector-graphics programs such as Sodipodi or Inkscape will also be able to import the paths you save. See the Paths section for more information on SVG files and how they relate to GIMP paths.

Importer bane

Import Path… creates a new path from an SVG file: it pops up a file chooser dialog that allows you to navigate to the file. See the Paths section for information on SVG files and how they relate to GIMP paths.