2.3. パスダイアログ

パスについての初歩からの解説が パス にあります。

図15.12 パスダイアログ

「パス」ダイアログ

パスダイアログは、 パスを作成、 削除、 保存するほか、 選択範囲と相互に変換するなどの管理作業に使います。

2.3.1. ダイアログの呼び出し方

バッファーダイアログはドッキング可能です。 その扱い方については 「ダイアログとその合体」 の節をご覧ください。

呼び出し方はつぎのとおりです。

  • 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. パスダイアログの利用法

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.

[注記] 注記

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:

パスの可視度

開いた目のアイコンはパスが可視化されているときに現れ、 不可視の場合はその欄が空白になります。 可視とはパスをなぞる線が画像ウィンドウ上に表示されていることをさします。 パスはその境界線を描画するなどの塗色をしなければ、 実際のところ画像の画素データとしては現れません。 目の印の欄をクリックすればパスの可視性が切り替わります。

パスの連結

の印はパスが組み合わせ変形対象になっているときに目の印の欄の右隣に現れ、 個別に変形できるときは消えています。 組み合わせ変形対象とはレイヤーやチャンネルなどの描画対象からなるひとつのまとまりに加わることをさしており、 そのいずれかが拡大・縮小や回転などの変形を受けると連結された他の描画対象がすべて同時に変形されるしくみです。 鎖の印の欄をクリックすればパスの組み合わせ変形の状態が切り替わります。

縮小見本画像

小さなプレビューアイコンがパスの素描を表示しています。 そのアイコンをクリックして画像上までドラッグすると、 画像にこのパスの複製が加わります。

パス名

パスの名前はその画像内で重複があってはいけません。 名前欄をダブルクリックすると編集ができるようになります。 既に使われている名前をつけたときは名前の唯一性を確保するため名前のあとにコピーの語句が付け加えられ、 さらに同じ名前を与えるとこんどは#1のような番号が振られます。

一覧表が空でなければ、 その中のどれかひとつのパスが必ず画像の 活性パス とされ、 ダイアログのメニューや下側に並ぶボタンを通じて行なうあらゆる操作の対象となります。 活性パスは一覧表で強調表示されます。 パスの一覧表のひとつをクリックすればそれが活性パスになります。

一覧表のいずれの項目もマウスの 第2ボタン でクリックすると、 後述する パスメニュー が出てきます。 またダイアログのタブメニューからもこのメニューを呼び出せます。

2.3.3. アイコンボタン

パスダイアログの底部にあるボタンはすべてパスメニュー (一覧表のいずれかの項目を 第2ボタン クリックして起用) の項目にも同じコマンドがありますが、 修飾キーを押しながらクリックすれば拡張オプションが扱えるボタンもいくつかあります。

新しいパスを画像に追加

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

パスを前面へ

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

パスを背面へ

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:

修飾キー 動作
なし 既存の選択範囲に置き換わります
Shift 選択範囲を追加します
Ctrl 選択範囲から除外します
Shift+Ctrl 重なりを選択範囲にします
選択範囲をパスに

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.

パスの削除

Delete Path deletes the currently selected path.

2.3.4. パスの脈絡メニュー

図15.13 パスの脈絡メニュー

「パス」の脈絡メニュー

パスメニューを開くにはパスダイアログのパス一覧表の項目上をマウスで 第2ボタン クリックするか、 パスダイアログのタブメニューの最初の項目 (パスメニュー) を辿ります。 このメニューでパスに関わる操作の大部分が行えます。

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.

パス名の変更...

パス名の変更... はパスの名前を変更できる小さなダイアログを呼び出します。 パス名の変更はパスダイアログの一覧表内のパス名をダブルクリックしてもできます。

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.

新しいパスを画像に追加

新しいパス... は一面の新たなパスを作成し、 パスダイアログの一覧表にその項目を加え、 その画像においての活性パスにします。 また新しいパスの名前を与えるためのダイアログを開きます。 新しいパスにはまだアンカーポイントがひとつも置かれていないので、 何をするにしてもまずはパスツールを使ってパスを作成するところから始める必要があります。

パスを前面へ

パスを前面へ によりパスダイアログの一覧表上でパスの項目を一段上に移動できます。 パスは一覧表のどの位置にあっても機能上の変化はありませんので、 これは単に内容を整理しておくための方便に過ぎません。

パスを背面へ

パスを背面へ によりパスダイアログの一覧表上でパスの項目を一段下に移動できます。 パスは一覧表のどの位置にあっても機能上の変化はありませんので、 これは単に内容を整理しておくための方便に過ぎません。

パスの複製

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.

パスの削除

現在活性化しているパスを削除します。

可視パスの統合

可視パスの統合 はその画像にあるパスのすべての可視パス (すなわちパスダイアログで開いた目 の印がついているものすべて) の成分を一面のパスの成分としてまとめます。 これはパスの境界線を同じ方法で描画するという場合などに便利な機能です。

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.

選択範囲をパスに

この操作コマンドの呼び出し方はいろいろあります。

  • From the main menu, as SelectTo Path

  • パスダイアログのメニューより 選択範囲をパスに

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

選択範囲をパスに は画像上の選択範囲から新たなパスを作成します。 出来上がったパスは大抵が選択範囲の蟻の行進に沿ってひかれますが、 常に完全一致をするものではありません。

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

この操作コマンドの呼び出し方はいろいろあります。

  • 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…

この操作コマンドの呼び出し方はいろいろあります。

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

[ヒント] ヒント

パスダイアログの縮小見本画像をクリックして他の画像までドラッグして放ってもパスを転写できます。

[注記] 注記

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

パスの貼り付け

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.

パスをインポート...

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.