public class BitmapIndexer extends Object implements IImageProcessor
Constructor and Description |
---|
BitmapIndexer() |
Modifier and Type | Method and Description |
---|---|
com.itextpdf.kernel.pdf.xobject.PdfImageXObject |
processImage(com.itextpdf.kernel.pdf.xobject.PdfImageXObject objectToProcess, OptimizationSession session)
Calculates the number of colors used for the image and if it is not more than 256 builds an index for the image and change the color space to Indexed.
|
public com.itextpdf.kernel.pdf.xobject.PdfImageXObject processImage(com.itextpdf.kernel.pdf.xobject.PdfImageXObject objectToProcess, OptimizationSession session)
processImage
in interface IImageProcessor
objectToProcess
- is a PdfImageXObject
representing the image
session
- is an auxiliary object used to support share data between stages of optimization process
Copyright © 1998–2020 iText Group NV. All rights reserved.