JP2007179261A - Image processor, image processing method and control program - Google Patents

Image processor, image processing method and control program Download PDF

Info

Publication number
JP2007179261A
JP2007179261A JP2005376403A JP2005376403A JP2007179261A JP 2007179261 A JP2007179261 A JP 2007179261A JP 2005376403 A JP2005376403 A JP 2005376403A JP 2005376403 A JP2005376403 A JP 2005376403A JP 2007179261 A JP2007179261 A JP 2007179261A
Authority
JP
Japan
Prior art keywords
range
data
selection
image
graphic
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2005376403A
Other languages
Japanese (ja)
Inventor
Taeko Goto
妙子 後藤
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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP2005376403A priority Critical patent/JP2007179261A/en
Publication of JP2007179261A publication Critical patent/JP2007179261A/en
Pending legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To provide an image processor allowing a copy of data on only an object as viewed from a user, with its hierarchical structure maintained, in a range designated by the user. <P>SOLUTION: Image data of one page is generated from the page of a paper document inputted to a scanner 105 by the user. The user converts the image data of the document page into an editable graphic data by use of a graphic data generation application 303. A part or the whole of the graphic data generated by the application 303 is selected by a mouse or the like, and the selected data are copied onto a clipboard 305. Taking of the graphic data held on the clipboard 305 into a graphic editing application 304 is instructed to the application 304. The processed/edited graphic data are outputted from a printer 103 as paper. <P>COPYRIGHT: (C)2007,JPO&INPIT

Description

本発明は、複数のオブジェクトを持つグラフィックデータ等の画像データを処理する画像処理装置及び画像処理方法、並びに前記画像処理方法を実行するための制御プログラムに関する。   The present invention relates to an image processing apparatus and an image processing method for processing image data such as graphic data having a plurality of objects, and a control program for executing the image processing method.

従来より、パーソナルコンピュータ上で文書作成アプリケーションを用いて背景にラスタデータ、前景にベクトルデータ等を持つグラフィックデータを編集、加工することは、一般的に行われている。このような場合に、ユーザーが操作し易いようにグラフィックデータの前景や背景と表示内容を切り替えて表示することがある。   Conventionally, editing and processing graphic data having raster data in the background and vector data in the foreground using a document creation application on a personal computer is generally performed. In such a case, there are cases where the foreground and background of graphic data and display contents are switched and displayed so that the user can easily operate.

このとき、ユーザーは、ユーザーから見えているそのままのオブジェクトだけを、ユーザーが指定した範囲で、しかも階層構造を保持した状態でコピーし、異なるアプリケーション上で再利用したい場面が多く発生する。例えば、背景のラスタイメージに前景としてベクタイメージが乗ったグラフィックデータを加工する際には、次のような場面が発生し得る。即ち、前景のみの表示モードで表示されるベクトルデータのみをコピーしたい、前景にあるベクトルデータと背景にあるラスタデータを両方コピーしたい、等の場面が考えられる。また、オブジェクトの領域範囲を考慮せず、オブジェクトの一部分の領域のみを切り出してデータのコピーを行いたい場合もある。   At this time, there are many scenes in which the user wants to copy only the object as it is visible to the user within a range specified by the user while maintaining the hierarchical structure and to reuse it on different applications. For example, when processing graphic data having a vector image as a foreground on a background raster image, the following scene may occur. In other words, it is possible to copy only vector data displayed in the foreground only display mode, or to copy both vector data in the foreground and raster data in the background. In some cases, it is desired to copy data by cutting out only a partial area of the object without considering the area range of the object.

従来、複数のオブジェクトを持つグラフィックデータを複数のアプリケーション間でデータコピーする画像処理方法としては、例えば特許文献1や特許文献2等に提案されるものがあった。   Conventionally, as image processing methods for copying graphic data having a plurality of objects between a plurality of applications, for example, there have been proposed in Patent Document 1, Patent Document 2, and the like.

特許文献1では、アプリケーションAからコピーされたデータaをアプリケーションBに貼り付けた際に次のような処理が行われる。即ち、貼り付けるデータa’内に別のアプリケーションCで作成されたデータc’が存在してもデータのネスト構造を許可し、貼り付けるデータa’内にあるc’のデータはアプリケーションCの機能に基づいて表示される。また、特許文献2では、画像の領域のコピーを行うコピーツールを複数持ち、画像モード(カラー、モノクロ、テキスト)によってコピーするツールを切り替えている。
特開平6−121144号公報 特開2002−230566号公報
In Patent Document 1, the following processing is performed when data a copied from application A is pasted on application B. That is, even if the data c ′ created by another application C exists in the data a ′ to be pasted, the data nest structure is permitted, and the data of c ′ in the data a ′ to be pasted is the function of the application C. It is displayed based on. In Patent Document 2, a plurality of copy tools for copying an image area are provided, and the copy tool is switched depending on the image mode (color, monochrome, text).
JP-A-6-121144 JP 2002-230666 A

しかしながら、特許文献1では、ユーザーから見えているそのままのオブジェクトだけをユーザーが指定した範囲でコピーすることができない。また、特許文献2では、コピーしたいデータの階層構造を保持した状態でコピーすることができない。   However, in Patent Document 1, it is not possible to copy only an object that is visible to the user within a range designated by the user. In Patent Document 2, copying cannot be performed in a state where the hierarchical structure of data to be copied is retained.

上記特許文献1及び2以外の市販のアプリケーションの中には、ユーザーから見えているそのままのオブジェクトだけをユーザーが指定した範囲で階層構造を保持した状態でコピーすることができるものも存在するが、作業手順が煩雑であった。そのため、ユーザーの作業効率を著しく損なうため、一度作成したオブジェクトの再利用性が低下しているのが現状である。   Among commercially available applications other than the above-mentioned Patent Documents 1 and 2, there are those that can copy only an object that is visible to the user while maintaining a hierarchical structure in a range specified by the user. The work procedure was complicated. For this reason, in order to significantly impair the user's work efficiency, the reusability of an object once created is reduced at present.

本発明は上記従来の問題点に鑑み、ユーザーから見えているそのままのオブジェクトだけをユーザーが指定した範囲で、階層構造を保持した状態でデータの複写を可能にする画像処理装置、画像処理方法及び制御プログラムを提供することを目的とする。   In view of the above-described conventional problems, the present invention provides an image processing apparatus, an image processing method, and an image processing method capable of copying data while maintaining a hierarchical structure within a range specified by a user for only an object that is visible to the user. An object is to provide a control program.

本発明の画像処理装置は上記目的を達成するため、複数のオブジェクトを有する画像データから選択されたオブジェクトを表示する表示選択手段と、前記表示選択手段で表示されたオブジェクトを、範囲を指定して選択する範囲選択手段と、前記範囲選択手段で選択された範囲のオブジェクトを複写する範囲指定複写手段とを有することを特徴とする。   In order to achieve the above object, an image processing apparatus of the present invention designates a range of display selection means for displaying an object selected from image data having a plurality of objects, and an object displayed by the display selection means. A range selection unit for selecting, and a range designation copying unit for copying an object in the range selected by the range selection unit.

また、本発明の画像処理方法は、複数のオブジェクトを有する画像データから選択されたオブジェクトを表示する表示選択工程と、前記表示選択工程で表示されたオブジェクトを、範囲を指定して選択する範囲選択工程と、前記範囲選択工程で選択された範囲のオブジェクトを複写する範囲指定複写工程とを有することを特徴とする。   The image processing method of the present invention includes a display selection step for displaying an object selected from image data having a plurality of objects, and a range selection for selecting the object displayed in the display selection step by specifying a range. And a range designation copying step for copying an object in the range selected in the range selection step.

また、本発明の制御プログラムは、複数のオブジェクトを有する画像データから選択されたオブジェクトを表示する表示選択ステップと、前記表示選択ステップで表示されたオブジェクトを、範囲を指定して選択する範囲選択ステップと、前記範囲選択ステップで選択された範囲のオブジェクトを複写する範囲指定複写ステップとを有することを特徴とする。   Further, the control program of the present invention includes a display selection step for displaying an object selected from image data having a plurality of objects, and a range selection step for selecting the object displayed in the display selection step by designating a range. And a range designation copying step for copying an object in the range selected in the range selection step.

本発明によれば、ユーザーから見えているそのままのオブジェクトだけをユーザーが指定した範囲で複写することが可能になり、さらに階層構造を保持した状態での複写も可能である。これにより、ユーザーは、自分から見えないオブジェクトの階層や、オブジェクトの種類を考慮する必要がなくなり、直感的で分かり易い操作でデータの編集や加工を行うことができる。   According to the present invention, it is possible to copy only an object as it is visible to the user within a range designated by the user, and it is also possible to copy in a state in which a hierarchical structure is maintained. This eliminates the need for the user to consider the hierarchy of objects that cannot be seen by the user and the types of objects, and allows the user to edit and process data with intuitive and easy-to-understand operations.

以下、本発明の実施の形態について、図面を参照しながら説明する。   Hereinafter, embodiments of the present invention will be described with reference to the drawings.

<装置の構成>
図1は、本発明の実施の形態に係る画像処理装置の構成を示すブロック図である。
<Device configuration>
FIG. 1 is a block diagram showing a configuration of an image processing apparatus according to an embodiment of the present invention.

同図中の101はコンピュータ装置であり、102はコンピュータ装置が作る画像情報をブラウン管や液晶などの画面に表示するディスプレイ装置であり、103はコンピュータ装置が作る画像情報を紙に印刷するプリンタである。また、104はユーザーがコンピュータ装置に指示を送るためのマウスやキーボードなどの操作装置であり、105は紙の内容を光電変換して画像データに変換しコンピュータに入力するスキャナである。   In the figure, 101 is a computer device, 102 is a display device that displays image information produced by the computer device on a screen such as a cathode ray tube or a liquid crystal display, and 103 is a printer that prints image information produced by the computer device on paper. . Reference numeral 104 denotes an operation device such as a mouse or a keyboard for a user to send an instruction to the computer device. Reference numeral 105 denotes a scanner which photoelectrically converts the contents of the paper into image data and inputs the image data to the computer.

図2は、コンピュータ装置101のハードウェア構成を示すブロック図である。   FIG. 2 is a block diagram illustrating a hardware configuration of the computer apparatus 101.

図中の201はソフトウェアを実行することで装置の大部分を制御するCPUであり、202はCPUが実行するソフトウェアやデータを一時記憶するメモリであり、203はソフトウェアやデータを保存するハードディスクである。また、204はI/O部であって、キーボードやマウス、スキャナなどの入力情報を受け取り、またディスプレイ装置102やプリンタ103に情報を出力する。   In the figure, 201 is a CPU that controls most of the apparatus by executing software, 202 is a memory that temporarily stores software and data executed by the CPU, and 203 is a hard disk that stores software and data. . An I / O unit 204 receives input information such as a keyboard, a mouse, and a scanner, and outputs information to the display device 102 and the printer 103.

図3は、図1中のコンピュータ装置101で実行されるソフトウェア構成の概略を示すブロック図である。   FIG. 3 is a block diagram showing an outline of a software configuration executed by the computer apparatus 101 in FIG.

図中の301はコンピュータの基本ソフトウェア(以下OS)である。OS301は所謂ウィンドウシステムを有しており、OS301上で動作するアプリケーションソフトウェアは、画像情報をディスプレイ装置102に表現するとともに、マウスなどによるグラフィカルな操作機能を有す、所謂GUIオペレーションが可能である。   Reference numeral 301 in the figure denotes computer basic software (hereinafter referred to as OS). The OS 301 has a so-called window system, and the application software that operates on the OS 301 can display image information on the display device 102 and can perform a so-called GUI operation having a graphical operation function using a mouse or the like.

302〜305はOS301上で動作するアプリケーションである。302はスキャンアプリケーション、303はグラフィックデータ生成アプリケーション、304はグラフィック編集アプリケーション、305はクリップボードである。   Reference numerals 302 to 305 denote applications that operate on the OS 301. Reference numeral 302 denotes a scan application, 303 denotes a graphic data generation application, 304 denotes a graphic editing application, and 305 denotes a clipboard.

<本実施の形態に係る全体的な動作フロー>
次に、アプリケーション302〜305を利用して実行される本実施の形態に係る処理の全体的なフローについて、図4を参照しつつ説明する。図4は、本実施の形態に係る処理の全体的な流れを示すフローチャートである。
<Overall Operation Flow According to the Embodiment>
Next, an overall flow of processing according to the present embodiment executed using the applications 302 to 305 will be described with reference to FIG. FIG. 4 is a flowchart showing an overall flow of processing according to the present embodiment.

まずステップS401では、スキャンアプリケーション302を用いて、ユーザーがスキャナ105に入力した紙文書の1ページから当該ページの画像データを生成する。画像データは適当な圧縮を施されて図2のハードディスク204にファイルとして保存する。   First, in step S <b> 401, image data of the page is generated from one page of the paper document input by the user to the scanner 105 using the scan application 302. The image data is appropriately compressed and stored as a file in the hard disk 204 of FIG.

ステップS402では、グラフィックデータ生成アプリケーション303を用いて、文書ページの画像データを、編集可能なグラフィックデータへと変換する。ここで述べるグラフィックデータとは、1ページの視覚的情報を構成するためのデータであり、特に画像データのみではなく、パスや図形などのベクトル描画命令、或いは文字フォントのレンダリング情報などを含んだ状態のデータを指すものとする。また、編集可能とは、画像、ベクトル描画の命令や文字コードなどの変更が可能な状態であることを指す。特に、元々は一枚の画像として提供された文書のデータが各種のオブジェクトに分けられ、さらにその各々が最適な表現形式のグラフィックデータで表現されていることにより、変更が可能な状態であることを指す。つまり、文書としてレイアウトを変更したり、文書オブジェクトとして文字や線画などを変形したりすることが容易となっている状態を指す。なお、各種のオブジェクトとは、文字、線画、自然画、表及び背景などを指す。   In step S402, the image data of the document page is converted into editable graphic data using the graphic data generation application 303. The graphic data described here is data for composing visual information of one page, and particularly includes not only image data but also vector drawing commands such as paths and figures, or rendering information of character fonts. Point to the data. Also, “editable” means that an image, a vector drawing command, a character code, and the like can be changed. In particular, the document data originally provided as a single image is divided into various objects, and each of them is represented by graphic data in an optimal expression format, so that it can be changed. Point to. That is, it refers to a state in which it is easy to change the layout as a document or to change a character or a line drawing as a document object. Note that various objects refer to characters, line drawings, natural images, tables, backgrounds, and the like.

次のステップS403では、グラフィックデータ生成アプリケーション303により生成されたグラフィックデータに対し、ユーザーがマウス等でその一部或いは全部を選択し、かつ選択されたデータをクリップボード305にコピーする。   In the next step S403, the user selects a part or all of the graphic data generated by the graphic data generation application 303 with a mouse or the like, and copies the selected data to the clipboard 305.

ステップS404では、ユーザーが、グラフィック編集アプリケーション304に対し、クリップボード305に保持されているグラフィックデータをグラフィック編集アプリケーション304へ取り込むことを指示する。   In step S <b> 404, the user instructs the graphic editing application 304 to import the graphic data held on the clipboard 305 into the graphic editing application 304.

そして、ステップS405では、グラフィック編集アプリケーション304を用いて、ユーザーが加工・編集したグラフィックデータをプリンタ103より紙として出力する。加工・編集とは、例えば線画を表現するグラフィックデータの一部を変形したり、パーツを追加したりすることである。   In step S405, the graphic editing application 304 is used to output graphic data processed and edited by the user as paper from the printer 103. Processing / editing means, for example, changing a part of graphic data representing a line drawing or adding a part.

<グラフィックデータ生成アプリケーション303の動作>
以下より、本発明の本質部分を実施する、グラフィックデータ生成アプリケーション303について、その動作を詳細に説明する。
<Operation of Graphic Data Generation Application 303>
The operation of the graphic data generation application 303 that implements the essential part of the present invention will be described in detail below.

グラフィックデータ生成アプリケーション303(以下、アプリケーション303)は、OS固有の起動方法によって動作を開始する。起動直後のアプリケーション303は固有のウィンドウを1個表示してユーザーの指示操作があるまで待機する。   The graphic data generation application 303 (hereinafter referred to as application 303) starts operation by an OS-specific activation method. The application 303 immediately after startup displays one unique window and waits for a user instruction operation.

(A)ウィンドウの例
図5は、アプリケーション303の外観を成すウィンドウの一例を示す図である。
(A) Example of Window FIG. 5 is a diagram illustrating an example of a window that forms the appearance of the application 303.

図中の501はアプリケーション名や処理ファイル名を表示するタイトルバーである。502はユーザーがアプリケーション303に対し階層式メニューにより操作を指示するメニューバー、503は同じくユーザーがアプリケーション303に対しボタンクリックにより操作を指示するツールバーである。   In the figure, reference numeral 501 denotes a title bar that displays an application name and a processing file name. Reference numeral 502 denotes a menu bar for the user to instruct the application 303 to perform an operation using a hierarchical menu. Reference numeral 503 denotes a toolbar for the user to instruct the application 303 to perform an operation by clicking a button.

504は処理対象となるグラフィックデータを二次元の画像データにラスタライズして表示する表示領域であり、505及び506は表示領域504に表示される範囲をマウス操作で縦横にスクロールするスクロールバーである。   Reference numeral 504 denotes a display area for rasterizing and displaying graphic data to be processed into two-dimensional image data, and reference numerals 505 and 506 denote scroll bars for scrolling the range displayed in the display area 504 vertically and horizontally by a mouse operation.

メニューバー502上には、507〜509のように操作内容を大まかに分類する文字列が書かれている。各文字列部をマウスでクリックするとその操作分類をより詳細に指示する項目の並ぶメニューが表れ、その項目をクリックすることにより実際に処理が行われたり、もしくは更に詳細な項目が表示されたりする。ツールバー503上には、メニューバー502から選択可能な階層式のメニュー内の項目のうち、よく使う機能項目を配置しておくことができる。なお、階層式メニューからの指示と、それに対応するボタンでの指示は等価とみなすことができるので、ボタンでの指示例についての説明は省略する。   On the menu bar 502, a character string roughly classifying the operation content is written as in 507 to 509. When you click each character string part with the mouse, a menu with items that specify the operation classification in more detail appears, and when you click the item, processing is actually performed, or more detailed items are displayed . Of the items in the hierarchical menu selectable from the menu bar 502, frequently used function items can be arranged on the toolbar 503. In addition, since the instruction from the hierarchical menu and the instruction with the corresponding button can be regarded as equivalent, the description of the instruction example with the button is omitted.

(B)指示可能な操作
アプリケーション303に対しユーザーが指示することができる操作は、以下の6つに分類される。
(1)ファイル読み込み操作
(2)グラフィック表示操作
(3)グラフィック選択操作
(4)コピー操作
(5)ファイル書き出し操作
(6)終了操作
この各操作(1)〜(6)は図6のような遷移関係を持つ。例えば全ての操作に先立ってファイル読み込み操作が必要であり、続いてグラフィック表示操作が可能となる。コピー操作はグラフィック選択操作の後にのみ実行可能であり、ファイル書き出し操作や終了操作はファイル読み込み後の任意時点で実行可能である。
(B) Operations that can be instructed The operations that can be instructed by the user to the application 303 are classified into the following six types.
(1) File read operation (2) Graphic display operation (3) Graphic selection operation (4) Copy operation (5) File write operation (6) End operation These operations (1) to (6) are as shown in FIG. Has a transitional relationship. For example, a file reading operation is required prior to all operations, followed by a graphic display operation. The copy operation can be executed only after the graphic selection operation, and the file write operation and end operation can be executed at an arbitrary time after the file is read.

以下より、各操作(1)〜(6)について詳細に説明する。   The operations (1) to (6) will be described in detail below.

B−1.ファイル読み込み操作(1)
始めに、ファイル読み込み操作(1)時に行われる、アプリケーション303内部の動作について、図7のフローチャートを用いて説明する。
B-1. File reading operation (1)
First, an internal operation of the application 303 performed during the file reading operation (1) will be described with reference to the flowchart of FIG.

まずステップS701では、ユーザーが読み込むファイルを指定する。実施の形態における実際の操作としては、メニューバー502にて「ファイル」の文字列507をマウスでクリックすると、図8のように901〜904の項目が展開する。続いて「開く」901の項をクリックすることにより、非図示のファイル選択ダイアログが表示される。このファイルダイアログ上でマウスやキーボードにより選択されたファイルがアプリケーション303へと読み込まれる。または、上記動作は、マウスによる所謂ドラッグアンドドロップにより、別のファイルシステム管理ソフトウェアなどで選択されたファイルが読み込まれるような動作であっても良い。   First, in step S701, the user specifies a file to be read. As an actual operation in the embodiment, if a character string 507 of “File” is clicked on the menu bar 502 with a mouse, items 901 to 904 are expanded as shown in FIG. Subsequently, by clicking the item “Open” 901, a file selection dialog (not shown) is displayed. A file selected with the mouse or the keyboard on the file dialog is read into the application 303. Alternatively, the above operation may be an operation in which a file selected by another file system management software or the like is read by so-called drag and drop using a mouse.

次のステップS702では、読み込むファイルの種類が画像ファイルであるか、グラフィックデータファイルであるかを判別する。具体的には、予め定められた拡張子など、ファイル名の一部とファイル種類の関連付けによって種類を決定しても良いし、或いはファイルの先頭何バイトかを読み込んで、識別可能な文字やコードなどを得ることで種類を決めても良い。ファイルがグラフィックデータファイルの場合はステップS703へ進み、画像ファイルの場合はステップS704へ進む。   In the next step S702, it is determined whether the type of file to be read is an image file or a graphic data file. Specifically, the type may be determined by associating a part of the file name with the file type, such as a predetermined extension, or by reading the first few bytes of the file and identifying characters or codes You can decide the type by getting If the file is a graphic data file, the process proceeds to step S703. If the file is an image file, the process proceeds to step S704.

ステップS703に進んだ場合は、グラフィックデータファイルを読み込んでグラフィックデータを得て、その後ステップS706に進む。ステップS706では、グラフィックデータを画面に描画して、読み込み操作の処理を終了する。   If the process proceeds to step S703, the graphic data file is read to obtain graphic data, and then the process proceeds to step S706. In step S706, the graphic data is drawn on the screen, and the read operation process is terminated.

ステップS704に進んだ場合は、画像ファイルを読み込んで、メモリ202中のアプリケーション303が利用可能な領域へラスタ画像データとして展開する。画像が圧縮状態にある場合は適宜展開処理を行う。圧縮形式の例としてはJPEG形式がある。   When the process proceeds to step S704, the image file is read and developed as raster image data in an area available for the application 303 in the memory 202. If the image is in a compressed state, an expansion process is performed as appropriate. An example of the compression format is the JPEG format.

続くステップS705では、ラスタ画像データをグラフィックデータへと変換する。本ステップの処理内容については後述する。グラフィックデータが得られたら、ステップS706に進んでグラフィックデータを画面に描画し、読み込み操作の処理を終了する。   In subsequent step S705, the raster image data is converted into graphic data. The processing content of this step will be described later. If the graphic data is obtained, the process proceeds to step S706, where the graphic data is drawn on the screen, and the reading operation process is terminated.

ここで、図7のステップS705における、ラスタ画像データからグラフィックデータへの変換処理について、図9のフローチャートを用いて内容を詳細に説明する。   Here, the contents of the conversion processing from raster image data to graphic data in step S705 of FIG. 7 will be described in detail with reference to the flowchart of FIG.

ラスタ画像データからグラフィックデータへの変換とは、一枚のページ画像に対しその内容を、文字や線画、写真、表などの前景オブジェクトと、その残りの背景オブジェクトとに分離し、前景オブジェクトの各々に適したグラフィック表現へと変換したものである。各オブジェクトに適したグラフィック表現については、この後のフローチャートに従った処理の各所で説明する。   The conversion from raster image data to graphic data means that the content of a single page image is separated into foreground objects such as text, line drawings, photos, and tables, and the remaining background objects, and each foreground object It is converted into a graphic representation suitable for. The graphic representation suitable for each object will be described in various parts of the processing according to the flowcharts that follow.

始めのステップS801では、グラフィックデータへの変換処理にラスタ画像データを入力する。次のステップS802では、ラスタ画像データがフルカラー或いはグレー画像の場合、白黒二値画像へと変換する。二値化に際しては、例えば、画像全域の輝度分布を調べて二値化閾値を求め、低輝度のピークにある文字・線画部(前景部)が黒、高輝度のピークにある下地部(背景部)が白となるように二値化を行う。もしくは画像をいくつかのブロックに分けて各ブロックで最適な二値化閾値を求めて二値化を行っても良い。   In the first step S801, raster image data is input for conversion into graphic data. In the next step S802, if the raster image data is a full color or gray image, it is converted into a monochrome binary image. In binarization, for example, the luminance distribution of the entire image is examined to obtain a binarization threshold, and the character / line drawing portion (foreground portion) at the low luminance peak is black and the background portion (background) at the high luminance peak Binarization is performed so that (part) is white. Alternatively, binarization may be performed by dividing an image into several blocks and obtaining an optimal binarization threshold value for each block.

ステップS803では、二値画像に対してブロックセレクション処理を行う。なお、ブロックセレクション処理とは、ページを表すラスタ画像データ内に記載されている文字、線画、自然画、表等の文書オブジェクトのブロックを認識し、各々を矩形の領域として分別する領域分割処理のことを示すものとする。本実施形態では、二値画像内の黒画素を輪郭線追跡することによって黒画素塊を抽出し、各黒画素塊の形状・サイズ・黒画素密度・黒画素塊内部の白画素塊の分布等に基づいて、文字、線画、表、自然画等の領域を識別するものとする。   In step S803, block selection processing is performed on the binary image. The block selection process is an area division process that recognizes blocks of document objects such as characters, line drawings, natural images, and tables described in raster image data representing a page and separates them into rectangular areas. It shall be shown. In this embodiment, the black pixel block is extracted by tracing the outline of the black pixel in the binary image, and the shape, size, black pixel density, distribution of the white pixel block inside the black pixel block, etc. Based on the above, areas such as characters, line drawings, tables, and natural images are identified.

以降、ブロックセレクション処理で得られた各領域に対し、それぞれの領域種別に適したグラフィック表現によるグラフィックデータへの変換処理を行う。   Thereafter, each area obtained by the block selection process is converted into graphic data by graphic representation suitable for each area type.

ステップS804では、文字の領域に対し、文字コード列とフォント情報からなる、文字コード表現の第一のグラフィックデータを生成する。文字コード列は文字領域の画像に対してOCR処理を施すことで得ることができる。また、大きさや字体などを含むフォント情報は、OCR処理に類した認識処理で得ることができる。   In step S804, the first graphic data of the character code expression including the character code string and the font information is generated for the character area. The character code string can be obtained by performing OCR processing on the image in the character area. In addition, font information including size and font can be obtained by recognition processing similar to OCR processing.

ステップS805では、文字の領域に対し、文字コード表現とは異なる第二のグラフィックデータとして、文字の輪郭を描画して塗りつぶすパス描画データからなるベクトル表現のグラフィックデータ(ベクトルデータ)を生成する。文字領域のベクトルデータは、文字領域の二値画像に対し、各文字に相当する黒画素塊の輪郭を輪郭追跡処理することにより検出し、当該検出した輪郭線を直線および曲線で近似することによって得られる。なお、例えば「0」などの文字オブジェクトの輪郭追跡を行うと、オブジェクトの外側の輪郭(外輪郭)と内側の輪郭(内輪郭)とが抽出され、その外輪郭と内輪郭の間が黒色で塗りつぶされている。このような外輪郭のパスと内輪郭のパスとが、ペアになって定義されるパスを複合パスと呼ぶ。   In step S805, vector-represented graphic data (vector data) including path drawing data for drawing and filling the outline of the character is generated as second graphic data different from the character code representation for the character region. The vector data of the character region is detected by performing contour tracking processing on the contour of the black pixel block corresponding to each character in the binary image of the character region, and approximating the detected contour line with a straight line and a curve. can get. For example, when the contour tracking of a character object such as “0” is performed, the outer contour (outer contour) and inner contour (inner contour) of the object are extracted, and the space between the outer contour and the inner contour is black. It is filled. A path defined by a pair of an outer contour path and an inner contour path is called a composite path.

さらに、二値画像上で文字領域内の輪郭追跡処理で得た輪郭線の位置と、原画像上の対応する位置とに基づいて輪郭線内部の平均的画素値を求める。この平均的画素値を各文字の色とし、これを各文字に対応するパスを描画するカラー情報とすることができる。   Further, an average pixel value inside the contour line is obtained based on the position of the contour line obtained by the contour tracking process in the character region on the binary image and the corresponding position on the original image. This average pixel value can be used as the color of each character, and this can be used as color information for drawing a path corresponding to each character.

ステップS806では、文字の領域に対する第三のグラフィックデータとして、文字線内部の画素と文字以外の画素を容易に区別可能な二値或いはN値の画像データで表現されるグラフィックデータを生成する。まず、文字の領域を表現する二値画像データは、先にページ全体を二値化して得た画像から、文字領域部分を切り出すことによって得られる。なお、ステップS803で求めた文字領域の位置に対応する原画像内の部分画像に基づいて、二値化閾値を再度求めることにより、より最適な文字領域の二値画像を得ることもできる。   In step S806, as third graphic data for the character area, graphic data expressed by binary or N-value image data that can easily distinguish pixels inside the character line from pixels other than the character is generated. First, binary image data representing a character region is obtained by cutting out a character region portion from an image obtained by binarizing the entire page. It is also possible to obtain a binary image of a more optimal character region by obtaining the binarization threshold again based on the partial image in the original image corresponding to the character region position obtained in step S803.

そして、二値画像で判別された文字領域の文字線(文字を構成する各黒画素)に対応する位置の原画像の画素値に基づいて、各文字線内部の平均的画素値を求めて各文字の色として判別する。この判別した色情報をパレットコードとして画素毎にN値をとり得るN値画像によるグラフィックデータを生成する。   Based on the pixel value of the original image at the position corresponding to the character line (each black pixel constituting the character) of the character region determined in the binary image, the average pixel value inside each character line is obtained and Judge as the color of the text. Using the determined color information as a palette code, graphic data based on an N-value image that can take an N value for each pixel is generated.

なお、本実施形態ではN値画像を生成するものとしたが、前記文字領域の二値画像を文字毎に前記判別した色情報によるN枚のプレーンに分割し、色情報を持ったN枚の二値画像によるグラフィックデータが生成されるようにしてもよい。   In this embodiment, an N-value image is generated. However, the binary image of the character area is divided into N planes based on the determined color information for each character, and N sheets having color information are obtained. Graphic data based on a binary image may be generated.

次のステップS807では、線画の領域に対し、輪郭に基づいて生成したパス描画データ(外輪郭のみで構成されるパスや、外輪郭と内輪郭のペアで構成される複合バス)からなるベクトル表現のグラフィックデータを作成する。このパス描画からなるベクトルデータは、前述のステップS805における文字領域のベクトルデータ化処理と同様、線画領域の二値画像から、黒画素塊の輪郭線を線分近似することで求めることができる。また、二値画像上で線部分を成す画素の位置に基づいて、多値の原画像上から得た画素値を平均値化することで、パス描画のカラー情報を得る。なお、線画が複数色から構成されている場合は、主要色となる1つの画素値を選んでカラー情報とする。   In the next step S807, a vector representation consisting of path drawing data generated based on the contour (a path composed only of the outer contour or a composite bus composed of a pair of the outer contour and the inner contour) for the line drawing area. Create graphic data. The vector data composed of the path drawing can be obtained by approximating the outline of the black pixel block from the binary image of the line drawing area as in the character vector processing in step S805 described above. Further, based on the position of the pixels forming the line portion on the binary image, the pixel values obtained from the multi-valued original image are averaged to obtain pass drawing color information. When the line drawing is composed of a plurality of colors, one pixel value that is the main color is selected as color information.

ステップS808では、線画の領域に対する第二のグラフィックデータとして、形状要素の描画データからなるベクトル表現のグラフィックデータを作成する。形状要素の描画データとは、線部分を輪郭のベクトルデータ(外輪郭のベクトルデータ、外輪郭と内輪郭のパスの組で記述されるベクトルデータ)ではなく、一本の太さをもった線分のパスとして表現するベクトル表現データ(線分の中心線に基づいて生成されるベクトルデータ(芯線ベクトル))である。或いは、四角や丸など代表的な形状については輪郭パスの集合ではなく各種形状を描画するデータで表現したベクトル表現データである。   In step S808, vector representation graphic data including drawing data of shape elements is created as second graphic data for the line drawing area. The drawing data of the shape element is not a line vector data (outer contour vector data, vector data described by a pair of outer contour and inner contour path), but a line with a single thickness. This is vector expression data (vector data (core line vector) generated based on the center line of a line segment) expressed as a minute path. Alternatively, representative shapes such as squares and circles are vector expression data expressed not by a set of contour paths but by data for drawing various shapes.

ステップS809では、線画の領域に対する第三のグラフィックデータとして、線画部と背景を容易に分離し得る二値或いはN値の画像データで表現されるグラフィックデータを生成する。具体的には、線画領域部分の多値原画像を背景色の画素とそれ以外の画素とに分け、背景画素は仮想的に透明を表す値、それ以外は線画部分の色数を適度に量子化されたN個のパレット色の何れかに対応する値に割り当てた、パレット付きのN値画像を生成する。   In step S809, as third graphic data for the line drawing area, graphic data represented by binary or N-value image data that can easily separate the line drawing portion and the background is generated. Specifically, the multi-valued original image in the line drawing area is divided into background color pixels and other pixels, the background pixels are values that virtually represent transparency, and otherwise the number of colors in the line drawing area is appropriately quantized. An N-value image with a palette assigned to a value corresponding to one of the generated N palette colors is generated.

続くステップS810では、自然画(写真)の領域に対し、画像からなるグラフィックデータを作成する。具体的には、原画像から該当領域部分を切り出した状態の画像データを作成する。   In the subsequent step S810, graphic data composed of images is created for a natural image (photo) area. Specifically, image data in a state in which the corresponding area portion is cut out from the original image is created.

さらに、ステップS811では、表領域に対し、表枠線の描画データから成るベクトル表現のグラフィックデータを作成する。具体的な処理方法は、表領域の二値画像から文字部分の画素を消去し、表枠のみの画像を作成する。その後、線画の場合と同様に、線分抽出、近似処理を行い、必要に応じて表のセルに対応する矩形描画のベクトルデータへと変換する。   In step S811, vector-represented graphic data composed of drawing data for the table frame lines is created for the table area. As a specific processing method, pixels in a character part are deleted from a binary image in a table area, and an image having only a table frame is created. After that, as in the case of the line drawing, line segment extraction and approximation processing are performed, and if necessary, conversion into rectangular drawing vector data corresponding to the table cell is performed.

ステップS812では、表領域に対し、表内文字の文字コードとその行列状配置構造を表現するデータから成る、表領域グラフィックデータを作成する。表内文字に関しては、既にステップS804おいて、表内の枠で囲まれた領域、所謂セル毎に内部の文字領域に対する文字コード及びフォント情報が抽出されているものとする。行列状配置構造に関しては、既に表に対するブロックセレクション処理の過程でセルの位置関係が判別されるので、どのような配置関係にあるかは得られている。ここで表のセルは表内の白画素塊に相当し、それらは各々表内を行列状格子に配置されるときの位置情報及びセル領域サイズ情報を持っている。上記の文字コード及びセルの位置、サイズ情報を合せて表領域のグラフィックデータとする。   In step S812, table area graphic data including data representing the character code of the characters in the table and the matrix arrangement structure is created for the table area. Regarding the characters in the table, it is assumed that in step S804, the character code and font information for the internal character region have been extracted for each region surrounded by a frame in the table, so-called cell. With regard to the matrix arrangement structure, since the positional relationship of the cells is already determined in the process of the block selection process for the table, what kind of arrangement relationship is obtained is obtained. Here, the cells in the table correspond to white pixel blocks in the table, and each has position information and cell area size information when the table is arranged in a matrix grid. The above-mentioned character code, cell position, and size information are combined into graphic data for the table area.

ステップS813では、ステップS804〜812で各種グラフィックデータに変換された前景の情報を原画像から取り除いたもの、即ち背景の画像から成るグラフィックデータを作成する。具体的な背景の作成は次のように行う。文字及び表、線画領域においては、領域の二値画像を参照し、その黒画素に当たる画素に対応する位置にある原画像の画素を背景色に変更する。背景色とは、その画素の近傍にある画素の色(二値画像では白画素に相当する画素に対応する位置にある原画像の画素の色)である。実際のスキャン画像では線近辺の画素端は幾分なだらかに変化しているから、背景色に変更する画素は実際の二値画像上の黒画素を1dot程度太らせた範囲にする方が良く、背景色を求める際にもその太らせた範囲外の画素数点の平均色として求める方が良い。このような処理を行うことにより、文字や線画などに対応する画素の色をその周りの背景色で置換した背景画像を生成する。   In step S813, the foreground information converted into the various graphic data in steps S804 to 812 is removed from the original image, that is, graphic data including a background image is created. The concrete background is created as follows. In the character, table, and line drawing area, the binary image of the area is referred to, and the pixel of the original image at the position corresponding to the pixel corresponding to the black pixel is changed to the background color. The background color is the color of a pixel in the vicinity of the pixel (in the binary image, the color of the pixel of the original image at a position corresponding to a pixel corresponding to a white pixel). In the actual scan image, the pixel end near the line changes somewhat gently, so the pixel to be changed to the background color is better in the range where the black pixel on the actual binary image is thickened by about 1 dot, When obtaining the background color, it is better to obtain the average color of several pixels outside the fattened range. By performing such processing, a background image in which the color of a pixel corresponding to a character or a line drawing is replaced with the surrounding background color is generated.

以上、ステップS804〜S813にて生成されたグラフィックデータは、グラフィックデータへのリンクから参照されるデータとして保持される。ここでグラフィックデータの形式はどのようなものでも構わない。アプリケーション上での描画命令に一対一で対応したバイナリ描画データの集合でも良いし、或いはSVGのようなグラフィック言語によって記述されたテキストデータであっても良い。   As described above, the graphic data generated in steps S804 to S813 is held as data referenced from the link to the graphic data. Here, any format of graphic data may be used. It may be a set of binary drawing data corresponding one-to-one with drawing commands on the application, or may be text data described in a graphic language such as SVG.

B−2.グラフィック表示操作(2)
次に、グラフィック表示操作(2)関連の動作を説明する。
B-2. Graphic display operation (2)
Next, operations related to the graphic display operation (2) will be described.

グラフィック表示とは、グラフィックデータの一部或いは全部を二次元の画像データへとラスタライズして表示領域504へと描画することである。このとき、グラフィック表示操作は、アプリケーション303が保持するグラフィックデータによって表現し得るページ領域のうちどの部分を表示するかを、ユーザーの意図に基づいて選択する機能を提供する。或いは、ある同じ領域を表現する複数種類のグラフィックデータを保持しているときにどの種類のグラフィックデータを描画して表示するかを、ユーザーの意図に基づいて選択する機能を提供する。   The graphic display means that a part or all of graphic data is rasterized into two-dimensional image data and drawn in the display area 504. At this time, the graphic display operation provides a function of selecting which portion of the page area that can be expressed by the graphic data held by the application 303 is to be displayed based on the user's intention. Alternatively, it provides a function of selecting which type of graphic data is drawn and displayed based on the user's intention when holding a plurality of types of graphic data representing a certain region.

具体的操作としては、メニューバー502にて508文字列「表示」をクリックすると、展開されるメニュー(図10)の各項目をクリックすることによって各処理が実行される。以下に詳細を説明する。   As a specific operation, when a 508 character string “display” is clicked on the menu bar 502, each process is executed by clicking each item of the expanded menu (FIG. 10). Details will be described below.

B−2a.定倍率表示操作
グラフィックデータは、各描画要素が持つ座標値に対してある比を乗じて描画することにより、ラスタライズ後の大きさを自由に変更することができる。ここで、元々のページの物理的大きさと、ディスプレイ装置102上での見かけの大きさが等しくなるとき倍率を100%と定める。倍率100%時に座標値に乗ずる比の値はグラフィックデータの解像度とディスプレイ解像度との比から一意に定まる。
B-2a. Constant magnification display operation The graphic data can be freely changed in size after rasterization by drawing by multiplying the coordinate value of each drawing element by a certain ratio. Here, when the physical size of the original page and the apparent size on the display device 102 are equal, the magnification is set to 100%. The ratio value multiplied by the coordinate value when the magnification is 100% is uniquely determined from the ratio between the resolution of the graphic data and the display resolution.

図10は、定倍率表示操作を指示するメニューの一例を示す画面図である。   FIG. 10 is a screen diagram illustrating an example of a menu for instructing a constant magnification display operation.

このメニューには、1001〜1007にそれぞれ示す「25%」、「50%」、「100%」、「200%」、「400%」、「800%」、及び「倍率指定」の7項目がある。これらメニュー1001〜1006は、選択された倍率でラスタライズされてディスプレイ装置102に表示される。「倍率指定」1007の項目を選ぶと倍率の数値を入力するダイアログが開き、そこで入力された値に応じた倍率でラスタライズされてディスプレイ装置102に表示される。   In this menu, there are seven items of “25%”, “50%”, “100%”, “200%”, “400%”, “800%”, and “Specify magnification” shown in 1001 to 1007, respectively. is there. These menus 1001 to 1006 are rasterized at the selected magnification and displayed on the display device 102. When the item “Specify magnification” 1007 is selected, a dialog for inputting a numerical value of the magnification is opened. The dialog is rasterized at a magnification according to the input value and displayed on the display device 102.

指示された倍率でラスタライズされたページが、表示領域504に収まらない場合は、表示可能な範囲のみが描画される。ユーザーが描画範囲を変更可能な表示領域の右及び下にあるスクロールバー505、506を動かすほか、後述のパン操作で描画範囲を変更することもできる。   If the page rasterized at the specified magnification does not fit in the display area 504, only the displayable range is drawn. In addition to moving the scroll bars 505 and 506 at the right and bottom of the display area where the user can change the drawing range, the drawing range can also be changed by a pan operation described later.

B−2b.ウィンドウ依存表示操作
ウィンドウ依存表示操作は、グラフィックデータを現在のアプリケーションウィンドウ表示サイズに依存する大きさでラスタライズしてディスプレイ装置102表示する操作である。図10の1008,1009がウィンドウ依存表示操作を指示するメニューの例である。「ページ全体を表示」1008は、ウィンドウ内の表示領域内にページ全体が収まるような大きさで、「幅を合せて表示」1009は表示領域幅とラスタライズされたページ幅が等しくなるような大きさで、それぞれラスタライズされ表示される。アプリケーションウィンドウのサイズを変更するとそれに合せた大きさで再ラスタライズされ表示される。
B-2b. Window-Dependent Display Operation The window-dependent display operation is an operation for rasterizing graphic data with a size depending on the current application window display size and displaying it on the display device 102. 1008 and 1009 in FIG. 10 are examples of menus for instructing window-dependent display operations. “Display entire page” 1008 is a size so that the entire page fits within the display area in the window, and “Display with fit width” 1009 is a size so that the display area width and the rasterized page width are equal. Now, each is rasterized and displayed. If you change the size of the application window, it will be re-rasterized and displayed in the same size.

B−2c.ルーペ操作
ルーペ操作とは、アプリケーションウィンドウに現在表示されているグラフィックデータの一部を拡大して表示する操作である。図10中のメニューの「ルーペ」項目1010を選択した後に、表示領域上の一点でマウスのボタンを押下し、そのままドラッグしてボタンを離すと、押下した点と離した点の2点を対角点とする矩形の範囲を拡大して表示する。このとき、拡大領域の幅が表示領域の幅と等しくなる倍率と、拡大領域の高さが表示領域の高さと等しくなる倍率、両者のうち小さい方の倍率でグラフィックデータがラスタライズされ表示される。なお、マウスボタンを押下してからドラッグせずに離した場合、現在表示されている倍率の2倍で表示する。
B-2c. Loupe operation The loupe operation is an operation for enlarging and displaying a part of the graphic data currently displayed in the application window. After selecting the “Loupe” item 1010 in the menu in FIG. 10, when the mouse button is pressed at one point on the display area and dragged as it is to release the button, the pressed point and the released point are paired. Enlarges and displays a rectangular range that is a corner point. At this time, the graphic data is rasterized and displayed at a magnification at which the width of the enlarged region is equal to the width of the display region, a magnification at which the height of the enlarged region is equal to the height of the display region, and the smaller of the two. If the mouse button is pressed and then released without dragging, it is displayed at twice the magnification currently displayed.

B−2d.パン操作
マウスのドラッグにより、アプリケーションウィンドウに一部分表示されているラスタライズされたグラフィックデータの表示範囲を変更する操作である。図10中メニューの「パン」項目1011を選択した後に、表示領域上の一点でマウスボタンを押下してドラッグすると、それに連動して表示される範囲が移動する。ページの幅が表示領域の幅に収まっている場合左右には移動しない。同様にページ高さが表示領域の高さに収まっている場合上下には移動しない。
B-2d. Pan operation This operation changes the display range of rasterized graphic data partially displayed in the application window by dragging the mouse. When the “pan” item 1011 in the menu in FIG. 10 is selected and then the mouse button is pressed and dragged at one point on the display area, the displayed range moves in conjunction therewith. When the page width is within the width of the display area, it does not move to the left or right. Similarly, when the page height is within the display area, it does not move up and down.

B−2e.表示選択操作
ページを構成するグラフィックデータは、前述のとおり文書のオブジェクトに分割された領域毎にそれぞれが領域内のグラフィックデータとして保持されている。また、文書のオブジェクトは大きく分けて前景と背景に分けられる。
B-2e. Display selection operation As described above, the graphic data constituting the page is held as graphic data in each region divided into document objects as described above. Document objects are roughly divided into foreground and background.

図10中のメニュー1012,1013,1014は前景と背景を選択的に表示するための項目である。「前景」1012を選ぶと前景のグラフィックデータのみが表示され、「背景」1013を選ぶと背景のグラフィックデータのみが表示され、「前景+背景」1014を選ぶと背景のグラフィック上に前景のグラフィックデータが描画された状態で表示される。   Menus 1012, 1013, and 1014 in FIG. 10 are items for selectively displaying the foreground and the background. When “Foreground” 1012 is selected, only the foreground graphic data is displayed. When “Background” 1013 is selected, only the background graphic data is displayed. When “Foreground + Background” 1014 is selected, the foreground graphic data is displayed on the background graphic. Is displayed in a drawn state.

図11は、表示選択の例を示す画面図である。   FIG. 11 is a screen diagram illustrating an example of display selection.

例えば、「前景」1012選択時には画面1801のように表示され、「背景」1013選択時には画面1802のように表示される。また、「前景+背景」1014選択時には画面1803のように表示される。   For example, when “Foreground” 1012 is selected, a screen 1801 is displayed, and when “Background” 1013 is selected, a screen 1802 is displayed. Further, when “Foreground + Background” 1014 is selected, a screen 1803 is displayed.

また、図10中のメニューの「前景詳細」1015を選ぶと、前景の領域が複数種類のグラフィックデータ表現を保持する場合に、どの表現種を描画オブジェクトとして表示するかを選択することが可能なダイアログが開かれる。図12の1901は、「前景詳細」1015が選択された際に表示されるダイアログの例である。図12では、文字の領域に対しては、文字輪郭パスデータ表現と画像データ表現の何れかをユーザーが選択できるようにしている。さらに線画の領域に対しては、内外輪郭パスデータ表現(輪郭ベクトル表現)、形状要素データ表現(芯線ベクトル表現)、及び画像データ表現の何れかを選択できる。   Also, by selecting “Foreground Details” 1015 from the menu in FIG. 10, it is possible to select which expression type is displayed as a drawing object when the foreground area holds a plurality of types of graphic data expressions. A dialog is opened. Reference numeral 1901 in FIG. 12 is an example of a dialog displayed when “Foreground Details” 1015 is selected. In FIG. 12, the user can select either the character outline path data expression or the image data expression for the character area. Furthermore, for the line drawing area, one of internal / external contour path data expression (contour vector expression), shape element data expression (core line vector expression), and image data expression can be selected.

なお、本実施の形態では、文字領域における文字コード表現と、表領域における表内文字コード及び行列状配置構造表現は、前景として描画されるグラフィックとしては扱っておらず、図12での選択肢にも含まれない。   In the present embodiment, the character code representation in the character region, the in-table character code and the matrix arrangement structure representation in the table region are not treated as graphics drawn as the foreground, and are the options in FIG. Is not included.

(C)グラフィック選択操作(3)
次に、グラフィック選択操作(3)について説明する。
(C) Graphic selection operation (3)
Next, the graphic selection operation (3) will be described.

ユーザーはグラフィック選択操作(3)によりグラフィックデータの一部範囲或いは全体を選択的に指示することができる。この操作は、後述のコピー操作(4)と組み合わせて、アプリケーション303が保持するグラフィックデータの一部または全部をアプリケーション304など別のアプリケーション上で利用する目的で行われる。   The user can selectively instruct a partial range or the whole of graphic data by graphic selection operation (3). This operation is performed for the purpose of using a part or all of graphic data held by the application 303 on another application such as the application 304 in combination with a copy operation (4) described later.

図13中のメニューの1101〜1103は、選択するグラフィック種類を指示するメニューである。「描画オブジェクト選択」1101、「文字コード選択」1102、或いは「表選択」1103の3項目の何れかをクリックした後に、表示領域上でマウスをドラッグして選択する範囲を指示すると、範囲内で選択対象となるグラフィックデータの選択状態となる。この選択状態となったグラフィックデータは後述のコピー操作(4)の対象となる。   Menus 1101 to 1103 in FIG. 13 are menus for designating graphic types to be selected. After clicking one of the three items “select drawing object” 1101, “select character code” 1102, or “select table” 1103, drag the mouse over the display area to indicate the selection range. The selected graphic data is selected. The selected graphic data is a target of a copy operation (4) described later.

以下、上記3種の選択それぞれの場合について説明する。   Hereinafter, each of the above three types of selection will be described.

まず、「描画オブジェクト選択」1101を指示した場合、マウスによる表示領域上での範囲指定、即ちマウスボタンを押下した点と離した点を対角点とする矩形範囲に存在するグラフィックデータのうち、現在描画されているグラフィックデータが選択対象となる。ここで、現在描画されているグラフィックデータとは、前記表示選択操作でメニュー1012〜1014及び1015によって選ばれたグラフィックデータに一致する。即ち、「前景」1012の表示選択時には、前景に当たるグラフィックデータのみが、「背景」1013表示選択時には背景のグラフィックデータのみが、「前景+背景」1014の表示選択時には前景と背景両方のグラフィックデータが選択対象となる。さらに、対象領域において複数種の表現からなる前景グラフィックデータを持っている場合、「前景詳細」1015によって選択された種類のグラフィックデータ表現が選択対象となる。   First, when “drawing object selection” 1101 is instructed, the range designation on the display area by the mouse, that is, among the graphic data existing in the rectangular range having the point separated from the point where the mouse button is pressed as a diagonal point, The graphic data currently drawn is selected. Here, the currently drawn graphic data matches the graphic data selected by the menus 1012 to 1014 and 1015 in the display selection operation. That is, when the display of “foreground” 1012 is selected, only graphic data corresponding to the foreground is displayed, only when graphic display of “background” 1013 is selected, only graphic data of the background is displayed, and when display of “foreground + background” 1014 is selected, graphic data of both foreground and background are displayed. Can be selected. Further, when the foreground graphic data including a plurality of types of expressions is included in the target area, the graphic data expression of the type selected by the “foreground details” 1015 is selected.

指定された選択範囲の境界を跨いでいるグラフィック描画要素が存在する場合、選択範囲と選択状態にあるグラフィック描画要素の対応を一致させる。そのために、選択の範囲を変更する、もしくはグラフィックデータ描画要素自体を一部切り取って選択範囲内に収まるようにする、等の処理が必要となる。具体的には、選択されるグラフィック描画要素が画像表現のデータ(ラスタ画像)の場合、元データから選択範囲内にかかる部分のみを切り取って作成された新規のグラフィックデータを選択対象とする。但し、実際に切り取りの加工処理を行うのは選択時ではなく、後述のコピー操作(4)を実行する際に行う方が良い。   When there is a graphic drawing element straddling the boundary of the specified selection range, the correspondence between the selection range and the graphic drawing element in the selected state is matched. Therefore, it is necessary to perform processing such as changing the selection range or cutting out a part of the graphic data drawing element itself so as to be within the selection range. Specifically, when the graphic drawing element to be selected is image representation data (raster image), new graphic data created by cutting only the portion within the selection range from the original data is selected. However, it is better to actually perform the cutting process when the copy operation (4) described later is executed, not at the time of selection.

一方、選択されるグラフィック描画要素がベクトル表現のデータの場合、選択範囲でデータを切り取ることは容易ではないので、以下2つ何れかの対処を行う。   On the other hand, when the graphic drawing element to be selected is vector representation data, it is not easy to cut out the data within the selection range, so one of the following two measures is taken.

(対処1)選択範囲をはみだすグラフィック描画要素は選択対象外とする
(対処2)ユーザーが最初に指示した選択範囲に重なっているグラフィック描画要素は全て内包されるように選択範囲となる矩形を自動的に拡大する
図14は、前記(対処1)の例を示す図であり、図中の1201の状態でドラッグしたマウスのボタンを離すと、範囲からはみだすグラフィック要素1202と1203は選択対象外となる。図15は、前記(対処2)の例を示す図であり、図中の1301の状態でドラッグしたマウスのボタンを離すと、範囲からはみだすグラフィック要素1302と1303を内包するように、選択範囲は1304のように自動的に拡大される。
(Countermeasure 1) Graphic drawing elements that protrude from the selection range are excluded from selection. (Countermeasure 2) The rectangle that is the selection range is automatically included so that all graphic drawing elements that overlap the selection range that the user first specified are included. FIG. 14 is a diagram showing an example of the (Countermeasure 1). When the mouse button dragged in the state 1201 in the figure is released, the graphic elements 1202 and 1203 that protrude from the range are not selected. Become. FIG. 15 is a diagram showing an example of the (Countermeasure 2). When the mouse button dragged in the state of 1301 in the figure is released, the selection range includes the graphic elements 1302 and 1303 that protrude from the range. It is automatically enlarged as in 1304.

なお、(対処1),(対処2)どちらを行うかは固定であっても、ユーザーが選択するようにしても良い。また、背景など画像のデータを含むか否か、または文字のように小さな要素と表枠や線画のように大きな要素とで動作を変更するようにしても良い。   It should be noted that which of (Countermeasure 1) and (Countermeasure 2) is performed may be fixed or may be selected by the user. The operation may be changed depending on whether image data such as a background is included, or a small element such as a character and a large element such as a table frame or a line drawing.

「描画オブジェクト選択」1101の選択時には、指定された選択範囲を視覚的に明示するために、選択範囲に対応する四角の枠が表示領域上に重ねて表示される。また、どのグラフィック描画要素が選択状態になっているかをユーザーに視覚的に明示するために、選択対称となるグラフィック描画要素の一部は、色や形状などの修飾が施された状態で表示領域に描画される。例えば、文字や線画、表枠などベクトル表現されるデータについては、選択状態になったグラフィック描画要素は本来の色ではなく赤で描画される。これによりユーザーは選択状態にあるデータと非選択状態にあるデータとを容易に区別することができる。   When “Select drawing object” 1101 is selected, a square frame corresponding to the selected range is displayed over the display area in order to visually specify the specified selected range. In addition, in order to visually indicate to the user which graphic drawing element is in the selected state, some of the graphic drawing elements that are selected symmetrically are displayed in the display area with a modification such as color or shape. Drawn on. For example, for data expressed in vectors, such as characters, line drawings, and table frames, the graphic drawing element in the selected state is drawn in red instead of the original color. As a result, the user can easily distinguish the data in the selected state from the data in the non-selected state.

前記の例に留まらず別の色に、例えば元の色のR(レッド),G(グリーン),B(ブルー)値をそれぞれ反転させた色にしても良い。また、選択状態と非選択状態にあるグラフィック描画要素の視覚的な区別が容易となるのであれば、色ではなく輪郭内の塗り潰しパターンを変更したり、或いは点滅させたり、太さを変えたりしても良い。   The color is not limited to the above example, but may be a color obtained by inverting the R (red), G (green), and B (blue) values of the original color. In addition, if it is easy to visually distinguish the graphic drawing elements in the selected state and the non-selected state, the fill pattern in the outline instead of the color can be changed, or the thickness can be changed. May be.

さらに、範囲指定により選択されるグラフィック描画要素は、前記の図10等で説明した表示選択操作によって選ばれているもの、即ち実際に表示されている描画データに限定される。このときに選択状態となるグラフィック描画要素の種類が、表示領域に描画されたグラフィックを見るだけでは分かりにくい場合がある。例えば、背景が白い部分については、視覚上「前景」のみを表示している場合と「前景+背景」を表示している場合との区別がつかない。或いは、図10の「前景詳細」1015の設定にて、線画を表現するデータとして、輪郭のパスデータ表現が描画されているのか、或いは形状要素のデータが描画されているのかなど、見た目の差が微少で区別がつきにくい場合がある。   Furthermore, the graphic drawing elements selected by the range specification are limited to those selected by the display selection operation described with reference to FIG. 10 and the like, that is, the drawing data actually displayed. At this time, the type of the graphic drawing element to be selected may be difficult to understand simply by looking at the graphic drawn in the display area. For example, for a white background portion, it is not possible to visually distinguish between the case where only “foreground” is displayed and the case where “foreground + background” is displayed. Alternatively, in the setting of “foreground details” 1015 in FIG. 10, the difference in appearance such as whether contour path data representation is drawn or shape element data is drawn as data representing a line drawing. May be small and difficult to distinguish.

そこで、先の選択状態を明示する表現方法を、選択状態となったデータの種類に応じて更に変更することで、後述のコピー操作(4)においてどのデータがコピーされるかをユーザーにより明確に提示する。これにより、意図に反した異なる種類のデータをコピーすることを防止する。例えば、前述した表示選択操作における「前景」表示時には、選択領域に対応する四角の枠の表示色を青とし、「背景」表示時、「前景+背景」表示時にはそれぞれ赤、緑とする。   Therefore, by further changing the expression method that clearly indicates the selection state in accordance with the type of data in the selection state, it becomes clear to the user which data is copied in the copy operation (4) described later. Present. This prevents copying different types of data that are not intended. For example, when “foreground” is displayed in the display selection operation described above, the display color of the square frame corresponding to the selected area is blue, and when “background” is displayed and “foreground + background” is displayed, red and green are used.

また、図10の「前景詳細」1015の設定における、複数の表現種類を持つオブジェクトに対する描画種類の設定に対しては、上記の枠の少し内側に描画種類に同期する色の枠を描画した二重枠表示を行う。例えば、輪郭パスデータが選択される場合には黄色の枠、形状要素のデータが選択される場合には紫色の枠、というように描画種類に一対一となる色で内側の枠を表示する。もちろん、前記の色付きの二重枠に限らず、色と線種や点滅など組み合わせても良い。或いは、枠だけではなく選択状態にあるグラフィック描画要素の色や形状をデータ種類に応じて変更しても良い。   Further, in the setting of “foreground details” 1015 in FIG. 10, for the setting of the drawing type for an object having a plurality of expression types, a color frame synchronized with the drawing type is drawn slightly inside the above frame. Double frame display. For example, the inner frame is displayed in a one-to-one color according to the drawing type, such as a yellow frame when contour path data is selected, and a purple frame when shape element data is selected. Of course, it is not limited to the above-mentioned double frame with color, but may be a combination of color, line type, blinking, and the like. Alternatively, not only the frame but also the color and shape of the graphic drawing element in the selected state may be changed according to the data type.

図13に戻って、「文字コード選択」1102が指示された場合、マウスのドラッグで指定される範囲にある文字コード表現のデータが選択される。文字コード表現はグラフィックとして描画されていないので、各選択文字に相当する範囲を黒く塗り潰したり、画素値を算術的に反転するなどしたりして、当該位置の文字コードが選択状態にあることをユーザーに提示する。図16は、文字コード選択状態の表示例を示す図である。マウスで領域2001を指定すると、図中の2002のように領域内の文字に相当する部分がそれぞれ黒塗りされた状態になる。   Returning to FIG. 13, when “select character code” 1102 is instructed, data of character code expression in the range specified by dragging the mouse is selected. Since the character code expression is not drawn as a graphic, the character code at that position is in the selected state by, for example, blackening the range corresponding to each selected character or arithmetically inverting the pixel value. Present to the user. FIG. 16 is a diagram illustrating a display example of a character code selection state. When an area 2001 is designated with the mouse, portions corresponding to characters in the area are blackened as indicated by 2002 in the figure.

図13において、「表選択」1103を指示した場合、マウスのドラッグで指定される範囲にある表に対し、その内部の文字コード及び行列状の配置構造を表現するデータが選択状態となる。表が選択状態となったことをユーザーに明示するために、表の外周に他の描画オブジェクト選択とは異なる色の枠を上書きする。   In FIG. 13, when “table selection” 1103 is instructed, the data representing the internal character code and matrix arrangement structure is selected for the table in the range specified by dragging the mouse. In order to clearly indicate to the user that the table has been selected, a frame of a color different from the selection of other drawing objects is overwritten on the outer periphery of the table.

また、図13の「領域情報表示」項目1104を指示すると、表示領域に描画されたグラフィックデータ上に、ブロックセレクション(領域分割)処理(図9のステップS803)の結果として得た領域情報にそれぞれ対応する矩形枠が表示される。このときに任意の矩形枠をマウスでクリックすることにより、その枠内のグラフィックデータ、文書オブジェクト単位のグラフィックデータを選択状態にすることができる。なお、選択されるグラフィックデータ種類は、前述した図13の1101〜1103の選択、及び図10〜図12等で説明した表示選択操作に従う。図17に「領域情報表示」項目1104の指示後の例を示す。図17において、表示選択操作は「前景」になっており、かつ色の代わりに点線で図示している。   When the “area information display” item 1104 in FIG. 13 is designated, the area information obtained as a result of the block selection (area division) process (step S803 in FIG. 9) is displayed on the graphic data drawn in the display area. The corresponding rectangular frame is displayed. At this time, by clicking an arbitrary rectangular frame with the mouse, the graphic data in the frame and the graphic data for each document object can be selected. Note that the graphic data type to be selected follows the selection of 1101 to 1103 in FIG. 13 described above and the display selection operation described in FIGS. FIG. 17 shows an example after the designation of the “area information display” item 1104. In FIG. 17, the display selection operation is “foreground” and is indicated by a dotted line instead of a color.

(D)コピー操作(4)
グラフィック選択操作(3)により、少なくとも1つ以上のグラフィックデータ要素が選択状態にあるとき、図13の「コピー」1105を指示すると、選択状態にあるグラフィックデータの内容がクリップボード305へと複写される。クリップボード305に複写されたグラフィックデータは、グラフィック編集アプリケーション304のように、複写されたグラフィックデータのデータ形式を解釈可能な任意のアプリケーションに貼り付けて使用することが可能である。
(D) Copy operation (4)
When at least one graphic data element is in a selected state by the graphic selection operation (3), when the “copy” 1105 in FIG. 13 is instructed, the content of the selected graphic data is copied to the clipboard 305. . The graphic data copied to the clipboard 305 can be pasted and used in any application that can interpret the data format of the copied graphic data, such as the graphic editing application 304.

コピー操作(4)に対する内部動作を図18に従って説明する。図18は、コピー操作(4)に対する内部動作を示すフローチャートである。   The internal operation for the copy operation (4) will be described with reference to FIG. FIG. 18 is a flowchart showing an internal operation for the copy operation (4).

まずステップS1401では、選択対象にラスタ画像データがある場合、その画像データが選択領域内に収まっているかどうかを判断し、収まっていればステップS1403に、収まっていなければステップS1402に進む。次のステップS1402では、選択対象の画像データから選択領域と重なる部分のみを切り取った画像を新たな選択対象とし、元の画像データは選択対象から外す。   First, in step S1401, when raster image data is included in the selection target, it is determined whether or not the image data is within the selection area. If it is within the selection area, the process proceeds to step S1403. If not, the process proceeds to step S1402. In the next step S1402, an image obtained by cutting only a portion overlapping the selection area from the selection target image data is set as a new selection target, and the original image data is excluded from the selection target.

ステップS1403では、アプリケーション内部形式のグラフィックデータフォーマットを、クリップボード305へ保存するのに適したフォーマットに変換する。ここでは、このデータを利用するグラフィック編集アプリケーション304が解釈可能なフォーマットへと変換する。その後のステップS1404では、変換されたグラフィックデータをクリップボード305へと複写する。   In step S1403, the graphic data format in the application internal format is converted into a format suitable for saving to the clipboard 305. Here, the graphic editing application 304 that uses this data is converted into a format that can be interpreted. In the subsequent step S1404, the converted graphic data is copied to the clipboard 305.

次に、図19、図20及び図21を用いて、グラフィックデータを選択かつコピー操作した場合に、クリップボード305へ複写されるデータ種類の例について説明する。   Next, an example of data types to be copied to the clipboard 305 when graphic data is selected and copied is described with reference to FIGS. 19, 20, and 21.

ここで処理しようとしているのは、図22に示されるページのデータであり、図中の2501は前景となる文字領域、2502は背景領域をそれぞれ点線枠で示している。また図10の「前景詳細」1015の設定では、文字領域のパス描画を選択しているものとする。前述した図10等で説明した表示選択操作において、メニュー1012〜1014のいずれかが選ばれている場合に、グラフィックデータの選択範囲として図22の2503に示す実線がマウスで指定されたときの動作を説明する。   What is to be processed here is the data of the page shown in FIG. 22, in which 2501 is a foreground character area, and 2502 is a background area indicated by a dotted frame. In the setting of “foreground details” 1015 in FIG. 10, it is assumed that the path drawing of the character area is selected. In the display selection operation described with reference to FIG. 10 and the like described above, when any of the menus 1012 to 1014 is selected, an operation when the solid line indicated by 2503 in FIG. Will be explained.

図19は、「前景」表示の選択時を説明するための説明図である。   FIG. 19 is an explanatory diagram for explaining the selection of the “foreground” display.

同図において、表示領域2201でマウスにより選択範囲2202を指定し、コピー操作を行うと、文字領域2501のパス表現グラフィックデータより、選択範囲内にある2文字分のパス描画データ2203,2204がクリップボード305へ複写される。   In the figure, when a selection range 2202 is designated with a mouse in the display area 2201 and a copy operation is performed, path drawing data 2203 and 2204 for two characters in the selection range are displayed on the clipboard from the path expression graphic data in the character area 2501. 305 is copied.

図20は、「背景」表示の選択時を説明するための説明図である。   FIG. 20 is an explanatory diagram for explaining the selection of the “background” display.

同図において、表示領域2301でマウスにより選択範囲2302を指定し、コピー操作を行うと、図22の背景領域2502の画像データから選択範囲のみを切り取った画像データ2303がクリップボード305へと複写される。   In this figure, when a selection range 2302 is designated with a mouse in the display area 2301 and a copy operation is performed, image data 2303 obtained by cutting only the selection range from the image data in the background area 2502 in FIG. 22 is copied to the clipboard 305. .

図21は、「前景+背景」表示の選択時を説明する説明図である。表示領域2401でマウスにより選択範囲2402を指定し、コピー操作を行う。すると、文字領域2501のパス表現グラフィックデータより、パス描画データ2404,2405と、画像データ2406とが合成されたグラフィックデータ2403がクリップボード305へと複写される。ここで、パス描画データ2404,2405は、選択範囲内にある2文字分のパス描画データであり、画像データ2406は、背景領域2502の画像データから選択範囲のみを切り取った画像データである。   FIG. 21 is an explanatory diagram for explaining the selection of “foreground + background” display. A selection range 2402 is designated with a mouse in the display area 2401, and a copy operation is performed. Then, graphic data 2403 obtained by combining the path drawing data 2404 and 2405 and the image data 2406 is copied to the clipboard 305 from the path expression graphic data in the character area 2501. Here, the path drawing data 2404 and 2405 are path drawing data for two characters in the selection range, and the image data 2406 is image data obtained by cutting only the selection range from the image data of the background area 2502.

なお、図21のグラフィックデータ2403は、背景画像データを描画した上にパスデータを描画するように記述されているので、グラフィックデータ2403を受け取ったアプリケーションでは、文字と背景を別々に扱うことが可能である。   Since the graphic data 2403 in FIG. 21 is described so that the path data is drawn after drawing the background image data, the application receiving the graphic data 2403 can handle the character and the background separately. It is.

(E)書き込み操作(5)
図8の「保存」項目902を指示すると、アプリケーション303が持つグラフィックデータを、直後に表示されるダイアログ(非図示)でユーザーが指定したファイルへと保存する。
(E) Write operation (5)
When the “save” item 902 in FIG. 8 is designated, the graphic data held by the application 303 is saved in a file designated by the user in a dialog (not shown) displayed immediately after.

(D)クローズ操作(6)
図8の「閉じる」項目903を指示すると、現在読み込んでいるグラフィックデータを破棄し、前述したファイル読み込み操作(1)を待機する状態に戻る。「終了」項目904を指示すると、「閉じる」項目903同様にグラフィックデータを破棄するとともに、アプリケーション303を終了する。
(D) Close operation (6)
When the “close” item 903 in FIG. 8 is instructed, the graphic data currently being read is discarded, and the process returns to the state of waiting for the file reading operation (1) described above. When the “end” item 904 is instructed, the graphic data is discarded as in the “close” item 903 and the application 303 is ended.

<本実施の形態の利点>
本実施の形態によれば、複数のオブジェクトを持つグラフィックデータを複数のアプリケーション間でデータコピーする際に、次のような利点がある。即ち、背景や前景等の階層構造関係にあるオブジェクトを、背景のみ、前景のみ、背景と前景両方などと表示を切り替えて編集しているとき、ユーザーから見えているそのままのオブジェクトだけをユーザーが指定した範囲で複写することが可能になる。しかも階層構造を保持した状態で複写することが可能である。よって、ユーザーは、自分から見えないオブジェクトの階層や、オブジェクトの種類を考慮する必要がなくなり、直感的で分かり易い操作でデータを編集、加工することができる。
<Advantages of this embodiment>
According to the present embodiment, there are the following advantages when graphic data having a plurality of objects is copied between a plurality of applications. That is, when editing objects that have a hierarchical structure such as the background or foreground while switching the display between the background only, the foreground only, both the background and the foreground, etc., the user specifies only the object that is visible to the user. It is possible to copy within the range. Moreover, it is possible to copy while maintaining the hierarchical structure. Therefore, the user does not need to consider the hierarchy of objects that cannot be seen by the user and the types of objects, and can edit and process data with intuitive and easy-to-understand operations.

また、本発明の目的は、前述した各実施の形態の機能を実現するソフトウェアのプログラムコードを記憶した記憶媒体を、システム或いは装置に供給し、そのシステム或いは装置のコンピュータ(またはCPUやMPU等)が記憶媒体に格納されたプログラムコードを読み出し実行することによっても達成される。   Another object of the present invention is to supply a storage medium storing software program codes for realizing the functions of the above-described embodiments to a system or apparatus, and the computer of the system or apparatus (or CPU, MPU, or the like). Is also achieved by reading and executing the program code stored in the storage medium.

この場合、記憶媒体から読み出されたプログラムコード自体が前述した各実施の形態の機能を実現することになり、そのプログラムコード及び該プログラムコードを記憶した記憶媒体は本発明を構成することになる。   In this case, the program code itself read from the storage medium realizes the functions of the above-described embodiments, and the program code and the storage medium storing the program code constitute the present invention. .

また、プログラムコードを供給するための記憶媒体としては、例えば、フロッピー(登録商標)ディスク、ハードディスク、光磁気ディスク、CD−ROM、CD−R、CD−RW、DVD−ROM、DVD−RAM、DVD−RW、DVD+RW等の光ディスク、磁気テープ、不揮発性のメモリカード、ROM等を用いることができる。または、プログラムコードをネットワークを介してダウンロードしても良い。   Examples of the storage medium for supplying the program code include a floppy (registered trademark) disk, a hard disk, a magneto-optical disk, a CD-ROM, a CD-R, a CD-RW, a DVD-ROM, a DVD-RAM, and a DVD. An optical disc such as RW or DVD + RW, a magnetic tape, a nonvolatile memory card, a ROM, or the like can be used. Alternatively, the program code may be downloaded via a network.

また、コンピュータが読み出したプログラムコードを実行することにより、前述した各実施の形態の機能が実現されるだけではなく、そのプログラムコードの指示に基づき、コンピュータ上で稼動しているOS(オペレーティングシステム)等が実際の処理の一部または全部を行い、その処理によって前述した各実施の形態の機能が実現される場合も含まれる。   Further, by executing the program code read by the computer, not only the functions of the above-described embodiments are realized, but also an OS (Operating System) running on the computer based on the instruction of the program code Includes a case where the functions of the above-described embodiments are realized by performing part or all of the actual processing.

さらに、記憶媒体から読み出されたプログラムコードが、コンピュータに挿入された機能拡張ボードやコンピュータに接続された機能拡張ユニットに備わるメモリに書き込まれた後、そのプログラムコードの指示に基づき、その拡張機能を拡張ボードや拡張ユニットに備わるCPU等が実際の処理の一部または全部を行い、その処理によって前述した各実施の形態の機能が実現される場合も含まれる。   Furthermore, after the program code read from the storage medium is written to a memory provided in a function expansion board inserted into the computer or a function expansion unit connected to the computer, the expanded function is based on the instruction of the program code. This includes a case where a CPU or the like provided on the expansion board or the expansion unit performs part or all of the actual processing and the functions of the above-described embodiments are realized by the processing.

実施の形態に係る画像処理装置の構成を示すブロック図である。It is a block diagram which shows the structure of the image processing apparatus which concerns on embodiment. コンピュータ装置のハードウェア構成を示すブロック図である。It is a block diagram which shows the hardware constitutions of a computer apparatus. コンピュータ装置で実行されるソフトウェア構成の概略を示すブロック図である。It is a block diagram which shows the outline of the software structure performed with a computer apparatus. 実施の形態に係る処理の全体的な流れを示すフローチャートである。It is a flowchart which shows the whole flow of the process which concerns on embodiment. アプリケーションの外観を成すウィンドウの一例を示す図である。It is a figure which shows an example of the window which comprises the external appearance of an application. ユーザ指示可能な各操作の遷移関係を示す図である。It is a figure which shows the transition relationship of each operation which can be instruct | indicated by a user. ファイル読み込み操作時におけるアプリケーション内部の動作を示すフローチャートである。It is a flowchart which shows the operation | movement inside an application at the time of file reading operation. メニューバーのファイルを選択した時の詳細表示画面を示す図である。It is a figure which shows the detailed display screen when the file of a menu bar is selected. ラスタ画像データからグラフィックデータへの変換処理を示すフローチャートである。It is a flowchart which shows the conversion process from raster image data to graphic data. 定倍率表示操作を指示するメニュー画面の一例を示す図である。It is a figure which shows an example of the menu screen which instruct | indicates constant magnification display operation. 表示選択の例を示す画面図である。It is a screen figure which shows the example of display selection. 前景描画オブジェクトの詳細選択画面を示す図である。It is a figure which shows the detail selection screen of a foreground drawing object. グラフィック種類を指示するメニュー画面を示す図である。It is a figure which shows the menu screen which instruct | indicates a graphic kind. (対処1)の例を示す図である。It is a figure which shows the example of (handling 1). (対処2)の例を示す図である。It is a figure which shows the example of (handling 2). 文字選択状態の表示例を示す図である。It is a figure which shows the example of a display of a character selection state. 領域情報表示項目を指示後の例を示す図である。It is a figure which shows the example after instruct | indicating an area | region information display item. コピー操作に対する内部動作を示すフローチャートである。It is a flowchart which shows the internal operation | movement with respect to copy operation. 「前景」表示の選択時を説明するための説明図である。FIG. 11 is an explanatory diagram for explaining a selection of “foreground” display. 「背景」表示の選択時を説明するための説明図である。It is explanatory drawing for demonstrating the time of selection of a "background" display. 「前景+背景」表示の選択時を説明するための説明図である。It is explanatory drawing for demonstrating the time of selection of "foreground + background" display. 図19、図20及び図21の処理に用いられるページ例を示す図である。It is a figure which shows the example of a page used for the process of FIG.19, FIG.20 and FIG.21.

符号の説明Explanation of symbols

101 コンピュータ装置
102 ディスプレイ装置
103 プリンタ
104 操作装置
105 スキャナ
201 CPU
202 メモリ
203 ハードディスク
301 OS
302 スキャンアプリケーション
303 グラフィックデータ生成アプリケーション
304 グラフィック編集アプリケーション
305 クリップボード
101 Computer Device 102 Display Device 103 Printer 104 Operation Device 105 Scanner 201 CPU
202 Memory 203 Hard disk 301 OS
302 Scan Application 303 Graphic Data Generation Application 304 Graphic Editing Application 305 Clipboard

Claims (12)

複数のオブジェクトを有する画像データから選択されたオブジェクトを表示する表示選択手段と、
前記表示選択手段で表示されたオブジェクトを、範囲を指定して選択する範囲選択手段と、
前記範囲選択手段で選択された範囲のオブジェクトを複写する範囲指定複写手段とを有することを特徴とする画像処理装置。
Display selection means for displaying an object selected from image data having a plurality of objects;
Range selection means for selecting the object displayed by the display selection means by designating a range;
An image processing apparatus comprising: a range designation copying unit that copies an object in a range selected by the range selection unit.
前記複数のオブジェクトは、互いに複数の階層構造を有することを特徴とする請求項1に記載の画像処理装置。   The image processing apparatus according to claim 1, wherein the plurality of objects have a plurality of hierarchical structures. 前記階層構造は、複数のオブジェクトが背景及び前景を含む重なりを成した構造であることを特徴とする請求項2に記載の画像処理装置。   The image processing apparatus according to claim 2, wherein the hierarchical structure is a structure in which a plurality of objects are overlapped including a background and a foreground. 前記表示選択手段において表示されるオブジェクトは、その種類単位または階層単位、或いはオブジェクト単位で選択されたデータであることを特徴とする請求項1乃至3の何れかに記載の画像処理装置。   4. The image processing apparatus according to claim 1, wherein the object displayed by the display selection unit is data selected in units of types, hierarchies, or objects. 前記範囲選択手段は、指定された選択範囲の境界を跨ぐオブジェクトが存在する場合に、
該オブジェクトの形状に一致した範囲に選択範囲を変形する処理、指定された範囲と重なったオブジェクトの一部分を選択範囲にする処理、または指定された選択範囲の境界を跨ぐオブジェクトは選択しない処理を実行することを特徴とする請求項1乃至4の何れかに記載の画像処理装置。
The range selection means, when there is an object that crosses the boundary of the specified selection range,
Performs processing that transforms the selection range to a range that matches the shape of the object, processing that selects a part of the object that overlaps the specified range, or processing that does not select objects that cross the boundary of the specified selection range The image processing apparatus according to claim 1, wherein the image processing apparatus is an image processing apparatus.
前記範囲指定複写手段は、選択範囲がオブジェクトの一部分である場合に、該選択範囲のみを切り取り変換した画像データを複写することを特徴とする請求項1乃至5の何れかに記載の画像処理装置。   6. The image processing apparatus according to claim 1, wherein when the selection range is a part of an object, the range designation copying unit copies image data obtained by cutting and converting only the selection range. . 前記範囲指定複写手段は、選択範囲に複数のオブジェクトが表示されている場合に、各オブジェクト毎に範囲指定で複写し、オブジェクト間の階層構造を保つことを特徴とする請求項1乃至6の何れかに記載の画像処理装置。   7. The range designation copying means, when a plurality of objects are displayed in a selection range, copying by range designation for each object, and maintaining a hierarchical structure between the objects. An image processing apparatus according to claim 1. 入力されたラスタ画像データから、複数種類の前記オブジェクトを生成するオブジェクト生成手段を更に有することを特徴とする請求項1記載の画像処理装置。   The image processing apparatus according to claim 1, further comprising an object generation unit configured to generate a plurality of types of the objects from input raster image data. 前記オブジェクト生成手段は、前記ラスタ画像を属性毎の複数の領域に分割し、当該分割された領域に基づいて前記複数種類のオブジェクトを生成することを特徴とする請求項8記載の画像処理装置。   The image processing apparatus according to claim 8, wherein the object generation unit divides the raster image into a plurality of areas for each attribute, and generates the plurality of types of objects based on the divided areas. 前記オブジェクト生成手段は、前記ラスタ画像内の文字領域から文字コードデータと輪郭パスデータとN値画像データとの少なくともいずれかを生成し、前記ラスタ画像内の線画領域から輪郭パスデータと芯線ベクトルデータとN値画像データとの少なくともいずれかを生成し、前記ラスタ画像内の表領域から枠線データと文字列データと構造データとの少なくともいずれかを生成することを特徴とする請求項9記載の画像処理装置。   The object generation unit generates at least one of character code data, contour path data, and N-value image data from a character region in the raster image, and contour path data and core vector data from the line drawing region in the raster image. The at least one of image data and N-value image data is generated, and at least one of frame line data, character string data, and structure data is generated from a table area in the raster image. Image processing device. 複数のオブジェクトを有する画像データから選択されたオブジェクトを表示する表示選択工程と、
前記表示選択工程で表示されたオブジェクトを、範囲を指定して選択する範囲選択工程と、
前記範囲選択工程で選択された範囲のオブジェクトを複写する範囲指定複写工程とを有することを特徴とする画像処理方法。
A display selection step of displaying an object selected from image data having a plurality of objects;
A range selection step of selecting the object displayed in the display selection step by designating a range; and
A range designation copying step of copying an object in the range selected in the range selection step.
複数のオブジェクトを有する画像データから選択されたオブジェクトを表示する表示選択ステップと、
前記表示選択ステップで表示されたオブジェクトを、範囲を指定して選択する範囲選択ステップと、
前記範囲選択ステップで選択された範囲のオブジェクトを複写する範囲指定複写ステップとを有することを特徴とする、コンピュータで読み取り可能な制御プログラム。
A display selection step for displaying an object selected from image data having a plurality of objects;
A range selection step of selecting the object displayed in the display selection step by designating a range; and
A computer-readable control program comprising: a range designation copying step for copying an object in a range selected in the range selection step.
JP2005376403A 2005-12-27 2005-12-27 Image processor, image processing method and control program Pending JP2007179261A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2005376403A JP2007179261A (en) 2005-12-27 2005-12-27 Image processor, image processing method and control program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2005376403A JP2007179261A (en) 2005-12-27 2005-12-27 Image processor, image processing method and control program

Publications (1)

Publication Number Publication Date
JP2007179261A true JP2007179261A (en) 2007-07-12

Family

ID=38304392

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2005376403A Pending JP2007179261A (en) 2005-12-27 2005-12-27 Image processor, image processing method and control program

Country Status (1)

Country Link
JP (1) JP2007179261A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011130052A (en) * 2009-12-16 2011-06-30 Kyocera Mita Corp Image formation device and image formation method
JP2014138250A (en) * 2013-01-16 2014-07-28 Konica Minolta Inc Image forming apparatus, display method, and display control program
JP2015095123A (en) * 2013-11-12 2015-05-18 株式会社リコー Information processor, information processing method, and program
CN109993815A (en) * 2017-12-29 2019-07-09 珠海金山办公软件有限公司 The processing method and processing device of object picture in electronic document

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011130052A (en) * 2009-12-16 2011-06-30 Kyocera Mita Corp Image formation device and image formation method
JP2014138250A (en) * 2013-01-16 2014-07-28 Konica Minolta Inc Image forming apparatus, display method, and display control program
JP2015095123A (en) * 2013-11-12 2015-05-18 株式会社リコー Information processor, information processing method, and program
CN109993815A (en) * 2017-12-29 2019-07-09 珠海金山办公软件有限公司 The processing method and processing device of object picture in electronic document
CN109993815B (en) * 2017-12-29 2023-11-07 珠海金山办公软件有限公司 Method and device for processing picture object in electronic document

Similar Documents

Publication Publication Date Title
JP4971768B2 (en) Editing apparatus, editing method, and program
JP3895492B2 (en) Image processing apparatus, image processing method, and computer-readable recording medium storing program for causing computer to execute the method
US7821690B2 (en) Information processing apparatus, image forming apparatus and method, and storage medium readable by computer therefor
US9406159B2 (en) Print-ready document editing using intermediate format
KR101890831B1 (en) Method for Providing E-Book Service and Computer Program Therefore
JP2007110679A (en) Image display device, image display method, program for executing the method by computer, and image display system
US8156431B2 (en) Eliminating inconsistencies between objects and page attributes in an electronic document
CN107665101B (en) Information processing apparatus, information processing method, storage medium, and image forming apparatus
US20070109322A1 (en) Print control program product
JP2001357406A (en) Picture processor
JP2007017945A (en) Information processing apparatus and method
JP2007179261A (en) Image processor, image processing method and control program
JP5063501B2 (en) Image forming apparatus, control method, and control program
JP3974105B2 (en) Image processing apparatus, image processing method, and computer-readable recording medium storing program for causing computer to execute the method
JP2008282149A (en) Image processor, image processing method and image processing program
JP2009130705A (en) Document processing system
JP2012048637A (en) Image processing apparatus, image processing method, computer program
JPH08235344A (en) Scenario editor
US8059138B2 (en) Image processing and arranging system, image processing and arranging method, and computer readable medium for image processing and arranging
JP4841457B2 (en) Image processing apparatus and image processing program
JP6617873B2 (en) Copy paste method, program
JP2006185336A (en) Image processor, method and computer program
JP6512763B2 (en) INFORMATION PROCESSING APPARATUS, INFORMATION PROCESSING METHOD, AND PROGRAM
JP2008015619A (en) Image processor, image processing method, and image processing program
JP2011186835A (en) Image processing apparatus and image processing program

Legal Events

Date Code Title Description
RD05 Notification of revocation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7425

Effective date: 20070626