JPH07129782A - Line pattern plotting system - Google Patents

Line pattern plotting system

Info

Publication number
JPH07129782A
JPH07129782A JP5275364A JP27536493A JPH07129782A JP H07129782 A JPH07129782 A JP H07129782A JP 5275364 A JP5275364 A JP 5275364A JP 27536493 A JP27536493 A JP 27536493A JP H07129782 A JPH07129782 A JP H07129782A
Authority
JP
Japan
Prior art keywords
bit
pattern
line
line pattern
bit pattern
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.)
Granted
Application number
JP5275364A
Other languages
Japanese (ja)
Other versions
JP2941156B2 (en
Inventor
Riyouji Tatebe
了士 立部
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP5275364A priority Critical patent/JP2941156B2/en
Publication of JPH07129782A publication Critical patent/JPH07129782A/en
Application granted granted Critical
Publication of JP2941156B2 publication Critical patent/JP2941156B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Image Generation (AREA)
  • Dot-Matrix Printers And Others (AREA)

Abstract

PURPOSE:To suppress the number of bit patterns to be held in advance to the minimum and to plot a line pattern with an arbitrary period in a plotting system of a line pattern applied to a universal printer which performs a printing opera tion corresponding to signals with different formats inputted from different kinds of host computers. CONSTITUTION:This system is comprised in such a way that the continuous line bit pattern of the continuous line part of line pattern is plotted logically in a bit map memory 9 as it is, and a counter means 8 is counted up, while the null part bit of null part bit pattern for a part including the null part of line pattern is shifted corresponding to a count value by the counter means 8, then, the bit pattern which takes the exclusive-OR of the null part bit pattern after shift and the continuous bit pattern is plotted logically on the bit map memory 9, and the counter means 8 is counted up by prescribed bits.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】(目次) 産業上の利用分野 従来の技術(図20〜図24) 発明が解決しようとする課題 課題を解決するための手段(図1) 作用(図1) 実施例 ・第1実施例の説明(図2〜図14) ・第2実施例の説明(図2,図15〜図19) 発明の効果(Table of Contents) Industrial Application Field of the Prior Art (FIGS. 20 to 24) Problem to be Solved by the Invention Means for Solving the Problem (FIG. 1) Action (FIG. 1) Embodiment 1st Embodiment Description of Example (FIGS. 2 to 14) • Description of Second Embodiment (FIGS. 2 and 15 to 19)

【0002】[0002]

【産業上の利用分野】本発明は、機種の異なるホストコ
ンピュータからの入力される、形式の異なる信号に対応
して印字動作が行なえるような汎用的プリンタ装置にお
いて適用される、ラインパターンの描画方式に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention is applied to a general-purpose printer device capable of performing a printing operation corresponding to signals of different formats input from host computers of different models and drawing a line pattern. Regarding the scheme.

【0003】[0003]

【従来の技術】例えば、電子計算機に接続されたプリン
タ装置によって、アンダーラインやオーバーラインなど
の線を描画するため、一般的には、プリンタ装置の制御
部はビットマップフォント(文字情報)と同様に、上記
のようなライン情報を、ビットパターンとして保有して
おり、それをビットマップメモリに論理的に描画するこ
とにより、印刷が行なえるようになっている。
2. Description of the Related Art For example, since a printer device connected to an electronic computer draws lines such as underlines and overlines, the control unit of the printer device is generally the same as a bitmap font (character information). In addition, the line information as described above is held as a bit pattern, and by logically drawing it in a bitmap memory, printing can be performed.

【0004】即ち、図20は一般的なラインパターン描
画方式を採用するプリンタ装置を示すブロック図である
が、この図20に示すプリンタ装置は、内部の処理動作
を制御する主制御部(制御部)101と、外部とのデー
タの授受を行なうインターフェイス部102と、印刷デ
ータを論理的に描画するビットマップメモリ(BMM)
103と、ビットマップメモリ103に論理的にライン
パターンを描画するラインパターン描画部104と、ラ
インのパターンをビット情報として格納しているビット
パターン格納部105と、ビットマップメモリ103に
描画された内容の印刷を制御する印刷制御部106とを
そなえている。
That is, FIG. 20 is a block diagram showing a printer device adopting a general line pattern drawing method. The printer device shown in FIG. 20 is a main control unit (control unit) for controlling internal processing operations. ) 101, an interface unit 102 for exchanging data with the outside, and a bitmap memory (BMM) for logically drawing print data
103, a line pattern drawing unit 104 that logically draws a line pattern in the bitmap memory 103, a bit pattern storage unit 105 that stores a line pattern as bit information, and the contents drawn in the bitmap memory 103. And a print control unit 106 that controls printing of the.

【0005】ここで、ビットマップメモリ103に格納
されるデータにおいて、1ビット当たり1ドットの画像
データを有するものとし、実線を示すビットを「1」と
し、空白部を示すビットを「0」とする。また、ビット
パターン格納部105には、例えば、図22(a)に示
すような32ビットの全ビットを「1」(網かけ部分)
とする実線ビットパターンと、図22(b)に示すよう
な8ビットの実線(網かけ部分)と8ビットの空白部が
交互に配置されるような空白部ビットパターンとが、予
め格納されている。
Here, in the data stored in the bit map memory 103, it is assumed that there is image data of 1 dot per bit, the bit indicating the solid line is "1", and the bit indicating the blank part is "0". To do. Further, in the bit pattern storage unit 105, for example, all 32 bits as shown in FIG. 22A are set to “1” (shaded portion).
And a blank bit pattern in which 8-bit solid lines (shaded portions) and 8-bit blank portions are alternately arranged as shown in FIG. 22B are stored in advance. There is.

【0006】このような構成により、インターフェイス
102を介して、主制御部101に入力されるデータ信
号に基づいて、例えば、図21に示すような、40ドッ
トの実線,8ドットの空白部,8ドットの実線及び8ド
ットの空白部により1周期が構成される一点鎖線パター
ンのラインパターンを描画する場合は、ビットパターン
格納部105にて格納される実線ビットパターンと空白
部ビットパターンとを、ラインパターン描画部104に
て交互にビットマップメモリ103に描画する。これに
より、印刷制御部106においては、ビットマップメモ
リ103に描画された、上記の図21に示すようなライ
ンパターンを印刷する。
With such a configuration, based on the data signal input to the main control unit 101 via the interface 102, for example, a solid line of 40 dots, a blank portion of 8 dots, 8 as shown in FIG. When drawing a line pattern of an alternate long and short dash line pattern in which one cycle is composed of a solid line of dots and a blank portion of 8 dots, the solid line bit pattern and the blank portion bit pattern stored in the bit pattern storage unit 105 are lined up. The pattern drawing unit 104 alternately draws on the bitmap memory 103. As a result, the print control unit 106 prints the line pattern drawn in the bitmap memory 103 as shown in FIG.

【0007】[0007]

【発明が解決しようとする課題】しかしながら、上記の
ような方式を採用した場合においては、図23に示すよ
うな、1周期を128ドットとするような、長い周期の
ラインパターンを実現する場合は、図24(a)〜図2
4(d)に示すような、多くのビットパターンを予め保
有していなければならず、ビットパターン格納部105
の容量が大きくなる、という課題がある。
However, in the case of adopting the above-mentioned method, in the case of realizing a line pattern with a long cycle such as one dot having 128 dots as shown in FIG. 24 (a) to FIG.
As shown in FIG. 4 (d), many bit patterns must be held in advance, and the bit pattern storage unit 105
However, there is a problem that the capacity becomes large.

【0008】また、ラインパターン描画部104におい
て、ビットパターンをビットマップメモリ103に描画
する際は、その性質上、8ビット又はその倍数ビット単
位でデータが書かれるようになっており、図21におけ
る1点鎖線のように、ラインパターンの1周期が8ビッ
ト又はその倍数ビット単位で構成されるものしか描画す
ることができず、任意の周期を持つラインパターンの描
画が困難である、という課題もある。
When the bit pattern is drawn in the bit map memory 103 in the line pattern drawing unit 104, data is written in units of 8 bits or its multiple bits due to its nature. There is also a problem that it is difficult to draw a line pattern having an arbitrary cycle, as in the case of one-dot chain line, one cycle of the line pattern can be drawn only in units of 8 bits or multiples thereof. is there.

【0009】本発明は、このような課題に鑑み創案され
たもので、予め保有するビットパターンを最小限に抑え
るとともに、任意の周期を持つラインパターンの描画を
可能とするラインパターン描画方式を提供することを目
的とする。
The present invention has been devised in view of the above problems, and provides a line pattern drawing method capable of drawing a line pattern having an arbitrary period while minimizing the bit patterns held in advance. The purpose is to do.

【0010】[0010]

【課題を解決するための手段】図1は本発明の原理ブロ
ック図であるが、この図1において、1は所定ビット数
の全ビットを「1」とする実線ビットパターンと、一定
長さの空白部ビットを「1」とし、その他の部分を
「0」とする空白部ビットパターンとを予め格納するビ
ットパターン格納部である。
FIG. 1 is a block diagram of the principle of the present invention. In FIG. 1, 1 is a solid line bit pattern in which all bits of a predetermined number of bits are "1", and a constant length bit pattern. This is a bit pattern storage unit that stores in advance a blank part bit pattern in which the blank part bit is "1" and the other parts are "0".

【0011】また、2は所定ビット数を一単位とするビ
ットパターン毎に、ビットマップメモリ9に対してライ
ンパターンを論理描画するラインパターン論理描画手段
であり、8はビットマップメモリ9に論理描画したビッ
トパターンのビット数をカウントするカウント手段であ
る。また、ラインパターン論理描画手段2の判定部3に
より、カウント手段8からのカウント値に応じて、ビッ
トパターン格納部1からのビットパターンが、ラインパ
ターンの実線部であると判定された場合は、論理描画部
4において、実線ビットパターンをそのままビットマッ
プメモリ9に論理描画して、カウント手段8を所定ビッ
ト数だけカウントアップするようになっている。
Reference numeral 2 is a line pattern logical drawing means for logically drawing a line pattern in the bitmap memory 9 for each bit pattern having a predetermined number of bits as a unit, and 8 is a logical drawing in the bitmap memory 9. It is a counting means for counting the number of bits of the selected bit pattern. When the determination unit 3 of the line pattern logic drawing unit 2 determines that the bit pattern from the bit pattern storage unit 1 is the solid line portion of the line pattern according to the count value from the counting unit 8, In the logic drawing section 4, the solid line bit pattern is logically drawn as it is in the bit map memory 9 and the counting means 8 is counted up by a predetermined number of bits.

【0012】一方、ラインパターン論理描画手段2の判
定部3により、カウント手段8からのカウント値に応じ
て、ビットパターン格納部1からのビットパターンが、
ラインパターンの空白部を含む部分である場合は、シフ
ト部5において、カウント手段8によるカウント値に応
じて空白部ビットパターンの空白部ビットをシフトし、
排他的論理和演算部7において、シフト後の空白部ビッ
トパターンと実線ビットパターンとの排他的論理和をと
り、このビットパターンをビットマップメモリ9に論理
描画して、カウント手段8を所定ビット数だけカウント
アップするようになっている。
On the other hand, the bit pattern from the bit pattern storage unit 1 is determined by the determination unit 3 of the line pattern logic drawing unit 2 according to the count value from the counting unit 8.
If the line pattern includes a blank portion, the shift unit 5 shifts the blank portion bit of the blank portion bit pattern according to the count value of the counting means 8,
The exclusive OR calculator 7 takes an exclusive OR of the shifted blank part bit pattern and the solid line bit pattern, logically draws this bit pattern in the bit map memory 9, and causes the counting means 8 to have a predetermined number of bits. Only count up.

【0013】これにより、同期的に一定長さの空白部を
有するラインパターンを、ビットマップメモリ9に論理
描画できるようになっている(請求項1)。また、カウ
ント手段8によるカウント値に応じて、シフト部5によ
り、各空白部毎に空白部ビットパターンの空白部ビット
をシフトして各空白部に対応する2以上の空白部ビット
パターンを作成し、論理和演算部6において、これらの
2以上の空白部ビットパターンの論理和をとり、排他的
論理和演算部7において、この論理和結果と実線ビット
パターンとの排他的論理和をとったビットパターンを、
論理描画部4において、ビットマップメモリ9に論理描
画して、カウント手段8を所定ビット数だけカウントア
ップすることにより、所定ビット数のビットパターン内
に2以上の空白部を含む部分についても、ビットマップ
メモリ9に論理描画できるようになっている(請求項
2)。
Thus, the line pattern having a blank portion of a fixed length can be logically drawn in the bit map memory 9 synchronously (claim 1). Further, according to the count value of the counting means 8, the shift unit 5 shifts the blank bit of the blank bit pattern for each blank to create two or more blank bit patterns corresponding to each blank. , The logical sum operation part 6 takes the logical sum of these two or more blank part bit patterns, and the exclusive logical sum operation part 7 takes the exclusive logical sum of this logical sum result and the solid line bit pattern. The pattern
In the logical drawing unit 4, logical drawing is performed in the bit map memory 9 and the counting means 8 is counted up by a predetermined number of bits, so that even a part including two or more blank parts in the bit pattern of the predetermined number of bits is Logical drawing can be performed in the map memory 9 (claim 2).

【0014】さらに、上記の場合において、カウント手
段8によるカウント値が、ラインパターンの周期に対応
する周期ビット数を超えた場合、カウント手段8による
カウント値から周期ビット数を減算することができ(請
求項3)、また、補正手段10により、ラインパターン
の任意の周期毎に、カウント手段8によるカウント値を
補正することもできる(請求項4)。
Further, in the above case, when the count value by the counting means 8 exceeds the number of periodic bits corresponding to the cycle of the line pattern, the number of periodic bits can be subtracted from the count value by the counting means 8 ( (Claim 3) Further, the correction unit 10 can correct the count value by the counting unit 8 every arbitrary cycle of the line pattern (Claim 4).

【0015】[0015]

【作用】上述の本発明では、同期的に一定長さの空白部
を有するラインパターンを描画する際に、所定ビット数
の全ビットを「1」とする実線ビットパターンと、前記
一定長さの空白部ビットを「1」とし、その他の部分を
「0」とする空白部ビットパターンとを、ビットパター
ン格納部1に予め格納する。
According to the present invention described above, when a line pattern having a blank portion of a fixed length is synchronously drawn, a solid line bit pattern in which all bits of a predetermined number of bits are set to "1" and a fixed length of the fixed length. A blank portion bit pattern in which the blank portion bit is set to “1” and the other portions are set to “0” is stored in the bit pattern storage unit 1 in advance.

【0016】また、カウント手段8において、ビットマ
ップメモリ9に論理描画したビットパターンのビット数
をカウントする。ラインパターン論理描画手段2におい
ては、ラインパターンの実線部については、実線ビット
パターンをそのままビットマップメモリに論理描画し
て、カウント手段を所定ビット数だけカウントアップす
る一方、ラインパターンの空白部を含む部分について
は、カウント手段8によるカウント値に応じて空白部ビ
ットパターンの空白部ビットをシフトしてから、シフト
後の空白部ビットパターンと実線ビットパターンとの排
他的論理和をとったビットパターンをビットマップメモ
リ9に論理描画して、カウント手段8を所定ビット数だ
けカウントアップする。
The counting means 8 counts the number of bits of the bit pattern logically drawn in the bit map memory 9. In the line pattern logic drawing means 2, for the solid line part of the line pattern, the solid line bit pattern is logically drawn as it is in the bitmap memory and the counting means counts up by a predetermined number of bits, while including the blank part of the line pattern. For the portion, a blank part bit of the blank part bit pattern is shifted according to the count value by the counting means 8 and then a bit pattern obtained by exclusive ORing the blank part bit pattern after the shift and the solid line bit pattern. Logical drawing is performed in the bit map memory 9 and the counting means 8 is counted up by a predetermined number of bits.

【0017】これにより、所定ビット数を一単位とする
ビットパターン毎にラインパターンをビットマップメモ
リ9に論理描画してから、ビットマップメモリ9に論理
描画されたラインパターンを印刷する。また、所定ビッ
ト数のビットパターン内に2以上の空白部を含む部分に
ついては、カウント手段8によるカウント値に応じて、
各空白部毎に空白部ビットパターンの空白部ビットをシ
フトして各空白部に対応する2以上の空白部ビットパタ
ーンを作成してから、これらの2以上の空白部ビットパ
ターンの論理和結果と実線ビットパターンとの排他的論
理和をとったビットパターンをビットマップメモリに論
理描画して、カウント手段8を所定ビット数だけカウン
トアップする。
As a result, a line pattern is logically drawn in the bit map memory 9 for each bit pattern having a predetermined number of bits as a unit, and then the logically drawn line pattern is printed in the bit map memory 9. Further, with respect to a portion including two or more blank portions in the bit pattern of the predetermined number of bits, according to the count value by the counting means 8,
The blank part bits of the blank part bit pattern are shifted for each blank part to create two or more blank part bit patterns corresponding to each blank part, and then the logical sum result of these two or more blank part bit patterns is obtained. The bit pattern obtained by exclusive ORing with the solid line bit pattern is logically drawn in the bit map memory, and the counting means 8 is counted up by a predetermined number of bits.

【0018】さらに、カウント手段8によるカウント値
が、ラインパターンの周期に対応する周期ビット数を超
えた場合、カウント手段8によるカウント値から周期ビ
ット数を減算することができるほか、ラインパターンの
任意の周期毎に、カウント手段8によるカウント値を補
正することもできる。
Furthermore, when the count value of the counting means 8 exceeds the number of periodic bits corresponding to the cycle of the line pattern, the number of periodic bits can be subtracted from the count value of the counting means 8 and the line pattern can be arbitrarily set. It is also possible to correct the count value by the counting means 8 for each cycle.

【0019】[0019]

【実施例】(a)第1実施例の説明 まず、本発明の第1実施例について説明する。図2は本
発明の実施例に適用されるプリンタ装置を示すブロック
図であるが、この図2において、11は内部の処理動作
を制御する主制御部、12は装置の外部とのデータ授受
を行なうインターフェイス、13は印刷データを論理的
に描画するビットマップメモリ(BMM)である。
EXAMPLES (a) Description of First Example First, a first example of the present invention will be described. FIG. 2 is a block diagram showing a printer device applied to the embodiment of the present invention. In FIG. 2, 11 is a main control unit for controlling internal processing operations, and 12 is data transmission / reception with the outside of the device. An interface 13 is a bitmap memory (BMM) for logically drawing print data.

【0020】また、16はラインパターン描画部であ
り、このラインパターン描画部16は、ビットマップメ
モリ13に論理的にラインパターンを描画するものであ
って、例えば、32ビット毎のビットパターンをライン
パターンとして論理描画するようになっている。17は
ビットパターン格納部であり、このビットパターン格納
部17は、ラインパターン描画部16においてラインパ
ターンを論理描画するための、実線ビットパターンと空
白部ビットパターンとを格納しているものである。
A line pattern drawing unit 16 logically draws a line pattern in the bit map memory 13. For example, a line pattern is drawn every 32 bits. It is designed to be logically drawn as a pattern. A bit pattern storage unit 17 stores a solid line bit pattern and a blank portion bit pattern for logically drawing a line pattern in the line pattern drawing unit 16.

【0021】例えば、図4に示すような、68ドットの
実線部,13ドットの空白部,13ドットの実線部及び
13ドットの空白部とで1周期が構成されるラインパタ
ーンを論理描画する場合は、実線ビットパターンは、図
5(a)に示すような32ビットのうちの全ビットを
「1」としたもので、空白部ビットパターンは、図5
(b)に示すような32ビットのうちで一定長さの空白
部(この場合においては13ビット)を「1」とし、そ
れ以外を「0」としたものである。
For example, in the case of logically drawing a line pattern as shown in FIG. 4 in which one cycle is composed of a solid line portion of 68 dots, a blank portion of 13 dots, a solid line portion of 13 dots and a blank portion of 13 dots. 5 has a solid line bit pattern in which all bits of 32 bits as shown in FIG. 5A are set to “1”, and a blank part bit pattern is shown in FIG.
Among the 32 bits as shown in (b), a blank part having a constant length (13 bits in this case) is set to "1", and the other part is set to "0".

【0022】18は描画カウンタであり、この描画カウ
ンタ18は、ビットマップメモリ13に論理描画された
ラインパターンの周期を、ビット数によりカウントする
ものであり、このカウント値情報は、ラインパターン描
画部16に出力されるようになっている。なお、ライン
パターンは任意の位相から書き始めることができるの
で、初期値としてのカウント値は任意に設定できるよう
になっている。
A drawing counter 18 counts the period of the line pattern logically drawn in the bit map memory 13 by the number of bits. This count value information is the line pattern drawing unit. 16 is output. Since the line pattern can be written from any phase, the count value as an initial value can be set arbitrarily.

【0023】この場合においては、ラインパターンは3
2ビットのビットパターン毎にビットマップメモリ13
に論理描画されるので、描画カウンタ18のカウント値
も「32」ずつカウントアップ(インクリメント)され
るようになっている。なお、19はビットマップメモリ
13に論理描画された内容を印刷するための制御を行な
う印刷制御部である。
In this case, the line pattern is 3
Bit map memory 13 for each 2-bit bit pattern
Since the logical drawing is performed, the count value of the drawing counter 18 is also incremented by "32". A print control unit 19 controls the printing of the logically drawn contents in the bitmap memory 13.

【0024】ここで、主制御部11及びラインパターン
描画部16の機能に着目すると、図3に示すような構成
を有している。即ち、この図3において、21はライン
描画制御部(判定部,論理描画部,論理和演算部)であ
り、このライン描画制御部21は、ラインパターンの論
理描画を制御するものであり、主制御部11及びライン
パターン描画部16としての機能を有している。
Here, focusing on the functions of the main control unit 11 and the line pattern drawing unit 16, the configuration is as shown in FIG. That is, in FIG. 3, reference numeral 21 is a line drawing control unit (determination unit, logical drawing unit, logical sum operation unit), and the line drawing control unit 21 controls logical drawing of a line pattern. It has a function as the control unit 11 and the line pattern drawing unit 16.

【0025】具体的には、入力される描画カウンタ18
からのカウント値情報に基づいて、ビットマップメモリ
13に論理描画されたラインパターンの位相を判定し、
この判定結果に基づいて、ビットパターン格納部17に
格納される実線ビットパターン又は空白部ビットパター
ンを用いて、ラインパターンを論理描画するようになっ
ているのである。
Specifically, the input drawing counter 18
The phase of the line pattern logically drawn in the bitmap memory 13 is determined based on the count value information from
Based on this determination result, the line pattern is logically drawn using the solid line bit pattern or the blank part bit pattern stored in the bit pattern storage unit 17.

【0026】なお、例えば、ライン描画制御部21にお
いてラインパターンの論理描画を行なうに際し、図5
(a)に示す実線ビットパターンを用いる場合は、その
ままビットマップメモリ13に論理描画するが、図5
(b)に示す空白部ビットパターンを用いる場合は、ラ
インパターンの位相に応じて、後述するビットシフト部
22及び排他的論理和演算部23とライン描画制御部2
1とによる処理が施されて論理描画されるようになって
いる。
Note that, for example, when the line drawing control unit 21 performs the logical drawing of the line pattern, as shown in FIG.
When the solid line bit pattern shown in (a) is used, logical drawing is performed as it is in the bitmap memory 13, but FIG.
When the blank part bit pattern shown in (b) is used, a bit shift part 22, an exclusive OR operation part 23, and a line drawing control part 2 which will be described later are selected according to the phase of the line pattern.
The process 1 and the process 1 are performed for logical drawing.

【0027】ビットシフト部(シフト部)22は、ライ
ン描画制御部21からの位相判定結果としてのカウント
値情報に基づき、ビットパターン格納部17からの空白
部ビットパターンにおける空白部ビットについてビット
シフトするものである。また、排他的論理和演算部23
は、ビットシフト部22においてシフトされた空白部ビ
ットパターンと実線ビットパターンとの排他的論理和を
算出し、この算出結果を、空白部を含むラインパターン
を論理描画するためのビットパターンとしてライン描画
制御部21に出力するものである。
The bit shift section (shift section) 22 bit-shifts the blank part bits in the blank part bit pattern from the bit pattern storage part 17 based on the count value information as the phase determination result from the line drawing control part 21. It is a thing. In addition, the exclusive OR calculation unit 23
Calculates the exclusive OR of the blank part bit pattern and the solid line bit pattern shifted in the bit shift part 22, and draws the calculation result as a bit pattern for logically drawing the line pattern including the blank part. It is output to the control unit 21.

【0028】例えば、上記の図4に示すラインパターン
を論理描画する場合において、書出し部分の68ドット
の実線部分を論理描画するにあたり、描画カウンタ18
の初期値は「0」とすると、最初の64ビットについて
は、描画カウンタ18が「32」だけカウントアップさ
れ、図5(a)に示す実線ビットパターンが論理描画さ
れる処理が2回行なわれ、描画カウンタ18のカウント
値は「64」となるが、次の32ビットを論理描画する
に際しては、描画カウンタ18は「96」とカウントア
ップされ、図5(b)に示す空白部ビットパターンにつ
いて、ビットシフト部22において4ビットシフトした
もの〔図6(a)参照〕と、30ビットシフトしたもの
〔図6(b)参照〕とを用意して、これらの論理和をラ
イン描画制御部21において演算し〔図7参照〕、この
演算結果と実線ビットパターンとの排他的論理和を排他
的論理和演算部23にて演算し〔図8参照〕、この算出
結果を、空白部を含むラインパターンを論理描画するた
めのビットパターンとしてライン描画制御部21に出力
することにより、このラインパターンを論理描画するの
である。
For example, in the case where the line pattern shown in FIG. 4 is logically drawn, the drawing counter 18 is used to logically draw the 68-dot solid line part of the writing part.
If the initial value of is 0, the drawing counter 18 is incremented by 32 for the first 64 bits, and the process of logically drawing the solid line bit pattern shown in FIG. 5A is performed twice. The count value of the drawing counter 18 is "64", but when logically drawing the next 32 bits, the drawing counter 18 is incremented to "96", and the blank part bit pattern shown in FIG. , The bit shift unit 22 is shifted by 4 bits (see FIG. 6A) and the shift unit is shifted by 30 bits (see FIG. 6B), and their logical sum is calculated by the line drawing control unit 21. (See FIG. 7), the exclusive OR of the result of this operation and the solid line bit pattern is calculated by the exclusive OR calculator 23 (see FIG. 8), and this calculation result is stored in the blank part. By outputting a non-line pattern in the line drawing control unit 21 as the bit pattern for the logic drawing, the line pattern is to logical drawing.

【0029】ところで、上記の場合、続いて、前述の図
6(a),(b)における場合と同様に、描画カウンタ
18は「128」とカウントアップされ、このカウント
値に基づいてビットシフトされ〔図9(a)参照〕、排
他的論理和が演算された算出結果〔図9(b)参照〕
を、ビットマップメモリ13に論理描画するようになっ
ている。
By the way, in the above case, subsequently, as in the case of FIGS. 6A and 6B described above, the drawing counter 18 is counted up to "128", and bit shift is performed based on this count value. [See FIG. 9 (a)], calculation result of exclusive OR operation [see FIG. 9 (b)]
Is logically drawn in the bitmap memory 13.

【0030】なお、上記のカウント値が「107」を超
えると、ラインパターンの1周期を描画したことになる
ので、カウント値が「128」とカウントアップされる
と、このカウント値から1周期分の「107」を減算
し、「21」とするようになっている。以下、1周期以
降の各周期においても、上述した1周期目の場合と同様
に、図10に示すように描画カウンタ18でカウントア
ップされると、同図に示すようなビットパターンで、ビ
ットマップメモリ13に論理描画されるようになってい
る。
When the count value exceeds "107", one cycle of the line pattern is drawn. Therefore, when the count value is counted up to "128", one cycle is counted from this count value. "107" is subtracted to obtain "21". Similarly to the case of the above-described first cycle, in each cycle from the first cycle onward, when the drawing counter 18 counts up as shown in FIG. 10, the bit pattern becomes as shown in FIG. Logical drawing is performed on the memory 13.

【0031】従って、上記のライン描画制御部21とビ
ットシフト部22と排他的論理和演算部23とにより、
ラインパターン論理描画手段を構成する。上述の構成に
よる、本発明の第1実施例の動作を、図11〜図14に
示すフローチャートを用いて以下に説明する。なお、ラ
インパターンを先頭から描画するにあたって、描画カウ
ンタ18のカウント値を初期値としての「0」に設定し
ておく。
Therefore, by the line drawing control unit 21, the bit shift unit 22 and the exclusive OR operation unit 23,
A line pattern logic drawing means is configured. The operation of the first embodiment of the present invention having the above configuration will be described below with reference to the flowcharts shown in FIGS. When drawing the line pattern from the beginning, the count value of the drawing counter 18 is set to "0" as an initial value.

【0032】まず、ライン描画制御部21による、ビッ
トマップメモリ13へのラインパターンの論理描画を行
なうに際して、描画カウンタ18をカウントアップさせ
る(ステップA1)。この場合においては、32ビット
毎に論理描画が行なわれるので、「32」カウントアッ
プされ、カウント値は「32」となる。そして、,ビッ
トパターン格納部17及び描画カウンタ18に格納され
るビットパターン及びカウント値情報に基づき、ライン
描画制御部21,ビットシフト部22及び排他的論理和
制御部23の動作により、所望の実線ビットパターン又
は空白部ビットパターンが作成されて(ステップA
2)、ビットマップメモリ13に論理描画される(ステ
ップA3)が、例えば、前記の図4に示すラインパター
ンの空白部を含む部分を論理描画する場合は、描画カウ
ンタ18のカウント値に応じて、後述する図12〜図1
4に示すような態様がある。
First, when the line drawing control unit 21 performs logical drawing of a line pattern in the bitmap memory 13, the drawing counter 18 is counted up (step A1). In this case, since logical drawing is performed every 32 bits, "32" is counted up and the count value becomes "32." Then, based on the bit pattern and the count value information stored in the bit pattern storage unit 17 and the drawing counter 18, a desired solid line is obtained by the operations of the line drawing control unit 21, the bit shift unit 22 and the exclusive OR control unit 23. A bit pattern or blank bit pattern is created (step A
2), logical drawing is performed in the bit map memory 13 (step A3). For example, in the case of logically drawing a portion including a blank portion of the line pattern shown in FIG. 4, depending on the count value of the drawing counter 18. 12 to 1 described later.
There is a mode as shown in FIG.

【0033】次に、ライン描画制御部21において、描
画カウンタ18からのカウント値に基づいて、ビットマ
ップメモリ13に1周期分の描画が行なわれたかどうか
を判断し(ステップA4)、1周期分が終了した場合
は、描画カウンタ18のカウント値から、1周期分のカ
ウント値を減算する(ステップA5)。例えば、前述し
たように、図4に示すラインパターンを論理描画する場
合は、描画カウンタ18のカウント値「128」から、
1周期分のカウント値「107」を減算し、カウント値
を「21」とする。
Next, in the line drawing control unit 21, it is judged based on the count value from the drawing counter 18 whether or not one cycle of drawing has been performed in the bit map memory 13 (step A4). When is finished, the count value for one cycle is subtracted from the count value of the drawing counter 18 (step A5). For example, as described above, when logically drawing the line pattern shown in FIG. 4, from the count value “128” of the drawing counter 18,
The count value "107" for one cycle is subtracted, and the count value is set to "21".

【0034】ステップA4で、ビットマップメモリ13
に1周期分の描画が終了していない場合、又はステップ
A5で、1周期分のカウント値が減算されると、ライン
描画制御部21において、描画の行なわれた点が指定さ
れた描画終了点かどうかを判断し(ステップA6)、描
画終了点である場合は描画を終了させ、描画終了点でな
い場合は、処理はステップA1に移行し、描画が終了す
るまで論理描画が行なわれる。
At step A4, the bit map memory 13
If the drawing for one cycle is not completed, or if the count value for one cycle is subtracted in step A5, the line drawing control unit 21 specifies the drawing end point at which the drawing is performed. If it is the drawing end point, the drawing is ended. If it is not the drawing end point, the process proceeds to step A1 and the logical drawing is performed until the drawing is completed.

【0035】次に、図4に示すラインパターンを論理描
画する場合の空白部を含む場合に着目し、この空白部ビ
ットパターンの作成要領について、図12〜図14を用
いて説明するが、この図12〜図14における処理は、
ラインパターンの論理描画の周期にかかわらず、対応す
るようになっている。即ち、図4に示すラインパターン
において、書出しの68ドットについては、実線ビット
パターンであるが、図12のフローチャートにおけるス
テップB10において、カウント値が「69」〜「9
4」の範囲にあると判定された場合は、ビットシフト部
22において、右にビットシフトされた空白部ビットパ
ターンを作成し(ステップB11)、この演算結果と実
線ビットパターンとの排他的論理和を、排他的論理和演
算部23において演算し(ステップB12)、この演算
結果をラインパターンの論理描画用のものとする。その
後の処理は図11のフローチャートにおけるステップA
3に移行する。
Next, paying attention to the case where a blank portion is included in the case of logically drawing the line pattern shown in FIG. 4, the procedure for creating this blank portion bit pattern will be described with reference to FIGS. 12 to 14. The processing in FIGS. 12 to 14 is
The line pattern is adapted regardless of the logical drawing cycle. That is, in the line pattern shown in FIG. 4, the writing 68 dots is a solid line bit pattern, but the count value is “69” to “9” in step B10 in the flowchart of FIG.
4 ", the bit shift unit 22 creates a blank part bit pattern bit-shifted to the right (step B11), and an exclusive OR of this operation result and the solid line bit pattern. Is calculated in the exclusive OR calculation section 23 (step B12), and the calculation result is used for logical drawing of the line pattern. The subsequent processing is step A in the flowchart of FIG.
Move to 3.

【0036】また、カウント値が「65」〜「94」の
範囲にないと判定された場合は、図12のフローチャー
トにおけるステップB20において、カウント値が「9
5」〜「100」の範囲にあると判定された場合は、ビ
ットシフト部22において、右にビットシフトされた第
1の空白部ビットパターンを作成し(ステップB2
1)、さらに右にシフトされた第2の空白部ビットパタ
ーンを作成する(ステップB22)。そして、ライン描
画制御部21において、上記の第1及び第2の空白部ビ
ットパターンの論理和を演算し(ステップB23)、こ
の演算結果と実線ビットパターンとの排他的論理和を、
排他的論理和演算部23において演算し(ステップB2
4)、この演算結果をラインパターンの論理描画用のも
のとする。その後の処理は図11のフローチャートにお
けるステップA3に移行する。
When it is determined that the count value is not within the range of "65" to "94", the count value is "9" at step B20 in the flowchart of FIG.
If it is determined to be in the range of "5" to "100", the bit shift unit 22 creates the first blank space bit pattern bit-shifted to the right (step B2).
1) Further, a second blank part bit pattern shifted to the right is created (step B22). Then, the line drawing control unit 21 calculates the logical sum of the first and second blank bit patterns (step B23), and obtains the exclusive logical sum of the calculation result and the solid line bit pattern.
The exclusive OR calculation unit 23 calculates (step B2
4) The calculation result is used for logical drawing of the line pattern. Subsequent processing moves to step A3 in the flowchart of FIG.

【0037】また、カウント値が「95」〜「100」
の範囲にないと判定された場合は、図13のフローチャ
ートにおけるステップB30において、カウント値が
「101」〜「112」の範囲にあると判定された場合
は、ビットシフト部22において、左にビットシフトさ
れた第1の空白部ビットパターンを作成し(ステップB
31)、さらに右にシフトされた第2の空白部ビットパ
ターンを作成する(ステップB32)。そして、ライン
描画制御部21において、上記の第1及び第2の空白部
ビットパターンの論理和を演算し(ステップB33)、
この演算結果と実線ビットパターンとの排他的論理和
を、排他的論理和演算部23において演算し(ステップ
B34)、この演算結果をラインパターンの論理描画用
のものとし、処理は図11のフローチャートにおけるス
テップA3に移行する。
The count value is "95" to "100".
If it is determined that the count value is in the range of “101” to “112” in step B30 in the flowchart of FIG. 13, the bit shift unit 22 shifts the bit to the left. Create a shifted first blank bit pattern (step B
31), and the second blank bit pattern shifted further to the right is created (step B32). Then, the line drawing control unit 21 calculates the logical sum of the first and second blank space bit patterns (step B33),
The exclusive OR of this operation result and the solid line bit pattern is operated in the exclusive OR operation unit 23 (step B34), and this operation result is used for the logical drawing of the line pattern, and the processing is the flowchart of FIG. Go to step A3 in.

【0038】また、カウント値が「101」〜「11
2」の範囲にないと判定された場合は、図13のフロー
チャートにおけるステップB40において、カウント値
が「113」〜「126」の範囲にあると判定された場
合は、ビットシフト部22において、右にビットシフト
された空白部ビットパターンを作成し(ステップB4
1)、この演算結果と実線ビットパターンとの排他的論
理和を、排他的論理和演算部23において演算し(ステ
ップB42)、この演算結果をラインパターンの論理描
画用のものとする。その後の処理は図11のフローチャ
ートにおけるステップA3に移行する。
Further, the count value is "101" to "11".
If it is determined that the count value is in the range of “113” to “126” in step B40 in the flowchart of FIG. 13, if it is determined that the count value is not in the range of “2”, the bit shift unit 22 moves to the right. To create a bit pattern of the blank part that has been bit-shifted to (step B4
1) The exclusive OR of this operation result and the solid line bit pattern is operated in the exclusive OR operation unit 23 (step B42), and this operation result is used for the logical drawing of the line pattern. Subsequent processing moves to step A3 in the flowchart of FIG.

【0039】また、カウント値が「113」〜「12
6」の範囲にないと判定された場合は、図14のフロー
チャートにおけるステップB40において、カウント値
が「127」〜「138」の範囲にあると判定された場
合は、ビットシフト部22において、左にビットシフト
された空白部ビットパターンを作成し(ステップB5
1)、この演算結果と実線ビットパターンとの排他的論
理和を、排他的論理和演算部23において演算し(ステ
ップB52)、この演算結果をラインパターンの論理描
画用のものとする。その後の処理は図11のフローチャ
ートにおけるステップA3に移行する。
The count value is "113" to "12".
If it is determined that the count value is in the range of “127” to “138” in step B40 in the flowchart of FIG. 14, if it is determined that the count value is not in the range of “6”, the bit shift unit 22 moves to the left. A blank part bit pattern bit-shifted to is created (step B5
1) The exclusive OR of this operation result and the solid line bit pattern is operated in the exclusive OR operation unit 23 (step B52), and this operation result is used for the logical drawing of the line pattern. Subsequent processing moves to step A3 in the flowchart of FIG.

【0040】上述したように、ラインパターンの空白部
を含むビットパターンが作成されることにより、ライン
パターンの論理描画動作の各周期において、図10に示
すように描画カウンタ18がカウントアップされると、
同図に示すようなラインパターンで、ビットマップメモ
リ13に論理描画される。このように、本発明の第1実
施例によれば、ラインパターンの空白部を一定長とすれ
ば、予め保有するビットパターンを2種類に抑えること
ができるとともに、任意の周期を持つラインパターンの
描画を可能とする利点がある。
As described above, when the bit pattern including the blank portion of the line pattern is created, the drawing counter 18 is incremented as shown in FIG. 10 in each cycle of the logical drawing operation of the line pattern. ,
A line pattern as shown in the figure is logically drawn in the bitmap memory 13. As described above, according to the first embodiment of the present invention, if the blank portion of the line pattern is set to a constant length, the number of bit patterns held in advance can be suppressed to two types, and a line pattern having an arbitrary cycle can be obtained. There is an advantage that drawing is possible.

【0041】なお、本実施例におけるライン描画制御部
21は、32ビット毎にビットマップメモリ13にライ
ンパターンを論理描画していたが、本発明によれば、こ
れに限定されず、例えば16ビットや8ビット毎等によ
りラインパターンを論理描画してもよい。 (b)第2実施例の説明 次に、本発明の第2実施例について説明する。
The line drawing control unit 21 in this embodiment logically draws a line pattern in the bit map memory 13 every 32 bits, but the present invention is not limited to this, and for example, 16 bits. Alternatively, the line pattern may be logically drawn every 8 bits. (B) Description of Second Embodiment Next, a second embodiment of the present invention will be described.

【0042】本発明の第2実施例にかかるものにおいて
は、図2に示すようなプリンタ装置に適用することがで
きるが、この図2における主制御部11,インターフェ
イス12,ビットマップメモリ13,ラインパターン描
画部16,ビットパターン格納部17及び印刷制御部1
9は、前述の第1実施例におけるものと同様の構成を有
しているが、描画カウンタ18にカウント値を補正する
手段として補正部24をそなえている点が異なる。
The second embodiment of the present invention can be applied to the printer device as shown in FIG. 2, but the main controller 11, interface 12, bit map memory 13 and line in FIG. Pattern drawing unit 16, bit pattern storage unit 17, and print control unit 1
9 has the same configuration as that of the first embodiment described above, except that the drawing counter 18 is provided with a correction section 24 as a means for correcting the count value.

【0043】即ち、図15は本発明の第2実施例を示す
図であって、第1実施例で示した図2における主制御部
11及びラインパターン描画部16の機能に着目した、
図3に示すものと対応するようになっている。即ち、こ
の図15に示すように、図3にて示したものと同様の機
能を有するライン描画制御部(判定部,論理描画部,論
理和演算部)21,ビットシフト部(シフト部)22,
排他的論理和演算部23,ビットマップメモリ13,ビ
ットパターン格納部(ビットパターン格納手段)17及
び描画カウンタ18をそなえている。
That is, FIG. 15 is a diagram showing a second embodiment of the present invention, focusing on the functions of the main control unit 11 and the line pattern drawing unit 16 in FIG. 2 shown in the first embodiment.
It corresponds to that shown in FIG. That is, as shown in FIG. 15, a line drawing control unit (determination unit, logical drawing unit, logical sum operation unit) 21 and a bit shift unit (shift unit) 22 having the same functions as those shown in FIG. ,
An exclusive OR operation unit 23, a bit map memory 13, a bit pattern storage unit (bit pattern storage means) 17, and a drawing counter 18 are provided.

【0044】補正部(補正手段)24は、ラインパター
ンの任意の周期毎に、描画カウンタ18によるカウント
値を補正するものであり、1周期毎に行なう減算処理の
回数をカウントする減算処理回数カウンタ24aをそな
えており、ラインパターンの書出し時点においては、こ
のカウント値は初期値としての「0」に設定されてい
る。
The correction unit (correction means) 24 corrects the count value of the drawing counter 18 for each arbitrary cycle of the line pattern, and the subtraction processing number counter for counting the number of subtraction processings performed for each cycle. 24a, the count value is set to "0" as an initial value at the time of writing the line pattern.

【0045】具体的には、前述の第1実施例におけるも
のと同様、図4に示すようなラインパターンを論理描画
する場合は、3周期で321ドットのラインパターンが
描画できるが、図16に示すように、320ドットを3
周期とするラインパターンを実現する場合には、補正部
24において3周期目の終了時点で、カウント値から1
周期分の減算値「107」を減算してから、1ドット分
のカウント値「1」を加算することにより、3周期目を
ドット数を「106」とするようになっている。
Specifically, as in the first embodiment described above, when logically drawing a line pattern as shown in FIG. 4, a line pattern of 321 dots can be drawn in three cycles. 320 dots as 3 as shown
When a line pattern having a cycle is realized, the correction unit 24 sets the count value to 1 at the end of the third cycle.
By subtracting the subtraction value “107” for the cycle and then adding the count value “1” for one dot, the number of dots is set to “106” in the third cycle.

【0046】即ち、図17に示すように、描画カウンタ
18のカウント値に対する描画ドットパターンは、3周
期終了時点では前述の第1実施例(図10参照)におけ
るものに比して、1ドット分ずれでいるが、この3周期
目の終了時点において、1ドット分のカウント値「1」
加算することにより補正しているので、この4周期目の
開始時点では、1周期目と同様にラインパターンが論理
描画されるようになっている。
That is, as shown in FIG. 17, the drawing dot pattern corresponding to the count value of the drawing counter 18 is one dot at the end of three cycles as compared with the one in the above-described first embodiment (see FIG. 10). There is a deviation, but at the end of this third cycle, the count value for one dot is "1".
Since the correction is performed by adding, the line pattern is logically drawn at the start point of the fourth cycle as in the first cycle.

【0047】従って、その後もラインパターンは、1周
期目〜3周期目と同様にして論理描画されるようになっ
ている。上述の構成による、本発明の第2実施例の動作
を、図18,図19に示すフローチャートを用いて以下
に説明する。この図18において、ステップC1で、前
述の第1実施例において説明した、図11のフローチャ
ートにおけるステップA1と同様に、描画カウンタ18
をカウントアップさせる。
Therefore, after that, the line pattern is logically drawn in the same manner as in the first to third cycles. The operation of the second embodiment of the present invention having the above configuration will be described below with reference to the flowcharts shown in FIGS. In FIG. 18, in step C1, the drawing counter 18 is operated in the same manner as step A1 in the flowchart of FIG. 11 described in the first embodiment.
To count up.

【0048】そして、ステップC2,ステップC3にお
いて、それぞれ、第1実施例において説明した、図11
のフローチャートにおけるステップA2,ステップA3
と同様に、ビットパターンが作成され、ラインパターン
がビットマップメモリ13に論理描画される。ステップ
C3で、ラインパターンがビットマップメモリ13に論
理描画されると、図11のフローチャートにおけるステ
ップA4と同様に、ビットマップメモリ13に1周期分
の描画が行なわれたかどうかを判断し(ステップC
4)、1周期分が終了した場合は、描画カウンタ18の
カウント値から、1周期分のカウント値を減算し(ステ
ップA5)、図19に示すような補正部24による補正
処理が行なわれる。
Then, in Step C2 and Step C3, respectively, as described in the first embodiment, FIG.
A2 and A3 in the flowchart of FIG.
Similarly, the bit pattern is created and the line pattern is logically drawn in the bitmap memory 13. When the line pattern is logically drawn in the bit map memory 13 in step C3, it is determined whether or not one cycle of drawing has been performed in the bit map memory 13 as in step A4 in the flowchart of FIG. 11 (step C
4) When one cycle is completed, the count value for one cycle is subtracted from the count value of the drawing counter 18 (step A5), and the correction processing by the correction unit 24 as shown in FIG. 19 is performed.

【0049】即ち、この補正部24による補正処理にお
いては、減算処理回数カウンタ24aのカウント値を
「1」加算することにより、カウントアップする(ステ
ップD1)。そして、この減算処理回数カウンタ24の
カウント値が「3」となった場合は、3周期の論理描画
が行なわれ、描画カウンタ18に対しての1周期分のカ
ウント値「107」の減算処理が3回行なわれたとし
て、減算処理の行なわれた描画カウンタ18のカウント
値について、「1」加算することにより補正するととも
に、減算処理カウンタ24aのカウント値を初期化する
(ステップD3)。
That is, in the correction processing by the correction unit 24, the count value of the subtraction processing number counter 24a is incremented by "1" (step D1). Then, when the count value of the subtraction processing number counter 24 becomes "3", logical drawing of three cycles is performed, and the subtraction processing of the count value "107" for one cycle to the drawing counter 18 is performed. Assuming that the subtraction processing has been performed three times, the count value of the drawing counter 18 subjected to the subtraction processing is corrected by adding "1", and the count value of the subtraction processing counter 24a is initialized (step D3).

【0050】ステップD2で、カウント値が「2」に満
たなかった場合や、ステップD3による描画カウンタ1
8のカウンタ値の補正が行なわれると、処理は前述のス
テップA6と同様のステップC7に移行し、ライン描画
制御部21において、描画の行なわれた点が指定された
描画終了点かどうかを判断し(ステップC7)、描画終
了点である場合は描画を終了させ、描画終了点でない場
合は、処理はステップC1に移行し、描画が終了するま
で論理描画が行なわれる。
When the count value is less than "2" at step D2, or when the drawing counter 1 at step D3
When the counter value of 8 is corrected, the process proceeds to step C7 similar to step A6 described above, and the line drawing control unit 21 determines whether the drawing point is the specified drawing end point or not. If it is the drawing end point, the drawing is ended. If it is not the drawing end point, the process proceeds to step C1 and the logical drawing is performed until the drawing is completed.

【0051】このように、本発明の第2実施例によれ
ば、第1実施例にて享受される作用効果が得られる他
に、ラインパターンを描画する際のドット数に対応し
て、ラインパターンを論理描画できる。なお、本実施例
におけるライン描画制御部21は、32ビット毎にビッ
トマップメモリ13にラインパターンを論理描画してい
たが、本発明によれば、これに限定されず、例えば16
ビットや8ビット毎等によりラインパターンを論理描画
してもよい。
As described above, according to the second embodiment of the present invention, in addition to the effect and advantage obtained in the first embodiment, the line corresponding to the number of dots at the time of drawing the line pattern can be obtained. The pattern can be drawn logically. The line drawing control unit 21 in the present embodiment logically draws a line pattern in the bitmap memory 13 every 32 bits, but the present invention is not limited to this, and for example, 16
The line pattern may be logically drawn by every 8 bits or 8 bits.

【0052】なお、本実施例においては、補正部24に
よる、描画カウンタ18の補正値を「1」としていた
が、本発明によれば、これに限定されず、ラインパター
ンを描画する際のドット数に対応して、任意の補正値を
選択することができる。
In the present embodiment, the correction value of the drawing counter 18 by the correction unit 24 is set to "1", but the present invention is not limited to this, and the dot for drawing a line pattern is not limited to this. An arbitrary correction value can be selected according to the number.

【0053】[0053]

【発明の効果】以上詳述したように、本発明によれば、
以下に示すような作用効果ないし利点がある。 (1)ラインパターンの空白部を一定長とすれば、予め
保有するビットパターンを2種類に抑えることができる
とともに、任意の周期を持つラインパターンの描画を可
能とする。
As described in detail above, according to the present invention,
There are the following effects and advantages. (1) If the blank portion of the line pattern has a fixed length, it is possible to limit the number of bit patterns held in advance to two types, and it is possible to draw a line pattern having an arbitrary cycle.

【0054】(2)ラインパターンを描画する際のドッ
ト数に対応して、ラインパターンを論理描画できる。
(2) The line pattern can be logically drawn according to the number of dots when drawing the line pattern.

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

【図1】本発明の原理ブロック図である。FIG. 1 is a principle block diagram of the present invention.

【図2】本発明の実施例に適用されるプリンタ装置を示
すブロック図である。
FIG. 2 is a block diagram showing a printer device applied to an embodiment of the present invention.

【図3】本発明の第1実施例にかかる主制御部及びライ
ンパターン描画部の機能に着目したブロック図である。
FIG. 3 is a block diagram focusing on the functions of a main control unit and a line pattern drawing unit according to the first embodiment of the present invention.

【図4】本発明の第1実施例において描画するラインパ
ターンを示す図である。
FIG. 4 is a diagram showing a line pattern drawn in the first embodiment of the present invention.

【図5】(a),(b)は、本発明の第1実施例におけ
るビットパターン格納部に格納されるビットパターンを
示す図である。
5A and 5B are diagrams showing bit patterns stored in a bit pattern storage unit in the first embodiment of the present invention.

【図6】(a),(b)は、本発明の第1実施例におけ
る空白部を含むビットパターンの作成要領を説明する図
である。
6 (a) and 6 (b) are diagrams for explaining a procedure for creating a bit pattern including a blank portion in the first embodiment of the present invention.

【図7】本発明の第1実施例における空白部を含むビッ
トパターンの作成要領を説明する図である。
FIG. 7 is a diagram illustrating a procedure for creating a bit pattern including a blank portion according to the first embodiment of this invention.

【図8】本発明の第1実施例における空白部を含むビッ
トパターンの作成要領を説明する図である。
FIG. 8 is a diagram illustrating a procedure for creating a bit pattern including a blank portion according to the first embodiment of this invention.

【図9】(a),(b)は、本発明の第1実施例におけ
る空白部を含むビットパターンの作成要領を説明する図
である。
9 (a) and 9 (b) are diagrams for explaining a procedure for creating a bit pattern including a blank portion in the first embodiment of the present invention.

【図10】本発明の第1実施例における描画カウンタの
カウント値とドットパターンとを示す図である。
FIG. 10 is a diagram showing count values of a drawing counter and dot patterns in the first embodiment of the present invention.

【図11】本発明の第1実施例の動作を説明するフロー
チャートである。
FIG. 11 is a flowchart illustrating the operation of the first exemplary embodiment of the present invention.

【図12】本発明の第1実施例における空白部を含むビ
ットパターンの作成要領を説明するフローチャートであ
る。
FIG. 12 is a flowchart illustrating a procedure for creating a bit pattern including a blank portion according to the first embodiment of this invention.

【図13】本発明の第1実施例における空白部を含むビ
ットパターンの作成要領を説明するフローチャートであ
る。
FIG. 13 is a flowchart illustrating a procedure for creating a bit pattern including a blank portion according to the first embodiment of this invention.

【図14】本発明の第1実施例における空白部を含むビ
ットパターンの作成要領を説明するフローチャートであ
る。
FIG. 14 is a flowchart illustrating a procedure for creating a bit pattern including a blank portion according to the first embodiment of this invention.

【図15】本発明の第2実施例にかかる主制御部及びラ
インパターン描画部の機能に着目したブロック図であ
る。
FIG. 15 is a block diagram focusing on the functions of a main control unit and a line pattern drawing unit according to the second embodiment of the present invention.

【図16】本発明の第2実施例において描画するライン
パターンを示す図である。
FIG. 16 is a diagram showing a line pattern drawn in the second embodiment of the present invention.

【図17】本発明の第2実施例における描画カウンタの
カウント値とドットパターンとを示す図である。
FIG. 17 is a diagram showing count values of a drawing counter and dot patterns in the second embodiment of the present invention.

【図18】本発明の第2実施例の動作を説明するための
フローチャートである。
FIG. 18 is a flow chart for explaining the operation of the second embodiment of the present invention.

【図19】本発明の第2実施例における補正部による補
正処理を説明するためのフローチャートである。
FIG. 19 is a flow chart for explaining a correction process by the correction unit in the second embodiment of the present invention.

【図20】一般的なラインパターン描画方式を採用する
プリンタ装置を示すブロック図である。
FIG. 20 is a block diagram showing a printer device that employs a general line pattern drawing method.

【図21】ラインパターンとしての一点鎖線を示す図で
ある。
FIG. 21 is a diagram showing an alternate long and short dash line as a line pattern.

【図22】(a),(b)は、一般的なラインパターン
描画方式を採用するプリンタ装置におけるビットパター
ン格納部に格納されているビットパターンを示す図であ
る。
22 (a) and 22 (b) are diagrams showing bit patterns stored in a bit pattern storage unit in a printer device adopting a general line pattern drawing method.

【図23】ラインパターンとしての2点鎖線を示す図で
ある。
FIG. 23 is a diagram showing a two-dot chain line as a line pattern.

【図24】(a)〜(d)は、一般的なラインパターン
の実現方法を示す図である。
24A to 24D are diagrams showing a method of realizing a general line pattern.

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

1 ビットパターン格納手段 1A 実線ビットパターン 1B 空白部ビットパターン 2 ラインパターン論理描画手段 3 判定部 4 論理描画部 5 シフト部 6 論理和演算部 7 排他的論理和演算部 8 カウント手段 9 ビットマップメモリ 10 補正手段 11 主制御部 12 インターフェイス部 13 ビットマップメモリ 16 ラインパターン描画部 17 ビットパターン格納部(ビットパターン格納手
段) 18 描画カウンタ(カウント手段) 19 印刷制御部 21 ライン描画制御部 22 ビットシフト部 23 排他的論理和演算部 24 補正部 24a 減算処理回数カウンタ 101 主制御部 102 インターフェイス部 103 ビットマップメモリ 104 ラインパターン描画部 105 ビットパターン格納部 106 印刷制御部
1 bit pattern storage means 1A solid line bit pattern 1B blank area bit pattern 2 line pattern logical drawing means 3 determination section 4 logical drawing section 5 shift section 6 OR operation section 7 exclusive OR operation section 8 counting means 9 bitmap memory 10 Correction unit 11 Main control unit 12 Interface unit 13 Bitmap memory 16 Line pattern drawing unit 17 Bit pattern storage unit (bit pattern storage unit) 18 Drawing counter (Counting unit) 19 Printing control unit 21 Line drawing control unit 22 Bit shift unit 23 Exclusive-OR operation unit 24 Correction unit 24a Subtraction processing number counter 101 Main control unit 102 Interface unit 103 Bitmap memory 104 Line pattern drawing unit 105 Bit pattern storage unit 106 Print control unit

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 所定ビット数を一単位とするビットパタ
ーン毎にラインパターンをビットマップメモリ(9)に
論理描画してから、該ビットマップメモリ(9)に論理
描画されたラインパターンを印刷するラインパターン描
画方式において、 同期的に一定長さの空白部を有するラインパターンを描
画する際に、 該所定ビット数の全ビットを「1」とする実線ビットパ
ターンと、前記一定長さの空白部ビットを「1」とし、
その他の部分を「0」とする空白部ビットパターンとを
予め格納するとともに、 該ビットマップメモリ(9)に論理描画したビットパタ
ーンのビット数をカウントするカウント手段(8)をそ
なえ、 該ラインパターンの実線部については、該実線ビットパ
ターンをそのまま該ビットマップメモリ(9)に論理描
画して、該カウント手段(8)を該所定ビット数だけカ
ウントアップする一方、 該ラインパターンの空白部を含む部分については、該カ
ウント手段(8)によるカウント値に応じて該空白部ビ
ットパターンの空白部ビットをシフトしてから、シフト
後の空白部ビットパターンと該実線ビットパターンとの
排他的論理和をとったビットパターンを該ビットマップ
メモリ(9)に論理描画して、該カウント手段(8)を
該所定ビット数だけカウントアップすることを特徴とす
る、ラインパターン描画方式。
1. A line pattern is logically drawn in a bitmap memory (9) for each bit pattern having a predetermined number of bits as one unit, and then the logically drawn line pattern is printed in the bitmap memory (9). In the line pattern drawing method, when a line pattern having a blank portion of a fixed length is synchronously drawn, a solid line bit pattern in which all the predetermined number of bits are "1" and the blank portion of the fixed length Set the bit to "1",
A blank part bit pattern in which the other part is set to “0” is stored in advance, and a count means (8) for counting the number of bits of the bit pattern logically drawn in the bit map memory (9) is provided, and the line pattern For the solid line part, the solid line bit pattern is logically drawn as it is in the bit map memory (9) and the counting means (8) is counted up by the predetermined number of bits, while including the blank part of the line pattern. For the part, the blank part bits of the blank part bit pattern are shifted according to the count value by the counting means (8), and the exclusive OR of the shifted blank part bit pattern and the solid line bit pattern is calculated. The bit pattern taken is logically drawn in the bit map memory (9) and the counting means (8) is set to the predetermined number of bits. Characterized in that it only counts up, the line pattern drawing method.
【請求項2】 該所定ビット数のビットパターン内に2
以上の空白部を含む部分については、該カウント手段
(8)によるカウント値に応じて、各空白部毎に該空白
部ビットパターンの空白部ビットをシフトして各空白部
に対応する2以上の空白部ビットパターンを作成してか
ら、これらの2以上の空白部ビットパターンの論理和結
果と該実線ビットパターンとの排他的論理和をとったビ
ットパターンを該ビットマップメモリ(9)に論理描画
して、該カウント手段(8)を該所定ビット数だけカウ
ントアップすることを特徴とする、請求項1記載のライ
ンパターン描画方式。
2. Two in the bit pattern of the predetermined number of bits.
With respect to the portion including the blank portion, the blank portion bit of the blank portion bit pattern is shifted for each blank portion in accordance with the count value by the counting means (8), and two or more corresponding blank portions are provided. After the blank part bit pattern is created, the bit pattern obtained by exclusive ORing the result of the logical sum of these two or more blank part bit patterns and the solid line bit pattern is logically drawn in the bitmap memory (9). 2. The line pattern drawing system according to claim 1, wherein the counting means (8) counts up by the predetermined number of bits.
【請求項3】 該カウント手段(8)によるカウント値
が、該ラインパターンの周期に対応する周期ビット数を
超えた場合、該カウント手段(8)によるカウント値か
ら該周期ビット数を減算することを特徴とする、請求項
1又は2に記載のラインパターン描画方式。
3. When the count value by the counting means (8) exceeds the number of periodic bits corresponding to the cycle of the line pattern, the periodic bit number is subtracted from the count value by the counting means (8). The line pattern drawing method according to claim 1 or 2.
【請求項4】 該ラインパターンの任意の周期毎に、該
カウント手段(8)によるカウント値を補正することを
特徴とする、請求項1〜3のいずれかに記載のラインパ
ターン描画方式。
4. The line pattern drawing method according to claim 1, wherein the count value by the counting means (8) is corrected at every arbitrary cycle of the line pattern.
JP5275364A 1993-11-04 1993-11-04 Line pattern drawing method Expired - Fee Related JP2941156B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5275364A JP2941156B2 (en) 1993-11-04 1993-11-04 Line pattern drawing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5275364A JP2941156B2 (en) 1993-11-04 1993-11-04 Line pattern drawing method

Publications (2)

Publication Number Publication Date
JPH07129782A true JPH07129782A (en) 1995-05-19
JP2941156B2 JP2941156B2 (en) 1999-08-25

Family

ID=17554455

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5275364A Expired - Fee Related JP2941156B2 (en) 1993-11-04 1993-11-04 Line pattern drawing method

Country Status (1)

Country Link
JP (1) JP2941156B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000351263A (en) * 1999-06-11 2000-12-19 Dainippon Printing Co Ltd Method and apparatus for generating ground tint data
KR100686565B1 (en) * 1999-12-03 2007-02-26 후지제롯쿠스 가부시끼가이샤 Print control device

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000351263A (en) * 1999-06-11 2000-12-19 Dainippon Printing Co Ltd Method and apparatus for generating ground tint data
JP4531155B2 (en) * 1999-06-11 2010-08-25 大日本印刷株式会社 Line data creation method and apparatus
KR100686565B1 (en) * 1999-12-03 2007-02-26 후지제롯쿠스 가부시끼가이샤 Print control device

Also Published As

Publication number Publication date
JP2941156B2 (en) 1999-08-25

Similar Documents

Publication Publication Date Title
US4998211A (en) Method of and apparatus for generating a filled pattern defined by contour vectors
JP3009525B2 (en) Vector image drawing equipment
US5579450A (en) Image processing apparatus involving comparison of densities of three contiguous pixels
JPH07129782A (en) Line pattern plotting system
JPH0640259B2 (en) Data processing device
US7787707B2 (en) Image-processing device performing image process on raster image data in response to received specific code
EP0447176B1 (en) Method and apparatus for processing characters
JPH02296291A (en) Character dot pattern signal generating device
US6628289B1 (en) Rendering apparatus and method, and storage medium
EP0458571A2 (en) Image processing method and apparatus
JP3087427B2 (en) Contour data converter
JP3571119B2 (en) Image drawing device
JPS63208898A (en) Character processor
JPH06274637A (en) Image plotter
EP0453124A2 (en) Character processing method and apparatus
JP2606176B2 (en) Graphic processing unit
JP2017154395A (en) Information processing device, image processing device, and information processing method
JPH01303489A (en) Character output system
JP2937509B2 (en) Bitmap expansion method
JP2776347B2 (en) Drawing device for printer
JP2738189B2 (en) Coordinate conversion method and coordinate conversion device
JP3057811B2 (en) Data converter
JP3072756B2 (en) Drawing equipment
JPS62160867A (en) Computer facsimile communication connecting equipment
JPH01144175A (en) Correction control system for vector drawing data

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 19990601

LAPS Cancellation because of no payment of annual fees