public enum ImageBlendMode extends Enum<ImageBlendMode>
Enum Constant and Description |
---|
Add |
Difference |
DivideAB |
DivideBA |
Maximum |
Minimum |
Multiply |
Normal |
Overlay |
Screen |
SubtractAB |
SubtractBA |
Modifier and Type | Method and Description |
---|---|
void |
blend(ij.process.ColorProcessor bottom,
ij.process.ColorProcessor top,
double opacity)
Blends the top image onto the bottom image
|
int |
blend(int aRGB,
int bRGB,
double opacity)
Applies blending on a single RGB pixel
|
String |
toString() |
static ImageBlendMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ImageBlendMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ImageBlendMode Normal
public static final ImageBlendMode Multiply
public static final ImageBlendMode DivideBA
public static final ImageBlendMode DivideAB
public static final ImageBlendMode Add
public static final ImageBlendMode Minimum
public static final ImageBlendMode Maximum
public static final ImageBlendMode SubtractAB
public static final ImageBlendMode SubtractBA
public static final ImageBlendMode Difference
public static final ImageBlendMode Overlay
public static final ImageBlendMode Screen
public static ImageBlendMode[] values()
for (ImageBlendMode c : ImageBlendMode.values()) System.out.println(c);
public static ImageBlendMode valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic void blend(ij.process.ColorProcessor bottom, ij.process.ColorProcessor top, double opacity)
bottom
- the bottom (target) image. will be changedtop
- the top image (will be unchanged)opacity
- the opacity of the top layerpublic int blend(int aRGB, int bRGB, double opacity)
aRGB
- the first pixelbRGB
- the second pixelopacity
- the opacitypublic String toString()
toString
in class Enum<ImageBlendMode>
Copyright © 2020–2024 Leibniz Institute for Natural Product Research and Infection Biology - Hans Knöll Institute (HKI). All rights reserved.