com.jinke.gui.image
Class ImageDecoder
java.lang.Object
com.jinke.gui.image.ImageDecoder
public class ImageDecoder
- extends java.lang.Object
|
Constructor Summary |
ImageDecoder(java.io.InputStream inputstream)
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
ImageDecoder
public ImageDecoder(java.io.InputStream inputstream)
throws java.io.IOException
- Parameters:
inputstream -
- Throws:
java.io.IOException
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()