JPH04127196A - Figure enlargement and reduction system - Google Patents
Figure enlargement and reduction systemInfo
- Publication number
- JPH04127196A JPH04127196A JP2247082A JP24708290A JPH04127196A JP H04127196 A JPH04127196 A JP H04127196A JP 2247082 A JP2247082 A JP 2247082A JP 24708290 A JP24708290 A JP 24708290A JP H04127196 A JPH04127196 A JP H04127196A
- Authority
- JP
- Japan
- Prior art keywords
- window
- enlargement
- graphic
- reduction
- scaling
- 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.)
- Pending
Links
Landscapes
- Controls And Circuits For Display Device (AREA)
Abstract
(57)【要約】本公報は電子出願前の出願データであるた
め要約のデータは記録されません。(57) [Summary] This bulletin contains application data before electronic filing, so abstract data is not recorded.
Description
【発明の詳細な説明】
〔産業上の利用分野〕
本発明は、グラフィック処理システムにおける図形デー
タの部分拡大、縮小方式に関する。DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a method for partially enlarging and reducing graphic data in a graphic processing system.
従来の技術は、特開昭61−27587号公報に示すよ
うに、指定した領域をコマンドで与えられた倍率で指定
サイズのウィンドウに表示する方式をとっていた。The conventional technology, as shown in Japanese Patent Application Laid-Open No. 61-27587, has adopted a method of displaying a specified area in a window of a specified size at a magnification given by a command.
上記従来技術は、拡大縮小倍率をコマンドで与えていた
ため操作が複雑になるという点と、拡大縮小後の図形が
どのくらいの大きさになるかイメージしにくく倍率をい
くつに設定したらよいかがわかりにくいという点で問題
があった。In the above conventional technology, the scaling factor is given by command, which makes the operation complicated, and it is difficult to imagine how large the figure will be after scaling, making it difficult to understand what scaling factor to set. There was a problem with that.
本発明の目的は、拡大縮小の操作を簡単にし、視覚的に
倍率を設定することにより、拡大縮小の操作性を向上す
ることにある。An object of the present invention is to improve the operability of enlargement/reduction by simplifying the enlargement/reduction operation and visually setting the magnification.
C課題を解決するための手段〕
上記目的を達成するために、大きさを任意に変えられる
ウィンドウを用意し、指定した領域をそのウィンドウの
サイズに合うように拡大縮小して表示するようにし、簡
単な操作で拡大縮小が行なえ、しかも、視覚的に倍率が
設定できるようにした。また、大きさを任意に変えられ
るウィンドウにより拡大縮小倍率を決めると、元の図形
データとウィンドウの縦横比が異なる場合、図形データ
の変形が起こる。之を避けたい場合のために、ウィンド
ウの縦横比を元の図形データの縦横比と同じに保つモー
ドも設けた6
〔作用〕
拡大縮小領域を指定する手段は1画面に表示されている
図形データのうち拡大縮小したい領域を指定する。任意
の大きさに変更できるウィンドウは拡大縮小倍率を指定
する手段となる。ウィンドウの縦、横の長さと指定され
た領域の縦、横の長さから、縦方向及び横方向の拡大縮
小倍率が求まる。この拡大縮小倍率に応じて元の指定さ
れた領域内の図形を拡大縮小手段が拡大縮小し、ウィン
ドウに表示される。このとき、一般には縦方向と横方向
の拡大縮小倍率が異なるため、拡大縮小の結果図形の変
形が起こる。これを避けたい場合のために、ウィンドウ
の縦横比を元の指定された領域の縦横比と同じに保つモ
ードを設け、縦方向と横方向の拡大縮小率を同じにし、
図形の変形を防ぐようにした。Means for Solving Problem C] In order to achieve the above purpose, a window whose size can be changed arbitrarily is prepared, and a specified area is displayed by being enlarged or reduced to fit the size of the window. Enlargement/reduction can be performed with simple operations, and the magnification can be set visually. Furthermore, if the scaling factor is determined by a window whose size can be arbitrarily changed, the graphic data will be deformed if the aspect ratio of the window differs from the original graphic data. In order to avoid this, we have also provided a mode in which the aspect ratio of the window is kept the same as the aspect ratio of the original graphic data6. Specify the area you want to scale. A window that can be changed to any size serves as a means of specifying the scaling factor. The vertical and horizontal scaling factors are determined from the vertical and horizontal lengths of the window and the vertical and horizontal lengths of the specified area. The enlarging/reducing means enlarges/reduces the figure within the original designated area according to this enlargement/reduction magnification, and displays the result in the window. At this time, since the scaling factors in the vertical and horizontal directions are generally different, deformation of the figure occurs as a result of scaling. In case you want to avoid this, there is a mode that keeps the window's aspect ratio the same as the original specified area's aspect ratio, so that the vertical and horizontal scaling ratios are the same.
Prevents shape deformation.
以下、本発明の一実施例を説明する。 An embodiment of the present invention will be described below.
第1図は本発明の操作方法の一例を示した図である。1
はグラフィックディスプレイ、2はマウスポインタ、3
は拡大縮小領域を示す矩形、4はウィンドウ、5はウィ
ンドウ枠である。まず(a)に示すように、拡大縮小を
行ないたい領域の対角線の片方の端点にマウスポインタ
2を移動し、マウスボタンを押す、そして、マウスボタ
ンを押したままマウスポインタ2を移動していくと、(
b)に示すように、マウスボタンを押し始めた位置とマ
ウスポインタ2を結ぶ線を対角線とする矩形3が表示さ
れる。この矩形3が拡大縮小したい領域と一致するまで
1.マウスポインタ2を移動し、そこでマウスボタンを
はなすと、(C)に示すように矩形3と同じ大きさのウ
ィンドウ4が生成され、その中に矩形3で囲まれた領域
が倍率−倍で表示される0次に、ウィンド枠5の上にマ
ウスポインタ2を移動してマウスボタンを押し、さらに
押したまま移動するとウィンドウ枠5がマウスポインタ
2に追従して変形する。ウィンドウ枠が希望する大きさ
になった時にマウスボタンをはなすと、(d)に示すよ
うに、ウィンドウ4がウィンドウ枠5に合わせて拡大さ
れ、ウィンドウ4の表示内容も同様に拡大表示される。FIG. 1 is a diagram showing an example of the operating method of the present invention. 1
is the graphic display, 2 is the mouse pointer, 3 is the
is a rectangle indicating a scaling area, 4 is a window, and 5 is a window frame. First, as shown in (a), move mouse pointer 2 to one end point of the diagonal line of the area you want to scale, press the mouse button, and then move mouse pointer 2 while holding down the mouse button. and,(
As shown in b), a rectangle 3 whose diagonal line is a line connecting the mouse pointer 2 and the position where the mouse button is pressed is displayed. 1 until this rectangle 3 matches the area you want to scale. When you move the mouse pointer 2 and release the mouse button, a window 4 with the same size as the rectangle 3 is generated as shown in (C), and the area surrounded by the rectangle 3 is displayed at the magnification - magnification. Next, when the mouse pointer 2 is moved over the window frame 5 and the mouse button is pressed, and the mouse button is further moved while being pressed, the window frame 5 deforms to follow the mouse pointer 2. When the mouse button is released when the window frame reaches the desired size, the window 4 is enlarged to fit the window frame 5, and the display contents of the window 4 are similarly enlarged and displayed, as shown in (d).
同様の操作によりウィンドウ4を縮小し、表示内容を縮
小表示させることもできる。また、ウィンドウ4の縦横
比を一定に保つモードでは、ウィンドウ4の横方向の長
さを変えると、連動してウィンドウ4の縦方向の長さも
変わり縦横比を一定に保つ。ウィンドウ4の縦方向の長
さを変えた時も同様である。It is also possible to reduce the size of the window 4 and display the displayed contents in a reduced size by a similar operation. Further, in a mode in which the aspect ratio of the window 4 is kept constant, when the horizontal length of the window 4 is changed, the vertical length of the window 4 is also changed in conjunction with the change to keep the aspect ratio constant. The same applies when the length of the window 4 in the vertical direction is changed.
次に、このような操作環境をどのようにして実現するか
について述べる。第2図は、本発明を実現するシステム
の一例を示したものである。1はグラフィックディスプ
レイ、6はキーボード、7はマウス、14はフレームバ
ッファ、16は中央処理装置、17はシステムバス、1
8は主記憶である。このようなシステム上で実現する本
発明の機能ブロック図の一例が、第3図である。1はグ
ラフィックディスプレイ、6はキーボード、7はマウス
、8は入力制御部、9は主制御部、10は拡大縮小制御
部、11はウィンドウ制御部、12はその他の制御部、
13は描画処理部、13−1は図形描画部、13−2は
拡大縮小処理部、13−3はデータ転送部、14はフレ
ームバッファ、15はワークメモリである。入力制御部
8はキーボード6、マウス7等の入力装置からの入力を
、入力順に主制御部9へ送る部分である。主制御部9は
入力制御部8からの入力に応じて、制御を拡大縮小制御
部10、ウィンドウ制御部11、その他の制御部]2へ
渡す部分である。拡大縮小制御部10は本発明の中心と
なる拡大縮小処理を制御する部分である。ウィンドウ制
御部11はウィンドウの生成、消去、マウス入力に応じ
た拡大縮小を行なう。その他の制御部12は、拡大縮小
制御、ウィンドウ制御以外の制御を行う部分である。描
画処理部13は、拡大縮小制御部10、ウィンドウ制御
部11、その他の制御部12からの要求に応じて、フレ
ームバッファ14、ワークメモリ15に描画を行なう部
分である。描画処理部13は、図形描画部13−1、拡
大縮小処理部13−2゜データ転送部13−3を含む。Next, we will discuss how to realize such an operating environment. FIG. 2 shows an example of a system that implements the present invention. 1 is a graphic display, 6 is a keyboard, 7 is a mouse, 14 is a frame buffer, 16 is a central processing unit, 17 is a system bus, 1
8 is the main memory. FIG. 3 is an example of a functional block diagram of the present invention realized on such a system. 1 is a graphic display, 6 is a keyboard, 7 is a mouse, 8 is an input control section, 9 is a main control section, 10 is a scaling control section, 11 is a window control section, 12 is another control section,
13 is a drawing processing section, 13-1 is a graphic drawing section, 13-2 is a scaling processing section, 13-3 is a data transfer section, 14 is a frame buffer, and 15 is a work memory. The input control section 8 is a section that sends inputs from input devices such as the keyboard 6 and mouse 7 to the main control section 9 in the order of input. The main control section 9 is a section that passes control to the enlargement/reduction control section 10, window control section 11, and other control sections]2 in response to input from the input control section 8. The enlargement/reduction control section 10 is a part that controls enlargement/reduction processing, which is the core of the present invention. The window control unit 11 generates, deletes, and enlarges/reduces windows according to mouse input. The other control section 12 is a section that performs controls other than enlargement/reduction control and window control. The drawing processing section 13 is a section that performs drawing in the frame buffer 14 and work memory 15 in response to requests from the enlargement/reduction control section 10, the window control section 11, and other control sections 12. The drawing processing section 13 includes a graphic drawing section 13-1, a scaling processing section 13-2, and a data transfer section 13-3.
フレームバッファ14の内容はそのままデイスプレィ1
へ出力される。ワークメモリ15は、主記憶18上に獲
捕される。この機能ブロック構成による拡大縮小処理を
、拡大縮小制御部10の制御フローに注目して説明する
。拡大縮小制御部10の制御フローを第4図に示す。拡
大縮小処理の開始、及び、終了を示すきっかけは、本実
施例ではキー人力で与えられることにする。キーボード
6の拡大縮小処理開始キーが押されると、入力制御部8
を通して主制御部9へ伝えられ、主制御部9は拡大縮小
制御部10の拡大縮小制御19に起動をかける。すると
、拡大縮小制御19では、まず、19−1.19−2で
マウスボタンが押されるまでループをする。The contents of frame buffer 14 are displayed as is on display 1.
Output to. The work memory 15 is captured on the main memory 18. Expansion/reduction processing using this functional block configuration will be described with attention to the control flow of the expansion/reduction control section 10. The control flow of the enlargement/reduction control section 10 is shown in FIG. In this embodiment, the trigger indicating the start and end of the scaling process is given manually by a key. When the enlargement/reduction processing start key on the keyboard 6 is pressed, the input control section 8
is transmitted to the main control section 9 through the main control section 9, and the main control section 9 activates the enlargement/reduction control 19 of the enlargement/reduction control section 10. Then, the enlargement/reduction control 19 first performs a loop until the mouse button is pressed in steps 19-1 and 19-2.
次に、マウスボタンが押されたら19−3でその時のマ
ウスポインタ2の位置を保存し、19−4゜19−5.
19−6でマウスボタンかはなされるまで、19−3で
保存した位置と現在のマウスポインタ2の位置を対角線
とする矩形3の描画を描画処理部13内の図形描画部1
3−1に要求する。Next, when the mouse button is pressed, save the position of mouse pointer 2 at that time with 19-3, 19-4°19-5.
Until the mouse button is released in 19-6, the figure drawing unit 1 in the drawing processing unit 13 draws a rectangle 3 whose diagonals are the position saved in 19-3 and the current position of the mouse pointer 2.
Request 3-1.
そして、マウスボタンかはなされると、19−7で現在
のマウスポインタ2の位置を保存し、19−8で、19
−3、及び、19−7で保存した位置を対角線とするフ
レームバッファ14上の矩形の内容をワークメモリ15
へ転送する要求を描画処理部13内のデータ転送部13
−3に出す。そして、19−9でその矩形と同じ大きさ
のウィンドウ4の生成を、ウィンドウ制御部11へ要求
する。その後、19−10でワークメモリ15へ転送し
た矩形の内容をウィンドウ4へ転送する要求を、描画処
理部13内のデータ転送部13−3に出す。この時の状
態が第1図の(C)である。以後、拡大縮小処理に入る
。19−11.19−12で拡大縮小処理終了キーが入
力されたかどうかをチエツクし、入力されたならば19
−13でウィンドウ4の消去をウィンドウ制御部11へ
要求して拡大縮小制御19を終了する。入力されなかっ
たならば、19−14.19−15.19−16を繰り
返す。19−14ではウィンドウ4の大きさをウィンド
ウ制御部11へ問い合わせる。そして、19−15でウ
ィンドウサイズに変更があったかどうかをチエツクし、
変更がなければ19−16の処理をスキップする。19
−16では、ワークメモリ15へ転送した矩形の内容を
ウィンドウ4の大きさに拡大縮小してウィンドウ4へ転
送する要求を、描画処理部13内の拡大縮小処理部13
−2とデータ転送部13−3に出す。なお、ウィンドウ
4の縦横比を一定に保つモードでは。Then, when the mouse button is released, the current position of mouse pointer 2 is saved at 19-7, and at 19-8, the current position of mouse pointer 2 is saved.
The contents of the rectangle on the frame buffer 14 whose diagonal line is the position saved in steps 19-3 and 19-7 are stored in the work memory 15.
The data transfer unit 13 in the drawing processing unit 13 sends a request to transfer the request to
- Issue on 3. Then, in step 19-9, a request is made to the window control unit 11 to generate a window 4 having the same size as the rectangle. Thereafter, a request is issued to the data transfer unit 13-3 in the drawing processing unit 13 to transfer the contents of the rectangle transferred to the work memory 15 in step 19-10 to the window 4. The state at this time is shown in FIG. 1(C). After that, the enlargement/reduction process begins. 19-11. Check whether the enlargement/reduction process end key was input at 19-12, and if it was input, 19
At -13, the window control section 11 is requested to erase the window 4, and the enlargement/reduction control 19 is ended. If no input has been made, repeat steps 19-14, 19-15, and 19-16. In step 19-14, the window control unit 11 is inquired about the size of the window 4. Then, check if the window size has changed on 19-15,
If there is no change, skip the process 19-16. 19
-16, the enlargement/reduction processing unit in the drawing processing unit 13 sends a request to enlarge or reduce the contents of the rectangle transferred to the work memory 15 to the size of the window 4 and transfer it to the window 4.
-2 and sent to the data transfer unit 13-3. Note that in the mode that keeps the aspect ratio of window 4 constant.
ウィンドウサイズが変更された時にウィンドウ4の縦横
比を一定に保つように、ウィンドウサイズを再計算し、
ウィンドウサイズを再計算した大きさに変更する要求を
ウィンドウ制御部11に出す処理を追加する必要がある
。Recalculate the window size so that the aspect ratio of window 4 remains constant when the window size is changed,
It is necessary to add processing for issuing a request to the window control unit 11 to change the window size to the recalculated size.
本発明によれば、画面の部分拡大縮小をウィンドウの拡
大縮小と同じ操作で行なえるため操作が簡単であり、し
かも拡大縮小倍率をウィンドウサイズで決めるため倍率
が視覚的に決定でき、操作性の向上が図れる。According to the present invention, partial enlargement/reduction of a screen can be performed in the same way as enlarging/reducing a window, so the operation is simple.Moreover, since the enlargement/reduction magnification is determined by the window size, the magnification can be determined visually, which improves operability. Improvements can be made.
第1図は本発明の一実施例の拡大縮小操作の説明図、第
2図は本発明のハードウェアのブロック図、第3図は本
発明の一実施例の機能ブロック図、第4図はその中の拡
大縮小制御部の制御フローチャートである。
1・・・グラフィックディスプレイ、
・マウスデイ
ンタ、
3・・・拡大縮小領域を示す矩形、
4・・・ウィン
ドウ、
5・・・ウィンドウ枠。FIG. 1 is an explanatory diagram of the scaling operation of an embodiment of the present invention, FIG. 2 is a block diagram of the hardware of the present invention, FIG. 3 is a functional block diagram of an embodiment of the present invention, and FIG. It is a control flowchart of the enlargement/reduction control section therein. 1... Graphic display, ・Mouse deiner, 3... Rectangle indicating a scaling area, 4... Window, 5... Window frame.
Claims (1)
クディスプレイを含むグラフィック処理システムにおい
て、 前記グラフィックディスプレイに表示される図形データ
のうち拡大縮小領域を指定する手段と、前記図形データ
を拡大縮小する手段と、大きさを任意に変えられるウィ
ンドウとを設け、前記拡大縮小領域を指定する手段によ
り指定された前記図形データを前記ウィンドウの大きさ
に合わせて前記拡大縮小手段により拡大縮小して表示す
ることを特徴とする図形拡大縮小方式。 2、請求項1において、前記拡大縮小領域を指定する手
段により指定された領域の縦と横の長さと、前記ウィン
ドウの縦と横の長さから、縦方向と横方向独立に拡大縮
小倍率を求めてなる図形拡大縮小方式。 3、請求項1において、終了を指示するまでは前記ウィ
ンドウの大きさを継続して変更することにより、連続的
に前記図形データの大きさを変化させる図形拡大縮小方
式。 4、請求項1において、前記ウィンドウの縦横比を、前
記拡大縮小領域を指定する手段により指定された領域の
縦横比と等しく保つモードを設けた図形拡大縮小方式。[Scope of Claims] 1. In a graphic processing system including a central processing unit, a main memory, an input device, and a graphic display, means for specifying an enlargement/reduction area of graphic data displayed on the graphic display; and a window whose size can be arbitrarily changed, and the graphic data specified by the means for specifying the enlargement/reduction area is enlarged or reduced by the enlargement/reduction means to fit the size of the window. A figure enlargement/reduction method that is characterized by displaying images as follows. 2. In claim 1, the scaling factor is determined independently in the vertical and horizontal directions from the vertical and horizontal lengths of the area specified by the scaling area designation means and the vertical and horizontal lengths of the window. The figure scaling method that you are looking for. 3. The graphic enlarging/reducing method according to claim 1, wherein the size of the graphic data is continuously changed by continuously changing the size of the window until an instruction to terminate is given. 4. The graphic scaling method according to claim 1, further comprising a mode in which the aspect ratio of the window is kept equal to the aspect ratio of the area specified by the scaling area specifying means.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2247082A JPH04127196A (en) | 1990-09-19 | 1990-09-19 | Figure enlargement and reduction system |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2247082A JPH04127196A (en) | 1990-09-19 | 1990-09-19 | Figure enlargement and reduction system |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH04127196A true JPH04127196A (en) | 1992-04-28 |
Family
ID=17158164
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2247082A Pending JPH04127196A (en) | 1990-09-19 | 1990-09-19 | Figure enlargement and reduction system |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH04127196A (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US5696530A (en) * | 1994-05-31 | 1997-12-09 | Nec Corporation | Method of moving enlarged image with mouse cursor and device for implementing the method |
-
1990
- 1990-09-19 JP JP2247082A patent/JPH04127196A/en active Pending
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US5696530A (en) * | 1994-05-31 | 1997-12-09 | Nec Corporation | Method of moving enlarged image with mouse cursor and device for implementing the method |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JPS63213887A (en) | Editing control display system | |
| JPH0535685A (en) | Mixed number input display type computer | |
| JPH07295782A (en) | Screen display controlling method | |
| JPH04127196A (en) | Figure enlargement and reduction system | |
| JP3121360B2 (en) | Data creation apparatus and figure enlargement / reduction method using the same | |
| JP2692720B2 (en) | Enlargement / reduction display control method of window figure | |
| JPS6098489A (en) | Image data processor | |
| JPH04199371A (en) | image display device | |
| JPH04369717A (en) | Information processing method and device | |
| JPH076017A (en) | Hard copy output control method | |
| JPH1049338A (en) | Command button control system | |
| JP2872457B2 (en) | Image editing method and apparatus | |
| JPS61196289A (en) | document processing device | |
| JP2909076B2 (en) | Image processing method and apparatus | |
| JPH01303964A (en) | Image magnification and reduction indicating method | |
| JPS63104085A (en) | Display device | |
| JPH06301757A (en) | Image processing device | |
| JP2523472B2 (en) | Display screen control method | |
| JPH07262215A (en) | Document display device | |
| JPH09265375A (en) | Document processing method and apparatus | |
| JPH0793574A (en) | Data processing device and display control method | |
| JP2704038B2 (en) | Image data enlarged display position specification method | |
| JP3160436B2 (en) | Target information display device | |
| JPH03166657A (en) | Electronic filing device provided with enlargement/ reduction processing function of image data | |
| JP2000347777A (en) | Method for displaying data input picture |