Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP2941156B2 - Line pattern drawing method - Google Patents
[go: Go Back, main page]

JP2941156B2 - Line pattern drawing method - Google Patents

Line pattern drawing method

Info

Publication number
JP2941156B2
JP2941156B2 JP5275364A JP27536493A JP2941156B2 JP 2941156 B2 JP2941156 B2 JP 2941156B2 JP 5275364 A JP5275364 A JP 5275364A JP 27536493 A JP27536493 A JP 27536493A JP 2941156 B2 JP2941156 B2 JP 2941156B2
Authority
JP
Japan
Prior art keywords
bit
pattern
line
bits
line 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.)
Expired - Fee Related
Application number
JP5275364A
Other languages
Japanese (ja)
Other versions
JPH07129782A (en
Inventor
了士 立部
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)

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

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

【0002】[0002]

【産業上の利用分野】本発明は、機種の異なるホストコ
ンピュータから入力される、形式の異なる信号に対応し
て印字動作が行なえるような汎用的プリンタ装置におい
て適用される、ラインパターンの描画方に関する。
The present invention relates are different host computer or we enter the model, the printing operation in response to signals of different formats is applied in general printer devices such as performed, the line pattern on the drawing how.

【0003】[0003]

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

【0004】即ち、図20は一般的なラインパターン描
画方式を採用するプリンタ装置を示すブロック図である
が、この図20に示すプリンタ装置は、内部の処理動作
を制御する主制御部(制御部)101と、外部とのデー
タの授受を行なうインターフェイス部102と、印刷デ
ータを論理的に描画するビットマップメモリ(BMM)
103と、ビットマップメモリ103に論理的にライン
パターンを描画するラインパターン描画部104と、ラ
インのパターンをビット情報として格納しているビット
パターン格納部105と、ビットマップメモリ103に
描画された内容の印刷を制御する印刷制御部106とを
そなえている。
FIG. 20 is a block diagram showing a printer employing a general line pattern drawing method. The printer shown in FIG. 20 has a main control section (control section) 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 contents drawn in the bitmap memory 103. And a print control unit 106 for controlling the printing of the print data.

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

【0006】このような構成により、インターフェイス
102を介して、主制御部101に入力されるデータ信
号に基づいて、例えば、図21に示すような、40ドッ
トの実線,8ドットの空白部,8ドットの実線及び8ド
ットの空白部により1周期が構成される一点鎖線パター
ンのラインパターンを描画する場合は、ビットパターン
格納部105にて格納される実線ビットパターンと空白
部ビットパターンとを、ラインパターン描画部104に
て交互にビットマップメモリ103に描画する。これに
より、印刷制御部106においては、ビットマップメモ
リ103に描画された、上記の図21に示すようなライ
ンパターンを印刷する。
With this configuration, for example, based on a data signal input to the main control unit 101 via the interface 102, for example, as shown in FIG. When drawing a line pattern of a dash-dot line pattern in which one cycle is constituted by a solid line of dots and a blank portion of 8 dots, a solid line bit pattern and a blank portion bit pattern stored in the bit pattern storage unit 105 are drawn. The pattern drawing unit 104 draws data alternately 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 where the above-described method is adopted, when a line pattern having a long cycle such as one cycle of 128 dots as shown in FIG. 24 (a) to 2
4 (d), many bit patterns must be stored in advance, and the bit pattern storage unit 105
However, there is a problem that the capacity of the device becomes large.

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

【0009】本発明は、このような課題に鑑み創案され
たもので、予め保有するビットパターンを最小限に抑え
るとともに、任意の周期を持つラインパターンの描画を
可能とするラインパターン描画方を提供することを目
的とする。
[0009] The present invention has been in view conceived of such a problem, along with minimizing the bit pattern previously held, the line pattern drawing how to enable the drawing of the line pattern having an arbitrary cycle The purpose is to provide.

【0010】[0010]

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

【0011】また、2は所定ビット数を一単位とするビ
ットパターン毎に、ビットマップメモリ9に対してライ
ンパターンを論理描画するラインパターン論理描画手段
であり、8はビットマップメモリ9に論理描画したビッ
トパターンのビット数をカウントするカウント手段であ
る。また、ラインパターン論理描画手段2の判定部3に
より、カウント手段8からのカウント値に応じて、ビッ
トパターン格納手段1からのビットパターンが、ライン
パターンの実線部であると判定された場合は、論理描画
部4において、実線ビットパターンをそのままビットマ
ップメモリ9に論理描画して、カウント手段8を所定ビ
ット数だけカウントアップするようになっている。
Reference numeral 2 denotes a line pattern logical drawing means for logically drawing a line pattern in the bit map memory 9 for each bit pattern having a predetermined number of bits as one unit. It is a counting means for counting the number of bits of the obtained 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 a 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 counts up by a predetermined number of bits.

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

【0013】これにより、同期的に一定長さの空白部を
有するラインパターンを、ビットマップメモリ9に論理
描画できるようになっている(請求項1)。また、カウ
ント手段8によるカウント値に応じて、シフト部5によ
り、各空白部毎に空白部ビットパターンの空白部ビット
をシフトして各空白部に対応する2以上の空白部ビット
パターンを作成し、論理和演算部6において、これらの
2以上の空白部ビットパターンの論理和をとり、排他的
論理和演算部7において、この論理和結果と実線ビット
パターンとの排他的論理和をとったビットパターンを、
論理描画部4において、ビットマップメモリ9に論理描
画して、カウント手段8を所定ビット数だけカウントア
ップすることにより、所定ビット数のビットパターン内
に2以上の空白部を含む部分についても、ビットマップ
メモリ9に論理描画できるようになっている(請求項
2)。
Thus, a line pattern having a blank portion of a fixed length can be logically drawn on the bit map memory 9 synchronously (claim 1). Further, in accordance with 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 OR operation unit 6 calculates the OR of these two or more blank part bit patterns, and the exclusive OR operation unit 7 calculates the exclusive OR of the result of the OR operation and the solid line bit pattern. Pattern
The logic drawing unit 4 performs logical drawing on the bitmap memory 9 and counts up the counting unit 8 by a predetermined number of bits. Logic drawing can be performed on the map memory 9 (claim 2).

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

【0015】[0015]

【作用】上述の本発明では、同期的に一定長さの空白部
を有するラインパターンを描画する際に、所定ビット数
の全ビットを「1」とする実線ビットパターン1Aと、
前記一定長さの空白部ビットを「1」とし、その他の部
分を「0」とする空白部ビットパターン1Bとを、ビッ
トパターン格納手段1に予め格納する。
According to the present invention, when a line pattern having a blank portion of a fixed length is synchronously drawn, a solid line bit pattern 1A in which all bits of a predetermined number of bits are "1";
The blank portion bit pattern 1B , in which the blank portion bit of the fixed length is set to “1” and the other portions are set to “0”, is stored in the bit pattern storage means 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 portion of the line pattern, 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. For the portion including the bit, the blank portion bit of the blank portion bit pattern is shifted according to the count value of the counting means 8, and then the bit obtained by taking the exclusive OR of the shifted blank portion bit pattern and the solid line bit pattern The pattern is logically drawn in the bit map memory 9 and the counting means 8 counts up by a predetermined number of bits.

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

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

【0019】[0019]

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

【0020】また、16はラインパターン描画部であ
り、このラインパターン描画部16は、ビットマップメ
モリ13に論理的にラインパターンを描画するものであ
って、例えば、32ビット毎のビットパターンをライン
パターンとして論理描画するようになっている。17は
ビットパターン格納部であり、このビットパターン格納
部17は、ラインパターン描画部16においてラインパ
ターンを論理描画するための、実線ビットパターンと空
白部ビットパターンとを格納しているものである。
Reference numeral 16 denotes a line pattern drawing unit. The line pattern drawing unit 16 draws a line pattern logically in the bit map memory 13. For example, a line pattern drawing unit 16 Logical drawing is performed as a pattern. Reference numeral 17 denotes a bit pattern storage unit. The bit pattern storage unit 17 stores a solid line bit pattern and a blank part 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, when a line pattern composed of a solid line of 68 dots, a blank portion of 13 dots, a solid line portion of 13 dots, and a blank portion of 13 dots as shown in FIG. Is a solid line bit pattern in which all bits of 32 bits as shown in FIG. 5A are set to “1”, and a blank bit pattern is
In the 32 bits shown in (b), a blank portion of a fixed length (13 bits in this case) is set to “1”, and the rest is set to “0”.

【0022】18は描画カウンタであり、この描画カウ
ンタ18は、ビットマップメモリ13に論理描画された
ラインパターンの周期を、ビット数によりカウントする
ものであり、このカウント値情報は、ラインパターン描
画部16に出力されるようになっている。なお、ライン
パターンは任意の位相から書き始めることができるの
で、初期値としてのカウント値は任意に設定できるよう
になっている。
Reference numeral 18 denotes a drawing counter. The drawing counter 18 counts the period of a line pattern logically drawn in the bit map memory 13 by the number of bits. 16 is output. Since the line pattern can be written from an arbitrary 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 counted up (incremented) by “32”. Reference numeral 19 denotes a print control unit that performs control for printing the contents logically drawn on the bitmap memory 13.

【0024】ここで、主制御部11及びラインパターン
描画部16の機能に着目すると、図3に示すような構成
を有している。即ち、この図3において、21はライン
描画制御部(判定部,論理描画部,論理和演算部)であ
り、このライン描画制御部21は、ラインパターンの論
理描画を制御するものであり、主制御部11及びライン
パターン描画部16としての機能を有している。
Here, focusing on the functions of the main control section 11 and the line pattern drawing section 16, it has a configuration as shown in FIG. That is, in FIG. 3, reference numeral 21 denotes a line drawing control unit (determination unit, logical drawing unit, logical sum operation unit). The line drawing control unit 21 controls the 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に
格納される実線ビットパターン又は空白部ビットパター
ンを用いて、ラインパターンを論理描画するようになっ
ているのである。
More 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 bit pattern stored in the bit pattern storage unit 17.

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

【0027】ビットシフト部(シフト部)22は、ライ
ン描画制御部21からの位相判定結果としてのカウント
値情報に基づき、ビットパターン格納部17からの空白
部ビットパターンにおける空白部ビットについてビット
シフトするものである。また、排他的論理和演算部23
は、ビットシフト部22においてシフトされた空白部ビ
ットパターンと実線ビットパターンとの排他的論理和を
算出し、この算出結果を、空白部を含むラインパターン
を論理描画するためのビットパターンとしてライン描画
制御部21に出力するものである。
The bit shift unit (shift unit) 22 shifts the bit of the blank part bit in the blank part bit pattern from the bit pattern storage unit 17 based on the count value information as the phase determination result from the line drawing control unit 21. Things. The exclusive OR operation unit 23
Calculates the exclusive OR of the blank part bit pattern shifted by the bit shift unit 22 and the solid line bit pattern, and uses the calculation result as a bit pattern for logically drawing a line pattern including a blank part. This 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, when the line pattern shown in FIG. 4 is logically drawn, the drawing counter 18 is used to logically draw the 68-dot solid line portion of the writing portion.
Is set to "0", the drawing counter 18 is counted up 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 the next 32 bits are logically drawn, the drawing counter 18 is counted up to "96", and the blank portion bit pattern shown in FIG. , And a bit shift unit 22 (see FIG. 6 (a)) and a bit shift unit 30 (see FIG. 6 (b)). (See FIG. 7), and the exclusive OR of this operation result and the solid line bit pattern is calculated by the exclusive OR operation unit 23 (see FIG. 8). 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, the drawing counter 18 is counted up to "128" and bit-shifted based on the count value, as in the case of FIGS. 6 (a) and 6 (b). [Refer to FIG. 9 (a)], calculation result of exclusive OR operation [Refer to FIG. 9 (b)]
Are logically drawn in the bitmap memory 13.

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

【0031】従って、上記のライン描画制御部21とビ
ットシフト部22と排他的論理和演算部23とにより、
ラインパターン論理描画手段を構成する。上述の構成に
よる、本発明の第1実施例の動作を、図11〜図14に
示すフローチャートを用いて以下に説明する。なお、ラ
インパターンを先頭から描画するにあたって、描画カウ
ンタ18のカウント値を初期値としての「0」に設定し
ておく。
Accordingly, the line drawing control unit 21, the bit shift unit 22, and the exclusive OR operation unit 23
It constitutes a line pattern logic drawing means. 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 the line pattern is drawn 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 section 21 performs logical drawing of a line pattern on the bit map memory 13, the drawing counter 18 is counted up (step A1). In this case, since the 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, the desired solid line is operated 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 a blank bit pattern is created (step A
2) The logical drawing is performed on the bit map memory 13 (step A3). For example, when the portion including the blank portion of the line pattern shown in FIG. 12 to 1 to be described later.
As shown in FIG.

【0033】次に、ライン描画制御部21において、描
画カウンタ18からのカウント値に基づいて、ビットマ
ップメモリ13に1周期分の描画が行なわれたかどうか
を判断し(ステップA4)、1周期分が終了した場合
は、描画カウンタ18のカウント値から、1周期分のカ
ウント値を減算する(ステップA5)。例えば、前述し
たように、図4に示すラインパターンを論理描画する場
合は、描画カウンタ18のカウント値「128」から、
1周期分のカウント値「107」を減算し、カウント値
を「21」とする。
Next, the line drawing control section 21 determines whether or not one cycle of drawing has been performed on the bitmap memory 13 based on the count value from the drawing counter 18 (step A4). Is completed, 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 the line pattern shown in FIG. 4 is logically drawn, 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に移行し、描画が終了す
るまで論理描画が行なわれる。
In step A4, the bit map memory 13
If the drawing for one cycle has not been completed, or if the count value for one cycle has been subtracted in step A5, the line drawing control unit 21 specifies the point where the drawing was performed at the specified drawing end point. It is determined whether or not it is the drawing end point (step A6). 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 the line pattern shown in FIG. 4 includes a blank portion in the case of logical drawing, the procedure for creating this blank portion bit pattern will be described with reference to FIGS. The processing in FIGS.
This is supported regardless of the cycle of the logical drawing of the line pattern. That is, in the line pattern shown in FIG. 4, the writing start 68 dots are solid line bit patterns, but the count values are “69” to “9” in step B10 in the flowchart of FIG.
If it is determined that the value falls within the range of "4", the bit shift unit 22 creates a blank bit pattern bit-shifted to the right (step B11), and exclusive ORs the operation result with the solid line bit pattern. Is calculated by the exclusive OR operation unit 23 (step B12), and the operation result is used for logical drawing of the line pattern. Subsequent processing is performed at step A in the flowchart of FIG.
Move to 3.

【0036】また、カウント値が「6」〜「94」の
範囲にないと判定された場合は、図12のフローチャー
トにおけるステップB20において、カウント値が「9
5」〜「100」の範囲にあると判定された場合は、ビ
ットシフト部22において、右にビットシフトされた第
1の空白部ビットパターンを作成し(ステップB2
1)、さらに右にシフトされた第2の空白部ビットパタ
ーンを作成する(ステップB22)。そして、ライン描
画制御部21において、上記の第1及び第2の空白部ビ
ットパターンの論理和を演算し(ステップB23)、こ
の演算結果と実線ビットパターンとの排他的論理和を、
排他的論理和演算部23において演算し(ステップB2
4)、この演算結果をラインパターンの論理描画用のも
のとする。その後の処理は図11のフローチャートにお
けるステップA3に移行する。
Further, if the count value is not determined to be in the range of "6 9" - "94" in step B20 in the flowchart of FIG. 12, the count value is "9
If it is determined that the value is in the range of “5” to “100”, the bit shift unit 22 creates a first blank portion bit pattern bit-shifted to the right (step B2).
1) A second blank bit pattern shifted to the right is created (step B22). Then, the line drawing controller 21 calculates the logical sum of the first and second blank portion bit patterns (step B23), and calculates the exclusive logical sum of the calculation result and the solid line bit pattern.
An operation is performed in the exclusive OR operation unit 23 (step B2
4) The calculation result is used for logical drawing of a line pattern. Thereafter, the process proceeds 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 not within the range of “101” to “112” in step B30 in the flowchart of FIG. Create a shifted first blank bit pattern (step B
31) Then, a second blank portion bit pattern shifted to the right is created (step B32). Then, the line drawing control unit 21 calculates the logical sum of the first and second blank portion bit patterns (step B33).
The exclusive OR of this operation result and the solid line bit pattern is calculated in the exclusive OR operation unit 23 (step B34), and this operation result is used for drawing the logic of the line pattern. To step A3.

【0038】また、カウント値が「101」〜「11
2」の範囲にないと判定された場合は、図13のフロー
チャートにおけるステップB40において、カウント値
が「113」〜「126」の範囲にあると判定された場
合は、ビットシフト部22において、右にビットシフト
された空白部ビットパターンを作成し(ステップB4
1)、この演算結果と実線ビットパターンとの排他的論
理和を、排他的論理和演算部23において演算し(ステ
ップB42)、この演算結果をラインパターンの論理描
画用のものとする。その後の処理は図11のフローチャ
ートにおけるステップA3に移行する。
The count values are "101" to "11".
If it is determined that the count value is not in the range of “2”, the bit shift unit 22 determines that the count value is in the range of “113” to “126” in step B40 in the flowchart of FIG. (Step B4)
1) The exclusive OR of this operation result and the solid line bit pattern is calculated by the exclusive OR operation unit 23 (step B42), and the operation result is used for drawing the logic of the line pattern. Thereafter, the process proceeds 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 not in the range of “127” to “138” in step B40 in the flowchart of FIG. To create a blank bit pattern that is bit shifted (step B5).
1) The exclusive OR of this operation result and the solid line bit pattern is calculated in the exclusive OR operation unit 23 (step B52), and this operation result is used for drawing the logic of the line pattern. Thereafter, the process proceeds 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 counts up as shown in FIG. 10 in each cycle of the logical drawing operation of the line pattern. ,
Logical drawing is performed on the bitmap memory 13 in a line pattern as shown in FIG. As described above, according to the first embodiment of the present invention, if the blank portion of the line pattern is set to a fixed length, the number of bit patterns held in advance can be suppressed to two types, and a line pattern having an arbitrary period can be saved. There is an advantage of enabling drawing.

【0041】なお、本実施例におけるライン描画制御部
21は、32ビット毎にビットマップメモリ13にライ
ンパターンを論理描画していたが、本発明によれば、こ
れに限定されず、例えば16ビットや8ビット毎等によ
りラインパターンを論理描画してもよい。 (b)第2実施例の説明 次に、本発明の第2実施例について説明する。
Although the line drawing control unit 21 in this embodiment logically draws a line pattern in the bitmap memory 13 every 32 bits, the present invention is not limited to this. Alternatively, a 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 printer according to the second embodiment of the present invention can be applied to a printer as shown in FIG. 2, but the main controller 11, the interface 12, the bit map memory 13, the line 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 has a correction unit 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をそなえている。
FIG. 15 is a diagram showing a second embodiment of the present invention, in which attention is paid to 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 (judgment unit, logic 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 unit) 17, and a drawing counter 18 are provided.

【0044】補正部(補正手段)24は、ラインパター
ンの任意の周期毎に、描画カウンタ18によるカウント
値を補正するものであり、1周期毎に行なう減算処理の
回数をカウントする減算処理回数カウンタ24aをそな
えており、ラインパターンの書出し時点においては、こ
のカウント値は初期値としての「0」に設定されてい
る。
The correction section (correction means) 24 corrects the count value of the drawing counter 18 at every arbitrary cycle of the line pattern, and counts the number of subtraction processing performed at 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」とするようになっている。
More specifically, when the line pattern as shown in FIG. 4 is logically drawn as in the first embodiment, a line pattern of 321 dots can be drawn in three periods. As shown, 320 dots
When a line pattern having a cycle is realized, the correction unit 24 determines that the count value is 1 at the end of the third cycle.
By subtracting the count value “1” for one dot after subtracting the subtraction value “107” for the cycle, 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 smaller at the end of three cycles than in the first embodiment (see FIG. 10). deviation is but at the end of the third period, the count value of one dot "1"
Since the correction is performed by the addition, the line pattern is logically drawn at the start of the fourth cycle, similarly to 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, at step C1, similarly to step A1 in the flowchart of FIG. 11 described in the first embodiment, the drawing counter 18
Is counted 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 bit map memory 13. When the line pattern is logically drawn in the bitmap memory 13 in step C3, it is determined whether or not one cycle of drawing has been performed in the bitmap memory 13 as in step A4 in the flowchart of FIG. 11 (step C3).
4) When one cycle is completed, the count value of one cycle is subtracted from the count value of the drawing counter 18 (step A5), and a correction process 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 section 24, the count value of the subtraction processing number counter 24a is incremented by "1" to count up (step D1). When the count value of the subtraction processing number counter 24 becomes “3”, three cycles of logical drawing are performed, and the subtraction processing of the count value “107” for one cycle to the drawing counter 18 is performed. Assuming that the count has been performed three times, the count value of the drawing counter 18 on which the subtraction process has been performed is corrected by adding "1", and the count value of the subtraction process counter 24a is initialized (step D3).

【0050】ステップD2で、カウント値が「2」に満
たなかった場合や、ステップD3による描画カウンタ1
8のカウンタ値の補正が行なわれると、処理は前述のス
テップA6と同様のステップC7に移行し、ライン描画
制御部21において、描画の行なわれた点が指定された
描画終了点かどうかを判断し(ステップC7)、描画終
了点である場合は描画を終了させ、描画終了点でない場
合は、処理はステップC1に移行し、描画が終了するま
で論理描画が行なわれる。
In step D2, if the count value is less than "2", or if the drawing counter 1 in step D3
After the correction of the counter value of 8 is performed, the process proceeds to step C7 similar to step A6 described above, and the line drawing control unit 21 determines whether the point where the drawing is performed is the designated drawing end point. (Step C7) If it is the drawing end point, the drawing is terminated. 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 effects obtained in the first embodiment, in addition to the effects obtained in the first embodiment, the line Logical drawing of patterns. In the present embodiment, the line drawing control unit 21 logically draws a line pattern in the bitmap memory 13 for every 32 bits. However, according to the present invention, the present invention is not limited to this.
The line pattern may be logically drawn in units of 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". However, according to the present invention, the correction value is not limited to this, and the dot value when a line pattern is drawn 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, the number of bit patterns held in advance can be suppressed to two types, and a line pattern having an arbitrary period can be drawn.

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

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

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

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

【図3】本発明の第1実施例にかかる主制御部及びライ
ンパターン描画部の機能に着目したブロック図である。
FIG. 3 is a block diagram focusing on 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 to be drawn in the first embodiment of the present invention.

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

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

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

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

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

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

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

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

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

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

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

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

【図20】一般的なラインパターン描画方式を採用する
プリンタ装置を示すブロック図である。
FIG. 20 is a block diagram illustrating a printer apparatus 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)は、一般的なラインパターン
描画方式を採用するプリンタ装置におけるビットパター
ン格納部に格納されているビットパターンを示す図であ
る。
FIGS. 22A and 22B are diagrams showing bit patterns stored in a bit pattern storage unit in a printer device employing 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)は、一般的なラインパターン
の実現方法を示す図である。
FIGS. 24A to 24D are diagrams illustrating a general method of realizing a 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 印刷制御部
DESCRIPTION OF SYMBOLS 1 Bit pattern storage means 1A Solid line bit pattern 1B Blank part bit pattern 2 Line pattern logic drawing means 3 Judgment part 4 Logic drawing part 5 Shift part 6 OR operation part 7 Exclusive OR operation part 8 Counting means 9 Bit map memory 10 Correction unit 11 Main control unit 12 Interface unit 13 Bit map memory 16 Line pattern drawing unit 17 Bit pattern storage unit (bit pattern storage unit) 18 Drawing counter (counting unit) 19 Print 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

フロントページの続き (56)参考文献 特開 平1−205285(JP,A) 特開 平4−47383(JP,A) 特開 昭61−193197(JP,A) 特開 昭61−55691(JP,A) 特開 昭62−156778(JP,A) 特開 昭62−49569(JP,A) 特開 平5−135182(JP,A) 特開 平5−205001(JP,A) 特開 平2−264378(JP,A) (58)調査した分野(Int.Cl.6,DB名) G06T 11/20 Continuation of the front page (56) References JP-A-1-205285 (JP, A) JP-A-4-47383 (JP, A) JP-A-61-193197 (JP, A) JP-A-61-55691 (JP, A) JP-A-62-156778 (JP, A) JP-A-62-49569 (JP, A) JP-A-5-135182 (JP, A) JP-A-5-205001 (JP, A) 2-264378 (JP, A) (58) Fields investigated (Int. Cl. 6 , DB name) G06T 11/20

Claims (4)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 所定ビット数を一単位とするビットパタ
ーン毎にラインパターンをビットマップメモリに論理描
画してから、該ビットマップメモリに論理描画されたラ
インパターンを印刷するラインパターン描画方におい
て、 同期的に一定長さの空白部を有するラインパターンを描
画する際に、 該所定ビット数の全ビットを「1」とする実線ビットパ
ターンと、前記一定長さの空白部ビットを「1」とし、
その他の部分を「0」とする空白部ビットパターンとを
予め格納するとともに、 該ビットマップメモリに論理描画したビットパターンの
ビット数をカウントするカウント手段をそなえ、 該ラインパターンの実線部については、該実線ビットパ
ターンをそのまま該ビットマップメモリに論理描画し
て、該カウント手段を該所定ビット数だけカウントアッ
プする一方、 該ラインパターンの空白部を含む部分については、該カ
ウント手段によるカウント値に応じて該空白部ビットパ
ターンの空白部ビットをシフトしてから、シフト後の空
白部ビットパターンと該実線ビットパターンとの排他的
論理和をとったビットパターンを該ビットマップメモ
論理描画して、該カウント手段を該所定ビット数だけ
カウントアップすることを特徴とする、ラインパターン
描画方
1. A line pattern for each bit pattern to a unit of predetermined number of bits from the logic drawn to the bitmap memory, the line pattern drawing direction to print the logical drawn line patterns to the bitmap memory Act smell <br/> Te, when drawing a line pattern having a blank portion of the synchronously constant length, all the bits of the predetermined number of bits and the solid bit pattern as "1", the predetermined length The blank part bit is set to “1”,
Other parts with pre-stored and a blank portion bit pattern "0", provided with a counting means to count the number of bits of the bit pattern obtained by logically drawn on the bit map memory, the solid line portion of the line pattern is the said actual line bit pattern as logically drawn on the bit map memory, while the counting hand stage is incremented by the predetermined number of bits, the portion including the blank portion of the line pattern, the counting hand stage the air spaces unit bit of the white part bit patterns from the shift, the blank part bit pattern and the bit map NOTE bit pattern taking the exclusive OR between said actual line bit pattern after the shift in accordance with the count value by Re
Logic drawing to, characterized in that it counts up the count hand stage only the predetermined number of bits, the line pattern drawing how to.
【請求項2】 該所定ビット数のビットパターン内に2
以上の空白部を含む部分については、該カウント手段に
よるカウント値に応じて、各空白部毎に該空白部ビット
パターンの空白部ビットをシフトして各空白部に対応す
る2以上の空白部ビットパターンを作成してから、これ
らの2以上の空白部ビットパターンの論理和結果と該実
線ビットパターンとの排他的論理和をとったビットパタ
ーンを該ビットマップメモリに論理描画して、該カウン
ト手段を該所定ビット数だけカウントアップすることを
特徴とする、請求項1記載のラインパターン描画方
2. The method according to claim 1, wherein the predetermined number of bits in the bit pattern is two.
The portion including the blank part of the above, according to the count value by <br/> to the count hand stage, corresponding to the blank portion by shifting a blank portion bits of the air white part bit patterns for each blank part after creating two or more blank part bit patterns, logic bit pattern taking the exclusive oR of the logical oR result and said actual line bit pattern of these two or more white space bit pattern to the bit map memory drawing to, characterized in that it counts up the count hand stage only the predetermined number of bits, the line pattern drawing how according to claim 1.
【請求項3】 該カウント手段によるカウント値が、該
ラインパターンの周期に対応する周期ビット数を超えた
場合、該カウント手段によるカウント値から該周期ビッ
ト数を減算することを特徴とする、請求項1又は2に記
載のラインパターン描画方
3. A count value by the counting hand stage, if it exceeds the number of cycles bits corresponding to the period of the line pattern, characterized by subtracting the said periodic bit number from the count value by the counting hand stage to the line pattern drawing how according to claim 1 or 2.
【請求項4】 該ラインパターンの任意の周期毎に、該
カウント手段によるカウント値を補正することを特徴と
する、請求項1〜3のいずれか1項に記載のラインパタ
ーン描画方
Wherein each optional period of the line pattern, and correcting the count value by the counting hand stage, the line pattern drawing how according to any one of claims 1 to 3 .
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 JPH07129782A (en) 1995-05-19
JP2941156B2 true 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)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4531155B2 (en) * 1999-06-11 2010-08-25 大日本印刷株式会社 Line data creation method and apparatus
JP2001158146A (en) * 1999-12-03 2001-06-12 Fujitsu Ltd Printing control device

Also Published As

Publication number Publication date
JPH07129782A (en) 1995-05-19

Similar Documents

Publication Publication Date Title
US4203154A (en) Electronic image processing system
JPS63205257A (en) Printing control system
JP2941156B2 (en) Line pattern drawing method
EP0467598B1 (en) Image processing apparatus
JPH0640259B2 (en) Data processing device
JPH02296291A (en) Character dot pattern signal generating device
US6628289B1 (en) Rendering apparatus and method, and storage medium
US20060291748A1 (en) Method and apparatus to generate a pattern image
EP0149788A2 (en) Display control system
JP3571119B2 (en) Image drawing device
JPH06274637A (en) Image plotter
JP2782752B2 (en) Character pattern output device
JPH05265428A (en) Outline data converting device
JP2676904B2 (en) Image supply device
JP3050298B2 (en) Printer and storage medium for printer
JP3006956B2 (en) Printing equipment
JPH10124692A (en) Plotting circuit
JP2841829B2 (en) Data converter
JP2001306059A (en) Display control method
JPH02224191A (en) Image output device
JP2854434B2 (en) Dot image data shift writing device
JP3144807B2 (en) Access frequency calculation circuit
JPH03246595A (en) Character pattern generating device
JPH01229664A (en) Printer character pattern data transfer method
JPH0378794A (en) Outline font processor

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