| Package | Description |
|---|---|
| com.itextpdf.kernel.colors | |
| com.itextpdf.kernel.pdf | |
| com.itextpdf.kernel.pdf.canvas | |
| com.itextpdf.kernel.pdf.colorspace | |
| com.itextpdf.kernel.pdf.function |
| Modifier and Type | Field and Description |
|---|---|
protected PdfColorSpace |
Color.colorSpace
The color space of the color
|
| Modifier and Type | Method and Description |
|---|---|
PdfColorSpace |
Color.getColorSpace()
Returns the
color space
to which the color is related. |
| Modifier and Type | Method and Description |
|---|---|
static Color |
Color.makeColor(PdfColorSpace colorSpace)
Makes a Color of certain color space.
|
static Color |
Color.makeColor(PdfColorSpace colorSpace,
float[] colorValue)
Makes a Color of certain color space and color value.
|
| Constructor and Description |
|---|
Color(PdfColorSpace colorSpace,
float[] colorValue)
Creates a Color of certain color space and color value.
|
DeviceN(List<String> names,
PdfColorSpace alternateCs,
IPdfFunction tintTransform,
float[] value)
Creates a color in a new DeviceN color space.
|
DeviceN(List<String> names,
PdfColorSpace alternateCs,
PdfFunction tintTransform,
float[] value)
Deprecated.
Use constructor
DeviceN.DeviceN(List, PdfColorSpace, IPdfFunction, float[]) DeviceN} instead. |
Indexed(PdfColorSpace colorSpace) |
Indexed(PdfColorSpace colorSpace,
int colorValue) |
PatternColor(PdfPattern.Tiling uncoloredPattern,
PdfColorSpace underlyingCS,
float[] colorValue) |
Separation(String name,
PdfColorSpace alternateCs,
IPdfFunction tintTransform,
float value)
Creates a color in a new separation color space.
|
Separation(String name,
PdfColorSpace alternateCs,
PdfFunction tintTransform,
float value)
Deprecated.
Use constructor
Separation.Separation(String, PdfColorSpace, IPdfFunction, float) Separation}
instead |
| Modifier and Type | Method and Description |
|---|---|
PdfColorSpace |
PdfResources.getColorSpace(PdfName name) |
| Modifier and Type | Method and Description |
|---|---|
PdfName |
PdfResources.addColorSpace(PdfColorSpace cs)
Adds
PdfColorSpace object to the resources. |
void |
PdfResources.setDefaultCmyk(PdfColorSpace defaultCs)
Sets the value of default CMYK Color Space (see ISO-320001 Paragraph 8.6.5.6).
|
void |
PdfResources.setDefaultGray(PdfColorSpace defaultCs)
Sets the value of default Gray Color Space (see ISO-320001 Paragraph 8.6.5.6).
|
void |
PdfResources.setDefaultRgb(PdfColorSpace defaultCs)
Sets the value of default RGB Color Space (see ISO-320001 Paragraph 8.6.5.6).
|
| Modifier and Type | Method and Description |
|---|---|
PdfCanvas |
PdfCanvas.setColor(PdfColorSpace colorSpace,
float[] colorValue,
boolean fill)
Changes the current color for paths.
|
PdfCanvas |
PdfCanvas.setColor(PdfColorSpace colorSpace,
float[] colorValue,
PdfPattern pattern,
boolean fill)
Changes the current color for paths with an explicitly defined pattern.
|
PdfCanvas |
PdfPatternCanvas.setColor(PdfColorSpace colorSpace,
float[] colorValue,
PdfPattern pattern,
boolean fill) |
| Modifier and Type | Class and Description |
|---|---|
class |
PdfCieBasedCs |
static class |
PdfCieBasedCs.CalGray |
static class |
PdfCieBasedCs.CalRgb |
static class |
PdfCieBasedCs.IccBased |
static class |
PdfCieBasedCs.Lab |
class |
PdfDeviceCs |
static class |
PdfDeviceCs.Cmyk |
static class |
PdfDeviceCs.Gray |
static class |
PdfDeviceCs.Rgb |
class |
PdfSpecialCs |
static class |
PdfSpecialCs.DeviceN |
static class |
PdfSpecialCs.Indexed |
static class |
PdfSpecialCs.NChannel |
static class |
PdfSpecialCs.Pattern |
static class |
PdfSpecialCs.Separation |
static class |
PdfSpecialCs.UncoloredTilingPattern |
| Modifier and Type | Method and Description |
|---|---|
PdfColorSpace |
PdfSpecialCs.Indexed.getBaseCs() |
PdfColorSpace |
PdfSpecialCs.Separation.getBaseCs() |
PdfColorSpace |
PdfSpecialCs.DeviceN.getBaseCs() |
PdfColorSpace |
PdfSpecialCs.UncoloredTilingPattern.getUnderlyingColorSpace() |
static PdfColorSpace |
PdfColorSpace.makeColorSpace(PdfObject pdfObject) |
| Constructor and Description |
|---|
Axial(PdfColorSpace cs,
float x0,
float y0,
float[] color0,
float x1,
float y1,
float[] color1)
Creates the new instance of the class.
|
Axial(PdfColorSpace cs,
float x0,
float y0,
float[] color0,
float x1,
float y1,
float[] color1,
boolean[] extend)
Creates the new instance of the class.
|
Axial(PdfColorSpace cs,
PdfArray coords,
PdfArray domain,
PdfFunction function)
Creates the new instance of the class.
|
Axial(PdfColorSpace cs,
PdfArray coords,
PdfFunction function)
Creates the new instance of the class.
|
CoonsPatchMesh(PdfColorSpace cs,
int bitsPerCoordinate,
int bitsPerComponent,
int bitsPerFlag,
float[] decode)
Creates the new instance of the class.
|
CoonsPatchMesh(PdfColorSpace cs,
int bitsPerCoordinate,
int bitsPerComponent,
int bitsPerFlag,
PdfArray decode)
Creates the new instance of the class.
|
DeviceN(List<String> names,
PdfColorSpace alternateSpace,
IPdfFunction tintTransform)
Creates a new DiviceN colorspace.
|
DeviceN(List<String> names,
PdfColorSpace alternateSpace,
PdfFunction tintTransform)
Deprecated.
Use constructor
#DeviceN(List, PdfColorSpace, IPdfFunction) instead. |
FreeFormGouraudShadedTriangleMesh(PdfColorSpace cs,
int bitsPerCoordinate,
int bitsPerComponent,
int bitsPerFlag,
float[] decode)
Creates the new instance of the class.
|
FreeFormGouraudShadedTriangleMesh(PdfColorSpace cs,
int bitsPerCoordinate,
int bitsPerComponent,
int bitsPerFlag,
PdfArray decode)
Creates the new instance of the class.
|
FunctionBased(PdfColorSpace colorSpace,
PdfFunction function)
Creates the new instance of the class.
|
LatticeFormGouraudShadedTriangleMesh(PdfColorSpace cs,
int bitsPerCoordinate,
int bitsPerComponent,
int verticesPerRow,
float[] decode)
Creates the new instance of the class.
|
LatticeFormGouraudShadedTriangleMesh(PdfColorSpace cs,
int bitsPerCoordinate,
int bitsPerComponent,
int verticesPerRow,
PdfArray decode)
Creates the new instance of the class.
|
NChannel(List<String> names,
PdfColorSpace alternateSpace,
IPdfFunction tintTransform,
PdfDictionary attributes)
Creates a new NChannel colorspace.
|
NChannel(List<String> names,
PdfColorSpace alternateSpace,
PdfFunction tintTransform,
PdfDictionary attributes)
Deprecated.
Use constructor
NChannel instead |
PdfShading(PdfDictionary pdfObject,
int type,
PdfColorSpace colorSpace)
Creates the
PdfShading object from the existing PdfDictionary,
using provided type and colorspace. |
Radial(PdfColorSpace cs,
float x0,
float y0,
float r0,
float[] color0,
float x1,
float y1,
float r1,
float[] color1)
Creates the new instance of the class.
|
Radial(PdfColorSpace cs,
float x0,
float y0,
float r0,
float[] color0,
float x1,
float y1,
float r1,
float[] color1,
boolean[] extend)
Creates the new instance of the class.
|
Radial(PdfColorSpace cs,
PdfArray coords,
PdfFunction function)
Creates the new instance of the class.
|
Separation(String name,
PdfColorSpace alternateSpace,
IPdfFunction tintTransform)
Creates a new separation color space.
|
Separation(String name,
PdfColorSpace alternateSpace,
PdfFunction tintTransform)
Deprecated.
This constructor has been replaced
by
#Separation(String, PdfColorSpace, IPdfFunction) |
TensorProductPatchMesh(PdfColorSpace cs,
int bitsPerCoordinate,
int bitsPerComponent,
int bitsPerFlag,
float[] decode)
Creates the new instance of the class.
|
TensorProductPatchMesh(PdfColorSpace cs,
int bitsPerCoordinate,
int bitsPerComponent,
int bitsPerFlag,
PdfArray decode)
Creates the new instance of the class.
|
UncoloredTilingPattern(PdfColorSpace underlyingColorSpace) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
PdfType3Function.checkCompatibilityWithColorSpace(PdfColorSpace alternateSpace) |
boolean |
PdfType4Function.checkCompatibilityWithColorSpace(PdfColorSpace alternateSpace) |
boolean |
IPdfFunction.checkCompatibilityWithColorSpace(PdfColorSpace alternateSpace) |
boolean |
PdfFunction.checkCompatibilityWithColorSpace(PdfColorSpace alternateSpace)
Deprecated.
|
boolean |
PdfFunction.Type0.checkCompatibilityWithColorSpace(PdfColorSpace alternateSpace)
Deprecated.
|
boolean |
PdfFunction.Type4.checkCompatibilityWithColorSpace(PdfColorSpace alternateSpace)
Deprecated.
|
boolean |
AbstractPdfFunction.checkCompatibilityWithColorSpace(PdfColorSpace alternateSpace)
Chacks wether the output of the function matches in components with the passed by color space.
|
boolean |
PdfType0Function.checkCompatibilityWithColorSpace(PdfColorSpace alternateSpace) |
Copyright © 1998–2023 iText Group NV. All rights reserved.