Class BitmapCmykToRgbConverter

java.lang.Object
com.itextpdf.pdfoptimizer.handlers.imagequality.processors.BitmapCmykToRgbConverter
All Implemented Interfaces:
IImageProcessor

public class BitmapCmykToRgbConverter extends Object implements IImageProcessor
Class is used to change the color scheme of the bitmap image from CMYK to RGB.
  • Constructor Details

    • BitmapCmykToRgbConverter

      public BitmapCmykToRgbConverter()
      Creates an instance of the color scheme converter.
  • Method Details

    • processImage

      public com.itextpdf.kernel.pdf.xobject.PdfImageXObject processImage (com.itextpdf.kernel.pdf.xobject.PdfImageXObject objectToProcess, OptimizationSession session)
      If provided image is a bitmap image with DeviceCMYK color scheme then converts it to the image with DeviceRGB color scheme.
      Specified by:
      processImage in interface IImageProcessor
      Parameters:
      objectToProcess - is a PdfImageXObject representing the image
      session - is an auxiliary object used to support share data between stages of optimization process
      Returns:
      processed image if processing can be performed and the same instance otherwise