org.apache.sanselan.formats.bmp.pixelparsers
Class PixelParser

java.lang.Object
  extended by org.apache.sanselan.formats.bmp.pixelparsers.PixelParser
Direct Known Subclasses:
PixelParserRle, PixelParserSimple

public abstract class PixelParser
extends java.lang.Object


Field Summary
protected  BinaryFileParser bfp
           
 BmpHeaderInfo bhi
           
 byte[] colorTable
           
 byte[] imageData
           
protected  java.io.ByteArrayInputStream is
           
 
Constructor Summary
PixelParser(BmpHeaderInfo bhi, byte[] ColorTable, byte[] ImageData)
           
 
Method Summary
protected  int getColorTableRGB(int index)
           
abstract  void processImage(java.awt.image.BufferedImage bi)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

bhi

public final BmpHeaderInfo bhi

colorTable

public final byte[] colorTable

imageData

public final byte[] imageData

bfp

protected final BinaryFileParser bfp

is

protected final java.io.ByteArrayInputStream is
Constructor Detail

PixelParser

public PixelParser(BmpHeaderInfo bhi,
                   byte[] ColorTable,
                   byte[] ImageData)
Method Detail

processImage

public abstract void processImage(java.awt.image.BufferedImage bi)
                           throws ImageReadException,
                                  java.io.IOException
Throws:
ImageReadException
java.io.IOException

getColorTableRGB

protected int getColorTableRGB(int index)


Copyright © 2007-2009. All Rights Reserved.