Package io.github.humbleui.skija
Enum BlendMode
- java.lang.Object
-
- java.lang.Enum<BlendMode>
-
- io.github.humbleui.skija.BlendMode
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CLEARReplaces destination with zero: fully transparent.COLORHue and saturation of source with luminosity of destination.COLOR_BURNDarken destination to reflect source.COLOR_DODGEBrighten destination to reflect source.DARKENDarker of source and destination.DIFFERENCESubtract darker from lighter with higher contrast.DSTPreserves destination.DST_ATOPDestination inside source blended with source.DST_INDestination trimmed by source.DST_OUTDestination trimmed outside source.DST_OVERDestination over source.EXCLUSIONSubtract darker from lighter with lower contrast.HARD_LIGHTMultiply or screen, depending on source.HUEHue of source with saturation and luminosity of destination.LIGHTENLighter of source and destination.LUMINOSITYLuminosity of source with hue and saturation of destination.MODULATEProduct of premultiplied colors; darkens destination.MULTIPLYMultiply source with destination, darkening image.OVERLAYMultiply or screen, depending on destination.PLUSSum of colors.SATURATIONSaturation of source with hue and luminosity of destination.SCREENMultiply inverse of pixels, inverting result; brightens destination.SOFT_LIGHTLighten or darken, depending on source.SRCReplaces destination.SRC_ATOPSource inside destination blended with destination.SRC_INSource trimmed inside destination.SRC_OUTSource trimmed outside destination.SRC_OVERSource over destination.XOREach of source and destination trimmed outside the other.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static BlendModevalueOf(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.
-
-
-
Enum Constant Detail
-
CLEAR
public static final BlendMode CLEAR
Replaces destination with zero: fully transparent.
-
SRC
public static final BlendMode SRC
Replaces destination.
-
DST
public static final BlendMode DST
Preserves destination.
-
SRC_OVER
public static final BlendMode SRC_OVER
Source over destination.
-
DST_OVER
public static final BlendMode DST_OVER
Destination over source.
-
SRC_IN
public static final BlendMode SRC_IN
Source trimmed inside destination.
-
DST_IN
public static final BlendMode DST_IN
Destination trimmed by source.
-
SRC_OUT
public static final BlendMode SRC_OUT
Source trimmed outside destination.
-
DST_OUT
public static final BlendMode DST_OUT
Destination trimmed outside source.
-
SRC_ATOP
public static final BlendMode SRC_ATOP
Source inside destination blended with destination.
-
DST_ATOP
public static final BlendMode DST_ATOP
Destination inside source blended with source.
-
XOR
public static final BlendMode XOR
Each of source and destination trimmed outside the other.
-
PLUS
public static final BlendMode PLUS
Sum of colors.
-
MODULATE
public static final BlendMode MODULATE
Product of premultiplied colors; darkens destination.
-
SCREEN
public static final BlendMode SCREEN
Multiply inverse of pixels, inverting result; brightens destination.
-
OVERLAY
public static final BlendMode OVERLAY
Multiply or screen, depending on destination.
-
DARKEN
public static final BlendMode DARKEN
Darker of source and destination.
-
LIGHTEN
public static final BlendMode LIGHTEN
Lighter of source and destination.
-
COLOR_DODGE
public static final BlendMode COLOR_DODGE
Brighten destination to reflect source.
-
COLOR_BURN
public static final BlendMode COLOR_BURN
Darken destination to reflect source.
-
HARD_LIGHT
public static final BlendMode HARD_LIGHT
Multiply or screen, depending on source.
-
SOFT_LIGHT
public static final BlendMode SOFT_LIGHT
Lighten or darken, depending on source.
-
DIFFERENCE
public static final BlendMode DIFFERENCE
Subtract darker from lighter with higher contrast.
-
EXCLUSION
public static final BlendMode EXCLUSION
Subtract darker from lighter with lower contrast.
-
MULTIPLY
public static final BlendMode MULTIPLY
Multiply source with destination, darkening image.
-
HUE
public static final BlendMode HUE
Hue of source with saturation and luminosity of destination.
-
SATURATION
public static final BlendMode SATURATION
Saturation of source with hue and luminosity of destination.
-
COLOR
public static final BlendMode COLOR
Hue and saturation of source with luminosity of destination.
-
LUMINOSITY
public static final BlendMode LUMINOSITY
Luminosity of source with hue and saturation of destination.
-
-
Field Detail
-
_values
@Internal public static final BlendMode[] _values
-
-
Method Detail
-
values
public static BlendMode[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (BlendMode c : BlendMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static BlendMode valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
-