pdfblendmode-ag凯发旗舰厅
com.spire.pdf.graphics
enum pdfblendmode
java.lang.object
java.lang.enum<pdfblendmode>
com.spire.pdf.graphics.pdfblendmode
- all implemented interfaces:
- java.lang.comparable<pdfblendmode>
public enum pdfblendmode
- extends java.lang.enum<pdfblendmode>
specifies the blend mode for transparency.
enum constant summary |
color
creates a color with the hue and saturation of
the source color and the luminosity of the backdrop
color. |
colorburn
darkens the backdrop color to reflect the source color. |
colordodge
brightens the backdrop color to reflect the source color. |
darken
selects the darker of the backdrop and source colors. |
difference
subtracts the darker of the two constituent colors from the lighter color. |
exclusion
produces an effect similar to that of the difference mode
but lower in contrast. |
hardlight
multiplies or screens the colors, depending on the source color value. |
hue
creates a color with the hue of the source color and
the saturation and luminosity of the backdrop color. |
lighten
selects the lighter of the backdrop and source colors. |
luminosity
creates a color with the luminosity of the source color
and the hue and saturation of the backdrop color. |
multiply
multiplies the backdrop and source color values. |
normal
selects the source color, ignoring the backdrop. |
overlay
multiplies or screens the colors, depending on
the backdrop color value. |
saturation
creates a color with the saturation of the source color
and the hue and luminosity of the backdrop color. |
screen
multiplies the complements of the backdrop and source
color values, then complements the result. |
softlight
darkens or lightens the colors, depending on the source color value. |
method summary |
java.lang.string |
getname()
get pdf blend mode name |
int |
getvalue()
get pdf blend mode value |
normal
public static final pdfblendmode normal
- selects the source color, ignoring the backdrop.
multiply
public static final pdfblendmode multiply
- multiplies the backdrop and source color values.
the result color is always at least as dark as either
of the two constituent colors. multiplying
any color with black produces black; multiplying
with white leaves the original color unchanged.
painting successive overlapping objects with a color
other than black or white produces progressively darker colors.
screen
public static final pdfblendmode screen
- multiplies the complements of the backdrop and source
color values, then complements the result. the result
color is always at least as light as either of the two
constituent colors. screening any color with white
produces white; screening with black leaves the original
color unchanged. the effect is similar to projecting
multiple photographic slides simultaneously onto a single screen.
overlay
public static final pdfblendmode overlay
- multiplies or screens the colors, depending on
the backdrop color value. source colors overlay
the backdrop while preserving its highlights and
shadows. the backdrop color is not replaced but
is mixed with the source color to reflect the
lightness or darkness of the backdrop.
darken
public static final pdfblendmode darken
- selects the darker of the backdrop and source colors.
the backdrop is replaced with the source where the source
is darker; otherwise, it is left unchanged.
lighten
public static final pdfblendmode lighten
- selects the lighter of the backdrop and source colors.
the backdrop is replaced with the source where the source
is lighter; otherwise, it is left unchanged.
colordodge
public static final pdfblendmode colordodge
- brightens the backdrop color to reflect the source color.
painting with black produces no changes.
colorburn
public static final pdfblendmode colorburn
- darkens the backdrop color to reflect the source color.
painting with white produces no change.
hardlight
public static final pdfblendmode hardlight
- multiplies or screens the colors, depending on the source color value.
the effect is similar to shining a harsh spotlight on the backdrop.
softlight
public static final pdfblendmode softlight
- darkens or lightens the colors, depending on the source color value.
the effect is similar to shining a diffused spotlight on the backdrop.
difference
public static final pdfblendmode difference
- subtracts the darker of the two constituent colors from the lighter color.
painting with white inverts the backdrop color; painting with black produces no change.
exclusion
public static final pdfblendmode exclusion
- produces an effect similar to that of the difference mode
but lower in contrast. painting with white inverts
the backdrop color; painting with black produces no change.
hue
public static final pdfblendmode hue
- creates a color with the hue of the source color and
the saturation and luminosity of the backdrop color.
saturation
public static final pdfblendmode saturation
- creates a color with the saturation of the source color
and the hue and luminosity of the backdrop color. painting
with this mode in an area of the backdrop that is a pure
gray (no saturation) produces no change.
color
public static final pdfblendmode color
- creates a color with the hue and saturation of
the source color and the luminosity of the backdrop
color. this preserves the gray levels of the backdrop
and is useful for coloring monochrome images or tinting color images.
luminosity
public static final pdfblendmode luminosity
- creates a color with the luminosity of the source color
and the hue and saturation of the backdrop color. this
produces an inverse effect to that of the color mode.
getname
public java.lang.string getname()
- get pdf blend mode name
getvalue
public int getvalue()
- get pdf blend mode value