📄 tifffield.html
字号:
<p> For data in TIFF_BYTE format, the application must take care when promoting the data to longer integral types to avoid sign extension. <p> A ClassCastException will be thrown if the field is not of type TIFF_BYTE, TIFF_SBYTE, or TIFF_UNDEFINED.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="getAsChars()"><!-- --></A><H3>getAsChars</H3><PRE>public char[] <B>getAsChars</B>()</PRE><DL><DD>Returns TIFF_SHORT data as an array of chars (unsigned 16-bit integers). <p> A ClassCastException will be thrown if the field is not of type TIFF_SHORT.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="getAsShorts()"><!-- --></A><H3>getAsShorts</H3><PRE>public short[] <B>getAsShorts</B>()</PRE><DL><DD>Returns TIFF_SSHORT data as an array of shorts (signed 16-bit integers). <p> A ClassCastException will be thrown if the field is not of type TIFF_SSHORT.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="getAsInts()"><!-- --></A><H3>getAsInts</H3><PRE>public int[] <B>getAsInts</B>()</PRE><DL><DD>Returns TIFF_SLONG data as an array of ints (signed 32-bit integers). <p> A ClassCastException will be thrown if the field is not of type TIFF_SLONG.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="getAsLongs()"><!-- --></A><H3>getAsLongs</H3><PRE>public long[] <B>getAsLongs</B>()</PRE><DL><DD>Returns TIFF_LONG data as an array of longs (signed 64-bit integers). <p> A ClassCastException will be thrown if the field is not of type TIFF_LONG.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="getAsFloats()"><!-- --></A><H3>getAsFloats</H3><PRE>public float[] <B>getAsFloats</B>()</PRE><DL><DD>Returns TIFF_FLOAT data as an array of floats. <p> A ClassCastException will be thrown if the field is not of type TIFF_FLOAT.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="getAsDoubles()"><!-- --></A><H3>getAsDoubles</H3><PRE>public double[] <B>getAsDoubles</B>()</PRE><DL><DD>Returns TIFF_DOUBLE data as an array of doubles. <p> A ClassCastException will be thrown if the field is not of type TIFF_DOUBLE.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="getAsSRationals()"><!-- --></A><H3>getAsSRationals</H3><PRE>public int[][] <B>getAsSRationals</B>()</PRE><DL><DD>Returns TIFF_SRATIONAL data as an array of 2-element arrays of ints. <p> A ClassCastException will be thrown if the field is not of type TIFF_SRATIONAL.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="getAsRationals()"><!-- --></A><H3>getAsRationals</H3><PRE>public long[][] <B>getAsRationals</B>()</PRE><DL><DD>Returns TIFF_RATIONAL data as an array of 2-element arrays of longs. <p> A ClassCastException will be thrown if the field is not of type TIFF_RATTIONAL.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="getAsInt(int)"><!-- --></A><H3>getAsInt</H3><PRE>public int <B>getAsInt</B>(int index)</PRE><DL><DD>Returns data in TIFF_BYTE, TIFF_SBYTE, TIFF_UNDEFINED, TIFF_SHORT, TIFF_SSHORT, or TIFF_SLONG format as an int. <p> TIFF_BYTE and TIFF_UNDEFINED data are treated as unsigned; that is, no sign extension will take place and the returned value will be in the range [0, 255]. TIFF_SBYTE data will be returned in the range [-128, 127]. <p> A ClassCastException will be thrown if the field is not of type TIFF_BYTE, TIFF_SBYTE, TIFF_UNDEFINED, TIFF_SHORT, TIFF_SSHORT, or TIFF_SLONG.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="getAsLong(int)"><!-- --></A><H3>getAsLong</H3><PRE>public long <B>getAsLong</B>(int index)</PRE><DL><DD>Returns data in TIFF_BYTE, TIFF_SBYTE, TIFF_UNDEFINED, TIFF_SHORT, TIFF_SSHORT, TIFF_SLONG, or TIFF_LONG format as a long. <p> TIFF_BYTE and TIFF_UNDEFINED data are treated as unsigned; that is, no sign extension will take place and the returned value will be in the range [0, 255]. TIFF_SBYTE data will be returned in the range [-128, 127]. <p> A ClassCastException will be thrown if the field is not of type TIFF_BYTE, TIFF_SBYTE, TIFF_UNDEFINED, TIFF_SHORT, TIFF_SSHORT, TIFF_SLONG, or TIFF_LONG.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="getAsFloat(int)"><!-- --></A><H3>getAsFloat</H3><PRE>public float <B>getAsFloat</B>(int index)</PRE><DL><DD>Returns data in any numerical format as a float. Data in TIFF_SRATIONAL or TIFF_RATIONAL format are evaluated by dividing the numerator into the denominator using double-precision arithmetic and then truncating to single precision. Data in TIFF_SLONG, TIFF_LONG, or TIFF_DOUBLE format may suffer from truncation. <p> A ClassCastException will be thrown if the field is of type TIFF_UNDEFINED or TIFF_ASCII.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="getAsDouble(int)"><!-- --></A><H3>getAsDouble</H3><PRE>public double <B>getAsDouble</B>(int index)</PRE><DL><DD>Returns data in any numerical format as a float. Data in TIFF_SRATIONAL or TIFF_RATIONAL format are evaluated by dividing the numerator into the denominator using double-precision arithmetic. <p> A ClassCastException will be thrown if the field is of type TIFF_UNDEFINED or TIFF_ASCII.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="getAsString(int)"><!-- --></A><H3>getAsString</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>getAsString</B>(int index)</PRE><DL><DD>Returns a TIFF_ASCII data item as a String. <p> A ClassCastException will be thrown if the field is not of type TIFF_ASCII.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="getAsSRational(int)"><!-- --></A><H3>getAsSRational</H3><PRE>public int[] <B>getAsSRational</B>(int index)</PRE><DL><DD>Returns a TIFF_SRATIONAL data item as a two-element array of ints. <p> A ClassCastException will be thrown if the field is not of type TIFF_SRATIONAL.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="getAsRational(int)"><!-- --></A><H3>getAsRational</H3><PRE>public long[] <B>getAsRational</B>(int index)</PRE><DL><DD>Returns a TIFF_RATIONAL data item as a two-element array of ints. <p> A ClassCastException will be thrown if the field is not of type TIFF_RATIONAL.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="compareTo(java.lang.Object)"><!-- --></A><H3>compareTo</H3><PRE>public int <B>compareTo</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A> o)</PRE><DL><DD>Compares this <code>TIFFField</code> with another <code>TIFFField</code> by comparing the tags. <p><b>Note: this class has a natural ordering that is inconsistent with <code>equals()</code>.</b><P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Comparable.html?is-external=true#compareTo(T)" title="class or interface in java.lang">compareTo</A></CODE> in interface <CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Comparable.html?is-external=true" title="class or interface in java.lang">Comparable</A></CODE></DL></DD><DD><DL><DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</A></CODE> - if the parameter is <code>null</code>.<DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/ClassCastException.html?is-external=true" title="class or interface in java.lang">ClassCastException</A></CODE> - if the parameter is not a <code>TIFFField</code>.</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=2 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="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>Hosted by <a href="http://www.hostbasket.com/">Hostbasket</a></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../../com/lowagie/text/pdf/codec/TIFFFaxDecoder.html" title="class in com.lowagie.text.pdf.codec"><B>PREV CLASS</B></A> <A HREF="../../../../../com/lowagie/text/pdf/codec/TiffImage.html" title="class in com.lowagie.text.pdf.codec"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../../index.html?com/lowagie/text/pdf/codec/TIFFField.html" target="_top"><B>FRAMES</B></A> <A HREF="TIFFField.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="#field_summary">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: <A HREF="#field_detail">FIELD</A> | <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></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -