org.apache.sanselan.formats.png
Class BitParser

java.lang.Object
  extended by org.apache.sanselan.formats.png.BitParser

public class BitParser
extends java.lang.Object


Constructor Summary
BitParser(byte[] bytes, int bitsPerPixel, int bitDepth)
           
 
Method Summary
 int getSample(int pixelIndexInScanline, int sampleIndex)
           
 int getSampleAsByte(int pixelIndexInScanline, int sampleIndex)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BitParser

public BitParser(byte[] bytes,
                 int bitsPerPixel,
                 int bitDepth)
Method Detail

getSample

public int getSample(int pixelIndexInScanline,
                     int sampleIndex)
              throws ImageReadException,
                     java.io.IOException
Throws:
ImageReadException
java.io.IOException

getSampleAsByte

public int getSampleAsByte(int pixelIndexInScanline,
                           int sampleIndex)
                    throws ImageReadException,
                           java.io.IOException
Throws:
ImageReadException
java.io.IOException


Copyright © 2007-2009. All Rights Reserved.