亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? client-server imaging.htm

?? 是一部關于java高級圖像處理的的一本入門書
?? HTM
?? 第 1 頁 / 共 4 頁
字號:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- saved from url=(0098)http://java.sun.com/products/java-media/jai/forDevelopers/jai1_0_1guide-unc/Client-server.doc.html -->
<HTML><HEAD><TITLE>Client-Server Imaging</TITLE>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<META content=exclude name=collection>
<META content="MSHTML 6.00.2900.3132" name=GENERATOR></HEAD>
<BODY bgColor=#ffffff>
<CENTER><A 
href="http://java.sun.com/products/java-media/jai/forDevelopers/jai1_0_1guide-unc/JAITOC.fm.html"><IMG 
alt=Contents src="Client-Server Imaging.files/contents.gif"></A> <A 
href="http://java.sun.com/products/java-media/jai/forDevelopers/jai1_0_1guide-unc/Properties.doc.html"><IMG 
alt=Previous src="Client-Server Imaging.files/previous.gif"></A> <A 
href="http://java.sun.com/products/java-media/jai/forDevelopers/jai1_0_1guide-unc/Encode.doc.html"><IMG 
alt=Next src="Client-Server Imaging.files/next.gif"></A> 
<P><FONT size=5><I>Programming in Java Advanced Imaging</I></FONT> </CENTER><BR>
<CENTER><A name=47227>
<TABLE width="90%" border=0>
  <TBODY>
  <TR>
    <TD align=right><FONT size=3>C H A P T E R</FONT><FONT size=7><IMG 
      src="Client-Server Imaging.files/sm-space.gif">12</FONT></TD></TR></TBODY></TABLE></A></CENTER>
<CENTER><A name=47285>
<TABLE width="90%" border=0>
  <TBODY>
  <TR>
    <TD align=right>
      <HR noShade SIZE=7>
      <FONT size=6>Client-Server Imaging</FONT></TD></TR></TBODY></TABLE></A></CENTER>
<BLOCKQUOTE>
  <P><BR><BR><BR>
  <P><FONT size=7><B>T</B></FONT>HIS chapter describes JAI's client-server 
  imaging system. 
  <P><A name=51145>
  <H2>12.1 <IMG 
  src="Client-Server Imaging.files/space.gif">Introduction</H2></A>Client-server 
  imaging provides the ability to distribute computation between a set of 
  processing nodes. For example, it is possible to set up a large, powerful 
  server that provides image processing services to several thin clients. With 
  JAI, it is possible for a client to set up a complex imaging chain on a 
  server, including references to source images on other network hosts, and to 
  request rendered output from the server. 
  <P>JAI uses Java Remote Method Invocation (RMI) to implement client-server 
  imaging. To communicate using Remote Method Invocation, both the client and 
  server must be running Java. A <EM>stub</EM> object is instantiated on the 
  client. The stub object forwards its method calls to a corresponding server 
  object. Method call arguments and return values are transmitted between the 
  client and server by means of the Java Development Environment's 
  <EM>serialization</EM> capability. 
  <P>The hostname and port depend on the local setup. The host must be running 
  an RMI registry process and have a <CODE>RemoteImageServer</CODE> listening at 
  the desired port. 
  <P>This call will result in the creation of a server-side 
  <CODE>RMIImageImpl</CODE> object and a client-side stub object. The client 
  stub serializes its method arguments and transfers them to the server over a 
  socket; the server serializes its return values and returns them in the same 
  manner. 
  <P><A name=51212>
  <H2>12.2 <IMG src="Client-Server Imaging.files/space.gif">Server Name and Port 
  Number</H2></A>The <CODE>RemoteImage</CODE> constructor requires a 
  <CODE>serverName</CODE> parameter that consists of a host name and port 
  number, in the following format: 
  <P><PRE>     host:port
</PRE>For example: 
  <P><PRE>     camus.eng.sun.com:1099
</PRE>The port number is optional and need be supplied only if the host name 
  is supplied. If the <CODE>serverName</CODE> parameter is null, the default is 
  to search for the RMIImage service on the local host at the default 
  <EM>rmiregistry</EM> port (1099. 
  <P>
  <TABLE border=0>
    <TBODY>
    <TR>
      <TD><IMG src="Client-Server Imaging.files/cistine.gif"></TD>
      <TD>
        <HR>
        <B>API:</B> <CODE>javax.media.jai.RemoteImage </CODE>
        <HR>
      </TD></TR></TBODY></TABLE><PRE><UL>
<LI>RemoteImage(String serverName, RenderedImage source)
<P></P></LI></UL></PRE>
  <DL><A name=55131>
    <DT>
    <DD>constructs a <CODE>RemoteImage</CODE> from a <CODE>RenderedImage</CODE>.
    <P>
    <TABLE cellPadding=3 border=3>
      <CAPTION><FONT size=-1><B></B></FONT></CAPTION>
      <TBODY>
      <TR vAlign=top>
        <TD rowSpan=2><EM>Parameters</EM>: 
          <P></P>
        <TD><CODE>serverName</CODE> 
          <P></P>
        <TD>The name of the server in the appropriate format. 
          <P></P>
      <TR vAlign=top>
        <TD><CODE>source</CODE> 
          <P></P>
        <TD>A <CODE>RenderedImage</CODE> source. 
          <P></P></TR></TBODY></TABLE></A>
    <P></P></DD></DL><PRE><UL>
<LI>RemoteImage(String serverName, RenderedOp source)
<P></P></LI></UL></PRE>
  <DL><A name=54667>
    <DT>
    <DD>constructs a <CODE>RemoteImage</CODE> from a <CODE>RenderedOp</CODE>, 
    i.e., an imaging DAG (directed acyclic graph). Note that the properties of 
    the <CODE>RemoteImage</CODE> will be those of the <CODE>RenderedOp</CODE> 
    node and not of its rendering. </A>
    <P></P></DD></DL><PRE><UL>
<LI>RemoteImage(String serverName, RenderableOp source, 
RenderContext renderContext)
<P></P></LI></UL></PRE>
  <DL><A name=55160>
    <DT>
    <DD>constructs a <CODE>RemoteImage</CODE> from a <CODE>RenderableOp</CODE> 
    and <CODE>RenderContext</CODE>. The entire <CODE>RenderableOp</CODE> DAG 
    will be copied over to the server. Note that the properties of the 
    <CODE>RemoteImage</CODE> will be those of the <CODE>RenderableOp</CODE> node 
    and not of its rendering. </A>
    <P></P></DD></DL><A name=51218>
  <H2>12.3 <IMG src="Client-Server Imaging.files/space.gif">Setting the Timeout 
  Period and Number of Retries</H2></A>A network error or a delay caused by the 
  server failing to respond to the request for an image is dealt with through 
  retries. If, on the first attempt, the server fails to respond, the program 
  will wait a specified amount of time and then make another request for the 
  image. When the limit of retries is exceeded, a null Raster may be returned. 
  <P>The amount of time to wait between retries defaults to 1 second (1000 
  milliseconds). The <CODE>getTimeout</CODE> method is used to get the amount of 
  time between retries, in milliseconds. The <CODE>setTimeout</CODE> method is 
  used to set the amount of time between retries. 
  <P>The number of times the program will attempt to read the remote image may 
  be read with the <CODE>getNumRetries</CODE> method. The 
  <CODE>setNumRetries</CODE> method is used to set the maximum number of 
  retries. 
  <P>
  <TABLE border=0>
    <TBODY>
    <TR>
      <TD><IMG src="Client-Server Imaging.files/cistine.gif"></TD>
      <TD>
        <HR>
        <B>API:</B> <CODE>javax.media.jai.RemoteImage </CODE>
        <HR>
      </TD></TR></TBODY></TABLE><PRE><UL>
<LI>void setTimeout(int timeout)
<P></P></LI></UL></PRE>
  <DL><A name=54566>
    <DT>
    <DD>sets the amount of time between retries.
    <P>
    <TABLE cellPadding=3 border=3>
      <CAPTION><FONT size=-1><B></B></FONT></CAPTION>
      <TBODY>
      <TR vAlign=top>
        <TD><EM>Parameter</EM>: 
          <P></P>
        <TD><CODE>timeout</CODE> 
          <P></P>
        <TD>The time interval between retries in milliseconds. 
          <P></P></TR></TBODY></TABLE></A>
    <P></P></DD></DL><PRE><UL>
<LI>int getTimeout()
<P></P></LI></UL></PRE>
  <DL><A name=54587>
    <DT>
    <DD>returns the amount of time between retries. </A>
    <P></P></DD></DL><PRE><UL>
<LI>void setNumRetries(int numRetries)
<P></P></LI></UL></PRE>
  <DL><A name=54597>
    <DT>
    <DD>sets the number of retries.
    <P>
    <TABLE cellPadding=3 border=3>
      <CAPTION><FONT size=-1><B></B></FONT></CAPTION>
      <TBODY>
      <TR vAlign=top>
        <TD><EM>Parameter</EM>: 
          <P></P>
        <TD><CODE>numRetries</CODE> 
          <P></P>
        <TD>The maximum number of retries. If this is a negative value, the 
          number of retries is unchanged. 
          <P></P></TR></TBODY></TABLE></A>
    <P></P></DD></DL><A name=51951>
  <H2>12.4 <IMG src="Client-Server Imaging.files/space.gif">Remote Imaging Test 
  Example</H2></A>This section contains two examples of remote imaging programs. 

  <P><A name=51974>
  <H3>12.4.1 <IMG src="Client-Server Imaging.files/space.gif">Simple Remote 
  Imaging Example</H3></A><A 
  href="http://java.sun.com/products/java-media/jai/forDevelopers/jai1_0_1guide-unc/Client-server.doc.html#54012">Listing 
  12-1</A> shows a complete code example of a <CODE>RemoteImaging</CODE> test. 
  This example displays a 2 x 2 grid of <CODE>ScrollingImagePanel</CODE>s, with 
  each window displaying the sum of two byte images that were rescaled to the 
  range [0,127] prior to addition. The panels display the following specific 
  results: 
  <P>
  <UL>
    <LI>upper left: local rendering
    <P></P></LI></UL>
  <UL>
    <LI>upper right: result of remote rendering of a RenderedOp graph
    <P></P></LI></UL>
  <UL>
    <LI>lower left: result of remote loading of a RenderedImage
    <P></P></LI></UL>
  <UL>
    <LI>lower right: result of remote rendering of a RenderableOp graph
    <P></P></LI></UL>The lower right image is a dithered version of the sum image 
  passed through a color cube lookup table and may appear slightly different 
  from the other three images, which should be identical.
  <P><CAPTION><FONT size=-1><B><A name=54012>
  <CENTER><FONT size=-1><B><I>Listing 12-1 </I><IMG 
  src="Client-Server Imaging.files/sm-blank.gif" border=0> Remote Imaging 
  Example Program (Sheet 1 of 4)</B></FONT></CENTER></A>
  <P></B></FONT></CAPTION>
  <HR>
  <TR valign="top"><TD rowspan="10" colspan="1"><PRE>     import java.awt.*;
     import java.awt.event.WindowEvent;
     import java.awt.geom.*;
     import java.awt.image.*;
     import java.awt.image.renderable.*;
     import java.util.*;
     import javax.media.jai.*;
     import javax.media.jai.operator.*;
     import javax.media.jai.widget.*;
     public class RemoteImagingTest extends WindowContainer {
</PRE><TR valign="top"><TR valign="top"><TR valign="top"><TR valign="top"><TR 
  valign="top"><TR valign="top"><TR valign="top"><TR valign="top"><TR 
  valign="top"><TR valign="top"><TD rowspan="2" colspan="1"><PRE>     /** Default remote server. */
     private static final String DEFAULT_SERVER =
                              "camus.eng.sun.com:1099";
</PRE><TR valign="top"><TR valign="top"><TD rowspan="3" colspan="1"><PRE>     /** Tile dimensions. */
     private static final int TILE_WIDTH = 256;
     private static final int TILE_HEIGHT = 256;
</PRE><TR valign="top"><TR valign="top"><TR valign="top"><TD rowspan="3" 
  colspan="1"><PRE>     public static void main(String args[]) {
     String fileName1 = null;
     String fileName2 = null;
</PRE><TR valign="top"><TR valign="top"><TR valign="top"><TD rowspan="7" 
  colspan="1"><PRE>     // Check args.
         if(!(args.length &gt;= 0 &amp;&amp; args.length &lt;= 3)) {
            System.out.println("\nUsage: java RemoteImagingTest "+
                           "[[[serverName] | [fileName1 fileName2]] | "+
                           "[serverName fileName1 fileName2]]"+"\n");
            System.exit(1);
         }
</PRE><TR valign="top"><TR valign="top"><TR valign="top"><TR valign="top"><TR 
  valign="top"><TR valign="top"><TR valign="top"><TD rowspan="9" colspan="1"><PRE>     // Set the server name.
     String serverName = null;
        if(args.length == 0 || args.length == 2) {
            serverName = DEFAULT_SERVER;
            System.out.println("\nUsing default server '"+
                               DEFAULT_SERVER+"'\n");
        } else {
            serverName = args[0];
        }
</PRE><TR valign="top"><TR valign="top"><TR valign="top"><TR valign="top"><TR 
  valign="top"><TR valign="top"><TR valign="top"><TR valign="top"><TR 
  valign="top"><TD rowspan="13" colspan="1"><PRE>     // Set the file names.
        if(args.length == 2) {
            fileName1 = args[0];
            fileName2 = args[1];
        } else if(args.length == 3) {
            fileName1 = args[1];
            fileName2 = args[2];
        } else {
      fileName1 = "/import/jai/JAI_RP/test/images/Boat_At_Dock.tif";
      fileName2 = "/import/jai/JAI_RP/test/images/FarmHouse.tif";
            System.out.println("\nUsing default images '"+
                               fileName1 + "' and '" + fileName2 + "'\n");
          }
</PRE><TR valign="top"><TR valign="top"><TR valign="top"><TR valign="top"><TR 
  valign="top"><TR valign="top"><TR valign="top"><TR valign="top"><TR 
  valign="top"><TR valign="top"><TR valign="top"><TR valign="top"><TR 
  valign="top"><TD rowspan="3" colspan="1"><PRE>     RemoteImagingTest riTest =
            new RemoteImagingTest(serverName, fileName1, fileName2);
         }
</PRE><TR valign="top"><TR valign="top"><TR valign="top"><TD rowspan="11" 
  colspan="1"><PRE>     /**

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精一品亚洲二区在线视频| 91国偷自产一区二区开放时间| 99re视频这里只有精品| 欧美日韩精品是欧美日韩精品| 日韩精品资源二区在线| 亚洲专区一二三| 国产成人av在线影院| 67194成人在线观看| 中日韩av电影| 精品亚洲porn| 欧美日韩激情在线| 亚洲精品成人在线| 成人网页在线观看| 精品人伦一区二区色婷婷| 一区二区三区电影在线播| 国产九色sp调教91| 欧美r级电影在线观看| 日韩中文欧美在线| 91视频免费播放| 国产精品三级视频| 国产成人精品一区二区三区四区| 日韩精品一区二区三区中文不卡 | 久久久亚洲高清| 日韩黄色免费网站| 在线免费观看日韩欧美| 亚洲人成在线观看一区二区| 懂色av噜噜一区二区三区av| 日韩欧美一级在线播放| 秋霞电影网一区二区| 欧美精品自拍偷拍| 亚洲网友自拍偷拍| 欧美性高清videossexo| 亚洲综合色丁香婷婷六月图片| 成人18视频在线播放| 国产欧美日本一区二区三区| 国产精品一二一区| 欧美精品一区二区三区蜜桃视频 | 日韩一级片在线观看| 婷婷六月综合亚洲| 欧美午夜电影网| 亚洲777理论| 欧美一二三区精品| 六月丁香婷婷久久| 精品av久久707| 国产麻豆精品视频| 国产精品成人免费精品自在线观看 | 亚洲精品va在线观看| 欧美亚洲免费在线一区| 午夜精品福利视频网站| 欧美一区二区三区免费视频| 蜜桃在线一区二区三区| 久久蜜臀中文字幕| 色综合婷婷久久| 亚洲大型综合色站| 日韩限制级电影在线观看| 国产精品资源网| 亚洲日本护士毛茸茸| 精品视频一区二区不卡| 免费观看91视频大全| 国产婷婷色一区二区三区四区 | 精品一区二区综合| 国产精品视频观看| 欧美视频一区二区在线观看| 奇米777欧美一区二区| 国产清纯白嫩初高生在线观看91 | 亚洲国产精品久久人人爱蜜臀| 欧美午夜电影在线播放| 美女任你摸久久 | jlzzjlzz欧美大全| 亚洲电影一区二区三区| 精品理论电影在线| 色天天综合色天天久久| 毛片一区二区三区| 亚洲人成亚洲人成在线观看图片| 538在线一区二区精品国产| 国产精品亚洲一区二区三区在线 | 中文字幕一区二区三区在线观看| 在线看国产一区| 精品在线亚洲视频| 亚洲欧美另类小说视频| 26uuu亚洲婷婷狠狠天堂| 91麻豆swag| 国产尤物一区二区在线| 亚洲午夜精品网| 日本一区二区三区电影| 91精品国产综合久久香蕉的特点 | 国产毛片精品视频| 亚洲一区二区三区四区在线免费观看| 日韩欧美一级精品久久| 色八戒一区二区三区| 国产精品正在播放| 日韩电影在线免费看| 一区二区三区免费| 国产精品不卡在线| 久久先锋资源网| 精品欧美一区二区久久| 色婷婷综合久久久| 成人午夜激情视频| 国产精品资源在线| 老司机精品视频导航| 亚洲一区二区三区四区的| 国产精品久久三| 久久精品视频在线看| 精品区一区二区| 日韩精品中文字幕一区| 日韩午夜电影在线观看| 欧美伦理电影网| 欧美性感一区二区三区| 色www精品视频在线观看| 99国产精品国产精品毛片| 福利一区福利二区| 国产高清在线精品| 国产高清精品在线| 成人一道本在线| 北条麻妃一区二区三区| 成人精品在线视频观看| 成人免费va视频| 成人午夜视频福利| 99久久99久久精品免费看蜜桃| www.爱久久.com| 成人国产亚洲欧美成人综合网| 国产ts人妖一区二区| 丁香婷婷综合激情五月色| 成人在线综合网站| 成人av动漫网站| 色综合久久六月婷婷中文字幕| 色av成人天堂桃色av| 精品污污网站免费看| 欧美日本乱大交xxxxx| 91精品国产免费| 欧美成人乱码一区二区三区| 26uuu国产一区二区三区 | 制服丝袜在线91| 欧美精品粉嫩高潮一区二区| 欧美疯狂做受xxxx富婆| 精品久久久久99| 国产欧美日韩一区二区三区在线观看| 中文字幕一区二区三区四区不卡 | 91国偷自产一区二区使用方法| 欧美在线播放高清精品| 欧美日韩国产小视频在线观看| 日韩一级免费一区| 国产亚洲精久久久久久| 综合亚洲深深色噜噜狠狠网站| 亚洲国产一区二区视频| 精品一区二区三区免费播放| 国产91在线看| 欧美伊人久久久久久久久影院| 日韩视频一区二区在线观看| 久久久另类综合| 依依成人综合视频| 黄色日韩网站视频| 91视视频在线观看入口直接观看www| 欧美视频一区二区三区四区| 精品99一区二区| 一区在线观看免费| 日本不卡免费在线视频| 成av人片一区二区| 欧美精品tushy高清| 国产精品天干天干在观线| 偷拍一区二区三区四区| 丁香啪啪综合成人亚洲小说| 欧美理论在线播放| 中文字幕av在线一区二区三区| 午夜精品久久久久久久久| 国产91丝袜在线18| 91精品国产综合久久精品app| 国产精品国产三级国产三级人妇 | 亚洲午夜一区二区| 国产成人一区在线| 欧美美女直播网站| 国产精品美女视频| 国产真实乱对白精彩久久| 欧美性一二三区| 国产精品久久久久久久久图文区| 蜜桃久久久久久| 欧洲精品在线观看| 亚洲视频资源在线| 国产成人在线视频播放| 精品人在线二区三区| 日韩高清在线一区| 欧美性一级生活| 伊人性伊人情综合网| 成人综合日日夜夜| 国产欧美日韩在线观看| 国精产品一区一区三区mba视频 | 激情综合色综合久久| 欧美精品精品一区| 亚洲国产一区二区三区青草影视| 91在线高清观看| 国产精品色在线| 成人黄色免费短视频| 久久久久久久久岛国免费| 裸体在线国模精品偷拍| 91精品国产欧美一区二区| 日韩精品一卡二卡三卡四卡无卡| 欧美在线一区二区| 亚洲无线码一区二区三区| 欧美日韩国产一二三| 日韩不卡在线观看日韩不卡视频|