Serializable, Comparable<Canvas.PorterDuffMode>public static enum Canvas.PorterDuffMode extends Enum<Canvas.PorterDuffMode>
| 枚举常量 | 说明 |
|---|---|
CLEAR |
Clears the colors.
|
DARKEN |
Selects the darker one from the source and destination colors.
|
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.
|
LIGHTEN |
Selects the lighter one from the source and destination colors.
|
MULTIPLY |
Multiplies the source and destination colors.
|
OVERLAY |
Multiplies or screens the source color based on the destination color.
|
PLUS |
Combines the source color with the destination color.
|
SCREEN |
Multiplies the complements of the source and destination colors and then complements the result.
|
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 PorterDuff mode in this
Canvas. |
static Canvas.PorterDuffMode |
valueOf(String name) |
返回带有指定名称的该类型的枚举常量。
字符串必须与用于声明该类型的枚举常量的
标识符完全匹配。(不允许有多余
的空格字符。)
|
static Canvas.PorterDuffMode[] |
values() |
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。该方法可用于迭代
常量, 如下所示:
for (Canvas.PorterDuffMode c : Canvas.PorterDuffMode.values()) System.out.println(c); |
public static final Canvas.PorterDuffMode CLEAR
public static final Canvas.PorterDuffMode SRC
public static final Canvas.PorterDuffMode DST
public static final Canvas.PorterDuffMode SRC_OVER
public static final Canvas.PorterDuffMode DST_OVER
public static final Canvas.PorterDuffMode SRC_IN
public static final Canvas.PorterDuffMode DST_IN
public static final Canvas.PorterDuffMode SRC_OUT
public static final Canvas.PorterDuffMode DST_OUT
public static final Canvas.PorterDuffMode SRC_ATOP
public static final Canvas.PorterDuffMode DST_ATOP
public static final Canvas.PorterDuffMode XOR
public static final Canvas.PorterDuffMode PLUS
public static final Canvas.PorterDuffMode MULTIPLY
public static final Canvas.PorterDuffMode SCREEN
public static final Canvas.PorterDuffMode OVERLAY
public static final Canvas.PorterDuffMode DARKEN
public static final Canvas.PorterDuffMode LIGHTEN
public static Canvas.PorterDuffMode[] values()
for (Canvas.PorterDuffMode c : Canvas.PorterDuffMode.values()) System.out.println(c);
public static Canvas.PorterDuffMode valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值public int value()
Canvas.Canvas.