Gimp::Layer

Gimp::Layer

レイヤとフローティングセレクションを扱うクラス。 フローティングセレクショッンは、gimp-floating-sel-to-layerで ただのレイヤに変換できてしまい独立したクラスにし得ないためこ のような設計になっています。

Superclass:

Gimp::Drawable

Class methods:

Gimp::Layer.new(image, width, height, type, name[, opacity[, mode]])
Gimp::Layer.new(image, name, width, height, type[, opacity[, mode]])

This procedure creates a new layer with the specified width, height, and type. Name, opacity, and mode are also supplied parameters. The new layer still needs to be added to the image, as this is not automatic. Add the new layer with the Image#add_layer. Other attributes such as layer mask modes, and offsets should be set with explicit procedure calls.

引数の順番は、libgimpのものとPDBのものを両方サポートしており、 文字列であるnameの位置で判別される。 opacityとmodeの省略値は100とNORMAL_MODE

Methods:

PDBの関数の内、gimp_layer_で始まり、かつ第一引数の型がLAYERであるものが 全てメソッドとして呼び出せます。また、フローティングセレクションである場合は、 gimp_floating_selectionで始まる関数も呼び出すことが出来る。

Last modified:2006/08/15 15:46:22
Keyword(s):
References:[Gimp-Ruby::Reference Manual]