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

Class is used to replace Indexed colorspace with appropriate Device colorspace. More...

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

Public Member Functions

virtual PdfImageXObject  ProcessImage (PdfImageXObject objectToProcess, OptimizationSession session)
  If bitmap image is in Indexed color space the Deindexer will create a representation of the same in based color space. More...
 

Detailed Description

Class is used to replace Indexed colorspace with appropriate Device colorspace.

Class is used to replace Indexed colorspace with appropriate Device colorspace. It should not optimize pdf document but can be used as the first step of optimization process.

See also
BitmapIndexer

Member Function Documentation

◆ ProcessImage()

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

If bitmap image is in Indexed color space the Deindexer will create a representation of the same in based color space.

If bitmap image is in Indexed color space the Deindexer will create a representation of the same in based color space. Otherwise will return the original image.

Parameters
objectToProcess

Processes an image.

Parameters
session

Processes an image.

Returns

Processes an image.

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