org.apache.sanselan.formats.tiff.photometricinterpreters
Class PhotometricInterpreter

java.lang.Object
  extended by org.apache.sanselan.formats.tiff.photometricinterpreters.PhotometricInterpreter
Direct Known Subclasses:
PhotometricInterpreterBiLevel, PhotometricInterpreterCIELAB, PhotometricInterpreterCMYK, PhotometricInterpreterLogLUV, PhotometricInterpreterPalette, PhotometricInterpreterRGB, PhotometricInterpreterYCbCr

public abstract class PhotometricInterpreter
extends java.lang.Object


Field Summary
protected  int[] bitsPerSample
           
protected  int height
           
protected  int predictor
           
protected  int samplesPerPixel
           
protected  int width
           
 
Constructor Summary
PhotometricInterpreter(int fSamplesPerPixel, int[] fBitsPerSample, int Predictor, int width, int height)
           
 
Method Summary
 void dumpstats()
           
abstract  void interpretPixel(java.awt.image.BufferedImage bi, int[] samples, int x, int y)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

samplesPerPixel

protected final int samplesPerPixel

bitsPerSample

protected final int[] bitsPerSample

predictor

protected final int predictor

width

protected final int width

height

protected final int height
Constructor Detail

PhotometricInterpreter

public PhotometricInterpreter(int fSamplesPerPixel,
                              int[] fBitsPerSample,
                              int Predictor,
                              int width,
                              int height)
Method Detail

interpretPixel

public abstract void interpretPixel(java.awt.image.BufferedImage bi,
                                    int[] samples,
                                    int x,
                                    int y)
                             throws ImageReadException,
                                    java.io.IOException
Throws:
ImageReadException
java.io.IOException

dumpstats

public void dumpstats()
               throws ImageReadException,
                      java.io.IOException
Throws:
ImageReadException
java.io.IOException


Copyright © 2007-2009. All Rights Reserved.