Package de.rototor.pdfbox.graphics2d
Class PdfBoxGraphics2DColorMapper
java.lang.Object
de.rototor.pdfbox.graphics2d.PdfBoxGraphics2DColorMapper
- All Implemented Interfaces:
IPdfBoxGraphics2DColorMapper
- Direct Known Subclasses:
RGBtoCMYKColorMapper
-
Nested Class Summary
Nested classes/interfaces inherited from interface de.rototor.pdfbox.graphics2d.IPdfBoxGraphics2DColorMapper
IPdfBoxGraphics2DColorMapper.IColorMapperEnv
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.pdfbox.pdmodel.graphics.color.PDColor
Map the given Color to a PDColor
-
Constructor Details
-
PdfBoxGraphics2DColorMapper
public PdfBoxGraphics2DColorMapper()
-
-
Method Details
-
mapColor
public org.apache.pdfbox.pdmodel.graphics.color.PDColor mapColor(Color color, IPdfBoxGraphics2DColorMapper.IColorMapperEnv env) Description copied from interface:IPdfBoxGraphics2DColorMapper
Map the given Color to a PDColor- Specified by:
mapColor
in interfaceIPdfBoxGraphics2DColorMapper
- Parameters:
color
- the color to mapenv
- the environment which allow getting the content stream, resources etc.- Returns:
- the mapped color
-