| |
|
| java.lang.Object com.sun.pdfview.decode.Predictor
All known Subclasses: com.sun.pdfview.decode.PNGPredictor,
Predictor | abstract public class Predictor (Code) | | The abstract superclass of various predictor objects that undo well-known
prediction algorithms.
|
Field Summary | |
final public static int | PNG | final public static int | TIFF |
Constructor Summary | |
protected | Predictor(int algorithm) Create an instance of a predictor. |
PNG | final public static int PNG(Code) | | |
TIFF | final public static int TIFF(Code) | | well known algorithms
|
Predictor | protected Predictor(int algorithm)(Code) | | Create an instance of a predictor. Use getPredictor()
instead of this.
|
getAlgorithm | public int getAlgorithm()(Code) | | Get the algorithm in use
one of the known algorithm types |
getBitsPerComponent | public int getBitsPerComponent()(Code) | | Get the number of bits per color component
|
getColors | public int getColors()(Code) | | Get the number of colors per sample
|
getColumns | public int getColumns()(Code) | | Get the number of columns
|
setBitsPerComponent | public void setBitsPerComponent(int bpc)(Code) | | Set the number of bits per color component
|
setColors | protected void setColors(int colors)(Code) | | Set the number of colors per sample
|
setColumns | public void setColumns(int columns)(Code) | | Set the number of columns
|
unpredict | abstract public ByteBuffer unpredict(ByteBuffer imageData) throws IOException(Code) | | Actually perform this algorithm on decoded image data.
Subclasses must implement this method
|
|
|
|