📄 simpleimagereader.html
字号:
types to which the given image may be decoded. The default implementation returns a singleton containing <A HREF="../../../../org/geotools/image/io/SimpleImageReader.html#getRawImageType(int)"><CODE>getRawImageType(int)</CODE></A>.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>imageIndex</CODE> - The index of the image to be retrieved.<DT><B>Returns:</B><DD>A set of suggested image types for decoding the current given image.<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></CODE> - If an error occurs reading the format information from the input source.</DL></DD></DL><HR><A NAME="getRawImageType(int)"><!-- --></A><H3>getRawImageType</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.4/docs/api/javax/imageio/ImageTypeSpecifier.html" title="class or interface in javax.imageio">ImageTypeSpecifier</A> <B>getRawImageType</B>(int imageIndex) throws <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></PRE><DL><DD>Returns an image type specifier indicating the <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/image/SampleModel.html" title="class or interface in java.awt.image"><CODE>SampleModel</CODE></A> and <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/image/ColorModel.html" title="class or interface in java.awt.image"><CODE>ColorModel</CODE></A> which most closely represents the "raw" internal format of the image. The default implementation returns an image type specifier for a <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/image/BandedSampleModel.html" title="class or interface in java.awt.image"><CODE>BandedSampleModel</CODE></A> of data type <A HREF="../../../../org/geotools/image/io/SimpleImageReader.html#getRawDataType(int)"><CODE>getRawDataType(int)</CODE></A>.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>imageIndex</CODE> - The index of the image to be queried.<DT><B>Returns:</B><DD>The image type (never ).<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></CODE> - If an error occurs reading the format information from the input source.</DL></DD></DL><HR><A NAME="getRawDataType(int)"><!-- --></A><H3>getRawDataType</H3><PRE>public int <B>getRawDataType</B>(int imageIndex) throws <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></PRE><DL><DD>Returns the data type which most closely represents the "raw" internal data of the image. It should be a constant from <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/image/DataBuffer.html" title="class or interface in java.awt.image"><CODE>DataBuffer</CODE></A>. Common types are <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/image/DataBuffer.html#TYPE_INT" title="class or interface in java.awt.image"><CODE>DataBuffer.TYPE_INT</CODE></A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/image/DataBuffer.html#TYPE_FLOAT" title="class or interface in java.awt.image"><CODE>DataBuffer.TYPE_FLOAT</CODE></A> and <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/image/DataBuffer.html#TYPE_DOUBLE" title="class or interface in java.awt.image"><CODE>DataBuffer.TYPE_DOUBLE</CODE></A>. The default implementation returns .<P><DD><DL><DT><B>Parameters:</B><DD><CODE>imageIndex</CODE> - The index of the image to be queried.<DT><B>Returns:</B><DD>The data type ( by default).<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></CODE> - If an error occurs reading the format information from the input source.</DL></DD></DL><HR><A NAME="getExpectedRange(int, int)"><!-- --></A><H3>getExpectedRange</H3><PRE>public abstract <A HREF="http://java.sun.com/products/java-media/jai/forDevelopers/jai-apidocs/javax/media/jai/util/Range.html" title="class or interface in javax.media.jai.util">Range</A> <B>getExpectedRange</B>(int imageIndex, int bandIndex) throws <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></PRE><DL><DD>Returns the expected range of values for a band. Implementation may read image data, or just returns some raisonable range.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>imageIndex</CODE> - The image index.<DD><CODE>bandIndex</CODE> - The band index. Valid index goes from inclusive to exclusive. Index are independent of any <A HREF="http://java.sun.com/j2se/1.4/docs/api/javax/imageio/IIOParam.html#setSourceBands(int[])" title="class or interface in javax.imageio"><CODE>IIOParam.setSourceBands(int[])</CODE></A> setting.<DT><B>Returns:</B><DD>The expected range of values, or if unknow.<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></CODE> - If an error occurs reading the data information from the input source.</DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ======= START OF BOTTOM NAVBAR ====== --><A NAME="navbar_bottom"><!-- --></A><A HREF="#skip-navbar_bottom" title="Skip navigation links"></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""><TR><TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/SimpleImageReader.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../org/geotools/image/io/RawBinaryImageReadParam.html" title="class in org.geotools.image.io"><B>PREV CLASS</B></A> <A HREF="../../../../org/geotools/image/io/TextImageReader.html" title="class in org.geotools.image.io"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../index.html" target="_top"><B>FRAMES</B></A> <A HREF="SimpleImageReader.html" target="_top"><B>NO FRAMES</B></A> <SCRIPT type="text/javascript"> <!-- if(window==top) { document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>'); } //--></SCRIPT><NOSCRIPT> <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A></NOSCRIPT></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: NESTED | <A HREF="#fields_inherited_from_class_ImageReader">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><A NAME="skip-navbar_bottom"></A><!-- ======== END OF BOTTOM NAVBAR ======= --><HR>Copyright © 1996-2007 <a href="http://www.geotools.org">Geotools</a>. All Rights Reserved.</BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -