com.lowagie.text
public class Jpeg2000 extends Image
Jpeg2000
is the representation of a graphic element (JPEG)
that has to be inserted into the document
Field Summary | |
---|---|
int | boxLength |
int | boxType |
InputStream | inp |
static int | JP2_BPCC |
static int | JP2_COLR |
static int | JP2_DBTL |
static int | JP2_FTYP |
static int | JP2_IHDR |
static int | JP2_JP |
static int | JP2_JP2 |
static int | JP2_JP2C |
static int | JP2_JP2H |
static int | JP2_URL |
static int | JPIP_JPIP |
Constructor Summary | |
---|---|
Jpeg2000(Image image) | |
Jpeg2000(URL url)
Constructs a Jpeg2000 -object, using an url.
| |
Jpeg2000(byte[] img)
Constructs a Jpeg2000 -object from memory.
| |
Jpeg2000(byte[] img, float width, float height)
Constructs a Jpeg2000 -object from memory.
|
Method Summary | |
---|---|
int | cio_read(int n) |
void | jp2_read_boxhdr() |
void | processParameters()
This method checks if the image is a valid JPEG and processes some parameters. |
Jpeg2000
-object, using an url.
Parameters: url the URL
where the image can be found
Throws: BadElementException IOException
Jpeg2000
-object from memory.
Parameters: img the memory image
Throws: BadElementException IOException
Jpeg2000
-object from memory.
Parameters: img the memory image. width the width you want the image to have height the height you want the image to have
Throws: BadElementException IOException
Throws: IOException