### 6.30. Align Visible Layers…

可視レイヤーの整列... コマンドによって可視レイヤー (レイヤーダイアログ上では「目」のしるしがついている) を極めて精密に配置できるようになります。 とくに小さなレイヤーを多く使うアニメーション作成で効果を発揮します。 可視レイヤーの整列... コマンドを呼び出すとダイアログが現れ、 レイヤーを揃える方式が選択できます。

#### 6.30.1. コマンドの呼び出し方

- You can access this command from the main menu through Image → Align Visible Layers…. There is no default keyboard shortcut. If the image holds a single layer only, you get a message from GIMP telling that there must be more than one layer in the image to execute the command.

#### 6.30.2. Example Image for Layer Alignment

The examples in the Description of the “Align Visible Layers” dialog section all use the same starting image. The image contains four layers. The order of those layers from top to bottom is as follows:

- Green, vertical rectangle (top layer)

- Yellow, horizontal rectangle

- Red, small square

- Blue, larger square (bottom layer)

図16.71 Example Image for Layer Alignment

The Align Visible Layers command aligns layers based on their boundaries. In the example image, each layer's boundary is adjusted to match the perimeter of the shape in that layer. For information about how to adjust a layer's boundary, see Layer Boundary Size. You can also use a command such as Crop Layers to Content to automatically adjust a layer's boundary.

| 注記
In the examples, the Ignore the bottom layer even if visible checkbox is left checked. The bottom layer, which is the larger blue square, is then not affected by any of the alignment operations.

#### 6.30.3. 「可視レイヤーの整列」ダイアログのご説明

図16.72 「可視レイヤーの整列」ダイアログ

Horizontal style, Vertical style

  これらのオプションではレイヤーが移動するときのレイヤー同士の関係を調節できます。 つぎの 5 つの選択肢があります。

  - なし: これを選んだ水平もしくは垂直の方向では変更がありません。

  - 合わせる: 可視レイヤーは 水平方向基準 や 垂直方向基準 で定められた筋に揃えられます。 仮に 水平方向基準 に 右端 を選んだら、 レイヤーはキャンバスから消え去ってしまうでしょう。 でもキャンバスを拡張すればまた見えるところに入ります。 (不可視でも)一番下のレイヤーを基準に使う オプションを有効にすると背景レイヤーの左上隅に合わせてレイヤーが整列することになります。

    図16.73 Example Use of Collect: Layers Aligned to Left Edge of the Canvas

    元画像

    Horizontal style: Collect , Horizontal base: Left edge.

    各レイヤーはその左端がキャンバスの左端に接するところまで水平に平行移動した。

    図16.74 Example Use of Collect: Layers Aligned to Left Edge of the Bottom Layer

    元画像

    Same parameters as the previous example, but with the Use the (invisible) bottom layer as the base checkbox checked.

    各レイヤーはその左端が背景レイヤーの左端やその延長線に接するところまで水平に平行移動した。

  - Fill (left to right); Fill (top to bottom): The visible layers will be arranged left to right (or top to bottom) on the canvas according to their order in the layer stack.

    The top layer in the stack will be aligned with the layer that currently has the leftmost (or uppermost) position on the canvas. The bottom layer in the stack will be aligned with the layer that currently has the rightmost (or bottommost) position on the canvas. All other visible layers will be evenly distributed between those two positions according to their order in the layer stack.

    Your choice of Horizontal base (or Vertical base) determines how the top and bottom layers are aligned with their respective target layers. For example, if you choose Right edge as the Horizontal base, the right edge of the top and bottom layers will be aligned with the right edge of their target layers.

    | 注記
    If the Use the (invisible) bottom layer as the base checkbox is checked, the top layer in the stack will be aligned with the current position of the bottom layer in the stack, instead of the leftmost (or uppermost) layer on the canvas.

    図16.75 Example Use of Fill: Layers Filled Left to Right

    元画像

    Horizontal style: Fill (left to right), Horizontal base : Left edge.

    The top layer in the stack, the green one, was aligned with the layer that had the leftmost position on the canvas. The bottom layer in the stack, the red one, was aligned with the layer that had the rightmost position on the canvas. The yellow layer is placed between the other two.

    図16.76 Example Use of Fill: Layers Filled Left to Right With the Bottom Layer as the Base

    元画像

    Same parameters as the previous example, but with the Use the (invisible) bottom layer as the base checkbox checked.

    The top layer in the stack, the green one, is aligned with the left edge of the base layer. The bottom layer in the stack, the red one, was aligned with the layer that had the rightmost position on the canvas. The yellow layer is placed between the other two.

  - 右から左へ順番に; 下から上へ順番に: このような設定ならば以上で述べた整列と逆方向であるほかは同じ作用をします。

    図16.77 Example Use of Fill: Layers Filled Bottom to Top With the Bottom Layer as the Base

    元画像

    Vertical style: Fill (bottom to top), Vertical base : Top edge, Use the (invisible) bottom layer as the base: checked.

    The bottom layer in the stack, the red one, is aligned with the top edge of the base layer. The top layer in the stack, the green one, was aligned with the top edge of the of the layer that had the lowest position on the canvas. The yellow layer is placed between the other two.

    「○から○へ順番に」オプションが使えるのは、 画像に少なくとも 3 層の可視レイヤーがあるときです。

  - Snap to grid: The visible layers will be aligned with a grid. Use the Grid setting to define the spacing of the grid. The base that you select will be aligned with its closest grid line. For example, if you select Left edge from the Horizontal base list, the left edge of each layer will be aligned with the grid line that is closest to the layer's left edge.

    In the following example, the image grid is turned on and its spacing set to the same value as the Grid setting. This is only to help demonstrate the effect of the Snap to grid option. You don't need to turn on the image grid and none of its settings are used when you align layers.

    図16.78 Example Use of Snap to Grid: Layers Aligned to Top Left Corner of Grid Squares

    Original image with an added 30 pixel image grid

    Horizontal style: Snap to grid, Horizontal base: Left edge, Vertical style : Snap to grid, Vertical base: Top edge , Grid: 30

    Each layer other than the base is aligned with the top left corner of a 30 by 30 pixel grid square.

グリッド

  If you choose the Snap to grid option from either the Horizontal style or Vertical style lists, the Grid setting defines the spacing of the grid to which layers are aligned.

6.29. 画像の統合 |  | 6.31. 「Guides」 Submenu

Report a bug in GIMP Report a documentation error