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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? client-server imaging.htm

?? 是一部關(guān)于java高級(jí)圖像處理的的一本入門書
?? HTM
?? 第 1 頁 / 共 4 頁
字號(hào):
<!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>     /**

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美日韩成人综合| 精品国产免费一区二区三区香蕉 | 亚洲精品美国一| 欧美美女网站色| 国产成人亚洲综合a∨婷婷 | 精品国产自在久精品国产| 99re亚洲国产精品| 国产一区不卡视频| 日日夜夜免费精品| 亚洲欧美激情小说另类| 久久精品夜色噜噜亚洲aⅴ| 欧美日韩不卡一区| 色综合久久综合中文综合网| 久久99九九99精品| 日精品一区二区| 亚洲一区二区综合| 中文字幕一区二区三区在线播放 | 精品国产自在久精品国产| 欧美色图激情小说| 色综合久久久久久久久| 国产高清成人在线| 国产在线国偷精品免费看| 奇米亚洲午夜久久精品| 一区二区三区影院| 亚洲婷婷综合久久一本伊一区| 久久影院午夜论| 日韩欧美一区在线观看| 69p69国产精品| 欧美日韩aaaaaa| 9191久久久久久久久久久| 欧美熟乱第一页| 欧美综合色免费| 在线观看免费一区| 色偷偷一区二区三区| 91啪九色porn原创视频在线观看| 国产成人免费xxxxxxxx| 国产盗摄女厕一区二区三区| 国产一区二区三区日韩| 国产乱码精品一区二区三区五月婷| 日韩电影在线观看电影| 日韩国产欧美在线观看| 日韩国产欧美在线观看| 日本欧美一区二区| 免费观看30秒视频久久| 九九九久久久精品| 国产在线精品一区二区夜色| 国产原创一区二区三区| 国产69精品一区二区亚洲孕妇| 粉嫩蜜臀av国产精品网站| 成人av高清在线| 91欧美一区二区| 欧美日韩亚洲综合在线| 欧美一区二区三区四区五区| 日韩欧美一区二区三区在线| 亚洲精品一区二区三区香蕉| 国产婷婷色一区二区三区在线| 欧美激情资源网| 亚洲精品乱码久久久久久久久| 亚洲国产精品视频| 日本不卡免费在线视频| 国产麻豆视频精品| 不卡的看片网站| 欧美三级在线看| 欧美成人精品福利| 日本一二三不卡| 亚洲一区自拍偷拍| 久久国产精品99久久人人澡| 国产大陆a不卡| 在线这里只有精品| 日韩欧美三级在线| 国产精品久久久久三级| 亚洲国产一二三| 韩国精品一区二区| 91小视频在线| 日韩欧美久久一区| 亚洲天堂福利av| 日本午夜一本久久久综合| 国产成人在线视频免费播放| 在线视频一区二区免费| 欧美mv和日韩mv国产网站| 国产精品家庭影院| 爽好多水快深点欧美视频| 国产成人精品免费在线| 欧美午夜片在线看| 久久久久久9999| 亚洲午夜私人影院| 精品一区二区三区av| 色综合天天性综合| 精品国产网站在线观看| 亚洲综合色区另类av| 国产在线麻豆精品观看| 欧美日韩黄色一区二区| 国产欧美日韩在线视频| 日日摸夜夜添夜夜添精品视频 | 午夜精品久久久久久久久久久| 国产综合色在线| 日本道在线观看一区二区| 久久综合久久鬼色| 午夜欧美大尺度福利影院在线看| 国产精品一区二区免费不卡| 欧美日本韩国一区二区三区视频| 日本一区二区三区免费乱视频| 丝袜美腿亚洲一区| 色婷婷精品久久二区二区蜜臀av| 久久综合久久久久88| 五月激情丁香一区二区三区| av电影在线观看不卡| 久久这里只有精品6| 美女mm1313爽爽久久久蜜臀| 在线免费不卡视频| 国产精品久久毛片| 国产成人免费视| 2019国产精品| 久久www免费人成看片高清| 欧美天天综合网| 一区二区三区不卡视频在线观看| 国产成人精品亚洲日本在线桃色| 日韩欧美国产成人一区二区| 亚洲成人一二三| 91成人在线观看喷潮| 亚洲视频1区2区| av不卡一区二区三区| 国产欧美精品一区二区色综合| 精品一区二区免费看| 日韩一区二区三免费高清| 亚洲成人av福利| 精品视频在线免费看| 亚洲国产日韩a在线播放性色| 91蝌蚪国产九色| 亚洲人午夜精品天堂一二香蕉| 国产91精品一区二区| 欧美经典一区二区| 国产精品 欧美精品| 国产日韩欧美一区二区三区综合| 韩国女主播一区| 久久蜜桃一区二区| 国产成人夜色高潮福利影视| 日本一区二区在线不卡| 国产成人av资源| 亚洲国产成人午夜在线一区| 波多野结衣在线aⅴ中文字幕不卡| 国产蜜臀av在线一区二区三区| 国产不卡高清在线观看视频| 国产精品丝袜久久久久久app| 成人毛片在线观看| 中文字幕亚洲视频| 色先锋aa成人| 日韩中文字幕91| 欧美tickle裸体挠脚心vk| 久久国产夜色精品鲁鲁99| 精品国产伦一区二区三区免费| 久久99九九99精品| 欧美国产97人人爽人人喊| 成年人午夜久久久| 亚洲欧美日韩人成在线播放| 欧美亚洲免费在线一区| 日韩影视精彩在线| 久久久久久一二三区| av一区二区三区| 亚洲国产日韩一区二区| 欧美一级生活片| 国产成人av自拍| 一区二区欧美精品| 日韩一级在线观看| 国产成a人亚洲| 亚洲一级电影视频| 日韩欧美综合在线| eeuss影院一区二区三区 | 激情图片小说一区| 国产精品久久久久久久久久免费看| 91在线国内视频| 肉丝袜脚交视频一区二区| 国产亚洲综合在线| 色国产综合视频| 麻豆高清免费国产一区| 国产精品情趣视频| 欧美精品亚洲一区二区在线播放| 国产在线一区二区| 亚洲国产精品人人做人人爽| 欧美精品一区二区三区蜜桃 | 中文字幕一区二区三区视频| 欧美剧情片在线观看| 高清不卡一区二区在线| 亚洲不卡在线观看| 国产三区在线成人av| 精品视频一区二区不卡| 国产91在线观看丝袜| 亚洲国产成人av网| 国产女人aaa级久久久级| 欧美人牲a欧美精品| 波多野结衣在线aⅴ中文字幕不卡| 日一区二区三区| 亚洲男人的天堂在线观看| 精品精品欲导航| 色婷婷激情久久| 福利一区二区在线| 久久精品99国产精品| 亚洲一二三级电影| 欧美国产日产图区| 日韩精品一区二区三区视频播放|