|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectewe.util.Errorable
ewe.fx.ImageCodec
This class is used by Image for decoding image formats. You would not use this class directly.
| Field Summary | |
Color |
background
This is the background color if one was specified. |
int |
bitDepth
|
static boolean |
canDecodeGIF
|
static boolean |
canDecodeJPEG
|
int |
compression
|
int |
convertTime
This is used for debugging only. |
int |
filter
|
int |
height
|
int |
interlace
|
boolean |
isBMPFile
|
boolean |
isGIFFile
|
boolean |
isJPEGFile
|
byte[] |
paletteBytes
|
int |
pauseTime
|
int |
setPixelTime
This is used for debuggin only. |
protected static int[] |
signature
|
byte[] |
transparencyBytes
|
Color |
transparent
This is the transparent color if one was specified. |
protected int |
transparentColor
|
protected int |
transparentColorLow
|
int |
type
|
int |
width
|
| Fields inherited from class ewe.util.Errorable |
error |
| Constructor Summary | |
ImageCodec()
|
|
| Method Summary | |
boolean |
decode(RandomAccessStream ras)
Call this first to decode the parameters of the PNG image. |
boolean |
decodeBMP(RandomAccessStream ras)
|
protected ewe.fx.pngChunk |
getChunk(RandomAccessStream ras)
|
ImageInfo |
getImageInfo(Stream dataStream,
int imageIndex,
ImageInfo destination,
boolean createImage)
|
ImageInfo[] |
getImages(Stream stream,
boolean createImages)
|
static boolean |
hasBMPSignature(byte[] startData)
|
static boolean |
hasGIFSignature(byte[] startData)
|
static boolean |
hasJPEGSignature(byte[] startData)
|
static boolean |
hasPNGSignature(byte[] startData)
|
static boolean |
isDecodable(byte[] first16Bytes)
|
Image |
javaToImage(Image im)
Call this after calling decode to convert it to an Image. |
boolean |
skipGifImage(BasicStream dataStream)
|
String |
toString()
Return a String representation of this object. |
| Methods inherited from class ewe.util.Errorable |
returnError, returnError, returnError |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode |
| Field Detail |
public int width
public int height
public int type
public int bitDepth
public int compression
public int filter
public int interlace
public byte[] paletteBytes
public byte[] transparencyBytes
protected int transparentColor
protected int transparentColorLow
public boolean isBMPFile
public boolean isJPEGFile
public boolean isGIFFile
public int pauseTime
public static boolean canDecodeGIF
public static boolean canDecodeJPEG
protected static final int[] signature
public Color background
public Color transparent
public int convertTime
public int setPixelTime
| Constructor Detail |
public ImageCodec()
| Method Detail |
protected ewe.fx.pngChunk getChunk(RandomAccessStream ras)
public static boolean hasPNGSignature(byte[] startData)
public static boolean hasBMPSignature(byte[] startData)
public static boolean hasGIFSignature(byte[] startData)
public static boolean hasJPEGSignature(byte[] startData)
public static boolean isDecodable(byte[] first16Bytes)
public boolean decodeBMP(RandomAccessStream ras)
public boolean decode(RandomAccessStream ras)
public Image javaToImage(Image im)
public String toString()
Object
toString in class Objectpublic boolean skipGifImage(BasicStream dataStream)
public ImageInfo getImageInfo(Stream dataStream,
int imageIndex,
ImageInfo destination,
boolean createImage)
throws IllegalArgumentException
IllegalArgumentException
public ImageInfo[] getImages(Stream stream,
boolean createImages)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||