Package com.itextpdf.kernel.colors
Class DeviceN
- java.lang.Object
-
- com.itextpdf.kernel.colors.Color
-
- com.itextpdf.kernel.colors.DeviceN
-
public class DeviceN extends Color
Representation of a DeviceN color space.
-
-
Field Summary
-
Fields inherited from class com.itextpdf.kernel.colors.Color
colorSpace, colorValue
-
-
Constructor Summary
Constructors Constructor Description DeviceN(PdfSpecialCs.DeviceN cs)Creates a DeviceN color using the givenPdfSpecialCscolor space.DeviceN(PdfSpecialCs.DeviceN cs, float[] value)Creates a DeviceN color using the givenPdfSpecialCscolor space and color values.DeviceN(java.util.List<java.lang.String> names, PdfColorSpace alternateCs, IPdfFunction tintTransform, float[] value)Creates a color in a new DeviceN color space.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description private static float[]getDefaultColorants(int numOfColorants)-
Methods inherited from class com.itextpdf.kernel.colors.Color
convertCmykToRgb, convertRgbToCmyk, createColorWithColorSpace, equals, getColorSpace, getColorValue, getNumberOfComponents, hashCode, makeColor, makeColor, setColorValue
-
-
-
-
Constructor Detail
-
DeviceN
public DeviceN(PdfSpecialCs.DeviceN cs)
Creates a DeviceN color using the givenPdfSpecialCscolor space.- Parameters:
cs- Color space
-
DeviceN
public DeviceN(PdfSpecialCs.DeviceN cs, float[] value)
Creates a DeviceN color using the givenPdfSpecialCscolor space and color values.- Parameters:
cs- Color spacevalue- Color component values
-
DeviceN
public DeviceN(java.util.List<java.lang.String> names, PdfColorSpace alternateCs, IPdfFunction tintTransform, float[] value)Creates a color in a new DeviceN color space.- Parameters:
names- the names oif the componentsalternateCs- the alternate color spacetintTransform- the function to transform color to the alternate color spacevalue- the values for the components of this color
-
-