JP3718984B2 - Image editing apparatus, image editing method, and computer-readable recording medium recording image editing processing program - Google Patents

Image editing apparatus, image editing method, and computer-readable recording medium recording image editing processing program Download PDF

Info

Publication number
JP3718984B2
JP3718984B2 JP02194898A JP2194898A JP3718984B2 JP 3718984 B2 JP3718984 B2 JP 3718984B2 JP 02194898 A JP02194898 A JP 02194898A JP 2194898 A JP2194898 A JP 2194898A JP 3718984 B2 JP3718984 B2 JP 3718984B2
Authority
JP
Japan
Prior art keywords
image
moving direction
moving
vertex
procedure
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
JP02194898A
Other languages
Japanese (ja)
Other versions
JPH11219441A (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.)
Brother Industries Ltd
Original Assignee
Brother Industries 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 Brother Industries Ltd filed Critical Brother Industries Ltd
Priority to JP02194898A priority Critical patent/JP3718984B2/en
Publication of JPH11219441A publication Critical patent/JPH11219441A/en
Application granted granted Critical
Publication of JP3718984B2 publication Critical patent/JP3718984B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Record Information Processing For Printing (AREA)
  • Processing Or Creating Images (AREA)
  • Image Processing (AREA)
  • Editing Of Facsimile Originals (AREA)

Description

【0001】
【発明の属する技術分野】
本発明は、例えば、DTPシステム、プリンタシステム、ワードプロセッサ等に用いられ、コンピュータ上で画像の編集を行うための画像編集装置および画像編集方法に関する。
【0002】
【従来の技術】
カタログ、チラシ、雑誌、新聞等の印刷物を作成するとき、用紙上に配置する複数の画像のレイアウトを設定する必要がある。このような作業は、通常、パソコンやワークステーション等のコンピュータを使用したDTPシステム等を用いて行われる。
【0003】
例えば、印刷する用紙のサイズに対応した画像編集領域を、コンピュータの記憶回路上に設定し、この画像編集領域をディスプレイに表示する。そして、作業者は、ディスプレイを見ながら、画像(画像データ)をこの画像編集領域の所望の位置に張り付ける。さらに、張り付けた画像を重ならないように移動させたり、画像を拡大、縮小させたりして画像のレイアウトを設定する。
【0004】
【発明が解決しようとする課題】
しかしながら、画像を他の画像に重ならないように移動させることは難しい。また、画像編集領域内に多数の画像が配置されているときには、他の画像と重ならないように画像を移動できる位置を見つけ出すことさえも難しくなる。このため、作業者は、画像の移動を何度もやり直さなければならず、作業性が悪いという問題がある。
【0005】
本発明は、上述した問題に鑑みなされたもので、画像を他の画像に重ならないように簡単に移動させることができ、画像編集作業の作業性を向上させることができる画像編集装置および画像編集方法を提供することを目的としている。
【0006】
【課題を解決するための手段】
上記課題を解決するために、請求項1の発明は、記憶回路上に形成された画像編集領域に配置された複数の矩形画像を編集する画像編集装置であって、複数の矩形画像のうちの第1画像を画像編集領域内において移動させる移動手段と、移動手段により移動された第1画像が、複数の矩形画像のうちの第2画像と重なるか否かを判定する判定手段と、判定手段の判定結果に基づいて第1画像が第2画像と重なるときに、第1画像の各頂点のうち移動方向側に位置する移動側頂点の軌跡を演算し、この移動側頂点が前記軌跡上を前記移動方向と逆の方向に移動するように第1画像を再移動させることによって、第1画像と第2画像が互いに接し、かつ、これら第1画像と第2画像が互いに重ならない位置に第1画像を配置する配置手段とを備えている。
【0007】
画像編集領域に配置された複数の矩形画像のうち、任意の画像、即ち、第1画像を移動させたことによって、この第1画像が、画像編集領域に配置された複数の矩形画像のうち他の画像、即ち、第2画像と重なったとき、配置手段は、まず、第1画像の各頂点のうち移動方向側に位置する移動側頂点の軌跡を演算する。例えば、第1画像が左下に移動したときには、第1画像の左下頂点の軌跡を演算する。そして、配置手段は、第1画像の移動側頂点が前記軌跡上を前記移動方向と逆の方向に移動するように第1画像を再移動させる。例えば、第1画像が左下に移動したときには、第1画像の左下頂点が前記軌跡に沿って右上に移動するように第1画像を右上に再移動させる。さらに、更新手段は、第1画像を、第2画像と接し、かつ、第2画像と重ならない位置に第1画像を配置する。これにより、第1画像を第2画像に重ならないように、簡単に移動させることができる。
【0008】
請求項2の発明による画像編集装置において、配置手段は、移動手段によって移動する第1画像の移動方向を演算して求める移動方向演算手段と、第1画像の各頂点のうち、移動方向演算手段により演算された移動方向側に位置する移動側頂点の軌跡を演算して求める軌跡演算手段と、移動方向演算手段により求められた第1画像の移動方向に基づいて、前記移動方向が上のときには前記第2画像の下辺を選択し、前記移動方向が下のときには前記第2画像の上辺を選択し、前記移動方向が左のときには前記第2画像の右辺を選択し、前記移動方向が右のときには前記第2画像の左辺を選択し、前記移動方向が左上であり、かつ、前記軌跡が前記第2画像の右下に位置する頂点よりも上側に位置するときには前記第2画像の右辺を選択し、前記移動方向が左上であり、かつ、前記軌跡が前記第2画像の右下に位置する頂点よりも下側に位置するときには前記第2画像の下辺を選択し、前記移動方向が右上であり、かつ、前記軌跡が前記第2画像の左下に位置する頂点よりも上側に位置するときには前記第2画像の左辺を選択し、前記移動方向が右上であり、かつ、前記軌跡が前記第2画像の左下に位置する頂点よりも下側に位置するときには前記第2画像の下辺を選択し、前記移動方向が左下であり、かつ、前記軌跡が前記第2画像の右上に位置する頂点よりも上側に位置するときには前記第2画像の上辺を選択し、前記移動方向が左下であり、かつ、前記軌跡が前記第2画像の右上に位置する頂点よりも下側に位置するときには前記第2画像の右辺を選択し、前記移動方向が右下であり、かつ、前記軌跡が前記第2画像の左上に位置する頂点よりも上側に位置するときには前記第2画像の上辺を選択し、前記移動方向が右下であり、かつ、前記軌跡が前記第2画像の左上に位置する頂点よりも下側に位置するときには前記第2画像の左辺を選択する辺選択手段と、辺選択手段により選択された前記第2画像の辺を含む直線と、前記軌跡演算手段により求められた前記軌跡との交点を演算して求める交点演算手段と、交点演算手順により演算された交点に、第1画像の移動側頂点を一致させるように、第1画像を再移動させる再移動手段とを備えている。
【0009】
これにより、第1画像の移動側頂点は、前記軌跡上を当該第1画像の移動方向と逆の方向に移動し、第1画像は、第2画像に接し、かつ、第2画像と重ならない位置に配置される。
【0010】
請求項3の発明は、記憶回路上に形成された画像編集領域に配置された複数の矩形画像を編集する画像編集方法であって、複数の矩形画像のうちの第1画像を画像編集領域内において移動させる移動手順と、移動手順により移動された第1画像が、前記複数の矩形画像のうちの第2画像と重なるか否かを判定する判定手順と、判定手順の判定結果に基づいて第1画像が第2画像と重なるときに、第1画像の各頂点のうち移動方向側に位置する移動側頂点の軌跡を演算し、この移動側頂点が前記軌跡上を前記移動方向と逆の方向に移動するように第1画像を再移動させることによって、第1画像と第2画像が互いに接し、かつ、これら第1画像と第2画像が互いに重ならない位置に第1画像を配置する配置手順とを備えている。これにより、上述した請求項1の発明と同様に、第1画像を第2画像に重ならないように、簡単に移動させることができる。
【0011】
請求項4の発明による画像編集方法における配置手順は、移動手順によって移動する前記第1画像の移動方向を演算して求める移動方向演算手順と、第1画像の各頂点のうち、移動方向演算手順により演算された移動方向側に位置する移動側頂点の軌跡を演算して求める軌跡演算手順と、移動方向演算手順により求められた第1画像の移動方向に基づいて、前記移動方向が上のときには前記第2画像の下辺を選択し、前記移動方向が下のときには前記第2画像の上辺を選択し、前記移動方向が左のときには前記第2画像の右辺を選択し、前記移動方向が右のときには前記第2画像の左辺を選択し、前記移動方向が左上であり、かつ、前記軌跡が前記第2画像の右下に位置する頂点よりも上側に位置するときには前記第2画像の右辺を選択し、前記移動方向が左上であり、かつ、前記軌跡が前記第2画像の右下に位置する頂点よりも下側に位置するときには前記第2画像の下辺を選択し、前記移動方向が右上であり、かつ、前記軌跡が前記第2画像の左下に位置する頂点よりも上側に位置するときには前記第2画像の左辺を選択し、前記移動方向が右上であり、かつ、前記軌跡が前記第2画像の左下に位置する頂点よりも下側に位置するときには前記第2画像の下辺を選択し、前記移動方向が左下であり、かつ、前記軌跡が前記第2画像の右上に位置する頂点よりも上側に位置するときには前記第2画像の上辺を選択し、前記移動方向が左下であり、かつ、前記軌跡が前記第2画像の右上に位置する頂点よりも下側に位置するときには前記第2画像の右辺を選択し、前記移動方向が右下であり、かつ、前記軌跡が前記第2画像の左上に位置する頂点よりも上側に位置するときには前記第2画像の上辺を選択し、前記移動方向が右下であり、かつ、前記軌跡が前記第2画像の左上に位置する頂点よりも下側に位置するときには前記第2画像の左辺を選択する辺選択手順と、辺選択手順により選択された前記第2画像の辺を含む直線と、軌跡演算手順により求められた前記軌跡との交点を演算して求める交点演算手順と、交点演算手順により演算された交点に、前記第1画像の移動側頂点を一致させるように、前記第1画像を再移動させる再移動手順とを備えている。
【0012】
これにより、上述した請求項2の発明と同様に、第1画像の移動側頂点は、前記軌跡上を当該第1画像の移動方向と逆の方向に移動し、第1画像は、第2画像に接し、かつ、第2画像と重ならない位置に配置される。
【0013】
また、請求項5の発明によるコンピュータ読み取り可能な記録媒体に記録された画像編集処理プログラムをコンピュータに読み込ませ、この画像編集処理プログラムを実行させることにより、コンピュータを、上述した請求項1の発明による画像編集装置として機能させることができる。
【0014】
さらに、請求項6の発明によるコンピュータ読み取り可能な記録媒体に記録された画像編集処理プログラムをコンピュータに読み込ませ、この画像編集処理プログラムを実行させることにより、コンピュータを、上述した請求項2の発明による画像編集装置として機能させることができる。
【0015】
【発明の実施の形態】
以下、本発明の実施の形態を添付図面に従って説明する。
【0016】
本実施形態では、本発明による画像編集装置および画像編集方法を適用した装置としてDTPシステムを例に挙げて説明する。
【0017】
図1は、本実施形態によるDTPシステム10の全体構成を示している。図1に示すように、DTPシステム10は、CPU11、ROM12、RAM13、ディスプレイ14、キーボード15、マウス16、ハードディスク17およびプリンタ18等を備えている。
【0018】
CPU11は、DTPシステム10全体の制御を行うものである。また、CPU11は、後述するように、図2および図3に示す画像編集処理プログラムを実行する。
【0019】
ROM12には、DTPシステム10全体を制御するためのプログラム、図2および図3に示す画像編集処理プログラム、その他、各種データ等が記憶されている。RAM13は、CPU11が画像編集処理等を行うときに作業領域として使用される。さらに、RAM13には、後述の画像編集領域Sが形成される。
【0020】
ディスプレイ14は、CRTディスプレイまたは液晶ディスプレイ等から構成されている。このディスプレイ14には、画像編集領域Sが表示される。また、ハードディスク17には、画像編集に用いる画像データが記憶されている。さらに、プリンタ18は、画像編集領域Sを、当該画像編集領域Sに配置された画像と共に、印刷用紙上に印刷するものである。即ち、プリンタ18は、画像編集領域Sに配置された各画像を、互いの配置関係を維持したまま印刷する。
【0021】
ここで、DTPシステム10のRAM13に形成される画像編集領域Sについて説明する。画像編集領域Sは、図4に示すように、画像の編集を行うための領域である。この画像編集領域Sは、X−Y座標平面であり、図4中において、画像編集領域Sの左上頂点が原点(0,0)であり、図4中の右側に行くほど、画像編集領域SのX座標値が増加し、図4中の下側に行くほど、画像編集領域SのY座標値が増加する。また、画像編集領域Sの大きさは、印刷用紙のサイズに対応するように設定されている。
【0022】
この画像編集領域Sにおいて画像編集処理を行うとき、CPU11は、画像編集領域Sに配置された画像の対角線上に向かい合う2点の座標を少なくとも認識しており、これに基づいて、CPU11は、必要に応じて、画像A、画像Bの位置、大きさ、各辺の位置や長さ、画像A等の移動距離等を演算によって求めることができる。また、CPU11は、画像A等を移動させるとき、画像A等が画像編集領域Sからはみ出さないように画像の移動範囲を制限する。
【0023】
また、画像編集領域Sに配置された画像は、その外形が矩形である。カタログ、チラシ、雑誌、新聞等の印刷物を作成するとき、印刷用紙上に配置する画像の外形は通常、矩形であるため、本実施形態によるDTPシステム10においては、外形が矩形の画像を編集することを前提としている。なお、本実施形態によるDTPシステム10において、矩形以外の形状を有する画像を編集することも可能である。この場合には、その画像を囲む矩形の枠を想定し、この矩形の枠と画像とを一体化させて取り扱う。これにより、矩形以外の形状を有する画像であっても、矩形画像と同様に編集することができる。
【0024】
このように構成されたDTPシステム10によって画像編集を行うとき、作業者は、ハードディスク17に記憶された画像データを呼び出し、この画像データを、キーボード15およびマウス16を操作して、ディスプレイ14に表示された画像編集領域Sに貼り付ける。さらに、作業者は、マウス16を操作することにより、画像編集領域Sに貼り付けた画像(画像データ)を移動させることができる。また、キーボード15を用いて画像編集領域S中の座標を入力することによっても、画像を移動させることができる。また、ディスプレイ14に表示された画像編集領域Sの大きさは、印刷用紙のサイズに対応するように設定されているため、作業者は、用紙上に実際の絵や写真を貼り付けるのと同様の感覚で、画像のレイアウト設定等の画像編集作業を行うことができる。そして、プリンタ18によって、ディスプレイ14に表示された各画像をそのまま印刷用紙上に印刷することができる。
【0025】
次に、画像編集処理を行うときに実行される画像編集処理プログラムについて図2および図3に従って説明する。この画像編集処理プログラムは、画像を移動させたときに、移動させた画像が他の画像と重ならないようにするための処理を行うものである。
【0026】
図2は、画像編集処理のメインプログラムを示しており、図2中のステップ11では、画像編集領域S上に存在する画像が移動したか否かを判定する。即ち、作業者が、ディスプレイ14を見ながらマウス16等を操作し、画像を移動させたか否かを判定する。画像の移動は、画像の頂点座標が変化したか否か等を調べることによって認識することができる。そして、画像が移動したときには、ステップ12に移行する。
【0027】
ステップ12では、画像が移動した結果、当該移動した画像が、画像編集領域S上に存在する他の画像と重なっているか否かを判定する。例えば、図4において、画像Aが移動した結果、この画像Aは、画像Bと重なっている。即ち、図4中の斜線部分が重なり部分である。このような重なり部分があるか否かは、画像Aおよび画像Bの各頂点の座標の関係から知ることができる。
【0028】
そして、ステップ12の判定の結果、移動した画像が、画像編集領域S上に存在する他の画像と重なっているときには、ステップ13に移行する。一方、移動した画像が、画像編集領域S上に存在する他の画像と重なっていないときには、ステップ11に戻る。
【0029】
ステップ13では、図3に示す重なり防止処理を実行する。ここで、説明の便宜上、移動した画像(画像A)を「移動画像」と呼び、この移動画像と重なり合った他の画像(画像B)を「固定画像」と呼ぶこととする。
【0030】
即ち、図3中のステップ21では、移動画像の移動方向を演算により求める。移動画像の移動方向は、移動画像の移動する前の位置と、移動画像の移動した後の位置を比較することによって求めることができ、移動画像の位置は、上述したように、移動画像の頂点座標等に基づいて求めることができる。
【0031】
ステップ22では、移動画像の各頂点のうち、移動方向側に位置する頂点(以下、これを「移動側頂点」という)の軌跡を求める。
【0032】
即ち、まず、ステップ21で求めた移動方向に基づいて移動画像の移動側頂点を求める。具体的には、移動画像が左上に移動したときには、移動画像の左上頂点を移動側頂点とし、移動画像が上に移動したときには、移動画像の左上頂点を移動側頂点とし、移動画像が右上に移動したときには、移動画像の右上頂点を移動側頂点とする。このような移動画像の移動方向と移動側頂点との対応関係は、表1に示すとおりである。そして、移動画像が移動する前の移動側頂点の座標と、移動画像が移動した後の移動側頂点の座標とを通る直線の一次式を、移動頂点の軌跡として算出する。なお、表1においてα、β、γは任意の数である。
【0033】
【表1】

Figure 0003718984
ステップ23では、移動画像の移動方向等に基づいて、固定画像の各辺のうち、1辺を選択する。具体的には、移動画像が左上に移動し、かつ、移動側頂点の軌跡が固定画像の右下頂点よりも上側に位置するときには、固定画像の右辺を選択する。また、移動画時が上に移動したときには、固定画像の下辺を選択する。このような移動画像の移動方向と選択すべき固定画像の辺との対応関係は、表2に示すとおりである。
【0034】
【表2】
Figure 0003718984
ステップ24では、移動画像の移動側頂点の軌跡と、前記ステップ23で選択された固定画像の辺を含む直線との交点を演算により求める。移動側頂点の軌跡の一次式は既に求められており、固定画像の辺を含む直線の式も、固定画像の頂点の座標から求めることができる。従って、これらの式に基づいて移動側頂点の軌跡と、選択された固定画像の辺を含む直線との交点を演算により求めることができる。
【0035】
ステップ25では、移動画像の移動側頂点が、前記ステップ24で求められた交点と一致するように、移動画像をCPU11の処理により再移動させる。これにより、移動画像の移動側頂点は、この移動頂点の軌跡上を、作業者の指示による移動方向と逆の方向に移動する。そして、移動画像は、固定画像に接し、かつ、固定画像と重ならない位置に配置される。
【0036】
これにより、重なり防止処理は終了し、図2に示すメインプログラムに戻る。その後、図3中のステップ12に移行し、ステップ12において、移動画像が他の固定画像と重なっているか否か判定し、重なっているときには、再びステップ13の重なり防止処理を行う。一方、重なっていないときにはステップ11に戻り、再び画像の移動を監視する。
【0037】
ここで、図4および図5を参照しつつ、上述した重なり防止処理について具体的に説明する。
【0038】
図4に示すように、作業者が、画像A(移動画像)を画像A’の位置に移動させた結果、画像Aが画像Bと重なり合っているので、上述した重なり防止処理が実行される。
【0039】
図4に示すように、画像Aは右下に移動しているので、画像Aの移動側頂点は右下頂点となる。従って、画像Aの右下頂点の軌跡の一次式が求められる。図4に示すように、画像Aの右下頂点は、点a(30,30)から点c(60,60)まで移動しているから、この右下頂点の軌跡の一次式は、「y=x」である。
【0040】
さらに、この軌跡は、画像B(固定画像)の左上頂点b(45,50)よりも上側を通過するので、画像Bの上辺が選択される。そして、図5に示すように、軌跡「y=x」と、画像Bの上辺「y=50」との交点d(50,50)が求められる。
【0041】
さらに、画像Aの右下頂点を交点dに再移動させる。これにより、画像Aは、図5中の画像A”の位置に配置される。図5によれば、画像Aの下辺と画像Bの上辺とが接した状態で、かつ、画像Aと画像Bは重なっていないことがわかる。
【0042】
なお、図5において、画像Aが画像A”の位置に配置された状態で、画像A”と重なり合う他の画像は存在しない。従って、処理はここで終了する。
【0043】
かくして、本実施形態によるDTPシステム10によれば、画像編集領域Sにおいて、画像を他の画像に重ならないように、簡単に移動させることができ、画像編集の作業性を向上させることができる。また、上述した重なり防止処理によれば、簡単な演算処理によって、画像を他の画像と重ならないように移動させることができる。
【0044】
なお、前記実施形態では、本発明の画像編集装置としてDTPシステムを例に挙げたが、本発明はこれに限らず、プリンタシステム、ワードプロセッサ等にも適用することができる。また、本発明は、印刷物を作成するための画像レイアウト設定に用いる場合に限らず、例えば、ビューア等のディスプレイに表示された画像の配置制御等に用いてもよい。
【0045】
【発明の効果】
以上、詳述したとおり、請求項1の発明の画像編集装置によれば、複数の矩形画像のうちの第1画像を画像編集領域内において移動させる移動手段と、移動手段により移動された第1画像が、複数の矩形画像のうちの第2画像と重なるか否かを判定する判定手段と、判定手段の判定結果に基づいて第1画像が第2画像と重なるときに、第1画像の各頂点のうち移動方向側に位置する移動側頂点の軌跡を演算し、この移動側頂点が前記軌跡上を前記移動方向と逆の方向に移動するように第1画像を再移動させることによって、第1画像と第2画像が互いに接し、かつ、これら第1画像と第2画像が互いに重ならない位置に第1画像を配置する配置手段とを備える構成としたから、画像を他の画像に重ならないように、簡単に移動させることができ、画像編集の作業性を向上させることができる。
【0046】
請求項2の発明の画像編集装置によれば、配置手段を、移動手段によって移動する第1画像の移動方向を演算して求める移動方向演算手段と、第1画像の各頂点のうち、移動方向演算手段により演算された移動方向側に位置する移動側頂点の軌跡を演算して求める軌跡演算手段と、移動方向演算手段により求められた第1画像の移動方向に基づいて、前記移動方向が上のときには前記第2画像の下辺を選択し、前記移動方向が下のときには前記第2画像の上辺を選択し、前記移動方向が左のときには前記第2画像の右辺を選択し、前記移動方向が右のときには前記第2画像の左辺を選択し、前記移動方向が左上であり、かつ、前記軌跡が前記第2画像の右下に位置する頂点よりも上側に位置するときには前記第2画像の右辺を選択し、前記移動方向が左上であり、かつ、前記軌跡が前記第2画像の右下に位置する頂点よりも下側に位置するときには前記第2画像の下辺を選択し、前記移動方向が右上であり、かつ、前記軌跡が前記第2画像の左下に位置する頂点よりも上側に位置するときには前記第2画像の左辺を選択し、前記移動方向が右上であり、かつ、前記軌跡が前記第2画像の左下に位置する頂点よりも下側に位置するときには前記第2画像の下辺を選択し、前記移動方向が左下であり、かつ、前記軌跡が前記第2画像の右上に位置する頂点よりも上側に位置するときには前記第2画像の上辺を選択し、前記移動方向が左下であり、かつ、前記軌跡が前記第2画像の右上に位置する頂点よりも下側に位置するときには前記第2画像の右辺を選択し、前記移動方向が右下であり、かつ、前記軌跡が前記第2画像の左上に位置する頂点よりも上側に位置するときには前記第2画像の上辺を選択し、前記移動方向が右下であり、かつ、前記軌跡が前記第2画像の左上に位置する頂点よりも下側に位置するときには前記第2画像の左辺を選択する辺選択手段と、辺選択手段により選択された前記第2画像の辺を含む直線と、前記軌跡演算手段により求められた前記軌跡との交点を演算して求める交点演算手段と、交点演算手順により演算された交点に、第1画像の移動側頂点を一致させるように、第1画像を再移動させる再移動手段とを備える構成としたから、簡単な演算処理によって、画像を他の画像と重ならないように移動させることができる。
【0047】
請求項3の発明の画像編集方法によっても、請求項1の発明と同様に、画像を他の画像に重ならないように、簡単に移動させることができ、画像編集の作業性を向上させることができる。
【0048】
請求項4の発明の画像編集方法によっても、請求項2の発明と同様に、簡単な演算処理によって、画像を他の画像と重ならないように移動させることができる。
【0049】
請求項5の発明による画像編集処理プログラムを記録したコンピュータ読み取り可能な記録媒体によっても、この画像編集処理プログラムをコンピュータで実行することにより、請求項1の発明と同様に、画像を他の画像に重ならないように、簡単に移動させることができ、画像編集の作業性を向上させることができる。
【0050】
請求項6の発明による画像編集処理プログラムを記録したコンピュータ読み取り可能な記録媒体によっても、この画像編集処理プログラムをコンピュータで実行することにより、請求項2の発明と同様に、簡単な演算処理によって、画像を他の画像と重ならないように移動させることができる。
【図面の簡単な説明】
【図1】 本発明の実施の形態によるDTPシステムの構成を示すブロック図である。
【図2】 本発明の実施の形態において画像編集処理に用いるメインプログラムの処理内容を示すフローチャートである。
【図3】 本発明の実施の形態において重なり防止処理プログラムの処理内容を示すフローチャートである。
【図4】 本発明の実施の形態において画像を移動させた結果、2つの画像が重なった状態を示す説明図である。
【図5】 本発明の実施の形態において画像を重ならないように再移動させた状態を示す説明図である。
【符号の説明】
1 CPU
2 ROM
3 RAM
4 ディスプレイ
5 キーボード
6 マウス
7 ハードディスク
A 第1画像
B 第2画像
F 画像編集領域[0001]
BACKGROUND OF THE INVENTION
The present invention relates to an image editing apparatus and an image editing method for editing an image on a computer, for example, used in a DTP system, a printer system, a word processor, and the like.
[0002]
[Prior art]
When creating a printed matter such as a catalog, a flyer, a magazine, or a newspaper, it is necessary to set a layout of a plurality of images arranged on a sheet. Such work is normally performed using a DTP system using a computer such as a personal computer or a workstation.
[0003]
For example, an image editing area corresponding to the size of the paper to be printed is set on the storage circuit of the computer, and this image editing area is displayed on the display. Then, the operator attaches the image (image data) to a desired position in the image editing area while looking at the display. Further, the layout of the image is set by moving the pasted images so as not to overlap each other, or enlarging or reducing the images.
[0004]
[Problems to be solved by the invention]
However, it is difficult to move an image so as not to overlap another image. Further, when a large number of images are arranged in the image editing area, it is difficult to find a position where the image can be moved so as not to overlap with other images. For this reason, the worker has to redo the movement of the image many times, and there is a problem that workability is poor.
[0005]
The present invention has been made in view of the above-described problems. An image editing apparatus and an image editing apparatus that can easily move an image so as not to overlap another image and improve the workability of the image editing work. It aims to provide a method.
[0006]
[Means for Solving the Problems]
In order to solve the above-mentioned problems, the invention of claim 1 is an image editing apparatus for editing a plurality of rectangular images arranged in an image editing area formed on a storage circuit. Moving means for moving the first image within the image editing area; determining means for determining whether the first image moved by the moving means overlaps the second image of the plurality of rectangular images; and determining means Based on the determination result, when the first image overlaps the second image, the trajectory of the moving vertex located on the moving direction side among the vertices of the first image is calculated, and the moving apex moves on the trajectory. By re-moving the first image so as to move in the direction opposite to the moving direction, the first image and the second image are in contact with each other, and the first image and the second image do not overlap each other. And an arrangement means for arranging one image. There.
[0007]
By moving an arbitrary image, that is, the first image among the plurality of rectangular images arranged in the image editing area, the first image is changed to the other of the plurality of rectangular images arranged in the image editing area. When the image overlaps with the second image, that is, the second image, the placement unit first calculates the trajectory of the moving vertex located on the moving direction side among the vertices of the first image. For example, when the first image moves to the lower left, the locus of the lower left vertex of the first image is calculated. Then, the placement unit re-moves the first image so that the moving-side vertex of the first image moves on the locus in the direction opposite to the moving direction. For example, when the first image moves to the lower left, the first image is moved again to the upper right so that the lower left vertex of the first image moves to the upper right along the locus. Furthermore, the update means arranges the first image at a position where the first image is in contact with the second image and does not overlap the second image. Accordingly, the first image can be easily moved so as not to overlap the second image.
[0008]
In the image editing apparatus according to the second aspect of the present invention, the arranging means includes a moving direction calculating means for calculating the moving direction of the first image moved by the moving means, and a moving direction calculating means among the vertices of the first image. Based on the trajectory calculating means obtained by calculating the trajectory of the moving side vertex located on the moving direction side calculated by the above, and when the moving direction is above based on the moving direction of the first image obtained by the moving direction calculating means Select the lower side of the second image, select the upper side of the second image when the moving direction is down, select the right side of the second image when the moving direction is left, and select the right side of the second image Sometimes the left side of the second image is selected, and the right direction of the second image is selected when the moving direction is upper left and the locus is located above the vertex located at the lower right of the second image. And before When the movement direction is upper left and the locus is located below the vertex located at the lower right of the second image, the lower side of the second image is selected, the movement direction is the upper right, and The left side of the second image is selected when the locus is located above the vertex located at the lower left of the second image, the moving direction is the upper right, and the locus is the lower left of the second image. The lower side of the second image is selected when the lower side is positioned below the apex located at the position, the moving direction is lower left, and the trajectory is positioned above the apex located at the upper right side of the second image. The upper side of the second image is selected, the moving direction is lower left, and the right side of the second image is selected when the trajectory is located below the vertex located at the upper right of the second image. Select and move direction is lower right And the upper side of the second image is selected when the trajectory is located above the vertex located at the upper left of the second image, the moving direction is lower right, and the trajectory is the first An edge selecting means for selecting the left side of the second image when located below the vertex located at the upper left of the two images, a straight line including the edge of the second image selected by the edge selecting means, and the locus The first image is re-moved so that the intersection point calculated by calculating the intersection point with the locus obtained by the calculation unit and the intersection point calculated by the intersection point calculation procedure are coincident with the moving-side vertex of the first image. And re-moving means.
[0009]
As a result, the moving-side vertex of the first image moves on the trajectory in a direction opposite to the moving direction of the first image, and the first image touches the second image and does not overlap the second image. Placed in position.
[0010]
The invention according to claim 3 is an image editing method for editing a plurality of rectangular images arranged in an image editing area formed on a storage circuit, wherein the first image of the plurality of rectangular images is stored in the image editing area. Based on a moving procedure to be moved in step, a determination procedure for determining whether or not the first image moved by the moving procedure overlaps a second image of the plurality of rectangular images, and a determination result of the determination procedure When one image overlaps with the second image, the trajectory of the moving vertex located on the moving direction side among the vertices of the first image is calculated, and the moving apex moves in the direction opposite to the moving direction on the trajectory. An arrangement procedure for arranging the first image at a position where the first image and the second image are in contact with each other and the first image and the second image do not overlap each other by moving the first image so as to move to And. Thus, similarly to the first aspect of the invention described above, the first image can be easily moved so as not to overlap the second image.
[0011]
The arrangement procedure in the image editing method according to the invention of claim 4 includes a movement direction calculation procedure obtained by calculating a movement direction of the first image moved by the movement procedure, and a movement direction calculation procedure among the vertices of the first image. Based on the trajectory calculation procedure obtained by calculating the trajectory of the moving vertex located on the movement direction side calculated by the above and the movement direction of the first image obtained by the movement direction calculation procedure, when the movement direction is up Select the lower side of the second image, select the upper side of the second image when the moving direction is down, select the right side of the second image when the moving direction is left, and select the right side of the second image Sometimes the left side of the second image is selected, and the right direction of the second image is selected when the moving direction is upper left and the locus is located above the vertex located at the lower right of the second image. And When the moving direction is upper left and the locus is located below the vertex located at the lower right of the second image, the lower side of the second image is selected, and the moving direction is the upper right, And when the locus is located above the vertex located at the lower left of the second image, the left side of the second image is selected, the moving direction is the upper right, and the locus is the second image. When located below the vertex located at the lower left, the lower side of the second image is selected, the moving direction is lower left, and the locus is above the vertex located at the upper right of the second image. The upper side of the second image is selected when positioned, the moving direction is lower left, and the right side of the second image when the trajectory is positioned lower than the vertex positioned at the upper right of the second image And the direction of movement is right And the upper side of the second image is selected when the trajectory is located above the vertex located at the upper left of the second image, the moving direction is lower right, and the trajectory is the A side selection procedure for selecting the left side of the second image when positioned below the top left vertex of the second image, a straight line including the side of the second image selected by the side selection procedure, and a locus The intersection point calculation procedure obtained by calculating the intersection point with the trajectory obtained by the calculation procedure, and the moving image vertex of the first image coincide with the intersection point calculated by the intersection point calculation procedure. A re-moving procedure for re-moving.
[0012]
Thus, similarly to the above-described invention of claim 2, the moving-side vertex of the first image moves on the locus in the direction opposite to the moving direction of the first image, and the first image is the second image. And is arranged at a position that does not overlap the second image.
[0013]
According to a fifth aspect of the present invention, an image editing processing program recorded on a computer-readable recording medium according to the fifth aspect of the invention is read by a computer, and the computer is executed by executing the image editing processing program. It can function as an image editing device.
[0014]
Further, the image editing processing program recorded on the computer-readable recording medium according to the sixth aspect of the invention is read by the computer and the image editing processing program is executed, whereby the computer is in accordance with the above-mentioned aspect of the invention of claim 2. It can function as an image editing device.
[0015]
DETAILED DESCRIPTION OF THE INVENTION
Hereinafter, embodiments of the present invention will be described with reference to the accompanying drawings.
[0016]
In the present embodiment, a DTP system will be described as an example of an apparatus to which an image editing apparatus and an image editing method according to the present invention are applied.
[0017]
FIG. 1 shows the overall configuration of a DTP system 10 according to the present embodiment. As shown in FIG. 1, the DTP system 10 includes a CPU 11, a ROM 12, a RAM 13, a display 14, a keyboard 15, a mouse 16, a hard disk 17, a printer 18, and the like.
[0018]
The CPU 11 controls the entire DTP system 10. Further, the CPU 11 executes the image editing processing program shown in FIGS. 2 and 3 as will be described later.
[0019]
The ROM 12 stores a program for controlling the entire DTP system 10, the image editing processing program shown in FIGS. 2 and 3, and other various data. The RAM 13 is used as a work area when the CPU 11 performs an image editing process or the like. Further, an image editing area S described later is formed in the RAM 13.
[0020]
The display 14 is composed of a CRT display or a liquid crystal display. The display 14 displays an image editing area S. The hard disk 17 stores image data used for image editing. Further, the printer 18 prints the image editing area S on the printing paper together with the image arranged in the image editing area S. That is, the printer 18 prints the images arranged in the image editing area S while maintaining the mutual arrangement relationship.
[0021]
Here, the image editing area S formed in the RAM 13 of the DTP system 10 will be described. The image editing area S is an area for editing an image as shown in FIG. This image editing area S is an XY coordinate plane. In FIG. 4, the upper left vertex of the image editing area S is the origin (0, 0), and the image editing area S becomes closer to the right side in FIG. And the Y coordinate value of the image editing area S increases as it goes downward in FIG. The size of the image editing area S is set so as to correspond to the size of the printing paper.
[0022]
When performing the image editing process in the image editing area S, the CPU 11 recognizes at least the coordinates of two points facing the diagonal line of the image arranged in the image editing area S, and based on this, the CPU 11 Accordingly, the position and size of the images A and B, the position and length of each side, the moving distance of the image A, and the like can be obtained by calculation. Further, when moving the image A or the like, the CPU 11 limits the moving range of the image so that the image A or the like does not protrude from the image editing area S.
[0023]
The image arranged in the image editing area S has a rectangular outer shape. When creating a printed matter such as a catalog, a flyer, a magazine, or a newspaper, the outer shape of an image arranged on a printing paper is usually a rectangle. Therefore, in the DTP system 10 according to the present embodiment, an image having a rectangular outer shape is edited. It is assumed that. In the DTP system 10 according to this embodiment, an image having a shape other than a rectangle can be edited. In this case, a rectangular frame surrounding the image is assumed, and the rectangular frame and the image are handled in an integrated manner. Thereby, even an image having a shape other than a rectangle can be edited in the same manner as a rectangular image.
[0024]
When image editing is performed by the DTP system 10 configured as described above, the operator calls image data stored in the hard disk 17 and displays the image data on the display 14 by operating the keyboard 15 and the mouse 16. The image editing area S is pasted. Furthermore, the operator can move the image (image data) pasted on the image editing area S by operating the mouse 16. The image can also be moved by inputting coordinates in the image editing area S using the keyboard 15. Further, since the size of the image editing area S displayed on the display 14 is set so as to correspond to the size of the printing paper, the operator is similar to pasting an actual picture or photo on the paper. It is possible to perform image editing work such as image layout setting with the same feeling. Then, the printer 18 can print each image displayed on the display 14 as it is on the printing paper.
[0025]
Next, the image editing processing program executed when performing the image editing processing will be described with reference to FIGS. This image editing processing program performs processing for preventing the moved image from overlapping another image when the image is moved.
[0026]
FIG. 2 shows the main program of the image editing process. In step 11 in FIG. 2, it is determined whether or not the image existing on the image editing area S has moved. That is, it is determined whether the operator operates the mouse 16 or the like while looking at the display 14 to move the image. The movement of the image can be recognized by examining whether or not the vertex coordinates of the image have changed. When the image moves, the process proceeds to step 12.
[0027]
In step 12, it is determined whether or not the moved image overlaps with another image existing on the image editing area S as a result of the image movement. For example, in FIG. 4, as a result of the movement of the image A, the image A overlaps with the image B. That is, the hatched portion in FIG. 4 is an overlapping portion. Whether or not there is such an overlapping portion can be known from the relationship between the coordinates of the vertices of image A and image B.
[0028]
If the result of determination in step 12 is that the moved image overlaps another image existing on the image editing area S, the process proceeds to step 13. On the other hand, when the moved image does not overlap with another image existing on the image editing area S, the process returns to step 11.
[0029]
In step 13, the overlap prevention process shown in FIG. 3 is executed. Here, for convenience of explanation, the moved image (image A) is referred to as a “moving image”, and another image (image B) that overlaps the moving image is referred to as a “fixed image”.
[0030]
That is, in step 21 in FIG. 3, the moving direction of the moving image is obtained by calculation. The moving direction of the moving image can be obtained by comparing the position of the moving image before moving and the position of the moving image after moving. The position of the moving image is the vertex of the moving image as described above. It can be obtained based on coordinates or the like.
[0031]
In step 22, the trajectory of a vertex located on the moving direction side (hereinafter referred to as “moving side vertex”) among the vertices of the moving image is obtained.
[0032]
That is, first, the moving vertex of the moving image is obtained based on the moving direction obtained in step 21. Specifically, when the moving image moves to the upper left, the upper left vertex of the moving image becomes the moving side vertex, and when the moving image moves up, the upper left vertex of the moving image becomes the moving side vertex, and the moving image moves to the upper right. When moved, the upper right vertex of the moving image is set as the moving vertex. The correspondence relationship between the moving direction of the moving image and the moving side vertex is as shown in Table 1. Then, a linear expression that passes through the coordinates of the moving vertex before the moving image moves and the coordinates of the moving vertex after the moving image moves is calculated as the locus of the moving vertex. In Table 1, α, β, and γ are arbitrary numbers.
[0033]
[Table 1]
Figure 0003718984
In step 23, one side of each side of the fixed image is selected based on the moving direction of the moving image. Specifically, when the moving image moves to the upper left and the locus of the moving side vertex is located above the lower right vertex of the fixed image, the right side of the fixed image is selected. When the moving image is moved upward, the lower side of the fixed image is selected. The correspondence relationship between the moving direction of the moving image and the side of the fixed image to be selected is as shown in Table 2.
[0034]
[Table 2]
Figure 0003718984
In step 24, an intersection point between the locus of the moving side vertex of the moving image and the straight line including the side of the fixed image selected in step 23 is obtained by calculation. The linear expression of the trajectory of the moving vertex has already been obtained, and a straight line expression including the side of the fixed image can also be obtained from the coordinates of the vertex of the fixed image. Therefore, based on these equations, the intersection point between the locus of the moving vertex and the straight line including the side of the selected fixed image can be obtained by calculation.
[0035]
In step 25, the moving image is re-moved by the processing of the CPU 11 so that the moving-side vertex of the moving image coincides with the intersection obtained in step 24. As a result, the moving-side vertex of the moving image moves on the trajectory of the moving vertex in the direction opposite to the moving direction instructed by the operator. The moving image is arranged at a position that is in contact with the fixed image and does not overlap the fixed image.
[0036]
As a result, the overlap prevention process ends and the process returns to the main program shown in FIG. Thereafter, the process proceeds to step 12 in FIG. 3. In step 12, it is determined whether or not the moving image overlaps with another fixed image. If the moving image overlaps, the overlap prevention process of step 13 is performed again. On the other hand, when they do not overlap, the process returns to step 11 to monitor the movement of the image again.
[0037]
Here, the above-described overlap prevention process will be specifically described with reference to FIGS. 4 and 5.
[0038]
As shown in FIG. 4, since the operator moves the image A (moving image) to the position of the image A ′, the image A overlaps with the image B. Therefore, the above-described overlap prevention process is executed.
[0039]
As shown in FIG. 4, since the image A has moved to the lower right, the moving-side vertex of the image A becomes the lower right vertex. Accordingly, a linear expression of the locus of the lower right vertex of the image A is obtained. As shown in FIG. 4, since the lower right vertex of the image A has moved from the point a (30, 30) to the point c (60, 60), the linear expression of the locus of the lower right vertex is “y = X ".
[0040]
Furthermore, since this trajectory passes above the upper left vertex b (45, 50) of the image B (fixed image), the upper side of the image B is selected. Then, as shown in FIG. 5, an intersection d (50, 50) between the trajectory “y = x” and the upper side “y = 50” of the image B is obtained.
[0041]
Further, the lower right vertex of the image A is moved again to the intersection d. Thus, the image A is arranged at the position of the image A ″ in FIG. 5. According to FIG. 5, the lower side of the image A and the upper side of the image B are in contact, and the image A and the image B You can see that there is no overlap.
[0042]
In FIG. 5, there is no other image overlapping the image A ″ in a state where the image A is arranged at the position of the image A ″. Therefore, the process ends here.
[0043]
Thus, according to the DTP system 10 according to the present embodiment, the image can be easily moved in the image editing area S so as not to overlap other images, and the workability of image editing can be improved. Further, according to the above-described overlap prevention process, it is possible to move an image so as not to overlap another image by a simple calculation process.
[0044]
In the above embodiment, the DTP system is taken as an example of the image editing apparatus of the present invention. However, the present invention is not limited to this and can be applied to a printer system, a word processor, and the like. The present invention is not limited to the image layout setting for creating a printed matter, and may be used for, for example, arrangement control of an image displayed on a display such as a viewer.
[0045]
【The invention's effect】
As described above in detail, according to the image editing apparatus of the first aspect of the present invention, the moving means for moving the first image of the plurality of rectangular images within the image editing area, and the first moved by the moving means. A determination unit that determines whether or not the image overlaps a second image of the plurality of rectangular images, and each of the first images when the first image overlaps the second image based on a determination result of the determination unit The trajectory of the moving vertex located on the moving direction side among the vertices is calculated, and the first image is moved again so that the moving vertex moves in the direction opposite to the moving direction on the trajectory. Since the first image and the second image are in contact with each other, and the first image and the second image are arranged to be arranged so that the first image is not overlapped with each other, the image is not overlapped with other images. So that it can be moved easily , It is possible to improve the workability of the image editing.
[0046]
According to the image editing apparatus of the second aspect of the invention, the moving means is calculated from the moving direction calculating means for calculating the moving direction of the first image moved by the moving means, and the moving direction among the vertices of the first image. Based on the trajectory calculating means obtained by calculating the trajectory of the moving vertex located on the moving direction side calculated by the calculating means and the moving direction of the first image obtained by the moving direction calculating means, the moving direction is increased. When the movement direction is lower, the lower side of the second image is selected. When the movement direction is lower, the upper side of the second image is selected. When the movement direction is left, the right side of the second image is selected. The right side of the second image is selected when the left side of the second image is selected when it is right, the moving direction is upper left, and the locus is located above the vertex located at the lower right of the second image. Select When the direction is upper left and the trajectory is located below the vertex located at the lower right of the second image, the lower side of the second image is selected, the moving direction is the upper right, and When the trajectory is located above the vertex located at the lower left of the second image, the left side of the second image is selected, the moving direction is the upper right, and the trajectory is at the lower left of the second image. When it is located below the vertex, the lower side of the second image is selected, the moving direction is lower left, and the trajectory is located above the vertex located at the upper right of the second image. Sometimes select the upper side of the second image, select the right side of the second image when the direction of movement is lower left and the trajectory is located below the vertex located at the upper right of the second image And the direction of movement is lower right And when the locus is located above the vertex located at the upper left of the second image, the upper side of the second image is selected, the moving direction is the lower right, and the locus is the second An edge selecting means for selecting the left side of the second image when located below the vertex located at the upper left of the image; a straight line including the edge of the second image selected by the edge selecting means; and the locus calculation The first image is re-moved so that the intersection point calculated by calculating the intersection point with the locus obtained by the means and the intersection point calculated by the intersection point calculation procedure coincide with the moving-side vertex of the first image. Since it is configured to include the re-moving means, the image can be moved so as not to overlap with other images by a simple calculation process.
[0047]
According to the image editing method of the invention of claim 3, as in the invention of claim 1, the image can be easily moved so as not to overlap other images, and the workability of image editing can be improved. it can.
[0048]
According to the image editing method of the invention of claim 4, as in the invention of claim 2, the image can be moved so as not to overlap with other images by a simple calculation process.
[0049]
Even in the case of a computer-readable recording medium in which the image editing processing program according to the invention of claim 5 is recorded, by executing the image editing processing program on a computer, the image is converted into another image as in the invention of claim 1. It can be easily moved so as not to overlap, and the workability of image editing can be improved.
[0050]
Even with a computer-readable recording medium in which an image editing processing program according to the invention of claim 6 is recorded, by executing the image editing processing program on a computer, as in the invention of claim 2, An image can be moved so as not to overlap other images.
[Brief description of the drawings]
FIG. 1 is a block diagram showing a configuration of a DTP system according to an embodiment of the present invention.
FIG. 2 is a flowchart showing processing contents of a main program used for image editing processing in the embodiment of the present invention.
FIG. 3 is a flowchart showing the processing contents of an overlap prevention processing program in the embodiment of the present invention.
FIG. 4 is an explanatory diagram illustrating a state in which two images overlap as a result of moving an image in the embodiment of the present invention.
FIG. 5 is an explanatory diagram showing a state in which images are re-moved so as not to overlap in the embodiment of the present invention.
[Explanation of symbols]
1 CPU
2 ROM
3 RAM
4 Display 5 Keyboard 6 Mouse 7 Hard disk A 1st image B 2nd image F Image editing area

Claims (6)

記憶回路上に形成された画像編集領域に配置された複数の矩形画像を編集する画像編集装置であって、
前記複数の矩形画像のうちの第1画像を画像編集領域内において移動させる移動手段と、
前記移動手段により移動された第1画像が、前記複数の矩形画像のうちの第2画像と重なるか否かを判定する判定手段と、
前記判定手段の判定結果に基づいて前記第1画像が前記第2画像と重なるときに、前記第1画像の各頂点のうち移動方向側に位置する移動側頂点の軌跡を演算し、この移動側頂点が前記軌跡上を前記移動方向と逆の方向に移動するように前記第1画像を再移動させることによって、前記第1画像と第2画像が互いに接し、かつ、これら第1画像と第2画像が互いに重ならない位置に前記第1画像を配置する配置手段と
を備えた画像編集装置。
An image editing apparatus for editing a plurality of rectangular images arranged in an image editing area formed on a storage circuit,
Moving means for moving a first image of the plurality of rectangular images within an image editing area;
Determining means for determining whether or not a first image moved by the moving means overlaps a second image of the plurality of rectangular images;
Based on the determination result of the determination means, when the first image overlaps the second image, the trajectory of the moving vertex located on the moving direction side among the vertices of the first image is calculated, and the moving side The first image and the second image are in contact with each other, and the first image and the second image are moved by moving the first image so that the vertex moves on the locus in the direction opposite to the moving direction. An image editing apparatus comprising: arrangement means for arranging the first image at a position where the images do not overlap each other.
前記配置手段は、
前記移動手段によって移動する前記第1画像の移動方向を演算して求める移動方向演算手段と、
前記第1画像の各頂点のうち、前記移動方向演算手段により演算された移動方向側に位置する移動側頂点の軌跡を演算して求める軌跡演算手段と、
前記移動方向演算手段により求められた前記第1画像の移動方向に基づいて、
A) 前記移動方向が上のときには前記第2画像の下辺を選択し、
B) 前記移動方向が下のときには前記第2画像の上辺を選択し、
C) 前記移動方向が左のときには前記第2画像の右辺を選択し、
D) 前記移動方向が右のときには前記第2画像の左辺を選択し、
E) 前記移動方向が左上であり、かつ、前記軌跡が前記第2画像の右下に位置する頂点よりも上側に位置するときには前記第2画像の右辺を選択し、
F) 前記移動方向が左上であり、かつ、前記軌跡が前記第2画像の右下に位置する頂点よりも下側に位置するときには前記第2画像の下辺を選択し、
G) 前記移動方向が右上であり、かつ、前記軌跡が前記第2画像の左下に位置する頂点よりも上側に位置するときには前記第2画像の左辺を選択し、
H) 前記移動方向が右上であり、かつ、前記軌跡が前記第2画像の左下に位置する頂点よりも下側に位置するときには前記第2画像の下辺を選択し、
I) 前記移動方向が左下であり、かつ、前記軌跡が前記第2画像の右上に位置する頂点よりも上側に位置するときには前記第2画像の上辺を選択し、
J) 前記移動方向が左下であり、かつ、前記軌跡が前記第2画像の右上に位置する頂点よりも下側に位置するときには前記第2画像の右辺を選択し、
K) 前記移動方向が右下であり、かつ、前記軌跡が前記第2画像の左上に位置する頂点よりも上側に位置するときには前記第2画像の上辺を選択し、
L) 前記移動方向が右下であり、かつ、前記軌跡が前記第2画像の左上に位置する頂点よりも下側に位置するときには前記第2画像の左辺を選択する辺選択手段と、
前記辺選択手段により選択された前記第2画像の辺を含む直線と、前記軌跡演算手段により求められた前記軌跡との交点を演算して求める交点演算手段と、
前記交点演算手順により演算された交点に、前記第1画像の移動側頂点を一致させるように、前記第1画像を再移動させる再移動手段と
を備えた請求項1に記載の画像編集装置。
The arrangement means includes
A moving direction calculating means for calculating and calculating a moving direction of the first image moved by the moving means;
Of the vertices of the first image, trajectory calculating means for calculating a trajectory of a moving vertex located on the moving direction side calculated by the moving direction calculating means;
Based on the moving direction of the first image obtained by the moving direction calculating means,
A) When the moving direction is up, select the lower side of the second image,
B) When the moving direction is down, select the upper side of the second image,
C) When the moving direction is left, select the right side of the second image,
D) When the moving direction is right, select the left side of the second image,
E) When the moving direction is upper left and the trajectory is located above the vertex located at the lower right of the second image, the right side of the second image is selected,
F) When the moving direction is upper left and the locus is located below the vertex located at the lower right of the second image, the lower side of the second image is selected,
G) When the moving direction is the upper right and the locus is located above the vertex located at the lower left of the second image, the left side of the second image is selected,
H) When the moving direction is the upper right and the trajectory is located below the vertex located at the lower left of the second image, the lower side of the second image is selected,
I) When the moving direction is lower left and the locus is located above the vertex located at the upper right of the second image, the upper side of the second image is selected,
J) When the moving direction is lower left and the trajectory is located below the vertex located at the upper right of the second image, the right side of the second image is selected,
K) When the moving direction is lower right and the trajectory is located above the vertex located at the upper left of the second image, the upper side of the second image is selected,
L) Side selection means for selecting the left side of the second image when the moving direction is lower right and the trajectory is positioned below a vertex located at the upper left of the second image;
Intersection calculating means for calculating an intersection of a straight line including the side of the second image selected by the edge selecting means and the locus obtained by the locus calculating means;
The image editing apparatus according to claim 1, further comprising: a re-moving unit that re-moves the first image so that the moving-side vertex of the first image matches the intersection calculated by the intersection calculation procedure.
記憶回路上に形成された画像編集領域に配置された複数の矩形画像を編集する画像編集方法であって、
前記複数の矩形画像のうちの第1画像を画像編集領域内において移動させる移動手順と、
前記移動手順により移動された第1画像が、前記複数の矩形画像のうちの第2画像と重なるか否かを判定する判定手順と、
前記判定手順の判定結果に基づいて前記第1画像が前記第2画像と重なるときに、前記第1画像の各頂点のうち移動方向側に位置する移動側頂点の軌跡を演算し、この移動側頂点が前記軌跡上を前記移動方向と逆の方向に移動するように前記第1画像を再移動させることによって、前記第1画像と第2画像が互いに接し、かつ、これら第1画像と第2画像が互いに重ならない位置に前記第1画像を配置する配置手順と
を備えた画像編集方法。
An image editing method for editing a plurality of rectangular images arranged in an image editing area formed on a storage circuit,
A moving procedure for moving a first image of the plurality of rectangular images within an image editing area;
A determination procedure for determining whether or not a first image moved by the movement procedure overlaps a second image of the plurality of rectangular images;
When the first image overlaps the second image based on the determination result of the determination procedure, the trajectory of the moving vertex located on the moving direction side among the vertices of the first image is calculated, and the moving side The first image and the second image are in contact with each other, and the first image and the second image are moved by moving the first image so that the vertex moves on the locus in the direction opposite to the moving direction. An image editing method comprising: an arrangement procedure for arranging the first image at a position where the images do not overlap each other.
前記配置手順は、
前記移動手順によって移動する前記第1画像の移動方向を演算して求める移動方向演算手順と、
前記第1画像の各頂点のうち、前記移動方向演算手順により演算された移動方向側に位置する移動側頂点の軌跡を演算して求める軌跡演算手順と、
前記移動方向演算手順により求められた前記第1画像の移動方向に基づいて、
A) 前記移動方向が上のときには前記第2画像の下辺を選択し、
B) 前記移動方向が下のときには前記第2画像の上辺を選択し、
C) 前記移動方向が左のときには前記第2画像の右辺を選択し、
D) 前記移動方向が右のときには前記第2画像の左辺を選択し、
E) 前記移動方向が左上であり、かつ、前記軌跡が前記第2画像の右下に位置する頂点よりも上側に位置するときには前記第2画像の右辺を選択し、
F) 前記移動方向が左上であり、かつ、前記軌跡が前記第2画像の右下に位置する頂点よりも下側に位置するときには前記第2画像の下辺を選択し、
G) 前記移動方向が右上であり、かつ、前記軌跡が前記第2画像の左下に位置する頂点よりも上側に位置するときには前記第2画像の左辺を選択し、
H) 前記移動方向が右上であり、かつ、前記軌跡が前記第2画像の左下に位置する頂点よりも下側に位置するときには前記第2画像の下辺を選択し、
I) 前記移動方向が左下であり、かつ、前記軌跡が前記第2画像の右上に位置する頂点よりも上側に位置するときには前記第2画像の上辺を選択し、
J) 前記移動方向が左下であり、かつ、前記軌跡が前記第2画像の右上に位置する頂点よりも下側に位置するときには前記第2画像の右辺を選択し、
K) 前記移動方向が右下であり、かつ、前記軌跡が前記第2画像の左上に位置する頂点よりも上側に位置するときには前記第2画像の上辺を選択し、
L) 前記移動方向が右下であり、かつ、前記軌跡が前記第2画像の左上に位置する頂点よりも下側に位置するときには前記第2画像の左辺を選択する辺選択手順と、
前記辺選択手順により選択された前記第2画像の辺を含む直線と、前記軌跡演算手順により求められた前記軌跡との交点を演算して求める交点演算手順と、
前記交点演算手順により演算された交点に、前記第1画像の移動側頂点を一致させるように、前記第1画像を再移動させる再移動手順と
を備えた請求項3に記載の画像編集方法。
The arrangement procedure is as follows:
A moving direction calculation procedure for calculating and calculating a moving direction of the first image moved by the moving procedure;
A trajectory calculation procedure for calculating and calculating a trajectory of a moving vertex located on the moving direction side calculated by the moving direction calculation procedure among the vertices of the first image;
Based on the moving direction of the first image obtained by the moving direction calculation procedure,
A) When the moving direction is up, select the lower side of the second image,
B) When the moving direction is down, select the upper side of the second image,
C) When the moving direction is left, select the right side of the second image,
D) When the moving direction is right, select the left side of the second image,
E) When the moving direction is upper left and the trajectory is located above the vertex located at the lower right of the second image, the right side of the second image is selected,
F) When the moving direction is upper left and the locus is located below the vertex located at the lower right of the second image, the lower side of the second image is selected,
G) When the moving direction is the upper right and the locus is located above the vertex located at the lower left of the second image, the left side of the second image is selected,
H) When the moving direction is the upper right and the trajectory is located below the vertex located at the lower left of the second image, the lower side of the second image is selected,
I) When the moving direction is lower left and the locus is located above the vertex located at the upper right of the second image, the upper side of the second image is selected,
J) When the moving direction is lower left and the trajectory is located below the vertex located at the upper right of the second image, the right side of the second image is selected,
K) When the moving direction is lower right and the trajectory is located above the vertex located at the upper left of the second image, the upper side of the second image is selected,
L) an edge selection procedure for selecting the left side of the second image when the moving direction is lower right and the locus is located below a vertex located at the upper left of the second image;
An intersection calculation procedure for calculating an intersection of a straight line including the side of the second image selected by the edge selection procedure and the locus obtained by the locus calculation procedure;
The image editing method according to claim 3, further comprising: a re-moving procedure for re-moving the first image so that the moving-side vertex of the first image matches the intersection calculated by the intersection calculating procedure.
記憶回路上に形成された画像編集領域に配置された複数の矩形画像を編集する画像編集処理プログラムを記録したコンピュータ読み取り可能な記録媒体であって、前記コンピュータに、
前記複数の矩形画像のうちの第1画像を画像編集領域内において移動させる移動手順と、
前記移動手順により移動された第1画像が、前記複数の矩形画像のうちの第2画像と重なるか否かを判定する判定手順と、
前記判定手順の判定結果に基づいて前記第1画像が前記第2画像と重なるときに、前記第1画像の各頂点のうち移動方向側に位置する移動側頂点の軌跡を演算し、この移動側頂点が前記軌跡上を前記移動方向と逆の方向に移動するように前記第1画像を再移動させることによって、前記第1画像と第2画像が互いに接し、かつ、これら第1画像と第2画像が互いに重ならない位置に前記第1画像を配置する配置手順と
実行させるための画像編集処理プログラムを記録したコンピュータ読み取り可能な媒体。
A computer-readable recording medium storing an image editing processing program for editing a plurality of rectangular images arranged in an image editing area formed on a storage circuit , the computer comprising:
A moving procedure for moving a first image of the plurality of rectangular images within an image editing area;
A determination procedure for determining whether or not a first image moved by the movement procedure overlaps a second image of the plurality of rectangular images;
When the first image overlaps the second image based on the determination result of the determination procedure, the trajectory of the moving vertex located on the moving direction side among the vertices of the first image is calculated, and the moving side The first image and the second image are in contact with each other, and the first image and the second image are moved by moving the first image so that the vertex moves on the locus in the direction opposite to the moving direction. a computer-readable record medium an image editing program for executing the deployment procedure of arranging the first image to a position where the image do not overlap each other.
前記配置手順は、
前記移動手順によって移動する前記第1画像の移動方向を演算して求める移動方向演算手順と、
前記第1画像の各頂点のうち、前記移動方向演算手順により演算された移動方向側に位置する移動側頂点の軌跡を演算して求める軌跡演算手順と、
前記移動方向演算手順により求められた前記第1画像の移動方向に基づいて、
A) 前記移動方向が上のときには前記第2画像の下辺を選択し、
B) 前記移動方向が下のときには前記第2画像の上辺を選択し、
C) 前記移動方向が左のときには前記第2画像の右辺を選択し、
D) 前記移動方向が右のときには前記第2画像の左辺を選択し、
E) 前記移動方向が左上であり、かつ、前記軌跡が前記第2画像の右下に位置する頂点よりも上側に位置するときには前記第2画像の右辺を選択し、
F) 前記移動方向が左上であり、かつ、前記軌跡が前記第2画像の右下に位置する頂点よりも下側に位置するときには前記第2画像の下辺を選択し、
G) 前記移動方向が右上であり、かつ、前記軌跡が前記第2画像の左下に位置する頂点よりも上側に位置するときには前記第2画像の左辺を選択し、
H) 前記移動方向が右上であり、かつ、前記軌跡が前記第2画像の左下に位置する頂点よりも下側に位置するときには前記第2画像の下辺を選択し、
I) 前記移動方向が左下であり、かつ、前記軌跡が前記第2画像の右上に位置する頂点よりも上側に位置するときには前記第2画像の上辺を選択し、
J) 前記移動方向が左下であり、かつ、前記軌跡が前記第2画像の右上に位置する頂点よりも下側に位置するときには前記第2画像の右辺を選択し、
K) 前記移動方向が右下であり、かつ、前記軌跡が前記第2画像の左上に位置する頂点よりも上側に位置するときには前記第2画像の上辺を選択し、
L) 前記移動方向が右下であり、かつ、前記軌跡が前記第2画像の左上に位置する頂点よりも下側に位置するときには前記第2画像の左辺を選択する辺選択手順と、
前記辺選択手順により選択された前記第2画像の辺を含む直線と、前記軌跡演算手順により求められた前記軌跡との交点を演算して求める交点演算手順と、
前記交点演算手順により演算された交点に、前記第1画像の移動側頂点を一致させるように、前記第1画像を再移動させる再移動手順と
を備えた請求項5に記載の画像編集処理プログラムを記録したコンピュータ読み取り可能な媒体。
The arrangement procedure is as follows:
A moving direction calculation procedure for calculating and calculating a moving direction of the first image moved by the moving procedure;
A trajectory calculation procedure for calculating and calculating a trajectory of a moving vertex located on the moving direction side calculated by the moving direction calculation procedure among the vertices of the first image;
Based on the moving direction of the first image obtained by the moving direction calculation procedure,
A) When the moving direction is up, select the lower side of the second image,
B) When the moving direction is down, select the upper side of the second image,
C) When the moving direction is left, select the right side of the second image,
D) When the moving direction is right, select the left side of the second image,
E) When the moving direction is upper left and the trajectory is located above the vertex located at the lower right of the second image, the right side of the second image is selected,
F) When the moving direction is upper left and the locus is located below the vertex located at the lower right of the second image, the lower side of the second image is selected,
G) When the moving direction is the upper right and the locus is located above the vertex located at the lower left of the second image, the left side of the second image is selected,
H) When the moving direction is the upper right and the trajectory is located below the vertex located at the lower left of the second image, the lower side of the second image is selected,
I) When the moving direction is lower left and the locus is located above the vertex located at the upper right of the second image, the upper side of the second image is selected,
J) When the moving direction is lower left and the trajectory is located below the vertex located at the upper right of the second image, the right side of the second image is selected,
K) When the moving direction is lower right and the trajectory is located above the vertex located at the upper left of the second image, the upper side of the second image is selected,
L) an edge selection procedure for selecting the left side of the second image when the moving direction is lower right and the locus is located below a vertex located at the upper left of the second image;
An intersection calculation procedure for calculating an intersection of a straight line including the side of the second image selected by the edge selection procedure and the locus obtained by the locus calculation procedure;
The image editing processing program according to claim 5, further comprising a re-moving procedure for re-moving the first image so that the moving-side vertex of the first image coincides with the intersection calculated by the intersection calculating procedure. a computer-readable record medium.
JP02194898A 1998-02-03 1998-02-03 Image editing apparatus, image editing method, and computer-readable recording medium recording image editing processing program Expired - Fee Related JP3718984B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP02194898A JP3718984B2 (en) 1998-02-03 1998-02-03 Image editing apparatus, image editing method, and computer-readable recording medium recording image editing processing program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP02194898A JP3718984B2 (en) 1998-02-03 1998-02-03 Image editing apparatus, image editing method, and computer-readable recording medium recording image editing processing program

Publications (2)

Publication Number Publication Date
JPH11219441A JPH11219441A (en) 1999-08-10
JP3718984B2 true JP3718984B2 (en) 2005-11-24

Family

ID=12069295

Family Applications (1)

Application Number Title Priority Date Filing Date
JP02194898A Expired - Fee Related JP3718984B2 (en) 1998-02-03 1998-02-03 Image editing apparatus, image editing method, and computer-readable recording medium recording image editing processing program

Country Status (1)

Country Link
JP (1) JP3718984B2 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4168980B2 (en) * 2003-08-22 2008-10-22 セイコーエプソン株式会社 Element layout device, element layout program, and element layout method
WO2005031559A1 (en) * 2003-09-25 2005-04-07 Dai Nippon Printing Co., Ltd Image outputting apparatus and image outputting method
GB2412264A (en) * 2004-03-20 2005-09-21 Hewlett Packard Development Co Improvements in and relating to multiple printing passes

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3041014B2 (en) * 1990-04-02 2000-05-15 三菱電機株式会社 Graphic output method
JP3858310B2 (en) * 1996-10-01 2006-12-13 株式会社ニコン Source file editing device

Also Published As

Publication number Publication date
JPH11219441A (en) 1999-08-10

Similar Documents

Publication Publication Date Title
US5337406A (en) Document processing apparatus for simultaneously displaying graphic data, image data, and character data for a frame
JP4083827B2 (en) Image processing method and image processing apparatus
JP4175625B2 (en) Apparatus and method for print preview
JP3718984B2 (en) Image editing apparatus, image editing method, and computer-readable recording medium recording image editing processing program
JP3718983B2 (en) Image editing apparatus, image editing method, and computer-readable recording medium recording image editing processing program
JP2005094717A (en) Map processing system
JPS62271070A (en) Display device
JP3607913B2 (en) Image display device
JP3608921B2 (en) Line drawing processing method and apparatus, and recording medium on which program for executing the processing is recorded
JPS6115465A (en) Picture editing device
JP2635311B2 (en) Document processing device
JPH11219440A (en) Image editing device, image editing method and recording medium recording image editing processing program
JP4266392B2 (en) Document processing apparatus and method
JPH07105212A (en) Layout design device
JPH05274413A (en) Drawing processor
JPS62168275A (en) Processing system for picture editing
JP2020144453A (en) Image editing device and image editing method
JPH07160760A (en) Layout design device
JPH03282589A (en) Document preparing device
JP2000001026A (en) Apparatus and method for processing information
JPH08315161A (en) Stripping system
JPH07334550A (en) Device for generating line equipment drawing
JPH0391873A (en) Picture processing device
JPH03107156A (en) Layout device for printing plate making
JPH063800A (en) Image processing method

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20050427

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20050502

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20050527

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20050816

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20050829

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: 20090916

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20090916

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20100916

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20100916

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20110916

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20110916

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20120916

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20130916

Year of fee payment: 8

LAPS Cancellation because of no payment of annual fees