Class BlankColorDecoder
java.lang.Object
com.itextpdf.pdfoptimizer.handlers.util.decoders.ColorDecoder
com.itextpdf.pdfoptimizer.handlers.util.decoders.BlankColorDecoder
Helper subclass of
ColorDecoder
which does nothing with the color.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondouble[]
decode
(double[] color) Returns the provided color as is.double
decodeComponent
(double colorComponent, int componentIndex) Returns the provided color component as is.
-
Constructor Details
-
BlankColorDecoder
public BlankColorDecoder()Creates an instance of blank color decoder.
-
-
Method Details
-
decode
public double[] decode(double[] color) Returns the provided color as is.- Overrides:
-
decode
in classColorDecoder
- Parameters:
-
color
- an array representing the color - Returns:
- decoded array representing the color
-
decodeComponent
public double decodeComponent(double colorComponent, int componentIndex) Returns the provided color component as is.- Overrides:
-
decodeComponent
in classColorDecoder
- Parameters:
-
colorComponent
- a value for color component -
componentIndex
- an index of the color component being decoded - Returns:
- decoded value for color component
-