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

📄 streamjpg.html

📁 java和flash接口编程
💻 HTML
📖 第 1 页 / 共 2 页
字号:
 
<P>

<!-- ========= 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="StreamJPG(com.anotherbigidea.flash.interfaces.SWFTagTypes, int)"><!-- --></A><H3>
StreamJPG</H3>
<PRE>
public <B>StreamJPG</B>(<A HREF="../com/anotherbigidea/flash/interfaces/SWFTagTypes.html" title="interface in com.anotherbigidea.flash.interfaces">SWFTagTypes</A>&nbsp;tags,
                 int&nbsp;baseSymbolId)</PRE>
<DL>
<DL>
<DT><B>Parameters:</B><DD><CODE>tags</CODE> - the movie to insert into<DD><CODE>baseSymbolId</CODE> - the initial symbol id to use</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="setSymbolId(int)"><!-- --></A><H3>
setSymbolId</H3>
<PRE>
public void <B>setSymbolId</B>(int&nbsp;id)</PRE>
<DL>
<DD>Set the starting symbol id that will be used for the next image(s).
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="getSymbolId()"><!-- --></A><H3>
getSymbolId</H3>
<PRE>
public int <B>getSymbolId</B>()</PRE>
<DL>
<DD>Get the next available symbol id.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="insertJPG(java.io.InputStream, int, int, int, int, int)"><!-- --></A><H3>
insertJPG</H3>
<PRE>
public void <B>insertJPG</B>(java.io.InputStream&nbsp;jpgImage,
                      int&nbsp;pixelWidth,
                      int&nbsp;pixelHeight,
                      int&nbsp;pixelX,
                      int&nbsp;pixelY,
                      int&nbsp;depth)
               throws java.io.IOException</PRE>
<DL>
<DD>Insert an image on the stage.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>jpgImage</CODE> - the image data in "baseline" jpeg format<DD><CODE>pixelWidth</CODE> - the width of the image<DD><CODE>pixelHeight</CODE> - the height of the image<DD><CODE>pixelX</CODE> - where to place the image shape<DD><CODE>pixelY</CODE> - where to place the image shape<DD><CODE>depth</CODE> - the z-order for the image shape
<DT><B>Throws:</B>
<DD><CODE>java.io.IOException</CODE></DL>
</DD>
</DL>
<HR>

<A NAME="insertJPGForOneFrame(java.io.InputStream, int, int, int, int, int)"><!-- --></A><H3>
insertJPGForOneFrame</H3>
<PRE>
public void <B>insertJPGForOneFrame</B>(java.io.InputStream&nbsp;jpgImage,
                                 int&nbsp;pixelWidth,
                                 int&nbsp;pixelHeight,
                                 int&nbsp;pixelX,
                                 int&nbsp;pixelY,
                                 int&nbsp;depth)
                          throws java.io.IOException</PRE>
<DL>
<DD>Insert an image on the stage, show a frame and then free up the image.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>jpgImage</CODE> - the image data in "baseline" jpeg format<DD><CODE>pixelWidth</CODE> - the width of the image<DD><CODE>pixelHeight</CODE> - the height of the image<DD><CODE>pixelX</CODE> - where to place the image shape<DD><CODE>pixelY</CODE> - where to place the image shape<DD><CODE>depth</CODE> - the z-order for the image shape
<DT><B>Throws:</B>
<DD><CODE>java.io.IOException</CODE></DL>
</DD>
</DL>
<HR>

<A NAME="insertJPGForNFrames(java.io.InputStream, int, int, int, int, int, int)"><!-- --></A><H3>
insertJPGForNFrames</H3>
<PRE>
public void <B>insertJPGForNFrames</B>(java.io.InputStream&nbsp;jpgImage,
                                int&nbsp;pixelWidth,
                                int&nbsp;pixelHeight,
                                int&nbsp;pixelX,
                                int&nbsp;pixelY,
                                int&nbsp;depth,
                                int&nbsp;frameCount)
                         throws java.io.IOException</PRE>
<DL>
<DD>Insert an image on the stage, show a number of frames and then free up the image.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>jpgImage</CODE> - the image data in "baseline" jpeg format<DD><CODE>pixelWidth</CODE> - the width of the image<DD><CODE>pixelHeight</CODE> - the height of the image<DD><CODE>pixelX</CODE> - where to place the image shape<DD><CODE>pixelY</CODE> - where to place the image shape<DD><CODE>depth</CODE> - the z-order for the image shape<DD><CODE>frameCount</CODE> - number of frame to display the image for
<DT><B>Throws:</B>
<DD><CODE>java.io.IOException</CODE></DL>
</DD>
</DL>
<HR>

<A NAME="main(java.lang.String[])"><!-- --></A><H3>
main</H3>
<PRE>
public static void <B>main</B>(java.lang.String[]&nbsp;args)
                 throws java.io.IOException</PRE>
<DL>
<DD>Test the image inliner. Makes a SWF - filename is args[1]. Input images are all jpg/jpeg files in the directory that is given as args[0].  This assumes a particular size and location for each image - alter for your needs.  The frame rate is 12 fps - alter this as needed.  The image data must be baseline jpeg.  If any image is in progressive format then it will appear red in the SWF player (this is a limitation of the SWF player - not JavaSWF).
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>args</CODE> - 
<DT><B>Throws:</B>
<DD><CODE>java.io.IOException</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>&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="class-use/StreamJPG.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&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>
</EM>
</TD>
</TR>

<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
&nbsp;<A HREF="../examples/MakeGradient.html" title="class in examples"><B>PREV CLASS</B></A>&nbsp;
&nbsp;NEXT CLASS</FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  <A HREF="../index.html?examples/StreamJPG.html" target="_top"><B>FRAMES</B></A>  &nbsp;
&nbsp;<A HREF="StreamJPG.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;FIELD&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;FIELD&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>
<i>Copyright &#169; 2000-2005 David N Main. All Rights Reserved.</i>
</BODY>
</HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -