JPS63196987A - Graphic processor - Google Patents

Graphic processor

Info

Publication number
JPS63196987A
JPS63196987A JP2904387A JP2904387A JPS63196987A JP S63196987 A JPS63196987 A JP S63196987A JP 2904387 A JP2904387 A JP 2904387A JP 2904387 A JP2904387 A JP 2904387A JP S63196987 A JPS63196987 A JP S63196987A
Authority
JP
Japan
Prior art keywords
border line
dot
picture drawing
graphic
dot plane
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
JP2904387A
Other languages
Japanese (ja)
Inventor
Terushi Shirasaka
白坂 昭史
Kensaku Tanaka
研策 田中
Masaki Hamada
浜田 正基
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Canon Inc
Original Assignee
Canon Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Canon Inc filed Critical Canon Inc
Priority to JP2904387A priority Critical patent/JPS63196987A/en
Priority to US07/148,712 priority patent/US4837847A/en
Publication of JPS63196987A publication Critical patent/JPS63196987A/en
Priority to US08/347,172 priority patent/US5452372A/en
Pending legal-status Critical Current

Links

Landscapes

  • Image Generation (AREA)

Abstract

PURPOSE:To artificially prevent a collapse of a reduced graphic image by a simple control, and to hold an output appearance quality by providing a border line correcting means re-drawing a picture by the corresponding pattern in accordance with an inclination angle of a border line of a graphic image. CONSTITUTION:At the time of bringing a border line graphic to painted-out and reduced picture drawing on a dot plane of an image memory 5 by reduced picture drawing of a border line and painting-out of the inside of the border line, first of all, a contour is brought to reduced picture drawing on the dot plane by a sequence of points for approximating a straight line and a curve in accordance with a coordinate value of a given border line. In this case, to a dot plane A, a border line of a contour whose picture drawing direction if 0 deg.<=phi<180 deg. is brought to reduced picture drawing by a dot pattern, and to a dot plane B, a border line whose picture drawing direction is 180 deg.<=phi<360 deg. is brought to picture drawing by a dot pattern C. Subsequently, to the dot plane, a border line of a graphic is brought to picture drawing, and a painting- out processing is executed. Next, to the dot plane B, A is added by OR, and to the dot plane C, B is added by exclusive OR, and a graphic which is corrected a contour is obtained.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は図形処理装置に関し、特に、輪郭情報が与えら
れる図形画像(以下、輪郭線画像という)を塗りつぶし
展開する際の形状誤差補正に関するものである。
DETAILED DESCRIPTION OF THE INVENTION [Industrial Application Field] The present invention relates to a graphic processing device, and in particular, to shape error correction when filling and developing a graphic image to which contour information is given (hereinafter referred to as a contour image). It is.

〔従来の技術〕[Conventional technology]

従来の図形処理装置において表示装置等に出力する際、
輪郭線画像を画像メモリのドットプレーン上に縮小描画
するが、実数値で与えられる輪郭線座標値をドットプレ
ーン上の精度に従った整数の座標値に単純に縮小変換し
て描画を行うようにしていた。
When outputting to a display device etc. in a conventional graphic processing device,
The outline image is reduced and drawn on the dot plane of the image memory, but the outline coordinate values given as real values are simply reduced and converted to integer coordinate values according to the precision on the dot plane. was.

〔発明が解決しようとしている問題点〕このため、例え
ば第11図(a)のような図形画像を縮小すると、輪郭
線同志が密接している部分では、縮尺が小さくなると空
白部分がな(なり、図形画像のつぶれが生じる場合があ
り問題となっていた。
[Problem to be solved by the invention] For this reason, when a graphic image such as that shown in FIG. This has been a problem as the graphic image may become distorted.

〔問題点を解決するための手段(及び作用)〕本発明に
よれば、任意図形の輪郭線を与える輪郭線座標値入力手
段と、前記座標値に従って図形輪郭線を記憶手段のドッ
トプレーン上に縮小描画する縮小描画手段と、前記図形
輪郭線内部を塗りつぶす図形塗りつぶし手段と、前記輪
郭線をその傾き角度によって対応したパターンで再描画
する輪郭線補正手段によって構成された図形処理装置で
あるから、縮小図形画像のつぶれを疑似的に防ぐように
したものである。
[Means for Solving the Problems (and Effects)] According to the present invention, there is provided a contour coordinate value input means for inputting an outline of an arbitrary figure, and a means for inputting a figure outline on a dot plane of a storage means according to the coordinate values. The figure processing device is constituted by a reduction drawing means for drawing a reduced drawing, a figure filling means for filling in the inside of the figure outline, and an outline correction means for redrawing the outline in a pattern corresponding to its inclination angle, This is designed to artificially prevent collapse of the reduced graphic image.

〔実施例〕〔Example〕

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

第1図は本発明の図形処理装置の構成を示すもので、l
はこの図形処理装置全体を制御する主制御装置MPUで
あり、後述する第2図のフローチャートに従って輪郭線
補正処理を行う。このMPUIにはフロッピーディスク
(FD)、ハードディスク(HD)等の外部記憶装置が
接続されている。2は上記MPUの各種制御プログラム
、そして第2図に示す輪郭線補正処理プログラムが記憶
されているROM(ReadOnly  Memory
)で、3は外部からパスライン4を介して入力される文
字データや、その他各種データを一時記憶するRAM 
(Random  AccessM e m o r 
y )で、5は図形画像データを記憶する画像メモリ(
IMEM)であり、上記RAM3及びIMEM5上では
、後述するドットプレーンを展開することが可能である
。6はビデオメモリ(VRAM)であり、CRT表示部
7に表示すべきデータをビットマツプ上に展開している
。例えば文字データであれば、そのコードに対応した文
字キャラクタがVRAM上に展開されており、MPUI
の制御によりVRAM6の表示エリアに直接カーソルを
発生し表示が可能である。8はBMU (Bit  M
anipulation  Unit)で、RAM3.
IMEM5.VRAM6やプリンター等の入出力機器間
のデータ転送をMPU1を介さずに行えるDMA (D
irect  Memory  Access)機能が
ある。9はプリンターで、lOはプリンター9とパスラ
イン4を接続するインターフェース、11は各種データ
やコマンドを入力できるキーボードである。
FIG. 1 shows the configuration of a graphic processing device according to the present invention.
2 is a main control unit MPU which controls the entire graphic processing apparatus, and performs contour line correction processing according to the flowchart of FIG. 2, which will be described later. An external storage device such as a floppy disk (FD) or a hard disk (HD) is connected to this MPUI. Reference numeral 2 denotes a ROM (Read Only Memory) in which various control programs of the MPU described above and an outline correction processing program shown in FIG. 2 are stored.
), and 3 is a RAM that temporarily stores character data input from the outside via pass line 4 and other various data.
(Random AccessMemor
y ), and 5 is an image memory (
IMEM), and it is possible to develop dot planes, which will be described later, on the RAM 3 and IMEM 5. A video memory (VRAM) 6 develops data to be displayed on the CRT display section 7 on a bitmap. For example, if it is character data, the characters corresponding to the code are developed on VRAM, and the MPUI
It is possible to directly generate and display a cursor in the display area of the VRAM 6 under the control of. 8 is BMU (Bit M
animation unit), RAM3.
IMEM5. DMA (D
direct Memory Access) function. 9 is a printer, IO is an interface for connecting the printer 9 and the pass line 4, and 11 is a keyboard through which various data and commands can be input.

次に、上記のように構成された図形処理装置の輪郭線補
正処理について説明する。
Next, the outline correction process of the graphic processing apparatus configured as described above will be explained.

画像メモリのドットプレーン上に、例えば第3図のよう
な輪郭線図形を輪郭線の縮小描画と輪郭線内部の塗りつ
ぶしによって塗りつぶし縮小描画する場合、第2図のア
ルゴリズムに従って図形の縮小描画を行う。まず与えら
れた輪郭線の座標値に従って直線や曲線を近似する点列
で輪郭をドツトプレーン上に縮小描画するが、ドットプ
レーンAには描画方向が00≦φ<180° (ここで
αは初期設定値でこの実施例ではOと設定する。)の輪
郭線を第7図のドツトパターンで縮小描画しくステップ
Sl、S2.S3)、ドットプレーンBには描画方向が
180°≦φ<360°の輪郭線を第8図のドツトパタ
ーンで描画する(ステップ31.  S2. 34)こ
とによりドットプレーンAは第5図のように、ドットプ
レーンBは第6図のようにする。次に、ドットプレーン
Cに図形の輪郭線を描画しドットプレーンCに対して塗
りつぶし処理を行い(ステップS5. S6. S7)
第4図を得る。次にドットプレーンBにドットプレーン
Aを論理和で加え(ステップS8)第9図を得る。次に
塗りつぶされた図形のドットプレーンCにドットプレー
ンBを排他的論理和の演算で加え(ステップS9)、輪
郭を補正した第1O図を得る。この縮小図形画像によれ
ば、従来つぶれていた部分が第8図のようなパターンで
出力されているので、つぶれたように見えないものであ
る。
When a contour figure as shown in FIG. 3 is drawn on a dot plane of the image memory by reducing the outline and filling in the inside of the outline, the figure is drawn in a reduced size according to the algorithm shown in FIG. 2. First, the outline is reduced and drawn on the dot plane using a series of points that approximate straight lines and curves according to the coordinate values of the given outline, but the drawing direction on dot plane A is 00≦φ<180° (here α is the initial Steps Sl, S2. S3) On dot plane B, a contour line with a drawing direction of 180°≦φ<360° is drawn using the dot pattern shown in Fig. 8 (step 31. S2. 34), so that dot plane A becomes as shown in Fig. 5. In addition, the dot plane B is made as shown in FIG. Next, the outline of the figure is drawn on the dot plane C and a filling process is performed on the dot plane C (steps S5, S6, S7).
Figure 4 is obtained. Next, dot plane A is logically added to dot plane B (step S8) to obtain FIG. Next, dot plane B is added to dot plane C of the filled-in figure by an exclusive OR operation (step S9) to obtain FIG. 1O with its contour corrected. According to this reduced graphic image, the conventionally crushed portions are output in a pattern as shown in FIG. 8, so that they do not look crushed.

ここで、図形画像の縮小処理、塗りつぶし処理は、従来
から周知であるので、ここではその詳細は省略する。
Here, since the graphic image reduction processing and filling processing are conventionally well known, the details thereof will be omitted here.

また、第7図と第8図で示したドツトパターンは出力装
置の解像度や出力点の太さなどによった適宜のパターン
を用いることができる。更に、一旦塗りつぶした図形画
像上に適宜な破線パターンで輪郭線を上描きする処理を
行ってもよい。
Further, as the dot patterns shown in FIGS. 7 and 8, an appropriate pattern can be used depending on the resolution of the output device, the thickness of the output points, etc. Furthermore, a process may be performed in which an appropriate broken line pattern is used to overdraw an outline on the once filled-in graphic image.

又、描画方向によるパターンの切り換えの角度指定は2
種類(0≦φ<180’ 、  180°≦φ<360
°)に限らず自由に設定できることは言うまでもない。
Also, the angle specification for pattern switching based on the drawing direction is 2.
Type (0≦φ<180', 180°≦φ<360
It goes without saying that it can be freely set, not limited to °).

〔発明の効果〕〔Effect of the invention〕

本発明は上記のように図形画像の輪郭線の傾き角度によ
って対応したパターンで再描画する輪郭線補正手段を有
する図形処理装置であるため、簡単な制御で縮小図形画
像の出力品位を保つ効果がある。
As described above, the present invention is a graphic processing device having a contour line correction means that redraws a pattern corresponding to the inclination angle of the contour line of a graphic image, so that it is possible to maintain the output quality of a reduced graphic image with simple control. be.

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

第1図は本発明の図形処理装置の構成を示すブロック図
、 第2図は輪郭線補正処理アルゴリズムを示すフローチャ
ート図、 第3図は補正を行う輪郭線画像の一例を示す図、第4図
は補正を行う図形画像の一例、 第5図は第7図のパターンで描画した輪郭線を示す図、 第6図は第8図のパターンで描画した輪郭線を示す図、 第7図は輪郭線補正用パターンの一例を示す図、第8図
は輪郭線補正用パターンの一例を示す図、第9図は補正
輪郭線画像を示す図、 第1O図は輪郭線を補正した図形画像を示す図、第11
図(a)、(b)は従来の縮小図形描画を説明するため
の図である。 1 ・・・・・・・・・・・・・・・・・・・・・・・
・・・・・・・・・・・・・・・・・・・・・・・・・
・・・・・・・・・・・・・・・・・・・・・・・・・
・CPU2・・・・・・・・・・・・・・・・・・・・
・・・・・・・・・・・・・・・・・・・・・・・・・
・・・・・・・・・・・・・・・・・・・・・・・・・
・・・ROM3・・・・・・・・・・・・・・・・・・
・・・・・・・・・・・・・・・・・・・・・・・・・
・・・・・・・・・・・・・・・・・・・・・・・・・
・・・・・RAM5・・・・・・・・・・・・・・・・
・・・・・・・・・・・・・・・・・・・・・・・・・
・・・・・・・・・・・・・・・・・・・・・・・・・
・・・・IMEM7・・・・・・・・・・・・・・・・
・・・・・・・・・・・・・・・・・・・・・・・・・
・・・・・・・・・・・・・・・・・・・・・・・・・
・・・・・・・・CRT8・・・・・・・・・・・・・
・・・・・・・・・・・・・・・・・・・・・・・・・
・・・・・・・・・・・・・・・・・・・・・・・・・
・・・・・・・・・・BMU9・・・・・・・・・・・
・・・・・・・・・・・・・・・・・・・・・・・・・
・・・・・・・・・・・・・・・・・・・・・・・・・
・・プリンター11 ・・・・・・・・・・・・・・・
・・・・・・・・・・・・・・・・・・・・・・・・・
・・・・・・・・・・・・・・・・・・・・キーボード
躬80 躬IO図 親1
FIG. 1 is a block diagram showing the configuration of the graphic processing device of the present invention, FIG. 2 is a flowchart showing the contour correction processing algorithm, FIG. 3 is a diagram showing an example of a contour image to be corrected, and FIG. 4 is an example of a figure image to be corrected; Figure 5 is a diagram showing a contour line drawn using the pattern in Figure 7; Figure 6 is a diagram showing a contour line drawn using a pattern in Figure 8; Figure 7 is a diagram showing a contour line. FIG. 8 is a diagram showing an example of a line correction pattern, FIG. 9 is a diagram showing a corrected contour image, and FIG. 1O is a figure image with contours corrected. Figure, 11th
Figures (a) and (b) are diagrams for explaining conventional reduced figure drawing. 1 ・・・・・・・・・・・・・・・・・・・・・・・・
・・・・・・・・・・・・・・・・・・・・・・・・
・・・・・・・・・・・・・・・・・・・・・・・・
・CPU2・・・・・・・・・・・・・・・・・・
・・・・・・・・・・・・・・・・・・・・・・・・
・・・・・・・・・・・・・・・・・・・・・・・・
・・・ROM3・・・・・・・・・・・・・・・・・・
・・・・・・・・・・・・・・・・・・・・・・・・
・・・・・・・・・・・・・・・・・・・・・・・・
・・・・・・RAM5・・・・・・・・・・・・・・・
・・・・・・・・・・・・・・・・・・・・・・・・
・・・・・・・・・・・・・・・・・・・・・・・・
・・・・IMEM7・・・・・・・・・・・・・・・・
・・・・・・・・・・・・・・・・・・・・・・・・
・・・・・・・・・・・・・・・・・・・・・・・・
・・・・・・・・・CRT8・・・・・・・・・・・・・・・
・・・・・・・・・・・・・・・・・・・・・・・・
・・・・・・・・・・・・・・・・・・・・・・・・
・・・・・・・・・BMU9・・・・・・・・・・・・
・・・・・・・・・・・・・・・・・・・・・・・・
・・・・・・・・・・・・・・・・・・・・・・・・
・・Printer 11 ・・・・・・・・・・・・・・
・・・・・・・・・・・・・・・・・・・・・・・・
・・・・・・・・・・・・・・・・・・ Keyboard 80 IO Diagram Parent 1

Claims (1)

【特許請求の範囲】[Claims] 図形画像の輪郭線を与える輪郭線座標値入力手段と、前
記座標値に従って図形輪郭線を記憶手段のドットプレー
ン上に縮小描画する縮小描画手段と、前記図形輪郭線内
部を塗りつぶす図形塗りつぶし手段と、前記輪郭線をそ
の傾き角度によって対応したパターンで再描画する輪郭
線補正手段によって構成された図形処理装置。
a contour coordinate value input means for providing an outline of a figure image; a reduction drawing means for reducing and drawing the figure outline on a dot plane of a storage means according to the coordinate values; a figure filling means for filling the inside of the figure outline; A graphic processing device comprising a contour line correction means for redrawing the contour line in a pattern corresponding to its inclination angle.
JP2904387A 1987-02-03 1987-02-10 Graphic processor Pending JPS63196987A (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
JP2904387A JPS63196987A (en) 1987-02-10 1987-02-10 Graphic processor
US07/148,712 US4837847A (en) 1987-02-03 1988-01-26 Image processing apparatus
US08/347,172 US5452372A (en) 1987-02-03 1994-11-22 Image processing apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2904387A JPS63196987A (en) 1987-02-10 1987-02-10 Graphic processor

Publications (1)

Publication Number Publication Date
JPS63196987A true JPS63196987A (en) 1988-08-15

Family

ID=12265365

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2904387A Pending JPS63196987A (en) 1987-02-03 1987-02-10 Graphic processor

Country Status (1)

Country Link
JP (1) JPS63196987A (en)

Similar Documents

Publication Publication Date Title
US5524198A (en) Character or graphic processing method and apparatus
JP2876942B2 (en) Data converter
JP2755789B2 (en) Character font memory and character pattern generator using the character font memory
JP2634851B2 (en) Image processing device
JPH03119387A (en) Method and apparatus for forming contour of digital type surface
JPS63196987A (en) Graphic processor
JP3129717B2 (en) Image processing apparatus and image processing method
JPS63191284A (en) Pattern processor
JP2791014B2 (en) Character processor
JPH0344766A (en) Information display device
JP2785929B2 (en) Character processor
JPH0580741A (en) System and device for character font generation
JP3040624B2 (en) Pattern generator
JPH04104296A (en) Character/graphic plotter
JP4080470B2 (en) Character pattern generator
JPH02130690A (en) Graphic processor
JP2633566B2 (en) Image processing method
JP3055306B2 (en) Data output device
JPH06110444A (en) Character processor and character output method
JPS63204379A (en) Graphic processor
JPH0950272A (en) Method and device for outline font generation
JPH09138679A (en) Data processor
JPH02158363A (en) Character generator
JPH09146523A (en) Character generating device
JPH0424689A (en) Image processor