JPH0230558A - Character pattern generation method - Google Patents
Character pattern generation methodInfo
- Publication number
- JPH0230558A JPH0230558A JP63179012A JP17901288A JPH0230558A JP H0230558 A JPH0230558 A JP H0230558A JP 63179012 A JP63179012 A JP 63179012A JP 17901288 A JP17901288 A JP 17901288A JP H0230558 A JPH0230558 A JP H0230558A
- Authority
- JP
- Japan
- Prior art keywords
- outline
- character pattern
- degrees
- width
- intersection
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Landscapes
- Dot-Matrix Printers And Others (AREA)
- Controls And Circuits For Display Device (AREA)
Abstract
(57)【要約】本公報は電子出願前の出願データであるた
め要約のデータは記録されません。(57) [Summary] This bulletin contains application data before electronic filing, so abstract data is not recorded.
Description
【発明の詳細な説明】
〔産業上の利用分野〕
本発明は、文字パターンの発生方法に係り、特に文字パ
ターンの輪郭線から影付き白抜き文字パターンを発生さ
せるのに好適な文字パターン発生方法。[Detailed Description of the Invention] [Field of Industrial Application] The present invention relates to a method of generating a character pattern, and in particular, a character pattern generation method suitable for generating a shaded white character pattern from the outline of a character pattern. .
一般に、文字パターンの輪郭線から影付き白抜き文字パ
ターンを発生させる方法としては、輪郭線を文字パター
ンの外側(塗り潰さない側)へ影付き白抜き文字パター
ンの外郭線の幅分1ずつずらして描画するものが挙げら
れる(第3図)。Generally, the method of generating a shaded white character pattern from the outline of a character pattern is to shift the outline to the outside of the character pattern (to the side that is not filled) by one width of the outline of the shaded white character pattern. Examples include things to draw (Figure 3).
上記従来技術は、発生させる影付き白抜き文字パターン
の影の幅あるいは外郭線の幅が、太い場合1輪郭線を描
画する回数が増加するので、処理速度が遅くなるという
問題があった。The conventional technique described above has a problem in that when the width of the shadow or the width of the outline of the generated white character pattern with shadow is thick, the number of times one outline is drawn increases, resulting in a slow processing speed.
本発明の目的は、影の幅、外郭線の幅を任意とする影付
き白抜き文字を高速に発生させることにある。SUMMARY OF THE INVENTION An object of the present invention is to quickly generate shaded white characters with arbitrary shadow widths and outline widths.
上記目的は、文字パターンの輪郭線ごとに走査線とのな
す角度を0度から90度までの範囲で検出し、その角度
が0度以上45°未滴の場合は前記従来の方法で描画し
、45度以上90度未満の場合は輪郭線と走査線から算
出した交点を基に文字パターンの外側(塗り潰さない側
)へ影付き白抜き文字パターンの外郭線の幅あるいは外
郭線の幅と影の幅を加えた長さの直線を描画することに
より達成される。The above purpose is to detect the angle between each contour line of the character pattern and the scanning line in the range from 0 degrees to 90 degrees, and if the angle is 0 degrees or more and 45 degrees or more, it is drawn using the conventional method described above. , if the angle is greater than or equal to 45 degrees and less than 90 degrees, the width of the outline of the shaded white character pattern or the width and shadow of the outline is moved outside the character pattern (the side that is not filled) based on the intersection calculated from the outline and the scanning line. This is achieved by drawing a straight line with a length plus the width of .
文字パターンの輪郭線と走査線のなす角度が0度以上4
5度未満の場合には輪郭線とを査線に対して垂直方向に
ずらしていくのに対して、45度以上90度以下の場合
には輪郭線を走査線に対して水平方向にずらしていくの
で、後者の場合ずらして描画するのでなく文字パターン
の輪郭線と走査線から算出した交点を基に文字パターン
の外側へ影付き白抜き文字パターンの外郭線の幅あるい
は外郭線の幅と影の幅を加えた長さの直線を描画するこ
とにより処理時間の短縮を図ることができる。The angle between the outline of the character pattern and the scanning line is 0 degrees or more 4
If it is less than 5 degrees, the contour line is shifted perpendicularly to the scan line, whereas if it is 45 degrees or more and 90 degrees or less, the contour line is shifted horizontally to the scan line. In the latter case, instead of shifting the drawing, the width of the outline of the shaded white character pattern or the width of the outline and the shadow is drawn outside the character pattern based on the intersection point calculated from the outline of the character pattern and the scanning line. The processing time can be shortened by drawing a straight line with a length equal to the width of .
以下、本発明の一実施例を図を用いて説明する。 An embodiment of the present invention will be described below with reference to the drawings.
第1図は、本発明の原理ブロック図を示す。FIG. 1 shows a block diagram of the principle of the present invention.
文字パターンの輪郭線データ11は、輪郭線と走査線と
の交点を算出する交点算出手段12と輪郭線と走査線と
のなす角度を0度から90度の範囲で検出する角度検出
手段14に入力される。交点算出手段12によって算出
された交点は、1文字分の輪郭線の交点を求めた後、水
平方向外郭線描画手段13に入力される。水平方向外郭
線描画手段13では、走査方向ごとに昇順に交点をソト
シ、奇数番目の交点に対しては交点より左側に走査方向
に対して水平な外郭線の幅分の直線を描画し、偶数番口
の交点に対しては交点より右側に走査方向に対して水平
な外郭線の幅に影の幅を加えた長さの直線を描画する。The outline data 11 of the character pattern is sent to an intersection calculation means 12 that calculates the intersection between the outline and the scanning line, and an angle detection means 14 that detects the angle between the outline and the scanning line in the range of 0 degrees to 90 degrees. is input. The intersection point calculated by the intersection point calculation means 12 is inputted to the horizontal direction outline drawing means 13 after finding the intersection point of the outline of one character. The horizontal outline drawing means 13 draws intersection points in ascending order for each scanning direction, and for odd-numbered intersections, draws a straight line equal to the width of the outline horizontal to the scanning direction on the left side of the intersection. At the intersection of the gates, a straight line with a length equal to the width of the outline horizontal to the scanning direction plus the width of the shadow is drawn on the right side of the intersection.
一方、角度検出手段14によって0度以上45度未満と
判断された輪郭線は、位置検出手段15により、文字パ
ターンにおける輪郭線の位置を検出し、文字パターンの
上側であるか下側であるかを判別する。角度検出手段1
5によって45度以上90度以下と判断された輪郭線に
対しては位置検出手段15および垂直方向外郭線描画手
段1(3へは入力しない。垂直方向外郭線描画手段16
へ入力された輪郭線は、位置検出手段15によって」二
側と判断された場合は上側、下側と判断された場合には
下側へそれぞれ外郭線の幅分1ずっずらして描画する。On the other hand, for the contour line determined by the angle detection means 14 to be 0 degrees or more and less than 45 degrees, the position detection means 15 detects the position of the contour line in the character pattern, and determines whether it is above or below the character pattern. Determine. Angle detection means 1
5, the contour line determined to be between 45 degrees and 90 degrees is input to the position detection means 15 and the vertical contour drawing means 1 (not input to the vertical contour drawing means 16.
If the position detecting means 15 determines that the contour line is on the second side, the input contour line is drawn upwardly, and if it is determined as the bottom side, it is drawn downwardly by one width of the contour line.
1文字分の輪郭線を処理した後、水平方向外郭線描画手
段13と垂直方向外郭線描画手段16によって描画した
外郭線を外郭線合成手段17で合成し、影付き白抜き文
字パターン18を発生させる。以上、発生する文字パタ
ーンを第2図に示す。After processing the outline for one character, the outline drawn by the horizontal outline drawing means 13 and the vertical outline drawing means 16 are combined by the outline combining means 17 to generate a shaded white character pattern 18. let The character patterns generated above are shown in FIG.
本実施例によれば、走査線とのなす角度が45度以上9
0度以下の輪郭線の処理を走査線と水平方向にまとめて
外郭線の幅分描画できるので、処理時間短縮の効果があ
る。According to this embodiment, the angle formed with the scanning line is 45 degrees or more and 9
Processing of contour lines of 0 degrees or less can be drawn in parallel to the scanning line in the width of the contour line, which has the effect of shortening processing time.
本発明によれば、影の幅、外郭線の幅を大きくしても高
速に影付き白抜き文字パターンを発生することができる
。According to the present invention, a shaded white character pattern can be generated at high speed even when the width of the shadow and the width of the outline are increased.
第1図は本発明の原理ブロック図、第2図は本発明によ
り発生する文字パターンの流れ図、第3図は従来の方法
による白抜き文字パターンの発生図を示す。
11 文字パターンの輪郭線データ、12・交点算出手
段、13 ・水平方向外郭線描画手段、]4・・角度検
出手段、15・・位置検出手段、16 垂直方向外郭線
描画手段、17・・・外郭線合成手段、18・・・影付
き白抜き文字パターン。FIG. 1 is a block diagram of the principle of the present invention, FIG. 2 is a flowchart of a character pattern generated by the present invention, and FIG. 3 is a diagram of the generation of an outline character pattern by a conventional method. 11. Character pattern outline data, 12. Intersection point calculation means, 13. Horizontal outline drawing means, ] 4. Angle detection means, 15. Position detection means, 16. Vertical outline drawing means, 17. Outline synthesis means, 18...Shaded white character pattern.
Claims (1)
手段と、前記交点を基に文字パターンの外郭線を描画す
る手段と、前記輪郭線と走査線とのなす角度を検出する
手段と、文字パターンにおける前記輪郭線の位置を検出
する手段と、前記輪郭線を基に文字パターンの外郭線を
描画する手段とを備え、文字パターンの輪郭線から影付
き白抜き文字パターンを発生させるように構成したこと
を特徴とする文字パターン発生方法。1. means for calculating the intersection of the outline of the character pattern and the scanning line; means for drawing the outline of the character pattern based on the intersection; means for detecting the angle formed by the outline and the scanning line; , comprising means for detecting the position of the outline in the character pattern, and means for drawing an outline of the character pattern based on the outline, and generating a shaded white character pattern from the outline of the character pattern. A character pattern generation method characterized by comprising:
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP63179012A JPH0230558A (en) | 1988-07-20 | 1988-07-20 | Character pattern generation method |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP63179012A JPH0230558A (en) | 1988-07-20 | 1988-07-20 | Character pattern generation method |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH0230558A true JPH0230558A (en) | 1990-01-31 |
Family
ID=16058574
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP63179012A Pending JPH0230558A (en) | 1988-07-20 | 1988-07-20 | Character pattern generation method |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0230558A (en) |
-
1988
- 1988-07-20 JP JP63179012A patent/JPH0230558A/en active Pending
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JPS63245576A (en) | Plane graphic clipping circuit | |
| JPH0230558A (en) | Character pattern generation method | |
| KR910012997A (en) | Shading Apparatus and Method for Computer Graphics | |
| JPH0328476Y2 (en) | ||
| JP2985275B2 (en) | Character generation method of outline font | |
| JP2661494B2 (en) | Division point setting method | |
| KR950003202B1 (en) | Tracking method of text image | |
| JPH0778425B2 (en) | Three-dimensional data interpolation method | |
| JP2641237B2 (en) | Circular object recognition method | |
| JP2588742B2 (en) | Image reduction apparatus and method | |
| KR880014484A (en) | Graphic controller | |
| JPH0760464B2 (en) | Image processing method | |
| JPH04217077A (en) | Graphic generating device and thick line generating method thereby | |
| JPH01205287A (en) | Character line inclination detector | |
| JPH0535872A (en) | Contour tracing system for binary image | |
| JPS6188379A (en) | Image processing device | |
| JPH07302152A (en) | Coordinate detecting method for coordinate input device | |
| JPH0423305B2 (en) | ||
| JPH02213936A (en) | Graphic display device | |
| JPH0546779A (en) | Method for filling rectangular area | |
| JPS62267609A (en) | Measuring method for gap of article | |
| KR920019202A (en) | Video data processing device and method | |
| JPH07113975B2 (en) | Center of gravity detector | |
| JPS63163579A (en) | Graphic boundary vector generating circuit | |
| JPH06161417A (en) | How to display a straight line with a width |