|
xmlgraphics-commons 1.3.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.xmlgraphics.image.loader.impl.AbstractImage
org.apache.xmlgraphics.image.loader.impl.ImageRawStream
org.apache.xmlgraphics.image.loader.impl.ImageRawJPEG
public class ImageRawJPEG
This class is an implementation of the Image interface exposing a JPEG file. It provides an InputStream to access the JPEG content and some additional information on the image.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.apache.xmlgraphics.image.loader.impl.ImageRawStream |
---|
ImageRawStream.InputStreamFactory |
Constructor Summary | |
---|---|
ImageRawJPEG(ImageInfo info,
java.io.InputStream in,
int sofType,
java.awt.color.ColorSpace colorSpace,
java.awt.color.ICC_Profile iccProfile,
boolean invertImage)
Main constructor. |
Method Summary | |
---|---|
java.awt.color.ColorSpace |
getColorSpace()
Returns the image's color space |
java.awt.color.ICC_Profile |
getICCProfile()
Returns the ICC color profile if one is associated with the JPEG image. |
int |
getSOFType()
Returns the SOFn identifier of the image which describes the coding format of the image. |
boolean |
isInverted()
Indicates whether the image should be inverted when interpreting it. |
Methods inherited from class org.apache.xmlgraphics.image.loader.impl.ImageRawStream |
---|
createInputStream, getFlavor, isCacheable, setInputStreamFactory, writeTo, writeTo |
Methods inherited from class org.apache.xmlgraphics.image.loader.impl.AbstractImage |
---|
getInfo, getSize, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ImageRawJPEG(ImageInfo info, java.io.InputStream in, int sofType, java.awt.color.ColorSpace colorSpace, java.awt.color.ICC_Profile iccProfile, boolean invertImage)
info
- the image info objectin
- the ImageInputStream with the raw contentsofType
- the SOFn identifiercolorSpace
- the color spaceiccProfile
- an ICC color profile or null if no profile is associatedinvertImage
- true if the image should be inverted when painting itMethod Detail |
---|
public int getSOFType()
public java.awt.color.ICC_Profile getICCProfile()
getICCProfile
in interface Image
getICCProfile
in class AbstractImage
public boolean isInverted()
public java.awt.color.ColorSpace getColorSpace()
getColorSpace
in interface Image
getColorSpace
in class AbstractImage
|
xmlgraphics-commons 1.3.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |