Modifier and Type | Field and Description |
---|---|
static byte[] |
JFIF_ID
sequence that is used in all Jpeg files
|
static int |
M_APP0
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.
|
absoluteX, absoluteY, alignment, alt, annotation, AX, AY, bpc, BX, BY, colorspace, CX, CY, DEFAULT, deflated, dpiX, dpiY, DX, DY, imageMask, indentationLeft, indentationRight, interpolation, invert, layer, LEFT, markupAttributes, mask, MIDDLE, mySerialId, ORIGINAL_BMP, ORIGINAL_GIF, ORIGINAL_JPEG, ORIGINAL_NONE, ORIGINAL_PNG, ORIGINAL_PS, ORIGINAL_TIFF, ORIGINAL_WMF, originalData, originalType, plainHeight, plainWidth, profile, rawData, RIGHT, rotation, scaledHeight, scaledWidth, serialId, spacingAfter, spacingBefore, template, TEXTWRAP, transparency, type, UNDERLYING, url
background, border, borderColorBottom, borderColorLeft, borderColorRight, borderColorTop, borderWidth, borderWidthBottom, borderWidthLeft, borderWidthRight, borderWidthTop, BOTTOM, BOX, color, llx, lly, NO_BORDER, TOP, UNDEFINED, urx, ury, useVariableBorders
ALIGN_BASELINE, ALIGN_BOTTOM, ALIGN_CENTER, ALIGN_JUSTIFIED, ALIGN_JUSTIFIED_ALL, ALIGN_LEFT, ALIGN_MIDDLE, ALIGN_RIGHT, ALIGN_TOP, ALIGN_UNDEFINED, ANCHOR, ANNOTATION, AUTHOR, CCITT_BLACKIS1, CCITT_ENCODEDBYTEALIGN, CCITT_ENDOFBLOCK, CCITT_ENDOFLINE, CCITTG3_1D, CCITTG3_2D, CCITTG4, CELL, CHAPTER, CHUNK, CREATIONDATE, CREATOR, GRAPHIC, HEADER, IMGRAW, IMGTEMPLATE, JPEG, KEYWORDS, LIST, LISTITEM, MULTI_COLUMN_TEXT, PARAGRAPH, PHRASE, PRODUCER, PTABLE, RECTANGLE, ROW, SECTION, SUBJECT, TABLE, TITLE
Constructor and Description |
---|
Jpeg(byte[] img)
Constructs a
Jpeg -object from memory. |
Jpeg(byte[] img,
float width,
float height)
Constructs a
Jpeg -object from memory. |
Jpeg(Image image) |
Jpeg(java.lang.String filename)
Deprecated.
use Image.getInstance(...) to create an Image
|
Jpeg(java.lang.String filename,
float width,
float height)
Deprecated.
use Image.getInstance(...) to create an Image
|
Jpeg(java.net.URL url)
Constructs a
Jpeg -object, using an url. |
Jpeg(java.net.URL url,
float width,
float height)
Deprecated.
use Image.getInstance(...) to create an Image
|
Modifier and Type | Method and Description |
---|---|
private static int |
getShort(java.io.InputStream is)
Reads a short from the
InputStream . |
private static int |
marker(int marker)
Returns a type of marker.
|
private void |
processParameters()
This method checks if the image is a valid JPEG and processes some parameters.
|
absoluteX, absoluteY, alignment, alt, annotation, bpc, colorspace, getAdditional, getDirectReference, getDpiX, getDpiY, getICCProfile, getImageMask, getImageRotation, getInitialRotation, getInstance, getInstance, getInstance, getInstance, getInstance, getInstance, getInstance, getInstance, getInstance, getInstance, getInstance, getInstance, getInstance, getInstance, getInstance, getLayer, getMarkupAttribute, getMarkupAttributeNames, getMarkupAttributes, getMySerialId, getOriginalData, getOriginalType, getSerialId, getTransparency, getWidthPercentage, getXYRatio, hasAbsolutePosition, hasAbsoluteX, hasICCProfile, indentationLeft, indentationRight, isDeflated, isImgRaw, isImgTemplate, isInterpolation, isInverted, isInvertMask, isJpeg, isMask, isMaskCandidate, isSmask, isTag, makeMask, matrix, plainHeight, plainWidth, rawData, scaleAbsolute, scaleAbsoluteHeight, scaleAbsoluteWidth, scaledHeight, scaledWidth, scalePercent, scalePercent, scaleToFit, setAbsolutePosition, setAdditional, setAlignment, setAlt, setAnnotation, setDeflated, setDirectReference, setDpi, setImageMask, setIndentationLeft, setIndentationRight, setInitialRotation, setInterpolation, setInverted, setInvertMask, setLayer, setMarkupAttribute, setMarkupAttributes, setOriginalData, setOriginalType, setRotation, setRotationDegrees, setSmask, setSpacingAfter, setSpacingBefore, setTemplateData, setTransparency, setUrl, setWidthPercentage, setXYRatio, simplifyColorspace, skip, spacingAfter, spacingBefore, tagICC, templateData, toURL, type, unEscapeURL, url
backgroundColor, border, borderColor, borderWidth, bottom, bottom, cloneNonPositionParameters, disableBorderSide, enableBorderSide, getBorderColorBottom, getBorderColorLeft, getBorderColorRight, getBorderColorTop, getBorderWidthBottom, getBorderWidthLeft, getBorderWidthRight, getBorderWidthTop, getChunks, getRotation, grayFill, hasBorder, hasBorders, height, isUseVariableBorders, left, left, normalize, process, rectangle, right, right, rotate, setBackgroundColor, setBorder, setBorderColor, setBorderColorBottom, setBorderColorLeft, setBorderColorRight, setBorderColorTop, setBorderWidth, setBorderWidthBottom, setBorderWidthLeft, setBorderWidthRight, setBorderWidthTop, setBottom, setGrayFill, setLeft, setRight, setTop, setUseVariableBorders, softCloneNonPositionParameters, top, top, toString, width
public static final int NOT_A_MARKER
public static final int VALID_MARKER
public static final int[] VALID_MARKERS
public static final int UNSUPPORTED_MARKER
public static final int[] UNSUPPORTED_MARKERS
public static final int NOPARAM_MARKER
public static final int[] NOPARAM_MARKERS
public static final int M_APP0
public static final int M_APPE
public static final byte[] JFIF_ID
Jpeg(Image image)
public Jpeg(java.net.URL url) throws BadElementException, java.io.IOException
Jpeg
-object, using an url.url
- the URL
where the image can be foundBadElementException
java.io.IOException
public Jpeg(java.net.URL url, float width, float height) throws BadElementException, java.io.IOException
Jpeg
-object, using an url.url
- the URL
where the image can be found.width
- new width of the Jpegheight
- new height of the JpegBadElementException
java.io.IOException
public Jpeg(java.lang.String filename) throws BadElementException, java.net.MalformedURLException, java.io.IOException
Jpeg
-object, using a filename.filename
- a String
-representation of the file that contains the Image.BadElementException
java.net.MalformedURLException
java.io.IOException
public Jpeg(java.lang.String filename, float width, float height) throws BadElementException, java.net.MalformedURLException, java.io.IOException
Jpeg
-object, using a filename.filename
- a String
-representation of the file that contains the Image.width
- new width of the Jpegheight
- new height of the JpegBadElementException
java.net.MalformedURLException
java.io.IOException
public Jpeg(byte[] img) throws BadElementException, java.io.IOException
Jpeg
-object from memory.img
- the memory imageBadElementException
java.io.IOException
public Jpeg(byte[] img, float width, float height) throws BadElementException, java.io.IOException
Jpeg
-object from memory.img
- the memory image.width
- the width you want the image to haveheight
- the height you want the image to haveBadElementException
java.io.IOException
private static final int getShort(java.io.InputStream is) throws java.io.IOException
InputStream
.is
- the InputStream
java.io.IOException
private static final int marker(int marker)
marker
- an intprivate void processParameters() throws BadElementException, java.io.IOException
BadElementException
java.io.IOException