JPH03217987A - Drawing device - Google Patents
Drawing deviceInfo
- Publication number
- JPH03217987A JPH03217987A JP1439890A JP1439890A JPH03217987A JP H03217987 A JPH03217987 A JP H03217987A JP 1439890 A JP1439890 A JP 1439890A JP 1439890 A JP1439890 A JP 1439890A JP H03217987 A JPH03217987 A JP H03217987A
- Authority
- JP
- Japan
- Prior art keywords
- pattern
- image memory
- coordinates
- coordinate
- generates
- 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
- Image Generation (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 drawing device that draws graphic information by writing a drawing pattern generated based on drawing coordinate values into an image memory.
〔従来の技術1
第5図は従来の描画装置の構成を説明するブロック図で
あり、1が描画装置で、ホストプロセッサ2より与えら
れる描画命令等に基づいて描画情報を生成し、画像メモ
リ3に描画情報を書き込んで行《。[Prior art 1] FIG. 5 is a block diagram illustrating the configuration of a conventional drawing device, in which 1 is a drawing device, which generates drawing information based on drawing commands etc. given from a host processor 2, and stores data in an image memory 3. Write the drawing information to the line 《.
描画装置1は描画座標発生器4,ホストプロセッサイン
タフェース5,画像メモリ制御器6,パターンレジスタ
7等から構成されている。The drawing device 1 includes a drawing coordinate generator 4, a host processor interface 5, an image memory controller 6, a pattern register 7, and the like.
次に動作について説明する。Next, the operation will be explained.
描画装置1はホストプロセッサ2の描画命令を受けて画
像メモリ3に点,線等を描画する。画像メモリ3はその
内容が、第6図に示すようにX座標,Y座標からなる二
次元平面に対応しており、描画は描画しようとする点の
X座標,Y座標に相当するアドレスの内容を書き換える
ことによって行われる。The drawing device 1 receives drawing commands from the host processor 2 and draws points, lines, etc. in the image memory 3. The contents of the image memory 3 correspond to a two-dimensional plane consisting of X and Y coordinates as shown in Fig. 6, and drawing is performed using the contents of the address corresponding to the X and Y coordinates of the point to be drawn. This is done by rewriting .
次に、描画装置1内部の動作について説明する。Next, the internal operation of the drawing device 1 will be explained.
ホストプロセッサインタフェース5は、ホストプロセッ
サ2から描画命令を受け取り、描画座標,描画図形等描
画に必要な情報を描画座標発生器4,画像メモリ制御器
6に与える。描画座標発生器4は受け取った描画情報に
応じて逐次その図形の座標を発生する。例えば第6図の
場合には、図中の黒丸「●」のX座標,Y座標を順に発
生するわけである。描画メモリ制御器6は発生したX座
標,Y座標を受け取り、それらに対応する画像メモリ3
のアドレスを計算し、その内容を書き換える。この結果
、第6図のような図形〔例えば線)が描画されることに
なる。The host processor interface 5 receives a drawing command from the host processor 2 and provides information necessary for drawing, such as drawing coordinates and figures to be drawn, to the drawing coordinate generator 4 and the image memory controller 6. The drawing coordinate generator 4 sequentially generates the coordinates of the figure according to the received drawing information. For example, in the case of FIG. 6, the X and Y coordinates of the black circle "●" in the diagram are sequentially generated. The drawing memory controller 6 receives the generated X and Y coordinates and stores them in the image memory 3 corresponding to them.
Calculate the address of and rewrite its contents. As a result, a figure (for example, a line) as shown in FIG. 6 is drawn.
更に、第5図に示した描画装置1は、第6図のように太
さがrlJO線だけではなく、第7図(a)に示すよう
に一定の太さを持つ線を描画することもできる。これは
、あらかじめホストプロセッサ2によってホストプロセ
ッサインタフェース5を介してパターンレジスタ7に第
7図(b)に示すようにペンパターンPPを記憶してお
く。Furthermore, the drawing device 1 shown in FIG. 5 is capable of drawing not only rlJO lines with a certain thickness as shown in FIG. 6, but also lines with a constant thickness as shown in FIG. 7(a). can. This is done by storing the pen pattern PP in advance in the pattern register 7 by the host processor 2 via the host processor interface 5, as shown in FIG. 7(b).
そして、画像メモリ制御器6が画像メモリ3を書き換え
る時、黒丸のアドレスの内容だけでなく黒丸を中心にペ
ンパターンPPで示される周囲の4点に対応するアドレ
スの内容も書き換えることによって行われる。つまり、
第7図(a)は黒丸を中心にしてペンパターンPPを順
次(例えば計12回)描画することによって得られる図
形である。なお、このような機能をもつ描画装置として
は、日経データプロマイクロブロセサ1989年8月版
、MC5−314−328,MC5−314−329ペ
ージに記載されている日本電気社製μPD72123が
ある。When the image memory controller 6 rewrites the image memory 3, it rewrites not only the contents of the address of the black circle but also the contents of the addresses corresponding to the four points around the black circle indicated by the pen pattern PP. In other words,
FIG. 7(a) shows a figure obtained by sequentially drawing the pen pattern PP (for example, 12 times in total) with a black circle as the center. An example of a drawing device having such a function is the μPD72123 manufactured by NEC Corporation, which is described in Nikkei Data Pro Microprocessor, August 1989 edition, pages MC5-314-328 and MC5-314-329.
〔発明が解決しようとする課題]
従来の描画装置は以上のように構成されており、ペンパ
ターンPPとして1種類しか指定できないので、一定の
太さの線を連続的に描くことはできても、第8図に示す
ように連続的に太さが変化するような線を描くことがで
きず、描画表現能力が低く変化に富んだデザイン性の高
い線を描けない等の問題点等があった。[Problems to be Solved by the Invention] Conventional drawing devices are configured as described above, and only one type of pen pattern PP can be specified, so even if it is possible to draw lines of a constant thickness continuously, , as shown in Figure 8, it is not possible to draw lines whose thickness changes continuously, and there are problems such as the lack of drawing expressive ability and the inability to draw lines with rich variety and high design quality. Ta.
この発明は、上記の問題点を解決するためになされたも
ので,与えられる描画座標に応じて描画する線の太さが
変化する線を発生させることより、太さに応じたペンパ
ターンでグラッフィク情報を描画できる描画装置を得る
ことを目的とする。This invention was made to solve the above problems, and by generating lines whose thickness changes depending on the given drawing coordinates, it is possible to create graphics using a pen pattern according to the thickness. The purpose is to obtain a drawing device that can draw information.
[課題を解決するための手段]
この発明に係る描画装置は、描画すべき点の描画座標値
を発生する描画座標発生手段と、この描画座標発生手段
により発生される描画座標値に基づいて変化するパター
ンを自動発生する描画パターン発生手段と、この描画パ
ターン発生手段が発生したパターンを画像メモリに展開
制御する制御手段とを設けたものである。[Means for Solving the Problems] A drawing device according to the present invention includes a drawing coordinate generating means for generating drawing coordinate values of a point to be drawn, and a drawing coordinate generating means that generates a drawing coordinate value that changes based on the drawing coordinate value generated by the drawing coordinate generating means. The image forming apparatus is provided with a drawing pattern generation means for automatically generating a pattern to be drawn, and a control means for controlling development of the pattern generated by the drawing pattern generation means into an image memory.
この発明においては、描画座標発生手段により描画すべ
き点の描画座標値が発生されると、描画パターン発生手
段が描画座標値に基づいて変化するパターンを自動発生
し、制御手段が生成されたパターンを画像メモリに展開
制御し、パターンが描画座標値に応じて変化させる。In this invention, when the drawing coordinate generation means generates the drawing coordinate value of a point to be drawn, the drawing pattern generation means automatically generates a pattern that changes based on the drawing coordinate value, and the control means generates the generated pattern. is expanded into the image memory, and the pattern changes according to the drawing coordinate values.
[実施例]
第1図はこの発明の一実施例を示す描画装置の構成を説
明するブロック図であり、第5図と同一のものには同じ
符号を付してある。[Embodiment] FIG. 1 is a block diagram illustrating the configuration of a drawing apparatus showing an embodiment of the present invention, and the same parts as in FIG. 5 are given the same reference numerals.
図において、7aはn個のパターンレジスタで構成され
るパターンレジスタ群、8はパターン指定器で、その座
標の線の太さを計算し、その太さに対応するペンパター
ンが記憶されているパターンレジスタを選択する信号を
発生する。なお、パターンレジスタ群7aには第2図(
a)〜(C)に示す、例えばパターン1〜3のように線
の太さに応じたペンパターンがあらかじめ書き換え可能
に記憶されている。In the figure, 7a is a pattern register group consisting of n pattern registers, 8 is a pattern designator, which calculates the thickness of the line at the coordinates, and stores the pen pattern corresponding to the thickness. Generates a signal to select a register. Note that the pattern register group 7a is shown in FIG.
Pen patterns shown in a) to (C), such as patterns 1 to 3, corresponding to the thickness of the line are stored in advance in a rewritable manner.
このように構成された描画装置1において、描画座標発
生手段(この実施例では描画座標発生器4により構成さ
れる)により描画すべき点の描画座標値が発生されると
、描画パターン発生手段(この実施例ではパターンレジ
スタ群7a,パターン指定器8)が描画座標値に基づい
て変化するパターンを自動発生し、制御手段(この実施
例では画像メモリ制御器6により構成される)が生成さ
れたパターンを画像メモリ3に展開制御し、パターンを
描画座標値に応じて変化させる。In the drawing apparatus 1 configured in this way, when the drawing coordinate generation means (consisting of the drawing coordinate generator 4 in this embodiment) generates the drawing coordinate values of the points to be drawn, the drawing pattern generation means ( In this embodiment, the pattern register group 7a and pattern designator 8) automatically generate a pattern that changes based on the drawing coordinate values, and the control means (comprised of the image memory controller 6 in this embodiment) is generated. The pattern is developed and controlled in the image memory 3, and the pattern is changed according to the drawing coordinate values.
具体的には、描画装置1がホストプロセッサ2の描画命
令を受けて画像メモリ3に点,線等を描画することは従
来の描画装置と同様である。Specifically, the drawing device 1 receives a drawing command from the host processor 2 and draws points, lines, etc. in the image memory 3 in the same way as conventional drawing devices.
描画命令が発生されると、ホストプロセッサインタフェ
ース5はホストプロセッサ2から描画命令を受け取り、
描画座標,描画図形,線の太さ等描画に必要な情報を描
画座標発生器4,画像メモリ制御器6,パターン指定器
8に与える。描画座標発生器4は受け取った描画情報に
応じて逐次その図形の座標を発生する。同時にパターン
指定器8で指定されたパターンレジスタ1〜nに記憶さ
れている何れかのパターンを選択して描画メモリ制御器
6に出力する。When a drawing command is generated, the host processor interface 5 receives the drawing command from the host processor 2,
Information necessary for drawing, such as drawing coordinates, drawing figure, line thickness, etc., is given to the drawing coordinate generator 4, the image memory controller 6, and the pattern designator 8. The drawing coordinate generator 4 sequentially generates the coordinates of the figure according to the received drawing information. At the same time, one of the patterns stored in pattern registers 1 to n designated by the pattern designator 8 is selected and output to the drawing memory controller 6.
描画メモリ制御器6は描画座標発生器4で発生した描画
座標を中心にパターンレジスタ群7aの出力するパター
ンを画像メモリ3にライトする。The drawing memory controller 6 writes the pattern output from the pattern register group 7a into the image memory 3, centering on the drawing coordinates generated by the drawing coordinate generator 4.
これを繰り返すことにより、第2図(d)に示すように
座標によって太さの変化する、例えば線画を描くことが
できる。なお、第2図(d)中の黒丸のうち、0〜2は
パターン1を、3〜6はパターン2を、7〜1oはパタ
ーン3を描画して状態に対応する。By repeating this, it is possible to draw, for example, a line drawing whose thickness changes depending on the coordinates, as shown in FIG. 2(d). Of the black circles in FIG. 2(d), patterns 1 to 2 are drawn, patterns 2 are drawn to 3 to 6, and patterns 3 are drawn to 7 to 1o to correspond to the states.
以下、第3図を参照しながらこの発明に係る描画装置に
おける描画処理について説明する。The drawing process in the drawing apparatus according to the present invention will be described below with reference to FIG.
第3図はこの発明に係る描画装置における描画処理手順
の一例を説明するフローチャートである。なお、(1)
〜(7)は各ステップを示す。FIG. 3 is a flowchart illustrating an example of a drawing processing procedure in the drawing apparatus according to the present invention. Furthermore, (1)
~(7) shows each step.
先ず、描画情報が入力されるのを待機し{1)、ホスト
プロセッサインタフェース5が受信した描画情報に応じ
て描画座標発生器4により図形座標が発生されるのを待
機し(2)、発生したら、座標情報を解析して(3)、
その座標の線の太さを計算して対応するペンパターンが
記憶されているパターンレジスタをパターン指定器8が
選択する(4).
次いで、発生パターンを選択し(4)、画像メモリ制御
器6に発生パターンを出力する。これに応じて画像メモ
リ制御器6は座標とパターンが確定されたら(5)、描
画座標を中心としてパターンレジスタ群7aの出力する
パターンを画像メモリ3に書き込む(6)。次いで、図
形座標データ終了を判定し(71 Noならばステッ
プ(3)に戻り、YESならば処理を終了する。First, it waits for drawing information to be input {1), waits for the drawing coordinate generator 4 to generate figure coordinates according to the drawing information received by the host processor interface 5 (2), and when generated, , analyze the coordinate information (3),
The pattern designator 8 calculates the thickness of the line at the coordinates and selects the pattern register in which the corresponding pen pattern is stored (4). Next, a generation pattern is selected (4), and the generation pattern is output to the image memory controller 6. In response to this, when the coordinates and pattern are determined (5), the image memory controller 6 writes the pattern output from the pattern register group 7a around the drawing coordinates into the image memory 3 (6). Next, it is determined whether the graphic coordinate data has ended (71) If NO, the process returns to step (3); if YES, the process ends.
なお、上記実施例では描画パターン発生手段がペンパタ
ーンをあらかじめパターンレジスタに記憶して発生座標
に応じて変化するパターンを発生させる場合について説
明したが、第4図に示すように第1描画座標発生器4a
,第2描画座標発生器9,太さ発生器10を設けて上記
同様のパター発生処理を以下に述べるように実行する構
成であっても良い。これにより、第8図に示すように線
の太さが変化する線等をデザイン性高く描画することが
可能となった。In the above embodiment, a case has been described in which the drawing pattern generating means stores the pen pattern in the pattern register in advance and generates a pattern that changes according to the generated coordinates. However, as shown in FIG. Vessel 4a
, a second drawing coordinate generator 9, and a thickness generator 10 may be provided to perform the same putter generation process as described below. This makes it possible to draw lines whose thickness changes as shown in FIG. 8 with a high design quality.
第4図はこの発明の他の実施例を示す描画装置の構成を
説明するブロック図であり、第1図と同一のものには同
じ符号を付してある。FIG. 4 is a block diagram illustrating the configuration of a drawing apparatus showing another embodiment of the present invention, and the same components as in FIG. 1 are given the same reference numerals.
第1描画座標発生器4aで第1図に示した描画座標発生
器4aと同等の機能処理を実行する。第2描画座標発生
器9は円,楕円,四辺形等の描画アドレスを発生する。The first drawing coordinate generator 4a executes functional processing equivalent to that of the drawing coordinate generator 4a shown in FIG. A second drawing coordinate generator 9 generates drawing addresses for circles, ellipses, quadrilaterals, etc.
先ず、第1描画座標発生器4で黒丸の座標を発生する。First, the first drawing coordinate generator 4 generates the coordinates of a black circle.
同時に太さ発生器10はそのときの線の太さを発生する
。次に、第2描画座標発生器9は黒丸の座標を中心とし
て太さに応じた大きさの円,楕円,四辺形の描画座標を
発生する。描画メモリ制御器6は第2描画座標発生器9
によって発生した座標のアドレスの描画メモリの内容を
書き換える。なお、この時、最後の黒丸以外の点に対応
する円,楕円,四辺形は輪郭のみを描画し、最後の黒丸
についてのみ内部を塗り潰す。At the same time, the thickness generator 10 generates the thickness of the line at that time. Next, the second drawing coordinate generator 9 generates drawing coordinates of a circle, an ellipse, and a quadrilateral whose size corresponds to the thickness with the black circle's coordinates as the center. The drawing memory controller 6 is a second drawing coordinate generator 9
Rewrites the contents of the drawing memory at the coordinate address generated by . At this time, only the outlines of circles, ellipses, and quadrilaterals corresponding to points other than the last black circle are drawn, and only the interior of the last black circle is filled.
〔発明の効果J
以上説明したように、この発明は描画すべき点の描画座
標値を発生する描画座標発生手段と、この描画座標発生
手段により発生される描画座標値に基づいて変化するパ
ターンを自動発生する描画パターン発生手段と、この描
画パターン発生手段が発生したパターンを画像メモリに
展開制御する制御手段とを設けたもので、座標によって
太さの変化する線を容易に描画できる。[Effect of the Invention J As explained above, the present invention includes a drawing coordinate generating means for generating drawing coordinate values of a point to be drawn, and a pattern that changes based on the drawing coordinate values generated by the drawing coordinate generating means. This apparatus is equipped with a drawing pattern generating means that automatically generates a drawing pattern, and a control means for controlling the development of the pattern generated by the drawing pattern generating means in an image memory, so that it is possible to easily draw a line whose thickness changes depending on the coordinates.
従って、太さに応じたペンパターンでグラッフィク情報
をデザイン性高く描画できる等の効果な奏する。Therefore, effects such as being able to draw graphic information with a high design quality using a pen pattern corresponding to the thickness are achieved.
第1図はこの発明の一実施例を示す描画装置の構成を説
明するブロック図、第2図は、第1図に示したパターン
レジスタ群3に記憶されるパターン種を説明する模式図
、第3図はこの発明に係る描画装置における描画処理手
順の一例を説明するフローチャート、第4図はこの発明
の他の実施例を示す描画装置の構成を説明するブロック
図、第5図は従来の描画装置に構成を説明するブロック
図、第6図,第7図は従来の描画装置における線描画状
態を説明する模式図、第8図は太さが変化する線の描画
処理を説明する・模式図である。
図中、1は描画装置、2はホストプロセッサ、3は画像
メモリ、4は描画座標発生器、5はホストプロセッサ、
6は画像メモリ制御器、7aはパターンレジスタ群、8
はパターン指定器である。FIG. 1 is a block diagram illustrating the configuration of a drawing apparatus showing an embodiment of the present invention, and FIG. 2 is a schematic diagram illustrating pattern types stored in the pattern register group 3 shown in FIG. FIG. 3 is a flowchart explaining an example of the drawing processing procedure in the drawing device according to the present invention, FIG. 4 is a block diagram explaining the configuration of the drawing device showing another embodiment of the invention, and FIG. A block diagram explaining the configuration of the device, FIGS. 6 and 7 are schematic diagrams explaining the line drawing state in a conventional drawing device, and FIG. 8 is a schematic diagram explaining the drawing process of lines whose thickness changes. It is. In the figure, 1 is a drawing device, 2 is a host processor, 3 is an image memory, 4 is a drawing coordinate generator, 5 is a host processor,
6 is an image memory controller, 7a is a pattern register group, 8
is a pattern specifier.
Claims (1)
と、この描画座標発生手段により発生される描画座標値
に基づいて変化するパターンを自動発生する描画パター
ン発生手段と、この描画パターン発生手段が発生したパ
ターンを画像メモリに展開制御する制御手段とを備えて
なることを特徴とする描画装置。A drawing coordinate generating means that generates a drawing coordinate value of a point to be drawn, a drawing pattern generating means that automatically generates a pattern that changes based on the drawing coordinate value generated by this drawing coordinate generating means, and this drawing pattern generating means 1. A drawing device comprising: control means for controlling development of a generated pattern in an image memory.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP1439890A JPH03217987A (en) | 1990-01-23 | 1990-01-23 | Drawing device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP1439890A JPH03217987A (en) | 1990-01-23 | 1990-01-23 | Drawing device |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH03217987A true JPH03217987A (en) | 1991-09-25 |
Family
ID=11859943
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP1439890A Pending JPH03217987A (en) | 1990-01-23 | 1990-01-23 | Drawing device |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH03217987A (en) |
-
1990
- 1990-01-23 JP JP1439890A patent/JPH03217987A/en active Pending
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JPH03217987A (en) | Drawing device | |
| JPS6339947B2 (en) | ||
| US5093905A (en) | Inclined rectangular pattern generating system | |
| JP3150319B2 (en) | Character pattern generator | |
| JP3553249B2 (en) | Image generating apparatus and image generating method | |
| JP2797134B2 (en) | Outline pattern printing device | |
| JP2773458B2 (en) | Vector controller | |
| JP2713219B2 (en) | Graphic display device | |
| JP2621410B2 (en) | Information processing device | |
| JP3009152B2 (en) | Image processing device | |
| JP2605609B2 (en) | Dot display processing device | |
| JP2907436B2 (en) | Pattern information processing apparatus and method | |
| JP2606176B2 (en) | Graphic processing unit | |
| JP2761220B2 (en) | 3D graphic display system | |
| JPH0467964A (en) | Page printer printing control method | |
| JP2005119219A5 (en) | ||
| JPS59184393A (en) | Cursor display unit | |
| JPH0195061A (en) | Access circuit | |
| JPH0490046A (en) | Ruled line processor | |
| JPH01175087A (en) | Image display device | |
| JPH03122771A (en) | Image editor | |
| JPH02201691A (en) | Character painting-out device | |
| JPS62184577A (en) | display control circuit | |
| JPS63243990A (en) | Character transmission system | |
| JPS62182977A (en) | Soft focus method for image data |