Spec-Zone .ru
спецификации, руководства, описания, API
|
public enum BlendMode extends java.lang.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);
Enum Constant and Description |
---|
ADD
The color and alpha components from the top input are
added to those from the bottom input.
|
BLUE
The blue component of the bottom input is replaced with the
blue component of the top input; the other color components
are unaffected.
|
COLOR_BURN
The inverse of the bottom input color components are divided by
the top input color components, all of which is then inverted
to produce the resulting color.
|
COLOR_DODGE
The bottom input color components are divided by the inverse
of the top input color components to produce the resulting color.
|
DARKEN
The darker of the color components from the two inputs are
selected to produce the resulting color.
|
DIFFERENCE
The darker of the color components from the two inputs are
subtracted from the lighter ones to produce the resulting color.
|
EXCLUSION
The color components from the two inputs are multiplied and
doubled, and then subtracted from the sum of the bottom input
color components, to produce the resulting color.
|
GREEN
The green component of the bottom input is replaced with the
green component of the top input; the other color components
are unaffected.
|
HARD_LIGHT
The input color components are either multiplied or screened,
depending on the top input color.
|
LIGHTEN
The lighter of the color components from the two inputs are
selected to produce the resulting color.
|
MULTIPLY
The color components from the first input are multiplied with those
from the second input.
|
OVERLAY
The input color components are either multiplied or screened,
depending on the bottom input color.
|
RED
The red component of the bottom input is replaced with the
red component of the top input; the other color components
are unaffected.
|
SCREEN
The color components from both of the inputs are
inverted, multiplied with each other, and that result
is again inverted to produce the resulting color.
|
SOFT_LIGHT
The input color components are either darkened or lightened,
depending on the top input color.
|
SRC_ATOP
The part of the top input lying inside of the bottom input
is blended with the bottom input.
|
SRC_OVER
The top input is blended over the bottom input.
|
Modifier and Type | Method and Description |
---|---|
static BlendMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static BlendMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BlendMode SRC_OVER
public static final BlendMode SRC_ATOP
public static final BlendMode ADD
Notes:
public static final BlendMode MULTIPLY
SRC_OVER
equation.
Notes:
SCREEN
mode.
public static final BlendMode SCREEN
SRC_OVER
equation.
Notes:
MULTIPLY
mode.
public static final BlendMode OVERLAY
SRC_OVER
equation.
Notes:
SCREEN
and
MULTIPLY
, depending on the bottom input color.
HARD_LIGHT
mode.
public static final BlendMode DARKEN
public static final BlendMode LIGHTEN
public static final BlendMode COLOR_DODGE
SRC_OVER
equation.public static final BlendMode COLOR_BURN
SRC_OVER
equation.public static final BlendMode HARD_LIGHT
SRC_OVER
equation.
Notes:
public static final BlendMode SOFT_LIGHT
public static final BlendMode DIFFERENCE
SRC_OVER
equation.
Notes:
public static final BlendMode EXCLUSION
SRC_OVER
equation.
Notes:
DIFFERENCE
, except with lower contrast.
public static final BlendMode RED
SRC_OVER
equation.public static final BlendMode GREEN
SRC_OVER
equation.public static BlendMode[] values()
for (BlendMode c : BlendMode.values()) System.out.println(c);
public static BlendMode valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified namejava.lang.NullPointerException
- if the argument is nullCopyright (c) 2008, 2012, Oracle and/or its affiliates. All rights reserved. Use is subject to