「目」のしるしがついている) を極めて精密に配置できるようになります。 とくに小さなレイヤーを多く使うアニメーション作成で効果を発揮します。 コマンドを呼び出すとダイアログが現れ、 レイヤーを揃える方式が選択できます。
コマンドによって可視レイヤー (レイヤーダイアログ上ではYou can access this command from the main menu through
→ . 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.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)
The Layer Boundary Size. You can also use a command such as Crop Layers to Content to automatically adjust a layer's boundary.
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
![]() |
注記 |
---|---|
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. |
これらのオプションではレイヤーが移動するときのレイヤー同士の関係を調節できます。 つぎの 5 つの選択肢があります。
: これを選んだ水平もしくは垂直の方向では変更がありません。
水平方向基準 や 垂直方向基準 で定められた筋に揃えられます。 仮に 水平方向基準 に を選んだら、 レイヤーはキャンバスから消え去ってしまうでしょう。 でもキャンバスを拡張すればまた見えるところに入ります。 (不可視でも)一番下のレイヤーを基準に使う オプションを有効にすると背景レイヤーの左上隅に合わせてレイヤーが整列することになります。
: 可視レイヤーは図16.78 Example Use of Collect: Layers Aligned to Left Edge of the Canvas
元画像
Horizontal style: Collect , Horizontal base: Left edge.
各レイヤーはその左端がキャンバスの左端に接するところまで水平に平行移動した。
図16.79 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.
各レイヤーはその左端が背景レイヤーの左端やその延長線に接するところまで水平に平行移動した。
水平方向基準 や 垂直方向基準 で指定したキャンバス上の位置に可視レイヤーを揃えて配置します。 いずれのレイヤーも画像上で互いに重なり合わないよう規則正しく整列します。 層順で一番上 (最前面) のレイヤーが画像の最も左寄り (あるいは上側) に置かれ、 層順で一番下 (最背面) のレイヤーが最も右寄り (あるいは下側) に置かれます。 その他のレイヤーは順番に従い以上の 2 つのレイヤーの間に規則正しく置かれます。 (不可視でも)一番下のレイヤーを基準に使う オプションを有効にしている場合は最背面のレイヤーの所定の境界線やその延長線から順に可視レイヤーが整列します。
; :図16.80 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, is placed all the way on the left. The bottom layer in the stack, the red one, is placed is on the right and the yellow layer is between the other two.
図16.81 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.
; : このような設定ならば以上で述べた整列と逆方向であるほかは同じ作用をします。
図16.82 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.
「○から○へ順番に」オプションが使えるのは、 画像に少なくとも 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.83 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.