JP3582866B2 - Image display device - Google Patents

Image display device Download PDF

Info

Publication number
JP3582866B2
JP3582866B2 JP25648594A JP25648594A JP3582866B2 JP 3582866 B2 JP3582866 B2 JP 3582866B2 JP 25648594 A JP25648594 A JP 25648594A JP 25648594 A JP25648594 A JP 25648594A JP 3582866 B2 JP3582866 B2 JP 3582866B2
Authority
JP
Japan
Prior art keywords
image
display
enlargement
input
reduction
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 - Fee Related
Application number
JP25648594A
Other languages
Japanese (ja)
Other versions
JPH08123973A (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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP25648594A priority Critical patent/JP3582866B2/en
Publication of JPH08123973A publication Critical patent/JPH08123973A/en
Application granted granted Critical
Publication of JP3582866B2 publication Critical patent/JP3582866B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Processing Or Creating Images (AREA)
  • Image Processing (AREA)
  • Controls And Circuits For Display Device (AREA)

Description

【0001】
【産業上の利用分野】
本発明はイメージ表示装置に関し、特に画面上に表示されているイメージの拡大または縮小および再表示の処理を連続して行うイメージ表示装置に関する。
【0002】
イメージスキャナによって取り込まれた資料がネットワークなどを通じて交換されるようになり、これに伴ってそのような資料を読み易い形で表示するためのアプリケーションの開発が進められている。たとえば、新聞をイメージスキャナによってページ単位で取り込んでイメージデータ化した場合、表示画面にページ全体を表示させたのでは、文字が小さすぎて内容を読むことができない。このため、通常は、該当する記事の部分を拡大して表示させるようにしている。
【0003】
【従来の技術】
図8は従来のイメージの拡大方法の一例を示す図である。たとえば、表示画面にイメージ1の全体が表示されているとし、そのイメージ1の中に、表示対象部2があるとする。ここで、イメージ1の中の表示対象部2付近を詳細に表示させるようにするには、イメージ1の拡大処理が行われる。拡大処理はイメージ1の原点とする左上の位置が固定されていて、この位置から右方向および下方向にイメージ1が広がるように拡大される。
【0004】
拡大されたイメージ1aはイメージ1の原点から拡大されているので、表示対象部2aも拡大される方向に移動しながら拡大されていく。このように、表示対象部2の詳細を表示させるためにイメージ1全体が拡大されると、表示対象部2aは表示対象部2が表示されていた位置とは異なる位置に移動して表示されることになる。この移動が大きくなると、表示対象部2aは表示画面からはみ出てしまうことがある。画面からはみ出た部分はこれを表示させるためのたとえばスクロールバーを使用することにより、表示画面の任意の位置まで拡大されたイメージ1aを移動させて、目的の表示対象部2aを画面中央までもってくることができる。
【0005】
また、従来のイメージの拡大方法の別の例によれば、イメージの中心位置を拡大の固定位置とする方法もある。すなわち、あるイメージを拡大処理をすると、そのイメージはその中心位置から四方に広がるように拡大されていく。この拡大方法においても、イメージの中心位置から外れた部分は、拡大されながら元の位置から四方に移動していく。この方法も、イメージの中心位置から外れた表示対象部が拡大処理によって画面から外れた場合には、イメージをスクロールさせることによって、表示対象部を表示画面内へ移動させることができる。
【0006】
逆に、表示されているイメージを縮小する場合は、縮小されながらイメージの原点または中心位置に向かって表示対象部が移動することになる。この場合も、縮小されたイメージをスクロールさせることによって、イメージを任意の表示位置まで移動させることができる。
【0007】
【発明が解決しようとする課題】
従来の拡大または縮小方法に従ってイメージを拡大または縮小した場合、表示対象部がイメージの拡大中心から離れた位置にあると、拡大または縮小処理によって表示対象部が画面上で移動してしまうので、表示対象部を元の表示位置まで戻すために、必ずスクロール操作をしなければならず、しかも表示対象部がイメージの端にあるほど多くのスクロール操作が必要になる、という問題点があった。
【0008】
本発明はこのような点に鑑みてなされたものであり、後でスクロール操作を必要としないようにイメージを拡大または縮小処理するイメージ表示装置を提供することを目的とする。
【0009】
【課題を解決するための手段】
図1は上記目的を達成する本発明の原理図である。図1に示した本発明のイメージ表示装置は、イメージの拡大または縮小の中心位置を入力する入力手段10と、イメージの拡大または縮小を行うイメージサイズ変更手段11と、イメージの拡大または縮小の前後の中心位置の差分だけ、拡大または縮小したイメージの位置を補正するイメージ位置補正手段12と、位置補正したイメージを表示する表示手段13と、拡大または縮小のサイズ変更指示の入力がある間は、イメージサイズ変更手段11、イメージ位置補正手段12および表示手段13を繰り返し動作させるイメージ表示制御手段14とによって構成される。
【0010】
【作用】
上述の手段によれば、入力手段10によってイメージの拡大または縮小の中心位置が入力されると、イメージサイズ変更手段11は表示されているイメージを拡大または縮小する。イメージ位置補正手段12は入力手段10で入力された中心位置に基づいてイメージサイズ変更手段11がイメージの拡大または縮小を行ったときに生じる拡大または縮小の前後の中心位置の差分だけ、拡大または縮小後のイメージの位置の補正を行い、位置補正されたイメージを表示手段13に表示する。そして、イメージ表示制御手段14がイメージの拡大または縮小と、拡大または縮小後のイメージの位置の補正と、補正後のイメージの表示とを、繰り返し行わせるようにすることにより、入力位置を中心としたイメージの連続した拡大または縮小処理が行われる。
【0011】
【実施例】
まず、本発明の実施例の概略を説明する。
図1は本発明によるイメージ表示装置の原理構成図である。本発明のイメージ表示装置は、表示中のイメージに対して拡大または縮小するときのその中心位置を入力する入力手段10と、表示されているイメージの拡大または縮小を行うイメージサイズ変更手段11と、入力手段10で入力された中心位置とイメージの拡大または縮小の後の中心位置との差分だけ、拡大または縮小した後のイメージの位置を補正するイメージ位置補正手段12と、位置が補正されたイメージを表示する表示手段13と、拡大または縮小のサイズ変更指示の入力がある間、イメージサイズ変更手段11、イメージ位置補正手段12および表示手段13を繰り返し動作させるイメージ表示制御手段14とによって構成される。
【0012】
この構成によれば、入力手段10は表示手段13に表示されているイメージの拡大または縮小の中心位置を入力する。イメージサイズ変更手段11は表示手段13に表示されているイメージの拡大または縮小処理を行う。イメージ位置補正手段12はイメージサイズ変更手段11によって行われるイメージの拡大または縮小のときに生じる入力手段10で入力された中心位置のずれの差分だけ、拡大または縮小後のイメージの位置を補正する。位置補正されたイメージは表示手段13によって表示される。イメージ表示制御手段14はイメージサイズ変更手段11によるイメージの拡大または縮小と、イメージ位置補正手段12による拡大または縮小後のイメージの位置の補正と、表示手段13による補正後のイメージの表示とを、繰り返し行わせるようにすることにより、入力手段10で入力された中心位置を中心としたイメージの連続した拡大または縮小処理が行われる。
【0013】
入力手段10は好ましくはマウスが使用される。マウスはまた、表示手段13に表示されているイメージに対して拡大または縮小したい部分の中心位置を入力するだけではなく、拡大または縮小のサイズ変更指示の入力をすることもできる。このため、入力手段10としては、拡大または縮小の指示を入力できる2ボタン式のマウスが好適である。したがって、マウスのボタンを押している間、押した位置を中心としてイメージの拡大または縮小を繰り返すことができる。イメージサイズ変更手段11は通常の拡大または縮小方法を使用してイメージをその原点を固定点とした論理画面上に仮想的に拡大または縮小する。この処理の結果はすぐには画面表示に反映されない。イメージ位置補正手段12は位置補正のために拡大または縮小前後の中心位置の差分を計算する。この差分は、入力手段10で入力された中心位置の座標にイメージサイズ変更手段11が一度に拡大または縮小することができる倍率を掛けることによって計算される。次いで、拡大または縮小されたイメージは中心位置の差分だけ移動してきた方向に戻されて、表示手段13に表示される。
【0014】
図2はイメージの表示画面の一表示例を示す図である。この画面表示例によれば、21はたとえばモニタの表示画面の一部に形成されたウィンドウであり、そのウィンドウ21の中にイメージ22が表示されている。このイメージ22はたとえば新聞の1ページ分をイメージスキャナによってイメージデータ化したものである。また、イメージ22の上にはマウスカーソル23が表示されている。
【0015】
ウィンドウ21内の位置は、ウィンドウ21の左上の位置を原点(0,0)とした表示座標系の座標値によって表される。したがって、マウスカーソル23がウィンドウ21内にあるときのその位置は表示座標系で表される。また、ウィンドウ21内に表示されるイメージ22は、その左上の位置をイメージ22の原点とし、その座標は(x,y)とする。このイメージ22内の特定位置の座標はイメージ22の左上の位置を原点としたイメージ座標系で表される。この原点の座標(x,y)は、イメージ22が拡大されていってウィンドウ21の上の枠および左の枠からはみ出たときには負の値を有することになる。
【0016】
マウスカーソル23をイメージ22上の拡大または縮小したい位置に置いてマウスボタンを押すと、そのポイントされた位置は表示座標系の座標値(MDx,MDy)で得られ、この値はイメージ位置補正手段12に記憶され、拡大または縮小の中心位置となる。イメージ22はこの中心位置を中心として拡大または縮小される。以下、この動作をポイントズームという。
【0017】
図3はポイントズーム処理の第1の説明図である。ここでは、イメージを拡大する場合について説明する。この図3において、ポイントズームが行われる前のイメージ30が実線で示されている。このイメージ30の左上の位置は表示座標系の座標(x,y)である。イメージ30上の位置P0がマウスによってポイントされた位置であり、拡大の中心位置である。
【0018】
ここで、イメージ30の仮想的な拡大処理、つまり、画面表示を行わないで、論理的な画面上で拡大する処理を行うと、イメージ30の原点を中心として拡大されたイメージ31が生成される。このイメージ31は破線で示してある。拡大処理が行われると、マウスによってポイントされた位置P0は位置P1に移動される。この位置P0から位置P1への論理的な移動量、すなわち差分は計算によって求めることができる。
【0019】
移動量の計算のためには、まず、マウスによって指示された位置P0がイメージ座標系のどの座標にあるかを計算、すなわち、座標変換をする。イメージ30の左上を原点としてのポイントされた位置P0の座標(IMGx,IMGy)は、次式によって求められる。
【0020】
【数1】
IMGx=MDx−x ・・・(1a)
IMGy=MDy−y ・・・(1b)
次に、位置P0から位置P1までの移動量Δx,Δyは、IMGxおよびIMGyに拡大の倍率を掛けることによって求められる。詳しくは、次式によって求められる。
【0021】
【数2】
Δx=IMGx÷拡大前のxドット数×(拡大後のxドット数−拡大前のxドット数)・・・(2a)
Δy=IMGy÷拡大前のyドット数×(拡大後のyドット数−拡大前のyドット数)・・・(2b)
図4はポイントズーム処理の第2の説明図である。この図4では、仮想的に拡大処理されたイメージ31は破線で示してある。このとき、先にマウスでポイントされた位置P0は位置P1にあるので、次に、このイメージ31を位置P1が位置P0に一致するよう移動してイメージ31の位置補正を行う。すなわち、イメージ31を表示する原点の位置を(x,y)から(x−Δx,y−Δy)にする。これにより、拡大処理をすることによって移動したマウスによるポイント位置は元に戻されて、マウスによる指示位置固定のイメージ拡大を行うことができる。その後、イメージ31の原点の位置は次のように更新される。
【0022】
【数3】
x←x−Δx ・・・(3a)
y←y−Δy ・・・(3b)
図5は連続ズーム処理の流れを示すフローチャートである。この処理の例は、ボタンが左右に2つ有するマウスを使用し、マウスのいずれかのボタンが押し下げられたときに、その位置がポイントズームの中心として位置決めされ、押されたボタンが左側であるか右側であるかによって拡大するのか縮小するのかが決められ、押されたボタンが放されるまでの間、ポイントズーム処理を繰り返して、連続したズーム処理を行う場合を示している。
【0023】
先ず、マウスのボタンが押されたかどうかが判断され、押されていない場合はそのまま終了する(ステップS1)。マウスのボタンが押された場合には、ボタンが押されたときのマウスカーソルの座標(MDx,MDy)がズーム中心位置として記憶される(ステップS2)。次に、押されたマウスのボタンが左側のボタンであるかどうかが判断される(ステップS3)。ここで、左側のボタンが押されたと判断されると、拡大処理のためのフラグが設定され(ステップS4)、右側のボタンが押されたと判断されると、縮小処理のためのフラグが設定される(ステップS5)。その後、タイマが起動される(ステップS6)。
【0024】
次に、タイマが起動されている間に、押されていたマウスのボタンが放されたかどうかが判断され(ステップS7)、もし、この段階でマウスのボタンが放されたならば、タイマをキャンセルして(ステップS8)、ズーム処理を終了する。もし、マウスのボタンが放されずに、タイマがタイムアウトすると(ステップS9)、ポイントズーム処理を行う(ステップS10)。ここで、一連のポイントズーム処理が終了すると、ステップS6に戻って、タイマを起動し、タイマがタイムアップするまでの間、マウスのボタンが放されたかどうかをチェックし、タイマがタイムアップすると、また、一連のポイントズーム処理が行われる、という処理が繰り返される。
【0025】
図6はポイントズーム処理の詳細な流れを示すフローチャートである。ポイントズーム処理は、まず、先に記憶されたズーム中心位置がイメージ内の座標では何処になるのかを求める座標変換が行われる(ステップS11)。この座標変換は、前述の式1a,1bに従って行われる。
【0026】
次に、設定されたフラグが拡大処理用のフラグかどうかが判断される(ステップS12)。ここで、拡大処理用のフラグが設定されていれば、表示されない状態で行われる仮想的な拡大処理が行われ(ステップS13)、縮小処理用のフラグが設定されていれば、仮想的な縮小処理が行われる(ステップS14)。
【0027】
ここで、ズーム処理をしたことによって生じるポイント位置の移動量の計算が行われる(ステップS15)。この計算は、拡大処理の場合は、前述の式2a,2bに従って行われる。
【0028】
そして、ズーム処理後もポイント位置が一致するようイメージを計算された移動量だけ移動させてイメージの位置補正を行う(ステップS16)。次に、位置補正された座標(x−Δx,y−Δy)でイメージを表示し(ステップS17)、最後に、イメージの原点の位置座標(x,y)を(x−Δx,y−Δy)にする(ステップS18)。
【0029】
ステップS13またはステップS14にて処理されるズームの倍率としては、たとえば5パーセント程度である。つまり、タイマが起動してタイムアウトするまでの時間および一回のポイントズーム処理にかかる時間のトータルがたとえば0.5秒とすると、マウスを押している間、0.5秒毎にイメージが5パーセントづつ連続して拡大または縮小されていくことになる。
【0030】
なお、図示の例では、移動量計算を拡大または縮小処理の後で行うようにしたが、この順番は入れ換えてもよい。すなわち、移動量計算のステップS15をステップS12の前に入れて処理するようにすることもできる。これは、移動量の計算は拡大または縮小処理の結果を使用していないことによる。
【0031】
図7は本発明を実施するコンピュータシステムのハードウエア構成の一例を示す図である。図において、コンピュータシステムは、プロセッサ51と、読み取り専用メモリ(ROM)52と、メインメモリ(RAM)53と、グラフィック制御回路54及び表示装置55と、マウス56と、キーボード57と、ハードディスク装置(HDD)58と、フロッピーディスク装置(FDD)59と、プリンタ60とで構成されており、これらの構成要素はバス61によって相互に結合されている。
【0032】
プロセッサ51はコンピュータシステム全体を統括的に制御する。読み取り専用メモリ52にはたとえば立ち上げ時に必要なプログラムが格納されている。メインメモリ53にはシステムプログラム、イメージ表示用のアプリケーションプログラム、ポイントズーム機能を実行するプログラムなどが展開されている他に、ポイントズーム処理対象のイメージデータなどが格納される。
【0033】
グラフィック制御回路54はビデオメモリなどを有し、イメージ表示用のウィンドウ画面、各種アイコンなどを表示信号に変換し、表示装置55に送る。表示装置55は、受けた表示信号を基にしてイメージ表示用のウィンドウ画面を表示する。
【0034】
マウス56は表示装置55の画面上に表示されているマウスカーソルを移動させ、ボタンをクリックすることによってズーム中心位置をポイントしたり、ズーム開始またはズーム終了を指示したり、各種アイコンまたはメニューのコマンドを選択・指示するポインティングデバイスである。キーボード57はイメージファイル名の文字列入力、マウスの代わりに拡大または縮小の指示などに使用される。
【0035】
ハードディスク装置58は、システムプログラム、イメージ表示用のアプリケーションプログラム、ポイントズーム機能を実行するプログラム、イメージデータが入ったイメージファイルなどが格納されている。フロッピーディスク装置59はフロッピーディスク59aに納められているイメージファイルをハードディスク装置58に取り込んだり、たとえばネットワークを通じてダウンロードしたイメージファイルを保存しておくための外部記憶装置である。
【0036】
また、イメージ表示用のアプリケーションプログラムの印刷機能を使用して、ポイントズーム処理をした特定領域のイメージデータをプリンタ60に渡して、紙に印刷することができる。
【0037】
【発明の効果】
以上説明したように本発明では、表示中のイメージの拡大または縮小表示したい中心位置を入力し、拡大または縮小を行い、拡大縮小後の前後のイメージの中心位置の補正を行うようにしたので、指定された拡大/縮小処理の中心位置をディスプレイ表示上移動させることなく拡大/縮小することができる。
また、拡大または縮小のサイズ変更指示の入力がある間は、イメージサイズの変更、イメージ位置補正を繰り返し動作させるようにしたので、利用者が拡大縮小のサイズ変更をしている間は、その視点を移動させることなく、拡大/縮小の指示が継続される。
このため、ズーム操作を行っても指定された中心位置は変わらないので、ズーム操作後に一々スクロール操作をする必要がなく、イメージの特定の注目点のズーム操作を簡単にすることができる。
【図面の簡単な説明】
【図1】本発明によるイメージ表示装置の原理構成図である。
【図2】イメージの表示画面の一表示例を示す図である。
【図3】ポイントズーム処理の第1の説明図である。
【図4】ポイントズーム処理の第2の説明図である。
【図5】連続ズーム処理の流れを示すフローチャートである。
【図6】ポイントズーム処理の詳細な流れを示すフローチャートである。
【図7】本発明を実施するコンピュータシステムのハードウエア構成の一例を示す図である。
【図8】従来のイメージの拡大方法の一例を示す図である。
【符号の説明】
10 入力手段
11 イメージサイズ変更手段
12 イメージ位置補正手段
13 表示手段
14 イメージ表示制御手段
[0001]
[Industrial applications]
The present invention relates to an image display device, and more particularly to an image display device that continuously performs enlargement or reduction and redisplay of an image displayed on a screen.
[0002]
Materials taken in by the image scanner have been exchanged through a network or the like, and with this, applications for displaying such materials in an easy-to-read form have been developed. For example, when a newspaper is read in pages by an image scanner and converted into image data, if the entire page is displayed on the display screen, the characters are too small to read the contents. For this reason, the relevant article part is usually displayed in an enlarged manner.
[0003]
[Prior art]
FIG. 8 shows an example of a conventional image enlarging method. For example, it is assumed that the entire image 1 is displayed on the display screen, and that the image 1 includes the display target unit 2. Here, in order to display the vicinity of the display target portion 2 in the image 1 in detail, enlargement processing of the image 1 is performed. In the enlargement processing, the upper left position as the origin of the image 1 is fixed, and the image 1 is enlarged so as to spread rightward and downward from this position.
[0004]
Since the enlarged image 1a is enlarged from the origin of the image 1, the display target portion 2a is also enlarged while moving in the enlargement direction. As described above, when the entire image 1 is enlarged in order to display the details of the display target unit 2, the display target unit 2a moves to a position different from the position where the display target unit 2 was displayed and is displayed. Will be. If the movement becomes large, the display target portion 2a may protrude from the display screen. By using, for example, a scroll bar to display a portion that is off the screen, the enlarged image 1a is moved to an arbitrary position on the display screen, and the target display target unit 2a is brought to the center of the screen. be able to.
[0005]
Further, according to another example of the conventional method of enlarging an image, there is a method of setting the center position of the image as a fixed position of the enlargement. That is, when a certain image is enlarged, the image is enlarged so as to expand in all directions from the center position. Also in this enlargement method, a portion deviating from the center position of the image moves in four directions from the original position while being enlarged. Also in this method, when the display target portion deviating from the center position of the image deviates from the screen by the enlargement processing, the display target portion can be moved into the display screen by scrolling the image.
[0006]
Conversely, when reducing the displayed image, the display target moves toward the origin or center position of the image while being reduced. Also in this case, the image can be moved to an arbitrary display position by scrolling the reduced image.
[0007]
[Problems to be solved by the invention]
When the image is enlarged or reduced according to the conventional enlargement or reduction method, if the display target part is located away from the center of the image enlargement, the display target part moves on the screen due to the enlargement or reduction processing. In order to return the target portion to the original display position, a scroll operation must be performed without fail, and more scroll operations are required as the display target portion is located at the end of the image.
[0008]
The present invention has been made in view of such a point, and an object of the present invention is to provide an image display device that enlarges or reduces an image so that a scroll operation is not required later.
[0009]
[Means for Solving the Problems]
FIG. 1 is a principle diagram of the present invention for achieving the above object. The image display apparatus of the present invention shown in FIG. 1 includes an input unit 10 for inputting a center position of enlargement or reduction of an image, an image resizing unit 11 for enlargement or reduction of an image, and before and after enlargement or reduction of an image. The image position correcting means 12 for correcting the position of the enlarged or reduced image by the difference between the center positions of the images, the display means 13 for displaying the position-corrected image, and the instruction to change the size of the enlarged or reduced image are input. It comprises an image display control means 14 for repeatedly operating the image size changing means 11, the image position correcting means 12 and the display means 13.
[0010]
[Action]
According to the above-mentioned means, when the center position of the enlargement or reduction of the image is input by the input means 10, the image size changing means 11 enlarges or reduces the displayed image. The image position correcting means 12 enlarges or reduces the difference between the center positions before and after the enlargement or reduction that occurs when the image size changing means 11 enlarges or reduces the image based on the center position input by the input means 10. The position of the subsequent image is corrected, and the position-corrected image is displayed on the display unit 13. Then, the image display control means 14 repeatedly performs the enlargement or reduction of the image, the correction of the position of the image after the enlargement or reduction, and the display of the image after the correction, so that the input position is centered. A continuous enlargement or reduction process of the obtained image is performed.
[0011]
【Example】
First, an outline of an embodiment of the present invention will be described.
FIG. 1 is a diagram showing the principle configuration of an image display device according to the present invention. The image display device according to the present invention includes an input unit 10 for inputting a center position of an image being displayed when the image is enlarged or reduced, an image size changing unit 11 for enlarging or reducing the displayed image, Image position correcting means 12 for correcting the position of the image after the enlargement or reduction by the difference between the center position input by the input means 10 and the center position after the enlargement or reduction of the image, and an image whose position has been corrected And an image display control means 14 for repeatedly operating the image size changing means 11, the image position correcting means 12 and the display means 13 while an enlargement or reduction size change instruction is input. .
[0012]
According to this configuration, the input unit 10 inputs the center position of the enlargement or reduction of the image displayed on the display unit 13. The image size changing unit 11 enlarges or reduces the image displayed on the display unit 13. The image position correcting means 12 corrects the position of the image after the enlargement or reduction by the difference of the shift of the center position input by the input means 10 when the image is enlarged or reduced by the image size changing means 11. The position-corrected image is displayed by the display unit 13. The image display control means 14 controls the enlargement or reduction of the image by the image size changing means 11, the correction of the position of the image after the enlargement or reduction by the image position correction means 12, and the display of the corrected image by the display means 13. By repeatedly performing the processing, continuous enlargement or reduction processing of the image centered on the center position input by the input unit 10 is performed.
[0013]
The input means 10 is preferably a mouse. The mouse can input not only a center position of a portion to be enlarged or reduced with respect to the image displayed on the display means 13 but also an instruction to change the size of the image to be enlarged or reduced. Therefore, a two-button mouse that can input an instruction for enlargement or reduction is preferable as the input unit 10. Therefore, while the mouse button is pressed, the enlargement or reduction of the image around the pressed position can be repeated. The image size changing means 11 virtually enlarges or reduces the image on a logical screen with its origin as a fixed point using a normal enlargement or reduction method. The result of this processing is not immediately reflected on the screen display. The image position correcting means 12 calculates a difference between the center positions before and after enlargement or reduction for position correction. This difference is calculated by multiplying the coordinates of the center position input by the input unit 10 by a magnification that can be enlarged or reduced by the image size changing unit 11 at a time. Next, the enlarged or reduced image is returned to the direction in which it has moved by the difference between the center positions, and is displayed on the display unit 13.
[0014]
FIG. 2 is a diagram showing a display example of an image display screen. According to this screen display example, reference numeral 21 denotes a window formed on a part of a display screen of a monitor, for example, and an image 22 is displayed in the window 21. The image 22 is, for example, one page of a newspaper converted into image data by an image scanner. A mouse cursor 23 is displayed on the image 22.
[0015]
The position in the window 21 is represented by coordinate values in a display coordinate system with the upper left position of the window 21 as the origin (0, 0). Therefore, the position of the mouse cursor 23 when it is within the window 21 is represented by the display coordinate system. The image 22 displayed in the window 21 has the upper left position as the origin of the image 22 and the coordinates (x, y). The coordinates of the specific position in the image 22 are represented by an image coordinate system with the origin at the upper left position of the image 22. The coordinates (x, y) of the origin have a negative value when the image 22 is enlarged and protrudes from the upper frame and the left frame of the window 21.
[0016]
When the mouse button is pressed by placing the mouse cursor 23 at the position on the image 22 where the user wants to enlarge or reduce, the pointed position is obtained as the coordinate values (MDx, MDy) of the display coordinate system. 12 is the center position of the enlargement or reduction. The image 22 is enlarged or reduced around this center position. Hereinafter, this operation is called point zoom.
[0017]
FIG. 3 is a first explanatory diagram of the point zoom process. Here, a case where the image is enlarged will be described. In FIG. 3, the image 30 before the point zoom is performed is shown by a solid line. The upper left position of the image 30 is the coordinates (x, y) of the display coordinate system. The position P0 on the image 30 is the position pointed by the mouse, and is the center position of the enlargement.
[0018]
Here, if virtual enlargement processing of the image 30 is performed, that is, processing of enlarging on a logical screen without performing screen display, an image 31 enlarged around the origin of the image 30 is generated. . This image 31 is indicated by a broken line. When the enlargement process is performed, the position P0 pointed by the mouse is moved to the position P1. The logical movement amount from the position P0 to the position P1, that is, the difference can be obtained by calculation.
[0019]
In order to calculate the movement amount, first, the coordinates of the position P0 designated by the mouse in the image coordinate system are calculated, that is, coordinate conversion is performed. The coordinates (IMGx, IMGy) of the pointed position P0 with the upper left of the image 30 as the origin are obtained by the following equation.
[0020]
(Equation 1)
IMGx = MDxx-x (1a)
IMGy = MDy-y (1b)
Next, the movement amounts Δx and Δy from the position P0 to the position P1 are obtained by multiplying IMGx and IMGy by a magnification of enlargement. Specifically, it is obtained by the following equation.
[0021]
(Equation 2)
Δx = IMGx ÷ number of x dots before enlargement × (number of x dots after enlargement−number of x dots before enlargement) (2a)
Δy = IMGy ÷ number of y dots before enlargement × (number of y dots after enlargement−number of y dots before enlargement) (2b)
FIG. 4 is a second explanatory diagram of the point zoom process. In FIG. 4, the image 31 that has been virtually enlarged is indicated by a broken line. At this time, since the position P0 previously pointed by the mouse is at the position P1, next, the image 31 is moved so that the position P1 coincides with the position P0, and the position of the image 31 is corrected. That is, the position of the origin for displaying the image 31 is changed from (x, y) to (x-Δx, y-Δy). Thereby, the point position by the mouse moved by performing the enlargement processing is returned to the original position, and the image can be enlarged by fixing the designated position by the mouse. Thereafter, the position of the origin of the image 31 is updated as follows.
[0022]
(Equation 3)
x ← x−Δx (3a)
y ← y−Δy (3b)
FIG. 5 is a flowchart showing the flow of the continuous zoom process. An example of this processing uses a mouse having two buttons on the left and right. When one of the buttons of the mouse is pressed down, the position is positioned as the center of the point zoom, and the pressed button is on the left side. Whether to enlarge or reduce is determined depending on whether the image is on the right side or the right side, and the point zoom processing is repeated until the pressed button is released to perform continuous zoom processing.
[0023]
First, it is determined whether or not a mouse button has been pressed, and if not, the process ends (step S1). When the mouse button is pressed, the coordinates (MDx, MDy) of the mouse cursor when the button is pressed are stored as the zoom center position (step S2). Next, it is determined whether the pressed mouse button is the left button (step S3). Here, if it is determined that the left button has been pressed, a flag for enlargement processing is set (step S4), and if it is determined that the right button has been pressed, a flag for reduction processing is set. (Step S5). Thereafter, the timer is started (step S6).
[0024]
Next, while the timer is running, it is determined whether or not the pressed mouse button has been released (step S7). If the mouse button has been released at this stage, the timer is cancelled. Then (step S8), the zoom processing ends. If the mouse button is not released and the timer times out (step S9), a point zoom process is performed (step S10). Here, when a series of point zoom processes is completed, the process returns to step S6 to start a timer, and checks whether or not a mouse button is released until the timer expires. Further, a process of performing a series of point zoom processes is repeated.
[0025]
FIG. 6 is a flowchart showing a detailed flow of the point zoom process. In the point zoom process, first, coordinate conversion is performed to determine where the previously stored zoom center position is in coordinates in the image (step S11). This coordinate conversion is performed according to the above-described equations 1a and 1b.
[0026]
Next, it is determined whether the set flag is a flag for the enlargement process (step S12). Here, if the flag for enlargement processing is set, virtual enlargement processing that is performed in a state in which display is not performed is performed (step S13), and if the flag for reduction processing is set, virtual reduction is performed. The process is performed (Step S14).
[0027]
Here, the movement amount of the point position caused by performing the zoom processing is calculated (step S15). This calculation is performed according to the above-described equations 2a and 2b in the case of the enlargement processing.
[0028]
Then, the position of the image is corrected by moving the image by the calculated movement amount so that the point positions match even after the zoom processing (step S16). Next, the image is displayed with the position-corrected coordinates (x-Δx, y-Δy) (step S17). Finally, the position coordinates (x, y) of the origin of the image are changed to (x-Δx, y-Δy). ) (Step S18).
[0029]
The zoom magnification processed in step S13 or step S14 is, for example, about 5%. That is, assuming that the total time required for the timer to start and time out and the time required for one point zoom process is 0.5 seconds, for example, while the mouse is pressed, the image is displayed at 5% every 0.5 seconds. It will be continuously enlarged or reduced.
[0030]
In the illustrated example, the movement amount calculation is performed after the enlargement or reduction processing. However, the order may be changed. That is, step S15 of the movement amount calculation may be performed before step S12. This is because the calculation of the movement amount does not use the result of the enlargement or reduction processing.
[0031]
FIG. 7 is a diagram illustrating an example of a hardware configuration of a computer system that embodies the present invention. In the figure, a computer system includes a processor 51, a read-only memory (ROM) 52, a main memory (RAM) 53, a graphic control circuit 54 and a display device 55, a mouse 56, a keyboard 57, and a hard disk device (HDD). ) 58, a floppy disk drive (FDD) 59, and a printer 60, and these components are mutually connected by a bus 61.
[0032]
The processor 51 controls the entire computer system. The read-only memory 52 stores, for example, a program required at startup. The main memory 53 stores a system program, an application program for image display, a program for executing a point zoom function, and the like, and also stores image data to be subjected to a point zoom process.
[0033]
The graphic control circuit 54 has a video memory and the like, converts a window screen for image display, various icons, and the like into display signals and sends them to the display device 55. The display device 55 displays a window screen for displaying an image based on the received display signal.
[0034]
The mouse 56 moves the mouse cursor displayed on the screen of the display device 55, and points to the zoom center position by clicking a button, instructs start or end of zoom, and commands of various icons or menus. Is a pointing device for selecting and instructing the user. The keyboard 57 is used to input a character string of an image file name, to instruct enlargement or reduction in place of a mouse, and the like.
[0035]
The hard disk device 58 stores a system program, an application program for image display, a program for executing the point zoom function, an image file containing image data, and the like. The floppy disk device 59 is an external storage device for taking an image file stored in the floppy disk 59a into the hard disk device 58, and for storing an image file downloaded over a network, for example.
[0036]
Further, by using the print function of the image display application program, the image data of the specific area subjected to the point zoom process can be transferred to the printer 60 and printed on paper.
[0037]
【The invention's effect】
As described above, in the present invention, the center position of the displayed image to be enlarged or reduced is input, the enlargement or reduction is performed, and the center positions of the images before and after the enlargement or reduction are corrected. Enlargement / reduction can be performed without moving the designated center position of the enlargement / reduction processing on the display.
In addition, the image size change and image position correction are repeatedly performed while the enlargement or reduction size change instruction is input. The instruction for enlargement / reduction is continued without moving.
For this reason, even if the zoom operation is performed, the designated center position does not change, so that it is not necessary to perform the scroll operation one by one after the zoom operation, and it is possible to simplify the zoom operation of the specific point of interest of the image.
[Brief description of the drawings]
FIG. 1 is a diagram illustrating the principle configuration of an image display device according to the present invention.
FIG. 2 is a diagram showing a display example of an image display screen.
FIG. 3 is a first explanatory diagram of a point zoom process.
FIG. 4 is a second explanatory diagram of the point zoom process.
FIG. 5 is a flowchart illustrating a flow of a continuous zoom process.
FIG. 6 is a flowchart illustrating a detailed flow of a point zoom process.
FIG. 7 is a diagram illustrating an example of a hardware configuration of a computer system that implements the present invention.
FIG. 8 is a diagram showing an example of a conventional image enlarging method.
[Explanation of symbols]
DESCRIPTION OF SYMBOLS 10 Input means 11 Image size change means 12 Image position correction means 13 Display means 14 Image display control means

Claims (2)

表示中のイメージの拡大または縮小の中心位置を入力する入力手段と、
表示されている前記イメージの原点を固定点として前記イメージを拡大または縮小する処理を行うイメージサイズ変更手段と、
前記入力手段で入力された中心位置前記イメージの拡大または縮小後の中心位置の差分だけ、前記イメージサイズ変更手段にて拡大または縮小した前記イメージの表示位置の補正を行うことにより拡大または縮小後の中心位置が前記入力手段で入力された中心位置に一致するように拡大または縮小された前記イメージを移動させ、前記イメージの表示位置の補正後は、前記イメージの原点を補正後の前記イメージの原点の座標値に更新するイメージ位置補正手段と、
前記表示位置の補正を行った前記イメージを表示する表示手段と、
拡大または縮小のサイズ変更指示の入力がある間は、前記イメージサイズ変更手段、前記イメージ位置補正手段および前記表示手段を繰り返し動作させるイメージ表示制御手段とを備えることを特徴とするイメージ表示装置。
Input means for inputting the center position of enlargement or reduction of the displayed image;
Image resizing means for performing processing of enlarging or reducing the image with the origin of the displayed image as a fixed point ,
Enlarged or by correcting the magnification or by the difference between the center position after shrink, the display position of the image enlarged or reduced by the image size changing means of the center position input by the input means image The enlarged or reduced image is moved so that the center position after the reduction matches the center position input by the input means, and after the display position of the image is corrected, the origin of the image is corrected after the correction. Image position correction means for updating to the coordinates of the origin of the image,
A display means for displaying the image subjected to the correction of the display position,
An image display device comprising: an image display control unit that repeatedly operates the image size changing unit, the image position correcting unit, and the display unit while an input of a size change instruction for enlargement or reduction is input.
前記入力手段は、更に、前記イメージの拡大または縮小のためのサイズ変更指示の入力をも行うことを特徴とする請求項1記載のイメージ表示装置。2. The image display device according to claim 1, wherein the input unit further inputs a size change instruction for enlarging or reducing the image.
JP25648594A 1994-10-21 1994-10-21 Image display device Expired - Fee Related JP3582866B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP25648594A JP3582866B2 (en) 1994-10-21 1994-10-21 Image display device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP25648594A JP3582866B2 (en) 1994-10-21 1994-10-21 Image display device

Publications (2)

Publication Number Publication Date
JPH08123973A JPH08123973A (en) 1996-05-17
JP3582866B2 true JP3582866B2 (en) 2004-10-27

Family

ID=17293300

Family Applications (1)

Application Number Title Priority Date Filing Date
JP25648594A Expired - Fee Related JP3582866B2 (en) 1994-10-21 1994-10-21 Image display device

Country Status (1)

Country Link
JP (1) JP3582866B2 (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2007034351A2 (en) * 2005-09-19 2007-03-29 Koninklijke Philips Electronics N.V. Method of drawing a graphical object
US8952982B2 (en) 2007-04-24 2015-02-10 Sony Corporation Image display device, image display method and information recording medium for displaying and scrolling objects on a display
JP5097435B2 (en) * 2007-04-24 2012-12-12 株式会社ソニー・コンピュータエンタテインメント Image display device, image display method, program, and information storage medium
JP5438333B2 (en) * 2009-02-05 2014-03-12 キヤノン株式会社 Display control apparatus and display control method
CN115309311A (en) * 2022-09-14 2022-11-08 河北蓝蜂信息科技有限公司 Canvas zooming method and device based on web page drawing

Also Published As

Publication number Publication date
JPH08123973A (en) 1996-05-17

Similar Documents

Publication Publication Date Title
JPH01250129A (en) Display screen operating system
JPH06309138A (en) Screen control method using touch panel
JP3582866B2 (en) Image display device
JP2007079947A (en) Display device and program for use therewith
JP2937275B2 (en) Figure processing method
JPH11327733A (en) Device and method for changing window size
JPH10312187A (en) Expansion/reduction display device and method
JPH1069345A (en) Image processor
JP2851834B2 (en) Information processing device
JP2005100132A (en) Display control device
JPH05242213A (en) Line graphic drawing device
JP2637440B2 (en) Cursor control method
JPH06251115A (en) Image processor
JPH0785132A (en) Graphic processor
JP3115068B2 (en) Screen display control device
JPH06110630A (en) Data processor
JP2004152034A (en) Window display control device and program
JP3791937B2 (en) Word processor device
JP2001056746A (en) Pointing device, display controller and storage medium
JP3381994B2 (en) Display screen switching device
JP2644479B2 (en) Document creation device
JPH08185269A (en) Document preparation device and cursor movement control method
JPH04369717A (en) Information processing method and its device
JP2002328802A (en) Window display control method
JP2721348B2 (en) Image processing device

Legal Events

Date Code Title Description
A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20030715

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20040701

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20040727

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080806

Year of fee payment: 4

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090806

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090806

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100806

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110806

Year of fee payment: 7

LAPS Cancellation because of no payment of annual fees