Class BlendMode
java.lang.Object
org.apache.pdfbox.pdmodel.graphics.blend.BlendMode
- Direct Known Subclasses:
NonSeparableBlendMode
,SeparableBlendMode
Blend mode.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final NonSeparableBlendMode
static final SeparableBlendMode
static final SeparableBlendMode
static final SeparableBlendMode
static final SeparableBlendMode
static final SeparableBlendMode
static final SeparableBlendMode
static final SeparableBlendMode
static final NonSeparableBlendMode
static final SeparableBlendMode
static final NonSeparableBlendMode
static final SeparableBlendMode
static final SeparableBlendMode
static final SeparableBlendMode
static final NonSeparableBlendMode
static final SeparableBlendMode
static final SeparableBlendMode
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static int
get255Value
(float val) static COSName
getCOSName
(BlendMode bm) Determines the blend mode name from the BM object.static BlendMode
getInstance
(COSBase cosBlendMode) Determines the blend mode from the BM entry in the COS ExtGState.private static void
getLuminosityRGB
(float[] srcValues, float[] dstValues, float[] result) private static void
getSaturationRGB
(float[] srcValues, float[] dstValues, float[] result)
-
Field Details
-
NORMAL
-
COMPATIBLE
-
MULTIPLY
-
SCREEN
-
OVERLAY
-
DARKEN
-
LIGHTEN
-
COLOR_DODGE
-
COLOR_BURN
-
HARD_LIGHT
-
SOFT_LIGHT
-
DIFFERENCE
-
EXCLUSION
-
HUE
-
SATURATION
-
COLOR
-
LUMINOSITY
-
BLEND_MODES
-
BLEND_MODE_NAMES
-
-
Constructor Details
-
BlendMode
BlendMode()
-
-
Method Details
-
getInstance
Determines the blend mode from the BM entry in the COS ExtGState.- Parameters:
cosBlendMode
- name or array- Returns:
- blending mode
-
getCOSName
Determines the blend mode name from the BM object.- Parameters:
bm
- Blend mode.- Returns:
- name of blend mode.
-
get255Value
private static int get255Value(float val) -
getSaturationRGB
private static void getSaturationRGB(float[] srcValues, float[] dstValues, float[] result) -
getLuminosityRGB
private static void getLuminosityRGB(float[] srcValues, float[] dstValues, float[] result) -
createBlendModeMap
-
createBlendModeNamesMap
-