JPH0628486A - Image processor - Google Patents

Image processor

Info

Publication number
JPH0628486A
JPH0628486A JP4205916A JP20591692A JPH0628486A JP H0628486 A JPH0628486 A JP H0628486A JP 4205916 A JP4205916 A JP 4205916A JP 20591692 A JP20591692 A JP 20591692A JP H0628486 A JPH0628486 A JP H0628486A
Authority
JP
Japan
Prior art keywords
pattern
dot
thick line
image processing
processing apparatus
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
JP4205916A
Other languages
Japanese (ja)
Inventor
Takashi Sone
崇 曽根
Jun Sato
潤 佐藤
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.)
Hitachi Ltd
Original Assignee
Hitachi 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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP4205916A priority Critical patent/JPH0628486A/en
Publication of JPH0628486A publication Critical patent/JPH0628486A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To curtail the number of program steps of the image processor such as a graphic processor, etc., and to enhance its processing capacity. CONSTITUTION:A graphic processor, etc., are provided with a thick line plotting mechanism containing a pattern memory PM for holding dot patterns of (i) rows x (j) columns prepared in accordance with various thick lines, a thick line coordinate generating part BLCG for deriving a center path between two points designated in accordance with a prescribed algorithm, and a pattern selector PS for referring to each dot of the dot pattern successively along the center path in accordance with row selecting signals A0-A4 outputted from an i-scale counter CTRA and column selecting signals B0-B4 outputted from a j-scale counter CTRB. In such a manner, by only designating a start point and an end point, and the kind of lines various thick in which the pattern in its line width direction is not constant can be plotted by a single command.

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 device,
For example, the present invention relates to a graphic processor and a technique that is particularly effective when used for thick line drawing.

【0002】[0002]

【従来の技術】図形や画像等を効率的に作成・表示する
グラフィックプロセッサ等の画像処理装置がある。ま
た、このようなグラフィックプロセッサ等による太線描
画を効率的に行う一つの手段として、ペルと呼ばれる画
素の集合体を指定された2点間において移動させる太線
描画方式が知られている。
2. Description of the Related Art There is an image processing apparatus such as a graphic processor for efficiently creating and displaying figures and images. Further, as one means for efficiently performing thick line drawing by such a graphic processor or the like, there is known a thick line drawing method in which an aggregate of pixels called a pel is moved between two designated points.

【0003】ペルを用いた太線描画方式については、例
えば、特開昭63−91787号公報等に記載されてい
る。
A thick line drawing method using a pel is described in, for example, Japanese Patent Laid-Open No. 63-91787.

【0004】[0004]

【発明が解決しようとする課題】従来のグラフィックプ
ロセッサ等において、直線を含む各種の線は、基本的に
1ドット分の線幅を単位として描画される。このため、
図14に例示されるように、地図等で用いられかつその
線幅方向のパターンが一定でない太線の描画は、図9の
私鉄表示用太線に代表されるように、例えば始点(X
s,Ys)及び終点(Xe,Ye)間の中心経路となる
直線を描画するためのコマンドすなわち、 DRWL1 SWL2(Xs,Ys)*(Xe,Ye) と、この中心経路に平行した4本の点線を描画するため
のコマンドすなわち、 DRWL2 SWL3(Xs,Ys−2)*(Xe,Y
e−2) DRWL2 SWL3(Xs,Ys−1)*(Xe,Y
e−1) DRWL2 SWL3(Xs,Ys+1)*(Xe,Y
e+1) DRWL2 SWL3(Xs,Ys+2)*(Xe,Y
e+2) とにより実現される。つまり、この方式では、1本の太
線を描画するために線幅方向のドット数に相当する数の
コマンドが必要となり、これによってグラフィックプロ
セッサのステップ数が増大し、その処理能力が低下す
る。
In a conventional graphic processor or the like, various lines including a straight line are basically drawn with a line width of 1 dot as a unit. For this reason,
As illustrated in FIG. 14, the drawing of a thick line used in a map or the like and the pattern of which in the line width direction is not constant is represented by, for example, the start point (X
s, Ys) and the end point (Xe, Ye), a command for drawing a straight line as a central path, that is, DRWL1 SWL2 (Xs, Ys) * (Xe, Ye) and four parallel lines to this central path. A command for drawing a dotted line, that is, DRWL2 SWL3 (Xs, Ys-2) * (Xe, Y
e-2) DRWL2 SWL3 (Xs, Ys-1) * (Xe, Y
e-1) DRWL2 SWL3 (Xs, Ys + 1) * (Xe, Y
e + 1) DRWL2 SWL3 (Xs, Ys + 2) * (Xe, Y
e + 2) and That is, this method requires a number of commands corresponding to the number of dots in the line width direction to draw one thick line, which increases the number of steps of the graphic processor and reduces its processing capability.

【0005】これに対処するため、上記に記載されるよ
うなペルによる太線描画方式を採ることで、コマンドの
単一化を図ることが考えられる。しかし、この方式は、
ペルの軌跡が一定の幅を持つものであるため、その線幅
方向のパターンが固定化された太線の描画方式としては
有効であるが、前記図14に例示されるようなその線幅
方向のパターンが一定でない太線の描画には適さない。
In order to deal with this, it is conceivable to unify the commands by adopting the thick line drawing method by the pel as described above. However, this method
Since the pel's locus has a constant width, it is effective as a drawing method for a thick line in which the pattern in the line width direction is fixed. However, in the line width direction as illustrated in FIG. It is not suitable for drawing thick lines with irregular patterns.

【0006】この発明の目的は、新しい機能を有するグ
ラフィックプロセッサ等の画像処理装置を提供すること
にある。この発明の他の目的は、画像処理装置のプログ
ラムステップ数を削減し、その処理能力を高めることに
ある。
An object of the present invention is to provide an image processing device such as a graphic processor having a new function. Another object of the present invention is to reduce the number of program steps of the image processing apparatus and improve its processing capability.

【0007】この発明の前記ならびにその他の目的と新
規な特徴は、この明細書の記述及び添付図面から明らか
になるであろう。
The above and other objects and novel features of the present invention will be apparent from the description of this specification and the accompanying drawings.

【0008】[0008]

【課題を解決するための手段】本願において開示される
発明のうち代表的なものの概要を簡単に説明すれば、次
の通りである。すなわち、グラフィックプロセッサ等の
画像処理装置に、各種太線に対応して用意されるi行×
j列のドットパターンを保持するパターンメモリと、所
定のアルゴリズムに従って指定される2点間の中心経路
を求める太線座標発生部と、i進及びj進のカウンタの
出力信号に従って、上記ドットパターンの各ドットを中
心経路に沿って描画方向及び線幅方向に順次参照するパ
ターンセレクタとを含む太線描画機構を設ける。
The outline of the representative one of the inventions disclosed in the present application will be briefly described as follows. That is, i lines prepared for an image processing device such as a graphic processor corresponding to various thick lines x
Each of the dot patterns is stored in accordance with a pattern memory that holds the j-th row dot pattern, a thick-line coordinate generation unit that obtains a central path between two points designated according to a predetermined algorithm, and an output signal of an i-ary and j-ary counter. A thick line drawing mechanism including a pattern selector that sequentially refers to the dots along the central path in the drawing direction and the line width direction is provided.

【0009】[0009]

【作用】上記手段によれば、始点及び終点ならびに線種
を指定するだけで、その線幅方向のパターンが一定でな
い各種太線を単一コマンドによって描画しうるグラフィ
ックプロセッサ等の画像処理装置を実現できる。この結
果、画像処理装置のプログラムステップ数を削減し、そ
の処理能力を高めることができる。
According to the above means, it is possible to realize an image processing apparatus such as a graphic processor capable of drawing various thick lines whose patterns in the line width direction are not constant by a single command only by designating a start point, an end point and a line type. . As a result, the number of program steps of the image processing apparatus can be reduced and its processing capability can be increased.

【0010】[0010]

【実施例】図1には、この発明が適用されたグラフィッ
クプロセッサの太線描画機構の一実施例のブロック図が
示されている。同図をもとに、まずこの実施例のグラフ
ィックプロセッサの太線描画機構の構成及び動作の概要
について説明する。なお、図1の各ブロックを構成する
回路素子は、グラフィックプロセッサを構成する他の回
路素子とともに、共通のプリント基板上に搭載される。
1 is a block diagram of an embodiment of a thick line drawing mechanism of a graphic processor to which the present invention is applied. First, the outline of the configuration and operation of the thick line drawing mechanism of the graphic processor of this embodiment will be described with reference to FIG. The circuit elements forming each block in FIG. 1 are mounted on a common printed board together with other circuit elements forming the graphic processor.

【0011】図1において、この実施例の太線描画機構
は、特に制限されないが、太線座標発生部BLCGとパ
ターンメモリPMならびにパターンセレクタPSをその
基本構成とする。このうち、太線座標発生部BLCGに
は、グラフィックプロセッサのソフトウエアつまりは図
示されない中央処理ユニットから、描画すべき太線の始
点(Xs,Ys)及び終点(Xe,Ye)が与えられ、
パターンメモリPMには、描画すべき太線の線種SWL
が与えられる。
In FIG. 1, the thick line drawing mechanism of this embodiment is not particularly limited, but has a thick line coordinate generator BLCG, a pattern memory PM and a pattern selector PS as its basic configuration. Of these, to the bold line coordinate generation unit BLCG, the start point (Xs, Ys) and the end point (Xe, Ye) of the bold line to be drawn are given from the software of the graphic processor, that is, the central processing unit (not shown),
The pattern memory PM has a thick line type SWL to be drawn.
Is given.

【0012】太線描画機構は、さらに、i進つまり5進
のカウンタCTRA(第1のカウンタ)とj進つまり5
進のカウンタCTRB(第2のカウンタ)ならびに画像
メモリアドレス発生部GMAG及び描画色選択部GMD
Sを備える。このうち、カウンタCTRA及びCTRB
には、太線座標発生部BLCGから歩進用の内部制御信
号UA及びUBがそれぞれ供給され、その計数値は、各
カウンタの内部でデコードされた後、行選択用の選択信
号A0〜A4ならびに列選択用の選択信号B0〜B4と
してパターンセレクタPSに供給される。
The bold line drawing mechanism is further provided with an i-ary or quinary counter CTRA (first counter) and a j-ary or 5 counter.
Progressive counter CTRB (second counter), image memory address generator GMAG and drawing color selector GMD
Equipped with S. Of these, the counters CTRA and CTRB
Is supplied with the internal control signals UA and UB for stepping from the thick line coordinate generation unit BLCG, and the count values thereof are decoded in the respective counters, and then the selection signals A0 to A4 for row selection and the columns. The selection signals B0 to B4 for selection are supplied to the pattern selector PS.

【0013】太線座標発生部BLCGは、特に制限され
ないが、マイクロプログラム方式のサブプロセッサから
なり、所定のアルゴリズムに従って与えられた始点(X
s,Ys)及び終点(Xe,Ye)間の中心経路を求め
るとともに、所定の組み合わせで内部制御信号UA及び
UBを選択的に形成し、カウンタCTRA及びCTRB
を選択的に歩進させる。この結果、カウンタCTRA及
びCTRBの出力信号すなわち行選択信号A0〜A4な
らびに列選択信号B0〜B4が所定の順序で形成され、
これによってパターンセレクタPSのドットパターンの
参照順序が設定される。太線座標発生部BLCGにより
得られる太線の中心経路は、ドット単位でX座標CX及
びY座標CYとして順次出力され、画像メモリアドレス
発生部GMAGを介して画像メモリGMに伝達される。
なお、各種太線の中心経路を求めるためのアルゴリズム
は、例えば太線座標発生部内のメモリに格納されたマイ
クロプログラムを書き換えることで任意に変更すること
ができる。
The thick line coordinate generator BLCG is not particularly limited, but is composed of a micro-program type sub-processor and has a start point (X) given according to a predetermined algorithm.
s, Ys) and the end point (Xe, Ye), and the internal control signals UA and UB are selectively formed in a predetermined combination to generate counters CTRA and CTRB.
Selectively step forward. As a result, the output signals of the counters CTRA and CTRB, that is, the row selection signals A0 to A4 and the column selection signals B0 to B4 are formed in a predetermined order,
As a result, the reference order of the dot patterns of the pattern selector PS is set. The center line of the thick line obtained by the thick line coordinate generation unit BLCG is sequentially output in dot units as the X coordinate CX and the Y coordinate CY, and transmitted to the image memory GM via the image memory address generation unit GMAG.
The algorithm for obtaining the central path of various thick lines can be arbitrarily changed by, for example, rewriting the microprogram stored in the memory in the thick line coordinate generation unit.

【0014】一方、パターンメモリPMは、各種太線に
対応して用意されるi行×j列つまり5行×5列のドッ
トパターンを保持するとともに、これらのドットパター
ンを中央処理ユニットから与えられる線種SWLに従っ
てパターン単位すなわち25ドット単位で読み出し、パ
ターンセレクタPSに出力する。パターンメモリPM内
により保持される各種太線のドットパターンは、例えば
グラフィックプロセッサのキーボードから所定のコマン
ドを入力することによって任意に追加・修正でき、さら
にはその行及び列の大きさを変更することもできる。
On the other hand, the pattern memory PM holds dot patterns of i rows × j columns, ie, 5 rows × 5 columns prepared corresponding to various thick lines, and these dot patterns are provided by the central processing unit. In accordance with the seed SWL, it is read in a pattern unit, that is, in a unit of 25 dots, and output to the pattern selector PS. The various thick line dot patterns held in the pattern memory PM can be arbitrarily added or modified by, for example, inputting a predetermined command from the keyboard of the graphic processor, and the size of the rows and columns can be changed. it can.

【0015】パターンセレクタPSは、パターンメモリ
PMから出力されるドットパターンを一時的に保持する
5行×5列のパターンラッチPLと、このパターンラッ
チPLにより保持されるドットパターンをドット単位で
参照・抽出する多数のスイッチとを備える。これらのス
イッチは、カウンタCTRA及びCTRBから出力され
る行選択信号A0〜A4ならびに列選択信号B0〜B4
に従って選択的にオン状態とされ、ドットパターンの対
応するドットを選択的に抽出して、ドットデータDDと
して描画色選択部GMDSに伝達する。パターンセレク
タPSの具体的な構成及び動作については、後で詳細に
説明する。
The pattern selector PS refers to the pattern latch PL of 5 rows × 5 columns that temporarily holds the dot pattern output from the pattern memory PM, and the dot pattern held by this pattern latch PL in dot units. And a large number of switches for extracting. These switches are row selection signals A0 to A4 and column selection signals B0 to B4 output from the counters CTRA and CTRB.
Then, the corresponding dot of the dot pattern is selectively extracted and transmitted as dot data DD to the drawing color selection unit GMDS. The specific configuration and operation of the pattern selector PS will be described in detail later.

【0016】描画色選択部GMDSは、パターンセレク
タPSから出力されるドットデータDDに所定の着色処
理を行い、画素データを形成して、画像メモリGMに出
力する。これらの画素データは、画像メモリGMの前記
画像メモリアドレス発生部GMAGにより指定されるア
ドレスに格納された後、所定の順序で図示されないCR
T(陰極線管)ディスプレイに読み出され・表示され
る。
The drawing color selection unit GMDS performs predetermined coloring processing on the dot data DD output from the pattern selector PS, forms pixel data, and outputs the pixel data to the image memory GM. These pixel data are stored in an address designated by the image memory address generation unit GMAG of the image memory GM, and then CR (not shown) in a predetermined order.
It is read out and displayed on the T (cathode ray tube) display.

【0017】図2には、図1の太線描画機構に含まれる
パターンセレクタPSの一実施例の回路図が示されてい
る。同図により、この実施例の太線描画機構に含まれる
パターンセレクタPSの具体的な構成及び動作について
説明する。
FIG. 2 shows a circuit diagram of an embodiment of the pattern selector PS included in the thick line drawing mechanism of FIG. The specific configuration and operation of the pattern selector PS included in the thick line drawing mechanism of this embodiment will be described with reference to FIG.

【0018】図2において、この実施例のパターンセレ
クタPSは、特に制限されないが、5行×5列の単位ラ
ッチ回路UL00〜UL04ないしUL40〜UL44
からなるパターンラッチPLを備える。パターンラッチ
PLを構成する各単位ラッチ回路の入力ノードは、図示
されない信号経路を介してパターンメモリPMの対応す
る出力端子にそれぞれ結合される。また、各列に配置さ
れる5個の単位ラッチ回路UL00〜UL40ないしU
L04〜UL44の出力ノードは、対応するスイッチS
A00〜SA40ないしSA04〜SA44を介して内
部ノードD0〜D4にそれぞれ共通結合される。これら
のスイッチの制御ゲートは、各行ごとに5個ずつすなわ
ちスイッチSA00〜SA04ないしSA40〜SA4
4の組み合わせでそれぞれ共通結合され、前記カウンタ
CTRAからその出力信号すなわち行選択信号A0〜A
4がそれぞれ供給される。
In FIG. 2, the pattern selector PS of this embodiment is not particularly limited, but unit latch circuits UL00 to UL04 to UL40 to UL44 of 5 rows × 5 columns.
Pattern latch PL consisting of The input node of each unit latch circuit forming the pattern latch PL is coupled to the corresponding output terminal of the pattern memory PM via a signal path (not shown). In addition, five unit latch circuits UL00 to UL40 to U arranged in each column.
The output nodes of L04 to UL44 are the corresponding switches S
Commonly coupled to internal nodes D0 to D4 via A00 to SA40 to SA04 to SA44, respectively. The control gates of these switches are five in each row, that is, the switches SA00 to SA04 to SA40 to SA4.
4 are commonly coupled to each other and output signals from the counter CTRA, that is, row selection signals A0 to A.
4 are supplied respectively.

【0019】パターンセレクタPSは、さらに、上記内
部ノードD0〜D4とその出力端子DDとの間に設けら
れる5個のスイッチSB0〜SB4を備える。これらの
スイッチの制御ゲートには、前記カウンタCTRBから
その出力信号すなわち列選択信号B0〜B4がそれぞれ
供給される。
The pattern selector PS further includes five switches SB0 to SB4 provided between the internal nodes D0 to D4 and its output terminal DD. The output signals of the counter CTRB, that is, the column selection signals B0 to B4 are supplied to the control gates of these switches, respectively.

【0020】これらのことから、パターンメモリPMか
ら読み出されパターンセレクタPSのパターンラッチP
Lによって保持されるドットパターンは、まず行選択信
号A0〜A4に従って5個ずつ選択され、対応する内部
ノードD0〜D4に出力される。そして、列選択信号B
0〜B4に従ってさらに1個ずつ選択され、パターンセ
レクタPSの出力信号すなわちドットデータDDとな
る。これらのドットデータDDは、前述のように、描画
色選択部GMDSによって所定の画素データに変換され
た後、画像メモリGMに順次書き込まれる。なお、ドッ
トパターンの行及び列方向のドット数を任意に設定する
ことが可能な場合、パターンセレクタPSのパターンラ
ッチPL及びスイッチの行及び列方向の素子数をその最
大数に合わせて大きくする必要があることは言うまでも
ない。
From these facts, the pattern latch P of the pattern selector PS read from the pattern memory PM is read.
The dot patterns held by L are first selected five by five according to the row selection signals A0 to A4 and output to the corresponding internal nodes D0 to D4. Then, the column selection signal B
Further, one by one is selected according to 0 to B4, and becomes the output signal of the pattern selector PS, that is, the dot data DD. As described above, these dot data DD are converted into predetermined pixel data by the drawing color selection unit GMDS, and then sequentially written in the image memory GM. When the number of dots in the row and column directions of the dot pattern can be arbitrarily set, it is necessary to increase the number of elements in the row and column directions of the pattern latch PL and the switch of the pattern selector PS in accordance with the maximum number. It goes without saying that there is.

【0021】図4には、図1のグラフィックプロセッサ
に用いられる私鉄表示用太線ドットパターンの一実施例
のパターン構成図が示され、図5には、図1のグラフィ
ックプロセッサにおける太線描画座標とその処理方向を
説明するための一実施例の概念図が示されている。ま
た、図6及び図7には、図4のドットパターンを用いて
座標Za方向及び座標Zb方向に描画される私鉄表示用
太線の一実施例のパターン構成図がそれぞれ示され、図
8には、図1のグラフィックプロセッサの私鉄表示用太
線描画コマンドを説明するための一実施例の概念図が示
されている。これらの図をもとに、この実施例のグラフ
ィックプロセッサによる太線描画の具体的方法とその特
徴について説明する。なお、以下のパターン構成図で
は、ドットパターンの各ドットが、それぞれ四角形で表
される。また、CRTディスプレイにおいて明るく表示
されるべき論理“1”のドットに対して斜線が施され、
暗く表示されるべき論理“0”のドットは空白のままと
される。
FIG. 4 shows a pattern configuration diagram of an embodiment of a bold line dot pattern for private railway display used in the graphic processor of FIG. 1, and FIG. 5 shows thick line drawing coordinates and its coordinates in the graphic processor of FIG. The conceptual diagram of one Example for demonstrating a processing direction is shown. Further, FIGS. 6 and 7 show pattern configuration diagrams of one example of the private railway display thick line drawn in the coordinate Za direction and the coordinate Zb direction using the dot pattern of FIG. 4, and FIG. 1, a conceptual diagram of an embodiment for explaining a private line display thick line drawing command of the graphic processor of FIG. 1 is shown. Based on these figures, a concrete method of drawing thick lines by the graphic processor of this embodiment and its characteristics will be described. In the following pattern configuration diagram, each dot of the dot pattern is represented by a quadrangle. In addition, the dots of the logical "1" that should be displayed brightly on the CRT display are shaded,
The logical "0" dots that should be displayed dark are left blank.

【0022】この実施例のグラフィックプロセッサにお
いて、各種太線に対応して用意されるドットパターン
は、図4の私鉄表示用太線に代表して示されるように、
5行×5列で格子状に組み合わされた25個のドットに
より構成される。これらのドットパターンは、太線描画
機構のパターンメモリPMに格納され、必要に応じてパ
ターンセレクタPS内のパターンラッチPLに読み出さ
れる。このとき、各ドットパターンの行つまり描画方向
ならびに列つまり線幅方向と画像処理のために想定され
るX軸及びY軸との対応は、図5に示されるように、太
線の進行方向が座標Za〜Zhのいずれにあるかによっ
て選択的に設定される。
In the graphic processor of this embodiment, the dot patterns prepared corresponding to the various thick lines are represented by the bold lines for private railway display in FIG.
It is composed of 25 dots that are combined in a grid pattern of 5 rows × 5 columns. These dot patterns are stored in the pattern memory PM of the thick line drawing mechanism and read out to the pattern latch PL in the pattern selector PS as needed. At this time, as shown in FIG. 5, the correspondence between the row or drawing direction and the column or line width direction of each dot pattern and the X-axis and Y-axis that is assumed for image processing is such that the moving direction of the thick line is the coordinate. It is selectively set depending on which of Za to Zh.

【0023】すなわち、太線の進行方向が図5の座標Z
aにある場合、ドットパターンの行つまり描画方向は+
X方向に設定され、その列つまり線幅方向は+Y方向に
設定される。また、太線の進行方向が座標Zbにある場
合、ドットパターンの描画方向は+Y方向にあり、その
線幅方向は+X方向に設定される。さらに、太線の進行
方向が座標Zc及びZdにある場合、ドットパターンの
描画方向はそれぞれ+Y方向及び−X方向に設定され、
その線幅方向はそれぞれ−X方向及び+Y方向に設定さ
れる。そして、太線の進行方向が座標Ze,Zf,Zg
及びZhにある場合、ドットパターンの描画方向はそれ
ぞれ−X方向,−Y方向,−Y方向ならびに+X方向に
設定され、その線幅方向はそれぞれ−Y方向,−X方
向,+X方向ならびに−Y方向に設定される。後述する
ように、太線座標発生部BLCGにより求められる中心
経路とカウンタCTRA及びCTRBの計数値とによる
画像メモリGMのアドレス演算は、上記対応に従って選
択的に行われる。
That is, the traveling direction of the thick line is the coordinate Z in FIG.
If it is a, the line of the dot pattern, that is, the drawing direction is +
It is set in the X direction, and its column, that is, the line width direction is set in the + Y direction. When the traveling direction of the thick line is at the coordinate Zb, the drawing direction of the dot pattern is the + Y direction, and the line width direction thereof is set to the + X direction. Furthermore, when the traveling direction of the thick line is at the coordinates Zc and Zd, the drawing directions of the dot patterns are set to the + Y direction and the −X direction, respectively.
The line width directions are set to the −X direction and the + Y direction, respectively. The traveling direction of the thick line is coordinates Ze, Zf, Zg.
, And Zh, the drawing directions of the dot patterns are set to −X direction, −Y direction, −Y direction, and + X direction, respectively, and the line width directions thereof are −Y direction, −X direction, + X direction, and −Y direction, respectively. Set to the direction. As will be described later, the address calculation of the image memory GM based on the central path obtained by the thick line coordinate generator BLCG and the count values of the counters CTRA and CTRB is selectively performed according to the above correspondence.

【0024】ここで、私鉄表示用太線が始点(Xs,Y
s)すなわち(0,2)から終点(Xe,Ye)すなわ
ち(19,8)に向かって描画される図6の場合を例
に、この実施例のグラフィックプロセッサによる太線描
画方法を具体的に説明する。
Here, the bold line for private railway display is the starting point (Xs, Y
s), that is, (0, 2) to the end point (Xe, Ye), that is, (19, 8) is drawn as an example, the thick line drawing method by the graphic processor of this embodiment will be specifically described. To do.

【0025】太線描画機構の太線座標発生部BLCGに
は、描画処理の開始に先立って、中央処理ユニットから
私鉄表示用太線の始点(0,2)及び終点(19,8)
が与えられ、パターンメモリPMには、私鉄表示用太線
を示す線種SWL1が与えられる。これを受けて、パタ
ーンメモリPMから私鉄表示用太線に対応する図4のド
ットパターンが読み出され、パターンセレクタPSのパ
ターンラッチPLに送られる。また、太線座標発生部B
LCGでは、所定のアルゴリズムに従って、始点(0,
2)及び終点(19,8)間を結ぶ中心経路が求められ
るとともに、カウンタCTRA及びCTRBの初期値が
ともに0に設定され、画像メモリGMの対応するアドレ
スを指定するともに0のX座標CX及びY座標CYが画
像メモリアドレス発生部GMAGに出力される。さら
に、カウンタCTRA及びCTRBの初期値がともに0
に設定されることで、パターンセレクタPSに供給され
る行選択信号A0〜A4ならびに列選択信号B0〜B4
のうち対応する行選択信号A0及び列選択信号B0のみ
が択一的にハイレベルとされる。なお、太線座標発生部
BLCGは、私鉄表示用太線の中心経路を求める際に、
私鉄表示用太線の進行方向が図5の座標Zaに対応する
ものであることを識別する。
In the thick line coordinate generation unit BLCG of the thick line drawing mechanism, prior to the start of the drawing process, the starting point (0, 2) and the ending point (19, 8) of the bold line for private railway display from the central processing unit.
Is given to the pattern memory PM, and the line type SWL1 indicating the private railway display thick line is given. In response to this, the dot pattern of FIG. 4 corresponding to the private railway display thick line is read from the pattern memory PM and sent to the pattern latch PL of the pattern selector PS. In addition, the bold line coordinate generation unit B
In LCG, the start point (0,
2) and the central path connecting the end points (19, 8) are obtained, the initial values of the counters CTRA and CTRB are both set to 0, and the corresponding address of the image memory GM is designated and the X coordinate CX of 0 and The Y coordinate CY is output to the image memory address generation unit GMAG. Further, the initial values of the counters CTRA and CTRB are both 0.
Is set to, the row selection signals A0 to A4 and the column selection signals B0 to B4 supplied to the pattern selector PS.
Among them, only the corresponding row selection signal A0 and column selection signal B0 are alternatively set to the high level. In addition, the thick line coordinate generation unit BLCG calculates the center route of the bold line for private railway display,
It is identified that the traveling direction of the bold line for private railway display corresponds to the coordinate Za in FIG.

【0026】パターンセレクタPSでは、行選択信号A
0が択一的にハイレベルとされることで、対応する5個
のスイッチSA00〜SA04が一斉にオン状態とな
り、単位ラッチ回路UL00〜UL04の保持パターン
が対応する内部ノードD0〜D4に出力される。また、
列選択信号B0が択一的にハイレベルとされることで、
まず内部ノードD0に出力された単位ラッチ回路UL0
0の保持パターンすなわち論理“0”が択一的に選択さ
れ、ドットデータDDとして描画色選択部GMDSに送
られる。さらに、内部制御信号UBが所定の間隔をおい
て4回形成され、カウンタCTRBの計数値が1から4
に順次歩進される。これにともなって、内部ノードD1
〜D4に出力された単位ラッチ回路UL01〜UL04
の保持パターンすなわち論理“0”,“1”,“0”及
び“0”が順次択一的に選択され、ドットデータDDと
して描画色選択部GMDSに送られる。このとき、画像
メモリGMのアドレスを指定するためのX座標CXは0
のままとされ、Y座標CYはカウンタCTRBの計数値
を加算すべく順次更新される。
In the pattern selector PS, the row selection signal A
By selectively setting 0 to the high level, the corresponding five switches SA00 to SA04 are simultaneously turned on, and the holding patterns of the unit latch circuits UL00 to UL04 are output to the corresponding internal nodes D0 to D4. It Also,
Since the column selection signal B0 is alternatively set to the high level,
First, the unit latch circuit UL0 output to the internal node D0
The holding pattern of 0, that is, the logic "0" is alternatively selected and sent to the drawing color selection unit GMDS as the dot data DD. Further, the internal control signal UB is formed four times at a predetermined interval, and the count value of the counter CTRB is 1 to 4
Step by step. Accordingly, the internal node D1
To unit latch circuits UL01 to UL04 output to D4
Holding patterns, that is, the logics "0", "1", "0" and "0" are sequentially and selectively selected and sent as dot data DD to the drawing color selection unit GMDS. At this time, the X coordinate CX for designating the address of the image memory GM is 0.
The Y coordinate CY is kept as it is and is sequentially updated to add the count value of the counter CTRB.

【0027】この後、カウンタCTRBの計数値が初期
値0に戻されるとともに、内部制御信号UAが1回だけ
形成され、カウンタCTRAの計数値が1に更新され
る。したがって、単位ラッチ回路UL10〜UL14の
保持パターンすなわち論理“00100”が順次択一的
に選択され、ドットデータDDとして描画色選択部GM
DSに送られる。このとき、画像メモリGMのアドレス
を指定するためのX座標CXは1に更新され、Y座標C
YはやはりカウンタCTRBの計数値を加算すべく順次
更新される。次に、カウンタCTRBの計数値が再度初
期値0に戻され、カウンタCTRAの計数値が2に更新
されると、単位ラッチ回路UL20〜UL24の保持パ
ターンすなわち論理“11111”が順次択一的に選択
され、ドットデータDDとして描画色選択部GMDSに
送られる。このとき、画像メモリGMのアドレスを指定
するためのX座標CXは2に更新されるが、Y座標CY
は、私鉄表示用太線の中心経路の座標が(2,3)に更
新されることから、カウンタCTRBの計数値にさらに
1を加えた値とされる。
Thereafter, the count value of the counter CTRB is returned to the initial value 0, the internal control signal UA is formed only once, and the count value of the counter CTRA is updated to 1. Therefore, the holding patterns of the unit latch circuits UL10 to UL14, that is, the logic "00100" are sequentially and selectively selected, and the drawing color selection unit GM is selected as the dot data DD.
Sent to DS. At this time, the X coordinate CX for designating the address of the image memory GM is updated to 1 and the Y coordinate CX is updated.
Y is also sequentially updated to add the count value of the counter CTRB. Next, when the count value of the counter CTRB is returned to the initial value 0 again and the count value of the counter CTRA is updated to 2, the holding pattern of the unit latch circuits UL20 to UL24, that is, the logic "11111" is sequentially and alternately selected. It is selected and sent as dot data DD to the drawing color selection unit GMDS. At this time, the X coordinate CX for designating the address of the image memory GM is updated to 2, but the Y coordinate CY.
Is updated by adding (1) to the count value of the counter CTRB because the coordinates of the central route of the bold line for private railway display are updated to (2, 3).

【0028】以下、同様な処理がドットパターンを単位
として繰り返され、パターンラッチPLの単位ラッチ回
路UL00〜UL04ないしUL40〜UL44によっ
て保持されるドットパターンがドットごとに順次択一的
に選択され、ドットデータDDとして描画色選択部GM
DSに順次送られる。また、これにあわせて、画像メモ
リGMのアドレスを指定するためのX座標CX及びY座
標CYが、中心経路の座標とカウンタCTRA及びCT
RBの計数値とに従って順次更新される。そして、ドッ
トパターン5個分について上記処理が繰り返された結果
として、始点(0,2)及び終点(19,8)間を結ぶ
私鉄表示用太線が、中央処理ユニットの介在を受けるこ
となく自律的に描画される。言い換えるならば、上記太
線描画処理は、中央処理ユニットからみた場合、図8に
例示されるように、私鉄表示用太線の始点(Xs,Y
s)つまり(0,2)ならびに終点(Xe,Ye)つま
り(19,8)と、私鉄表示用太線であることを示す線
種SWLつまりSWL1とを与えるための単一コマン
ド、すなわち、 DRWL SWL1(Xs,Ys)*(Xe,Ye) を発行するだけで開始され、終結される。この結果、グ
ラフィックプロセッサのプログラムステップ数が削減さ
れ、相応してその処理能力が高められるものとなる。な
お、この発明による効果は、太線の線幅が大きいほど顕
著なものとなる。また、従来の太線描画方式では、図形
の拡大・縮小に際しても多数のコマンドを発行しなくて
はならないが、本発明の場合、始点及び終点の座標を変
更するだけで済み、極めて効率化されるものとなる。
Thereafter, the same processing is repeated in units of dot patterns, and the dot patterns held by the unit latch circuits UL00 to UL04 to UL40 to UL44 of the pattern latch PL are sequentially and alternately selected for each dot, and the dot pattern is selected. Drawing color selection unit GM as data DD
Sequentially sent to DS. Along with this, the X coordinate CX and the Y coordinate CY for designating the address of the image memory GM are the coordinates of the central route and the counters CTRA and CT.
It is sequentially updated according to the count value of RB. Then, as a result of the above processing being repeated for five dot patterns, the private railway display thick line connecting the start point (0, 2) and the end point (19, 8) is autonomous without the intervention of the central processing unit. Is drawn to. In other words, the thick line drawing process, when viewed from the central processing unit, is the starting point (Xs, Y) of the private line display thick line as illustrated in FIG.
s) A single command for giving (0, 2) and end point (Xe, Ye), that is (19, 8), and a line type SWL, that is, SWL1 indicating a private railway thick line, that is, DRWL SWL1 It starts and ends only by issuing (Xs, Ys) * (Xe, Ye). As a result, the number of program steps of the graphic processor is reduced and its processing capacity is correspondingly increased. The effect of the present invention becomes more remarkable as the line width of the thick line becomes larger. Further, in the conventional thick line drawing method, a large number of commands must be issued when enlarging / reducing a figure, but in the case of the present invention, only the coordinates of the start point and the end point need to be changed, which is extremely efficient. Will be things.

【0029】次に、私鉄表示用太線が始点(2,0)か
ら終点(8,19)に向かって描画される図7の場合、
私鉄表示用太線の進行方向は図5の座標Zbに対応する
ものとなり、その描画方向は+Y方向またその線幅方向
は+X方向となる。描画処理が開始されると、太線描画
機構ではまずパターンメモリPMから私鉄表示用太線に
対応する図4のドットパターンが読み出され、パターン
セレクタPSのパターンラッチPLに送られる。また、
太線座標発生部BLCGでは、始点(2,0)及び終点
(8,19)間を結ぶ中心経路が求められるとともに、
カウンタCTRA及びCTRBの初期値がともに0に設
定される。これにより、画像メモリアドレス発生部GM
AGに対してともに0のX座標CX及びY座標CYが与
えられるとともに、行選択信号A0及び列選択信号B0
がそれぞれ択一的にハイレベルとされ、ドットパターン
の参照・抽出処理が開始される。
Next, in the case of FIG. 7 in which a private railway display thick line is drawn from the starting point (2,0) to the ending point (8,19),
The traveling direction of the bold line for private railway display corresponds to the coordinate Zb in FIG. 5, the drawing direction is + Y direction, and the line width direction is + X direction. When the drawing process is started, the thick line drawing mechanism first reads the dot pattern of FIG. 4 corresponding to the bold line for private railway display from the pattern memory PM and sends it to the pattern latch PL of the pattern selector PS. Also,
In the bold line coordinate generator BLCG, a central route connecting the start point (2,0) and the end point (8,19) is obtained, and
The initial values of the counters CTRA and CTRB are both set to 0. As a result, the image memory address generator GM
X coordinate CX and Y coordinate CY of 0 are both given to AG, and row selection signal A0 and column selection signal B0 are given.
Are alternately set to the high level, and the dot pattern reference / extraction processing is started.

【0030】以下、図6の場合と同様な処理がドットパ
ターンを単位として繰り返され、パターンラッチPLに
より保持されるドットパターンがドットごとに順次択一
的に選択され、ドットデータDDとして描画色選択部G
MDSに送られる。また、これにあわせて、画像メモリ
GMのアドレスを指定するためのX座標CXが、中心経
路の座標とカウンタCTRBの計数値とに従って、さら
にはY座標CYが、中心経路の座標とカウンタCTRA
の計数値とに従ってそれぞれ順次更新される。そして、
ドットパターン5個分について上記処理が繰り返された
結果として、始点(2,0)及び終点(8,19)間を
結ぶ私鉄表示用太線が、中央処理ユニットの介在を受け
ることなく自律的に描画されるものとなる。
Thereafter, the same processing as in the case of FIG. 6 is repeated for each dot pattern, the dot patterns held by the pattern latch PL are sequentially and selectively selected for each dot, and the drawing color is selected as the dot data DD. Part G
Sent to MDS. In accordance therewith, the X coordinate CX for designating the address of the image memory GM, the Y coordinate CY according to the coordinate of the central route and the count value of the counter CTRB, and the coordinate of the central route and the counter CTRA.
Are sequentially updated according to the count value of. And
As a result of the above processing being repeated for five dot patterns, a private railway display thick line connecting the start point (2,0) and the end point (8,19) is drawn autonomously without the intervention of the central processing unit. Will be done.

【0031】図10には、図1のグラフィックプロセッ
サに用いられる私鉄表示用太線ドットパターンの他の実
施例のパターン構成図が示されている。また、図11に
は、図10のドットパターンによりX軸と平行に描画さ
れる私鉄表示用太線の一実施例のパターン構成図が示さ
れ、図12及び図13には、X軸と0度近傍及び45度
近傍の角度をなして描画される私鉄表示用太線の一実施
例のパターン構成図がそれぞれ示されている。これらの
図をもとに、図1のグラフィックプロセッサに用いられ
るドットパターンのもう一つの実施例とその応用例につ
いて説明する。なお、この実施例は、前記図4ないし図
8の実施例を基本的に踏襲するものであるため、これと
異なる部分についてのみ説明を追加する。
FIG. 10 shows a pattern configuration diagram of another embodiment of the private railway display thick line dot pattern used in the graphic processor of FIG. Further, FIG. 11 shows a pattern configuration diagram of an embodiment of a private railway display thick line drawn in parallel with the X axis by the dot pattern of FIG. 10, and FIGS. 12 and 13 show the X axis and 0 degrees. A pattern configuration diagram of an example of a private railway display thick line drawn at an angle of near and 45 degrees is shown, respectively. With reference to these figures, another embodiment of the dot pattern used in the graphic processor of FIG. 1 and its application will be described. It should be noted that this embodiment basically follows the embodiment of FIGS. 4 to 8, and therefore only the portions different from this will be described.

【0032】図10において、私鉄表示用太線に対応す
るドットパターンは、特に制限されないが、その描画方
向に対応して3種類用意される。すなわち、図10の
(a)に示されるドットパターンは、図11に例示され
るように、私鉄表示用太線の描画方向がX軸又はY軸と
平行しあるいはX軸又はY軸と中間的な角度をなす場合
において一般的に用いられる。ところが、図10の
(b)に示されるドットパターンは、図12に例示され
るように、私鉄表示用太線の描画方向がX軸と0度近傍
の角度をなす場合において効果的とされ、図10の
(c)に示されるドットパターンは、図13に例示され
るように、私鉄表示用太線の描画方向がX軸つまりはY
軸と45度近傍の角度をなす場合において効果的とされ
る。
In FIG. 10, the dot patterns corresponding to the bold lines for private railway display are not particularly limited, but three types are prepared corresponding to the drawing direction. That is, in the dot pattern shown in (a) of FIG. 10, as illustrated in FIG. 11, the drawing direction of the bold line for private railway display is parallel to the X axis or the Y axis, or intermediate to the X axis or the Y axis. It is commonly used when making an angle. However, the dot pattern shown in (b) of FIG. 10 is effective when the drawing direction of the bold line for private railway display makes an angle near 0 degrees with the X axis, as illustrated in FIG. In the dot pattern shown in 10 (c), as shown in FIG. 13, the drawing direction of the private railway display thick line is the X axis, that is, Y.
It is effective when forming an angle of about 45 degrees with the axis.

【0033】このように、各種太線のドットパターンを
その描画方向に対応して複数種類用意することで、描画
方向による太線の歪みを抑制し、より見やすく明確な太
線描画を実現することができるものとなる。なお、描画
方向に対応したドットパターンの選択は、太線描画機構
により自律的に行ってもよいが、外部からの指示により
従属的に行ってもよい。
As described above, by preparing a plurality of various thick line dot patterns corresponding to the drawing direction, distortion of the thick line due to the drawing direction can be suppressed, and clear and clear thick line drawing can be realized. Becomes The selection of the dot pattern corresponding to the drawing direction may be performed autonomously by the bold line drawing mechanism, or may be performed subordinately by an instruction from the outside.

【0034】以上の複数の実施例に示されるように、こ
の発明をグラフィックプロセッサ等の画像処理装置なら
びにその太線描画に適用することで、次のような作用効
果を得ることができる。すなわち、 (1)グラフィックプロセッサ等の画像処理装置に、各
種太線に対応して用意されるi行×j列のドットパター
ンを保持するパターンメモリと、所定のアルゴリズムに
従って指定される2点間の中心経路を求める太線座標発
生部と、i進及びj進のカウンタの出力信号に従って上
記ドットパターンの各ドットを中心経路に沿って描画方
向及び線幅方向に順次参照するパターンセレクタとを含
む太線描画機構を設けることで、始点及び終点ならびに
線種を指定するだけで、その線幅方向のパターンが一定
でない各種太線を単一コマンドによって描画することが
できるという効果が得られる。 (2)上記(1)項により、太線を含む図形の拡大・縮
小を、始点及び終点の座標を変更するだけで効率的に実
現できるという効果が得られる。 (3)上記(1)項及び(2)項において、ドットパタ
ーンを各種太線の描画方向に対応して複数種類用意する
ことで、描画方向による太線の歪みを抑制し、より見や
すく明確な太線を描画できるという効果が得られる。 (4)上記(1)項〜(3)項により、描画される太線
の画質を高めつつ、グラフィックプロセッサ等の画像処
理装置のプログラムステップ数を削減し、その処理能力
を高めることができるという効果が得られる。
By applying the present invention to an image processing device such as a graphic processor and its thick line drawing as shown in the above-described embodiments, the following operational effects can be obtained. That is, (1) a pattern memory for holding an i-row × j-column dot pattern prepared corresponding to various thick lines in an image processing device such as a graphic processor, and a center between two points designated according to a predetermined algorithm. A thick line drawing mechanism including a thick line coordinate generation unit for obtaining a path and a pattern selector for sequentially referring to each dot of the dot pattern in the drawing direction and the line width direction along the central path according to the output signals of the i-adic and j-adic counters. By providing the above, it is possible to obtain the effect that various thick lines whose patterns in the line width direction are not constant can be drawn by a single command only by specifying the start point, the end point, and the line type. (2) According to the above item (1), it is possible to effectively enlarge or reduce a graphic including a thick line by simply changing the coordinates of the start point and the end point. (3) In the above items (1) and (2), by preparing a plurality of types of dot patterns corresponding to the drawing directions of various thick lines, distortion of the thick lines due to the drawing direction is suppressed, and clear and clear thick lines are displayed. The effect of being able to draw is obtained. (4) According to the above items (1) to (3), it is possible to reduce the number of program steps of an image processing apparatus such as a graphic processor and improve the processing capability while improving the image quality of a drawn thick line. Is obtained.

【0035】以上、本発明者によってなされた発明を実
施例に基づき具体的に説明したが、この発明は、上記実
施例に限定されるものではなく、その要旨を逸脱しない
範囲で種々変更可能であることは言うまでもない。例え
ば、図1において、太線座標発生部BLCGは、ストア
ドプログラム方式のプロセッサを用いてもよいし、すべ
ての描画処理をハードウエア的に行うものとしてもよ
い。パターンセレクタPSは、図3に示されるように、
ドットパターンの描画方向のiビットつまり5ビットを
受けるj個つまり5個のシフトレジスタSR10〜SR
14(第1のシフトレジスタ)と、これらのシフトレジ
スタの出力信号R0〜R4をパラレルに受けて線幅方向
にシフトする1個のjビットつまり5ビットのシフトレ
ジスタSR2(第2のシフトレジスタ)とを基本に構成
することができる。
Although the invention made by the present inventor has been specifically described based on the embodiments, the invention is not limited to the above embodiments, and various modifications can be made without departing from the scope of the invention. Needless to say. For example, in FIG. 1, the bold line coordinate generation unit BLCG may use a processor of a stored program method, or may perform all drawing processing by hardware. The pattern selector PS, as shown in FIG.
J shift registers SR10 to SR that receive i bits, that is, 5 bits in the drawing direction of the dot pattern, that is, 5 shift registers
14 (first shift register) and one j-bit, that is, 5-bit shift register SR2 (second shift register) that receives the output signals R0 to R4 of these shift registers in parallel and shifts in the line width direction. And can be basically configured.

【0036】ここで、シフトレジスタSR10〜SR1
4は、パターンメモリPMの対応する出力信号MC00
〜MC40ないしMC04〜MC44を内部制御信号D
L1に従ってパラレルに取り込み、その保持データを内
部制御信号DS1に従って1ビットずつ描画方向にシフ
トする。また、シフトレジスタSR2は、シフトレジス
タSR10〜SR14の出力信号R0〜R4を内部制御
信号DL2に従ってパラレルに取り込み、その保持デー
タを内部制御信号DS2に従って1ビットずつ線幅方向
にシフトして、ドットデータDDとして出力する。この
方式を採った場合、シフトレジスタSR10〜SR14
ならびにSR2のビット数によって線幅の繰り返し周期
が制約を受けるが、カウンタと多数のスイッチを用いた
図2の場合に比較してハードウエア量を削減できるとい
う利点がある。
Here, the shift registers SR10 to SR1
4 is a corresponding output signal MC00 of the pattern memory PM
~ MC40 to MC04 to MC44 are controlled by internal control signal D
The data is fetched in parallel according to L1, and the held data is shifted bit by bit in the drawing direction according to the internal control signal DS1. The shift register SR2 takes in the output signals R0 to R4 of the shift registers SR10 to SR14 in parallel according to the internal control signal DL2, shifts the held data in the line width direction bit by bit according to the internal control signal DS2, and outputs the dot data. Output as DD. When this method is adopted, the shift registers SR10 to SR14
In addition, although the line width repetition period is restricted by the number of bits of SR2, there is an advantage that the amount of hardware can be reduced as compared with the case of FIG. 2 using a counter and a large number of switches.

【0037】図4及び図10に示されるドットパターン
は、その行及び列方向のドット数を任意に設定できる
し、そのパターンも任意である。また、図10では、用
意されるドットパターンが3種類に限定されているが、
各種太線の描画方向に対応してさらに多数のドットパタ
ーンを用意できる。本実施例では、ドットパターンの各
ドットを1ビットに対応させ、選択されたドットデータ
DDをもとに描画色選択部GMDSによる着色処理を行
っているが、各ドットをnビット構成とし、選択された
nビットのドットデータにより2のn乗種類の着色処理
を選択的に行うことができる。ドットパターンの各ドッ
トを画像メモリGMに入力されるドットデータと同じビ
ット数にすれば、描画色選択部GMDSを省略すること
もできる。パターンセレクタPSにおけるドットパター
ンの参照は、1ドット単位のみならず、例えば線幅方向
の5ドットを単位に行うことができる。太線描画処理の
方向は、終点から始点に向かって進めることができる
し、一つのドットパターン内において例えば線幅方向に
往復してジクザグに進めることもできる。
In the dot patterns shown in FIGS. 4 and 10, the number of dots in the row and column directions can be set arbitrarily, and the pattern is also arbitrary. Further, in FIG. 10, the prepared dot patterns are limited to three types,
A larger number of dot patterns can be prepared corresponding to various thick line drawing directions. In this embodiment, each dot of the dot pattern is associated with 1 bit, and the coloring process is performed by the drawing color selection unit GMDS based on the selected dot data DD. However, each dot has an n-bit configuration and is selected. It is possible to selectively perform 2 n-th power type coloring processing by the generated n-bit dot data. If each dot of the dot pattern has the same number of bits as the dot data input to the image memory GM, the drawing color selection unit GMDS can be omitted. The reference of the dot pattern in the pattern selector PS can be made not only in units of 1 dot but also in units of 5 dots in the line width direction, for example. The direction of the thick line drawing process can be advanced from the end point to the start point, or can be zigzag in a single dot pattern by reciprocating in the line width direction.

【0038】この実施例の太線描画機構により描画処理
を受ける太線は、その線幅方向に一定のパターンを持つ
ものであってもよいし、任意の曲線であってもよい。こ
の場合、曲線の各着目点において接線を想定し、同様な
描画処理を行えばよい。太線描画機構による描画処理
は、その一部を中央処理ユニットによりソフトウエア的
に実現してもよい。さらに、図1に示される太線描画機
構のブロック構成や図2及び図3に示されるパターンセ
レクタPSの具体的構成ならびに太線描画機構による描
画処理の手順及びコマンド形式等、種々の実施形態を採
りうる。
The thick line subjected to the drawing processing by the thick line drawing mechanism of this embodiment may have a constant pattern in the line width direction, or may be an arbitrary curve. In this case, similar drawing processing may be performed assuming a tangent line at each point of interest on the curve. The drawing processing by the thick line drawing mechanism may be partially implemented by software by the central processing unit. Further, various embodiments such as the block configuration of the thick line drawing mechanism shown in FIG. 1, the specific configuration of the pattern selector PS shown in FIGS. 2 and 3 and the procedure and command format of the drawing process by the thick line drawing mechanism can be adopted. .

【0039】以上の説明では、主として本発明者によっ
てなされた発明をその背景となった利用分野であるグラ
フィックプロセッサに適用した場合について説明した
が、それに限定されるものではなく、例えば、画像処理
機能を有するワードプロセッサやワークステーション等
にも適用できる。この発明は、少なくとも画像処理機能
を有し太線描画を行う画像処理装置に広く適用できる。
In the above description, the case where the invention made by the present inventor is mainly applied to the graphic processor which is the background field of application has been described. However, the present invention is not limited to this and, for example, an image processing function. It can also be applied to a word processor or workstation having a. The present invention can be widely applied to an image processing apparatus that has at least an image processing function and draws a thick line.

【0040】[0040]

【発明の効果】本願において開示される発明のうち代表
的なものによって得られる効果を簡単に説明すれば、下
記の通りである。すなわち、グラフィックプロセッサ等
の画像処理装置に、各種太線に対応して用意されるi行
×j列のドットパターンを保持するパターンメモリと、
所定のアルゴリズムに従って指定される2点間の中心経
路を求める太線座標発生部と、i進及びj進のカウンタ
の出力信号に従って上記ドットパターンの各ドットを中
心経路に沿って描画方向及び線幅方向に順次参照するパ
ターンセレクタとを含む太線描画機構を設けることで、
始点及び終点ならびに線種を指定するだけで、その線幅
方向のパターンが一定でない各種太線を単一コマンドに
よって描画しうるグラフィックプロセッサ等の画像処理
装置を実現することができる。この結果、画像処理装置
のプログラムステップ数を削減し、その処理能力を高め
ることができる。
The effects obtained by the typical ones of the inventions disclosed in the present application will be briefly described as follows. That is, an image processing device such as a graphic processor, a pattern memory for holding dot patterns of i rows × j columns prepared corresponding to various thick lines,
A thick line coordinate generation unit that finds a central path between two points specified according to a predetermined algorithm, and a drawing direction and a line width direction of each dot of the dot pattern along the central path according to the output signals of the i-adic and j-adic counters. By providing a thick line drawing mechanism including a pattern selector that sequentially refers to
It is possible to realize an image processing device such as a graphic processor that can draw various thick lines whose patterns in the line width direction are not constant by a single command only by designating a start point, an end point, and a line type. As a result, the number of program steps of the image processing apparatus can be reduced and its processing capability can be increased.

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

【図1】この発明が適用されたグラフィックプロセッサ
の太線描画機構の一実施例を示す部分的なブロック図で
ある。
FIG. 1 is a partial block diagram showing an embodiment of a thick line drawing mechanism of a graphic processor to which the present invention is applied.

【図2】図1の太線描画機構に含まれるパターンセレク
タの第1の実施例を示す回路図である。
FIG. 2 is a circuit diagram showing a first embodiment of a pattern selector included in the thick line drawing mechanism of FIG.

【図3】図1の太線描画機構に含まれるパターンセレク
タの第2の実施例を示す回路図である。
3 is a circuit diagram showing a second embodiment of the pattern selector included in the thick line drawing mechanism of FIG.

【図4】図1のグラフィックプロセッサに用いられる私
鉄表示用太線ドットパターンの第1の実施例を示すパタ
ーン構成図である。
FIG. 4 is a pattern configuration diagram showing a first embodiment of a private railway display thick line dot pattern used in the graphic processor of FIG. 1;

【図5】図1のグラフィックプロセッサにおける太線描
画座標とその処理方向の一実施例を示す概念図である。
5 is a conceptual diagram showing an example of bold line drawing coordinates and a processing direction thereof in the graphic processor of FIG.

【図6】図4のドットパターンを用いて座標Za方向に
描画される私鉄表示用太線の一実施例を示すパターン構
成図である。
6 is a pattern configuration diagram showing an example of a private railway display thick line drawn in the coordinate Za direction using the dot pattern of FIG. 4. FIG.

【図7】図4のドットパターンを用いて座標Zb方向に
描画される私鉄表示用太線の一実施例を示すパターン構
成図である。
7 is a pattern configuration diagram showing an example of a private railway display thick line drawn in the coordinate Zb direction using the dot pattern of FIG.

【図8】図1のグラフィックプロセッサにおける私鉄表
示用太線描画コマンドの一実施例を示す概念図である。
8 is a conceptual diagram showing an example of a private line display thick line drawing command in the graphic processor of FIG. 1;

【図9】この発明に先立って本願発明者等が開発したグ
ラフィックプロセッサにおける私鉄表示用太線描画コマ
ンドの一例を示す概念図である。
FIG. 9 is a conceptual diagram showing an example of a private line display thick line drawing command in a graphic processor developed by the inventors of the present application prior to the present invention.

【図10】図1のグラフィックプロセッサに用いられる
私鉄表示用太線ドットパターンの第2の実施例を示すパ
ターン構成図である。
10 is a pattern configuration diagram showing a second embodiment of a private railway display thick line dot pattern used in the graphic processor of FIG. 1;

【図11】図10のドットパターンを用いてX軸と平行
方向に描画される私鉄表示用太線の一実施例を示すパタ
ーン構成図である。
11 is a pattern configuration diagram showing one example of a private railway display thick line drawn in a direction parallel to the X axis using the dot pattern of FIG.

【図12】図10のドットパターンを用いてX軸に対し
て0度近傍方向に描画される私鉄表示用太線の一実施例
を示すパターン構成図である。
12 is a pattern configuration diagram showing an example of a private railway display thick line drawn in the direction near 0 degrees with respect to the X axis using the dot pattern of FIG.

【図13】図10のドットパターンを用いてX軸に対し
て45度近傍方向に描画される私鉄表示用太線の一実施
例を示すパターン構成図である。
FIG. 13 is a pattern configuration diagram showing an embodiment of a private railway display thick line drawn in the direction near 45 degrees with respect to the X axis using the dot pattern of FIG.

【図14】図1のグラフィックプロセッサの太線描画方
式を応用しうる地図上の太線の一実施例を示す記号図で
ある。
14 is a symbol diagram showing an example of thick lines on a map to which the thick line drawing method of the graphic processor of FIG. 1 can be applied.

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

BLCG・・・太線座標発生部、CTRA,CTRB・
・・カウンタ、GMAG・・・画像メモリアドレス発生
部、PM・・・パターンメモリ、PS・・・パターンセ
レクタ、GMDS・・・描画色選択部、GM・・・画像
メモリ。PL・・・パターンラッチ、UL00〜UL0
4ないしUL40〜UL44・・・単位ラッチ回路、S
A00〜SA04ないしSA40〜SA44,SB0〜
SB4・・・スイッチ。SR10〜SR14,SR2・
・・シフトレジスタ。
BLCG ... Thick line coordinate generator, CTRA, CTRB
..Counter, GMAG ... Image memory address generation unit, PM ... Pattern memory, PS ... Pattern selector, GMDS ... Drawing color selection unit, GM ... Image memory PL: Pattern latch, UL00 to UL0
4 to UL40 to UL44 ... Unit latch circuit, S
A00 to SA04 to SA40 to SA44, SB0
SB4 ... Switch. SR10 to SR14, SR2
..Shift registers

Claims (9)

【特許請求の範囲】[Claims] 【請求項1】 少なくともその線幅方向のパターンが一
定でない所定の太線を単一のコマンドによって描画しう
ることを特徴とする画像処理装置。
1. An image processing apparatus, characterized in that at least a predetermined thick line whose pattern in the line width direction is not constant can be drawn by a single command.
【請求項2】 上記画像処理装置は、各種太線に対応し
て用意されるi行×j列のドットパターンを保持するパ
ターンメモリと、所定のアルゴリズムに従って指定され
る2点間の中心経路を求める太線座標発生部と、上記中
心経路に沿って上記ドットパターンを参照するパターン
セレクタとを含む太線描画機構を具備するものであるこ
とを特徴とする請求項1の画像処理装置。
2. The image processing apparatus obtains a pattern memory for holding dot patterns of i rows × j columns prepared corresponding to various thick lines, and a central path between two points designated according to a predetermined algorithm. The image processing apparatus according to claim 1, further comprising a thick line drawing mechanism including a thick line coordinate generation unit and a pattern selector that refers to the dot pattern along the central path.
【請求項3】 上記ドットパターンの内容は、外部から
書き換えうるものであることを特徴とする請求項2の画
像処理装置。
3. The image processing apparatus according to claim 2, wherein the content of the dot pattern can be rewritten from the outside.
【請求項4】 上記パターンセレクタは、上記中心経路
に沿って上記ドットパターンを1ドット単位で参照する
ものであり、かつこのようなドットパターンの参照を太
線の線幅方向にj回ずつまた描画方向にi回ずつ繰り返
すものであることを特徴とする請求項2又は請求項3の
画像処理装置。
4. The pattern selector refers to the dot pattern in dot units along the center path, and draws such dot pattern reference j times in a thick line width direction. The image processing apparatus according to claim 2 or 3, wherein the image processing apparatus repeats i times each in a direction.
【請求項5】 上記パターンセレクタは、上記ドットパ
ターンの描画方向のiドットを受けてループ状にシフト
するiビットのj個の第1のシフトレジスタと、上記j
個の第1のシフトレジスタの出力信号をパラレルに受け
て線幅方向にシフトする1個のjビットの第2のシフト
レジスタとを含むものであることを特徴とする請求項4
の画像処理装置。
5. The pattern selector includes j first shift registers of i bits for receiving i dots in the drawing direction of the dot pattern and shifting them in a loop, and j
5. A single j-bit second shift register that receives the output signals of the first shift registers in parallel and shifts in the line width direction is included.
Image processing device.
【請求項6】 上記太線描画機構は、上記ドットパター
ンの各ドットを描画方向に順次指定するi進の第1のカ
ウンタと、上記ドットパターンの各ドットを線幅方向に
順次指定するj進の第2のカウンタとを含むものである
ことを特徴とする請求項5の画像処理装置。
6. The thick line drawing mechanism comprises an i-ary first counter for sequentially specifying each dot of the dot pattern in the drawing direction, and a j-ary for sequentially specifying each dot of the dot pattern in the line width direction. The image processing apparatus according to claim 5, further comprising a second counter.
【請求項7】 上記第1及び第2のカウンタの初期値及
び歩進周期は、外部から設定しうるものであることを特
徴とする請求項6の画像処理装置。
7. The image processing apparatus according to claim 6, wherein the initial values and the stepping cycles of the first and second counters can be set from the outside.
【請求項8】 上記ドットパターンの各ドットの参照順
序は、太線の描画方向に応じて選択的に切り換えられる
ものであることを特徴とする請求項6又は請求項7の画
像処理装置。
8. The image processing apparatus according to claim 6, wherein the reference order of each dot of the dot pattern is selectively switched according to a drawing direction of a thick line.
【請求項9】 上記ドットパターンは、各種太線の描画
方向に対応して複数種類が用意されるものであることを
特徴とする請求項2,請求項3,請求項4,請求項5,
請求項6,請求項7又は請求項8の画像処理装置。
9. The dot pattern according to claim 2, wherein a plurality of types are prepared in correspondence with the drawing directions of various thick lines.
The image processing apparatus according to claim 6, claim 7, or claim 8.
JP4205916A 1992-07-09 1992-07-09 Image processor Pending JPH0628486A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4205916A JPH0628486A (en) 1992-07-09 1992-07-09 Image processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4205916A JPH0628486A (en) 1992-07-09 1992-07-09 Image processor

Publications (1)

Publication Number Publication Date
JPH0628486A true JPH0628486A (en) 1994-02-04

Family

ID=16514875

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4205916A Pending JPH0628486A (en) 1992-07-09 1992-07-09 Image processor

Country Status (1)

Country Link
JP (1) JPH0628486A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7446775B2 (en) 2003-08-07 2008-11-04 Renesas Technology Corp. Data processor and graphic data processing device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7446775B2 (en) 2003-08-07 2008-11-04 Renesas Technology Corp. Data processor and graphic data processing device
US7868892B2 (en) 2003-08-07 2011-01-11 Renesas Electronics Corporation Data processor and graphic data processing device

Similar Documents

Publication Publication Date Title
KR950012931B1 (en) Graphic display device
JP2817060B2 (en) Image display apparatus and method
US6181353B1 (en) On-screen display device using horizontal scan line memories
JPS6158083A (en) Fast memory system, data processing method and memory segment
US7362339B2 (en) Image processing method and apparatus
JP2500858B2 (en) Display system having extended raster operation circuit
GB2226481A (en) Method and apparatus for decomposing a quadrilateral figure for display and manipulation by a computer system
JPH01296389A (en) Method and device for processing graphic
JPH0628486A (en) Image processor
JPH05314250A (en) Method and device for smoothing enlarged image
KR100361387B1 (en) Polygon drawing method and polygon drawing apparatus
JPH06223199A (en) Image composing device
JP2836617B2 (en) Rendering processor
JP2675169B2 (en) Graphic processing system
JP2621138B2 (en) Overlapping character generation method
JP3531582B2 (en) Image processing method and image processing apparatus
JP3846142B2 (en) Image data transfer apparatus and image display processing system
JP2820068B2 (en) Image data synthesis display device
JP2787487B2 (en) Circuit for determining the position of a line segment displayed and operated on a computer system
JP2647073B2 (en) Graphic display device
JPH08138067A (en) Line segment anti-aliasing device
JP2000259845A (en) Method and device for plotting polygon
JPH0594170A (en) Vector font plotting device
JPH02168361A (en) Pattern data preparing device to prepare coordinates data and processor
JP4048731B2 (en) Image data transfer apparatus and image display processing system