7.23. Add Layer Masks

The Add Layer Masks… command adds a layer mask to the active layer. It displays a dialog in which you can set the initial properties of the mask. If the layer already has a layer mask, this menu entry is disabled.

A layer mask lets you define which parts of the layer are opaque, semi-transparent or transparent.

See the Layer Masks section for more information.

7.23.1. コマンドの呼び出し方

  • You can access this command from the main menu through LayerMaskAdd Layer Masks…,

  • レイヤーダイアログの脈絡メニューより同名のメニュー項目

7.23.2. Description of the Add Layer Masks… Dialog

図16.97 The Add Layer Masks… dialog

The 「Add Layer Masks…」 dialog

レイヤーマスクの初期化方法

このダイアログでレイヤーマスクの初期状態が選択できます。

完全不透明(白)

このオプションを選ぶとレイヤーマスクはレイヤーを一切透過させません。 つまりレイヤーマスクを追加してもレイヤーの見た目に変化は現れず、 透過効果に変化が訪れるのはレイヤーマスクに描画を行ってからになります。

完全透明(黒)

このオプションを選ぶと、 レイヤーマスクはレイヤーを全面的に透過させます。 したがって画像は下側のレイヤーや (初期設定の場合なら) 市松模様が透けて見える状態になり、 現在のレイヤーの内容が見えるようにするにはレイヤーマスクに黒以外の色を塗る必要があります。

レイヤーのアルファチャンネル

このオプションを選ぶと、 レイヤーのアルファチャンネルの内容をもとにレイヤーマスクが作成されます。 アルファチャンネル自体には変更がありませんので、 半透明の部分は透明度が倍加しさらによく透けるようになります。 レイヤーにアルファチャンネルがなかった場合は 完全透明(黒) で初期化されます。

レイヤーのアルファチャンネルを移転

このオプションは上のオプションと同じようにレイヤーマスクを初期化しますが、 レイヤーのアルファチャンネルは全面的に不透明な状態に初期化されます。 つまりアルファチャンネルにあった透過効果の情報がレイヤーマスクに移転するだけなので、 レイヤーの見た目が追加前と同じままにできる効果があります。 レイヤーの可視性は今やアルファチャンネルにはなくレイヤーマスクだけが担うようになるのです。 その真偽のほどは追加後も見た目に変化しないこのオプションの場合と レイヤーのアルファチャンネル での結果を見比べてお確かめください。レイヤーにアルファチャンネルがなかった場合は 完全透明(黒) で初期化されます。

選択範囲

This option converts the current selection into a layer mask, so that selected areas are opaque, and unselected areas are transparent. If any areas are partially selected, you can click on the Quick Mask button to help you predict what the effects will be.

レイヤーのグレースケールのコピー

このオプションはレイヤーに描かれたもの自体を利用してレイヤーマスクを初期化します。 レイヤーにあとから描き加えるつもりがある場合にとくに役立ちます。

チャンネル

With this option the layer mask is initialized with a selection mask you have created before, stored in the Channel dialog. Note: that the normal RGBA channels are not part of this list, it only lists the extra channels you have created.

マスク反転

If you check the Invert mask box at the bottom of the dialog, the resulting mask is inverted, so that transparent areas become opaque and vice versa.

When you click on the Add button, a thumbnail of the layer mask appears to the right of the thumbnail of the layer in the Layers Dialog.