|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.flagstone.transform.image.JPEGInfo
public final class JPEGInfo
JPEGInfo is used to extract the width and height from a JPEG encoded image.
| Field Summary | |
|---|---|
static int |
APP
Marks the start of an application specific block. |
static int |
COM
Marks the start of an comment block. |
static int |
DHT
Marks the Huffman table. |
static int |
DQT
Marks the quantization table. |
static int |
DRI
Marks the restart interval. |
static int |
EOI
Marks the end of an image. |
static int |
JPG
Marks the start of a JPG block. |
static int |
RST
Marks a restart. |
static int |
SOF0
Marks the start of a frame - baseline DCT. |
static int |
SOF2
Marks the start of a frame - progressive DCT. |
static int |
SOFF
Marks the start of a JPG block. |
static int |
SOI
Marks the start of an image. |
static int |
SOS
Marks the start of scan. |
| Constructor Summary | |
|---|---|
JPEGInfo()
|
|
| Method Summary | |
|---|---|
void |
decode(byte[] image)
Decode a JPEG encoded image. |
int |
getHeight()
Return the height of the image in pixels, not twips. |
int |
getWidth()
Get the width of the image in pixels, not twips. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int SOI
public static final int EOI
public static final int SOF0
public static final int SOF2
public static final int JPG
public static final int SOFF
public static final int DHT
public static final int DQT
public static final int DRI
public static final int SOS
public static final int RST
public static final int APP
public static final int COM
| Constructor Detail |
|---|
public JPEGInfo()
| Method Detail |
|---|
public int getWidth()
public int getHeight()
public void decode(byte[] image)
image - the image data.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||