|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sun.media.jai.codec.JPEGDecodeParam
An instance of ImageDecodeParam
for decoding images in
the JPEG format.
This class allows for the specification of whether to decode the
JPEG data into an image having a SampleModel
which is a
ComponentSampleModel
or a subclass thereof. By default
data are decoded into an image having a ComponentSampleModel
.
This class is not a committed part of the JAI API. It may be removed or changed in future releases of JAI.
Constructor Summary | |
JPEGDecodeParam()
Constructs a JPEGDecodeParam object with default
parameter values. |
Method Summary | |
boolean |
getDecodeToCSM()
Returns the value of the ComponentSampleModel flag
which is by default true . |
void |
setDecodeToCSM(boolean decodeToCSM)
Sets the data formatting flag to the value of the supplied parameter. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public JPEGDecodeParam()
JPEGDecodeParam
object with default
parameter values.
Method Detail |
public void setDecodeToCSM(boolean decodeToCSM)
true
the data will be decoded into an image which has
a SampleModel
which is a ComponentSampleModel
.
The default setting of this flag is true
. If the flag is
set to false
then memory may be saved during decoding but
the resulting image is not in that case guaranteed to have a
ComponentSampleModel
.
decodeToCSM
- true
if a
ComponentSampleModel
layout is preferred for the
decoded image.public boolean getDecodeToCSM()
ComponentSampleModel
flag
which is by default true
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |