Serializable, Comparable<BlendMode>public enum BlendMode extends Enum<BlendMode>
Canvas.| 枚举常量 | 说明 |
|---|---|
CLEAR |
Clears the colors.
|
COLOR |
Creates a color using the hue and saturation of the source color and the brightness of the destination color.
|
COLOR_BURN |
Darkens the destination color to reflect the source color.
|
COLOR_DODGE |
Brightens the destination color to reflect the source color.
|
DARKEN |
Selects the darker one from the source and destination colors.
|
DIFFERENCE |
Subtracts the darker color from the lighter color to increase the contrast.
|
DST |
Uses the destination color.
|
DST_ATOP |
Replaces the source color with the destination color on the overlapping area of the two colors.
|
DST_IN |
Draws the destination color on the overlapping area of the source and destination colors.
|
DST_OUT |
Draws the destination color on the non-overlapping area of the source and destination colors.
|
DST_OVER |
Draws the destination color over the source color.
|
EXCLUSION |
Subtracts the darker color from the lighter color to decrease the contrast.
|
HARD_LIGHT |
Multiplies or screens the destination color based on the source color.
|
HUE |
Creates a color using the hue of the source color and the saturation and brightness of the destination color.
|
LIGHTEN |
Selects the lighter one from the source and destination colors.
|
LUMINOSITY |
Creates a color using the brightness of the source color and the hue and saturation of the destination color.
|
MODULATE |
Multiplies the source and destination colors.
|
MULTIPLY |
Multiplies the destination color by the source color and replaces the destination color.
|
OVERLAY |
Multiplies or screens the source color based on the destination color.
|
PLUS |
Combines the source color with the destination color.
|
SATURATION |
Creates a color using the saturation of the source color and the hue and brightness of the destination color.
|
SCREEN |
Multiplies the complements of the source and destination colors and then complements the result.
|
SOFT_LIGHT |
Darkens or lightens the destination color based on the source color.
|
SRC |
Uses the source color.
|
SRC_ATOP |
Replaces the destination color with the source color on the overlapping area of the two colors.
|
SRC_IN |
Draws the source color on the overlapping area of the source and destination colors.
|
SRC_OUT |
Draws the source color on the non-overlapping area of the source and destination colors.
|
SRC_OVER |
Draws the source color over the destination color.
|
XOR |
Combines the source color with the destination color on the non-overlapping area of the two colors.
|
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
int |
value() |
Obtains the enumeration identifier of the blend mode.
|
static BlendMode |
valueOf(String name) |
返回带有指定名称的该类型的枚举常量。
字符串必须与用于声明该类型的枚举常量的
标识符完全匹配。(不允许有多余
的空格字符。)
|
static BlendMode[] |
values() |
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。该方法可用于迭代
常量, 如下所示:
for (BlendMode c : BlendMode.values()) System.out.println(c); |
public static final BlendMode CLEAR
public static final BlendMode SRC
public static final BlendMode DST
public static final BlendMode SRC_OVER
public static final BlendMode DST_OVER
public static final BlendMode SRC_IN
public static final BlendMode DST_IN
public static final BlendMode SRC_OUT
public static final BlendMode DST_OUT
public static final BlendMode SRC_ATOP
public static final BlendMode DST_ATOP
public static final BlendMode XOR
public static final BlendMode PLUS
public static final BlendMode MODULATE
public static final BlendMode SCREEN
public static final BlendMode OVERLAY
public static final BlendMode DARKEN
public static final BlendMode LIGHTEN
public static final BlendMode COLOR_DODGE
public static final BlendMode COLOR_BURN
public static final BlendMode HARD_LIGHT
public static final BlendMode SOFT_LIGHT
public static final BlendMode DIFFERENCE
public static final BlendMode EXCLUSION
public static final BlendMode MULTIPLY
public static final BlendMode HUE
public static final BlendMode SATURATION
public static final BlendMode COLOR
public static final BlendMode LUMINOSITY
public static BlendMode[] values()
for (BlendMode c : BlendMode.values()) System.out.println(c);
public static BlendMode valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值public int value()