|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.imageio.IIOParam javax.imageio.ImageReadParam org.geotools.image.io.RawBinaryImageReadParam
A class describing how a raw binary stream is to be decoded. In the context of
RawBinaryImageReader
, the stream may not contains enough information
for an optimal decoding. For example the stream may not contains image's
width and height. The RawBinaryImageReadParam
gives a chance
to specify those missing informations.
Field Summary |
Fields inherited from class javax.imageio.ImageReadParam |
canSetSourceRenderSize, destination, destinationBands, minProgressivePass, numProgressivePasses, sourceRenderSize |
Fields inherited from class javax.imageio.IIOParam |
controller, defaultController, destinationOffset, destinationType, sourceBands, sourceRegion, sourceXSubsampling, sourceYSubsampling, subsamplingXOffset, subsamplingYOffset |
Constructor Summary | |
RawBinaryImageReadParam()
Deprecated. Construct a new RawBinaryImageReadParam
with default parameters. |
Method Summary | |
double |
getPadValue()
Deprecated. Returns the pad value, or Double.NaN if there is none |
int |
getStreamDataType()
Deprecated. Returns the data type in input stream, or DataBuffer.TYPE_UNDEFINED
if unknow. |
java.awt.Dimension |
getStreamImageSize()
Deprecated. Returns the image size in the input stream, or null if unknow.
|
java.awt.image.SampleModel |
getStreamSampleModel()
Deprecated. Returns a sample model indicating the data layout in the input stream. |
void |
setDestinationType(int destType)
Deprecated. Sets the desired image type for the destination image, using one of DataBuffer enumeration constant. |
void |
setPadValue(double padValue)
Deprecated. Set the pad value. |
void |
setStreamDataType(int dataType)
Deprecated. Specify the data type in input stream. |
void |
setStreamImageSize(java.awt.Dimension size)
Deprecated. Specify the image size in the input stream. |
void |
setStreamSampleModel(java.awt.image.SampleModel model)
Deprecated. Set a sample model indicating the data layout in the input stream. |
Methods inherited from class javax.imageio.ImageReadParam |
canSetSourceRenderSize, getDestination, getDestinationBands, getSourceMaxProgressivePass, getSourceMinProgressivePass, getSourceNumProgressivePasses, getSourceRenderSize, setDestination, setDestinationBands, setDestinationType, setSourceProgressivePasses, setSourceRenderSize |
Methods inherited from class javax.imageio.IIOParam |
activateController, getController, getDefaultController, getDestinationOffset, getDestinationType, getSourceBands, getSourceRegion, getSourceXSubsampling, getSourceYSubsampling, getSubsamplingXOffset, getSubsamplingYOffset, hasController, setController, setDestinationOffset, setSourceBands, setSourceRegion, setSourceSubsampling |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public RawBinaryImageReadParam()
RawBinaryImageReadParam
with default parameters.
Method Detail |
public void setStreamImageSize(java.awt.Dimension size)
null
reset the default size, which is reader dependent. Most readers will thrown an
exception at reading time if the image size is unspecified.
size
- The expected image size, or
null
if unknow.public java.awt.Dimension getStreamImageSize()
null
if unknow.
Image size is specified by the last call to setStreamImageSize(java.awt.Dimension)
or
setStreamSampleModel(java.awt.image.SampleModel)
.
public void setStreamDataType(int dataType)
DataBuffer.TYPE_UNDEFINED
reset the default value, which
is reader dependent.
dataType
- The data type, or DataBuffer.TYPE_UNDEFINED
if unknow.
Know data type should be a constant from DataBuffer
. Common
types are DataBuffer.TYPE_INT
, DataBuffer.TYPE_FLOAT
and DataBuffer.TYPE_DOUBLE
.public int getStreamDataType()
DataBuffer.TYPE_UNDEFINED
if unknow. Data type is specified by the last call to setStreamDataType(int)
or setStreamSampleModel(java.awt.image.SampleModel)
.
public void setDestinationType(int destType)
DataBuffer
enumeration constant. This setting will override
any previous setting made with ImageReadParam.setDestinationType(ImageTypeSpecifier)
or this setDestinationType(int)
method.
destType
- The data type. This should be a constant from DataBuffer
.
Common types are DataBuffer.TYPE_INT
, DataBuffer.TYPE_FLOAT
and DataBuffer.TYPE_DOUBLE
.public void setPadValue(double padValue)
padValue
- The pad value, or Double.NaN
if there is none.public double getPadValue()
Double.NaN
if there is none
public void setStreamSampleModel(java.awt.image.SampleModel model)
Setting the sample model tosetStreamImageSize(model.getWidth(), model.getHeight()); setStreamDataType(model.getDataType());
null
reset
the default model, which is reader dependent.
public java.awt.image.SampleModel getStreamSampleModel()
SampleModel
's width and height should matches the image
size in the input stream.
null
if unknow.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |