JP2695081B2 - Window system reduced image creation method - Google Patents

Window system reduced image creation method

Info

Publication number
JP2695081B2
JP2695081B2 JP3340962A JP34096291A JP2695081B2 JP 2695081 B2 JP2695081 B2 JP 2695081B2 JP 3340962 A JP3340962 A JP 3340962A JP 34096291 A JP34096291 A JP 34096291A JP 2695081 B2 JP2695081 B2 JP 2695081B2
Authority
JP
Japan
Prior art keywords
area
window
image data
server
reduced
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Lifetime
Application number
JP3340962A
Other languages
Japanese (ja)
Other versions
JPH05174136A (en
Inventor
鈴木  茂
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Oki Electric Industry Co Ltd
Original Assignee
Oki Electric Industry Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Oki Electric Industry Co Ltd filed Critical Oki Electric Industry Co Ltd
Priority to JP3340962A priority Critical patent/JP2695081B2/en
Publication of JPH05174136A publication Critical patent/JPH05174136A/en
Application granted granted Critical
Publication of JP2695081B2 publication Critical patent/JP2695081B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【産業上の利用分野】本発明は、サーバ方式のウィンド
ウシステムにおける縮小イメージの作成方式に関するも
のである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a method of creating a reduced image in a server type window system.

【0002】[0002]

【従来の技術】ディスプレイ画面を効率良く使用でき
る、操作性を向上できる、高速表示できる、多様な画面
表現をできる等の理由から、ユーザインタフェースとし
てウィンドウシステムが定着しつつある。また、アプリ
ケーションプログラムの負担を軽減するためやその容易
性を高めるため等の理由によって、フレームバッファの
アクセス等を専用的に行なうウィンドウサーバ(ソフト
ウェア)を、アプリケーションプログラムとは別個に備
えたサーバ方式のウィンドウシステムが採用されつつあ
る。
2. Description of the Related Art A window system has been established as a user interface because it can efficiently use a display screen, can improve operability, can display at high speed, and can display various screens. In addition, for the reason of reducing the load on the application program, increasing its ease, and the like, a window server (software) for exclusive access to the frame buffer is provided separately from the application program. Window systems are being adopted.

【0003】まず、サーバ方式のウィンドウシステムに
ついて説明する。
First, a server type window system will be described.

【0004】サーバ方式のウィンドウシステムを使用す
る場合、ユーザはウィンドウサーバを実行する。ウィン
ドウサーバは、1以上のクライアント(ウィンドウ機能
を利用するアプリケーションプログラムはこう呼ばれて
いる)からの接続要求を受け、接続要求したクライアン
トに対する通信路を確立する。この通信路を介して、ウ
ィンドウサーバはクライアントからのリクエスト(ウィ
ンドウ作成リクエスト等)を受け取ったり、それに応じ
た処理を行なって応答を返したりする。また、ウィンド
ウサーバは、この通信路を使って、クライアントに対し
てイベント(例えばユーザがマウスボタンを操作した通
知等)を送り出す。
When using a server-based window system, a user runs a window server. The window server receives a connection request from one or more clients (the application program that uses the window function is called in this way) and establishes a communication path to the client that has requested the connection. Through this communication path, the window server receives a request from a client (a window creation request, etc.), performs processing according to the request, and returns a response. The window server also sends an event (for example, a notification that the user has operated a mouse button) to the client using this communication path.

【0005】ここで、通信路をネットワークを介して張
れるので、クライアントを、ウィンドウサーバと同一又
は異なるマシンのいずれにも搭載することができる。
Since the communication path can be set up via the network, the client can be installed in either the same machine as the window server or a different machine.

【0006】図2は、クライアント及びウィンドウサー
バが異なるマシンに搭載されているウィンドウシステム
の構成例を示すものである。ウィンドウサーバ1は、ビ
ットマップディスプレイ2や入力装置(キーボードやマ
ウス)3を有するワークステーション4に搭載され、他
方、クライアント5は他のワークステーション6に搭載
されている。そして、これらワークステーション4及び
6がネットワーク7で接続されている。
FIG. 2 shows a configuration example of a window system in which a client and a window server are mounted on different machines. The window server 1 is installed in a workstation 4 having a bitmap display 2 and an input device (keyboard or mouse) 3, while the client 5 is installed in another workstation 6. The workstations 4 and 6 are connected by the network 7.

【0007】このような場合、ユーザはワークステーシ
ョン4上でウィンドウサーバ1を起動し、次にワークス
テーション6上でクライアント5を起動する。そして、
クライアント5及びウィンドウサーバ1間の通信路が確
立されると、ウィンドウサーバ1はクライアント5に対
応するウィンドウをディスプレイ2の画面上に表示す
る。ユーザが入力装置3を使ってウィンドウに対して操
作すると、それらの情報はイベントとしてウィンドウサ
ーバ1からクライアント5に送信される。クライアント
5は受け取ったイベントに対する処理を行ない、その出
力をウィンドウ上に表示するためにウィンドウサーバ1
にリクエストを送る。クライアント5がウィンドウサー
バ1に送るリクエストとしては、「ウィンドウ間で矩形
領域をコピーする」、「ウィンドウ上に線を引く」、
[ウィンドウ上に文字を書く」といった内容が基本的で
ある。クライアント5は、多くのリクエストを組み合わ
せて送信でき、ウィンドウサーバ1がそれに応じた処理
を行なって適切な画面表示をユーザに提供すると共にク
ライアント5に応答を返信する。
In such a case, the user activates the window server 1 on the workstation 4 and then activates the client 5 on the workstation 6. And
When the communication path between the client 5 and the window server 1 is established, the window server 1 displays the window corresponding to the client 5 on the screen of the display 2. When the user operates the window using the input device 3, such information is transmitted from the window server 1 to the client 5 as an event. The client 5 processes the received event and displays the output on the window.
Send a request to. The request sent from the client 5 to the window server 1 is “copy rectangular area between windows”, “draw line on window”,
Basically, the content is "write a character on the window". The client 5 can combine and send many requests, and the window server 1 performs a corresponding process to provide an appropriate screen display to the user and send back a response to the client 5.

【0008】ところで、クライアント5の処理によっ
て、ウィンドウ上に表示されていたイメージを縮小表示
させることも行われている。
By the way, the image displayed on the window is reduced by the processing of the client 5.

【0009】サーバ方式のウィンドウシステムにおい
て、ウィンドウ上に表示されたイメージを縮小する方法
として、従来、二つの方法が提案されていた。以下、順
に説明する。
In the server type window system, two methods have been conventionally proposed as a method for reducing an image displayed on a window. Hereinafter, description will be made in order.

【0010】図3は、第1の縮小イメージ作成方式を示
すフローチャートである。この第1の縮小イメージ作成
方式では、まず、イメージデータを全てウィンドウサー
バ1からクライアント5側に転送する(ステップ10
0)。そして、クライアント5側で縮小イメージを構成
する処理を行なう(ステップ101〜106)。すなわ
ち、幅W、高さHの領域を1/Nに縮小する場合、縦、
横共にN個毎のピクセルを取出すことで、幅W/N、高
さH/Nの縮小イメージを作成する。その後、完成した
縮小イメージをウィンドウサーバ1に転送してこれを表
示させる(ステップ107、108)。
FIG. 3 is a flowchart showing the first reduced image creating method. In this first reduced image creating method, first, all the image data is transferred from the window server 1 to the client 5 (step 10).
0). Then, the client 5 performs a process of forming a reduced image (steps 101 to 106). That is, when reducing the area of width W and height H to 1 / N,
A reduced image having a width W / N and a height H / N is created by taking out every N pixels horizontally. After that, the completed reduced image is transferred to the window server 1 and displayed (steps 107 and 108).

【0011】図4は、第2の縮小イメージ作成方式を示
すフローチャートである。第2の縮小イメージ作成方式
では、まず、ウィンドウサーバ1上に縮小イメージ用の
領域を用意する(ステップ200)。そして、原イメー
ジデータから縦横共にN個毎のピクセルを取出して用意
した領域にコピーしていくことで縮小イメージを作成す
る(ステップ201〜206)。なお、ウィンドウサー
バ1はかってに動作することができないものであり、ク
ライアント5がコピーリクエストを発行することで領域
コピー処理を行なう(ステップ202)。最後に、ウィ
ンドウ上に縮小されたイメージを表示する(ステップ2
07)。
FIG. 4 is a flow chart showing the second reduced image creating method. In the second reduced image creation method, first, an area for reduced images is prepared on the window server 1 (step 200). Then, a reduced image is created by extracting every N pixels in the vertical and horizontal directions from the original image data and copying them to the prepared area (steps 201 to 206). The window server 1 cannot operate once, and the client 5 issues a copy request to perform area copy processing (step 202). Finally, display the reduced image on the window (step 2
07).

【0012】[0012]

【発明が解決しようとする課題】しかしながら、従来の
縮小イメージ作成方式は、いずれも問題を有するもので
あった。
However, each of the conventional reduced image forming methods has a problem.

【0013】第1の縮小イメージ作成方式においては、
ウィンドウサーバ1からクライアント5へと、クライア
ント5からウィンドウサーバ1へとの2回イメージデー
タの転送処理が必要となる。イメージは大量の情報から
構成されているため、データ転送時間の増大、ネットワ
ークトラフィックの増大という問題が発生する。
In the first reduced image creating method,
It is necessary to transfer the image data twice from the window server 1 to the client 5 and from the client 5 to the window server 1. Since the image is composed of a large amount of information, problems such as increase of data transfer time and increase of network traffic occur.

【0014】第2の縮小イメージ作成方式において、ピ
クセル1個をコピーするために、クライアント5は1個
の領域コピーリクエストをウィンドウサーバ1に送信す
る必要があるので、全体としては大量のコピーリクエス
トを送信しなければならない。例えば、幅W、高さHの
領域を1/Nに縮小する場合では、W・H/N2 個だけ
のコピーリクエストを送信しなければならない。そのた
め、このリクエスト及びその応答の転送時間もかなりか
かる上に、ウィンドウサーバ1がリクエスト内容を評価
判断するにも多くの時間がかかる。従って、効率が悪く
て処理速度が遅いものであった。
In the second reduced image creating method, the client 5 needs to send one area copy request to the window server 1 in order to copy one pixel, so that a large number of copy requests are issued as a whole. I have to send. For example, in the case of reducing the area of width W and height H to 1 / N, only WH / N 2 copy requests must be transmitted. Therefore, it takes a considerable amount of time to transfer the request and its response, and it takes a lot of time for the window server 1 to evaluate and judge the request content. Therefore, the efficiency is low and the processing speed is slow.

【0015】本発明は、以上の点を考慮してなされたも
のであり、ウィンドウサーバ及びクライアント間でイメ
ージデータを転送することなく、しかも、縮小イメージ
を速く得ることができる効率の良いウィンドウシステム
の縮小イメージ作成方式を提供しようとするものであ
る。
The present invention has been made in consideration of the above points, and provides an efficient window system capable of quickly obtaining a reduced image without transferring image data between the window server and the client. It is intended to provide a reduced image creation method.

【0016】[0016]

【課題を解決するための手段】かかる課題を解決するた
め、本発明においては、ウィンドウイメージ間での矩形
領域のコピーが可能なサーバ方式に従うウィンドウシス
テムの縮小イメージ作成方式において、以下の順序によ
る領域コピーによって、原イメージデータを所定の縮小
率で縮小した縮小イメージデータを得るようにした。
In order to solve such a problem, according to the present invention, in a reduced image creating method of a window system according to a server method capable of copying a rectangular area between window images, areas in the following order By copying, original image data is reduced at a predetermined reduction ratio to obtain reduced image data.

【0017】すなわち、ウィンドウサーバ上の原イメー
ジデータの1以上の行(又は列)のピクセルを取出し
て、ウィンドウサーバ上の他の第1領域にコピーするこ
とを繰返して縦方向(又は横方向)に縮小したイメージ
データを作成する。次に、ウィンドウサーバ上の第1領
域のイメージデータの1以上の列(又は行)のピクセル
を取出して、ウィンドウサーバ上の他の第2領域にコピ
ーすることを繰返して横方向(又は縦方向)に縮小した
イメージデータを作成する。
That is, the pixels in one or more rows (or columns) of the original image data on the window server are taken out and copied to another first area on the window server, and the pixels are vertically (or horizontally) reduced. The created image data. Next, the pixels in one or more columns (or rows) of the image data in the first area on the window server are taken out and copied to another second area on the window server to repeat the horizontal (or vertical) direction. ) To create the reduced image data.

【0018】[0018]

【作用】本発明は、大量なイメージデータをウィンドウ
サーバ及びクライアント間で転送することを避けるため
に、ウィンドウイメージ間での矩形領域のコピー機能を
利用して、原イメージデータを所定の縮小率で縮小した
縮小イメージデータを得ることとした。
In order to avoid transferring a large amount of image data between the window server and the client, the present invention utilizes the copy function of the rectangular area between the window images to reduce the original image data at a predetermined reduction ratio. We decided to obtain the reduced image data.

【0019】そして、1回のコピー領域ができるだけ大
きくなるように、1以上の行のピクセルを含む矩形領域
及び1以上の列のピクセルを含む矩形領域をコピー領域
とすることとした。このように行方向及び列方向の2種
類の矩形領域をコピー領域として選定したので、また、
イメージデータに選定するコピー領域の数は複数生じる
ので、コピー順序も定めることを要する。本発明では、
ウィンドウサーバ上の原イメージデータの1以上の行
(又は列)のピクセルを取出して、ウィンドウサーバ上
の他の第1領域にコピーすることを繰返して縦方向(又
は横方向)に縮小したイメージデータを作成し、次に、
ウィンドウサーバ上の第1領域のイメージデータの1以
上の列(又は行)のピクセルを取出して、ウィンドウサ
ーバ上の他の第2領域にコピーすることを繰返して横方
向(又は縦方向)に縮小したイメージデータを作成する
こととした。
A rectangular area including pixels in one or more rows and a rectangular area including pixels in one or more columns are used as copy areas so that one copy area is as large as possible. Since two types of rectangular areas in the row direction and the column direction are selected as copy areas in this way,
Since a plurality of copy areas are selected for the image data, it is necessary to determine the copy order. In the present invention,
The pixel data of one or more rows (or columns) of the original image data on the window server is taken out and copied to another first area on the window server to create image data reduced in the vertical direction (or horizontal direction). And then
The pixels in one or more columns (or rows) of the image data of the first area on the window server are taken out and copied to another second area on the window server, and reduced in the horizontal direction (or the vertical direction). I decided to create the image data.

【0020】[0020]

【実施例】以下、本発明の一実施例を図面を参照しなが
ら詳述する。この実施例の縮小イメージ作成方式が適用
されるウィンドウシステムの構成も、上述した図2に示
すようなウィンドウサーバ1及びクライアント5が別個
のワークステーション4、6に搭載されているものとす
る。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described below in detail with reference to the drawings. Also in the configuration of the window system to which the reduced image creating method of this embodiment is applied, it is assumed that the window server 1 and the client 5 as shown in FIG. 2 are installed in separate workstations 4 and 6.

【0021】この実施例の縮小イメージ作成方式も、基
本的には、クライアント5が発行する領域コピーリクエ
ストを利用するものである。しかし、コピー領域の選定
の仕方が、上述した従来の第2の縮小イメージ作成方式
とは異なっている。なお、実際上、サーバ方式のウィン
ドウシステムの場合、クライアント5が矩形領域のコピ
ーを指示するコピーリクエストを発行できるものが種々
提案されている。
The reduced image creating method of this embodiment also basically uses the area copy request issued by the client 5. However, the method of selecting the copy area is different from the above-described second conventional reduced image creating method. Actually, in the case of the server type window system, various types have been proposed in which the client 5 can issue a copy request instructing copying of a rectangular area.

【0022】図1は、この実施例による縮小イメージ作
成方式を示すフローチャートであり、図5及び図6はそ
の処理による領域コピーの説明図である。以下、図1に
沿って、適宜図5及び図6を利用しながら実施例の処理
を説明する。なお、幅W、高さHの原イメージデータ
(領域A:メモリ上にある)を1/N(Nは2以上の整
数)に縮小するとして説明する。
FIG. 1 is a flow chart showing a reduced image creating method according to this embodiment, and FIGS. 5 and 6 are explanatory views of area copying by the processing. Hereinafter, the process of the embodiment will be described with reference to FIG. 1 and appropriately using FIGS. 5 and 6. It is assumed that the original image data having the width W and the height H (area A: existing in the memory) is reduced to 1 / N (N is an integer of 2 or more).

【0023】図1において、クライアント5は、まず、
ウィンドウサーバ1上に縦H/N及、横Wピクセルの領
域Bを用意する(ステップ300)。そして、縦パラメ
ータIを初期値0(最初の行を指示するもの)に設定す
る(ステップ301)。
In FIG. 1, the client 5 first
An area B of vertical H / N and horizontal W pixels is prepared on the window server 1 (step 300). Then, the vertical parameter I is set to an initial value 0 (which indicates the first row) (step 301).

【0024】その後、この縦パラメータIで定まる領域
A内の矩形領域ピクセルを、縦パラメータIで定まる領
域B内の矩形領域にコピーする領域コピーリクエスト
(なお、このリクエストは応答がいらない片道リクエス
トである)をウィンドウサーバ1に与える(ステップ3
02)。すなわち、領域Aの左上端の座標が(0,N×
I)であって幅がW、高さが1の矩形領域内のピクセル
(1行分のピクセル)を、領域Bの左上端の座標が
(0,I)であって幅がW、高さが1の矩形領域にコピ
ーさせる。図5はこのようなコピーの内容を示すもので
ある。領域Aの矩形領域A1のピクセルすなわち1行分
のピクセルが、領域B内の矩形領域B1にコピーされ
る。
After that, an area copy request for copying the rectangular area pixels in the area A determined by the vertical parameter I to the rectangular area in the area B determined by the vertical parameter I (this request is a one-way request with no response). ) Is given to the window server 1 (step 3)
02). That is, the coordinates of the upper left corner of the area A are (0, N ×
I) with a width W and a height of 1 in a rectangular area (pixels for one row), and the coordinates of the upper left corner of the area B is (0, I) with a width of W and a height. Is copied to the rectangular area of 1. FIG. 5 shows the contents of such a copy. Pixels in the rectangular area A1 in the area A, that is, pixels for one row are copied to the rectangular area B1 in the area B.

【0025】このような1行分の領域コピーを要求する
と、クライアント5は縦パラメータIをインクリメント
した後、領域Bが全てピクセルで埋まったか否かを、縦
パラメータIと領域Bの最終行の次の行番号H/N(最
初の行を0としているのでH/Nは最終行の次の行を表
す)との比較によって判断する(ステップ303、30
4)。その結果、領域Bが全てピクセルで埋まっていな
い場合には、上述したステップ302に戻って、領域コ
ピーリクエストの送信を行なう。
When such a region copy for one line is requested, the client 5 increments the vertical parameter I and then determines whether or not the region B is completely filled with pixels. And the line number H / N (H / N represents the line next to the last line because the first line is 0) (steps 303 and 30).
4). As a result, when the area B is not completely filled with pixels, the process returns to step 302 described above, and the area copy request is transmitted.

【0026】このような処理ループを繰返すことによ
り、領域AのN行毎の1行分のピクセルが領域Bに間隔
を詰めてコピーされていき、結局、領域Aの原イメージ
データを縦方向に1/Nに縮小したイメージデータが領
域Bに格納される。このようにして領域Bが、縦方向に
1/Nに縮小されたイメージデータのピクセルで埋まっ
たときには、ステップ305以降の横方向の縮小処理に
進む。
By repeating such a processing loop, the pixels for one row for every N rows in the area A are copied to the area B at intervals, so that the original image data in the area A is vertically oriented. The image data reduced to 1 / N is stored in the area B. In this way, when the region B is filled with the pixels of the image data reduced to 1 / N in the vertical direction, the process proceeds to the reduction process in the horizontal direction after step 305.

【0027】横方向の縮小処理では、クライアント5は
まず、ウィンドウサーバ1上に縦H/N及、横W/Nピ
クセルの領域Cを用意する(ステップ305)。そし
て、横パラメータJを初期値0(最初の列を指示するも
の)に設定する(ステップ306)。
In the horizontal reduction processing, the client 5 first prepares an area C of vertical H / N and horizontal W / N pixels on the window server 1 (step 305). Then, the lateral parameter J is set to the initial value 0 (which indicates the first column) (step 306).

【0028】その後、この横パラメータJで定まる領域
B内の矩形領域ピクセル(1列分のピクセル)を、横パ
ラメータJで定まる領域C内の矩形領域にコピーする領
域コピーリクエストをウィンドウサーバ1に与える(ス
テップ307)。すなわち、領域Bの左上端の座標が
(N×J,0)であって幅が1、高さがH/Nの矩形領
域内のピクセルを、領域Cの左上端の座標が(J,0)
であって幅が1、高さがH/Nの矩形領域にコピーさせ
る。図6はこのようなコピーの内容を示すものである。
領域B内の矩形領域B2のピクセルすなわち1列分のピ
クセルが、領域C内の領域C1にコピーされる。
Thereafter, an area copy request for copying the rectangular area pixels (pixels for one column) in the area B determined by the lateral parameter J to the rectangular area in the area C determined by the lateral parameter J is given to the window server 1. (Step 307). That is, a pixel in a rectangular area having an upper left corner of the area B of (N × J, 0), a width of 1 and a height of H / N, and an upper left corner of the area C has a coordinate of (J, 0). )
The width is 1 and the height is H / N. FIG. 6 shows the contents of such a copy.
Pixels in the rectangular area B2 in the area B, that is, pixels for one column are copied to the area C1 in the area C.

【0029】このような1列分の領域コピーを要求する
と、クライアント5は横パラメータJをインクリメント
した後、領域Cが全てピクセルで埋まったか否かを、横
パラメータJと領域Cの最終列の次の列番号W/N(最
初の列を0としているのでW/Nは最終列の次の列を表
す)との比較によって判断する(ステップ308、30
9)。その結果、領域Cが全てピクセルで埋まっていな
い場合には、上述したステップ307に戻って、領域コ
ピーリクエストの送信を行なう。
When the area copy for one column is requested, the client 5 increments the horizontal parameter J and then determines whether the area C is completely filled with pixels. Column number W / N (where the first column is 0, so W / N represents the column next to the last column).
9). As a result, if the area C is not completely filled with pixels, the process returns to step 307 and the area copy request is transmitted.

【0030】このような処理ループを繰返すことによ
り、領域BのN列毎の1列分のピクセルが領域Cに間隔
を詰めてコピーされていき、結局、領域Bのイメージデ
ータを横方向に1/Nに縮小したイメージデータが領域
Cに格納される。この領域Cに格納されたイメージデー
タは、領域Aに格納されている原イメージデータからみ
れば、縦横に1/Nずつ縮小されたものとなっている。
By repeating such a processing loop, the pixels for one column for every N columns of the region B are copied to the region C at intervals, and finally, the image data of the region B is 1 in the horizontal direction. The image data reduced to / N is stored in the area C. The image data stored in the area C is reduced by 1 / N vertically and horizontally as viewed from the original image data stored in the area A.

【0031】このようにして領域Cに、原イメージデー
タを縦横に1/Nずつ縮小したイメージデータが格納さ
れたときには(ステップ309で否定結果)、ウィンド
ウ上にこの縮小イメージデータを表示させて一連の縮小
イメージの作成処理を終了する(ステップ310)。
In this manner, when the image data obtained by vertically / horizontally reducing the original image data by 1 / N is stored in the area C (negative result at step 309), the reduced image data is displayed on the window and a series of data is displayed. The process of creating the reduced image is finished (step 310).

【0032】従って、上記実施例によれば、大量のイメ
ージデータをウィンドウサーバ1及びクライアント5間
で転送することがないので、この点で縮小イメージの作
成処理を高速化することができる。
Therefore, according to the above-described embodiment, since a large amount of image data is not transferred between the window server 1 and the client 5, the process of creating a reduced image can be speeded up in this respect.

【0033】また、領域コピーリクエストが1個のピク
セルコピーではなく行又は列のコピーを要求するので、
クライアント5からウィンドウサーバ1へ送信する領域
コピーリクエストの数も、従来より大幅に少なくするこ
とができる。従って、リクエストの総送受時間を少なく
できると共にリクエストの解釈等の時間もトータル的に
少なくできて、この点から効率良く縮小イメージを作成
することができる。因に、幅W、高さHの原イメージデ
ータを縦横共に1/Nに縮小する場合、従来の第2の縮
小イメージ作成方式によれば、コピーリクエスト総数は
W・H/N2 であるのに対して、この実施例の方式によ
れば、W/N+H/Nである。
Also, since the region copy request requires a row or column copy rather than a single pixel copy,
The number of area copy requests transmitted from the client 5 to the window server 1 can be significantly reduced as compared with the conventional case. Therefore, it is possible to reduce the total transmission / reception time of the request and the total time for interpreting the request, and from this point, it is possible to efficiently create the reduced image. Incidentally, when the original image data of width W and height H is reduced to 1 / N both vertically and horizontally, the total number of copy requests is W · H / N 2 according to the second conventional reduced image creating method. On the other hand, according to the method of this embodiment, W / N + H / N.

【0034】なお、上記実施例においては、ウィンドウ
サーバとクライアントが別個のマシンに搭載されている
場合を示したが、同一のマシンに搭載されている場合で
も本発明を適用することができる。
In the above embodiment, the case where the window server and the client are mounted on different machines has been described, but the present invention can be applied even when they are mounted on the same machine.

【0035】また、上記実施例においては、縦方向の縮
小を行なった後横方向の縮小を行なうものを示したが、
逆に、横方向の縮小を先に行なうようにしても良い。
Further, in the above-mentioned embodiment, the case where the reduction in the horizontal direction is performed after the reduction in the vertical direction is shown.
On the contrary, the reduction in the horizontal direction may be performed first.

【0036】さらに、上記実施例においては、1行又は
1列分のピクセルをコピー単位としたものを示したが、
2行以上又は2列以上分のピクセルをコピー単位とする
ものであっても良い。例えば、縮小率が2/3である場
合には、2行又は2列分のピクセルをコピー単位とする
ことがコピーリクエストの総数からみて好ましい。ま
た、例えば、縮小率が3/5である場合には、2行(又
は2列)分のピクセルをコピー単位としたコピーと、1
行(又は1列)分のピクセルをコピー単位としたコピー
とを交互に繰返すことがコピーリクエストの総数からみ
て好ましい。
Further, in the above embodiment, one row or one column of pixels is used as a copy unit.
Pixels of two rows or more or two columns or more may be used as a copy unit. For example, when the reduction ratio is 2/3, it is preferable from the total number of copy requests to set pixels in two rows or two columns as a copy unit. Further, for example, when the reduction ratio is 3/5, a copy in which pixels of two rows (or two columns) are used as a copy unit is set to 1
From the total number of copy requests, it is preferable to alternately repeat the copy in which the pixels of the row (or one column) are set as the copy unit.

【0037】さらにまた、上記実施例においては、縦方
向及び横方向の縮小率が等しいものを示したが、縦方向
及び横方向の縮小率が異なる場合にも、本発明を適用す
ることができる。
Further, in the above-mentioned embodiment, the case where the reduction ratios in the vertical direction and the horizontal direction are the same is shown, but the present invention can be applied to the case where the reduction ratios in the vertical direction and the horizontal direction are different. .

【0038】[0038]

【発明の効果】以上のように、本発明によれば、ウィン
ドウサーバ上の原イメージデータの1以上の行(又は
列)のピクセルを、ウィンドウサーバ上の他の第1領域
にコピーすることを繰返して縦方向(又は横方向)に縮
小したイメージデータを作成し、次に、ウィンドウサー
バ上の第1領域のイメージデータの1以上の列(又は
行)のピクセルを、ウィンドウサーバ上の他の第2領域
にコピーすることを繰返して横方向(又は縦方向)に縮
小したイメージデータを作成して、原イメージデータを
所定の縮小率で縮小した縮小イメージデータを得るよう
にしたので、効率良くかつ速く縮小イメージを作成する
ことができる。
As described above, according to the present invention, the pixels in one or more rows (or columns) of the original image data on the window server are repeatedly copied to another first area on the window server. The image data reduced in the vertical direction (or the horizontal direction) is created, and then the pixels in one or more columns (or rows) of the image data in the first area on the window server are transferred to other second pixels on the window server. By repeating copying to the area to create the image data that is reduced in the horizontal direction (or the vertical direction) and obtaining the reduced image data in which the original image data is reduced at a specified reduction ratio, it is efficient and fast. You can create a reduced image.

【図面の簡単な説明】[Brief description of the drawings]

【図1】実施例方式の処理を示すフローチャートであ
る。
FIG. 1 is a flowchart showing processing of an embodiment system.

【図2】ウィンドウシステムの構成を示すブロック図で
ある。
FIG. 2 is a block diagram showing a configuration of a window system.

【図3】従来の第1方式の処理を示すフローチャートで
ある。
FIG. 3 is a flowchart showing processing of a conventional first method.

【図4】従来の第2方式の処理を示すフローチャートで
ある。
FIG. 4 is a flowchart showing processing of a second conventional method.

【図5】実施例の縦方向についての領域コピーの説明図
である。
FIG. 5 is an explanatory diagram of area copying in the vertical direction according to the embodiment.

【図6】実施例の横方向についての領域コピーの説明図
である。
FIG. 6 is an explanatory diagram of area copying in the horizontal direction according to the embodiment.

【符号の説明】[Explanation of symbols]

1…ウィンドウサーバ、4、6…ワークステーション、
5…クライアント、A1、B2…コピー元の矩形領域、
B1、C1…コピー先の矩形領域。
1 ... Window server, 4, 6 ... Workstation,
5 ... client, A1, B2 ... copy source rectangular area,
B1, C1 ... Rectangular area of copy destination.

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 ウィンドウイメージ間で矩形領域のコピ
ーが可能なサーバ方式に従うウィンドウシステムの縮小
イメージ作成方式において、 ウィンドウサーバ上の原イメージデータの1以上の行
(又は列)のピクセルを取出して、ウィンドウサーバ上
の他の第1領域にコピーすることを繰返して縦方向(又
は横方向)に縮小したイメージデータを作成し、 ウィンドウサーバ上の第1領域のイメージデータの1以
上の列(又は行)のピクセルを取出して、ウィンドウサ
ーバ上の他の第2領域にコピーすることを繰返して横方
向(又は縦方向)に縮小したイメージデータを作成し、 上記原イメージデータを所定の縮小率で縮小した縮小イ
メージデータを得ることを特徴としたウィンドウシステ
ムの縮小イメージ作成方式。
1. In a reduced image creating method of a window system according to a server method capable of copying a rectangular area between window images, pixels of one or more rows (or columns) of original image data on the window server are extracted to obtain the window server. By repeating copying to the other first area above, image data reduced in the vertical direction (or horizontal direction) is created, and one or more columns (or rows) of the image data of the first area on the window server are created. Image data that is reduced in the horizontal direction (or vertical direction) is created by repeatedly extracting pixels and copying it to another second area on the window server, and reducing the original image data by a prescribed reduction ratio. A window system reduced image creation method characterized by obtaining image data.
JP3340962A 1991-12-24 1991-12-24 Window system reduced image creation method Expired - Lifetime JP2695081B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3340962A JP2695081B2 (en) 1991-12-24 1991-12-24 Window system reduced image creation method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3340962A JP2695081B2 (en) 1991-12-24 1991-12-24 Window system reduced image creation method

Publications (2)

Publication Number Publication Date
JPH05174136A JPH05174136A (en) 1993-07-13
JP2695081B2 true JP2695081B2 (en) 1997-12-24

Family

ID=18341918

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3340962A Expired - Lifetime JP2695081B2 (en) 1991-12-24 1991-12-24 Window system reduced image creation method

Country Status (1)

Country Link
JP (1) JP2695081B2 (en)

Also Published As

Publication number Publication date
JPH05174136A (en) 1993-07-13

Similar Documents

Publication Publication Date Title
US5754242A (en) Data formatting system for processing multiple independent input data streams for high resolution screen displays
US5913920A (en) Indicating updates from a remote display
US6222558B1 (en) System and method for efficiently transmitting and processing object information between and among a plurality of networked computers
US6483515B1 (en) Method and apparatus for displaying data patterns in information systems
US7737910B2 (en) Scalable display
JPH0922339A (en) Remote controller
JP3368014B2 (en) Image data processing method and system
JPH11205786A (en) Animation data housing form, animation data transferring system, animation displaying method and storage medium
EP0797796B1 (en) Method for the indication of updating process for a remote display
JP2695081B2 (en) Window system reduced image creation method
US7075538B2 (en) Methods and apparatus for faster line drawing on remote displays
US7174505B2 (en) Display engagement system
JPH06149694A (en) Distributed data reception selecting system
CN111158618A (en) Method and equipment for displaying pattern based on mobile terminal
US20060123141A1 (en) Graphics systems and methods
CN117156186A (en) Fusion display system and image processing method
JPH04291675A (en) Still image data management sytem between different kinds of machine
JPS6380322A (en) Data transferring and displaying system
JPH0798579A (en) Picture display system
JPH05323908A (en) Display controller
JPH0594272A (en) Information processor equipped with x window
JP2001242979A (en) Method to display picture image in document processed by computer in split, in combination and in substitute
JP2005043943A (en) Internet browser, and its picture display method
JPS62219181A (en) Graphic drawing method
Oh et al. Minimizing Up-Front Data Transmission on Web Based Vector GIS