📄 rtfimage.html
字号:
</TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>private float</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/lowagie/text/rtf/graphic/RtfImage.html#width">width</A></B></CODE><BR> The width of this picture</TD></TR></TABLE> <A NAME="fields_inherited_from_class_com.lowagie.text.rtf.RtfElement"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TH ALIGN="left"><B>Fields inherited from class com.lowagie.text.rtf.<A HREF="../../../../../com/lowagie/text/rtf/RtfElement.html" title="class in com.lowagie.text.rtf">RtfElement</A></B></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../../../com/lowagie/text/rtf/RtfElement.html#document">document</A>, <A HREF="../../../../../com/lowagie/text/rtf/RtfElement.html#inHeader">inHeader</A>, <A HREF="../../../../../com/lowagie/text/rtf/RtfElement.html#inTable">inTable</A></CODE></TD></TR></TABLE> <A NAME="fields_inherited_from_class_com.lowagie.text.rtf.RtfBasicElement"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TH ALIGN="left"><B>Fields inherited from interface com.lowagie.text.rtf.<A HREF="../../../../../com/lowagie/text/rtf/RtfBasicElement.html" title="interface in com.lowagie.text.rtf">RtfBasicElement</A></B></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../../../com/lowagie/text/rtf/RtfBasicElement.html#CLOSE_GROUP">CLOSE_GROUP</A>, <A HREF="../../../../../com/lowagie/text/rtf/RtfBasicElement.html#COMMA_DELIMITER">COMMA_DELIMITER</A>, <A HREF="../../../../../com/lowagie/text/rtf/RtfBasicElement.html#DELIMITER">DELIMITER</A>, <A HREF="../../../../../com/lowagie/text/rtf/RtfBasicElement.html#OPEN_GROUP">OPEN_GROUP</A>, <A HREF="../../../../../com/lowagie/text/rtf/RtfBasicElement.html#TWIPS_FACTOR">TWIPS_FACTOR</A></CODE></TD></TR></TABLE> <!-- ======== CONSTRUCTOR SUMMARY ======== --><A NAME="constructor_summary"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"><B>Constructor Summary</B></FONT></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../../../com/lowagie/text/rtf/graphic/RtfImage.html#RtfImage(com.lowagie.text.rtf.document.RtfDocument, com.lowagie.text.Image)">RtfImage</A></B>(<A HREF="../../../../../com/lowagie/text/rtf/document/RtfDocument.html" title="class in com.lowagie.text.rtf.document">RtfDocument</A> doc, <A HREF="../../../../../com/lowagie/text/Image.html" title="class in com.lowagie.text">Image</A> image)</CODE><BR> Constructs a RtfImage for an Image.</TD></TR></TABLE> <!-- ========== METHOD SUMMARY =========== --><A NAME="method_summary"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"><B>Method Summary</B></FONT></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>private byte[][]</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/lowagie/text/rtf/graphic/RtfImage.html#getImageData(com.lowagie.text.Image)">getImageData</A></B>(<A HREF="../../../../../com/lowagie/text/Image.html" title="class in com.lowagie.text">Image</A> image)</CODE><BR> Extracts the image data from the Image.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>private int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/lowagie/text/rtf/graphic/RtfImage.html#imageDataSize()">imageDataSize</A></B>()</CODE><BR> Returns the image raw data size in bytes.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/lowagie/text/rtf/graphic/RtfImage.html#setAlignment(int)">setAlignment</A></B>(int alignment)</CODE><BR> Sets the alignment of this RtfImage.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/lowagie/text/rtf/graphic/RtfImage.html#setTopLevelElement(boolean)">setTopLevelElement</A></B>(boolean topLevelElement)</CODE><BR> Set whether this RtfImage should behave like a top level element and enclose itself in a paragraph.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/lowagie/text/rtf/graphic/RtfImage.html#writeContent(java.io.OutputStream)">writeContent</A></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> result)</CODE><BR> Writes the RtfImage content</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>private void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/lowagie/text/rtf/graphic/RtfImage.html#writeImageDataHexEncoded(java.io.OutputStream)">writeImageDataHexEncoded</A></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> bab)</CODE><BR> Writes the image data to the given buffer as hex encoded text.</TD></TR></TABLE> <A NAME="methods_inherited_from_class_com.lowagie.text.rtf.RtfElement"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TH ALIGN="left"><B>Methods inherited from class com.lowagie.text.rtf.<A HREF="../../../../../com/lowagie/text/rtf/RtfElement.html" title="class in com.lowagie.text.rtf">RtfElement</A></B></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../../../com/lowagie/text/rtf/RtfElement.html#intToByteArray(int)">intToByteArray</A>, <A HREF="../../../../../com/lowagie/text/rtf/RtfElement.html#isInTable()">isInTable</A>, <A HREF="../../../../../com/lowagie/text/rtf/RtfElement.html#setInHeader(boolean)">setInHeader</A>, <A HREF="../../../../../com/lowagie/text/rtf/RtfElement.html#setInTable(boolean)">setInTable</A>, <A HREF="../../../../../com/lowagie/text/rtf/RtfElement.html#setRtfDocument(com.lowagie.text.rtf.document.RtfDocument)">setRtfDocument</A></CODE></TD></TR></TABLE> <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TH ALIGN="left"><B>Methods inherited from class java.lang.<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></B></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html?is-external=true#clone()" title="class or interface in java.lang">clone</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html?is-external=true#equals(java.lang.Object)" title="class or interface in java.lang">equals</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html?is-external=true#finalize()" title="class or interface in java.lang">finalize</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang">getClass</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html?is-external=true#hashCode()" title="class or interface in java.lang">hashCode</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang">notify</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang">notifyAll</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html?is-external=true#toString()" title="class or interface in java.lang">toString</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html?is-external=true#wait(long, int)" title="class or interface in java.lang">wait</A></CODE></TD></TR></TABLE> <P><!-- ============ FIELD DETAIL =========== --><A NAME="field_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>Field Detail</B></FONT></TH></TR></TABLE><A NAME="PICTURE_GROUP"><!-- --></A><H3>PICTURE_GROUP</H3><PRE>private static final byte[] <B>PICTURE_GROUP</B></PRE><DL><DD>Constant for the shape/picture group<P><DL></DL></DL><HR><A NAME="PICTURE"><!-- --></A><H3>PICTURE</H3><PRE>private static final byte[] <B>PICTURE</B></PRE><DL><DD>Constant for a picture<P><DL></DL></DL><HR><A NAME="PICTURE_JPEG"><!-- --></A><H3>PICTURE_JPEG</H3><PRE>private static final byte[] <B>PICTURE_JPEG</B></PRE><DL><DD>Constant for a jpeg image<P><DL></DL></DL><HR><A NAME="PICTURE_PNG"><!-- --></A><H3>PICTURE_PNG</H3><PRE>private static final byte[] <B>PICTURE_PNG</B></PRE><DL><DD>Constant for a png image<P><DL></DL></DL><HR><A NAME="PICTURE_WMF"><!-- --></A><H3>PICTURE_WMF</H3><PRE>private static final byte[] <B>PICTURE_WMF</B></PRE><DL><DD>Constant for a wmf image<P><DL></DL></DL><HR><A NAME="PICTURE_WIDTH"><!-- --></A><H3>PICTURE_WIDTH</H3><PRE>private static final byte[] <B>PICTURE_WIDTH</B></PRE><DL><DD>Constant for the picture width<P><DL></DL></DL><HR><A NAME="PICTURE_HEIGHT"><!-- --></A><H3>PICTURE_HEIGHT</H3><PRE>private static final byte[] <B>PICTURE_HEIGHT</B></PRE><DL><DD>Constant for the picture height<P><DL></DL></DL><HR><A NAME="PICTURE_SCALED_WIDTH"><!-- --></A><H3>PICTURE_SCALED_WIDTH</H3><PRE>private static final byte[] <B>PICTURE_SCALED_WIDTH</B></PRE><DL><DD>Constant for the picture width scale<P><DL></DL></DL><HR><A NAME="PICTURE_SCALED_HEIGHT"><!-- --></A><H3>PICTURE_SCALED_HEIGHT</H3><PRE>private static final byte[] <B>PICTURE_SCALED_HEIGHT</B></PRE><DL><DD>Constant for the picture height scale<P><DL></DL></DL><HR><A NAME="PICTURE_SCALE_X"><!-- --></A><H3>PICTURE_SCALE_X</H3><PRE>private static final byte[] <B>PICTURE_SCALE_X</B></PRE><DL><DD>Constant for horizontal picture scaling<P><DL></DL></DL><HR><A NAME="PICTURE_SCALE_Y"><!-- --></A><H3>PICTURE_SCALE_Y</H3><PRE>private static final byte[] <B>PICTURE_SCALE_Y</B></PRE><DL><DD>Constant for vertical picture scaling<P><DL></DL></DL><HR><A NAME="PICTURE_BINARY_DATA"><!-- --></A><H3>PICTURE_BINARY_DATA</H3><PRE>private static final byte[] <B>PICTURE_BINARY_DATA</B></PRE><DL><DD>"\bin" constant<P><DL></DL></DL><HR><A NAME="PIXEL_TWIPS_FACTOR"><!-- --></A><H3>PIXEL_TWIPS_FACTOR</H3><PRE>private static final int <B>PIXEL_TWIPS_FACTOR</B></PRE><DL><DD>Constant for converting pixels to twips<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../../constant-values.html#com.lowagie.text.rtf.graphic.RtfImage.PIXEL_TWIPS_FACTOR">Constant Field Values</A></DL></DL><HR><A NAME="imageType"><!-- --></A><H3>imageType</H3><PRE>private final int <B>imageType</B></PRE>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -