Class BitmapCmykToRgbConverter
java.lang.Object
com.itextpdf.pdfoptimizer.handlers.imagequality.processors.BitmapCmykToRgbConverter
- All Implemented Interfaces:
-
IImageProcessor
Class is used to change the color scheme of the bitmap image from CMYK to RGB.
-
Constructor Summary
ConstructorDescriptionCreates an instance of the color scheme converter. -
Method Summary
Modifier and TypeMethodDescriptioncom.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.
-
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 interfaceIImageProcessor
- Parameters:
-
objectToProcess
- is aPdfImageXObject
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
-