pdfOptimizer 3.0.1 API
iText.Pdfoptimizer.Handlers.Imagequality.Processors.BitmapIndexer Class Reference

Class is used to make the color space of the image indexed if possible. More...

Inheritance diagram for iText.Pdfoptimizer.Handlers.Imagequality.Processors.BitmapIndexer:
iText.Pdfoptimizer.Handlers.Imagequality.Processors.IImageProcessor

Public Member Functions

virtual PdfImageXObject  ProcessImage (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. More...
 

Detailed Description

Class is used to make the color space of the image indexed if possible.

Member Function Documentation

◆ ProcessImage()

virtual PdfImageXObject iText.Pdfoptimizer.Handlers.Imagequality.Processors.BitmapIndexer.ProcessImage ( PdfImageXObject  objectToProcess,
OptimizationSession  session 
)
inlinevirtual

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.

Parameters
objectToProcess

Processes an image.

Parameters
session

Processes an image.

Returns

Processes an image.

Implements iText.Pdfoptimizer.Handlers.Imagequality.Processors.IImageProcessor.