public enum BlendMode extends Enum<BlendMode>
import javafx.scene.*; import javafx.scene.effect.*; import javafx.scene.paint.*; import javafx.scene.shape.*; Rectangle r = new Rectangle(); r.setX(50); r.setY(50); r.setWidth(50); r.setHeight(50); r.setFill(Color.BLUE); Circle c = new Circle(); c.setFill(Color.rgb(255, 0, 0, 0.5)); c.setCenterX(50); c.setCenterY(50); c.setRadius(25); c.setBlendMode(BlendMode.MULTIPLY); Group g = new Group(); g.getChildren().add(r); g.getChildren().add(c);
列挙型定数と説明 |
---|
ADD
最上部の入力の色成分およびアルファ成分が下入力のそれらの成分に加算されます。
|
BLUE
下入力の青色成分が最上部の入力の青色成分で置き換えられ、他の色成分は影響を受けません。
|
COLOR_BURN
下入力の色成分の補数が最上部の入力の色成分で除算され、そのすべてが反転されて結果の色が生成されます。
|
COLOR_DODGE
下入力の色成分が最上部の入力の色成分の補数で除算されて結果の色が生成されます。
|
DARKEN
2つの入力の色成分の暗い方が選択されて結果の色が生成されます。
|
DIFFERENCE
2つの入力の色成分の暗い方が明るい方から減算されて結果の色が生成されます。
|
EXCLUSION
2つの入力の色成分が乗算され、2倍にされてから、下入力の色成分の合計から減算されて結果の色が生成されます。
|
GREEN
下入力の緑色成分が最上部の入力の緑色成分で置き換えられ、他の色成分は影響を受けません。
|
HARD_LIGHT
入力の色成分が最上部の入力の色に応じて乗算またはスクリーン処理されます。
|
LIGHTEN
2つの入力の色成分の明るい方が選択されて結果の色が生成されます。
|
MULTIPLY
最初の入力の色成分が2番目の入力の色成分で乗算されます。
|
OVERLAY
入力の色成分が下入力の色に応じて乗算またはスクリーン処理されます。
|
RED
下入力の赤色成分が最上部の入力の赤色成分で置き換えられ、他の色成分は影響を受けません。
|
SCREEN
両方の入力の色成分が反転されて掛け合わされ、その結果がさらに反転されて結果の色が生成されます。
|
SOFT_LIGHT
入力の色成分が最上部の入力の色に応じて暗くなるか明るくなります。
|
SRC_ATOP
下入力の内部にある最上部の入力の一部が下入力とブレンドされます。
|
SRC_OVER
最上部の入力が下入力の上でブレンドされます。
|
public static final BlendMode SRC_OVER
public static final BlendMode SRC_ATOP
public static final BlendMode ADD
注意:
public static final BlendMode MULTIPLY
public static final BlendMode SCREEN
public static final BlendMode OVERLAY
SRC_OVER
方程式に従ってブレンドされます。
注意:
SCREEN
およびMULTIPLY
を組み合せたものです。
HARD_LIGHT
モードと反対です。
public static final BlendMode DARKEN
public static final BlendMode LIGHTEN
public static final BlendMode COLOR_DODGE
SRC_OVER
方程式に従ってブレンドされます。public static final BlendMode COLOR_BURN
SRC_OVER
方程式に従ってブレンドされます。public static final BlendMode HARD_LIGHT
public static final BlendMode SOFT_LIGHT
public static final BlendMode DIFFERENCE
SRC_OVER
方程式に従ってブレンドされます。
注意:
public static final BlendMode EXCLUSION
SRC_OVER
方程式に従ってブレンドされます。
注意:
DIFFERENCE
と同じ結果になります。
public static final BlendMode RED
SRC_OVER
方程式に従ってブレンドされます。public static final BlendMode GREEN
SRC_OVER
方程式に従ってブレンドされます。public static BlendMode[] values()
for (BlendMode c : BlendMode.values()) System.out.println(c);
public static BlendMode valueOf(String name)
name
- 返される列挙型定数の名前。IllegalArgumentException
- 指定された名前を持つ定数をこの列挙型が持っていない場合NullPointerException
- 引数がnullの場合Copyright (c) 2008, 2015, Oracle and/or its affiliates. All rights reserved.