JPH0293774A - System for generating boldface projecting polygon - Google Patents

System for generating boldface projecting polygon

Info

Publication number
JPH0293774A
JPH0293774A JP24423788A JP24423788A JPH0293774A JP H0293774 A JPH0293774 A JP H0293774A JP 24423788 A JP24423788 A JP 24423788A JP 24423788 A JP24423788 A JP 24423788A JP H0293774 A JPH0293774 A JP H0293774A
Authority
JP
Japan
Prior art keywords
line
scanning line
area
dot
point
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP24423788A
Other languages
Japanese (ja)
Inventor
Toshikazu Morita
年一 森田
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.)
LSI Systems KK
Original Assignee
LSI Systems KK
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 LSI Systems KK filed Critical LSI Systems KK
Priority to JP24423788A priority Critical patent/JPH0293774A/en
Publication of JPH0293774A publication Critical patent/JPH0293774A/en
Pending legal-status Critical Current

Links

Landscapes

  • Image Generation (AREA)

Abstract

PURPOSE:To efficiently execute dot transformation processing by obtaining a cross point between a scanning line and an internal and external shape line when the scanning line is positioned in a second data area and executing dot transformation to the cross point between the external and internal forms of the scanning line. CONSTITUTION:In a process to dislocate a scanning line XN by one dot, when the line XN is positioned in a first area E1, the line XN crosses only an external shape line Lo and the dot transformation is executed between cross points Po11 and Po12. Next, when the line XN is positioned in a second area E2, the line XN crosses both the external shape line Lo and an internal shape line Li and the dot transformation is executed between the two intervals of cross points Po21, Pi22 and Po22. Further, when the line XN is positioned in a third area E3, the line XN crosses only the external shape line Lo and samely as the case of the first area, the dot transformation is wholly executed to the inside of the external shape line Lo which is positioned in the third area. Thus, only by moving the scanning line once in a graphic area, the dot transformation of a boldface projecting polygon, which is purpose, is finished. Then, the dot transformation processing can be efficiently executed.

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明は、パーソナルコンピュータ等での図形処理にて
適用される太線凸多角形の発生方式に係り、詳しくは、
外形情報と内形情報にて特定される太線凸多角形をドツ
トイメージが展開されるメモリ上にて発生させる太線凸
多角形発生方式に関する。
[Detailed Description of the Invention] [Industrial Application Field] The present invention relates to a method for generating thick convex polygons that is applied to graphic processing in personal computers, etc.
The present invention relates to a thick line convex polygon generation method for generating a thick line convex polygon specified by outer shape information and inner shape information on a memory in which a dot image is developed.

F従来の技術] 図形処理が可能なワードプロセッサあるいはパーソナル
コンピュータ等においては、CR’Tデイスプレィでの
図形表示やプリンタでの図形のプリントアウトに際して
、当該表示すべきあるいはプリントアウトすべき図形を
ドツトイメージが展開されるメモリ(ビットマツプメモ
リ)上に発生させている。特に、第6図に示すような2
ドツト以上の線幅を有する太線凸多角形については、そ
の太線の外形情報(LO)と内形情報(Li )とに基
づいて対応する太線凸多角形をメモリ上にドツト展開す
ることにより発生させている。
F. Prior Art] In word processors, personal computers, etc. capable of graphic processing, when displaying a graphic on a CR'T display or printing out a graphic on a printer, the graphic to be displayed or printed out is displayed as a dot image. It is generated on the expanded memory (bitmap memory). In particular, two
For a thick line convex polygon having a line width greater than a dot, the corresponding thick line convex polygon is generated by dot expansion on the memory based on the outer shape information (LO) and inner shape information (Li) of the thick line. ing.

従来、この太線凸多角形の発生は、内形情報にて特定さ
れる1ドツト幅の多角形を1ドツトずつ太らせ、外形情
報にて特定される形状になるまで繰り返すことによって
実現したり、また、太線の線分を長方形として扱い、太
線凸多角形を長方形線分の集合として処理するようにし
ていた。
Conventionally, this thick line convex polygon is generated by making the polygon with a width of one dot specified by the internal shape information thicker one dot at a time, and repeating the process until the shape specified by the external shape information is reached. Furthermore, thick line segments are treated as rectangles, and thick convex polygons are processed as a set of rectangular line segments.

[発明が解決しようとする課題] 上記従来の凸多角形の発生方式では、その処理の高速化
に限度がある。
[Problems to be Solved by the Invention] The conventional convex polygon generation method described above has a limit in speeding up the processing.

それは、線分を1ドツトずつ太らせる方式にあっては、
線分をドツトに変換する処理を所望の太さになるまで繰
り返す必要性からその処理が膨大となり、また、太線の
線分を長方形として処理する方式にあっては、線分単位
で個別に処理を行なわなければならず、更に、線分の接
合点での処理が複雑になる等の理由からである。
In the method of thickening line segments one dot at a time,
The process of converting line segments into dots has to be repeated until the desired thickness is achieved, which makes the process enormous.Also, in the method of processing thick line segments as rectangles, each line segment must be processed individually. This is because the processing at the junction of line segments becomes complicated.

そこで、本発明の課題は、ドツトイメージが展開される
メモリ上での太線凸多角形の発生に際して、そのドツト
変換処理を極力効率的に行なうことである。
Therefore, an object of the present invention is to perform dot conversion processing as efficiently as possible when a thick line convex polygon is generated on a memory in which a dot image is developed.

[課題を解決するための手段] 本発明は、外形情報と内形情報にて特定される太線凸多
角形をドツトイメージが展開されるメモリ上にて発生さ
せる太線多角形の発生方式を前提としており、当該発生
方式にあって、上記課題を解決するための技術的手段は
、第7図に示すように、外形情報に基づいて外形線LO
の走査ライン配列方向りでの最上位点pou及び最下位
点podを定めると共に、内形情報に基づいて内形線L
iの走査ライン配列方向りでの最上位点Piu及び最下
位点Pidを定め、メモリを走査ライン配列方向りにつ
いて、外形上位点Pouと内形上位点Piuとの間の第
1領域E1と、内形上位点Piuと内形下位点Pidと
の間の第2領域E2と、内形下位点Pidと外形下位点
podとの間の第3領域E3とに領域区分し、メモリ上
において走査ラインXNを1ドツトずつずらしていく過
程で、走査ラインXNが第1領域E1または第3領域E
3に位置するときに走査ラインXNと外形線LOとの交
点P011Po12またはP 031. P o32を
求めて走査ラインXN(7)当該交点+ffi (PO
11、PO12) マタハ(P 031. P 032
 )をドツト変換し、走査ラインXNが第2領域E2に
位置するときに走査ラインXNと内外形線1−o、li
との交点P o21 P o22P i21. P +
22を求めて走査ラインXNの外形内形交点間(Po2
1.Pi21 )  (Pi22.Po22 )をドツ
ト変換するものである。
[Means for Solving the Problems] The present invention is based on a thick line polygon generation method in which a thick line convex polygon specified by external shape information and internal shape information is generated on a memory in which a dot image is expanded. As shown in FIG. 7, the technical means for solving the above problem in this generation method is to
In addition to determining the highest point pou and the lowest point pod in the scanning line arrangement direction, the internal shape line L is determined based on the internal shape information.
The highest point Piu and the lowest point Pid in the scanning line array direction of i are determined, and the memory is stored in the scanning line array direction as a first area E1 between the outer shape upper point Pou and the inner shape upper point Piu, The area is divided into a second region E2 between the inner shape upper point Piu and the inner shape lower point Pid, and a third region E3 between the inner shape lower point Pid and the outer shape lower point pod, and the scanning line is In the process of shifting XN one dot at a time, the scanning line XN moves to the first area E1 or the third area E1.
3, the intersection point P011Po12 or P031.3 between the scanning line XN and the outline line LO. Find P o32 and calculate scanning line XN (7) corresponding intersection + ffi (PO
11, PO12) Mataha (P 031. P 032
) is converted into dots, and when the scanning line XN is located in the second area E2, the scanning line XN and the inner and outer contour lines 1-o, li
Intersection point P o21 P o22P i21. P+
22 between the outer and inner shape intersections of the scanning line XN (Po2
1. Pi21) (Pi22.Po22) is converted into dots.

メモリ上での上記ドツト変換は、通常、論理情報111
 I+の書込みにて行なわれる。
The above dot conversion on memory usually involves logical information 111
This is done by writing I+.

なお、上記メモリにおける走査ラインの方向、即ち、そ
の配列方向りは任意に設定され得るものである。
Note that the direction of the scanning lines in the memory, that is, the direction in which they are arranged, can be set arbitrarily.

[作用] 走査ラインXNを1ドツトずつずらしていく過程で、走
査ラインXNが第1領域E1に位置すると、当該走査ラ
インXNは外形線10とのみ交差し、その交点(Po1
1、Po12 )間がドツト変換される。従って、走査
ラインXNの第1領域内での移動が終了すると、第1領
域E1に位置する外形線LOの内側が全てドツト変換さ
れる。次に、走査ラインXNが第2f!R域ε2に位置
すると、当該走査ラインXNは外形線LOと内形線li
の双方と交差し、その2か所の交点H(Po21.P 
i21 ) 。
[Operation] In the process of shifting the scanning line XN one dot at a time, when the scanning line XN is located in the first area E1, the scanning line
1, Po12) is dot-converted. Therefore, when the movement of the scanning line XN within the first area is completed, the entire area inside the outline line LO located in the first area E1 is converted into dots. Next, the scanning line XN is the second f! When located in the R area ε2, the scanning line
, and the two intersections H (Po21.P
i21).

(P i22. P o22 )の夫々がドツト変換さ
れる。従って、走査ラインXNの第2領域内での移動が
終了すると、当該第2領域において、外形線1oの内側
で内形線liの外側が全てドツト変換される。
(P i22. P o22 ) are each dot-converted. Therefore, when the movement of the scanning line XN in the second area is completed, in the second area, everything inside the outer line 1o and outside the inner line li is converted into dots.

更に、走査ラインXNが第3領域E3に位置すると、当
該走査ラインXNは外形線1oとのみ交差し、上記第1
領域の場合と同様、第3領域に位置する外形線LOの内
側が全てドツト変換される。
Furthermore, when the scanning line XN is located in the third area E3, the scanning line XN intersects only the outline line 1o, and the scanning line
As in the case of the area, all areas inside the outline line LO located in the third area are converted into dots.

上記第1領域El、第2領域E2.  第3領域E3で
のドツト変換処理が終了すると、外形線LOと内形線1
−iとの間の全体がドツト変換され、メモリ上には当該
外形線LOと内形線1−iで形どられる太線の凸多角形
が展開されることになる。
The first area El, the second area E2. When the dot conversion process in the third area E3 is completed, the outer line LO and the inner line 1 are
-i is dot-converted, and a thick convex polygon formed by the outer line LO and inner line 1-i is developed on the memory.

[実施例] 以下、本発明の実施例を図面に基づいて説明する。[Example] Embodiments of the present invention will be described below based on the drawings.

第2図は本発明に係る凸多角形の発生方式が適用される
画像処理装置の基本構成例を示すブロック図である。
FIG. 2 is a block diagram showing an example of the basic configuration of an image processing apparatus to which the convex polygon generation method according to the present invention is applied.

同図において、10は全体の統轄的制御を行なうCPL
I、12は図形に関する画像処理を行なうグラフィック
プロセッサ、14はプログラム等が格納されたROM、
16は画像情報をドツト展開するビットマツプメモリが
構成されると共に、図形の輪郭情報(外形、内形)を記
憶するエリア等を有するRAMであり、これらCPL1
1o、グラフィックプロセッサ12、ROM14、RA
M16は夫々バス接続されている。また、18はインタ
フェース回路であり、このインタフェース回路18を介
してCRTデイスプレィ13、プリンタ15と共に、キ
ーボード装置、スキャナ等の入力装置17が接続されて
いる。
In the same figure, 10 is a CPL that performs overall control.
I, 12 is a graphics processor that performs image processing related to graphics; 14 is a ROM in which programs and the like are stored;
Reference numeral 16 denotes a RAM that includes a bitmap memory for expanding image information into dots, and also has an area for storing contour information (outer shape, inner shape) of figures.
1o, graphic processor 12, ROM14, RA
M16 are connected to each other by a bus. Reference numeral 18 denotes an interface circuit, through which the CRT display 13, printer 15, and input devices 17 such as a keyboard device and a scanner are connected.

なお、上記グラフィックプロセッサ12が本発明に係る
太線凸多角形の発生方式に従った図形発生機能を有して
いる。
Note that the graphic processor 12 has a graphic generation function according to the thick line convex polygon generation method according to the present invention.

次に、第3図に示すフローチャートに従って図形発生処
理を説明する。
Next, the graphic generation process will be explained according to the flowchart shown in FIG.

まず前提として、ビットマツプメモリはCRTデイスプ
レィ13の表示画面あるいはプリンタ15の1ページに
対応した領域を有し、夫々は同じ座標系(X、Y)が設
定されている。例えば、凸凹角形についてみると、第4
図に示すように、外形について頂点AO(XAo、 Y
AO) 。
First, the bitmap memory has an area corresponding to the display screen of the CRT display 13 or one page of the printer 15, and the same coordinate system (X, Y) is set in each area. For example, if we look at the convex and concave polygons, the fourth
As shown in the figure, the vertices AO (XAo, Y
A.O.).

AI  (XAI、YAI)、A2  (XA2.YA
2)、A3(XA3. YA3) 、内形について頂点
BO(XBO。
AI (XAI, YAI), A2 (XA2.YA
2), A3 (XA3. YA3), vertex BO (XBO.

YBo)、  Bl  (XB1.  YB1)、  
B2  (XB2.  YB2)83  (XB3. 
YB3)を当該座標系(X、Y)にて指定することによ
り、対象となる四角形の輪郭、即ち、外形線LO(AO
→A1→A2→A3→Ao)及び内形線Li  (BO
→B1→B2→B3→Bo)が特定される。なお、この
各頂点の指定は、スキャナーで読取った図形(四角形)
についてその表示位置を指定することによってなされる
場合、また、直接キーボードにより行なわれる場合等が
ある。
YBo), Bl (XB1. YB1),
B2 (XB2. YB2)83 (XB3.
By specifying YB3) in the coordinate system (X, Y), the outline of the target rectangle, that is, the outline line LO(AO
→A1→A2→A3→Ao) and internal line Li (BO
→B1→B2→B3→Bo) is specified. The designation of each vertex is based on the shape (rectangle) read by the scanner.
In some cases, this is done by specifying the display position of the item, and in other cases, it is done directly by using the keyboard.

上記のような外形線LO及び内形線1iにて特定される
四角形を対象とする場合、外形の各頂点座標に基づいて
外形線1oの走査ライン(X軸と平行)配列方向(Y軸
方向)での最上位点AO及び最下位点A2が特定される
と共に、内形の各頂点座標に基づいて内形線1−iの走
査ライン配列方向での最上位点BO及び最下位点B2が
特定される。そして、走査ライン配列方向(Y)につい
て、上記外形上位点AOと内形上位点BOとの間の第1
領域El(YAo≦Y<YBO)と、内形上位点BOと
内形下位点B2との間の第2領域E2(YBo≦Y≦Y
B2)と、内形下位点B2と外形下位点A2との間の第
3領域E3  (YB2<y≦YA2)が設定される。
When targeting a rectangle specified by the outer line LO and inner line 1i as described above, the scanning line (parallel to the X axis) arrangement direction (Y axis direction) of the outer line 1o is ) are specified, and the highest point BO and lowest point B2 in the scanning line arrangement direction of the internal shape line 1-i are determined based on the coordinates of each vertex of the internal shape. be identified. Then, in the scanning line arrangement direction (Y), the first point between the outer shape upper point AO and the inner shape upper point BO is
The area El (YAo≦Y<YBO) and the second area E2 (YBo≦Y≦Y) between the inner shape upper point BO and the inner shape lower point B2
B2) and a third area E3 (YB2<y≦YA2) between the inner shape lower point B2 and the outer shape lower point A2 is set.

この状態において、X軸に平行な走査ラインXNが上記
外形上位点AOに位置づけられ、この位置から走査ライ
ンXNを1ドツトずつY方向にずらしていく。その過程
で、走査ラインXNが上記第1領域E1に位置するとき
(■)、外形線LOと走査ラインXNとの交点X1 、
 X2を求める。具体的には、頂点Ao  (X^O,
YAO)と頂点AI  (XAI、 XA1)とを結ぶ
直線と走査ラインXNとの交点X1を演算し、頂点AO
(XAO。
In this state, the scanning line XN parallel to the X-axis is positioned at the upper point AO of the outer shape, and from this position the scanning line XN is shifted one dot at a time in the Y direction. In the process, when the scanning line XN is located in the first area E1 (■), the intersection X1 of the outline line LO and the scanning line XN,
Find X2. Specifically, the vertex Ao (X^O,
YAO) and the vertex AI (XAI, XA1) The intersection point X1 of the straight line connecting the scanning line
(XAO.

YAo)と頂点A3  (XA3. YA3)とを結ぶ
直線と走査ラインXNとの交点×2を演算する。そして
、ビットマツプメモリの各走査ラインXN上において上
記交点X1 、X2との間のビットを1″に書換える。
YAo) and the vertex A3 (XA3.YA3) and the intersection of the scanning line XN x 2 is calculated. Then, on each scanning line XN of the bitmap memory, the bit between the intersections X1 and X2 is rewritten to 1''.

この第1領域E1での処理により、YAo≦Y < Y
Boの範囲にお1プる外形線LOの内側のビットが全て
“1”になる。
Through the processing in the first area E1, YAo≦Y<Y
All the bits inside the outline line LO that fall within the range of Bo become "1".

次に、走査ラインXNが第2領域E2に位置するときに
は(■)、外形線LOと走査ラインXNとの交点X1 
、X4及び内形線liと走査ラインXNとの交点X2 
、X3を求める。具体的には、外形線LOについて、頂
点Ao  (XAo、 YAo)と頂点AI  (XA
I、 YA1)とを結ぶ直線または頂点AI  (XA
I、 YAI) 、!:頂点A2  (XA2. YA
2)とを結ぶ直線と走査ラインXNとの交点×1を演算
すると共に、頂点AO(XAo、 YAo)と頂点A3
  (XA3. YA3)とを結ぶ直線または頂点A3
(XA3. YA3)と頂点A2  (XA2. YA
2)とを結ぶ直線と走査ラインXNとの交点×4を演算
する。また、内形線1−iについて、頂点BO(X80
゜YBO)と頂点81  (XB1. YBI)とを結
ぶ直線まタハII点B1(XB1. YB1) ト頂点
82  (XB2゜YB2)とを結ぶ直線と走査ライン
XNとの交点X2を演算すると共に、頂点Bo  (X
80. YBO)と頂点83  (XB3. YB3)
とを結ぶ直線または頂点83  (XB3. YB3)
 、!:頂点82  (XB2. YB2)とを結ぶ直
線と走査ラインXNとの交点×3を演算する。そして、
各走査ラインXN上において上記外形線1oとの交点X
1と内形線1−iとの交点×2との間のビットを1″に
書換えると共に、内形線Liどの他の交点×3と外形1
1LOどの他の交点×4との間のビットを1″に書換え
る。この第2領域E2での処理により、YBO≦Y≦Y
B2の範囲における外形線LOと内形線1iとの間に位
置するビットが全て“1゛になる。
Next, when the scanning line XN is located in the second area E2 (■), the intersection X1 of the outline line LO and the scanning line XN
, X4 and the intersection point X2 of the internal line li and the scanning line XN
, find X3. Specifically, regarding the outline LO, the vertex Ao (XAo, YAo) and the vertex AI (XA
I, YA1) or the vertex AI (XA
I, YAI),! : Vertex A2 (XA2. YA
2) Calculate the intersection x 1 between the straight line connecting the lines and the scanning line
(XA3. YA3) or the vertex A3
(XA3. YA3) and vertex A2 (XA2. YA
2) Calculate the intersection point x4 between the straight line connecting the lines and the scanning line XN. Also, regarding the inner line 1-i, the vertex BO (X80
Calculate the intersection point X2 between the scanning line Vertex Bo (X
80. YBO) and vertex 83 (XB3. YB3)
Straight line or vertex 83 connecting (XB3. YB3)
,! : Calculate the intersection of the straight line connecting the vertex 82 (XB2. YB2) and the scanning line XN x 3. and,
Intersection X with the above outline line 1o on each scanning line XN
1 and the intersection x2 of the inner line 1-i is rewritten to 1'', and the bit between the other intersection x3 of the inner line Li etc. and the outer line 1
The bit between 1LO and other intersection points ×4 is rewritten to 1''. Through the processing in the second area E2, YBO≦Y≦Y
All bits located between the outer line LO and the inner line 1i in the range B2 become "1".

更に、走査ラインXNが第3領域E3にあるときは、上
記第1領域E1の場合と同様の処理がなされ、外形線L
Oと走査ラインXNとの交点間のビットが“1″に書換
えらられる。そして、’y’B2〈Y≦YA2の範囲に
おける外形線LOの内側のビットが全て“1″になる。
Furthermore, when the scanning line XN is in the third area E3, the same process as in the first area E1 is performed, and the outline line
The bit between the intersections of O and scanning line XN is rewritten to "1". Then, all bits inside the outline line LO in the range 'y'B2<Y≦YA2 become "1".

上記のように第1領域E1から第3領域E3の終端(頂
点A2)まで走査ラインXNの1ドツト毎の移動が終了
すると、当該四角形の発生処理が終了する。この処理の
終了時点でRAM16に構成されるビットマツプメモリ
上には第4図に示す外形線LOと内形線1−iで囲まれ
る領域が全て1″となった太線状の凸四角形が展開され
る。
As described above, when the scan line XN is moved dot by dot from the first area E1 to the end (apex A2) of the third area E3, the process of generating the quadrilateral ends. At the end of this process, a thick line-shaped convex rectangle in which the area surrounded by the outer line LO and inner line 1-i is all 1'' is developed on the bitmap memory configured in the RAM 16 as shown in Fig. 4. be done.

このビットマツプメモリ上に展開された凸四角形はCP
U 10の指令に基づいてインタフェース回路18を介
してCRTデイスプレィ13あるいはプリンタ15に供
給され、当該太線状の凸四角形がドツト表示あるいはド
ツト印字される。
The convex rectangle developed on this bitmap memory is CP
Based on the command from U10, the signal is supplied to the CRT display 13 or printer 15 via the interface circuit 18, and the thick convex rectangle is displayed or printed as dots.

上記のように本実施例によれば、1つの走査ラインXN
上のドツト変換処理が凸四角形の左右2辺についての処
理となることから、走査ラインXNをY方向に頂点AO
からA2まで一回だけ移動させる間にビットマツプメモ
リ上には太線状の凸四角形が展開されることになり、よ
り効率的な処理がなされることになる。
As described above, according to this embodiment, one scanning line XN
Since the above dot conversion process is for the left and right sides of the convex quadrilateral, the scanning line
A thick convex rectangle is developed on the bitmap memory while moving only once from A2 to A2, resulting in more efficient processing.

なお、走査ラインの方向はビットマツプメモリ上で任意
に設定することができ、例えば、第4図におけるY方向
(1方向)に設定してもその処理は同様に可能である。
Note that the direction of the scanning line can be arbitrarily set on the bitmap memory; for example, even if it is set in the Y direction (one direction) in FIG. 4, the processing can be performed in the same way.

また、発生されるべき図形が、例えば第5図に示すよう
に、その輪郭線の一部が走査ラインと平行になる場合に
は、最上位点、最下位点は、以上位あるいは最下位に位
置する輪郭線上の任意の点、例えば、その線分の端点(
AO、A3等)等に選定される。
Furthermore, if a part of the outline of the figure to be generated is parallel to the scanning line, as shown in FIG. Any point on the contour line to be located, for example, the endpoint of the line segment (
AO, A3, etc.).

更に、中心座標点と内径、外径等で特定される円につい
ても凸多角形として同様に処理される。
Furthermore, a circle specified by a center coordinate point, an inner diameter, an outer diameter, etc. is similarly processed as a convex polygon.

[発明の効果1 以上説明したように、本発明によれば、所定の第1領域
、第2領域、第3領域に領域区分し、走査ラインを1ビ
ツトずつずらす過程で、走査ラインが第1領域または第
3領域に位置するときに走査ラインと外形線との交点間
をドツト変換し、走査ラインが第2領域に位置するとき
には走査ラインと内外形線との交点間をドツト変換する
ようにしたため、走査ラインを図形領域にて一回移動さ
せるだけで目的とする太線凸多角形のドツト変換が終了
することから、そのドツト変換処理が効率的に行なわれ
る。従って、太線凸多角形の発生に係る処理のより高速
化が図れる。
[Effect of the Invention 1] As explained above, according to the present invention, in the process of dividing the area into a predetermined first area, second area, and third area and shifting the scanning line one bit at a time, the scanning line When the scanning line is located in the area or the third area, dot conversion is performed between the intersections of the scanning line and the outer contour line, and when the scanning line is located in the second area, the intersection between the scanning line and the inner and outer contour lines is subjected to dot conversion. Therefore, the dot conversion of the target thick line convex polygon is completed by moving the scanning line once in the graphic area, so that the dot conversion process is efficiently performed. Therefore, it is possible to further speed up the processing related to the generation of thick line convex polygons.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図は本発明の構成を示す図、第2図は本発明に係る
凸多角形の発生方式が適用される画像処理装置の基本構
成例を示すブロック図、第3図は太線凸四角形の発生処
理の一例を示すフローチャート、第4図及び第5図は発
生させるべき太線凸四角形の輪郭を示す図、第6図は外
形線と内形線にて特定される太線凸多角形の一例を示す
図である。 El・・・第1領域 E2・・・第2領域 E3・・・第3領域 特許出願人 株式会社エルエスアイシステムズ代 理 
人 弁理士  中村 智廣 (外3名)[符号の説明] 10・・・CPU 12・・・グラフィックプロセッサ 13・・・CRTデイスプレィ 14・・・ROM 15・・・プリンタ 16・・・RAM 17・・・入力装置 18・・・インタフェース回路 XN・・・走査ライン
FIG. 1 is a diagram showing the configuration of the present invention, FIG. 2 is a block diagram showing an example of the basic configuration of an image processing device to which the convex polygon generation method according to the present invention is applied, and FIG. A flowchart showing an example of the generation process, FIGS. 4 and 5 are diagrams showing the outline of a thick-line convex quadrilateral to be generated, and FIG. 6 is an example of a thick-line convex polygon specified by an outer line and an inner line. FIG. El...First area E2...Second area E3...Third area Patent applicant LSI Systems Co., Ltd. Agent
Person Patent attorney Tomohiro Nakamura (3 others) [Explanation of symbols] 10... CPU 12... Graphic processor 13... CRT display 14... ROM 15... Printer 16... RAM 17. ...Input device 18...Interface circuit XN...Scanning line

Claims (1)

【特許請求の範囲】 外形情報と内形情報にて特定される太線凸多角形をドッ
トイメージが展開されるメモリ上にて発生させる太線凸
多角形発生方式であつて、 外形情報に基づいて外形線(Lo)の走査ライン配列方
向(D)での最上位点(Pou)及び最下位点(Pod
)を定めると共に、内形情報に基づいて内形線(Li)
の走査ライン配列方向(D)での最上位点(Piu)及
び最下位点(Pid)を定め、 メモリを走査ライン配列方向(D)について、外形上位
点(Pou)と内形上位点(Piu)との間の第1領域
(E1)と、内形上位点(Piu)と内形下位点(Pi
d)との間の第2領域(E2)と、内形下位点(Pid
)と外形下位点(Pod)との間の第3領域(E3)と
に領域区分し、 メモリ上において走査ライン(XN)を1ドットずつず
らしていく過程で、 走査ライン(XN)が第1領域(E1)または第3領域
(E3)に位置するときに走査ライン(XN)と外形線
(Lo)との交点(Po11)(Po12)、(Po3
1)(Po32)を求めて走査ライン(XN)の当該交
点間(Po11、Po12)、(Po31、Po32)
をドット変換し、 走査ライン(XN)が第2領域(E2)に位置するとき
に走査ライン(XN)と内外形線(Lo)(Li)との
交点(Po21)(Po22)(Pi21)(Pi22
)を求めて走査ライン(XN)の外形内形交点間(Po
12、Pi12)(Pi22、Po22)をドット変換
するようにしたことを特徴とする太線凸多角形の発生方
式。
[Scope of Claims] A thick line convex polygon generation method that generates a thick line convex polygon specified by outer shape information and inner shape information on a memory in which a dot image is developed, the outer shape being determined based on the outer shape information. The highest point (Pou) and lowest point (Pod) of the line (Lo) in the scanning line arrangement direction (D)
), and also determine the inner line (Li) based on the inner shape information.
The highest point (Piu) and lowest point (Pid) in the scanning line arrangement direction (D) are determined, and the memory is stored in the outer shape upper point (Pou) and inner shape upper point (Puu) in the scanning line arrangement direction (D). ), and the inner shape upper point (Piu) and the inner shape lower point (Piu).
d) and the inner shape lower point (Pid
) and the third area (E3) between the outer lower point (Pod), and in the process of shifting the scanning line (XN) one dot at a time in memory, the first scanning line (XN) When located in the area (E1) or the third area (E3), the intersections (Po11) (Po12), (Po3) of the scanning line (XN) and the outline line (Lo)
1) Find (Po32) and calculate between the corresponding intersections of the scanning line (XN) (Po11, Po12), (Po31, Po32)
When the scanning line (XN) is located in the second area (E2), the intersection points (Po21) (Po22) (Pi21) ( Pi22
) between the outer and inner shape intersections of the scanning line (XN)
12, Pi12) (Pi22, Po22) is subjected to dot conversion.
JP24423788A 1988-09-30 1988-09-30 System for generating boldface projecting polygon Pending JPH0293774A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP24423788A JPH0293774A (en) 1988-09-30 1988-09-30 System for generating boldface projecting polygon

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP24423788A JPH0293774A (en) 1988-09-30 1988-09-30 System for generating boldface projecting polygon

Publications (1)

Publication Number Publication Date
JPH0293774A true JPH0293774A (en) 1990-04-04

Family

ID=17115780

Family Applications (1)

Application Number Title Priority Date Filing Date
JP24423788A Pending JPH0293774A (en) 1988-09-30 1988-09-30 System for generating boldface projecting polygon

Country Status (1)

Country Link
JP (1) JPH0293774A (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS60173676A (en) * 1984-02-14 1985-09-07 Nippon Telegr & Teleph Corp <Ntt> Diagram smear-out system

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS60173676A (en) * 1984-02-14 1985-09-07 Nippon Telegr & Teleph Corp <Ntt> Diagram smear-out system

Similar Documents

Publication Publication Date Title
US4829456A (en) Three-dimensional surface display method
KR970008546B1 (en) Character or graphic processing method
JP2634851B2 (en) Image processing device
JPH0293774A (en) System for generating boldface projecting polygon
JP2571662B2 (en) Line drawing method and apparatus
JPS63305478A (en) Pattern information restoring device
JPS63208898A (en) Character processor
JPH0259871A (en) Image processor
JPH0350686A (en) Graphic processing system
JPH01250178A (en) Device and method for raster operation
JP2782752B2 (en) Character pattern output device
JP2782904B2 (en) Polygon fill method
JP2700124B2 (en) Graphic display method and apparatus for implementing the same
JP3099556B2 (en) Data converter
JP2000298729A (en) Two-dimensional image generation device
JPH0371377A (en) Image processing method
JP2666552B2 (en) Line width control method for outline characters
JP3681240B2 (en) Three-dimensional shape display method and three-dimensional CAD system using the method
JPH04153786A (en) Quadrilateral area filling device
JPH0383183A (en) Broken line drawing system
JP2985260B2 (en) Character processor
JPS62243076A (en) Enlarging/reducing method for character font
JPH07152920A (en) Graphic processor and its method
JPH0519737A (en) Enlargement processing method for straight-line outline character
JPH03288894A (en) Document preparing device