Class BlendMode
java.lang.Object
org.apache.pdfbox.pdmodel.graphics.blend.BlendMode
Blend mode.
- Author:
- Kühn & Weyh Software GmbH
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfacestatic interface -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final BlendModestatic final BlendModestatic final BlendModestatic final BlendModestatic final BlendModestatic final BlendModestatic final BlendModestatic final BlendModestatic final BlendModeNon-separable blend modes as defined in the PDF specificationstatic final BlendModestatic final BlendModestatic final BlendModestatic final BlendModeSeparable blend modes as defined in the PDF specificationstatic final BlendModestatic final BlendModestatic final BlendModestatic final BlendMode -
Method Summary
Modifier and TypeMethodDescriptionReturns the blend channel function, only available for separable blend modes.Returns the blend function, only available for non separable blend modes.The blend mode name from the BM object.static BlendModegetInstance(COSBase cosBlendMode) Determines the blend mode from the BM entry in the COS ExtGState.booleanDetermines if the blend mode is a separable blend mode.toString()
-
Field Details
-
NORMAL
Separable blend modes as defined in the PDF specification -
COMPATIBLE
-
MULTIPLY
-
SCREEN
-
OVERLAY
-
DARKEN
-
LIGHTEN
-
COLOR_DODGE
-
COLOR_BURN
-
HARD_LIGHT
-
SOFT_LIGHT
-
DIFFERENCE
-
EXCLUSION
-
HUE
Non-separable blend modes as defined in the PDF specification -
SATURATION
-
COLOR
-
LUMINOSITY
-
-
Method Details
-
getCOSName
The blend mode name from the BM object.- Returns:
- name of blend mode.
-
isSeparableBlendMode
public boolean isSeparableBlendMode()Determines if the blend mode is a separable blend mode.- Returns:
- true for separable blend modes
-
getBlendChannelFunction
Returns the blend channel function, only available for separable blend modes.- Returns:
- the blend channel function
-
getBlendFunction
Returns the blend function, only available for non separable blend modes.- Returns:
- the blend function
-
getInstance
Determines the blend mode from the BM entry in the COS ExtGState.- Parameters:
cosBlendMode- name or array- Returns:
- blending mode
-
toString
-