![]() | |
| Prev Class | Next Class | Frames | No Frames |
| Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Objectcom.lowagie.text.Rectanglecom.lowagie.text.Imagecom.lowagie.text.Jpegpublic class Jpegextends ImageJpeg is the representation of a graphic element (JPEG)
that has to be inserted into the document
Field Summary | |
static byte[] |
|
static int |
|
static int |
|
static int |
|
static int[] |
|
static int |
|
static int |
|
static int[] |
|
static int |
|
static int[] |
|
Fields inherited from class com.lowagie.text.Image | |
AX, AY, BX, BY, CX, CY, DEFAULT, DX, DY, LEFT, MIDDLE, ORIGINAL_BMP, ORIGINAL_GIF, ORIGINAL_JPEG, ORIGINAL_NONE, ORIGINAL_PNG, ORIGINAL_PS, ORIGINAL_TIFF, ORIGINAL_WMF, RIGHT, TEXTWRAP, UNDERLYING, XYRatio, absoluteX, absoluteY, additional, alignment, alt, annotation, bpc, colorspace, deflated, directReference, dpiX, dpiY, excUri, excUriEsc, imageMask, indentationLeft, indentationRight, initialRotation, interpolation, invert, layer, markupAttributes, mask, mySerialId, originalData, originalType, plainHeight, plainWidth, profile, rawData, rotation, scaledHeight, scaledWidth, serialId, smask, spacingAfter, spacingBefore, template, transparency, type, url, widthPercentage | |
Fields inherited from class com.lowagie.text.Rectangle | |
BOTTOM, BOX, LEFT, NO_BORDER, RIGHT, TOP, UNDEFINED, background, border, borderColorBottom, borderColorLeft, borderColorRight, borderColorTop, borderWidth, borderWidthBottom, borderWidthLeft, borderWidthRight, borderWidthTop, color, llx, lly, markupAttributes, rotation, urx, ury, useVariableBorders | |
Fields inherited from interface com.lowagie.text.Element | |
ALIGN_BASELINE, ALIGN_BOTTOM, ALIGN_CENTER, ALIGN_JUSTIFIED, ALIGN_JUSTIFIED_ALL, ALIGN_LEFT, ALIGN_MIDDLE, ALIGN_RIGHT, ALIGN_TOP, ALIGN_UNDEFINED, ANCHOR, ANNOTATION, AUTHOR, CCITTG3_1D, CCITTG3_2D, CCITTG4, CCITT_BLACKIS1, CCITT_ENCODEDBYTEALIGN, CCITT_ENDOFBLOCK, CCITT_ENDOFLINE, CELL, CHAPTER, CHUNK, CREATIONDATE, CREATOR, HEADER, IMGRAW, IMGTEMPLATE, JPEG, KEYWORDS, LIST, LISTITEM, MARKED, MULTI_COLUMN_TEXT, PARAGRAPH, PHRASE, PRODUCER, PTABLE, RECTANGLE, ROW, SECTION, SUBJECT, TABLE, TITLE | |
Constructor Summary | |
| |
| |
| |
| |
| |
| |
Method Summary | |
private static int |
|
private static int |
|
private void |
|
public static final byte[] JFIF_ID
sequence that is used in all Jpeg files
public static final int M_APP0
Marker value
- Field Value:
- 224
public static final int M_APPE
Marker value
- Field Value:
- 238
public static final int NOPARAM_MARKER
This is a type of marker.
- Field Value:
- 2
public static final int[] NOPARAM_MARKERS
Jpeg markers without additional parameters.
public static final int NOT_A_MARKER
This is a type of marker.
- Field Value:
- -1
public static final int UNSUPPORTED_MARKER
This is a type of marker.
- Field Value:
- 1
public static final int[] UNSUPPORTED_MARKERS
Unsupported Jpeg markers.
public static final int VALID_MARKER
This is a type of marker.
- Field Value:
- 0
public static final int[] VALID_MARKERS
Acceptable Jpeg markers.
public Jpeg(String filename)
throws BadElementException,
MalformedURLException,
IOExceptionDeprecated. use Image.getInstance(...) to create an Image
Constructs aJpeg-object, using a filename.
- Parameters:
filename- aString-representation of the file that contains the Image.
public Jpeg(String filename,
float width,
float height)
throws BadElementException,
MalformedURLException,
IOExceptionDeprecated. use Image.getInstance(...) to create an Image
Constructs aJpeg-object, using a filename.
- Parameters:
filename- aString-representation of the file that contains the Image.width- new width of the Jpegheight- new height of the Jpeg
public Jpeg(URL url)
throws BadElementException,
IOExceptionConstructs aJpeg-object, using an url.
- Parameters:
url- theURLwhere the image can be found
- Throws:
BadElementException-
public Jpeg(URL url,
float width,
float height)
throws BadElementException,
IOExceptionDeprecated. use Image.getInstance(...) to create an Image
Constructs aJpeg-object, using an url.
- Parameters:
url- theURLwhere the image can be found.width- new width of the Jpegheight- new height of the Jpeg
- Throws:
BadElementException-
public Jpeg(byte[] img)
throws BadElementException,
IOExceptionConstructs aJpeg-object from memory.
- Parameters:
img- the memory image
- Throws:
BadElementException-
public Jpeg(byte[] img,
float width,
float height)
throws BadElementException,
IOExceptionConstructs aJpeg-object from memory.
- Parameters:
img- the memory image.width- the width you want the image to haveheight- the height you want the image to have
- Throws:
BadElementException-
(package private) Jpeg(Image image)
Constructs anImage-object, using an url .
- Parameters:
image- another Image object.
private static final int getShort(InputStream is)
throws IOExceptionReads a short from theInputStream.
- Parameters:
is- theInputStream
- Returns:
- an int
private static final int marker(int marker)
Returns a type of marker.
- Parameters:
marker- an int
- Returns:
- a type: VALID_MARKER, UNSUPPORTED_MARKER or NOPARAM_MARKER
private void processParameters()
throws BadElementException,
IOExceptionThis method checks if the image is a valid JPEG and processes some parameters.
- Throws:
BadElementException-