JP5900259B2 - Graphic image creation device - Google Patents

Graphic image creation device Download PDF

Info

Publication number
JP5900259B2
JP5900259B2 JP2012199598A JP2012199598A JP5900259B2 JP 5900259 B2 JP5900259 B2 JP 5900259B2 JP 2012199598 A JP2012199598 A JP 2012199598A JP 2012199598 A JP2012199598 A JP 2012199598A JP 5900259 B2 JP5900259 B2 JP 5900259B2
Authority
JP
Japan
Prior art keywords
scanning direction
vertical
data
dda
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.)
Expired - Fee Related
Application number
JP2012199598A
Other languages
Japanese (ja)
Other versions
JP2014056326A (en
JP2014056326A5 (en
Inventor
国雄 福田
国雄 福田
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Casio Computer Co Ltd
Original Assignee
Casio Computer Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Casio Computer Co Ltd filed Critical Casio Computer Co Ltd
Priority to JP2012199598A priority Critical patent/JP5900259B2/en
Publication of JP2014056326A publication Critical patent/JP2014056326A/en
Publication of JP2014056326A5 publication Critical patent/JP2014056326A5/ja
Application granted granted Critical
Publication of JP5900259B2 publication Critical patent/JP5900259B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Image Generation (AREA)

Description

本発明は図形画像作成装置に関する。The present invention relates to a graphic image creating apparatus.

近年、各種のグラフィック処理を安価なソフトウエアによって実現できるようになり、基本的なOS(オペレーションシステム)には標準としてグラフィック処理が可能なシステムも組み込まれている。このため、プリンタ装置等の印刷装置による図形印刷や、図形を含む画像印刷を行うことも可能である。例えば、多角形の図形の画像データを生成し、多角形内を特定の色や模様で塗りつぶす印刷処理も可能である。   In recent years, various kinds of graphic processing can be realized by inexpensive software, and a system capable of graphic processing is incorporated as a standard OS (operation system). For this reason, it is also possible to perform graphic printing by a printing apparatus such as a printer apparatus or image printing including a graphic. For example, it is possible to perform a printing process in which image data of a polygonal figure is generated and the inside of the polygon is filled with a specific color or pattern.

従来、上記のような画像塗りつぶし処理は、多角形の各辺をBresenhamのDDA(digital differential analyzer)方式を使用して計算し、この計算で得られた各辺間を所定の色や模様で塗りつぶす方法で行っている。例えば、ある辺に傾きがある場合、当該傾き角からY方向、又はX方向をスキャン方向として誤差値を設定し、順次当該誤差値を加算しながら座標を計算し、辺を形成し、得られた辺の間を塗りつぶすものである。
この方法は、既に広く知られている方法である為、詳しい説明は省略するが、BresenhamのDDA方式の線分描画のプログラム例を図7に示す。
Conventionally, in the image filling process as described above, each side of a polygon is calculated by using Bresenham's DDA (digital differential analyzer) method, and each side obtained by this calculation is filled with a predetermined color or pattern. Is done in the way. For example, if there is an inclination on a certain side, the error value is set from the inclination angle with the Y direction or the X direction as the scanning direction, the coordinates are calculated while sequentially adding the error value, and the side is formed. It fills between the sides.
Since this method is already widely known, a detailed description is omitted, but a program example of Bresenham's DDA line drawing is shown in FIG.

尚、特許文献1は、フレームメモリ上に描画する直線描画装置において、特にDDA方式で直線を描画する際、始点から終点、及び終点から始点の2方向から同時に描画処理を行い、鋭角な直線の描画時間を短縮する発明である。   Patent Document 1 discloses a straight line drawing apparatus for drawing on a frame memory, and particularly when drawing a straight line by the DDA method, the drawing process is performed simultaneously from two directions from the start point to the end point and from the end point to the start point. It is an invention for shortening the drawing time.

特開2002−279435号公報JP 2002-279435 A

しかしながら、従来のDDA方式では多角形のある辺が垂直に近い傾きを有する場合であっても、傾き角から誤差値を設定し、順次当該誤差値を加算しながら座標を計算していたため、辺の作成処理に時間を要し、迅速な図形画像の作成、及び図形内の塗りつぶし処理を行うことができなかった。   However, in the conventional DDA method, even when a side of a polygon has a nearly vertical inclination, an error value is set from the inclination angle, and coordinates are calculated while sequentially adding the error value. It took time to create the image, and it was impossible to quickly create a graphic image and fill the graphic.

本発明は上記課題を解決するため、処理時間を短縮可能な図形画像作成装置を提供することを目的とする。 In order to solve the above-described problems, an object of the present invention is to provide a graphic image creation apparatus capable of reducing the processing time.

上記目的を達成するため、本発明に係る図形画像作成装置は、辺で囲まれた領域を塗りつぶす図形画像作成装置であって、DDA(Digital Differential Analyzer)方式により当該辺を構成する各ドットデータを導出する導出手段と、ドットデータが副走査方向に沿って同一ライン上に並ぶ辺か否かを判定する第1の判定手段と、前記第1の判定手段によりドットデータが副走査方向に沿って同一ライン上に並ぶ辺であると判定された場合に、当該辺を垂直線として辺情報を作成する作成手段と、当該辺における副走査方向からの傾き角が所定の閾値よりも小さいか否かを判定する第2の判定手段と、前記第2の判定手段により当該辺における副走査方向からの傾き角が所定の閾値よりも小さいと判定された場合に、所定数のドットが副走査方向に沿って同一ライン上に連続して並ぶ垂直辺の集合となるように当該辺を細分化または近似する細分化手段と、を備え、前記作成手段は、前記細分化手段によって細分化または近似された前記垂直線それぞれの辺情報を作成することを特徴とする。
また、本発明に係る他の図形画像作成装置は、辺で囲まれた領域を塗りつぶす図形画像作成装置であって、DDA(Digital Differential Analyzer)方式により当該辺を構成する各ドットデータを導出する導出手段と、該辺が主走査方向に対して垂直な辺か否かを判定する第1の判定手段と、前記第1の判定手段により該辺が主走査方向に対して垂直な辺であると判定された場合に、該辺を垂直線として辺情報を作成する作成手段と、前記第1の判定手段により該辺が主走査方向に対して垂直な辺でないと判定された場合に、当該辺における主走査方向に対する傾き角が所定の閾値よりも垂直に近いか否かを判定する第2の判定手段と、前記第2の判定手段により当該辺における主走査方向に対する傾き角が前記所定の閾値よりも垂直に近いと判定された場合に、所定数のドットが副走査方向に沿って同一ライン上に連続して並ぶ垂直辺の集合となるように当該辺を細分化または近似することにより前記垂直辺を特定する細分化手段と、を備え、前記作成手段は、前記細分化手段により特定された前記垂直辺に対する辺情報を作成することを特徴とする。
また、本発明に係る他の図形画像作成装置は、図形を構成する辺の座標データに基づいて前記図形の画像を作成する図形画像作成装置であって、DDA(Digital Differential Analyzer)方式を用いて前記辺の画像データを作成するDDA処理部と、前記辺を垂直辺に細分化することで前記辺の画像データを作成する細分化処理部と、前記辺の傾きに基づいて前記DDA処理部または前記細分化処理部のいずれか一方の処理を選択して、前記辺の画像データを作成する辺データ作成部と、前記辺データ作成部によって作成された前記辺の画像データに基づいて前記図形の画像を作成する図形作成部と、を備えることを特徴とする。
In order to achieve the above object, a graphic image creating apparatus according to the present invention is a graphic image creating apparatus that fills an area surrounded by a side, and each dot data constituting the side is represented by a DDA (Digital Differential Analyzer) method. Deriving means for deriving, first determining means for determining whether the dot data is a side aligned on the same line along the sub-scanning direction, and dot data by the first determining means along the sub-scanning direction When it is determined that the sides are aligned on the same line, a creation unit that creates side information using the side as a vertical line , and whether the inclination angle of the side from the sub-scanning direction is smaller than a predetermined threshold value And when the second determination unit determines that the inclination angle from the sub-scanning direction at the side is smaller than a predetermined threshold, the predetermined number of dots are in the sub-scanning direction. Along And a subdivision unit for subdividing or approximate the edges so that the set of vertical edges arranged continuously on the same line Te, said generating means, said which are subdivided or approximated by the subdivision means It is characterized by creating edge information for each vertical line .
Another graphic image creating apparatus according to the present invention is a graphic image creating apparatus that fills a region surrounded by a side, and derives each dot data constituting the side by a DDA (Digital Differential Analyzer) method. Means, a first determination unit that determines whether or not the side is a side perpendicular to the main scanning direction, and the side that is perpendicular to the main scanning direction by the first determination unit. If it is determined that the side is a vertical line, the creation unit that creates side information and the first determination unit determines that the side is not a side perpendicular to the main scanning direction. A second determination unit that determines whether or not an inclination angle with respect to the main scanning direction is closer to a perpendicular than a predetermined threshold value, and an inclination angle with respect to the main scanning direction at the side by the second determination unit is the predetermined threshold value Determined to be closer to vertical than Subdivision means for specifying the vertical sides by subdividing or approximating the sides so that a predetermined number of dots is a set of vertical sides continuously arranged on the same line along the sub-scanning direction. And the creation means creates edge information for the vertical edge specified by the subdivision means.
Another graphic image creating apparatus according to the present invention is a graphic image creating apparatus that creates an image of the graphic based on the coordinate data of the sides constituting the graphic, and uses a DDA (Digital Differential Analyzer) method. A DDA processing unit that generates image data of the side, a subdivision processing unit that generates image data of the side by subdividing the side into vertical sides, and the DDA processing unit based on the inclination of the side, or A process of selecting one of the subdivision processing units to create image data of the side, and a side of the figure based on the image data of the side created by the side data creation unit And a graphic creation unit for creating an image.

本発明によれば、処理時間を短縮可能な図形画像作成装置を提供することができる。 According to the present invention, it is possible to provide a graphic image creating apparatus capable of reducing the processing time.

本実施形態の図形画像作成装置のシステム構成図である。1 is a system configuration diagram of a graphic image creation apparatus of the present embodiment. 辺情報テーブルの構成を説明する図である。It is a figure explaining the structure of a side information table. (a)、(b)は、本実施形態の図形画像作成装置の図形作成処理の基本概念を説明する図である。(A), (b) is a figure explaining the basic concept of the figure creation process of the figure image creation apparatus of this embodiment. (a)は本実施形態で使用する多角形の図形例を示す図であり、(b)は細分化辺データの作成処理を説明する図である。(A) is a figure which shows the example of the polygon figure used by this embodiment, (b) is a figure explaining the creation process of subdivision side data. 本実施形態の処理を説明するフローチャートである。It is a flowchart explaining the process of this embodiment. 細分化辺データの作成処理によって作成される辺データを視覚的に示す図である。It is a figure which shows the edge data produced by the production | generation process of subdivision edge data visually. BresenhamのDDA方式の線分描画のプログラム例である。This is a program example of Bresenham's DDA line drawing.

以下、本発明の実施の形態について、図面を参照しながら説明する。
図1は本実施形態を説明する図形画像作成装置を含む印刷装置のシステム構成図である。尚、本例で使用する印刷装置は、印刷機能に加えて、スキャナ機能やファクシミリ機能、複写機能等を備えた複合機(以下、MFP(多機能印刷装置・マルチファンクションプリンタ)で示す)であり、以後このMFPを使用して説明する。
Hereinafter, embodiments of the present invention will be described with reference to the drawings.
FIG. 1 is a system configuration diagram of a printing apparatus including a graphic image creating apparatus for explaining the present embodiment. Note that the printing apparatus used in this example is a multi-function machine (hereinafter referred to as MFP (multifunction printer / multifunction printer)) having a scanner function, a facsimile function, a copying function, etc. in addition to a printing function. Hereinafter, description will be made using this MFP.

MFP1は、スキャナ部2、MFP制御部3、プリンタ部4で構成されている。スキャナ部2は読取機構部2aを有し、読取機構部2aの駆動により原稿台に載置された原稿画像が読み取られ、MFP制御部3に原稿データが送信される。   The MFP 1 includes a scanner unit 2, an MFP control unit 3, and a printer unit 4. The scanner unit 2 includes a reading mechanism unit 2 a, which reads a document image placed on a document table by driving the reading mechanism unit 2 a and transmits document data to the MFP control unit 3.

MFP制御部3は、メイン制御部5、読取機構制御部6、表示操作制御部7、FAX通信制御部8、LAN通信制御部9、インターネット通信制御部10、ICカード装置制御部11、記憶装置制御部12、及び記憶装置部(HDD)13で構成されている。   The MFP control unit 3 includes a main control unit 5, a reading mechanism control unit 6, a display operation control unit 7, a FAX communication control unit 8, a LAN communication control unit 9, an Internet communication control unit 10, an IC card device control unit 11, and a storage device. A control unit 12 and a storage device unit (HDD) 13 are included.

読取機構制御部6は前述のスキャナ部2に設けられた読取機構部2aの機構制御を行い、スキャナ部2で読み取った原稿データをMFP制御部3に送る。   The reading mechanism control unit 6 performs mechanism control of the reading mechanism unit 2 a provided in the scanner unit 2 and sends document data read by the scanner unit 2 to the MFP control unit 3.

表示操作制御部7は、表示操作部15に設けられたキー等の操作に基づく操作信号をメイン制御部5に送信する。また、表示操作制御部7は、メイン制御部5から出力される表示データを表示操作部15に送信する。さらに、記憶装置制御部12は、記憶装置部(HDD)13へのデータ書き込み、及び記憶装置部(HDD)13に記憶されたデータの読み出し制御を行う。   The display operation control unit 7 transmits an operation signal based on an operation of a key or the like provided in the display operation unit 15 to the main control unit 5. Further, the display operation control unit 7 transmits display data output from the main control unit 5 to the display operation unit 15. Furthermore, the storage device control unit 12 performs data writing to the storage device unit (HDD) 13 and reading control of data stored in the storage device unit (HDD) 13.

LAN通信制御部9は、本例で使用するMFP1をLANに接続するためのインターフェイスであり、クライアントPC等との通信に使用され、例えばこのクライアントPCから印刷データが供給される。   The LAN communication control unit 9 is an interface for connecting the MFP 1 used in this example to the LAN, and is used for communication with a client PC or the like. For example, print data is supplied from the client PC.

また、FAX通信制御部8は、ファクシミリデータの送受信制御を行う。また、インターネット通信制御部10は、例えばTCP/IP(transmission control protocol/internet protocol)によってパケット通信を行う。さらに、ICカード装置制御部11はICカードリーダ16との間のインターフェイスであり、例えば親展印刷における認証に使用される。   The FAX communication control unit 8 controls transmission / reception of facsimile data. Further, the Internet communication control unit 10 performs packet communication by, for example, TCP / IP (transmission control protocol / internet protocol). Further, the IC card device controller 11 is an interface with the IC card reader 16 and is used for authentication in confidential printing, for example.

一方、プリンタ部4はPPR制御部17、印刷機構部18、及び給紙装置19で構成され、給紙装置19から搬出された用紙(記録媒体)にPPR制御部17の制御に基づいて印刷処理を行い、印刷結果20を不図示の排紙部に出力する。本例においては、後述する多角形の図形を作成し、多角形の内部を所定の色や模様で塗りつぶす印刷を行い、印刷結果20を不図示の排紙部に出力する。   On the other hand, the printer unit 4 includes a PPR control unit 17, a printing mechanism unit 18, and a paper feeding device 19, and print processing is performed on paper (recording medium) carried out from the paper feeding device 19 based on control of the PPR control unit 17. The print result 20 is output to a paper discharge unit (not shown). In this example, a polygonal figure, which will be described later, is created, the inside of the polygon is printed with a predetermined color or pattern, and the print result 20 is output to a paper discharge unit (not shown).

上記メイン制御部5はCPU5a、ROM5b、EEPROM5c、及びRAM5dを備え、CPU5aはROM5bに記憶されたプログラムに基づいて印刷処理を行う。この際、RAM5dをワークエリアとして使用し、後述する辺情報の作成処理等を行う。   The main control unit 5 includes a CPU 5a, a ROM 5b, an EEPROM 5c, and a RAM 5d. The CPU 5a performs a printing process based on a program stored in the ROM 5b. At this time, the RAM 5d is used as a work area, and edge information creation processing, which will be described later, is performed.

RAM5dにはCPU5aの処理によって作成される辺情報を記憶する辺情報テーブルが構築される。図2はこの辺情報テーブルの構成例を示す図である。具体的には後述するが、辺情報テーブルには対象となる多角形の図形の辺情報が、例えば辺情報1〜Nとして複数記憶される。また、各辺情報は開始X座標、開始Y座標、辺の高さ、誤差値e(−Δy)、eの増分値(2×Δx)、eの補正値(2×Δy)、X方向の増分値、垂直線情報の記憶エリアで構成されている。例えば、図3(a)に示す多角形21の例で説明すると、多角形21は四角形であり、21a〜21dの4つの辺を有する。そして、各辺の情報は後述する処理によって作成される。   In the RAM 5d, a side information table for storing side information created by the processing of the CPU 5a is constructed. FIG. 2 is a diagram showing a configuration example of this side information table. More specifically, as will be described later, a plurality of pieces of side information of a polygon figure as a target are stored as side information 1 to N, for example. Also, each side information includes start X coordinate, start Y coordinate, side height, error value e (−Δy), e increment value (2 × Δx), e correction value (2 × Δy), X direction It consists of a storage area for increment values and vertical line information. For example, in the example of the polygon 21 shown in FIG. 3A, the polygon 21 is a quadrangle and has four sides 21a to 21d. Information on each side is created by a process described later.

また、図3(b)は本実施形態の辺作成処理の基本概念を説明するものであり、辺21aを例に説明すると、辺21aを拡大した場合、近似的には副走査方向(Y方向)の垂直辺の連続であり、この辺21aの傾きが後述する閾値より大きい場合、細分化処理を行い、各垂直辺(21a−1〜21a−n)について辺情報を作成し、更に垂直線情報を付加して複雑なDDA計算を省略するものである。   FIG. 3B illustrates the basic concept of the edge creation processing according to the present embodiment. When the edge 21a is described as an example, when the edge 21a is enlarged, it is approximately the sub-scanning direction (Y direction). ), And the slope of the side 21a is larger than a threshold value to be described later, segmentation processing is performed, side information is created for each of the vertical sides (21a-1 to 21a-n), and vertical line information is further generated. And the complicated DDA calculation is omitted.

以上の構成において、以下に本例の処理動作を具体的に説明する。
図4は本例の処理動作を具体的に説明する図である。本例においては、図4(a)に示す多角形の図形22内を所定の色又は模様で塗りつぶす印刷処理であり、図4(b)は上記多角形の図形のある辺が所定の閾値より大きい傾きを有する場合の細分化処理を説明する図である。以下の説明では、特に辺23の例を使用して、処理動作を説明する。
In the above configuration, the processing operation of this example will be specifically described below.
FIG. 4 is a diagram for specifically explaining the processing operation of this example. In this example, it is a printing process in which the polygonal figure 22 shown in FIG. 4A is filled with a predetermined color or pattern, and FIG. 4B shows a side where the polygonal figure is above a predetermined threshold. It is a figure explaining the subdivision process in the case of having a big inclination. In the following description, the processing operation will be described using the example of the side 23 in particular.

図5は本例の処理を説明するフローチャートである。先ず、対象とする辺の始点及び終点座標の読み込み処理を行う(ステップ(以下、Sで示す)1)。例えば、図4(a)に示す辺23の場合、始点は23aであり、終点は23bである。したがって、上記処理において始点23a、及び終点23bの座標データを読み取る。尚、図4(b)において、始点の座標を(X0、Y0)とし、終点の座標を(X1、Y1)とし、始点及び終点を黒丸で示す。   FIG. 5 is a flowchart for explaining the processing of this example. First, the starting point and end point coordinates of the target side are read (step (hereinafter referred to as S) 1). For example, in the case of the side 23 shown in FIG. 4A, the start point is 23a and the end point is 23b. Therefore, the coordinate data of the start point 23a and the end point 23b is read in the above process. In FIG. 4B, the coordinates of the start point are (X0, Y0), the coordinates of the end point are (X1, Y1), and the start point and end point are indicated by black circles.

次に、ΔX及びΔYを算出する(S2)。この計算は図4(b)に示すように、辺23の主走査方向(X)の長さと副走査方向(Y)の長さであり、上記始点と終点の座標データに基づいて、例えばΔXは|X1-X0|+1の計算式によって算出し、ΔYは|Y1-Y0|+1の計算式によって算出する。   Next, ΔX and ΔY are calculated (S2). As shown in FIG. 4B, this calculation is the length in the main scanning direction (X) and the length in the sub-scanning direction (Y) of the side 23. Based on the coordinate data of the start point and the end point, for example, ΔX Is calculated by the equation | X1-X0 | +1, and ΔY is calculated by the equation | Y1-Y0 | +1.

次に、辺23の傾きチェックを行う(S3)。この辺23の傾きチェックは、辺23が水平であるか、又は垂直であるか、又は傾きを有するか判断するものであり、例えば辺23の傾きが水平である場合(ΔY=1)、塗りつぶす描画処理を必要としないため、次の辺の処理に移る。また、辺23の傾きが垂直である場合(ΔX=1)、垂直線の辺情報を作成する(S4)。この処理は、開始X座標、開始Y座標、辺の高さ、及び垂直線情報を設定する処理であり、例えば図4(a)に示す辺23の場合、開始X座標として上記X0の値がセットされ、開始Y座標として上記Y0の値がセットされ、辺の高さとしてΔYの値がセットされ、垂直線情報としてオン(“1”)がセットされる。このようにして作成された辺情報は前述の図2に示す辺情報テーブルに書き込まれ、辺情報テーブルの更新処理が行われる(S14)。   Next, the inclination of the side 23 is checked (S3). The inclination check of the side 23 is for determining whether the side 23 is horizontal, vertical, or has an inclination. For example, when the side 23 has a horizontal inclination (ΔY = 1), the drawing to be filled is performed. Since no processing is required, the process moves to the next side. If the slope of the side 23 is vertical (ΔX = 1), side information of the vertical line is created (S4). This process is a process for setting the start X coordinate, the start Y coordinate, the side height, and the vertical line information. For example, in the case of the side 23 shown in FIG. 4A, the value of X0 is set as the start X coordinate. The value of Y0 is set as the start Y coordinate, the value of ΔY is set as the side height, and ON (“1”) is set as the vertical line information. The edge information created in this way is written in the edge information table shown in FIG. 2, and the edge information table is updated (S14).

一方、辺23が傾きを有する場合(S3が斜線(ΔY≠1且つΔX≠1))、細分化判断を行う(S5)。この細分化判断は、前記辺を複数の垂直線に細分化し、細分化した垂直線(以降、垂直辺と呼ぶ)の辺情報を作成する処理(以降、細分化処理と呼ぶ)を行なうか、若しくは、通常のDDA計算により辺を構成する各点の座標を求める処理を行なう為の通常斜辺の辺情報を作成するかの判断である。この判断条件、すなわち細分化条件については、後述する。   On the other hand, when the side 23 has an inclination (S3 is an oblique line (ΔY ≠ 1 and ΔX ≠ 1)), a subdivision determination is performed (S5). In this subdivision determination, the side is subdivided into a plurality of vertical lines, and processing for creating side information of the subdivided vertical lines (hereinafter referred to as vertical sides) (hereinafter referred to as subdivision processing) is performed. Alternatively, it is a determination as to whether or not to generate side information of a normal hypotenuse for performing processing for obtaining coordinates of each point constituting the side by normal DDA calculation. This determination condition, that is, the subdivision condition will be described later.

この細分化判断(S5)において、辺23が上記細分化条件を満たさない場合、通常の傾きを有する辺であると判断し(S5が通常斜辺)、辺情報の作成処理を行う(S6)。この処理は、開始X座標、開始Y座標、辺の高さ、誤差値e(−Δy)、eの増分値(2×Δx)、eの補正値(2×Δy)、垂直線情報の設定処理である。例えば、図4(a)に示す辺23の場合、開始X座標にはX0であり、開始Y座標はY0であり、辺の高さはΔYであり、この場合辺23は垂直ではないので垂直線情報は“0”(オフ)であり、上記各データがセットされる。尚、このようにして作成された辺情報は前述の図2に示す辺情報テーブルに書き込まれ、辺情報テーブルの更新処理が行われる(S14)。   In the subdivision determination (S5), when the side 23 does not satisfy the subdivision condition, it is determined that the side has a normal inclination (S5 is a normal hypotenuse), and side information creation processing is performed (S6). This processing is performed by setting the start X coordinate, start Y coordinate, side height, error value e (−Δy), e increment value (2 × Δx), e correction value (2 × Δy), and vertical line information. It is processing. For example, in the case of the side 23 shown in FIG. 4A, the start X coordinate is X0, the start Y coordinate is Y0, and the side height is ΔY. In this case, the side 23 is not vertical, so it is vertical. The line information is “0” (off), and each of the above data is set. The edge information created in this way is written in the edge information table shown in FIG. 2 and the edge information table is updated (S14).

一方、上記細分化判断において、辺23が上記細分化条件を満たしている場合(S5が細分化)、細分化処理を行う(S7以下の処理を行う)。   On the other hand, in the subdivision determination, if the side 23 satisfies the subdivision condition (S5 is subdivision), a subdivision process is performed (S7 and subsequent processes are performed).

先ず、辺の高さを計算する(S7)。この辺の高さは図4(b)に示すhであり、以下の計算式によって算出する。すなわち、辺の高さ=INT(ΔY/ΔX)の計算式によって算出する。図4(b)に示す例では、ΔYが“21”画素分の長さであり、ΔXが“7”画素分の長さであるので、INT(ΔY/ΔX)=3となる。したがって、辺23の場合、辺の高さ(h)を“3”に設定する。   First, the side height is calculated (S7). The height of this side is h shown in FIG. 4B, and is calculated by the following calculation formula. That is, the height of the side = INT (ΔY / ΔX). In the example shown in FIG. 4B, since ΔY is the length of “21” pixels and ΔX is the length of “7” pixels, INT (ΔY / ΔX) = 3. Therefore, in the case of the side 23, the side height (h) is set to “3”.

次に、最初の垂直辺情報を作成する(S8)。この処理は、上記計算結果を使用し、開始X座標、開始Y座標、辺の高さ、及び垂直線情報の設定を行う。例えば、上記辺23の場合、開始X座標はX0であり、開始Y座標はY0であり、辺の高さは上記計算結果から“3”であり、垂直線情報はオン(“1”)である。   Next, first vertical side information is created (S8). In this process, the start X coordinate, start Y coordinate, side height, and vertical line information are set using the calculation result. For example, in the case of the side 23, the start X coordinate is X0, the start Y coordinate is Y0, the side height is “3” from the above calculation result, and the vertical line information is on (“1”). is there.

次に、Y座標の更新を行う(S9)。この更新処理は開始Y座標に上記辺の高さを加算する処理であり、例えば図4(b)に示す開始座標(X0、Y0)が(1,1)である場合、開始Y座標が“1”であり、開始X座標も“1”であり、開始Y座標“1”に辺の高さ“3”を加算して“4”とする。   Next, the Y coordinate is updated (S9). This update process is a process of adding the height of the side to the start Y coordinate. For example, when the start coordinate (X0, Y0) shown in FIG. 4B is (1, 1), the start Y coordinate is “ 1 and the start X coordinate is also “1”, and the side height “3” is added to the start Y coordinate “1” to obtain “4”.

次に、辺情報テーブルの更新処理を行う(S10)。すなわち、上記処理(S8)により新たに作成された垂直辺情報を辺情報テーブルに加えるため、辺情報テーブルの更新処理を行う。   Next, the edge information table is updated (S10). That is, in order to add the vertical side information newly created by the above process (S8) to the side information table, the side information table is updated.

以上の処理は開始X座標を+1しつつ、ΔX−1回分繰り返される。すなわち、開始X座標を+1し(S11)、順次次の垂直辺情報を作成する(S8)。例えば、次の開始X座標、開始Y座標、辺の高さ、及び垂直線情報の設定を行う。この場合、次の開始X座標は前の開始X座標“1”に“1”を加算した“2”であり、また開始Y座標は前の開始Y座標“1”に、辺の高さを加算した前述の処理(S9)結果である“3”を加算した“4”である。したがって、この場合の開始座標は(2,4)となる。また、辺の高さは“3”であり、垂直線情報は“1”(オン)である。したがって、上記各データをセットし、次の辺情報とする。   The above process is repeated ΔX−1 times while the start X coordinate is incremented by one. That is, the start X coordinate is incremented by 1 (S11), and the next vertical edge information is sequentially created (S8). For example, the next start X coordinate, start Y coordinate, side height, and vertical line information are set. In this case, the next start X coordinate is “2” obtained by adding “1” to the previous start X coordinate “1”, and the start Y coordinate is set to the previous start Y coordinate “1” with the height of the side. This is “4” obtained by adding “3” which is the result of the above-described processing (S9). Therefore, the starting coordinates in this case are (2, 4). Further, the height of the side is “3”, and the vertical line information is “1” (ON). Accordingly, each of the above data is set as the next side information.

以後、上記処理をΔX−1回分繰り返し、図4(b)に開始座標(3,7)、(4,10)、(5,13)、(6,16)を得、対応する垂直辺情報を作成し、図2示す辺情報テーブルの更新処理を行う(S8〜S10)。   Thereafter, the above process is repeated ΔX-1 times to obtain start coordinates (3, 7), (4, 10), (5, 13), (6, 16) in FIG. And the edge information table update process shown in FIG. 2 is performed (S8 to S10).

次に、最終辺の高さを計算する(S12)。最終辺の高さは必ずしも前述の辺の高さに一致するとは限らず、このために行う処理であり、ΔY−(辺の高さ×(ΔX−1))の計算式によって算出する。尚、図4(b)に示す例では、ΔYが“21”であり、辺の高さは前述の処理(S7)の計算結果から“3”であり、ΔXが“7”であるから“3”であり、最終辺の高さも“3”である。   Next, the height of the final side is calculated (S12). The final side height does not necessarily match the above-described side height, and is a process performed for this purpose, and is calculated by a calculation formula of ΔY− (side height × (ΔX−1)). In the example shown in FIG. 4B, ΔY is “21”, the height of the side is “3” based on the calculation result of the above-described processing (S7), and ΔX is “7”. 3 "and the height of the final side is also" 3 ".

次に、最後の垂直辺情報を作成する(S13)。この場合、開始X座標は前の開始X座標“6”に“1”を加算した“7”であり、また開始Y座標は前の開始Y座標“16”に、最終辺の高さ“3”を加算した“19”である。したがって、この場合の開始座標は(7,19)となり、辺の高さは“3”であり、垂直線情報はオン(“1”)である。上記処理が完了すると、辺情報テーブルの更新処理を行う(S14)。
図6は上記処理によって細分化された辺23に対する垂直辺23−1〜23−7の模式的な構成例を示す。尚、各垂直辺23−1〜23−7の始点及び終点画素を黒丸で示す。
Next, the last vertical side information is created (S13). In this case, the start X coordinate is “7” obtained by adding “1” to the previous start X coordinate “6”, and the start Y coordinate is the previous start Y coordinate “16” and the final side height “3”. “19” is obtained by adding “”. Accordingly, the start coordinate in this case is (7, 19), the side height is “3”, and the vertical line information is on (“1”). When the above process is completed, the edge information table is updated (S14).
FIG. 6 shows a schematic configuration example of the vertical sides 23-1 to 23-7 with respect to the side 23 subdivided by the above processing. The start point and end point pixels of the vertical sides 23-1 to 23-7 are indicated by black circles.

その後、上記処理を前述の多角形の頂点数分行ったか判断し、頂点数分上記処理を実行すると、本例の処理を終了する。例えば、図4(a)に示す四角形の図形の場合、4つの頂点に対応する辺情報の作成処理が完了すると、本例の処理を終了する。   After that, it is determined whether the above process has been performed for the number of vertices of the polygon, and when the above process is executed for the number of vertices, the process of this example is terminated. For example, in the case of the quadrangular figure shown in FIG. 4A, when the creation processing of the edge information corresponding to the four vertices is completed, the processing of this example is finished.

尚、他の辺情報の作成についても、上記辺23の辺情報の作成処理と同様であり、対象とする辺の始点及び終点座標の読み込み(S1)、ΔX及びΔYを算出し(S2)、対象となる辺の傾きをチェックし(S3)、辺の傾きが水平であれば次の辺の処理に移り、辺の傾きが垂直であれば垂直線の辺情報を作成する(S4)。一方、対象となる辺が傾きを有する場合、前述の細分化条件を判断し、更に細分化判断を行う(S5)。この細分化処理については、前述の処理(S7〜S14)に従って実行される。   The other side information is created in the same manner as the side information creation process of the side 23, and the start point and end point coordinates of the target side are read (S1), ΔX and ΔY are calculated (S2), The slope of the target side is checked (S3). If the slope of the side is horizontal, the process proceeds to the next side. If the slope of the side is vertical, side information of a vertical line is created (S4). On the other hand, if the target side has an inclination, the above-described subdivision condition is determined and further subdivision determination is performed (S5). This segmentation process is executed according to the above-described processes (S7 to S14).

このようにして作成された辺情報は辺情報テーブルに記憶され、PPR制御部17はこの辺情報テーブルに記憶された辺情報に基づいて、通常斜辺の場合はDDA計算を行なって辺の構成要素である各点の座標を求め、(以降、この処理をDDA処理と呼ぶ)また、前記細分化処理にて作成された垂直辺情報を含む垂直線情報の場合はDDA計算を省いて、辺情報より辺を構成する各点の座標を求める。求めたこれらの点の座標を使用して図形画像を作成し、印刷機構部18によって上記図形内部を所定の色又は模様で塗りつぶされる。   The side information created in this way is stored in the side information table, and the PPR control unit 17 performs DDA calculation in the case of the normal hypotenuse based on the side information stored in the side information table to determine the side component. Obtain the coordinates of each point (hereinafter, this process is called DDA process). In the case of the vertical line information including the vertical side information created by the subdivision process, the DDA calculation is omitted and the side information is obtained. The coordinates of each point constituting the side are obtained. A graphic image is created using the obtained coordinates of these points, and the inside of the graphic is filled with a predetermined color or pattern by the printing mechanism unit 18.

ここで、上記細分化条件について詳しく説明する。
通常斜辺の場合は、辺データ作成部がこの斜辺の辺情報を作成する(図5のS6の処理)時間より、DDA処理部がこの辺情報に基づいてDDA計算を行なって辺の構成要素の各点の座標を求める時間のほうがはるかに大きく、大半の時間を占める。例えば、図7の(1)の部分で点描画(pointset関数)の実行時間を除いた時間である。このDDA計算は、1つの点座標を求める処理をΔYの回数分繰り返す。従って、
辺を構成する各点の座標をDDA計算する時間=t1×ΔY ………(A)
である。
但し、上記t1は、
t1:DDA処理部が、辺を構成する各点のうち1つの点の座標を計算する時間
である。
Here, the subdivision conditions will be described in detail.
In the case of a normal hypotenuse, the DDA processing unit performs DDA calculation based on this side information from the time when the side data creation unit creates the side information of this hypotenuse (the process of S6 in FIG. 5), and each component of the side The time to find the coordinates of a point is much larger and takes up most of the time. For example, this is the time excluding the point drawing (pointset function) execution time in the part (1) of FIG. In this DDA calculation, the process of obtaining one point coordinate is repeated by the number of times ΔY. Therefore,
Time for DDA calculation of the coordinates of each point constituting the side = t1 × ΔY (A)
It is.
However, t1 is
t1: Time when the DDA processing unit calculates the coordinates of one of the points constituting the side.

また、辺を垂直辺に細分化する処理の場合は、細分化して垂直辺情報を作成する細分化処理時間の方が垂直辺情報に基づいて垂直辺の構成要素である各点の座標を求める時間よりはるかに大きい。
上記細分化処理(図5のS8〜S10とS12〜S14)は、1つの垂直辺情報の作成をΔX回繰り返し行っており(S8〜S10を(ΔX−1)回とS12〜S14を1回の合計ΔX回)であり、従って
細分化処理時間 = t2×ΔX ………(B)
である。
但し、上記t2は、
t2:細分化処理が、1つの垂直辺情報を作成する時間
である。
In the case of processing for subdividing a side into vertical sides, the subdivision processing time for subdividing and creating vertical side information is to obtain the coordinates of each point that is a component of the vertical side based on the vertical side information. Much bigger than time.
In the subdivision process (S8 to S10 and S12 to S14 in FIG. 5), the creation of one piece of vertical side information is repeated ΔX times (S8 to S10 are (ΔX-1) times and S12 to S14 are performed once). Therefore, subdivision processing time = t2 × ΔX (B)
It is.
However, t2 is
t2: Time for subdivision processing to create one piece of vertical side information.

細分化するか否かの条件としては、DDA処理部が上記辺を構成する各点の座標をDDA計算する時間よりも、上記細分化処理の時間のほうが小さい場合、垂直辺への細分化を行なう。すなわち、
辺を構成する各点の座標をDDA計算する時間 > 細分化処理の時間
であり、上記(A)、(B)より
t1×ΔY > t2×ΔX
ΔY/ΔX > t2/t1
すなわち、
辺の傾き tanθ(=ΔY/ΔX) > 閾値A (=t2/t1)
である。
つまり、細分化条件は、辺の傾きtanθが閾値Aより大きいことであり、この場合、垂直辺への細分化する処理を行なう。
なお、閾値Aはt2/t1としたが、必ずしも閾値A=t2/t1でなければならないことではなく、閾値Aは、t2/t1以上の値であれば良い。
As a condition of whether or not to subdivide, if the time for the above subdivision processing is shorter than the time for the DDA processing unit to perform DDA calculation of the coordinates of each point constituting the above side, the subdivision to the vertical side is performed. Do. That is,
Time for DDA calculation of the coordinates of each point constituting the side> Time for subdivision processing. From (A) and (B) above, t1 × ΔY> t2 × ΔX
ΔY / ΔX> t2 / t1
That is,
Side slope tan θ (= ΔY / ΔX)> threshold A (= t2 / t1)
It is.
In other words, the subdivision condition is that the side inclination tanθ is larger than the threshold value A. In this case, the subdivision into vertical sides is performed.
Although the threshold A is t2 / t1, it does not necessarily have to be the threshold A = t2 / t1, and the threshold A may be a value equal to or greater than t2 / t1.

以上のように、本実施形態によれば、多角形の図形の斜辺に対してその斜辺の傾きが所定の閾値と比較し、上記閾値より大きい斜辺について、垂直辺に細分化し、細分化した垂直辺の辺情報の作成に関し、DDA計算を省き、図形の作成、及び図形内部の色塗りつぶし処理を高速に行うものである。   As described above, according to the present embodiment, the slope of the hypotenuse of the polygonal figure is compared with a predetermined threshold, and the hypotenuse that is larger than the above threshold is subdivided into vertical sides and subdivided verticals. With respect to the creation of edge side information, the DDA calculation is omitted, and the creation of the figure and the color painting process inside the figure are performed at high speed.

尚、上記実施形態の説明では図4(a)等に示す四角形の画像データの塗りつぶし処理について説明したが、四角形に限るものではなく、例えば三角形や五角形等の他の多角形の内部を塗りつぶす場合でも同様に適用することができる。また、上記実施形態の説明では本発明の図形画像作成装置を印刷装置に適用し、図形画像内の塗りつぶし印刷を迅速に行うように構成したが、表示装置に適用してもよい。また、塗りつぶしに限らず多角形や線分の描画の場合でも同様に適用できる。
また、上記実施形態の説明では、垂直線に近い斜辺を多数の垂直辺に細分化することによりDDA計算を省く方式として説明したが、同様に水平に近い斜辺を多数の水平辺の集合からなるものと見なして、複雑なDDA計算処理を省略し、図形の作成及び図形内部の色塗りつぶし処理を高速に行うことも本発明の範疇に含まれるものである。
In the description of the above embodiment, the quadrilateral image data filling process illustrated in FIG. 4A has been described. But it can be applied as well. In the description of the above embodiment, the graphic image creating apparatus of the present invention is applied to the printing apparatus and the fill printing in the graphic image is performed quickly, but it may be applied to a display apparatus. Further, the present invention is not limited to filling, but can be similarly applied to drawing of polygons and line segments.
In the description of the above embodiment, the DDA calculation is omitted by subdividing the hypotenuse close to the vertical line into a large number of vertical sides. Similarly, the hypotenuse close to the horizontal is composed of a set of many horizontal sides. In view of this, it is also included in the scope of the present invention that complicated DDA calculation processing is omitted and graphic creation and color painting processing inside the graphic are performed at high speed.

本発明はいくつかの実施形態を説明したが、本発明は特許請求の範囲に記載された発明とその均等の範囲に含まれる。以下、本件特許出願の出願当初の特許請求の範囲に記載された発明を付記する。   Although several embodiments of the present invention have been described, the present invention is included in the inventions described in the claims and their equivalents. Hereinafter, the invention described in the scope of claims at the beginning of the filing of the present patent application will be added.

付記1
DDA(Digital Differential Analyzer)方式を用いて算出された、図形を構成する辺の座標データに基づいて、前記図形の画像を作成する図形画像作成装置であって、
前記辺の始点及び終点座標より前記辺の画像データを作成する辺データ作成部と、
前記辺データ作成部が作成する辺が所定の条件を満足しない場合、前記DDA方式を用いて前記辺の画像データを作成するDDA処理部と、
前記辺データ作成部が作成する辺が前記所定の条件を満足する場合、前記辺を垂直辺に細分化する細分化処理部と、
前記細分化処理部によって細分化された垂直辺の辺データには前記DDA方式の計算による画像作成処理を省く垂直線情報を付加して細分化された垂直辺の辺データを作成する細分化垂直辺データ作成部と、
前記辺データ作成部、及び細分化垂直辺データ作成部によって作成された辺データに基づいて前記図形を作成する図形作成部と、
を有することを特徴とする図形画像作成装置。
Appendix 1
A graphic image creating apparatus for creating an image of the graphic based on coordinate data of sides constituting the graphic calculated using a DDA (Digital Differential Analyzer) method,
A side data creation unit that creates image data of the side from the start point and end point coordinates of the side;
When the side created by the side data creation unit does not satisfy a predetermined condition, a DDA processing unit that creates image data of the side using the DDA method;
When the side created by the side data creation unit satisfies the predetermined condition, a subdivision processing unit that subdivides the side into vertical sides;
The vertical side data subdivided by the subdivision processing unit is added with vertical line information that eliminates the image creation processing by the calculation of the DDA method, thereby generating subdivided vertical side data. An edge data creation unit;
A graphic creation unit for creating the graphic based on the side data created by the side data creation unit and the segmented vertical side data creation unit;
A graphic image creating apparatus characterized by comprising:

付記2
前記所定の条件は、
前記辺の水平方向の幅をΔX、垂直方向の高さをΔYとした場合、
前記辺の傾きtanθが、
tanθ=(ΔY/ΔX)>(t1/t2)
である、
但し、上記t1、t2は、
t1:前記DDA処理部が、前記辺を形成する1つの点の座標を計算する時間
t2:前記細分化処理部が前記垂直辺の一つの辺データを計算する時間
である、ことを特徴とする付記1に記載の図形画像作成装置。
Appendix 2
The predetermined condition is:
When the horizontal width of the side is ΔX and the vertical height is ΔY,
The side inclination tanθ is
tanθ = (ΔY / ΔX)> (t1 / t2)
Is,
However, t1 and t2 above are
t1: Time for the DDA processing unit to calculate the coordinates of one point forming the side
t2: The graphic image creating apparatus according to appendix 1, wherein the subdivision processing unit calculates time for one side data of the vertical side.

付記3
前記辺データ作成部及び細分化辺データ作成部によって作成された辺データを記憶する辺情報テーブルを備え、前記図形作成部は前記辺情報テーブルに記憶された辺データに基づいて図形を作成することを特徴とする付記1、又は2に記載の図形画像作成装置。
Appendix 3
An edge information table for storing edge data created by the edge data creation section and the segmented edge data creation section, and the figure creation section creates a figure based on the edge data stored in the edge information table; The graphic image creation apparatus according to appendix 1 or 2, characterized by the following:

付記4
前記細分化垂直辺データ作成部によって作成される細分化辺データは、開始X座標、開始Y座標、辺の高さ、及び前記DDA計算を省く情報であることを特徴とする付記1、2、又は3に記載の図形画像作成装置。
Appendix 4
Supplementary notes 1, 2, wherein the subdivided side data created by the subdivided vertical side data creating unit is information excluding a start X coordinate, a start Y coordinate, a side height, and the DDA calculation. Or the graphic image creating apparatus according to 3.

付記5
DDA(Digital Differential Analyzer)方式を用いて算出された、図形を構成する辺の座標データに基づいて、前記図形の画像を作成する方法であって、
前記辺の始点及び終点座標より前記辺の画像データを作成する辺データ作成処理と、
前記辺データ作成処理によって作成される辺が所定の条件を満足しない場合、前記DDA方式を用いて前記辺の画像データを作成するDDA処理と、
前記辺データ作成処理によって作成する辺が前記所定の条件を満足する場合、前記辺を垂直辺に細分化する細分化処理と、
前記細分化処理によって細分化された垂直辺の辺データにはDDA計算による画像作成を省く垂直線情報を付加して細分化された辺データを作成する細分化辺データ作成処理と、
前記辺データ作成処理、及び細分化辺データ作成処理によって作成された辺データに基づいて図形を作成する図形作成処理と、
を行うことを特徴とする図形画像作成方法。
Appendix 5
A method for creating an image of the graphic based on coordinate data of sides constituting the graphic calculated using a DDA (Digital Differential Analyzer) method,
Side data creation processing for creating image data of the side from the start point and end point coordinates of the side;
If the side created by the side data creation process does not satisfy a predetermined condition, a DDA process for creating image data of the side using the DDA method;
When the side created by the side data creation process satisfies the predetermined condition, a subdivision process for subdividing the side into a vertical side;
Subdivision side data creation processing for creating subdivision side data by adding vertical line information that eliminates image creation by DDA calculation to the side data of the vertical side subdivided by the subdivision processing;
A graphic creation process for creating a graphic based on the edge data created by the edge data creation process and the fragmented edge data creation process;
A method of creating a graphic image, characterized by:

付記6
前記所定の条件は、
前記辺の水平方向の幅をΔX、垂直方向の高さをΔYとした場合、
前記辺の傾きtanθが、
tanθ=(ΔY/ΔX)>(t1/t2)
である、
但し、上記t1、t2は、
t1:前記DDA処理部が、前記辺を形成する1つの点の座標を計算する時間
t2:前記細分化処理部が前記垂直辺の一つの辺データを作成する時間
である、ことを特徴とする付記5に記載の図形画像作成方法。
Appendix 6
The predetermined condition is:
When the horizontal width of the side is ΔX and the vertical height is ΔY,
The side inclination tanθ is
tanθ = (ΔY / ΔX)> (t1 / t2)
Is,
However, t1 and t2 above are
t1: Time for the DDA processing unit to calculate the coordinates of one point forming the side
t2: The graphic image creation method according to appendix 5, characterized in that it is time for the subdivision processing section to create one piece of side data of the vertical side.

付記7
DDA(Digital Differential Analyzer)方式を用いて算出された、図形を構成する辺の座標データに基づいて、前記図形の画像を作成する処理を実行させるプログラムであって、
前記辺の始点及び終点座標より前記辺の画像データを作成する辺データ作成処理と、
前記辺データ作成処理によって作成される辺が所定の条件を満足しない場合、前記DDA方式を用いて前記辺の画像データを作成するDDA処理と、
前記辺データ作成処理によって作成する辺が前記所定の条件を満足する場合、前記辺を垂直辺に細分化する細分化処理と、
前記細分化処理によって細分化された垂直辺の辺データにはDDA計算による画像作成を省く垂直線情報を付加して細分化された垂直辺データを作成する細分化垂直辺データ作成処理と、
前記辺データ作成処理、及び細分化辺データ作成処理によって作成された辺データに基づいて前記図形を作成する図形作成処理と、
をコンピュータに実行させるプログラム。
Appendix 7
A program for executing a process of creating an image of the graphic based on coordinate data of sides constituting the graphic calculated using a DDA (Digital Differential Analyzer) method,
Side data creation processing for creating image data of the side from the start point and end point coordinates of the side;
If the side created by the side data creation process does not satisfy a predetermined condition, a DDA process for creating image data of the side using the DDA method;
When the side created by the side data creation process satisfies the predetermined condition, a subdivision process for subdividing the side into a vertical side;
Subdivision vertical edge data creation processing for creating subdivision vertical edge data by adding vertical line information to the edge data of the vertical edge subdivided by the subdivision processing to omit image creation by DDA calculation;
A graphic creation process for creating the graphic based on the edge data created by the edge data creation process and the fragmented edge data creation process;
A program that causes a computer to execute.

1・・・MFP
2・・・スキャナ部
2a・・読取機構部
3・・・MFP制御部
4・・・プリンタ部
5・・・メイン制御部
6・・・読取機構制御部
7・・・表示操作制御部
8・・・FAX通信制御部
9・・・LAN通信制御部
10・・インターネット通信制御部
11・・ICカード装置制御部
12・・記憶装置制御部
13・・記憶装置部(HDD)
15・・表示操作部
16・・ICカードリーダ
17・・PPR制御部
18・・印刷機構部
19・・給紙装置
20・・印刷結果
21・・多角形
21a〜21d・・辺
22・・多角形
23・・辺
23a・・始点
23b・・終点
1 MFP
2... Scanner unit 2a... Reading mechanism unit 3... MFP control unit 4... Printer unit 5... Main control unit 6. ..FAX communication controller 9... LAN communication controller 10 .Internet communication controller 11 .IC card device controller 12 .storage device controller 13 .storage device (HDD)
15 .. Display operation unit 16. IC card reader 17. PPR control unit 18. Printing mechanism unit 19. Paper feeding device 20. Printing result 21. Polygons 21a to 21d. Square 23 ... Side 23a ... Start point 23b ... End point

Claims (6)

辺で囲まれた領域を塗りつぶす図形画像作成装置であって、
DDA(Digital Differential Analyzer)方式により当該辺を構成する各ドットデータを導出する導出手段と、
ドットデータが副走査方向に沿って同一ライン上に並ぶ辺か否かを判定する第1の判定手段と、
前記第1の判定手段によりドットデータが副走査方向に沿って同一ライン上に並ぶ辺であると判定された場合に、当該辺を垂直線として辺情報を作成する作成手段と、
当該辺における副走査方向からの傾き角が所定の閾値よりも小さいか否かを判定する第2の判定手段と、
前記第2の判定手段により当該辺における副走査方向からの傾き角が所定の閾値よりも小さいと判定された場合に、所定数のドットが副走査方向に沿って同一ライン上に連続して並ぶ垂直辺の集合となるように当該辺を細分化または近似する細分化手段と、
を備え、
前記作成手段は、前記細分化手段によって細分化または近似された前記垂直線それぞれの辺情報を作成することを特徴とする図形画像作成装置。
A graphic image creation device that fills an area surrounded by sides,
Derivation means for deriving each dot data constituting the side by DDA (Digital Differential Analyzer) method;
First determination means for determining whether the dot data are sides aligned on the same line along the sub-scanning direction;
A creation unit that creates side information using the side as a vertical line when the first determination unit determines that the dot data are sides arranged on the same line along the sub-scanning direction;
Second determination means for determining whether or not the inclination angle from the sub-scanning direction in the side is smaller than a predetermined threshold;
When the second determination unit determines that the inclination angle of the side from the sub-scanning direction is smaller than a predetermined threshold, a predetermined number of dots are continuously arranged on the same line along the sub-scanning direction. Subdividing means for subdividing or approximating the side to be a set of vertical sides;
With
The graphic image creating apparatus characterized in that the creating means creates side information of each vertical line subdivided or approximated by the subdividing means .
辺で囲まれた領域を塗りつぶす図形画像作成装置であって、
DDA(Digital Differential Analyzer)方式により当該辺を構成する各ドットデータを導出する導出手段と、
該辺が主走査方向に対して垂直な辺か否かを判定する第1の判定手段と、
前記第1の判定手段により該辺が主走査方向に対して垂直な辺であると判定された場合に、該辺を垂直線として辺情報を作成する作成手段と、
前記第1の判定手段により該辺が主走査方向に対して垂直な辺でないと判定された場合に、当該辺における主走査方向に対する傾き角が所定の閾値よりも垂直に近いか否かを判定する第2の判定手段と、
前記第2の判定手段により当該辺における主走査方向に対する傾き角が前記所定の閾値よりも垂直に近いと判定された場合に、所定数のドットが副走査方向に沿って同一ライン上に連続して並ぶ垂直辺の集合となるように当該辺を細分化または近似することにより前記垂直辺を特定する細分化手段と、
を備え、
前記作成手段は、前記細分化手段により特定された前記垂直辺に対する辺情報を作成することを特徴とする図形画像作成装置。
A graphic image creation device that fills an area surrounded by sides,
Derivation means for deriving each dot data constituting the side by DDA (Digital Differential Analyzer) method;
First determination means for determining whether the side is a side perpendicular to the main scanning direction;
Creating means for creating side information using the side as a vertical line when the first judging unit determines that the side is a side perpendicular to the main scanning direction;
When the first determination unit determines that the side is not a side perpendicular to the main scanning direction, it is determined whether or not the inclination angle of the side with respect to the main scanning direction is closer to the vertical than the predetermined threshold value. Second determining means for
When the second determination unit determines that the inclination angle of the side with respect to the main scanning direction is closer to the vertical than the predetermined threshold value, a predetermined number of dots continue on the same line along the sub-scanning direction. Subdividing means for specifying the vertical sides by subdividing or approximating the sides to be a set of vertical sides arranged in a row,
With
The graphic image creating apparatus, wherein the creating means creates side information for the vertical side specified by the subdividing means.
図形を構成する辺の座標データに基づいて前記図形の画像を作成する図形画像作成装置であって、
DDA(Digital Differential Analyzer)方式を用いて前記辺の画像データを作成するDDA処理部と、
前記辺を垂直辺に細分化することで前記辺の画像データを作成する細分化処理部と、
前記辺の傾きに基づいて前記DDA処理部または前記細分化処理部のいずれか一方の処理を選択して、前記辺の画像データを作成する辺データ作成部と、
前記辺データ作成部によって作成された前記辺の画像データに基づいて前記図形の画像を作成する図形作成部と、
を備える図形画像作成装置。
A graphic image creation device for creating an image of the graphic based on coordinate data of sides constituting the graphic,
A DDA processing unit that creates image data of the side using a DDA (Digital Differential Analyzer) method;
A subdivision processing unit that creates image data of the side by subdividing the side into vertical sides;
A side data creation unit that selects one of the DDA processing unit and the subdivision processing unit based on the slope of the side and creates image data of the side;
A graphic creation unit that creates an image of the graphic based on the image data of the side created by the side data creation unit;
A graphic image creating apparatus comprising:
前記辺データ作成部は、主走査方向に対する前記辺の傾きが所定の傾きより大きい場合に、前記細分化処理部による処理を選択し、前記辺の傾きが前記所定の傾きより大きくない場合、前記DDA処理部による処理を選択する、
請求項3の図形画像作成装置。
The side data creation unit selects processing by the subdivision processing unit when the side inclination with respect to the main scanning direction is larger than a predetermined inclination, and when the side inclination is not larger than the predetermined inclination, Select processing by the DDA processing unit,
The graphic image creating apparatus according to claim 3.
前記辺データ作成部は、前記辺が主走査方向又は副走査方向に構成される場合、前記細分化処理部及び前記DDA処理部による処理を実行しない、
請求項4の図形画像作成装置。
The side data creation unit, when the side is configured in the main scanning direction or the sub-scanning direction, does not execute processing by the subdivision processing unit and the DDA processing unit,
The graphic image creating apparatus according to claim 4.
前記辺の主走査方向の幅をΔX、前記辺の副走査方向の高さをΔYとした場合、前記所定の傾きΔY/ΔXは、t2/t1である、
但し、上記t1、t2は、
t1:前記DDA処理部が、前記辺を形成する1つの点の座標を計算する時間
t2:前記細分化処理部が前記垂直辺の一つの辺データを計算する時間
である、請求項3乃至5のいずれか一項に記載の図形画像作成装置。
When the width of the side in the main scanning direction is ΔX and the height of the side in the sub-scanning direction is ΔY, the predetermined inclination ΔY / ΔX is t2 / t1.
However, t1 and t2 are
6. t1: time for the DDA processing unit to calculate the coordinates of one point forming the side t2: time for the subdivision processing unit to calculate one side data of the vertical side The graphic image creating apparatus according to any one of the above.
JP2012199598A 2012-09-11 2012-09-11 Graphic image creation device Expired - Fee Related JP5900259B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2012199598A JP5900259B2 (en) 2012-09-11 2012-09-11 Graphic image creation device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2012199598A JP5900259B2 (en) 2012-09-11 2012-09-11 Graphic image creation device

Publications (3)

Publication Number Publication Date
JP2014056326A JP2014056326A (en) 2014-03-27
JP2014056326A5 JP2014056326A5 (en) 2015-03-12
JP5900259B2 true JP5900259B2 (en) 2016-04-06

Family

ID=50613605

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2012199598A Expired - Fee Related JP5900259B2 (en) 2012-09-11 2012-09-11 Graphic image creation device

Country Status (1)

Country Link
JP (1) JP5900259B2 (en)

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06318257A (en) * 1993-05-07 1994-11-15 Daikin Ind Ltd Method and device for plotting segment
JPH08190635A (en) * 1995-01-09 1996-07-23 Fujitsu Ltd Straight line generating method
JPH11306368A (en) * 1998-04-21 1999-11-05 Casio Electronics Co Ltd Picture painting-out device
JP4198608B2 (en) * 2004-01-15 2008-12-17 株式会社東芝 Interpolated image generation method and apparatus

Also Published As

Publication number Publication date
JP2014056326A (en) 2014-03-27

Similar Documents

Publication Publication Date Title
US9639790B2 (en) Resolution conversion using dither processing
JP6978205B2 (en) Print control device, raster data generation method, and raster data generation program
US9253369B2 (en) Halftone dot addition apparatus that reduces white void and break at edge portion of image
JP2006268320A (en) Print control device, method and program
JP6790601B2 (en) Image analyzer
JP5900259B2 (en) Graphic image creation device
US10560596B2 (en) Image forming apparatus
JP2010114503A (en) Apparatus, method, program for processing image and recording medium
JP2008201058A (en) Image forming apparatus
JP2013026865A (en) Image processing apparatus and image processing method
US9538043B2 (en) Image forming system that prevents increasing of data amount of print data and reducing of printing result quality, image forming apparatus, and recording medium
JP2016066222A (en) Image processing apparatus, image processing method, and computer program
JP2019121870A (en) Image processing apparatus, control method of the same, and program
JP6455676B2 (en) Electronic device and font image output program
JP6455675B2 (en) Electronic device and font image output program
JP5656800B2 (en) Image processing apparatus and image forming apparatus
US9729756B2 (en) Image forming system that restrains increase of print data amount, image forming apparatus, and recording medium
JP2013077934A (en) Image processing apparatus
JP3951953B2 (en) Printing apparatus, image processing apparatus, printing method, image processing method, and program
JP5826147B2 (en) Image forming apparatus
JP2003271897A (en) Character recognizer, image processor, image processing method, and program used for executing the method
JP2020080039A (en) Ink jet printing system
US9444963B2 (en) Non-transitory storage medium storing printer driver used by application software that generates print script from original in accordance with ability of image forming apparatus, and printing method
JP6209086B2 (en) Image processing apparatus and image processing method
JP2008027350A (en) Thick line drawing processing method and processing device

Legal Events

Date Code Title Description
A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20150122

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20150122

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20151125

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20151201

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20151218

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20160222

R150 Certificate of patent or registration of utility model

Ref document number: 5900259

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees