⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 rtfimage.html

📁 IText PDF开发工具说明文档,使用很方便。
💻 HTML
📖 第 1 页 / 共 3 页
字号:
<DL><DD>The type of image this is.<P><DL></DL></DL><HR><A NAME="imageData"><!-- --></A><H3>imageData</H3><PRE>private final byte[][] <B>imageData</B></PRE><DL><DD>Binary image data.<P><DL></DL></DL><HR><A NAME="alignment"><!-- --></A><H3>alignment</H3><PRE>private int <B>alignment</B></PRE><DL><DD>The alignment of this picture<P><DL></DL></DL><HR><A NAME="width"><!-- --></A><H3>width</H3><PRE>private float <B>width</B></PRE><DL><DD>The width of this picture<P><DL></DL></DL><HR><A NAME="height"><!-- --></A><H3>height</H3><PRE>private float <B>height</B></PRE><DL><DD>The height of this picture<P><DL></DL></DL><HR><A NAME="plainWidth"><!-- --></A><H3>plainWidth</H3><PRE>private float <B>plainWidth</B></PRE><DL><DD>The intended display width of this picture<P><DL></DL></DL><HR><A NAME="plainHeight"><!-- --></A><H3>plainHeight</H3><PRE>private float <B>plainHeight</B></PRE><DL><DD>The intended display height of this picture<P><DL></DL></DL><HR><A NAME="topLevelElement"><!-- --></A><H3>topLevelElement</H3><PRE>private boolean <B>topLevelElement</B></PRE><DL><DD>Whether this RtfImage is a top level element and should be an extra paragraph.<P><DL></DL></DL><HR><A NAME="byte2charLUT"><!-- --></A><H3>byte2charLUT</H3><PRE>public static final byte[] <B>byte2charLUT</B></PRE><DL><DD>lookup table used for converting bytes to hex chars. TODO Should probably be refactored into a helper class<P><DL></DL></DL><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TH></TR></TABLE><A NAME="RtfImage(com.lowagie.text.rtf.document.RtfDocument, com.lowagie.text.Image)"><!-- --></A><H3>RtfImage</H3><PRE>public <B>RtfImage</B>(<A HREF="../../../../../com/lowagie/text/rtf/document/RtfDocument.html" title="class in com.lowagie.text.rtf.document">RtfDocument</A>&nbsp;doc,                <A HREF="../../../../../com/lowagie/text/Image.html" title="class in com.lowagie.text">Image</A>&nbsp;image)         throws <A HREF="../../../../../com/lowagie/text/DocumentException.html" title="class in com.lowagie.text">DocumentException</A></PRE><DL><DD>Constructs a RtfImage for an Image.<P><DL><DT><B>Parameters:</B><DD><CODE>doc</CODE> - The RtfDocument this RtfImage belongs to<DD><CODE>image</CODE> - The Image that this RtfImage wraps<DT><B>Throws:</B><DD><CODE><A HREF="../../../../../com/lowagie/text/DocumentException.html" title="class in com.lowagie.text">DocumentException</A></CODE> - If an error occurred accessing the image content</DL></DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"><B>Method Detail</B></FONT></TH></TR></TABLE><A NAME="getImageData(com.lowagie.text.Image)"><!-- --></A><H3>getImageData</H3><PRE>private byte[][] <B>getImageData</B>(<A HREF="../../../../../com/lowagie/text/Image.html" title="class in com.lowagie.text">Image</A>&nbsp;image)                       throws <A HREF="../../../../../com/lowagie/text/DocumentException.html" title="class in com.lowagie.text">DocumentException</A></PRE><DL><DD>Extracts the image data from the Image.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>image</CODE> - The image for which to extract the content<DT><B>Returns:</B><DD>The raw image data, not formated<DT><B>Throws:</B><DD><CODE><A HREF="../../../../../com/lowagie/text/DocumentException.html" title="class in com.lowagie.text">DocumentException</A></CODE> - If an error occurs accessing the image content</DL></DD></DL><HR><A NAME="writeImageDataHexEncoded(java.io.OutputStream)"><!-- --></A><H3>writeImageDataHexEncoded</H3><PRE>private void <B>writeImageDataHexEncoded</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/OutputStream.html?is-external=true" title="class or interface in java.io">OutputStream</A>&nbsp;bab)                               throws <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></PRE><DL><DD>Writes the image data to the given buffer as hex encoded text.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>bab</CODE> - <DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></CODE></DL></DD></DL><HR><A NAME="imageDataSize()"><!-- --></A><H3>imageDataSize</H3><PRE>private int <B>imageDataSize</B>()</PRE><DL><DD>Returns the image raw data size in bytes.<P><DD><DL><DT><B>Returns:</B><DD>the size in bytes</DL></DD></DL><HR><A NAME="writeContent(java.io.OutputStream)"><!-- --></A><H3>writeContent</H3><PRE>public void <B>writeContent</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/OutputStream.html?is-external=true" title="class or interface in java.io">OutputStream</A>&nbsp;result)                  throws <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></PRE><DL><DD>Writes the RtfImage content<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../com/lowagie/text/rtf/RtfBasicElement.html#writeContent(java.io.OutputStream)">writeContent</A></CODE> in interface <CODE><A HREF="../../../../../com/lowagie/text/rtf/RtfBasicElement.html" title="interface in com.lowagie.text.rtf">RtfBasicElement</A></CODE><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../com/lowagie/text/rtf/RtfElement.html#writeContent(java.io.OutputStream)">writeContent</A></CODE> in class <CODE><A HREF="../../../../../com/lowagie/text/rtf/RtfElement.html" title="class in com.lowagie.text.rtf">RtfElement</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>result</CODE> - The <code>OutputStream</code> to write the content to<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></CODE></DL></DD></DL><HR><A NAME="setAlignment(int)"><!-- --></A><H3>setAlignment</H3><PRE>public void <B>setAlignment</B>(int&nbsp;alignment)</PRE><DL><DD>Sets the alignment of this RtfImage. Uses the alignments from com.lowagie.text.Element.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>alignment</CODE> - The alignment to use.</DL></DD></DL><HR><A NAME="setTopLevelElement(boolean)"><!-- --></A><H3>setTopLevelElement</H3><PRE>public void <B>setTopLevelElement</B>(boolean&nbsp;topLevelElement)</PRE><DL><DD>Set whether this RtfImage should behave like a top level element and enclose itself in a paragraph.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>topLevelElement</CODE> - Whether to behave like a top level element.</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>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</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">&nbsp;PREV CLASS&nbsp;&nbsp;<A HREF="../../../../../com/lowagie/text/rtf/graphic/RtfShape.html" title="class in com.lowagie.text.rtf.graphic"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">  <A HREF="../../../../../index.html?com/lowagie/text/rtf/graphic/RtfImage.html" target="_top"><B>FRAMES</B></A>  &nbsp;&nbsp;<A HREF="RtfImage.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;&nbsp;<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:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<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 + -