Image
public class ImageRawJPEG extends ImageRawStream
ImageRawStream.ByteArrayStreamFactory, ImageRawStream.InputStreamFactory
Constructor | 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 | 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.
|
getInfo, getSize, toString
createInputStream, getFlavor, getMimeType, isCacheable, setInputStreamFactory, writeTo
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-2016 The Apache Software Foundation. All Rights Reserved.