Package de.rototor.pdfbox.graphics2d
Klasse RGBtoCMYKColorMapper
java.lang.Object
de.rototor.pdfbox.graphics2d.PdfBoxGraphics2DColorMapper
de.rototor.pdfbox.graphics2d.RGBtoCMYKColorMapper
- Alle implementierten Schnittstellen:
IPdfBoxGraphics2DColorMapper
Usage:
PdfBoxGraphics2D pdfBoxGraphics2D = new PdfBoxGraphics2D(this.doc, (int) (width), (int) (height)); PdfBoxGraphics2DColorMapper colorMapper = new RGBtoCMYKColorMapper(icc_profile); pdfBoxGraphics2D.setColorMapper(colorMapper);
Where ICC_Profile is an instance of java.awt.color.ICC_Profile that supports a CMYK colorspace. For testing purposes, we're using ISOcoated_v2_300_bas.icc which ships with PDFBox.
-
Verschachtelte Klassen - Übersicht
Von Schnittstelle geerbte verschachtelte Klassen/Schnittstellen de.rototor.pdfbox.graphics2d.IPdfBoxGraphics2DColorMapper
IPdfBoxGraphics2DColorMapper.IColorMapperEnv -
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungRGBtoCMYKColorMapper(ICC_Profile icc_profile, org.apache.pdfbox.pdmodel.PDDocument document) -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungorg.apache.pdfbox.pdmodel.graphics.color.PDColormapColor(Color rgbColor, IPdfBoxGraphics2DColorMapper.IColorMapperEnv env) Map the given Color to a PDColor
-
Konstruktordetails
-
RGBtoCMYKColorMapper
public RGBtoCMYKColorMapper(ICC_Profile icc_profile, org.apache.pdfbox.pdmodel.PDDocument document) throws IOException - Löst aus:
IOException
-
-
Methodendetails
-
mapColor
public org.apache.pdfbox.pdmodel.graphics.color.PDColor mapColor(Color rgbColor, IPdfBoxGraphics2DColorMapper.IColorMapperEnv env) Beschreibung aus Schnittstelle kopiert:IPdfBoxGraphics2DColorMapperMap the given Color to a PDColor- Angegeben von:
mapColorin SchnittstelleIPdfBoxGraphics2DColorMapper- Setzt außer Kraft:
mapColorin KlassePdfBoxGraphics2DColorMapper- Parameter:
rgbColor- the color to mapenv- the environment which allow getting the content stream, resources etc.- Gibt zurück:
- the mapped color
-