JP2005321908A - Character string arranging device, character string arranging method, program and recording medium - Google Patents
Character string arranging device, character string arranging method, program and recording medium Download PDFInfo
- Publication number
- JP2005321908A JP2005321908A JP2004138043A JP2004138043A JP2005321908A JP 2005321908 A JP2005321908 A JP 2005321908A JP 2004138043 A JP2004138043 A JP 2004138043A JP 2004138043 A JP2004138043 A JP 2004138043A JP 2005321908 A JP2005321908 A JP 2005321908A
- Authority
- JP
- Japan
- Prior art keywords
- area
- character string
- calculating
- image
- character
- 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.)
- Granted
Links
Images
Landscapes
- Processing Or Creating Images (AREA)
Abstract
Description
本発明は、画像編集処理を行う文字列配置装置等に関するものであり、詳細には、入力された文字列をリアルタイムに画像と合成して表示装置上に反映する機能を有する文字列配置装置等に関する。
BACKGROUND OF THE
近年、パーソナルコンピュータにおいて、「画像編集ソフト」等のアプリケーションツールにより任意形状の画像に文字列を挿入し、配置された複数の文字列の配置換えを行い、文字列を画像に収める画像編集方法が考えられている。 In recent years, an image editing method for inserting a character string into an image of an arbitrary shape by an application tool such as “image editing software” in a personal computer, rearranging a plurality of arranged character strings, and storing the character strings in an image It is considered.
その1つとして、特許文献1に文字列を任意形状の領域内に配置する画像編集方法に関し、文章と図形(挿絵など)とを組み合わせた画像の形成などを行う画像編集方法が開示されている。この画像編集方法においては、段落番号[0004]等に記載されているように、特に作業者が編集画面上で見取り図の配置位置を指定し、説明文と見取り図との合成を指示すると、画像編集処理として、説明文と見取り図との重なりの有無を文字セル(1文字分のドットマトリクス)毎に調べ、見取り図と重なる文字を行方向にずらし、且つ必要に応じて改行する文字移動処理が行われ、これによって見取り図の周囲に説明文を配置した1ページの画像が作成されるように動作するものである。また、同時に段落番号[0010]乃至[0016]にもこの画像編集方法について詳細に記載されている。
As one of such methods,
また、特許文献2には、コンピュータシステムを用いて、カタログのレイアウトを行う際に、紙面に掲載する文章や写真等の素材データの割付作業を自動化すると共に、割付後の微調整を容易なものとする装置が開示されている。
この装置においては、段落番号[0009]等に記載されているように、特にデータベースによって関連付けられた画像データと文字データがあり、任意形状の領域に対し、画像または文字のいずれかに優先順位を付け、レイアウトする。 In this apparatus, as described in paragraph [0009] and the like, there is image data and character data particularly associated by a database, and priority is given to either an image or a character for an area of arbitrary shape. And layout.
このとき、双方の画像が任意形状の領域内に収まらない場合、コンピュータが作業者に警告するように動作するものである。また、同時に段落番号[0067]乃至[0069]にもこのシステムについて詳細に記載されている。 At this time, if both the images do not fit in the area of the arbitrary shape, the computer operates so as to warn the operator. At the same time, the system is described in detail in paragraph numbers [0067] to [0069].
しかしながら、特許文献1に記載の画像編集システムでは、文字列を任意形状の領域内に配置することが可能であるが、特に文字セル(1文字分のドットマトリクス)単位での配置を行う為、1単位の文字列の移動距離が大きく、文字列の配置位置を微細に調整することが困難であるという問題点がある。
However, in the image editing system described in
また、特許文献2に記載の文字・画像割付装置においては、画像データや文字データを任意形状の領域内に自動的に配置するための技術は開示されているが、文字と画像の詳細なレイアウトを施すことが困難であるという問題点がある。
Further, in the character / image allocation device described in
また、画像データの余白部分を使用できず、仮に余白部分を使用するならば、画像データを一旦トリミングするなどして、修正を施す必要があり、労力的負担等が増大し、つまり、文字列等を容易に画像に納められないという問題点がある。 In addition, if the margin portion of the image data cannot be used, and if the margin portion is used, it is necessary to make a correction by trimming the image data once, etc., which increases the labor burden and the like. Etc. cannot be easily put in the image.
本発明はこのような問題を鑑みてなされたもので、その目的とするところは、文字列等を画像に容易に合成する、文字列配置装置等を提供することである。 The present invention has been made in view of such problems, and an object of the present invention is to provide a character string arrangement device or the like that easily combines a character string or the like with an image.
前述した目的を達成するための第1の発明は、表示領域に画像と共に少なくとも1の文字から構成される文字列を配置する文字列配置装置であって、前記画像において編集を許可しない領域を示す編集不可領域を算出する編集不可領域算出手段と、前記文字列が占める領域である文字列領域を算出する文字列領域算出手段と、前記表示領域において、前記文字列領域と前記編集不可領域とが重ならない領域を算出することにより、前記文字列を配置可能な領域である配置可能領域を算出して識別可能に表示する配置可能領域算出手段と、を具備することを特徴とする文字列配置装置である。 A first invention for achieving the above-described object is a character string arranging device that arranges a character string composed of at least one character together with an image in a display area, and indicates an area in which editing is not permitted in the image. Non-editable area calculating means for calculating the non-editable area, character string area calculating means for calculating a character string area that is an area occupied by the character string, and in the display area, the character string area and the non-editable area are: A character string arranging device comprising: a dispositionable area calculating unit that calculates a dispositionable area that is a region in which the character string can be disposed by calculating a non-overlapping area, and displays the recognizable area. It is.
表示領域とは、画像や文字列等を表示する領域を示し、表示装置の画面全体、或いは、アプリケーションの中で指定される表示領域のことを示す。
画像とは、写真画像、イラスト画像、ロゴマーク等を含む画像等である。例えば写真画像は、被写体部分と余白部分に分けられ、被写体部分を編集不可領域として被写体部分に重ならないように文字列が配置される。
編集不可領域とは、文字の重ね置き、合成処理等を許可しない領域であり、例えば、写真画像の場合、被写体部分であり、イラスト画像の場合、イラスト部分である。
文字列とは、字句、数字、記号、符号等、また文字列に限らず所定の形状の画像やイラスト等、合成用の画像等を含む概念である。
文字列領域は、文字列が占める領域であり、例えば、行毎に文字列を内包する矩形領域あるいは各文字毎の矩形領域を組み合わせた形状の領域等である。
配置可能領域とは、文字列領域と編集不可領域が重ならない領域であり、文字列の配置を可能とする領域である。配置可能領域の表示色を他と異なる色で表示したり斜線等を施して、他の領域との区別を行い識別可能とするようにしてもよい。
The display area indicates an area for displaying an image, a character string, and the like, and indicates an entire screen of the display device or a display area specified in an application.
An image is an image including a photographic image, an illustration image, a logo mark, or the like. For example, a photographic image is divided into a subject portion and a margin portion, and a character string is arranged so that the subject portion is not editable and does not overlap the subject portion.
The non-editable area is an area that does not allow character superposition, composition processing, and the like. For example, in the case of a photographic image, it is a subject part, and in the case of an illustration image, it is an illustration part.
The character string is a concept including a lexical word, a number, a symbol, a code, and the like, and an image for synthesis such as an image or an illustration of a predetermined shape as well as the character string.
The character string area is an area occupied by the character string. For example, the character string area is a rectangular area containing the character string for each line or a combined area of the rectangular areas for each character.
The placeable area is an area where the character string area and the non-editable area do not overlap, and is an area where the character string can be placed. The display color of the arrangementable area may be displayed in a different color from other colors, or may be hatched to distinguish it from other areas so that it can be identified.
第1の発明による文字列配置装置は、表示領域に表示される画像において、編集を許可しない領域を示す編集不可領域を算出し、入力された文字列が占める領域である文字列領域を算出し、文字列領域と編集不可領域が重ならない領域を算出することにより、文字列を配置可能な領域である配置可能領域を算出し、当該配置可能領域を色別表示等により識別可能に表示する。 The character string arrangement device according to the first invention calculates an uneditable area indicating an area where editing is not permitted in an image displayed in the display area, and calculates a character string area which is an area occupied by the input character string. Then, by calculating an area where the character string area and the non-editable area do not overlap with each other, an allocable area that is an area where the character string can be arranged is calculated, and the allocable area is displayed so as to be identifiable by color display or the like.
また、文字列配置装置は、取得した画像から編集不可領域を算出することに換えて、編集不可領域に関する情報が予め付加された画像を取得するようにしてもよい。この場合、文字列配置装置において編集不可領域を算出する必要はない。 Further, the character string arrangement device may acquire an image to which information related to the non-editable area is added in advance, instead of calculating the non-editable area from the acquired image. In this case, it is not necessary to calculate the non-editable area in the character string arrangement device.
また、文字列配置装置は、文字列を構成する各文字の入力毎に、文字列領域を算出し、配置可能領域を算出して表示することが望ましい。 In addition, it is desirable that the character string arrangement device calculates a character string area and calculates and displays an arrangement possible area for each input of each character constituting the character string.
また、文字列配置装置は、文字列領域が配置可能領域の範囲内に収まらない場合、配置可能領域の範囲内に文字列領域を移動することが望ましい。この場合、文字列配置装置は、移動に要する距離が最小となる移動先を算出し、当該移動先に文字列領域を移動させるようにしてもよい。 In addition, when the character string area does not fall within the range of the arrangeable area, the character string arrangement device desirably moves the character string area within the range of the arrangeable area. In this case, the character string arrangement device may calculate a movement destination that minimizes the distance required for movement, and move the character string area to the movement destination.
また、文字列配置装置は、文字列を構成する各文字の高さ及び幅に基づいて文字列領域を算出するようにしてもよい。
例えば、文字列配置装置は、行毎に文字列を内包する矩形領域を作成して文字列領域を算出するようにしてもよいし、各文字毎に当該文字を内包する矩形領域を作成して文字列領域を算出するようにしてもよい。
また、文字列配置装置は、表示領域上の画素を文字列領域の配置を判断しつつ走査し、当該文字列領域と編集不可領域との間に重なり部分が存在しない場合における、表示領域において当該文字列領域が占める領域の和集合を配置可能領域とすることが望ましい。
Further, the character string arrangement device may calculate the character string region based on the height and width of each character constituting the character string.
For example, the character string placement device may calculate a character string region by creating a rectangular region containing a character string for each line, or create a rectangular region containing the character for each character. The character string area may be calculated.
Further, the character string arranging device scans the pixels on the display area while judging the arrangement of the character string area, and the character string arranging device performs the scanning in the display area when there is no overlapping portion between the character string area and the non-editable area. It is desirable that the union of the areas occupied by the character string area is the placeable area.
第1の発明では、文字列配置装置は、各文字の入力毎に、リアルタイムに文字列の配置可能な画像領域を示すので、操作者は、文字列の配置可能な領域を確認しながら、画像と文字列を容易に合成・編集することができる。
また、文字列配置装置は、入力された文字列を配置可能な領域に自動的に配置するので、操作者の労力を軽減することができる。
In the first invention, the character string arranging device shows an image area in which the character string can be arranged in real time for each character input. Can be easily synthesized and edited.
Moreover, since the character string arrangement device automatically arranges the input character string in an area where the character string can be arranged, the labor of the operator can be reduced.
第2の発明は、コンピュータを、表示領域に画像と共に少なくとも1の文字から構成される文字列を配置する文字列配置装置として機能させるプログラムであって、前記画像において編集を許可しない領域を示す編集不可領域を算出する編集不可領域算出手段と、前記文字列が占める領域である文字列領域を算出する文字列領域算出手段と、前記表示領域において、前記文字列領域と前記編集不可領域とが重ならない領域を算出することにより、前記文字列を配置可能な領域である配置可能領域を算出する配置可能領域算出手段、として機能させるプログラムである。 A second invention is a program for causing a computer to function as a character string arranging device that arranges a character string composed of at least one character together with an image in a display area, wherein the editing indicates an area in which editing is not permitted in the image In the non-editable area calculating means for calculating the non-editable area, the character string area calculating means for calculating the character string area which is the area occupied by the character string, and the character string area and the non-editable area overlap in the display area. This is a program that functions as an allocable area calculating unit that calculates an allocable area, which is an area where the character string can be laid, by calculating an area that should not be.
第3の発明は、コンピュータを、表示領域に画像と共に少なくとも1の文字から構成される文字列を配置する文字列配置装置として機能させるプログラムを記録したコンピュータ読取可能な記録媒体であって、前記画像において編集を許可しない領域を示す編集不可領域を算出する編集不可領域算出手段と、前記文字列が占める領域である文字列領域を算出する文字列領域算出手段と、前記表示領域において、前記文字列領域と前記編集不可領域とが重ならない領域を算出することにより、前記文字列を配置可能な領域である配置可能領域を算出する配置可能領域算出手段、として機能させるプログラムを記録したコンピュータ読取可能な記録媒体である。 A third invention is a computer-readable recording medium recording a program that causes a computer to function as a character string arranging device that arranges a character string including at least one character together with an image in a display area. In the edit area, the non-editable area calculating means for calculating the non-editable area indicating the area where editing is not permitted, the character string area calculating means for calculating the character string area that is the area occupied by the character string, and the character string in the display area A computer-readable recording medium storing a program that functions as an allocable area calculating unit that calculates an allocable area that is an area where the character string can be laid out by calculating an area where the area and the non-editable area do not overlap. It is a recording medium.
第2の発明は、コンピュータを第1の発明の文字列配置装置として機能させるプログラムに関する発明である。
第3の発明は、コンピュータを第1の発明の文字列配置装置として機能させるプログラムを記録したコンピュータ読取可能な記録媒体に関する発明である。
尚、上記のプログラムをCD−ROM等の記録媒体に保持させて流通させてもよいし、このプログラムを通信回線を介して送受することもできる。
The second invention is an invention relating to a program for causing a computer to function as the character string arranging device of the first invention.
The third invention is an invention relating to a computer-readable recording medium on which a program for causing a computer to function as the character string arranging device of the first invention is recorded.
Note that the above program may be distributed by being held on a recording medium such as a CD-ROM, or the program can be transmitted and received via a communication line.
第4の発明は、表示領域に画像と共に少なくとも1の文字から構成される文字列を配置する文字列配置方法であって、前記画像において編集を許可しない領域を示す編集不可領域を算出する編集不可領域算出ステップと、前記文字列が占める領域である文字列領域を算出する文字列領域算出ステップと、前記表示領域において、前記文字列領域と前記編集不可領域とが重ならない領域を算出することにより、前記文字列を配置可能な領域である配置可能領域を算出する配置可能領域算出ステップと、を具備することを特徴とする文字列配置方法である。 A fourth invention is a character string arrangement method for arranging a character string composed of at least one character together with an image in a display area, wherein the editable area for calculating an uneditable area indicating an area that is not permitted to be edited in the image is calculated. An area calculating step, a character string area calculating step for calculating a character string area that is an area occupied by the character string, and calculating an area where the character string area and the non-editable area do not overlap in the display area. An arrangement possible area calculating step of calculating an arrangement possible area that is an area in which the character string can be arranged.
第4の発明は、第1の発明の文字列配置装置における、文字列配置方法に関する発明である。 4th invention is the invention regarding the character string arrangement | positioning method in the character string arrangement | positioning apparatus of 1st invention.
本発明によれば、文字列を画像に容易に合成する、文字列配置装置等を提供することができる。 ADVANTAGE OF THE INVENTION According to this invention, the character string arrangement | positioning apparatus etc. which synthesize | combine a character string easily to an image can be provided.
以下に、図面に基づいて本発明の実施の形態を詳細に説明する。図1は、本実施の形態に係る文字列配置装置1の構成を示す図である。
Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings. FIG. 1 is a diagram showing a configuration of a character
(1.構成)
(1−1.文字列配置装置1の構成)
文字列配置装置1は、中央処理装置(CPU)等を備える制御部3と、ROM、RAM、HDD等の記憶部5と、ネットワークに接続するモデムやLANボード等の通信部7と、プリンタ等の印刷部9と、CRTや液晶表示装置等の表示部11と、キーボード、マウス又はマイク等の入力部13と、画像情報等をメディアを介して読み込み書き込みを行うメディア入出力部15とから構成され、それぞれがバス17で互いに接続されている。文字列配置装置1はコンピュータ等の装置であり、記憶部5等に格納される実行プログラム(アプリケーションプログラム)が起動されて動作する。
(1. Configuration)
(1-1. Configuration of Character String Arrangement Device 1)
The character
尚、図示していないが、メディア入出力部15には、画像情報を取得するデジタルカメラ等の画像取得装置、フレキシブルディスク等の可搬型メディアにアクセスする装置、取得した画像等を記憶する外部記憶装置等が接続される。
Although not shown, the media input /
(1−2.記憶部5の構成)
図2は、文字列配置装置1の記憶部5の構成を示す。記憶部5は、ROM(Read Only Memory)19とRAM(Random Access Memory)21とからなる。ROM19は、読み出し専用の記憶部であり、システム全体を管理するソフトウェアであるOS(Operating
System)25、実行プログラム23等を格納する。RAM21は、読み出し書き込みの可能な記憶部であり、本実施の形態における画像データ27、プログラム実行時の作業用データ29等を格納する領域を備える。
(1-2. Configuration of Storage Unit 5)
FIG. 2 shows the configuration of the
System) 25, an
尚、記録部5内においてROM19に実行プログラム23、OS25等が記録される例を示しているが、当然のことながらこれに限られず、CD−ROM、DVD−ROM等の可搬型メディア、HDD等の外部記憶装置等に格納されていても本実施の形態に係る発明を実現することができる。
Although an example in which the
(2.文字列配置アプリケーションの動作について)
本実施の形態の文字列配置装置1は、記憶部5に格納されている文字列配置アプリケーションの実行プログラム23が起動されると、制御部3は、液晶表示装置などの表示部11に図3(a)に示す文字列配置アプリケーションウィンドウ31を表示する。尚、制御部3は、可搬型メディアや外部記憶装置等に格納されている実行プログラム23を、RAM21にロードして実行しても良い。
(2. About the operation of the character string placement application)
In the character
図3(a)に示すように、文字列配置アプリケーションウィンドウ31には、アプリケーションを終了するためのアプリケーション終了ボタン46、画像表示領域33、テキストエリア45、OKボタン47等が配置される。
As shown in FIG. 3A, an
画像表示領域33には、通信部7を介して取得したネットワーク上の画像35、或いはメディア入出力部15を介して可搬型メディアや外部記憶装置等から取得した画像35が表示される。
In the
尚、本実施の形態で説明する画像35が、例えば写真画像であるとすると、画像35は被写体37部分と余白39部分に分けられる。テキストエリア45に入力する文字列は余白39部分に配置するものとする。
If the
また、後述するが、画像表示領域33と画像35の左上を揃えて配置し、画像表示領域33の左上を基準点として、横方向に座標軸X41、縦方向に座標軸Y43をとり、座標の単位をドットとして、画像35中のドットの位置を指定するものとする。
As will be described later, the
図3(b)、図3(c)は、テキストエリア45に文字等が入力されると、画像35上にどのように文字が配置されていくかを示す図である。図3(b)は、「あい」の2文字が入力された場合、画像35の左上に「あい」が配置される文字列領域49−1が示され、同時に、「あい」が配置可能な文字配置可能領域51−1が、表示色等を変えて表示される(図3(b)では文字配置可能領域51−1を斜線で示す)。
FIGS. 3B and 3C are diagrams showing how characters are arranged on the
入力文字列が、「あい」+「う」+「え」・・と1文字ずつ増加するに従って、入力の都度、図3(c)のように文字列領域49−2に表示され、文字配置可能領域51−2は、図3(b)の領域よりも縮小されている。 As the input character string increases by one character, “Ai” + “U” + “E”..., The character string is displayed in the character string area 49-2 as shown in FIG. The possible area 51-2 is smaller than the area shown in FIG.
操作者は文字列領域49−2を、画面35上の希望する位置にドラッグアンドドロップすることで文字配置可能領域51−2の範囲の中で移動することができる。また、後述するが、本実施の形態では、文字列の移動された領域が文字配置可能領域51−2から外れた場合、文字列領域49−2の左上の座標に最も近い位置の文字配置可能領域51−2に、文字列領域49−2を自動的に移動する機能を備える。
The operator can move the character string area 49-2 within the range of the character arrangement possible area 51-2 by dragging and dropping the character string area 49-2 to a desired position on the
(3.処理手順)
(3−1.主処理手順)
次に、図4乃至図10に示すフローチャートに従って、本実施の形態の文字列配置装置1の処理手順を示す。尚、図11乃至図19はフローチャートを説明する図であり、適宜説明する。
また、文字列配置装置1は、記憶部5(HDD等)等に格納するプログラム(実行プログラム23、OS25のプログラム等)をRAM21上にロードしてCPU(制御部3)の制御の下に以下の各ステップを実行する。
(3. Processing procedure)
(3-1. Main processing procedure)
Next, a processing procedure of the character
Further, the character
図4は、本実施の形態の文字列配置装置1の主処理手順を示す。まず、文字列配置装置1の制御部3は、画像取得等の初期設定情報取得処理1000を行う。詳細については後述する。初期設定情報取得処理1000が終了すると、制御部3はイベント監視2000を行う。
FIG. 4 shows a main processing procedure of the character
イベント監視2000とは、マウスやキーボード等の入力部13から得られる操作を監視することである。図3に示すアプリケーション終了ボタン46がクリックされると、イベント監視2000が終了し、文字列配置アプリケーションが終了する。詳細については後述する。
The
(3−2.初期設定情報取得処理)
図5は、初期設定情報取得処理1000を示すフローチャートである。まず、操作者が本実施の形態の文字列配置装置1において文字列配置アプリケーションを起動する。制御部3は、記憶部5のROM19に格納されている文字列配置アプリケーションの実行プログラム23を、適宜RAM21にロードして実行する。尚、実行プログラム23は、可搬型メディアや、外部記録装置等に格納されるものであっても良い。
(3-2. Initial setting information acquisition process)
FIG. 5 is a flowchart showing the initial setting
制御部3は、液晶表示装置等の表示部11に、図3(a)に示す文字列配置アプリケーションウィンドウ31を表示する。操作者が、文字列を入力合成する基になる画像35を指定すると(画像35の指定方法についての説明は省略する)、制御部3は指定された画像35を取得し(ステップ1001)、該文字列配置アプリケーションウィンドウ31の画像表示領域33の左上に、画像35の左上を合わせて配置し表示させる。即ち、画像35の基準点53(0,0)(図11に示す)と、画像表示領域33の座標の基準点(0,0)とを一致させる。
The
尚、画像35は、記憶部5、可搬型メディア、又は外部記録装置等に格納されている。また、画像35を通信部7からネットワーク経由で読み込むようにしても良い。
The
図11に、取得した画像35を示す。画像35は、被写体37部分と余白39部分から成るものとする。本実施の形態では、被写体37部分に文字列が重なることを回避し、余白39部分に文字列を配置する。
FIG. 11 shows the acquired
図11において、画像35の左上の画素を基準点53(0,0)とし、画像35の右下の画素を対角点54とすると、対角点54のX座標は、画像幅55を示すMax_Xであり、Y座標は画像高56を示すMax_Yである。制御部3は、画像幅55(Max_X)と、画像高56(Max_Y)のデータを記憶部5(RAM21)に作業用データ29として格納する(ステップ1002)。
In FIG. 11, assuming that the upper left pixel of the
例えば、VGA(640×480)の画像であれば、Max_X=640、Max_Y=480を得る。また、200万画素程度の写真画像(例えば、1600×1200)であれば、Max_X=1600、Max_Y=1200を得る。 For example, if the image is VGA (640 × 480), Max_X = 640 and Max_Y = 480 are obtained. For a photographic image of about 2 million pixels (for example, 1600 × 1200), Max_X = 1600 and Max_Y = 1200 are obtained.
次に、図12に示すように、制御部3は、画像35の全画素について、被写体37部分をビット情報「1」に変換し、余白39部分をビット情報[0]に変換し、画像データ27として記憶部5のRAM21に格納する(ステップ1003)。
Next, as shown in FIG. 12, the
尚、上記に示した、画像データをビット情報に変換する処理に関しては、被写体部分のビット情報を[1]、余白部分のビット情報を[0]などとする技術が開示されており、この技術を用いることができる(特開2003−224819号公報参照)。 Regarding the above-described processing for converting image data into bit information, a technique is disclosed in which the bit information of the subject portion is [1], the bit information of the margin portion is [0], and the like. Can be used (see JP 2003-224819 A).
また、上記技術を採用したカメラ等で撮影した画像であれば、カメラ等において、被写体部分のビット情報を[1]、余白部分のビット情報を[0]とする処理が行われているため、文字列配置装置1において変換する処理は必要なくなる。
In addition, in the case of an image shot with a camera or the like that employs the above technique, since the bit information of the subject portion is [1] and the bit information of the margin portion is [0] in the camera or the like, The conversion processing in the character
制御部3は、初期設定情報取得処理1000を終了し、イベント監視2000のステップに進む。
The
(3−3.イベント監視)
マウスやキーボード等の入力部13から得られる操作をイベントとする。制御部3は、イベントを監視、即ち入力待ち状態である。図6にイベント監視2000のフローチャートを示す。
(3-3. Event monitoring)
An operation obtained from the
制御部3は、イベントが発生すると(ステップ2001)、イベント情報を読み取り、イベントが「アプリケーション終了」の場合、即ち図3にてアプリケーション終了ボタン46がクリックされた場合には(ステップ2002のYES)、処理中のイベントを中断し(ステップ2003)、アプリケーションを終了する。
When an event occurs (step 2001), the
イベントが、「アプリケーション終了」以外、例えばテキストエリア45への文字入力やOKボタン47のクリック、また文字列の移動操作等の場合(ステップ2002のNO)、制御部3は、既にイベント処理が動作中であれば(ステップ2004のYES)、当該イベント処理を中断して(ステップ2005)、イベント処理3000のステップに移る。イベント処理が動作中でなければ(ステップ2004のNO)、そのままイベント処理3000のステップに移る。
When the event is other than “application end”, for example, when a character is input to the
尚、図6に示すイベント監視は、イベント処理3000とは別個のスレッド(又はプロセス)として実行されており、制御部3は、常にイベント発生を監視する。
Note that the event monitoring shown in FIG. 6 is executed as a thread (or process) separate from the
従って、イベント処理3000にステップが移って、図7に示すイベント処理が実行されていても、制御部3が、イベント監視スレッド(又はプロセス)においてイベントの発生を検知するとイベント発生2001のステップに移る。
Therefore, even if the step moves to the
このようにイベント監視スレッド(又はプロセス)とイベント処理スレッド(又はプロセス)を同時に実行し、制御部3が、イベント監視スレッド(又はプロセス)においてイベント発生を検知した場合には、制御部3は、図6に示すイベント監視のステップ2005において、既に実行されているイベント処理を中断して、ステップ3000において新たなイベント処理を再度実行することになる。
In this way, when the event monitoring thread (or process) and the event processing thread (or process) are simultaneously executed and the
上述したように、イベント処理スレッド(又はプロセス)の実行中に、割り込みを認めることにより、画像上に最新の文字列領域を反映することができるようになるため、リアルタイムな表示を可能にする。 As described above, since the latest character string area can be reflected on the image by allowing an interrupt during the execution of the event processing thread (or process), real-time display is possible.
(3−3−0.イベント処理)
次に、図7に示すイベント処理3000のフローチャートを説明する。制御部3は、イベント処理3000を開始すると、まず文字列の形データ取得処理4000を行う。詳細については図8で説明するが、入力文字列を1行毎に矩形領域として算出し、少なくとも1行からなる文字列の形を、矩形領域が合成されたデータとして取得する。
(3-3-0. Event processing)
Next, a flowchart of the
次に制御部3は、配置可能エリア表示処理5000を行う。詳細については図9で説明するが、入力文字列が配置可能な領域(図3で示す文字配置可能領域51)を表示する。
Next, the
引き続き文字列が入力されている場合(ステップ3001:文字列入力)は、文字列の形データ取得処理4000に戻り、文字列が入力されるごとにステップ4000及びステップ5000の処理を繰り返し、文字列の形データ取得、及び配置可能エリア表示の更新を行う。
If a character string is continuously input (step 3001: character string input), the process returns to the character string shape
文字列入力が終了して、操作者によりOKボタン47がクリックされると(ステップ3001:OKボタンクリック)、制御部3は文字列レイアウト配置処理6000を行う。詳細については、図10で説明する。制御部3は、文字列レイアウト配置処理6000が終了すると、イベント処理3000を終了し、イベント監視2000に戻る。
When the input of the character string is completed and the
(3−3−1.文字列の形データ取得処理)
図8は、文字列の形データ取得処理4000のフローチャートを示す。制御部3は、図3(a)に示すテキストエリア45内にイベントが発生すると、入力された文字列を読み取り、文字列の形をデータとして取得する。テキストエリア45内のイベントとは、文字入力、入力文字の確定、文字の大きさ変更、書式変更、改行等の操作である。入力モードが直接入力の時は1文字ごと、直接モード以外は、文字の下の点線が消えた時点で確定とし、確定されるごとにテキストエリア45内の文字列を全て読み込んで文字列の形を取得するものとする。
(3-3-1. Character string shape data acquisition processing)
FIG. 8 is a flowchart of character string shape
図13は、テキストエリア45に入力された文字列の1行目(i=1)を示す。jの値は、その文字が行の初めから何文字目であるかを示す。1行の中に含まれる複数の文字の大きさが様々であっても、文字列1行分毎に矩形データとして得るものとする。即ち1行を構成する文字のうち最も文字高の高いものを該文字列1行分の矩形データの高さとし、1行分の文字幅の累計を該文字列1行分の矩形データの幅とする。
FIG. 13 shows the first line (i = 1) of the character string input to the
例えば図13に示す文字列は、行(i=1)の行基準点57を(0,0)とすると、対角点が行サイズ59を示す座標となり、対角点のX座標をRow_Width、Y座標をRow_Heightと定義する。「Row」は、「行の」という意味である。後述する図15に示すが、Row_Widthは行幅67を示し、Row_Heightは行最大高さ69を示す。尚、テキストエリア45の座標の単位は、ドット(画像を再現するための最小の単位)であり、データ(行幅67、行最大高さ69等)の単位もドットとする。
For example, in the character string shown in FIG. 13, when the
図14は、改行されつつさらに文字列が入力されていき、複数行からなる文字列データ60を示す。図14は3行からなる文字列データ60を示し、1、2、3行目の行幅67はそれぞれW0、W1、W2であり、1、2,3行目の行最大高さ69はそれぞれH0、H1、H2である。また、文字列データ60としての文字列最大幅61をMax_Width、文字列高63をTotal_Heightと定める。
FIG. 14 shows
後述するが、上記データ(W0、W1、W2、H0、H1、H2、Max_Width、Total_Height等)は、図8の文字列の形データ取得処理4000のフローチャートに従って算出され、図15、図16に示す作業用データ29として記憶部5のRAM21に格納される。
As will be described later, the data (W 0 , W 1 , W 2 , H 0 , H 1 , H 2 , Max_Width, Total_Height, etc.) is calculated according to the flowchart of the character string shape
図8の文字列の形データ取得処理4000をフローチャートに沿って説明する。まず、制御部3は初期値としてi=1(1行目)、j=1(1文字目)、行ごとの文字の累計幅:Width=0、行の最大高さ:Hight=0を設定する(ステップ4001)。尚、図8に示すWidthは、図15、図16のRow_Width(行幅67)のことであり、Hightは、Row_Height(行最大高さ69)のことである。
The character string shape
制御部3は、i行目、j番目の文字情報を取得する(ステップ4002)。例えば図13に示す1行目(i=1)、1番目(j=1)の文字「あ」は、文字幅w、高さhの情報を持つ。更に文字のフォントの種類、編集の有無などの情報を取得しても良い。
The
取得した文字情報の高さhと、行の最大高さ:Heightとを比較し、Height<hであれば(ステップ4003のYES)、Heightをhの値に置き換えて(ステップ4004)、ステップ4005に進む。Height≧hならば(ステップ4003のNO)、Heightの値は変更せずステップ4005に進む。
The height h of the acquired character information and the maximum height of the line: Height are compared. If Height <h (YES in step 4003), the height is replaced with the value of h (step 4004), and
次に、入力された文字が改行コードであるとき(ステップ4005のYES)、制御部3は、i行目の文字列を矩形データとして得て、配列Row[i]=(Width、Height)を、図15に示す作業用データ29として記憶部5に格納する(ステップ4006)。即ち、行65(i)毎に、行幅67(Row_Width)、行最大高さ69(Row_Height)を格納する。例えば1行目の行幅67は30(ドット)、行最大高さ69は10(ドット)である。
Next, when the input character is a line feed code (YES in Step 4005), the
尚、図15の、行幅67(Row_Width)、行最大高さ69(Row_Height)は、図13に示す行サイズ59のX座標(Row_Width)、Y座標(Row_Height)に対応し、異なる文字サイズから構成される行であっても、1行毎に1つの矩形データに変換する。 In FIG. 15, the line width 67 (Row_Width) and the maximum line height 69 (Row_Height) correspond to the X coordinate (Row_Width) and Y coordinate (Row_Height) of the row size 59 shown in FIG. Even for the configured lines, each line is converted into one rectangular data.
次に、制御部3は、行ごとの行幅と、行最大高さを初期化する。即ちWidth=0、Height=0とする。また、行を1行加算し(i=i+1)、j=0として(ステップ4007)、ステップ4010に進む。
Next, the
一方、ステップ4005において、入力された文字が改行コードでなければ(ステップ4005のNO)、即ち、文字が入力された場合は、文字の累計幅(行幅67)に文字幅wを加算し、行幅67:Width=Width+wとして更新する(ステップ4008)。 On the other hand, if the input character is not a line feed code in step 4005 (NO in step 4005), that is, if a character is input, the character width w is added to the cumulative width of characters (line width 67), Update as line width 67: Width = Width + w (step 4008).
制御部3は、i行目の文字列の矩形データとして配列Row[i]=(Width、Height)を得る(ステップ4009)。また、制御部3は図15のデータ(i、Row_Width、Row_Height)を更新して記憶部5の作業用データ29に格納し、ステップ4010に進む。
The
ステップ4010進み、テキストエリア45に次の文字があると(ステップ4010のYES)、制御部3はj=j+1を実行し(ステップ4011)、次の文字に対してステップ4002からの処理を繰り返す。
In
テキストエリア45に次の文字がなくなると(ステップ4010のNO)、制御部3は、図15に示す行幅67(Row_Width)の最大値をMax_Widthとして記憶部5に作業用データ29として格納する(ステップ4012)。例えば図15では、Max_Widthは、2行目Row(2)の場合の50(ドット)である。
When there is no next character in the text area 45 (NO in step 4010), the
次に制御部3は、図15に示す行最大高さ69(Row_Height)の和を、Total_Hightとして記憶部5の作業用データ29として格納する(ステップ4013)。例えば図15では、Total_Hight=10+18+12=40(ドット)である。以上、文字列の形データ取得処理4000を終了し、図7に示す配置可能エリア表示処理5000に移る。
Next, the
(3−3−2.配置可能エリア表示処理)
図9は、配置可能エリア表示処理5000のフローチャートを示す。配置可能エリア表示処理5000とは、図3(b)に示すように、テキストエリア45に入力された文字列が配置可能な領域(文字配置可能領域51−1)を、算出して色等を変えて表示する処理である。文字が入力される都度、文字配置可能領域51−1が更新される。即ち文字列データの占める領域が拡大するに従い、文字配置可能な領域は縮小されていく。
(3-3-2. Arrangeable area display processing)
FIG. 9 shows a flowchart of the arrangeable
図9のフローチャートは、初期設定情報取得処理1000で得られた画像35の画像データ27(図12)に基づき、まず、合成しようとする文字列データ60が被写体37部分(即ちドットデータが[1]の部分)に重ならないかどうかを基準点53(0,0)から順に走査する。次に、文字列データ60の配置が可能であれば、文字列データ60の左上が配置される座標、X座標83、Y座標85を図18の文字列配置可能座標リスト81のFlag_X、Flag_Yとして格納していく。
The flowchart of FIG. 9 is based on the image data 27 (FIG. 12) of the
図9のフローチャートを、図17を参照して説明する。まず制御部3は、初期値としてx=0、y=0を設定する(ステップ5001)。即ち図17の画像データ27の基準点53(0,0)から処理を開始する。座標(x,y)の画像データ27が[0]であるかどうかを判断し、[0]でない場合(即ちそのドットが被写体37部分であるとき)は(ステップ5002のNO)、座標軸X方向に走査を進めx=x+1として(ステップ5008)、ステップ5009に進む。
The flowchart of FIG. 9 will be described with reference to FIG. First, the
座標(x,y)の画像データ27が[0]、即ち画像データ27が余白39部分であれば(ステップ5002のYES)、合成しようとする文字列データ60を構成するドット全体が余白39部分に配置できるかどうかを判定する処理に移る。
If the
座標(x,y)、及び図15に示す行(i)65ごとの行幅67(Row_Width)、行最大高さ69(Row_Height)を基に、図16に示す文字列データ60の配置位置情報を算出し記憶部5に格納する(ステップ5003)。
Based on the coordinates (x, y), the row width 67 (Row_Width) and the row maximum height 69 (Row_Height) for each row (i) 65 shown in FIG. 15, the arrangement position information of the
次に、制御部3は、図16の配置位置情報に基づき、文字列データ60の左上の座標(x,y)、行幅67、行最大高さ69情報から、文字列データ60全体のドットをBit情報75として得て登録し、記憶部5に格納する(ステップ5004)。即ち、文字列データ60を配置する位置の画像データ27([0]又は[1])をBit情報75[0000110001・・・]として得て、Bit情報75がすべて[0]であれば(ステップ5005のYES)、文字列データ60の左上の座標77を座標(x,y)に配置することが可能であると判断する。
Next, based on the arrangement position information of FIG. 16, the
制御部3は、座標77(x,y)を図18の文字列配置可能座標リスト81のX座標83、Y座標85に登録する(ステップ5006)。座標77(x,y)が図17に示す位置にあるとすると、文字列データ60−1を配置することが可能であり、文字列データ60−1の全てのドットが占有する範囲(文字列データ60−1を示す斜線部分)の色を変えて表示する(ステップ5007)。或いは該当領域に斜線等を施しても良い。
The
次に、制御部3は、座標軸X方向に走査を進めx=x+1として(ステップ5008)、ステップ5009に進む。
Next, the
一方、ステップ5005において、Bit情報75に1つでも[1]が含まれていれば(ステップ5005のNO)、例えば図17の文字列データ60−2の位置のように、文字列が被写体37部分にかかるので(文字列の一部あるいは全部が被写体37部分に重なるので)、その座標(x,y)の位置には文字列配置ができないと判断される。制御部3は、座標軸X方向に走査を進めx=x+1として(ステップ5008)、ステップ5009に進む。尚、図17の文字列データ60−2、60−3は、配置可能エリアの算出を説明するために示したものであり、実際には被写体37部分にかかるので図17の様に表示されるわけではない。
On the other hand, if at least one [1] is included in the
次に、座標xの値がx>Max_X−Max_Widthであれば(ステップ5009のYES)、X座標を0とし座標軸Y方向に走査を進める(x=0、y=y+1)(ステップ5010)。座標xの値がx>Max_X−Max_Widthでなければステップ5002に戻る。 Next, if the value of the coordinate x is x> Max_X-Max_Width (YES in Step 5009), the X coordinate is set to 0 and scanning is advanced in the direction of the coordinate axis Y (x = 0, y = y + 1) (Step 5010). If the value of the coordinate x is not x> Max_X-Max_Width, the process returns to Step 5002.
ステップ5010に続き、座標yの値がy>Max_Y−Total_Heightであれば(ステップ5011のYES)、配置可能エリア表示処理5000を終了し、座標yの値がy>Max_Y−Total_Heightでなければ、ステップ5002に戻る。即ち、ステップ5009とステップ5011とで決まる最終走査位置は、図17に示す座標79の位置である。
Following
尚、文字列データ60の左上の座標(x,y)が、画像データ27上で走査されていくと、図16の配置位置情報の値は、走査の都度、更新される。また、文字列配置可能座標リスト81(図18)は、文字列配置可能位置が得られる都度(即ちステップ5005のBit情報75が全て[0]である位置が得られる都度)、X座標83、Y座標85のデータ数が増加する。
When the upper left coordinate (x, y) of the
配置可能エリア表示処理5000が終了すると、図7に戻り、文字列入力が続けられている場合(ステップ3001:文字列入力)、文字列の形データ取得処理4000を繰り返す。文字列入力が終了し、OKボタン47がクリックされると(ステップ3001:OKボタンクリック)、制御部3は文字列レイアウト配置処理6000に移る。尚、図6のイベント監視2000に示したように、図7のイベント処理3000は割り込み可能であり、文字列が入力される都度、新たにイベント処理3000がなされる。
When the arrangement
(3−3−3.文字列レイアウト配置処理)
次に、図10に示す文字列レイアウト配置処理6000について説明する。文字列レイアウト配置処理6000は、図19のように文字列データ60を画像35上に表示する機能である。また操作者が、文字列データ60をマウスなどでドラッグアンドドロップして文字配置可能領域外の位置に移動させたとき、例えば図19の座標89の位置に文字列データ60−3を置くと、最も距離の近い文字配置可能位置に自動的に文字列データ60−4として移動して表示させる機能である。
(3-3-3. Character String Layout Arrangement Processing)
Next, the character string
まず、制御部3は、図18に示す文字列配置可能座標リスト81の1行目の座標(即ち、座標(0,0))に文字列データ60の左上座標を合わせて表示する(図19参照、ステップ6001)。
First, the
表示された文字列データの配置位置を決定するOKボタン47がクリックされると(ステップ6002のYES)、制御部3は文字列レイアウト配置処理6000を終了して、イベント監視2000の待機状態に戻る。
When the
制御部3は、一定時間毎に、文字列データの左上の座標89(a,b)を監視する(ステップ6003)。即ち、文字列データが、画像35上で移動されたかどうかを一定時間毎に監視する。
The
座標(x,y)=(a,b)のとき、即ち文字列データが移動されていない場合(ステップ6004のYES)は、ステップ6002に戻り文字列移動の監視を続ける。 When the coordinates (x, y) = (a, b), that is, when the character string data is not moved (YES in step 6004), the process returns to step 6002 to continue monitoring the character string movement.
座標(x,y)=(a,b)でないとき、即ち文字列データが画像35上を移動された場合(ステップ6004のNO)、制御部3は、移動後の文字列データ60の左上の座標89(a,b)が、文字列配置可能座標リスト81(図18)の中にあるかどうかを判定する。文字列配置可能座標リスト81に文字列データ60の左上の座標89(a,b)があるということは、当該位置に文字列データ60の配置が可能であることを示す。
When the coordinates (x, y) = (a, b) is not satisfied, that is, when the character string data is moved on the image 35 (NO in step 6004), the
文字列配置可能座標リスト81の中に文字列データ60の左上の座標89(a,b)があると(ステップ6005のYES)、制御部3は文字列データ60をその位置のまま、画像35上に表示し(ステップ6006)、ステップ6002に戻る。
If the upper left coordinate 89 (a, b) of the
文字列配置可能座標リスト81に文字列データ60の左上の座標89(a,b)が無い場合(ステップ6005のNO)、制御部3は座標89(a,b)と文字列配置可能座標リスト81に表示されている全部の座標(Flag_X、Flag_Y)とからそれぞれLength87を算出する(図18参照)。制御部3は、Length87を、座標89(a,b)と座標(Flag_X、Flag_Y)との距離を示す数値指標として、下記の式(1)を用いて算出する。
Length=(Flag_X―a)2+(Flag_Y―b)2……(1)
If there is no upper left coordinate 89 (a, b) of the
Length = (Flag_X−a) 2 + (Flag_Y−b) 2 (1)
さらに、制御部3は、Length87が最小となる文字列配置可能座標リスト81の中の座標(x,y)を抽出する(ステップ6007)。
Further, the
制御部3は、図19に示すように、座標89(a,b)の位置に文字列データ60−3を点線で表示する(ステップ6008)。文字列データ60−3は、被写体37に重なるのでこの位置に配置することはできないという意味で、点線で示される。
As shown in FIG. 19, the
制御部3は、Length87が最小となる文字列配置可能座標リスト81の座標(x,y)の位置に、図19に示すように文字列データ60−4を移動して実線で表示し(ステップ6009)、ステップ6002に戻る。即ち、制御部3は、操作者によって文字列データ60が移動された位置が被写体37に重なる場合は、移動距離が最小となる文字配置可能領域51(図19)の位置に自動的に文字列データ60を移動して表示する。
The
操作者は、ステップ6002の「OKボタン」47がクリックされるまで、一度画像35上に移動配置された文字列データ60を何度でもマウスでドラッグアンドドロップして配置する位置を検討することができる。
The operator can consider the position where the
また、本実施の形態では、配置可能エリア表示処理5000のステップでは、文字列を入力しつつ配置可能領域の色表示や斜線表示を行うものであったが、同時に次のステップである文字列配置可能座標リスト81の1行目の座標位置に文字列データ60を表示させるようにしても良い。
In the present embodiment, in the step of the arrangeable
尚、本発明では、自動的に画像35の被写体37部分に文字列が重ならないように文字列の配置位置を移動させるものであったが、操作者が文字列配置を禁止する画像領域を、任意に指定するようにしてもよい。
In the present invention, the arrangement position of the character string is automatically moved so that the character string does not overlap the portion of the subject 37 of the
また、画像35上に配置するのは文字列に限らず、別の小画像やイラスト、記号等であってもよい。文字列の場合と同様に、画像35上に配置可能な領域を算出し、当該配置可能領域に自動的に小画像、イラスト、記号等を配置するようにする。
Moreover, what is arranged on the
また、本発明では文字列等をテキストエリア45に直接操作者が入力していくものとして説明したが、ファイルデータから文字列等をテキストエリア45に読み込むようにしても良い。
In the present invention, the character string or the like is directly input to the
また、本発明では、画像35の被写体37部分を避けて文字配置可能領域を表示させるようにしたが、例えば画像35の画素の色情報(RGB成分)を取得して、R成分が一定値以下の画素部分を文字配置可能領域にする等、文字配置可能領域の設定方法には種々の応用が考えられる。
Further, in the present invention, the character arrangement possible region is displayed avoiding the subject 37 portion of the
また、上述の説明では、文字列配置装置は、行毎に文字列を内包する矩形領域を作成して文字列領域を算出するものとしたが、これに限られない。例えば、各文字毎に当該文字を内包する矩形領域を作成し当該矩形領域の和集合を文字列領域として算出するようにしてもよい。また、矩形領域に限らず各文字の形態に応じて種々の形状の領域を文字列領域としてもよく、例えば、各文字の線の周縁部から所定の距離範囲内を文字列領域として算出するようにしてもよい。 In the above description, the character string arrangement device calculates a character string area by creating a rectangular area containing a character string for each line. However, the present invention is not limited to this. For example, a rectangular area containing the character may be created for each character, and a union of the rectangular areas may be calculated as a character string area. Further, not only a rectangular area but also an area having various shapes according to the form of each character may be used as a character string area. It may be.
(4.効果等)
このように、本実施の形態では、文字列等を入力しつつ、リアルタイムに文字列の配置可能な画像領域を確認しながら、画像35と文字列を容易に合成・編集できる効果がある。
(4. Effects, etc.)
As described above, the present embodiment has an effect that the
また、本実施の形態では、画像35上の写真の被写体やロゴマークなどに、入力した文字列を重ならないように自動的に配置することができ、操作者の労力を軽減する効果がある。
Further, in the present embodiment, it is possible to automatically arrange the input character string so as not to overlap the subject of the photograph on the
また、本実施の形態によれば、文字列の配置位置はドット単位で移動できるので、文字列の配置位置のずれを微細に調整することができる。 Further, according to the present embodiment, since the character string arrangement position can be moved in dot units, the deviation of the character string arrangement position can be finely adjusted.
また、本実施の形態では、静止画像だけではなく、動画上に表示されている文字列が、被写体やマーク等に重ならないように自動的に移動するシステムに応用することができる。 Further, the present embodiment can be applied to a system in which not only a still image but also a character string displayed on a moving image automatically moves so as not to overlap an object or a mark.
尚、本発明の技術的範囲は、前述した実施の形態に限られるものではない。当業者であれば、本願で開示した技術的思想の範疇内において、各種の変更例または修正例に想到し得ることは明らかであり、それらについても当然に本発明の技術的範囲に属するものと了解される。 The technical scope of the present invention is not limited to the embodiment described above. It will be apparent to those skilled in the art that various changes or modifications can be conceived within the scope of the technical idea disclosed in the present application, and these are naturally within the technical scope of the present invention. Understood.
1………文字列配置装置
3………制御部
5………記憶部
7………通信部
9………印刷部
11………表示部
13………入力部
15………メディア入出力部
17………バス
19………ROM
21………RAM
23………実行プログラム
25………OS
27………画像データ
29………作業用データ
31………文字列配置アプリケーションウィンドウ
33………画像表示領域
35………画像
37………被写体
39………余白
41………座標軸X
43………座標軸Y
45………テキストエリア
46………アプリケーション終了ボタン
47………OKボタン
49−1、49−2………文字列領域
51−1、51−2………文字配置可能領域
53………基準点
54………対角点
55………画像幅
56………画像高
57………行基準点
59………行サイズ
60、60−1、60−2、60−3………文字列データ
61………文字列最大幅
63………文字列高
65………行
67………行の幅
69………行の最大高さ
71………座標(x)
73………座標(y)
75………Bit情報
77、79、89………座標
81………文字列配置可能座標リスト
83………X座標
85………Y座標
87………Length
DESCRIPTION OF
21 ……… RAM
23 …………
27 .........
43 ... Coordinate axis Y
45...
73 ..... coordinates (y)
75 .........
Claims (11)
前記画像において編集を許可しない領域を示す編集不可領域を算出する編集不可領域算出手段と、
前記文字列が占める領域である文字列領域を算出する文字列領域算出手段と、
前記表示領域において、前記文字列領域と前記編集不可領域とが重ならない領域を算出することにより、前記文字列を配置可能な領域である配置可能領域を算出して識別可能に表示する配置可能領域算出手段と、
を具備することを特徴とする文字列配置装置。 A character string arranging device that arranges a character string composed of at least one character together with an image in a display area,
A non-editable area calculating means for calculating a non-editable area indicating a non-editable area in the image;
A character string area calculating means for calculating a character string area that is an area occupied by the character string;
In the display area, by calculating an area in which the character string area and the non-editable area do not overlap with each other, a placeable area that is an area where the character string can be placed is calculated and displayed in an identifiable manner. A calculation means;
A character string arranging device comprising:
前記画像において編集を許可しない領域を示す編集不可領域情報が付加された画像を取得する取得手段と、
前記文字列が占める領域である文字列領域を算出する文字列領域算出手段と、
前記表示領域において、前記文字列領域と前記編集不可領域とが重ならない領域を算出することにより、前記文字列を配置可能な領域である配置可能領域を算出して識別可能に表示する配置可能領域算出手段と、
を具備することを特徴とする文字列配置装置。 A character string arranging device that arranges a character string composed of at least one character together with an image in a display area,
An acquisition means for acquiring an image to which non-editable area information indicating an area where editing is not permitted is added in the image;
A character string area calculating means for calculating a character string area that is an area occupied by the character string;
In the display area, by calculating an area in which the character string area and the non-editable area do not overlap with each other, a placeable area that is an area where the character string can be placed is calculated and displayed in an identifiable manner. A calculation means;
A character string arranging device comprising:
前記画像において編集を許可しない領域を示す編集不可領域を算出する編集許可領域算出手段と、
前記文字列が占める領域である文字列領域を算出する文字列領域算出手段と、
前記表示領域において、前記文字列領域と前記編集不可領域とが重ならない領域を算出することにより、前記文字列を配置可能な領域である配置可能領域を算出する配置可能領域算出手段、
として機能させるプログラム。 A program that causes a computer to function as a character string arranging device that arranges a character string composed of at least one character together with an image in a display area,
Edit-permitted area calculating means for calculating an uneditable area indicating an area where editing is not permitted in the image;
A character string area calculating means for calculating a character string area that is an area occupied by the character string;
In the display area, an arrangementable area calculating unit that calculates an arrangementable area that is an area in which the character string can be arranged by calculating an area in which the character string area and the non-editable area do not overlap.
Program to function as.
前記画像において編集を許可しない領域を示す編集不可領域を算出する編集不可領域算出手段と、
前記文字列が占める領域である文字列領域を算出する文字列領域算出手段と、
前記表示領域において、前記文字列領域と前記編集不可領域とが重ならない領域を算出することにより、前記文字列を配置可能な領域である配置可能領域を算出する配置可能領域算出手段、
として機能させるプログラムを記録したコンピュータ読取可能な記録媒体。 A computer-readable recording medium recording a program that causes a computer to function as a character string arranging device that arranges a character string composed of at least one character together with an image in a display area,
A non-editable area calculating means for calculating a non-editable area indicating a non-editable area in the image;
A character string area calculating means for calculating a character string area that is an area occupied by the character string;
In the display area, an arrangementable area calculating unit that calculates an arrangementable area that is an area in which the character string can be arranged by calculating an area in which the character string area and the non-editable area do not overlap.
The computer-readable recording medium which recorded the program made to function as.
前記画像において編集を許可しない領域を示す編集不可領域を算出する編集不可領域算出ステップと、
前記文字列が占める領域である文字列領域を算出する文字列領域算出ステップと、
前記表示領域において、前記文字列領域と前記編集不可領域とが重ならない領域を算出することにより、前記文字列を配置可能な領域である配置可能領域を算出する配置可能領域算出ステップと、
を具備することを特徴とする文字列配置方法。 A character string arrangement method for arranging a character string composed of at least one character together with an image in a display area,
A non-editable area calculating step for calculating a non-editable area indicating an area where editing is not permitted in the image;
A character string area calculating step for calculating a character string area that is an area occupied by the character string;
In the display area, by calculating an area where the character string area and the non-editable area do not overlap, an arrangeable area calculating step of calculating an arrangeable area that is an area where the character string can be arranged;
A character string arranging method comprising:
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2004138043A JP4074602B2 (en) | 2004-05-07 | 2004-05-07 | Character string arranging device, character string arranging method, program, and recording medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2004138043A JP4074602B2 (en) | 2004-05-07 | 2004-05-07 | Character string arranging device, character string arranging method, program, and recording medium |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2005321908A true JP2005321908A (en) | 2005-11-17 |
JP4074602B2 JP4074602B2 (en) | 2008-04-09 |
Family
ID=35469167
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2004138043A Expired - Fee Related JP4074602B2 (en) | 2004-05-07 | 2004-05-07 | Character string arranging device, character string arranging method, program, and recording medium |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP4074602B2 (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2011055039A (en) * | 2009-08-31 | 2011-03-17 | Furyu Kk | Image editing device, image editing method, and program |
JP2012108493A (en) * | 2010-10-25 | 2012-06-07 | Xing Inc | Picture reproducer and picture reproduction system |
JP2014158166A (en) * | 2013-02-15 | 2014-08-28 | Konica Minolta Inc | Image forming apparatus |
JP2018019330A (en) * | 2016-07-29 | 2018-02-01 | キヤノン株式会社 | Layout edition device, layout edition method, and program |
-
2004
- 2004-05-07 JP JP2004138043A patent/JP4074602B2/en not_active Expired - Fee Related
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2011055039A (en) * | 2009-08-31 | 2011-03-17 | Furyu Kk | Image editing device, image editing method, and program |
JP2012108493A (en) * | 2010-10-25 | 2012-06-07 | Xing Inc | Picture reproducer and picture reproduction system |
JP2014158166A (en) * | 2013-02-15 | 2014-08-28 | Konica Minolta Inc | Image forming apparatus |
US9818052B2 (en) | 2013-02-15 | 2017-11-14 | Konica Minolta, Inc. | Image forming apparatus for printing copy of id card with utlization purpose text overlapped thereon, and image forming method and tangible computer-readable recording medium for the same |
JP2018019330A (en) * | 2016-07-29 | 2018-02-01 | キヤノン株式会社 | Layout edition device, layout edition method, and program |
Also Published As
Publication number | Publication date |
---|---|
JP4074602B2 (en) | 2008-04-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US5262760A (en) | Modifying a graphics display image | |
US7703011B2 (en) | Digital content creation system, digital content creation method, and program product | |
EP0864987B1 (en) | Document processing method and apparatus, corresponding program and storage unit | |
EP0361911A2 (en) | Word processor with text layout display function | |
JP4074602B2 (en) | Character string arranging device, character string arranging method, program, and recording medium | |
EP1927923A2 (en) | Document edit support device, document edit device, program and computer-readable storage medium | |
US7295221B2 (en) | Image processing apparatus and method, and computer-readable memory | |
US7417761B2 (en) | Information processing apparatus and information processing method for processing document data having a plurality of objects different in attribution | |
JPH0916566A (en) | Document processor and method therefor | |
JP4232625B2 (en) | Magazine layout device and magazine layout program | |
JP2000231556A (en) | Information processor, information processing method and storage medium | |
JP3813499B2 (en) | OUTPUT PROCESSING METHOD, OUTPUT PROCESSING DEVICE, OUTPUT PROCESSING PROGRAM, AND RECORDING MEDIUM CONTAINING OUTPUT PROCESSING PROGRAM | |
JP2008108187A (en) | Cad data converter, cad data conversion method, and cad data conversion program | |
JP2006065891A (en) | Method of processing ruled line and its device | |
JPH02230419A (en) | Character processor | |
JPH06202305A (en) | Layout processor | |
JPH07262258A (en) | Graphic processor | |
JPH08292992A (en) | Device and method for document processing | |
JPH0744607A (en) | Layout design device | |
JPH06231222A (en) | Device and method for processing graphic | |
JPH10289231A (en) | Document editing, displaying, and printing device | |
JP2009080839A (en) | Method and apparatus for processing character string with ruled line | |
JP2008077674A (en) | Method and device for processing ruled line | |
JP2008251035A (en) | Method and device for processing ruled line | |
JPH06131435A (en) | Graphic editing device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20070625 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20070703 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20070829 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20071023 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20071214 |
|
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: 20080122 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20080125 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20110201 Year of fee payment: 3 |
|
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: 20110201 Year of fee payment: 3 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20120201 Year of fee payment: 4 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20120201 Year of fee payment: 4 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20130201 Year of fee payment: 5 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20140201 Year of fee payment: 6 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
LAPS | Cancellation because of no payment of annual fees |