Package com.itextpdf.kernel.colors
Class DeviceN
java.lang.Object
com.itextpdf.kernel.colors.Color
com.itextpdf.kernel.colors.DeviceN
Representation of a DeviceN color space.
-
Field Summary
Fields inherited from class com.itextpdf.kernel.colors.Color
colorSpace, colorValue
-
Constructor Summary
ConstructorDescriptionCreates a DeviceN color using the givenPdfSpecialCs
color space.DeviceN
(PdfSpecialCs.DeviceN cs, float[] value) Creates a DeviceN color using the givenPdfSpecialCs
color space and color values.DeviceN
(List<String> names, PdfColorSpace alternateCs, IPdfFunction tintTransform, float[] value) Creates a color in a new DeviceN color space. -
Method Summary
Methods inherited from class com.itextpdf.kernel.colors.Color
convertCmykToRgb, convertRgbToCmyk, createColorWithColorSpace, equals, getColorSpace, getColorValue, getNumberOfComponents, hashCode, makeColor, makeColor, setColorValue
-
Constructor Details
-
DeviceN
Creates a DeviceN color using the givenPdfSpecialCs
color space.- Parameters:
-
cs
- Color space
-
DeviceN
Creates a DeviceN color using the givenPdfSpecialCs
color space and color values.- Parameters:
-
cs
- Color space -
value
- Color component values
-
DeviceN
public DeviceN(List<String> names, PdfColorSpace alternateCs, IPdfFunction tintTransform, float[] value) Creates a color in a new DeviceN color space.- Parameters:
-
names
- the names oif the components -
alternateCs
- the alternate color space -
tintTransform
- the function to transform color to the alternate color space -
value
- the values for the components of this color
-