com.lowagie.text
public class Jpeg extends Image
Jpeg is the representation of a graphic element (JPEG)
that has to be inserted into the document
| Field Summary | |
|---|---|
| byte[][] | icc |
| static byte[] | JFIF_ID sequence that is used in all Jpeg files |
| static int | M_APP0 Marker value |
| static int | M_APP2 Marker value |
| static int | M_APPE Marker value |
| static int | NOPARAM_MARKER This is a type of marker. |
| static int[] | NOPARAM_MARKERS Jpeg markers without additional parameters. |
| static int | NOT_A_MARKER This is a type of marker. |
| static int | UNSUPPORTED_MARKER This is a type of marker. |
| static int[] | UNSUPPORTED_MARKERS Unsupported Jpeg markers. |
| static int | VALID_MARKER This is a type of marker. |
| static int[] | VALID_MARKERS Acceptable Jpeg markers. |
| Constructor Summary | |
|---|---|
| Jpeg(Image image) | |
| Jpeg(URL url)
Constructs a Jpeg-object, using an url.
| |
| Jpeg(byte[] img)
Constructs a Jpeg-object from memory.
| |
| Jpeg(byte[] img, float width, float height)
Constructs a Jpeg-object from memory.
| |
| Method Summary | |
|---|---|
| static int | getShort(InputStream is)
Reads a short from the InputStream.
|
| static int | marker(int marker)
Returns a type of marker.
|
| void | processParameters()
This method checks if the image is a valid JPEG and processes some parameters. |
Jpeg-object, using an url.
Parameters: url the URL where the image can be found
Throws: BadElementException IOException
Jpeg-object from memory.
Parameters: img the memory image
Throws: BadElementException IOException
Jpeg-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
InputStream.
Parameters: is the InputStream
Returns: an int
Throws: IOException
Parameters: marker an int
Returns: a type: VALID_MARKER, UNSUPPORTED_MARKER or NOPARAM_MARKER
Throws: BadElementException IOException