Package org.jpedal.manipulator
Class OptimizeColorPalette
java.lang.Object
org.jpedal.manipulator.OptimizeColorPalette
- All Implemented Interfaces:
org.jpedal.manipulator.Manipulation
Optimizes color palettes so they fit into an indexed colour space.
This losslessly reduces the number of bytes required to represent an image.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionOptimizeColorPalette(PdfManipulator pdfManipulator) Optimizes color palettes so they fit into an indexed colour space. -
Method Summary
Modifier and TypeMethodDescriptionvoidapply(org.jpedal.io.writer.PdfFile info, org.jpedal.manipulator.ResourceCache cache) Applies the manipulation to the current document.
-
Constructor Details
-
OptimizeColorPalette
Optimizes color palettes so they fit into an indexed colour space.This losslessly reduces the number of bytes required to represent an image.
- Parameters:
pdfManipulator- the PdfManipulator object for the currently loaded document
-
-
Method Details
-
apply
public void apply(org.jpedal.io.writer.PdfFile info, org.jpedal.manipulator.ResourceCache cache) throws IOException Applies the manipulation to the current document.- Specified by:
applyin interfaceorg.jpedal.manipulator.Manipulation- Parameters:
info- thePdfFileobject for the currently loaded documentcache- theResourceCacheobject for the currently loaded document- Throws:
IOException- if the manipulation cannot be applied to the document
-