public class PatternColor extends Color
colorSpace, colorValue
Constructor and Description |
---|
PatternColor(PdfPattern.Tiling uncoloredPattern, Color color) |
PatternColor(PdfPattern.Tiling uncoloredPattern, PdfColorSpace underlyingCS, float[] colorValue) |
PatternColor(PdfPattern.Tiling uncoloredPattern, PdfSpecialCs.UncoloredTilingPattern uncoloredTilingCS, float[] colorValue) |
PatternColor(PdfPattern coloredPattern) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o)
Indicates whether the color is equal to the given color.
|
PdfPattern |
getPattern() |
void |
setColorValue(float[] value)
Sets the color value of the color
|
void |
setPattern(PdfPattern pattern)
Deprecated.
To be removed in iText 7.2. In order to change pattern one shall create a new
PatternColor .
|
convertCmykToRgb, convertRgbToCmyk, getColorSpace, getColorValue, getNumberOfComponents, hashCode, makeColor, makeColor
public PatternColor(PdfPattern coloredPattern)
public PatternColor(PdfPattern.Tiling uncoloredPattern, Color color)
public PatternColor(PdfPattern.Tiling uncoloredPattern, PdfColorSpace underlyingCS, float[] colorValue)
public PatternColor(PdfPattern.Tiling uncoloredPattern, PdfSpecialCs.UncoloredTilingPattern uncoloredTilingCS, float[] colorValue)
public PdfPattern getPattern()
public void setColorValue(float[] value)
Color
setColorValue
in class Color
value
- new color value
@Deprecated public void setPattern(PdfPattern pattern)
PatternColor
.
PatternColor
. Be sure to only set uncolored patterns for uncolored PatternColor
, and vice versa, only set colored patterns for colored PatternColor
.
pattern
- a pattern to be set for this instance.
public boolean equals(Object o)
Color
color space
and color value
are considered during the comparison.
Copyright © 1998–2023 iText Group NV. All rights reserved.