JPH01303964A - Image magnification and reduction indicating method - Google Patents

Image magnification and reduction indicating method

Info

Publication number
JPH01303964A
JPH01303964A JP63132666A JP13266688A JPH01303964A JP H01303964 A JPH01303964 A JP H01303964A JP 63132666 A JP63132666 A JP 63132666A JP 13266688 A JP13266688 A JP 13266688A JP H01303964 A JPH01303964 A JP H01303964A
Authority
JP
Japan
Prior art keywords
box
reduction
diagonal
point
diagonal line
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
Application number
JP63132666A
Other languages
Japanese (ja)
Inventor
Susumu Tsuhara
津原 進
Ryota Sakai
良太 酒井
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.)
Hitachi Ltd
Original Assignee
Hitachi 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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP63132666A priority Critical patent/JPH01303964A/en
Publication of JPH01303964A publication Critical patent/JPH01303964A/en
Pending legal-status Critical Current

Links

Landscapes

  • Editing Of Facsimile Originals (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

PURPOSE:To execute the magnification/reduction in a similar figure with a simple operation by applying rubber band display in hatched lines in addition to the rubber band display of a conventional box form at the confirmation of a transfer destination area. CONSTITUTION:A mouse button is depressed at a point P1, the mouse button is kept pressing as it is and the mouse button is detached at a point P4. Similarly, the mouse button is depressed at a point Q1, the button is kept pressing as it is and the mouse button is detached at a point Q4. Thus, the magnification/ reduction destination image area is ensured as a rectangle drawn from the points Q1, Q4 as both diagonal lines and the magnified and reduced original image confirmed already is transferred to the part with magnification/reduction. In this case, the gradient of oblique lines Q1, Q2'-Q1, Q4 is selected equal to the gradient of an oblique line tying the points P1 and P4. In case of desiring to send the magnified/reduced image with the same longitudinal/lateral magnification/reduction rate, the mouse cursor has only to be placed on the oblique line.

Description

【発明の詳細な説明】 [産業上の利用分野コ 本発明は、スキャナなどで読み取られ、画面に表示され
るイメージの拡大・縮小を指示する方法に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a method for instructing the enlargement or reduction of an image read by a scanner or the like and displayed on a screen.

[従来の技術] 情報処理装置等の表示画面上に表示される図形等のイメ
ージを拡大・縮小する場合、一般に、拡大・縮小すべき
領域の指定を、キーボード上のカーソル移動キーを操作
して行ない、また、拡大・縮小率の指定もテンキー等を
操作して行なっていた6そのため、操作が煩雑で、作業
能率が悪いという問題があった。
[Prior Art] When enlarging or reducing an image such as a figure displayed on a display screen of an information processing device, the area to be enlarged or reduced is generally specified by operating cursor movement keys on a keyboard. In addition, the enlargement/reduction ratio was specified by operating a numeric keypad or the like6.Therefore, there was a problem that the operations were complicated and the work efficiency was low.

これに対して、特開昭60 249186号公報に開示
されるような、画像変倍指示方法が提案されている。
In response to this, an image scaling instruction method has been proposed as disclosed in Japanese Patent Laid-Open No. 60-249186.

この方法は、拡大・縮小比イメージを矩形領域で確定し
た後、その転送先領域の位置と大きさを、矩形領域で確
定することにより、拡大・縮小率を指示するようになっ
ていた。すなわち、マウス等のポインティングデバイス
を使用して、ボックス形のラバーバンド表示を行なうこ
とにより、拡大・縮小率を指示する。
In this method, after determining the enlargement/reduction ratio image in a rectangular area, the position and size of the transfer destination area are determined in the rectangular area, thereby instructing the enlargement/reduction ratio. That is, the enlargement/reduction ratio is indicated by displaying a box-shaped rubber band using a pointing device such as a mouse.

この方法によれば、拡大・縮小領域や拡大・縮小′Jl
算定に必要な座標をマウスで指示できるのア、キー操作
に比べて1作業能率が向上する利点がある。
According to this method, the enlargement/reduction area and the enlargement/reduction 'Jl
Being able to specify the coordinates necessary for calculation with a mouse has the advantage of improving one-work efficiency compared to key operations.

[発明が解決しようとする課題] ところで、イメージの拡大・縮小を行なう場合、元のイ
メージと相似であることが必要とされることが多い、し
かも、マウスの操作のみで、相似形の拡大・縮小を実行
できることが望まれる。
[Problems to be Solved by the Invention] Incidentally, when enlarging or reducing an image, it is often required that the image be similar to the original image, and it is possible to enlarge or reduce similar images simply by operating the mouse. It is desirable to be able to perform reductions.

しかし、上記従来技術は、イメージを、縦、横向−の拡
大・縮小率で拡大もしくは縮小すること、すなわら、相
似形での拡大・縮小することについての配慮がされてお
らず、この場合には、拡大・縮小元イメージの横幅と高
さを計数しておき、このデータに基づいて、拡大・縮小
転送すべき、転送先領域の横幅と高さを定め、その後、
実際に。
However, the above-mentioned conventional technology does not take into consideration the scaling up or reduction of images in vertical and horizontal scaling ratios, that is, the scaling up and down of similar shapes. To do this, count the width and height of the enlarged/reduced source image, and based on this data, determine the width and height of the transfer destination area to be enlarged/reduced.
actually.

拡大・縮小元イメージとその転送先領域を指示する必要
があった。従って、操作に手数がかかり、イメージの拡
大・縮小指示を効率、よく行なうことができないという
問題があった。
It was necessary to specify the source image to be enlarged/reduced and the area to which it should be transferred. Therefore, there is a problem in that the operation is time-consuming and instructions for enlarging or reducing an image cannot be given efficiently and well.

本発明の目的は、上記従来技術の問題点を解消して、イ
メージについて、縦横が同一の拡大・縮小率である拡大
・縮小、すなわち、相似形での拡大・縮小を、簡単な操
作で実行できる操作性のよいイメージ拡大・縮小指示方
法を提供することにある。
An object of the present invention is to solve the above-mentioned problems of the prior art, and to perform enlargement/reduction of an image with the same enlargement/reduction ratio in the vertical and horizontal directions, that is, enlargement/reduction with similar shapes, by a simple operation. The purpose of the present invention is to provide an easy-to-operate method for instructing image enlargement/reduction.

[課題を解決するための手段] 上記目的は、拡大・縮小元イメージを確定した後、引き
続き行なう、転送先領域確定時に、従来のボックスのラ
バーバンド表示に加えて、斜線のラバーバンド表示を行
なうことにより達成される。
[Means for solving the problem] The above purpose is to display a diagonal rubber band in addition to the conventional box rubber band display when determining the transfer destination area after determining the enlargement/reduction source image. This is achieved by

すなわち1本発明は1画面に表示されたイメージの一部
分の、他の一部分への拡大・縮小転送を指示する方法に
おいて、転送先矩形領域を確定する時に、ボックスのラ
バーバンド表示に加えて、先に確定済の拡大・縮小元矩
形領域の対角線のこう配と等しいこう配で、上記ボック
スの第一対角点を始点として、上記ボックス内に斜線の
ラバーバンド表示を行なうことを特徴とする。
In other words, in a method for instructing transfer of enlargement/reduction of one part of an image displayed on one screen to another part, the present invention provides a method in which, in addition to displaying a rubber band of a box, when determining a transfer destination rectangular area, The present invention is characterized in that a diagonal rubber band is displayed within the box starting from the first diagonal point of the box, with a gradient equal to the gradient of the diagonal line of the rectangular area to be enlarged/reduced which has already been determined.

[作用] 上記ラバーバンド表示すべき斜線のこう配は、先に確定
済の拡大・縮小イメージの両対角点を結ぶ斜線のこう配
と等しくとられる。従って、縦、横、同一の拡大・縮小
率としたい場合は、上記ラバーバンド表示される斜線に
沿って、所望の大きさに、転送先領域を設定すればよく
、効率よく、拡大・縮小指示が行なえる。
[Operation] The gradient of the diagonal line to be displayed on the rubber band is set equal to the gradient of the diagonal line connecting both diagonal points of the previously determined enlarged/reduced image. Therefore, if you want to have the same enlargement/reduction ratio both vertically and horizontally, all you have to do is set the transfer destination area to the desired size along the diagonal line displayed on the rubber band above, and you can efficiently specify the enlargement/reduction ratio. can be done.

もっとも、イメージを非相似形で拡大・縮小することも
勿論可能である。この場合は、ボックスのラバーバンド
表示の対角線を、斜線のラバーバンド表示と一致させな
ければよい。すなわち、所望の位置にボックスのラバー
バンド表示を行なえばよい。
Of course, it is also possible to enlarge or reduce the image in a non-similar manner. In this case, the diagonal line of the rubber band display of the box need not coincide with the diagonal line of the rubber band display. In other words, a box may be displayed as a rubber band at a desired position.

[実施例〕 以下、本発明の一実施例について図面を参照して説明す
る。
[Example] Hereinafter, an example of the present invention will be described with reference to the drawings.

第】図は1本発明の全体構成を示すブロック図である。FIG. 1 is a block diagram showing the overall configuration of the present invention.

第1図において、VRAM7000には、拡大・縮小す
べきイメージが記憶されている。ボックス描画部500
0は、矩形の両対角点の座標を指定されて、VRAM7
000へ、ボックスを描画する部分であり、通常、マウ
スなどのポインティングデバイスの動きに追従して、ボ
ックスのラバーバンド表示を行なう。
In FIG. 1, an image to be enlarged or reduced is stored in a VRAM 7000. Box drawing section 500
0 is specified by the coordinates of both diagonal points of the rectangle, and is stored in VRAM7.
000 is the part where a box is drawn, and the box is usually displayed in a rubber band following the movement of a pointing device such as a mouse.

斜線描画部5oooは、斜線の始終点座標を指定されて
、VRAM7000へ、斜線を描画する部分であり、上
記と同様、マウスなどのポインティングデバイスの動き
に追従して、ボックス内で斜線のラバーバンド表示を行
なう。
The diagonal line drawing unit 5ooo is a part that draws a diagonal line in the VRAM 7000 when the start and end point coordinates of the diagonal line are specified, and similarly to the above, it follows the movement of a pointing device such as a mouse and draws a diagonal line rubber band within a box. Perform display.

座標入力部4000は1通常、マウスなどのポインティ
ングデバイスの画面(VRAM)上の位置や、ボタンの
オン・オフ状態などを入力する部分である。VRAM7
000上でのカーソルパターンの移動処理も、この部分
で行なう。
The coordinate input section 4000 is a section for inputting the position of a pointing device such as a mouse on the screen (VRAM), the on/off state of a button, etc. VRAM7
Processing for moving the cursor pattern on 000 is also performed in this part.

拡大・縮小光確定部2000は、拡大・縮小元のイメー
ジの位置、大きさ、を確保する部分である。
The enlargement/reduction light determining unit 2000 is a part that secures the position and size of the image to be enlarged/reduced.

拡大・縮小光確定部3000は、先に、拡大・縮小光確
定部2000で確定したイメージの、拡大・縮小転送先
領域の位置および大きさを確定する部分である。
The enlargement/reduction light determining unit 3000 is a part that determines the position and size of the enlargement/reduction transfer destination area of the image previously determined by the enlargement/reduction light determination unit 2000.

第2図に、VRAM7000上にラバーバンド描画され
るボックスおよび斜線の詳細を示す。
FIG. 2 shows details of the boxes and diagonal lines drawn on the VRAM 7000 as rubber bands.

点P工でマウスボタンを押し、そのままマウスを引き回
わして、点P4でマウスボタンを離した時、拡大・縮小
元イメージ領域は、点P1とP、を両対角点とする矩形
として確定される。ボックスのラバーバンド表示は、点
P工より開始され、Pz+P、を経由して1点P、で終
了する。
When you press the mouse button at point P, move the mouse around, and release the mouse button at point P4, the image area to be enlarged/reduced is determined as a rectangle with points P1 and P as both diagonal points. be done. The rubber band display of the box starts from point P, passes through Pz+P, and ends at point P.

同様に、点Q工でマウスボタンを押し、そのまま引き回
わしで、点Q4でマウスボタンを離した時、拡大・縮小
元イメージ領域は、点Q工とQ、を両対角点とする矩形
として確定され、先に確定済みの拡大・縮小元イメージ
(点P工とP、を両対角点とする矩形の内部に存在する
イメージ)が、この部分(点Q工とQ4を両対角点とす
る矩形の内部)へ拡大・縮小転送される。
Similarly, when you press the mouse button at point Q, drag it around, and release the mouse button at point Q4, the image area to be enlarged/reduced will be a rectangle with points Q and Q as both diagonal points. , and the previously determined enlarged/reduced original image (the image that exists inside the rectangle with points P and P as both diagonal points) is The image is enlarged/reduced and transferred to the inside of the rectangle that is the point.

ボックスおよび斜線のラバーバンド表示は、点Q1より
開始され、Q、 (ボックス)、Q、’(斜線)Q3(
ボックス)、Q、’(斜線)、を経由して、点Q、(ボ
ックス)、Q、’(斜線)で終了する。この時、斜線Q
、Q、’ 、Q、Q、’ 、Q工Q、′のこう配は、点
P1とP4とを結ぶ斜線のこう配と等しくとられる。
The box and diagonal rubber band display starts from point Q1, Q, (box), Q,' (diagonal line) Q3 (
box), Q,′ (hatched), and ends at the point,Q,(box),Q,′(hatched). At this time, the diagonal line Q
,Q,',Q,Q,' ,The gradient of Q,' is taken to be equal to the gradient of the diagonal line connecting points P1 and P4.

拡大・縮小元イメージを、縦、横、同一の拡大・縮小率
で、拡大・縮小転送したい時、マウスカーソルをこの斜
線上に位置付ければよい。すなわち、この斜線は、縦、
横、同一の拡大・縮小率で拡大・縮小転送する時の補助
線の役目を果たす。
When you want to enlarge or reduce a source image at the same enlargement/reduction ratio both vertically and horizontally, you can simply position the mouse cursor on this diagonal line. In other words, this diagonal line is vertical,
Horizontally, it serves as an auxiliary line when enlarging/reducing data at the same enlargement/reduction ratio.

新ボックス座標値レジスタ4100、旧ボックス座標値
レジスタ4200は、VRAM7000上にラバーバン
ド描画さ九る新、旧ボックスの位置、大きさを保持する
ためのレジスタであり、以下の項目で構成される。
The new box coordinate value register 4100 and the old box coordinate value register 4200 are registers for holding the positions and sizes of the new and old boxes drawn on the rubber band on the VRAM 7000, and are composed of the following items.

(a)第一対角点x、y座標値 (b)第二対角点Xs’!座標値 新斜線座標値レジスタ4300、旧斜線座標値レジスタ
4400は、VRAM7000上にラバーバンド描画さ
れる新、旧斜線の、始終点座標を保持するためのレジス
タであり、以下の項目で構成される。
(a) First diagonal point x, y coordinate values (b) Second diagonal point Xs'! Coordinate values The new diagonal line coordinate value register 4300 and the old diagonal line coordinate value register 4400 are registers for holding the start and end point coordinates of the new and old diagonal lines drawn on the rubber band on the VRAM 7000, and are composed of the following items. .

(c)始点X+ y座標値 (d)終点Xyy座標値 制御部1000は、拡大・縮小光確定部2000、拡大
・縮小光確定部3000を制御する部分である。
(c) Start point X+y coordinate value (d) End point Xyy coordinate value The control section 1000 is a section that controls the enlargement/reduction light determination section 2000 and the enlargement/reduction light determination section 3000.

制御部1000の処理フローを第3図に示す。FIG. 3 shows the processing flow of the control unit 1000.

ブロック1100.1200で拡大・縮小光確定部20
00、拡大・縮小光確定部3000を順次起動する。
Enlargement/reduction light determination unit 20 in blocks 1100 and 1200
00, the enlargement/reduction light determination unit 3000 is sequentially activated.

拡大・縮小光確定部2000の処理フローを第4図に示
す。
FIG. 4 shows the processing flow of the enlargement/reduction light determination unit 2000.

ブロック20Lot−、VRAM7000上にボックス
が有るか否かの状態を管理するボックス有無フラグをオ
フ(無し)に初期セットする。
In block 20Lot-, a box presence/absence flag that manages the state of whether or not a box exists on the VRAM 7000 is initially set to off (absent).

つぎに、ブロック2020で、座標入力部4000を起
動して、マウスボタンの状態を取り込む。
Next, in block 2020, the coordinate input unit 4000 is activated to capture the state of the mouse button.

次に、ブロック203oで、先に取り込んだボタンの状
態を判定し、ボタンが、まだ押されていない(ボタン・
オフ)場合、ブロック2020へ戻り、ボタンが押され
るのを待つ。また、ボタンが押されている(ボタン・オ
ン)場合、ブロック2040へ進み、座標入力部400
0を起動して。
Next, block 203o determines the state of the previously captured button and determines whether the button has not yet been pressed (button
off), return to block 2020 and wait for a button to be pressed. If the button is pressed (button on), the process advances to block 2040 and the coordinate input section 400
Start 0.

カーソルの現在の位置を取り込み、新ボックス座標値レ
ジスタ4100の、第一対角点X、y座標座標値上ット
する。
The current position of the cursor is taken in and the coordinate values of the first diagonal point X, y coordinates are added to the new box coordinate value register 4100.

つぎに、ブロック2050で、ボックス有無フラグを調
べ、フラグがオン、すなわち、ボックス有りの時、その
ボックスを消去すべく、ブロック2060で、新ボック
ス座標値レジスタ4100の内容を、旧ボックス座標値
レジスタ4200へ転送し、ブロック2070で、ボッ
クス描画部500oを起動する。ボックス描画は、XO
R演算により行なうので、旧ボックスは消去される。
Next, in block 2050, the box presence/absence flag is checked, and when the flag is on, that is, a box is present, in order to erase the box, in block 2060, the contents of the new box coordinate value register 4100 are transferred to the old box coordinate value register. 4200, and in block 2070, the box drawing unit 500o is activated. Box drawing is XO
Since this is done by R calculation, the old box is erased.

また、ブロック2o50での判定の結果、ボックス有無
フラグがオフ、すなわち、ボックス無しの時、ブロック
2060.2070での旧ボックス消去処理は省略し、
ブロック2080へ進んで、新ボックス表示処理を行な
う。
Further, as a result of the determination in block 2o50, when the box presence/absence flag is off, that is, there is no box, the old box deletion process in blocks 2060 and 2070 is omitted,
Proceeding to block 2080, new box display processing is performed.

まず、ブロック2080で、座標入力部4000を起動
して、カーソルの現在の位置を取り込み。
First, at block 2080, the coordinate input unit 4000 is activated to capture the current position of the cursor.

新ボックス座標値レジスタ4100の第二対角点X+ 
y座標値上にセットする。つぎに、ブロック2090で
、ボックス描画部5000を起動して、新ボックス座標
値レジスタ4100の内容が示す位置に新ボックスを描
画する。つぎに、ブロック2100で、ボックス有無フ
ラグをオン、すなわちボックス有りとする。
Second diagonal point X+ of new box coordinate value register 4100
Set on the y coordinate value. Next, in block 2090, the box drawing unit 5000 is activated to draw a new box at the position indicated by the contents of the new box coordinate value register 4100. Next, in block 2100, the box presence/absence flag is turned on, that is, a box is present.

つぎに、ブロック2110で座標入力部4. OOOを
起動し、ブロック2120で、マウスボタンの状態を調
べる。その結果、ボタンオン、すなわち、マウスボタン
が押されている状態ならば、ブロック2050へ戻り、
上記と同様の動作を繰り返す、また、ボタンオフすなわ
ち、マウスボタンが離されている状態ならば、ブロック
213oへ進み、新ボックス座標値レジスタ4100の
内容を、旧ボックス座標値レジスタ4200へ転送、ブ
ロック2140で、旧ボックス座標値レジスタ4200
の内容が示す位置に、ボックスをXOR演算により描画
して、旧ボックスを消去する。
Next, in block 2110, the coordinate input unit 4. Activate OOO and check the state of the mouse buttons at block 2120. As a result, if the button is on, that is, the mouse button is pressed, the process returns to block 2050;
Repeat the same operation as above, and if the button is off, that is, the mouse button is released, proceed to block 213o, transfer the contents of the new box coordinate value register 4100 to the old box coordinate value register 4200, and block 2140, old box coordinate value register 4200
A box is drawn at the position indicated by the contents of , using an XOR operation, and the old box is erased.

最後に、座標入力部4000を起動して、カーソルの現
在の位置を取り込み、新ボックス座標値レジスタ41o
Oの第二対角点x、y座標座標値上ットする。
Finally, start the coordinate input unit 4000, import the current position of the cursor, and register the new box coordinate value register 41o.
Add the coordinate values of the second diagonal point x and y of O.

このようにして、新ボックス座標値レジスタ4100に
は、最終的に確定した、拡大・縮小元イメージ領域の第
一、第二対角点x、y座標値が保持される。
In this way, the new box coordinate value register 4100 holds the finally determined x and y coordinate values of the first and second diagonal points of the enlargement/reduction source image area.

拡大・縮小光確定部3000の処理フローを第5図に示
す。
FIG. 5 shows the processing flow of the enlargement/reduction light determination unit 3000.

ブロック3010で、先に確定した、拡大・縮小元イメ
ージ領域の第一、第二対角点X+ y座標値をもとに、
その対角線のこう配aを計算する。
In block 3010, based on the previously determined X+y coordinate values of the first and second diagonal points of the image area to be enlarged/reduced,
Calculate the gradient a of the diagonal.

つぎに、ブロック3020でボックス有無フラグをオフ
に初期セットする。
Next, in block 3020, the box presence/absence flag is initially set to off.

次に、ブロック3030で座標入力部400゜を起動し
て、マウスボタンの状態を取り込む、また、ブロック3
040で、ボタンの状態を判定し、ボタンがオフの場合
、ブロック3030へ戻り、ボタンが押されるのを待つ
、また、ボタンがオンの場合、ブロック3050へ進み
、座標入力部40oOを起動して、カーソルの現在の位
置を取り込み、新ボックス座標値レジスタ4100の第
一対角点)C+1座標値欄と新斜線座標値レジスタ43
00の始点X+ y座標値にセットする。
Next, in block 3030, the coordinate input unit 400° is activated to capture the state of the mouse button.
At 040, the state of the button is determined. If the button is off, the process returns to block 3030 and waits for the button to be pressed. If the button is on, the process proceeds to block 3050 and starts the coordinate input unit 40oO. , takes the current position of the cursor, and writes the first diagonal point of the new box coordinate value register 4100) to the C+1 coordinate value column and the new diagonal line coordinate value register 43.
Set to the starting point X+y coordinate value of 00.

つぎに、ブリック3060でボックス有無フラグを調べ
、フラグがオン、すなわち、ボックス有りの時、そのボ
ックスを消去すべく、ブロック3070で新ボックス座
標値レジスタ410oの内容を、旧ボックス座標値レジ
スタ4200へ転送し、ブロック3080でボックス描
画部soo。
Next, the box presence/absence flag is checked in block 3060, and when the flag is on, that is, a box is present, the contents of the new box coordinate value register 410o are transferred to the old box coordinate value register 4200 in block 3070 in order to erase the box. Then, in block 3080, the box drawing unit soo is transferred.

を起動する。ボックス描画はXOR演算により行なうの
で、旧ボックスは消去される。
Start. Since box drawing is performed by XOR operation, the old box is erased.

また、ブロック3090で新斜線座標値レジスタ430
0の内容を、旧斜線座標値レジスタ4400へ転送し、
ブロック3100で斜線描画部6000を起動する。斜
線描画はXOR演算により行なうので、旧斜線は消去さ
れる。
Also, in block 3090, the new diagonal line coordinate value register 430
Transfer the contents of 0 to the old diagonal line coordinate value register 4400,
At block 3100, the diagonal line drawing unit 6000 is activated. Since diagonal line drawing is performed by XOR operation, the old diagonal lines are erased.

また、ブロック3060での判定の結果、ボックス有無
フラグがオフすなわち、ボックス無しの時、ブロック3
070,3080,3090,3100、での旧ボック
スおよび旧斜線消去処理は省略し、ブロック3110へ
進んで、新ボックスおよび新斜線の表示処理を行なう。
Further, as a result of the determination in block 3060, when the box presence/absence flag is off, that is, there is no box, block 3
The old box and old diagonal line erasing processes at 070, 3080, 3090, and 3100 are omitted, and the process proceeds to block 3110, where a new box and new diagonal line display process is performed.

まず、ブロック3110で座標入力部4000を起動し
て、カーソルの現在の位置を取り込み、新ボックス座標
値レジスタ410oの第二対角点XtV座標座標値上ッ
トする。つぎに、ブロック3120で、ボックス描画部
5000を起動して、新ボックス座標値レジスタ410
0の内容が示す位置に新ボックスを描画する。また、ブ
ロック3130で、斜線の終点座標X、、yaを次式に
より求め、新斜線座標値レジスタ4300の終点X。
First, in block 3110, the coordinate input unit 4000 is activated to take in the current position of the cursor, and increment the coordinate value of the second diagonal point XtV coordinate value of the new box coordinate value register 410o. Next, in block 3120, the box drawing unit 5000 is activated and the new box coordinate value register 410 is
Draw a new box at the position indicated by the content of 0. Further, in block 3130, the end point coordinates X, , ya of the diagonal line are determined by the following equation, and the end point X of the new diagonal line coordinate value register 4300 is obtained.

y座標値上にセットする。Set on the y coordinate value.

X*=X@+ (Xaaz  Xmtj   ”’ (
1)y、=y、+a X (Xmsx  Xmta) 
”’ (2)ここに+ Xhr ym+ av Xm1
oおよびX、6.は次ぎの通りである。
X*=X@+ (Xaaz Xmtj ”' (
1) y, = y, +a X (Xmsx Xmta)
”' (2) Here + Xhr ym+ av Xm1
o and X, 6. is as follows.

x、 :新斜線座標値レジスタの始点x、y座標座標値
内容(X座標) y、 :新斜線座標値レジスタの始点X、y座標座標値
内容(X座標) a  :すでに確定済みの拡大・縮小光イメージ領域の
第一対角点と第二対角点とを結ぶ斜線のこう配。
x, : Contents of the starting point x, y coordinates of the new diagonal coordinate value register (X coordinate) y, : Contents of the starting point X, y coordinates of the new diagonal coordinate value register (X coordinate) a: Already confirmed enlargement/ Gradient of the diagonal line connecting the first diagonal point and the second diagonal point of the reduced light image area.

Xo、:新ボックス座標値レジスタの第一対角点X+’
/座標値欄の値上(X座標) X、、、:新ボックス座標値レジスタの第二対角点Xr
 y座標上欄の内容(X座標) 引き続き新斜線座標値レジスタ4300の内容が示す始
・終点位置に新斜線を描画する。この時、描画許可領域
(Clipping Rectangle)を、新ボッ
クス座標値レジスタの内容が示す値にセットし、新斜線
を新ボックス内にのみ描画する。つぎに。
Xo,: first diagonal point X+' of new box coordinate value register
/Upper value in coordinate value field (X coordinate) X,,,: Second diagonal point Xr of new box coordinate value register
Contents of the y-coordinate upper column (X-coordinate) Subsequently, a new diagonal line is drawn at the start and end point positions indicated by the contents of the new diagonal line coordinate value register 4300. At this time, the drawing permission area (Clipping Rectangle) is set to the value indicated by the contents of the new box coordinate value register, and the new diagonal line is drawn only within the new box. next.

ブロック3140で、ボックス有無フラグをオン、すな
わち、ボックス有りとする。
At block 3140, the box presence/absence flag is turned on, that is, the box is present.

つぎに、ブロック3150で座標入力部4000を起動
して、現在のマウスボタンの状態を取り込む。また、ブ
ロック3160で、マウスボタンの状態を調べる。その
結果、ボタン・オンすなわち、マウスボタンが押されて
いる状態ならば、ブロック3060へ戻り、′上記と同
様の動作を繰り返す、また、ボタン・オフすなわち、マ
ウスボタンが離されている状態ならば、ブロック317
0へ進み、新ボックス座標値レジスタ4100の内容を
、旧ボックス座標値レジスタ4200へ転送、ブロック
3180で旧ボックス座標値レジスタ4200の内容が
示す位置に、ボックスをXOR演算により描画して、旧
ボックスを消去する。
Next, at block 3150, the coordinate input unit 4000 is activated to capture the current mouse button state. Block 3160 also checks the state of the mouse buttons. If the result is a button on, that is, the mouse button is pressed, the process returns to block 3060 and repeats the same operation as above, and if the button is off, that is, the mouse button is released. , block 317
0, and transfers the contents of the new box coordinate value register 4100 to the old box coordinate value register 4200. In block 3180, a box is drawn by XOR operation at the position indicated by the contents of the old box coordinate value register 4200, and the old box Erase.

ブロック3190,3200.でも同様に、新斜線座標
値レジスタ4300の内容を、旧斜線座標値レジスタ4
400へ転送、旧斜線座標値レジスタ4400の内容が
示す位置に、斜線をXOR演算により描画して、旧斜線
を消去する。
Blocks 3190, 3200. Similarly, the contents of the new diagonal coordinate value register 4300 are changed to the old diagonal coordinate value register 4300.
4400, a diagonal line is drawn at the position indicated by the contents of the old diagonal line coordinate value register 4400 by an XOR operation, and the old diagonal line is erased.

最後に、座標入力部3210を起動して、カーソルの現
在の位置を取り込み、新ボックス座標値レジスタ410
0の第二対角点Xr’J座標値座標上欄トする。
Finally, start the coordinate input unit 3210, import the current position of the cursor, and enter the new box coordinate value register 410.
The second diagonal point Xr'J coordinate value of 0 is shown in the upper column.

このようにして、新ボックス座標値レジスタ4100に
は、最終的に確定した、拡大・縮小光イメージ領域の第
一、第二対角点X13’座標値が保持される。
In this way, the new box coordinate value register 4100 holds the finally determined coordinate values of the first and second diagonal points X13' of the enlarged/reduced optical image area.

以上が、本発明の詳細な説明であるが、本発明は、上記
実施例に限るものではないことは、いうまでもない。
The above is a detailed explanation of the present invention, but it goes without saying that the present invention is not limited to the above embodiments.

[発明の効果] 以上説明した如く、本発明によれば、イメージを拡大・
縮小して転送する場合に、その転送先領域確定時に行な
うボックスのラバーバンド表示に加えて、斜線のラバー
バンド表示も同時に行ない、斜線のこう配は、先に確定
済みの拡大・縮小光矩形領域の対角線のこう配に等しく
設定されているので、縦、横、同一の拡大・縮小率で、
拡大・縮小したい時は、上記斜線に沿って、転送先領域
を確定すればよく、操作性が向上するという効果がある
[Effects of the Invention] As explained above, according to the present invention, images can be enlarged and
When reducing and transferring, in addition to displaying a rubber band of a box when confirming the transfer destination area, a rubber band of diagonal lines is also displayed at the same time. Since it is set equal to the slope of the diagonal line, the same enlargement/reduction ratio is used both vertically and horizontally.
When you want to enlarge or reduce the size, you only have to decide the transfer destination area along the diagonal lines, which has the effect of improving operability.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図は本発明の全体構成を示すブロック図、第2図は
VRAM上にラバーバンド描画されるボックスおよび斜
線の詳細説明図、第3図は制御部1000の処理を示す
フローチャート、第4図は拡大・縮小光確定部2000
の処理を示すフローチャート、第5図は拡大・縮小光確
定部3000の処理を示すフローチャートである。 1000・・・制御部、 2oom・・・拡大・縮小光確定部、 3000・・・拡大・縮小光確定部、 4000・・・座標入力部、 4100・・・新ボックス座標値レジスタ、4200・
・・旧ボックス座標値レジスタ、4300・・・新斜線
座標値レジスタ、4400・・・旧斜線座標値レジスタ
。 5000・・・ボックス描画部、 6000・・・斜線描画部、
FIG. 1 is a block diagram showing the overall configuration of the present invention, FIG. 2 is a detailed explanatory diagram of boxes and diagonal lines drawn on a rubber band on VRAM, FIG. 3 is a flowchart showing the processing of the control unit 1000, and FIG. 4 is the enlargement/reduction light determination section 2000
FIG. 5 is a flowchart showing the processing of the enlargement/reduction light determining section 3000. 1000...Control unit, 2oom...Enlargement/reduction light confirmation unit, 3000...Enlargement/reduction light confirmation unit, 4000...Coordinate input unit, 4100...New box coordinate value register, 4200...
...Old box coordinate value register, 4300...New diagonal line coordinate value register, 4400...Old diagonal line coordinate value register. 5000...Box drawing section, 6000...Diagonal line drawing section,

Claims (1)

【特許請求の範囲】 1、画面に表示されたイメージの一部分の、他の一部分
への拡大・縮小転送を指示する方法において、転送先矩
形領域を確定する時に、ボックスのラバーバンド表示に
加えて、先に確定済の拡大・縮小元矩形領域の対角線の
こう配と等しいこう配で、上記ボックスの第一対角線を
始点として、上記ボックス内に斜線のラバーバンド表示
を行なうことを特徴とするイメージ拡大・縮小指示方法
。 2、拡大・縮小元矩形領域の対角線の始点と終点の座標
から、対角線のこう配を算出する請求項1記載のイメー
ジ拡大・縮小指示方法。 3、転送先矩形領域を確定する時に、ボックスのラバー
バンド表示の対角線と、斜線のラバーバンド表示と一致
させることを特徴とする請求項1または2記載のイメー
ジ拡大・縮小指示方法。
[Claims] 1. In a method for instructing enlargement/reduction transfer of a part of an image displayed on a screen to another part, when determining a transfer destination rectangular area, in addition to displaying a rubber band of a box, , an image enlargement/reduction method characterized by displaying a diagonal rubber band within the box, starting from the first diagonal line of the box, with a gradient equal to the gradient of the diagonal of the previously confirmed enlargement/reduction source rectangular area; Reduction instruction method. 2. The image enlargement/reduction instruction method according to claim 1, wherein the gradient of the diagonal line is calculated from the coordinates of the starting point and end point of the diagonal line of the rectangular area to be enlarged/reduced. 3. The image enlargement/reduction instruction method according to claim 1 or 2, wherein when determining the transfer destination rectangular area, the diagonal line of the rubber band display of the box is made to match the diagonal line of the rubber band display of the diagonal line.
JP63132666A 1988-06-01 1988-06-01 Image magnification and reduction indicating method Pending JPH01303964A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63132666A JPH01303964A (en) 1988-06-01 1988-06-01 Image magnification and reduction indicating method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63132666A JPH01303964A (en) 1988-06-01 1988-06-01 Image magnification and reduction indicating method

Publications (1)

Publication Number Publication Date
JPH01303964A true JPH01303964A (en) 1989-12-07

Family

ID=15086656

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63132666A Pending JPH01303964A (en) 1988-06-01 1988-06-01 Image magnification and reduction indicating method

Country Status (1)

Country Link
JP (1) JPH01303964A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2007105542A1 (en) * 2006-03-10 2007-09-20 Pioneer Corporation Map display device and map display method
JP2013089175A (en) * 2011-10-21 2013-05-13 Furuno Electric Co Ltd Image display device, image display program, and image display method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2007105542A1 (en) * 2006-03-10 2007-09-20 Pioneer Corporation Map display device and map display method
JP2013089175A (en) * 2011-10-21 2013-05-13 Furuno Electric Co Ltd Image display device, image display program, and image display method

Similar Documents

Publication Publication Date Title
JP2972510B2 (en) Document creation device
JPH01250129A (en) Display screen operating system
JPH04142661A (en) Information processor
JPH01303964A (en) Image magnification and reduction indicating method
JPH06103013A (en) Method for enlarging/reducing window
JP3121360B2 (en) Data creation apparatus and figure enlargement / reduction method using the same
JPH04319775A (en) Cad system
JPS644189B2 (en)
JPH0944428A (en) Network image processing system
JPH06242916A (en) Overlap display system
JPH04369717A (en) Information processing method and its device
JPS61196289A (en) Document processor
JP2555082B2 (en) Character display change device
JPH0793574A (en) Data processor and display controlling method
JPH05298377A (en) Information processor utilising input history
JPH0245878A (en) Interactive cad system
JPH05143052A (en) Document preparation assisting system
JP3184048B2 (en) Oblique line drawing device
JPH04127196A (en) Figure enlargement and reduction system
JPS62279475A (en) Graphic processor
JPH035816A (en) Multiwindow display device
JPS62187965A (en) Document editing device
JPH06274587A (en) Graphic editing method
JPH07160678A (en) Ruled line input device
JPS63276662A (en) Document editing system