public class ImageRawJPEG extends ImageRawStream
ImageRawStream.ByteArrayStreamFactory, ImageRawStream.InputStreamFactory
构造器和说明 |
---|
ImageRawJPEG(ImageInfo info,
InputStream in,
int sofType,
ColorSpace colorSpace,
ICC_Profile iccProfile,
boolean invertImage)
Main constructor.
|
限定符和类型 | 方法和说明 |
---|---|
ColorSpace |
getColorSpace()
Returns the image's color space
|
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
getInfo, getSize, toString
public ImageRawJPEG(ImageInfo info, InputStream in, int sofType, ColorSpace colorSpace, 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 ICC_Profile getICCProfile()
getICCProfile
在接口中 Image
getICCProfile
在类中 AbstractImage
public boolean isInverted()
public ColorSpace getColorSpace()
getColorSpace
在接口中 Image
getColorSpace
在类中 AbstractImage
Copyright 1999-2016 The Apache Software Foundation. All Rights Reserved.