Package de.rototor.pdfbox.graphics2d
Class RGBtoCMYKColorMapper
- java.lang.Object
-
- de.rototor.pdfbox.graphics2d.PdfBoxGraphics2DColorMapper
-
- de.rototor.pdfbox.graphics2d.RGBtoCMYKColorMapper
-
- All Implemented Interfaces:
IPdfBoxGraphics2DColorMapper
public class RGBtoCMYKColorMapper extends PdfBoxGraphics2DColorMapper
-
-
Constructor Summary
Constructors Constructor Description RGBtoCMYKColorMapper(ICC_Profile icc_profile, org.apache.pdfbox.pdmodel.PDDocument document)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.pdfbox.pdmodel.graphics.color.PDColormapColor(org.apache.pdfbox.pdmodel.PDPageContentStream contentStream, Color rgbColor)Map the given Color to a PDColorstatic float[]rgbIntToFloat(int[] rgbInts)
-
-
-
Constructor Detail
-
RGBtoCMYKColorMapper
public RGBtoCMYKColorMapper(ICC_Profile icc_profile, org.apache.pdfbox.pdmodel.PDDocument document) throws IOException
- Throws:
IOException
-
-
Method Detail
-
mapColor
public org.apache.pdfbox.pdmodel.graphics.color.PDColor mapColor(org.apache.pdfbox.pdmodel.PDPageContentStream contentStream, Color rgbColor)Description copied from interface:IPdfBoxGraphics2DColorMapperMap the given Color to a PDColor- Specified by:
mapColorin interfaceIPdfBoxGraphics2DColorMapper- Overrides:
mapColorin classPdfBoxGraphics2DColorMapper- Parameters:
contentStream- the content streamrgbColor- the color to map- Returns:
- the mapped color
-
rgbIntToFloat
public static float[] rgbIntToFloat(int[] rgbInts)
-
-