com.jinke.gui.image
Class ImageDecoder

java.lang.Object
  extended by com.jinke.gui.image.ImageDecoder

public class ImageDecoder
extends java.lang.Object


Field Summary
static int BMP
           
static int GIF
           
private  int height
           
static int JPG
           
private  int level
           
static int NOTSUPPORT
           
 int pImage
           
(package private)  int[][] pixel
           
static int PNG
           
private  int type
           
private  int width
           
 
Constructor Summary
ImageDecoder(java.io.InputStream inputstream)
           
 
Method Summary
private  void decode(byte[] abyte0)
           
 void destroy()
           
private  void destroy(int i)
           
protected  void finalize()
           
 int getHeight()
           
 int getLevel()
           
 int[][] getPixelMetrix()
           
private  void getPixelMetrix(int i, int[][] ai, int j)
           
 int getType()
           
 int getWidth()
           
 void resample(int i, int j)
           
private  void resample(int i, int j, int k)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NOTSUPPORT

public static final int NOTSUPPORT
See Also:
Constant Field Values

BMP

public static final int BMP
See Also:
Constant Field Values

JPG

public static final int JPG
See Also:
Constant Field Values

GIF

public static final int GIF
See Also:
Constant Field Values

PNG

public static final int PNG
See Also:
Constant Field Values

type

private int type

width

private int width

height

private int height

level

private int level

pImage

public int pImage

pixel

int[][] pixel
Constructor Detail

ImageDecoder

public ImageDecoder(java.io.InputStream inputstream)
             throws java.io.IOException
Parameters:
inputstream -
Throws:
java.io.IOException
Method Detail

decode

private void decode(byte[] abyte0)

destroy

private void destroy(int i)

getPixelMetrix

private void getPixelMetrix(int i,
                            int[][] ai,
                            int j)

resample

private void resample(int i,
                      int j,
                      int k)

getType

public int getType()
Returns:

getWidth

public int getWidth()
Returns:

getHeight

public int getHeight()
Returns:

getLevel

public int getLevel()
Returns:

getPixelMetrix

public int[][] getPixelMetrix()
Returns:

resample

public void resample(int i,
                     int j)
Parameters:
i -
j -

destroy

public void destroy()

finalize

protected void finalize()