public abstract class Predictor extends Object
Modifier and Type | Field and Description |
---|---|
static int |
PNG |
static int |
TIFF
well known algorithms
|
Modifier | Constructor and Description |
---|---|
protected |
Predictor(int algorithm)
Create an instance of a predictor.
|
Modifier and Type | Method and Description |
---|---|
int |
getAlgorithm()
Get the algorithm in use
|
int |
getBitsPerComponent()
Get the number of bits per color component
|
int |
getColors()
Get the number of colors per sample
|
int |
getColumns()
Get the number of columns
|
static Predictor |
getPredictor(PDFObject params)
Get an instance of a predictor
|
void |
setBitsPerComponent(int bpc)
Set the number of bits per color component
|
protected void |
setColors(int colors)
Set the number of colors per sample
|
void |
setColumns(int columns)
Set the number of columns
|
abstract ByteBuffer |
unpredict(ByteBuffer imageData)
Actually perform this algorithm on decoded image data.
|
public static final int TIFF
public static final int PNG
protected Predictor(int algorithm)
getPredictor()
instead of this.public abstract ByteBuffer unpredict(ByteBuffer imageData) throws IOException
IOException
public static Predictor getPredictor(PDFObject params) throws IOException
params
- the filter parametersIOException
public int getAlgorithm()
public int getColors()
protected void setColors(int colors)
public int getBitsPerComponent()
public void setBitsPerComponent(int bpc)
public int getColumns()
public void setColumns(int columns)
Copyright © 2023. All rights reserved.