public class ImageRawJPEG extends ImageRawStream
ImageRawStream.ByteArrayStreamFactory, ImageRawStream.InputStreamFactory
Constructor and Description |
---|
ImageRawJPEG(ImageInfo info,
java.io.InputStream in,
int sofType,
java.awt.color.ColorSpace colorSpace,
java.awt.color.ICC_Profile iccProfile,
boolean invertImage)
Main constructor.
|
Modifier and Type | Method and Description |
---|---|
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.
|
createInputStream, getFlavor, getMimeType, isCacheable, setInputStreamFactory, writeTo, writeTo
getInfo, getSize, toString
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 itpublic 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
Copyright 1999-2012 The Apache Software Foundation. All Rights Reserved.