JPH11288261A - Method and device for picture processing - Google Patents

Method and device for picture processing

Info

Publication number
JPH11288261A
JPH11288261A JP10091613A JP9161398A JPH11288261A JP H11288261 A JPH11288261 A JP H11288261A JP 10091613 A JP10091613 A JP 10091613A JP 9161398 A JP9161398 A JP 9161398A JP H11288261 A JPH11288261 A JP H11288261A
Authority
JP
Japan
Prior art keywords
closed curve
contour
image processing
semicircle
character
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP10091613A
Other languages
Japanese (ja)
Other versions
JP3603593B2 (en
Inventor
Masafumi Chiku
正二三 知久
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.)
Fujifilm Business Innovation Corp
Original Assignee
Fuji Xerox 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 Fuji Xerox Co Ltd filed Critical Fuji Xerox Co Ltd
Priority to JP09161398A priority Critical patent/JP3603593B2/en
Publication of JPH11288261A publication Critical patent/JPH11288261A/en
Application granted granted Critical
Publication of JP3603593B2 publication Critical patent/JP3603593B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Image Generation (AREA)
  • Controls And Circuits For Display Device (AREA)
  • Image Processing (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide a method and device for picture processing which doesn't require fill up of breaks by preventing breaks from occurring at contacts of contours when fringing the contours with a certain width to decorate characters. SOLUTION: A contour generation means 2 substitutes each stroke of contour information with a closed curve pattern free from breaks, and a picture generation means 4 generates new contour information to decorate characters by painting-out. Thus, the capacity of a memory to be used is made relatively small, and only two closed curves overlap, and painting-out processing is quickly performed.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】この発明は、画像処理方法お
よび装置に関し、特に、文字デザイン情報をアウトライ
ン情報で格納し、該アウトライン情報に基づいて一定幅
の線で文字を表現して出力する画像処理方法および装置
に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image processing method and apparatus, and more particularly, to image processing for storing character design information as outline information and expressing and outputting characters with a line having a constant width based on the outline information. Method and apparatus.

【0002】[0002]

【従来技術】ページプリンタやディスプレイ等のビット
マップスクリーンをベースとする出力装置では、画素が
細かくなる、つまり、高解像度になるにしたがって、同
じサイズの文字や図形を表示するために多くのデータが
必要となる。特に、決まった輪郭をもつ文字情報におい
ても、サイズ毎にビットマップデータを持つ必要があり
効率が悪いものとなる、そのため、文字情報においては
サイズ毎にビットマップデータを持つのではなく、アウ
トライン情報を拡大または縮小してから文字の輪郭線の
内部を塗り潰すことで文字を表示する方法が有利とな
る。
2. Description of the Related Art In an output device based on a bitmap screen such as a page printer or a display, as pixels become finer, that is, as the resolution becomes higher, a large amount of data is required to display characters and graphics of the same size. Required. In particular, even for character information having a fixed contour, it is necessary to have bitmap data for each size, which is inefficient. Therefore, character information does not have bitmap data for each size but outline information. A method of displaying a character by enlarging or reducing and then filling the inside of the outline of the character is advantageous.

【0003】図9に文字の輪郭線とその輪郭線から得ら
れるビットマップを示す。同図に示すように文字を出力
(表示)する場合には、出力しようとする文字の輪郭線
の内側の画素を他の画素と反転させたビットマップを出
力する。反転される画素は、図10に示すように輪郭線
の内側に画素の中心点がある場合に、その画素は輪郭線
の内側の画素であると判断され、この判断により決定さ
れる。
FIG. 9 shows an outline of a character and a bit map obtained from the outline. When a character is output (displayed) as shown in the figure, a bitmap is output in which pixels inside the outline of the character to be output are inverted with respect to other pixels. The pixel to be inverted is determined to be a pixel inside the contour line when the center point of the pixel is inside the contour line as shown in FIG. 10, and is determined by this determination.

【0004】また、輪郭線(アウトライン)は、図11
に示すように長さと方向を持ったストロークで表現さ
れ、その長さを変更することで出力する文字の拡大縮小
を行うことができる。
The outline (outline) is shown in FIG.
As shown in (1), it is represented by a stroke having a length and a direction, and by changing the length, a character to be output can be enlarged or reduced.

【0005】ところで、ワープロ等における文字の修飾
方法の1つとして、図12に示すような輪郭線を一定幅
で縁取りする方法がある。この修飾方法を実現する最も
容易な手段は、図13に示すような線幅を持った輪郭線
情報を用意することであるが、本来の(線幅を持たな
い)輪郭線情報の他に別のデータとして持たせることに
なるので、持つべき情報量が増大する。また、このよう
な輪郭線情報を利用して文字の修飾を行う場合には、用
意された輪郭線情報の線幅でしか文字の修飾が行えない
等のように制限が大きくなる。
Incidentally, as one of the character modification methods in a word processor or the like, there is a method of bordering a contour line with a constant width as shown in FIG. The easiest means for realizing this modification method is to prepare outline information having a line width as shown in FIG. 13, but in addition to the original (having no line width) outline information, another Therefore, the amount of information to be held increases. Further, in the case of performing character modification using such contour information, restrictions are increased such that characters can be modified only with the line width of the prepared contour information.

【0006】そのため、輪郭線を一定幅で縁取りするよ
うな修飾を行う方法は、元の輪郭線情報を利用して新し
い輪郭線情報を作成するといった手段を用いることが一
般的である。例えば、図13に示すような輪郭線を作成
しようとする場合には、図14に示すように元の輪郭線
51から新しい輪郭線52および53を作成する。
For this reason, a method of performing a modification such that a contour is bordered with a constant width generally uses a means of creating new contour information using the original contour information. For example, to create a contour as shown in FIG. 13, new contours 52 and 53 are created from the original contour 51 as shown in FIG.

【0007】このようにして、線幅を持つ文字を出力す
る場合には、図15に示すように基本の輪郭線54、5
5に対して各々一定幅の矩形のビットマップ56、57
を作成し、これらを合成する。しかし、同図に示すよう
に矩形のビットマップ56、57を単に合成しただけで
は、両ビットマップが接続する部分で180度よりも開
いた側に切り欠きが生じてしまう。そのため、この切り
欠きの部分に図16(a)に示す輪郭線の延長線による
矩形58や図16(b)に示す輪郭線の接続点を中心と
する円弧59を追加して、切り欠き部分を滑らかに接続
する。しかし、このような処理は図17に示すように、
ビットマップパターン56、57、58を別々に作成し
て、後から論理和で合成するといった処理を行う必要が
あり、切り欠き部分に追加する矩形の大きさや円弧の角
度を計算するといった処理も必要であり、通常の文字パ
ターンを生成する手順とは大幅に異なってしまう。
As described above, when a character having a line width is output, as shown in FIG.
5, bitmaps 56 and 57 each having a fixed width
And synthesize them. However, if the rectangular bitmaps 56 and 57 are simply combined as shown in the figure, a cutout will occur on the side where the two bitmaps are connected to each other and open more than 180 degrees. Therefore, a rectangle 58 formed by an extension of the contour shown in FIG. 16A and an arc 59 centered on the connection point of the contour shown in FIG. Connect smoothly. However, such processing is performed as shown in FIG.
It is necessary to create bitmap patterns 56, 57, and 58 separately and then combine them by logical addition, and also to calculate the size of the rectangle and the angle of the arc to be added to the notch. This is significantly different from the procedure for generating a normal character pattern.

【0008】これに対し、特許第2621463号の図
形処理装置では、予め標準図形を準備しておき、この標
準図形を切り欠き部分に合成する処理を行っている。こ
れは、例えば、標準図形として準備されている円形のビ
ットマップパターンを合成するとすれば、合成結果は図
16(b)に示した円弧59を追加した場合と同様にな
るが、円弧59を合成する場合と異なり、その(円弧
の)角度を計算する必要がなく、高速に処理を行うこと
ができるといったものである。
On the other hand, in the graphic processing apparatus disclosed in Japanese Patent No. 2621633, a standard graphic is prepared in advance, and processing for synthesizing the standard graphic with the cutout portion is performed. For example, if a circular bitmap pattern prepared as a standard figure is synthesized, the synthesis result is the same as the case where the arc 59 shown in FIG. 16B is added. Unlike this case, the angle (of the arc) does not need to be calculated, and processing can be performed at high speed.

【0009】[0009]

【発明が解決しようとする課題】上述のように、従来の
画像処理装置では、複数のビットマップパターンを作成
し、それらを合成することで輪郭線を一定幅で縁取りす
る文字修飾を実現している。これは、本来の輪郭線を塗
り潰す手順(通常の文字を出力する手順)とは大幅に異
なるために、このような文字修飾を実現させるためには
新規に追加しなければならない機能が多く必要となる。
また、追加した機能のためのメモリ(ビットマップのワ
ークエリア等)が必要となるのでメモリ効率が悪くな
る。このような点は、上述の特許第2621463号の
図形処理装置においても同様に生じることになる。
As described above, in the conventional image processing apparatus, a plurality of bitmap patterns are created and synthesized to realize character modification for bordering a contour line at a fixed width. I have. This is significantly different from the procedure for filling the original outline (the procedure for outputting normal characters), so many new functions must be added to achieve such character modification. Becomes
Further, a memory (a work area of a bitmap or the like) for the added function is required, so that the memory efficiency is deteriorated. Such a point also occurs in the above-described Japanese Patent No. 2621633 in the graphic processing apparatus.

【0010】そこで、この発明は、輪郭線を一定幅で縁
取りする文字修飾を行う際に、輪郭線の接点での切り欠
きを生じさせず、切り欠きを埋める必要のない画像処理
方法および装置を提供することを目的とする。
Therefore, the present invention provides an image processing method and apparatus which do not cause a cutout at a contact point of a contour line and do not need to fill the cutout when performing character modification for bordering a contour line with a constant width. The purpose is to provide.

【0011】[0011]

【課題を解決するための手段】上述した目的を達成する
ため、請求項1の発明では、描画する文字の輪郭線を任
意に設定した幅の輪郭線に変更して文字修飾を行う画像
処理方法において、描画する文字の輪郭線を複数の直線
で近似し、該近似した輪郭線のそれぞれを方形の1辺を
半円と置換した閉曲線と入れ替え、該閉曲線の内側とな
る領域を塗り潰すことで前記文字修飾を行うことを特徴
とする。
According to the first aspect of the present invention, there is provided an image processing method for modifying a character by changing an outline of a character to be drawn to an outline having an arbitrarily set width. In, the outline of the character to be drawn is approximated by a plurality of straight lines, each of the approximated outlines is replaced with a closed curve in which one side of a rectangle is replaced with a semicircle, and an area inside the closed curve is filled. The character modification is performed.

【0012】また、請求項2の発明では、請求項1の発
明において、前記閉曲線は、前記半円の中心と前記近似
した輪郭線の第1の端点とが一致し、かつ、前記半円と
対向する辺の中点と前記近似した輪郭線の第2の端点と
が一致することを特徴とする。
According to a second aspect of the present invention, in the first aspect of the present invention, the closed curve is such that the center of the semicircle coincides with the first end point of the approximated contour line, and The midpoint of the opposite side and the second end point of the approximated contour line coincide with each other.

【0013】また、請求項3の発明では、請求項1の発
明において、前記閉曲線は、前記半円の直径と該半円と
対向する辺の長さとが前記任意に設定した幅と等しいこ
とを特徴とする。
According to a third aspect of the present invention, in the first aspect of the present invention, the closed curve indicates that the diameter of the semicircle and the length of the side facing the semicircle are equal to the arbitrarily set width. Features.

【0014】また、請求項4の発明では、請求項1の発
明において、前記閉曲線は、該閉曲線を右回り若しくは
左回りする方向を有し、ノンゼロワインディングルール
で前記塗り潰しが行われることを特徴とする。
According to a fourth aspect of the present invention, in the first aspect of the present invention, the closed curve has a direction clockwise or counterclockwise of the closed curve, and the filling is performed according to a non-zero winding rule. I do.

【0015】また、請求項5の発明では、請求項4の発
明において、前記閉曲線の方向は、前記文字を形成する
全ての閉曲線で統一されていることを特徴とする。
According to a fifth aspect of the present invention, in the fourth aspect of the invention, the direction of the closed curve is unified for all closed curves forming the character.

【0016】また、請求項6の発明では、描画する文字
の輪郭線を任意に設定した幅の輪郭線に変更して文字修
飾を行う画像処理装置において、描画する文字の輪郭線
を複数の直線で近似する座標変換手段と、方形の1辺を
半円と置換した閉曲線を作成し、該閉曲線を前記座標変
換手段により近似された輪郭線と入れ替える輪郭線作成
手段と、前記輪郭線作成手段により入れ替えられた閉曲
線の内側となる領域を塗り潰す画像生成手段とを具備す
ることを特徴とする。
According to a sixth aspect of the present invention, in the image processing apparatus for modifying a character by changing the outline of a character to be drawn to an outline having an arbitrarily set width, the outline of the character to be drawn may be a plurality of straight lines. Coordinate conversion means that approximates the following, a closed curve in which one side of a square is replaced with a semicircle, and a contour line creation means that replaces the closed curve with a contour line approximated by the coordinate conversion means; and the contour line creation means Image generating means for filling an area inside the exchanged closed curve.

【0017】また、請求項7の発明では、請求項6の発
明において、前記輪郭線作成手段は、前記半円の中心と
該半円に対向する辺の中点との距離が前記近似した輪郭
線の長さと等しい閉曲線を作成し、前記半円の中心と前
記近似した輪郭線の第1の端点とが一致し、かつ、前記
半円と対向する辺の中点と前記近似した輪郭線の第2の
端点とが一致する位置となるように前記近似した輪郭線
と前記閉曲線とを入れ替えることを特徴とする。
According to a seventh aspect of the present invention, in the sixth aspect of the present invention, the contour line creating means includes a contour line having a distance between a center of the semicircle and a midpoint of a side facing the semicircle. A closed curve equal to the length of the line is created, and the center of the semicircle coincides with the first end point of the approximated contour line, and the midpoint of the side facing the semicircle and the approximated contour line The approximated contour line and the closed curve are exchanged so that the position coincides with the second end point.

【0018】また、請求項8の発明では、請求項6の発
明において、前記輪郭線作成手段は、前記半円の直径と
該半円と対向する辺の長さとが前記任意に設定した幅と
等しくなるように前記閉曲線を作成することを特徴とす
る。
In the invention according to claim 8, in the invention according to claim 6, the contour line creating means is configured so that the diameter of the semicircle and the length of the side facing the semicircle are equal to the arbitrarily set width. It is characterized in that the closed curves are created so as to be equal.

【0019】また、請求項9の発明では、請求項6の発
明において、前記閉曲線は、該閉曲線を右回り若しくは
左回りする方向を有し、前記画像生成手段は、ノンゼロ
ワインディングルールにより前記閉曲線の内側となる領
域を塗り潰すことを特徴とする。
According to a ninth aspect of the present invention, in the sixth aspect of the present invention, the closed curve has a direction clockwise or counterclockwise of the closed curve, and the image generating means performs the non-zero winding rule on the closed curve. It is characterized in that the area inside is filled.

【0020】また、請求項10の発明では、請求項9の
発明において、前記閉曲線の方向は、前記文字を形成す
る全ての閉曲線で統一されていることを特徴とする。
According to a tenth aspect of the present invention, in the ninth aspect of the invention, the direction of the closed curve is unified for all closed curves forming the character.

【0021】[0021]

【発明の実施の形態】以下、この発明に係わる画像処理
方法および装置の一実施例を添付図面を参照して詳細に
説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of an image processing method and apparatus according to the present invention will be described below in detail with reference to the accompanying drawings.

【0022】図1は、この発明に係わる画像処理装置の
構成を示すブロック図である。画像処理装置10は、ア
ウトライン情報の拡大縮小等の座標変換と曲線(輪郭線
情報)の画素に応じて滑らかに見える大きさの直線への
分割(複数の直線による近似)、輪郭線の修飾を行う場
合にはその線幅の設定を行う座標変換手段1と、輪郭線
情報を構成する各ストロークを包含する閉曲線を生成
し、全てのストロークについて閉曲線を生成したらこれ
らを新たな輪郭線として元の輪郭線と入れ替える輪郭線
作成手段2、輪郭線作成手段2に含まれ輪郭線情報から
ストロークを包含する閉曲線の半円部の輪郭線を計算し
て生成する半円計算手段3、座標変換手段1または輪郭
線作成手段2から出力された輪郭線情報からノンゼロワ
インディングと呼ばれる塗り潰し方法でビットマップを
生成する画像生成手段4を具備して構成される。
FIG. 1 is a block diagram showing the configuration of an image processing apparatus according to the present invention. The image processing apparatus 10 performs coordinate conversion such as enlargement / reduction of outline information, division of a curve (contour line information) into straight lines of a size that can be seen smoothly in accordance with pixels (approximation using a plurality of straight lines), and modification of contour lines. When performing, the coordinate transformation means 1 for setting the line width and a closed curve including each stroke constituting the outline information are generated. When the closed curves are generated for all the strokes, these are set as new outlines as the original outline. Contour creating means 2 for replacing a contour, semicircle calculating means 3 for calculating and generating a contour of a semicircular portion of a closed curve containing a stroke from contour information included in contour creating means 2 and coordinate converting means 1 Alternatively, it is provided with an image generating means 4 for generating a bitmap from the contour information output from the contour creating means 2 by a filling method called non-zero winding.

【0023】この画像処理装置10は、実際には図2に
示すようにCPU11と、RAM12、ROM13、外
部記憶装置14、ビデオI/F(インタフェイス)1
5、フレームバッファ16、プリンタI/F(インタフ
ェイス)17を具備して構成される。
As shown in FIG. 2, the image processing apparatus 10 actually includes a CPU 11, a RAM 12, a ROM 13, an external storage device 14, and a video I / F (interface) 1.
5, a frame buffer 16 and a printer I / F (interface) 17.

【0024】図1に示した座標変換手段1と輪郭線作成
手段2、半円計算手段3、画像生成手段4は、RAM1
2またはROM13に収められたプログラムによりCP
U11上で構成される。また、ROM13および外部記
憶装置14にはアウトラインフォントデータ(輪郭線情
報)が格納されている。フレームバッファ16は、画像
生成手段4が生成したビットマップ画像を一時的に記憶
し、この画像をビデオI/F15に接続されたディスプ
レイ(不図示)またはプリンタI/F17に接続された
ページプリンタ(不図示)等の外部出力装置へ出力す
る。
The coordinate transformation means 1, contour line creation means 2, semicircle calculation means 3, and image generation means 4 shown in FIG.
2 or a program stored in the ROM 13
It is configured on U11. The ROM 13 and the external storage device 14 store outline font data (outline information). The frame buffer 16 temporarily stores the bitmap image generated by the image generation unit 4 and stores the image in a display (not shown) connected to the video I / F 15 or a page printer (not shown) connected to the printer I / F 17. (Not shown) or the like.

【0025】次に、画像処理装置10の動作について説
明する。画像処理装置10は、通常の文字を出力する場
合には、座標変換手段1で直線に分割された輪郭線情報
に基づいて画像生成手段4がビットマップを生成する
が、これは従来から一般的に行われている方法と同じで
ある。
Next, the operation of the image processing apparatus 10 will be described. In the image processing apparatus 10, when outputting a normal character, the image generation unit 4 generates a bitmap based on the outline information divided into straight lines by the coordinate conversion unit 1. It is the same as the method being done.

【0026】また、画像処理装置10は、輪郭線を縁取
りして修飾した文字を出力する場合には、座標変換手段
1で直線に分割された輪郭線情報を輪郭線作成手段2で
該輪郭線情報を包含する閉曲線と入れ替えて、この閉曲
線に基づいて画像生成手段4がビットマップを生成す
る。
When outputting a character modified by bordering a contour, the image processing apparatus 10 outputs the contour information divided into straight lines by the coordinate converting means 1 to the contour forming means 2. The image generating means 4 generates a bitmap based on the closed curve, replacing the closed curve containing the information.

【0027】ここで、図3に輪郭線作成手段2が作成す
る閉曲線を示す。輪郭線作成手段2は、同図(a)に示
すように(元の)輪郭線のストローク21に対して3つ
の直線22、23、24と1つの半円25により構成さ
れる閉曲線を生成する。この閉曲線は、輪郭線のストロ
ーク21と平行で長さの等しい直線22および23と、
ストローク21とその始点で垂直に接し作成する修飾文
字の線幅と同じ長さの直線(底辺)24と、ストローク
21の終点を中心として修飾文字の線幅を直径とする半
円25で構成される。この閉曲線は新たな輪郭線のスト
ロークとなるので、元の輪郭線のストローク21と同様
に方向を持ち、その方向は全ての閉曲線で右回り(若し
くは左回り)となるように統一する。なお、この方向の
統一は、後述する塗り潰しの際に輪郭線の内側を塗り潰
すようにするために行われる。
FIG. 3 shows a closed curve created by the contour line creating means 2. The contour line creating means 2 generates a closed curve composed of three straight lines 22, 23 and 24 and one semicircle 25 with respect to the stroke 21 of the (original) contour line as shown in FIG. . The closed curves are straight lines 22 and 23 which are parallel to and equal in length to the stroke 21 of the contour,
The stroke 21 is composed of a straight line (bottom side) 24 having the same length as the line width of the decoration character to be created by vertically touching the stroke 21 at its start point, and a semicircle 25 having the diameter of the line width of the decoration character centered on the end point of the stroke 21. You. Since this closed curve becomes a stroke of a new contour, it has a direction similar to the stroke 21 of the original contour, and the direction is unified so that all closed curves are clockwise (or counterclockwise). The unification of the directions is performed in order to fill the inside of the outline at the time of filling described later.

【0028】このような閉曲線を新たな輪郭線のストロ
ークとすると、図3(b)に示すように各ストロークは
半円の中心26(元の輪郭線の終点)で接続するので、
接続されるストロークの底辺(始点部分)は、同じ長さ
の直径を持つ半円からはみでることはなく、どのような
角度で接続しても閉曲線の最外殻は滑らかに接続するこ
とになる。
Assuming that such a closed curve is a stroke of a new contour, each stroke is connected at the center 26 of the semicircle (the end point of the original contour) as shown in FIG.
The base (starting point) of the connected stroke does not protrude from a semicircle having the same length of diameter, and the outermost shell of the closed curve is connected smoothly at any angle.

【0029】次に、輪郭線作成手段2で作成された閉曲
線によって作られた新たな輪郭線の塗り潰しについて説
明する。輪郭線の塗り潰しは、画像生成手段4でノンゼ
ロワインディングと呼ばれる広く利用されている塗り潰
しルールによって行われ、輪郭線作成手段2で作成され
た輪郭線(修飾文字)と座標変換手段1で直線に分割さ
れた輪郭線(通常の文字)の両者に対して同様の方法で
行われる。
Next, the filling of a new contour line created by the closed curve created by the contour creating means 2 will be described. The contour line is filled by a widely used filling rule called non-zero winding in the image generation unit 4, and is divided into a contour line (modification character) created by the contour line creation unit 2 and a straight line by the coordinate conversion unit 1. The same method is applied to both of the contour lines (normal characters).

【0030】ここで、図4および図5を参照してノンゼ
ロワインディングによる塗り潰しを説明する。ノンゼロ
ワインディングルールの塗り潰しでは、図4(a)に示
すように輪郭線と走査線の交点で、方向を有する輪郭線
が走査線をその走査方向に対して右から左(図中下から
上)へ貫く場合を+1としてカウントし、逆の場合を−
1としてカウントして、カウント値が0以外の領域を塗
り潰す(左から右を+1としてもよい)。ところで、図
4(a)に示した輪郭線は、右回りの輪郭線と左回りの
輪郭線の組み合わせのように見えるが、実際には図4
(b)に示すような右回りの閉曲線のストロークの組み
合わせとなっている。また、輪郭線の方向が図4(c)
に示すような場合には、ノンゼロワインディングルール
では、輪郭線の外側となる部分まで塗り潰されてしまう
場合がある。
Here, the filling by non-zero winding will be described with reference to FIGS. In the non-zero winding rule filling, as shown in FIG. 4A, at the intersection of the contour and the scanning line, the contour having a direction moves the scanning line from right to left with respect to the scanning direction (from bottom to top in the drawing). Counts as +1 when piercing through, and −
Counting is performed as 1, and the area where the count value is other than 0 is painted out (left to right may be set to +1). Incidentally, the contour shown in FIG. 4A looks like a combination of a clockwise contour and a counterclockwise contour.
It is a combination of the strokes of a clockwise closed curve as shown in FIG. Also, the direction of the outline is shown in FIG.
In the case shown in (1), the non-zero winding rule may cause the portion outside the outline to be filled.

【0031】ノンゼロワインディングの性質としては、
図5(a)に示すような2つの輪郭線を図5(b)に示
すように重ねたとしても、その輪郭線の方向が右回りま
たは左回りで統一されていれば、重なった領域は0には
ならないため確実に塗り潰される。したがって、図5
(c)に示すように2つのストロークの重なる領域も確
実に塗り潰されることになる。
The properties of non-zero winding include:
Even if two outlines as shown in FIG. 5A are superimposed as shown in FIG. 5B, if the directions of the outlines are unified clockwise or counterclockwise, the overlapping area is Since it does not become 0, it is surely painted. Therefore, FIG.
As shown in (c), the area where the two strokes overlap is also reliably filled.

【0032】次に、図6を参照して画像処理装置10の
動作を説明する。図6は、画像処理装置10の動作の流
れを示すフローチャートである。
Next, the operation of the image processing apparatus 10 will be described with reference to FIG. FIG. 6 is a flowchart illustrating the flow of the operation of the image processing apparatus 10.

【0033】画像処理装置10は、CPU11が図示し
ないインタフェース等を通じて図示しないRAM(また
はRAM12)上に貯えられた画像情報等を読み込む。
画像情報が文字コードであればROM13または外部記
憶装置14から輪郭線情報(アウトラインフォントデー
タ)を読みだして画像生成プログラムの実行を開始する
(ステップ101)。
In the image processing apparatus 10, the CPU 11 reads image information and the like stored on a RAM (or RAM 12) not shown through an interface or the like not shown.
If the image information is a character code, outline information (outline font data) is read from the ROM 13 or the external storage device 14 and the execution of the image generation program is started (step 101).

【0034】画像生成プログラムの実行が開始される
と、座標変換手段1(CPU11による)が、輪郭線
(アウトライン)を出力したい大きさに座標変換し、こ
の輪郭線を短い複数の直線に分割する(ステップ10
2)。次に、この輪郭線(文字)を修飾する場合には
(ステップ103でYES)、座標変換手段1は輪郭線
作成手段2(半円計算手段3を含み、ともにCPU11
による)に輪郭線の線幅を設定する(ステップ10
4)。
When the execution of the image generation program is started, the coordinate conversion means 1 (by the CPU 11) converts the coordinates of the outline (outline) to a size desired to be output, and divides the outline into a plurality of short straight lines. (Step 10
2). Next, when modifying the outline (character) (YES in step 103), the coordinate conversion means 1 includes the outline creation means 2 (including the semicircle calculation means 3 and both CPU 11
(Step 10).
4).

【0035】次に、輪郭線作成手段2が輪郭線の各スト
ロークを読み出し(ステップ105)、各ストロークの
終点と方向を半円計算手段3に設定する(ステップ10
6)。半円計算手段3は、設定された各ストロークの終
点と方向、線幅から新たな輪郭線の半円部分を計算し、
作成する(ステップ107)。続いて、輪郭線作成手段
2が、半円計算手段3により作成された新たな輪郭線の
半円部分以外の3方向を囲む輪郭線を作成し(ステップ
108)、この新たに作成した輪郭線情報を元の輪郭線
情報と入れ替える(ステップ109)。
Next, the outline creating means 2 reads each stroke of the outline (step 105), and sets the end point and direction of each stroke in the semicircle calculating means 3 (step 10).
6). The semicircle calculation means 3 calculates a semicircle portion of a new contour line from the set end point, direction, and line width of each stroke,
It is created (step 107). Subsequently, the contour creating means 2 creates contours surrounding three directions other than the semicircular portion of the new contour created by the semicircle calculating means 3 (step 108), and the newly created contour The information is replaced with the original contour information (step 109).

【0036】元の輪郭線情報が新たな輪郭線情報と入れ
替えられるか(ステップ109)、または、輪郭線を修
飾しない場合には(ステップ103でNO)、画像生成
手段4が輪郭線情報に基づいてノンゼロワインディング
ルールによる塗り潰しを行ってビットマップを作成し
(ステップ110)、フレームバッファ16へ出力する
(ステップ111)。
If the original outline information is replaced with the new outline information (step 109), or if the outline is not modified (NO in step 103), the image generating means 4 executes the processing based on the outline information. A bitmap is created by performing filling with a non-zero winding rule (step 110), and output to the frame buffer 16 (step 111).

【0037】ここで、図示しない出力装置(ディスプレ
イやページプリンタ等)が、一定時間間隔またはCPU
11からの終了信号に応じてフレームバッファ16を調
べ、登録されているビットマップを出力することで画像
処理装置10は動作を終了する(ステップ112)。
Here, an output device (not shown) such as a display or a page printer is provided at a predetermined time interval or a
The image processing apparatus 10 checks the frame buffer 16 in response to the end signal from the CPU 11 and outputs the registered bitmap, thereby ending the operation of the image processing apparatus 10 (step 112).

【0038】なお、上述の実施例では、輪郭線を修飾す
る場合を例として説明したが、図7(a)に示すような
骨格だけを情報として持つストロークフォントの画像生
成に利用可能であり、この場合には図7(b)に示すよ
うな画像を生成することが可能であるが、ストロークの
両端31の形状を揃える必要があるため、始端のストロ
ークを図8(a)のように変更するか(両端31が半円
状となる)、終端のストロークを図8(b)のように変
更する必要がある(両端31が直線状となる)。
In the above-described embodiment, the case where the contour is modified has been described as an example. However, the present invention can be used for generating an image of a stroke font having only the skeleton as information as shown in FIG. In this case, it is possible to generate an image as shown in FIG. 7B, but since the shapes of both ends 31 of the stroke need to be aligned, the stroke at the start end is changed as shown in FIG. 8A. (The two ends 31 have a semicircular shape), or the end stroke must be changed as shown in FIG. 8B (the two ends 31 have a linear shape).

【0039】[0039]

【発明の効果】以上説明したように、この発明によれ
ば、輪郭線情報の各ストロークを切り欠きが発生するこ
との無い閉曲線パターンで置き換え、新たな輪郭線情報
を生成して塗り潰すことで文字の修飾を行うように構成
したので、使用するメモリの容量を比較的小さくするこ
とができ、閉曲線の重なりが2つの閉曲線のみとなり、
塗り潰しの処理を高速に行うことができる。
As described above, according to the present invention, each stroke of the outline information is replaced with a closed curve pattern that does not generate a notch, and new outline information is generated and filled. Since the character is configured to be modified, the capacity of the memory used can be made relatively small, and the overlap of the closed curves becomes only two closed curves.
The filling process can be performed at high speed.

【0040】また、文字修飾機能を持たない画像処理装
置に対しても、その塗り潰し処理を行う部分を利用でき
るため、輪郭線のストロークを閉曲線パターンに置き換
える機能を追加するだけで、文字修飾機能を持たせるこ
とができる。
Further, even for an image processing apparatus which does not have a character modification function, the portion for performing the filling process can be used. Therefore, the character modification function can be achieved simply by adding a function of replacing the outline stroke with a closed curve pattern. You can have.

【図面の簡単な説明】[Brief description of the drawings]

【図1】この発明に係わる画像処理装置の構成を示すブ
ロック図。
FIG. 1 is a block diagram showing a configuration of an image processing apparatus according to the present invention.

【図2】画像処理装置10の実際の構成を示した図。FIG. 2 is a diagram showing an actual configuration of the image processing apparatus 10.

【図3】輪郭線作成手段2が作成する閉曲線を示した
図。
FIG. 3 is a diagram showing a closed curve created by a contour creation unit 2;

【図4】ノンゼロワインディングによる塗り潰しを説明
するための図(1)。
FIG. 4 is a diagram (1) for explaining filling by non-zero winding;

【図5】ノンゼロワインディングによる塗り潰しを説明
するための図(2)
FIG. 5 is a diagram (2) for explaining filling by non-zero winding;

【図6】画像処理装置10の動作の流れを示すフローチ
ャート。
FIG. 6 is a flowchart showing a flow of the operation of the image processing apparatus 10;

【図7】骨格だけを情報として持つストロークフォント
の例を示した図。
FIG. 7 is a diagram showing an example of a stroke font having only a skeleton as information.

【図8】始端および終端となるストロークの形状を示し
た図。
FIG. 8 is a diagram showing shapes of strokes to be a start end and an end.

【図9】文字の輪郭線とその輪郭線から得られるビット
マップを示した図。
FIG. 9 is a diagram showing an outline of a character and a bitmap obtained from the outline.

【図10】輪郭線の内側の塗り潰しを説明する図。FIG. 10 is a view for explaining filling inside the outline.

【図11】輪郭線を構成するストロークを説明する図。FIG. 11 is a view for explaining strokes constituting a contour line.

【図12】文字修飾の一例を示した図。FIG. 12 is a diagram showing an example of character modification.

【図13】線幅を持った輪郭線情報を示した図。FIG. 13 is a view showing contour line information having a line width.

【図14】元の輪郭線から新たな輪郭線を作成する例を
示した図。
FIG. 14 is a diagram showing an example of creating a new contour from an original contour.

【図15】元の輪郭線から新たな輪郭線を作成する具体
的な例を示した図。
FIG. 15 is a diagram showing a specific example of creating a new contour from an original contour.

【図16】新たな輪郭線による切り欠き部分を接続する
例を示した図。
FIG. 16 is a diagram showing an example of connecting a notched portion with a new contour line.

【図17】新たな輪郭線によるビットマップパターンの
各構成部を示した図。
FIG. 17 is a diagram showing each component of a bitmap pattern using a new contour line.

【符号の説明】[Explanation of symbols]

1 座標変換手段 2 輪郭線作成手段 3 半円計算手段 4 画像生成手段 10 画像処理装置 11 CPU 12 RAM 13 ROM 14 外部記憶装置 15 ビデオI/F(インタフェイス) 16 フレームバッファ 17 プリンタI/F(インタフェイス) 21 ストローク 22、23、24 直線 25 半円 26 半円の中心 31 ストロークの両端 REFERENCE SIGNS LIST 1 coordinate conversion means 2 contour creation means 3 semicircle calculation means 4 image generation means 10 image processing device 11 CPU 12 RAM 13 ROM 14 external storage device 15 video I / F (interface) 16 frame buffer 17 printer I / F ( Interface) 21 Stroke 22, 23, 24 Straight line 25 Semicircle 26 Center of semicircle 31 Both ends of stroke

───────────────────────────────────────────────────── フロントページの続き (51)Int.Cl.6 識別記号 FI G09G 5/36 530 G06F 15/72 400 ──────────────────────────────────────────────────続 き Continued on the front page (51) Int.Cl. 6 Identification code FI G09G 5/36 530 G06F 15/72 400

Claims (10)

【特許請求の範囲】[Claims] 【請求項1】 描画する文字の輪郭線を任意に設定した
幅の輪郭線に変更して文字修飾を行う画像処理方法にお
いて、 描画する文字の輪郭線を複数の直線で近似し、該近似し
た輪郭線のそれぞれを方形の1辺を半円と置換した閉曲
線と入れ替え、該閉曲線の内側となる領域を塗り潰すこ
とで前記文字修飾を行うことを特徴とする画像処理方
法。
1. An image processing method for modifying a character by changing an outline of a character to be drawn to an outline having an arbitrarily set width, wherein the outline of the character to be drawn is approximated by a plurality of straight lines. An image processing method, wherein each of the outlines is replaced with a closed curve in which one side of a rectangle is replaced by a semicircle, and the character modification is performed by filling an area inside the closed curve.
【請求項2】 前記閉曲線は、 前記半円の中心と前記近似した輪郭線の第1の端点とが
一致し、かつ、前記半円と対向する辺の中点と前記近似
した輪郭線の第2の端点とが一致することを特徴とする
請求項1記載の画像処理方法。
2. The closed curve, wherein the center of the semicircle coincides with a first end point of the approximated contour, and a midpoint of a side facing the semicircle and a second point of the approximated contour. 2. The image processing method according to claim 1, wherein the two end points coincide with each other.
【請求項3】 前記閉曲線は、 前記半円の直径と該半円と対向する辺の長さとが前記任
意に設定した幅と等しいことを特徴とする請求項1記載
の画像処理方法。
3. The image processing method according to claim 1, wherein a diameter of the semicircle and a length of a side facing the semicircle are equal to the arbitrarily set width.
【請求項4】 前記閉曲線は、 該閉曲線を右回り若しくは左回りする方向を有し、ノン
ゼロワインディングルールで前記塗り潰しが行われるこ
とを特徴とする請求項1記載の画像処理方法。
4. The image processing method according to claim 1, wherein the closed curve has a clockwise or counterclockwise direction with respect to the closed curve, and the filling is performed according to a non-zero winding rule.
【請求項5】 前記閉曲線の方向は、 前記文字を形成する全ての閉曲線で統一されていること
を特徴とする請求項4記載の画像処理方法。
5. The image processing method according to claim 4, wherein the direction of the closed curve is unified for all closed curves forming the character.
【請求項6】 描画する文字の輪郭線を任意に設定した
幅の輪郭線に変更して文字修飾を行う画像処理装置にお
いて、 描画する文字の輪郭線を複数の直線で近似する座標変換
手段と、 方形の1辺を半円と置換した閉曲線を作成し、該閉曲線
を前記座標変換手段により近似された輪郭線と入れ替え
る輪郭線作成手段と、 前記輪郭線作成手段により入れ替えられた閉曲線の内側
となる領域を塗り潰す画像生成手段とを具備することを
特徴とする画像処理装置。
6. An image processing apparatus for modifying a character by changing an outline of a character to be drawn to an outline having an arbitrarily set width, wherein coordinate conversion means for approximating the outline of the character to be drawn with a plurality of straight lines. Creating a closed curve in which one side of a rectangle is replaced by a semicircle, and replacing the closed curve with a contour approximated by the coordinate conversion means; and an inside of the closed curve replaced by the contour creating means. An image processing apparatus comprising: an image generation unit that fills an area.
【請求項7】 前記輪郭線作成手段は、 前記半円の中心と該半円に対向する辺の中点との距離が
前記近似した輪郭線の長さと等しい閉曲線を作成し、 前記半円の中心と前記近似した輪郭線の第1の端点とが
一致し、かつ、前記半円と対向する辺の中点と前記近似
した輪郭線の第2の端点とが一致する位置となるように
前記近似した輪郭線と前記閉曲線とを入れ替えることを
特徴とする請求項6記載の画像処理装置。
7. The contour creating means creates a closed curve in which the distance between the center of the semicircle and the midpoint of the side opposite to the semicircle is equal to the length of the approximated contour, The center and the first end point of the approximated contour line coincide with each other, and the midpoint of the side facing the semicircle coincides with the second end point of the approximated contour line. 7. The image processing apparatus according to claim 6, wherein the approximated contour and the closed curve are exchanged.
【請求項8】 前記輪郭線作成手段は、 前記半円の直径と該半円と対向する辺の長さとが前記任
意に設定した幅と等しくなるように前記閉曲線を作成す
ることを特徴とする請求項6記載の画像処理装置。
8. The contour line creating means creates the closed curve such that the diameter of the semicircle and the length of a side facing the semicircle are equal to the arbitrarily set width. The image processing device according to claim 6.
【請求項9】 前記閉曲線は、 該閉曲線を右回り若しくは左回りする方向を有し、 前記画像生成手段は、 ノンゼロワインディングルールにより前記閉曲線の内側
となる領域を塗り潰すことを特徴とする請求項6記載の
画像処理装置。
9. The closed curve has a direction clockwise or counterclockwise of the closed curve, and the image generating means fills an area inside the closed curve according to a non-zero winding rule. 7. The image processing device according to 6.
【請求項10】 前記閉曲線の方向は、 前記文字を形成する全ての閉曲線で統一されていること
を特徴とする請求項9記載の画像処理装置。
10. The image processing apparatus according to claim 9, wherein the direction of the closed curve is unified for all closed curves forming the character.
JP09161398A 1998-04-03 1998-04-03 Image processing method and apparatus Expired - Fee Related JP3603593B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP09161398A JP3603593B2 (en) 1998-04-03 1998-04-03 Image processing method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP09161398A JP3603593B2 (en) 1998-04-03 1998-04-03 Image processing method and apparatus

Publications (2)

Publication Number Publication Date
JPH11288261A true JPH11288261A (en) 1999-10-19
JP3603593B2 JP3603593B2 (en) 2004-12-22

Family

ID=14031431

Family Applications (1)

Application Number Title Priority Date Filing Date
JP09161398A Expired - Fee Related JP3603593B2 (en) 1998-04-03 1998-04-03 Image processing method and apparatus

Country Status (1)

Country Link
JP (1) JP3603593B2 (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7821514B2 (en) 2006-05-11 2010-10-26 Kabushiki Kaisha Toshiba Image processing apparatus, image processing method, and image processing program
JP2010264691A (en) * 2009-05-15 2010-11-25 Ricoh Co Ltd Information processing apparatus, laser irradiation device, method of generating drawing information, control system, program, storage medium, and device of storing drawing information
JP2012126120A (en) * 2010-11-24 2012-07-05 Ricoh Co Ltd Apparatus for drawing image on thermal rewritable medium
JPWO2013160963A1 (en) * 2012-04-27 2015-12-21 三菱電機株式会社 Character drawing apparatus and character drawing method
CN112001031A (en) * 2020-08-19 2020-11-27 北京卫星环境工程研究所 Digital design method for spacecraft thermal control multilayer surface film

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7821514B2 (en) 2006-05-11 2010-10-26 Kabushiki Kaisha Toshiba Image processing apparatus, image processing method, and image processing program
JP2010264691A (en) * 2009-05-15 2010-11-25 Ricoh Co Ltd Information processing apparatus, laser irradiation device, method of generating drawing information, control system, program, storage medium, and device of storing drawing information
CN102421603A (en) * 2009-05-15 2012-04-18 株式会社理光 Information processing apparatus, laser radiation device, render information generating method, control system, program, recording medium, and render information storage device
US8581948B2 (en) 2009-05-15 2013-11-12 Ricoh Company, Ltd. Information processing apparatus, laser radiation device, render information generating method, control system, recording medium, and render information storage device
JP2012126120A (en) * 2010-11-24 2012-07-05 Ricoh Co Ltd Apparatus for drawing image on thermal rewritable medium
JPWO2013160963A1 (en) * 2012-04-27 2015-12-21 三菱電機株式会社 Character drawing apparatus and character drawing method
DE112012006274B4 (en) 2012-04-27 2018-08-23 Mitsubishi Electric Corporation Character drawing apparatus and character drawing method
CN112001031A (en) * 2020-08-19 2020-11-27 北京卫星环境工程研究所 Digital design method for spacecraft thermal control multilayer surface film
CN112001031B (en) * 2020-08-19 2024-04-12 北京卫星环境工程研究所 Digital design method for spacecraft thermal control multilayer surface film

Also Published As

Publication number Publication date
JP3603593B2 (en) 2004-12-22

Similar Documents

Publication Publication Date Title
US4529978A (en) Method and apparatus for generating graphic and textual images on a raster scan display
EP1847965A1 (en) Plotting device and plotting method
KR20030005277A (en) Shape processor
JPH03208094A (en) Treatment of outline of symbol image of various sizes and computor display device
JP5067501B2 (en) Multicolor vector image processing apparatus and method
JP2009009345A (en) Vector image drawing device, vector image drawing method, and program
JP3603593B2 (en) Image processing method and apparatus
EP0062669B1 (en) Graphic and textual image generator for a raster scan display
JP2002519793A (en) Method and system for rendering graphic elements
JP3085175B2 (en) Drawing equipment
JPH05120441A (en) Vector picture plotting device
JP2782904B2 (en) Polygon fill method
JPH01191192A (en) High quality character generating device
JPS62285188A (en) Display method for segment
JPS63303477A (en) Vector character and graphic processing system
JPH0392897A (en) Pattern generating device
JPH0350686A (en) Graphic processing system
JPH08305865A (en) Figure drawing device
JPH0950272A (en) Method and device for outline font generation
JPH0772847A (en) Character font output device and character font generating device
JPH07152920A (en) Graphic processor and its method
JPH0239361A (en) Document processor
JP2014032477A (en) Image drawing device and image drawing method
JPH0896148A (en) Graphic plotting device
JPH01244585A (en) Graphic data clipping processing system

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20040113

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20040210

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20040412

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20040525

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20040716

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20040920

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20071008

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20081008

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20091008

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20101008

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20111008

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20121008

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20121008

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20131008

Year of fee payment: 9

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

S802 Written request for registration of partial abandonment of right

Free format text: JAPANESE INTERMEDIATE CODE: R311802

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

LAPS Cancellation because of no payment of annual fees