JPH09150558A - Plotting device for printer - Google Patents

Plotting device for printer

Info

Publication number
JPH09150558A
JPH09150558A JP7310365A JP31036595A JPH09150558A JP H09150558 A JPH09150558 A JP H09150558A JP 7310365 A JP7310365 A JP 7310365A JP 31036595 A JP31036595 A JP 31036595A JP H09150558 A JPH09150558 A JP H09150558A
Authority
JP
Japan
Prior art keywords
output
bit map
coordinate
bitmap
word
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
JP7310365A
Other languages
Japanese (ja)
Other versions
JP2776347B2 (en
Inventor
Yukiaki Morita
到明 森田
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.)
NEC Corp
Original Assignee
NEC Corp
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 NEC Corp filed Critical NEC Corp
Priority to JP7310365A priority Critical patent/JP2776347B2/en
Publication of JPH09150558A publication Critical patent/JPH09150558A/en
Application granted granted Critical
Publication of JP2776347B2 publication Critical patent/JP2776347B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Record Information Processing For Printing (AREA)
  • Image Generation (AREA)

Abstract

PROBLEM TO BE SOLVED: To perform the developing processing of a horizontal straight line and a rectangle high in use frequency without performing operation at every one dot by forming bit map data on the basis of stored coordinates data and the word length of a memory access and plotting the formed bit map data in an external memory. SOLUTION: The start coordinates and completion coordinates of inputted data are stored in a coordinates memory means 1 and bit map data is formed on the basis of the stored coordinates data and the word length of a memory access by a bit map forming means 3 equipped with a left end edge forming part 6, an intermediate forming part 7 and a right end edge forming part 8. The bit map data formed by the bit map forming means 3 is plotted in on an external memory by a bit map drawing means 4 equipped with a DMA circuit operation part 9 and a bit map selection part 11. By this constitution, a horizontal straight line and a rectangle high in use frequency can be subjected to developing processing without performing operation at every one dot.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、プリンタ用描画装
置に関し、特に、走査線に対し水平、垂直方向の実直線
および、水平方向に矩形を、与えられたパラメータより
展開するプリンタ用描画装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a drawing device for a printer, and more particularly to a drawing device for a printer that develops a real straight line in a horizontal direction and a vertical direction to a scanning line and a rectangle in a horizontal direction from given parameters. .

【0002】[0002]

【従来の技術】従来、直線の描画展開を行うためには、
その直線の微小変位を求め、スタートドットから1ドッ
トごとに演算を行い、ドット位置を決定していた(例え
ば、特開平1−222385)このため、1ドットごと
演算するためのドットクロックが必要であり、水平直線
の描画展開を行う際、1ワード分のドットクロックを必
要としていた。
2. Description of the Related Art Conventionally, in order to draw and develop a straight line,
The minute displacement of the straight line is obtained, the calculation is performed for each dot from the start dot, and the dot position is determined (for example, JP-A-1-222385). Therefore, a dot clock for performing the calculation for each dot is required. In addition, when rendering and developing a horizontal straight line, a dot clock for one word was required.

【0003】[0003]

【発明が解決しようとする課題】従来のプリンタでは、
直線画像展開処理を傾き等を判別しながら1ドットごと
処理をしていたため、単純で使用頻度が高い水平直線
や、垂直直線などの直線画像展開処理にかなりの時間を
要していた。
SUMMARY OF THE INVENTION In a conventional printer,
Since the straight line image developing process is performed for each dot while judging the inclination or the like, a considerable amount of time is required for a straight line image developing process for a simple and frequently used horizontal straight line or a vertical straight line.

【0004】[0004]

【発明の目的】本発明は、係る従来例の有する不都合を
改善し、特に、使用頻度の高い水平直線および矩形を1
ドット毎の演算を行わずに展開処理を行うことができる
プリンタ用描画装置を提供することを、その目的とす
る。
It is an object of the present invention to improve the disadvantages of the conventional example, and particularly to reduce the number of frequently used horizontal straight lines and rectangles.
It is an object of the present invention to provide a drawing device for a printer that can perform expansion processing without performing calculation for each dot.

【0005】[0005]

【課題を解決するための手段】そこで、本発明では、第
1の手段として、入力されたデータの開始座標および終
了座標を記憶する座標記憶手段と、この座標記憶手段に
格納された座標情報とメモリアクセスのワード長とに基
づいてビットマップデータを生成するビットマップ生成
手段と、このビットマップ生成手段によって生成された
ビットマップデータを外部メモリに描画するビットマッ
プ描画手段とを備えている。しかも、ビットマップ生成
手段が、座標記憶手段に格納された座標情報によって指
定される右端のワードのビットマップデータを生成する
右端エッジ生成部と、座標記憶手段に格納された座標情
報によって指定される左端のワードのビットマップデー
タを生成する左端エッジ生成部と、左端のワードから右
端のワードまでの間のワードのビットマップデータを生
成する中間生成部とを備えている。さらに、ビットマッ
プ描画手段が、座標記憶手段に格納された座標情報によ
って定まるビットマップデータの長さとワードの予め定
められたワード長とに基づいてメモリアクセス回数を算
出するDMA回数演算部と、このDMA回数演算部から
出力される演算結果に基づいてビットマップ生成手段の
各生成部からの出力を選択するビットマップ選択部とを
備えている。さらに、このビットマップ選択部が、メモ
リアクセス回数が「1」であるときには右端エッジ生成
部からの出力と左端エッジ生成部からの出力との論理積
を生成する合成出力機能を備えた、という手段を採って
いる。
Therefore, according to the present invention, as first means, coordinate storage means for storing start coordinates and end coordinates of input data, and coordinate information stored in the coordinate storage means. There is provided a bitmap generating means for generating bitmap data based on the word length of the memory access, and a bitmap drawing means for drawing the bitmap data generated by the bitmap generating means in an external memory. In addition, the bitmap generation means is configured to generate bitmap data of the rightmost word specified by the coordinate information stored in the coordinate storage means, and is specified by the coordinate information stored in the coordinate storage means. A left edge generating unit for generating bitmap data of the leftmost word, and an intermediate generating unit for generating bitmap data of a word between the leftmost word and the rightmost word are provided. Further, the bit map drawing means calculates the number of memory accesses based on the length of the bit map data determined by the coordinate information stored in the coordinate storage means and the predetermined word length of the word, A bitmap selection unit that selects an output from each generation unit of the bitmap generation unit based on a calculation result output from the DMA count calculation unit. Further, the bitmap selecting unit has a composite output function for generating a logical product of the output from the right edge generating unit and the output from the left edge generating unit when the memory access count is "1". Is taking.

【0006】この第1の手段では、座標記憶手段に格納
された座標に基づいて、水平方向の直線の描画を行う。
ビットマップ描画手段は、メモリに対してワード単位で
ビットマップデータを描画するため、ビットマップ生成
手段は、ワード単位でビットマップデータを生成する。
The first means draws a horizontal straight line based on the coordinates stored in the coordinate storage means.
Since the bitmap drawing means draws the bitmap data on the memory in word units, the bitmap generation means generates the bitmap data in word units.

【0007】1ワード中に始点と終点とがある場合に
は、ビットマップ生成部が、合成出力機能により、右端
エッジ生成部からの出力と左端エッジ生成部からの出力
との論理積を生成する。すると、ドット単位の操作をせ
ずに、ワード単位のビットマップデータが生成される。
If there is a start point and an end point in one word, the bitmap generator generates a logical product of the output from the right edge generator and the output from the left edge generator by the composite output function. . Then, bitmap data in word units is generated without performing operations in dot units.

【0008】第2の手段では、第1の手段を特定する事
項に加え、ビットマップ選択部に、当該ビットマップ選
択部によるワード単位のビットマップデータの出力回数
をカウントするDMAカウンタを併設している。しか
も、ビットマップ選択部が、メモリアクセス回数が
「1」を越えるときには左端エッジ生成部によって生成
されたビットマップデータを出力する左端出力機能と、
この左端出力機能によって左端のビットマップデータが
出力された後にDMAカウンタの出力値がDMA回数演
算部の演算結果に至るまで1ワード分のビットマップデ
ータを出力する中間出力機能と、DMAカウンタの出力
値がDMA回数演算部の演算結果に至ったときには右端
エッジ生成部によって生成されたビットマップデータを
出力する右端出力機能とを備えた、という構成を採って
いる。
In the second means, in addition to the items specifying the first means, a DMA counter for counting the number of times of outputting bitmap data in word units by the bitmap selector is provided in the bitmap selector. I have. In addition, the bitmap selection unit outputs the bitmap data generated by the left edge generation unit when the memory access count exceeds "1", and a left edge output function,
After the left end bit map data is output by the left end output function, an intermediate output function that outputs one word of bit map data until the output value of the DMA counter reaches the operation result of the DMA count operation unit, and the output of the DMA counter When the value reaches the calculation result of the DMA number calculation unit, a right end output function for outputting the bit map data generated by the right end edge generation unit is provided.

【0009】この第2の手段では、第1の手段を特定す
る事項に加え、座標記憶手段に格納されたデータが数ワ
ードに及ぶ場合に、右端エッジ生成部、左端エッジ生成
部、中間生成部によって生成されたそれぞれのビットマ
ップデータを、メモリアクセス回数とDMA回数演算部
の演算結果に応じて、ビットマップ選択部が適宜選択す
る。
According to the second means, in addition to the items specifying the first means, when the data stored in the coordinate storage means extends for several words, the right edge generation unit, the left edge generation unit, and the intermediate generation unit The bitmap selection unit appropriately selects each bitmap data generated in accordance with the calculation result of the memory access count and the DMA count calculation unit.

【0010】また、直線の両端のビットマップと1ワー
ド全てが線上にある場合のビットマップ(1ワード全て
黒)と、1ワード内に直線の両端が存在する場合とで、
メモリに展開するビットマップを切り換える。
A bit map at both ends of a straight line and a bit map when one word is entirely on the line (all words are black) and a bit map when both ends of a straight line are present within one word are:
Switches the bitmap to be expanded in the memory.

【0011】第3の手段では、第2の手段を特定する事
項に加え、DMAカウンタに、このDMAカウンタの出
力値に基づいて次のワードの出力座標を生成するアドレ
ス生成部を併設した、という構成を採っている。
According to the third means, in addition to the items specifying the second means, an address generation section for generating output coordinates of the next word based on the output value of the DMA counter is provided in the DMA counter. It has a configuration.

【0012】この第3の手段では、ビットマップ選択部
の各機能がビットマップデータを順次出力するタイミン
グに応じて、アドレス生成部が当該ワード単位のビット
マップデータのアドレス(出力座標)を生成する。これ
は、ドット単位での描画ではなく、DMAカウンタの値
に基づいたワード単位のアクセスとなる。
In the third means, the address generator generates the address (output coordinate) of the bitmap data in word units in accordance with the timing at which each function of the bitmap selector sequentially outputs the bitmap data. . This is not word-based drawing but word-based access based on the value of the DMA counter.

【0013】第4の手段では、第3の手段を特定する事
項に加え、アドレス生成部が、座標記憶手段に格納され
る垂直方向の座標に基づいて右端出力機能によってビッ
トマップデータが出力された後に次の行の座標を指定す
る矩形出力制御機能を備えた、という構成を採ってい
る。
In the fourth means, in addition to the items specifying the third means, the address generator outputs bitmap data by the right end output function based on the vertical coordinates stored in the coordinate storage means. A configuration is provided in which a rectangular output control function for specifying the coordinates of the next line is provided later.

【0014】この第4の手段では、第3の手段により描
画される水平直線を繰り返し行うことで、矩形の描画を
行う。
The fourth means draws a rectangle by repeatedly performing the horizontal straight line drawn by the third means.

【0015】第5の手段では、第1の手段を特定する事
項に加え、ビットマップ生成手段が、開始座標と終了座
標とを比較する始点終点比較回路と、この始点終点比較
回路の出力に基づいて左端座標及び右端座標を選択する
と共に当該左端座標および右端座標を座標情報として座
標記憶手段に出力する座標選択部とを備えた、という構
成を採っている。
In the fifth means, in addition to the items specifying the first means, the bitmap generation means compares a start coordinate with an end coordinate based on an output of the start point end point comparison circuit and an output of the start point end point comparison circuit. And a coordinate selection unit for selecting the left end coordinates and the right end coordinates and outputting the left end coordinates and the right end coordinates to the coordinate storage means as coordinate information.

【0016】この第5の手段では、開始座標と終了座標
とが描画の方向とは異なる場合にあっても、座標選択部
がこれを調整する。
In the fifth means, even when the starting coordinates and the ending coordinates are different from the drawing direction, the coordinate selecting section adjusts them.

【0017】本発明は、これらの各手段により、前述し
た目的を達成しようとするものである。
The present invention aims to achieve the above-mentioned object by each of these means.

【0018】[0018]

【発明の実施の形態】本発明の一実施形態について図面
を参照して説明する。図1は本実施形態によるプリンタ
用描画装置の構成を示すブロック図である。
DESCRIPTION OF THE PREFERRED EMBODIMENTS One embodiment of the present invention will be described with reference to the drawings. FIG. 1 is a block diagram showing the configuration of the drawing apparatus for a printer according to the present embodiment.

【0019】プリンタ用描画装置は、入力されたデータ
の開始座標および終了座標を記憶する座標記憶手段1
と、この座標記憶手段1に格納された座標情報とメモリ
アクセスのワード長とに基づいてビットマップデータを
生成するビットマップ生成手段3と、このビットマップ
生成手段3によって生成されたビットマップデータを外
部メモリに描画するビットマップ描画手段4とを備えて
いる。しかも、ビットマップ生成手段3が、座標記憶手
段1に格納された座標情報によって指定される右端のワ
ードのビットマップデータを生成する右端エッジ生成部
8と、座標記憶手段に格納された座標情報によって指定
される左端のワードのビットマップデータを生成する左
端エッジ生成部6と、左端のワードから右端のワードま
での間のワードのビットマップデータを生成する中間生
成部7とを備えている。ここで、ワードの左端は、図2
において示すように、外部メモリにおける左端をいい、
右端のワードは、外部メモリにおける右端をいう。
The drawing apparatus for a printer includes a coordinate storage means 1 for storing start coordinates and end coordinates of input data.
A bitmap generating means 3 for generating bitmap data based on the coordinate information stored in the coordinate storage means 1 and a word length of the memory access; and a bitmap data generated by the bitmap generating means 3 Bitmap drawing means 4 for drawing in an external memory. In addition, the bitmap generation unit 3 generates the bitmap data of the rightmost word specified by the coordinate information stored in the coordinate storage unit 1 and the right edge generation unit 8 using the coordinate information stored in the coordinate storage unit. A left edge generator 6 generates bitmap data of a specified leftmost word, and an intermediate generator 7 generates bitmap data of a word between the leftmost word and the rightmost word. Here, the left end of the word is shown in FIG.
As shown in, refers to the left end of the external memory,
The rightmost word is the rightmost word in the external memory.

【0020】さらに、ビットマップ描画手段4が、座標
記憶手段1に格納された座標情報によって定まるビット
マップデータの長さとワードの予め定められたワード長
とに基づいてメモリアクセス回数を算出するDMA回数
演算部9と、このDMA回数演算部9から出力される演
算結果に基づいてビットマップ生成手段の各生成部から
の出力を選択するビットマップ選択部11とを備えてい
る。
Further, the bit map drawing means 4 calculates the number of memory accesses based on the length of the bit map data determined by the coordinate information stored in the coordinate storage means 1 and the predetermined word length of the word. An arithmetic unit 9 and a bitmap selection unit 11 for selecting an output from each generation unit of the bitmap generation unit based on the operation result output from the DMA number operation unit 9 are provided.

【0021】このビットマップ選択部11は、メモリア
クセス回数が「1」であるときには右端エッジ生成部8
からの出力と左端エッジ生成部6からの出力との論理積
を生成する合成出力機能を備えている。
When the number of memory accesses is "1", the bitmap selecting unit 11
And a composite output function for generating a logical product of the output from the left edge generation unit 6 and the output from the left edge generation unit 6.

【0022】また、ビットマップ生成手段は、開始座標
と終了座標とを比較する始点終点比較回路2Aと、この
始点終点比較回路2Aの出力に基づいて左端座標及び右
端座標を選択すると共に当該左端座標および右端座標を
座標情報として座標記憶手段に出力する座標選択部2
B,2Cとを備えている。
Further, the bit map generating means includes a start point / end point comparison circuit 2A for comparing the start coordinates and the end coordinates, and selects the left end coordinates and the right end coordinates based on the output of the start point / end point comparison circuit 2A. And a coordinate selection section 2 for outputting the right end coordinates as coordinate information to the coordinate storage means
B, 2C.

【0023】これを詳細に説明する。This will be described in detail.

【0024】図2はプリンタ用描画装置の詳細構成を示
す説明図である。この図2に示す例では、座標記憶手段
1は、水平方向の始点座標と終点座標とを記憶する水平
座標格納部1Aと、垂直方向の始点座標と終点座標とを
記憶する垂直座標格納部1Bとを備えている。
FIG. 2 is an explanatory diagram showing a detailed configuration of the drawing apparatus for a printer. In the example shown in FIG. 2, the coordinate storage unit 1 includes a horizontal coordinate storage unit 1A that stores horizontal start point coordinates and an end point coordinate, and a vertical coordinate storage unit 1B that stores vertical start and end point coordinates. And

【0025】また、座標選択部2は、始点終点比較回路
2Aによる比較の結果に基づいて水平方向の始点と終点
を直線ビットマップの左端、右端に振り分ける左端/右
端座標選択部2Bと、同様に始点終点比較回路2Aの比
較結果に基づいて垂直方向の始点を直線ビットマップの
上端、下端に振り分ける左端/下端座標選択部2Cとを
備えている。
The coordinate selection unit 2 also distributes the horizontal start point and end point to the left end and right end of the linear bit map based on the result of comparison by the start point end point comparison circuit 2A, similarly to the left end / right end coordinate selection unit 2B. A left / bottom coordinate selection unit 2C for allocating the vertical start point to the upper and lower ends of the linear bit map based on the comparison result of the start / end point comparison circuit 2A is provided.

【0026】DMA回数演算部9は、左端/右端座標選
択部2Bの結果から水平方向のDMA(ダイレクトメモ
リアクセス)の必要回数を演算する水平方向DMA回数
演算部9Aと、左端/下端座標選択部2Cの結果から上
端と下端座標から垂直方向のDMA必要ライン数を演算
する垂直方向DMAライン数演算部9Bと、DMAカウ
ンタ10とを備えている。
The number-of-DMA operations unit 9 calculates a required number of times of DMA (direct memory access) in the horizontal direction from the result of the left / right coordinate selection unit 2B, and a left / bottom coordinate selection unit 9A. A vertical DMA line number calculation unit 9B for calculating the required number of DMA lines in the vertical direction from the upper and lower coordinates from the result of 2C, and a DMA counter 10 are provided.

【0027】また、図2に示すように、左端エッジ生成
部6は、左端座標値よりその座標が位置するワード内の
ビット位置から下位ビット(左側)を黒データにして左
端のビットマップを生成する。同様に、右端エッジ生成
部7は、右端座標値よりその座標が位置するワード内の
ビット位置から上位ビット(右側)を黒データにして右
端のビットマップを生成する。図2に示す例では、中間
生成部7は、ビットマップ選択部11の一機能として実
現している。
As shown in FIG. 2, the left edge generating unit 6 generates the left end bitmap by converting the lower bit (left side) to black data from the bit position in the word where the coordinates are located based on the left end coordinate value. I do. Similarly, the right end edge generation unit 7 generates a right end bitmap by setting upper bits (right side) from the bit position in the word where the coordinates are located to the black data in the right end coordinate value. In the example illustrated in FIG. 2, the intermediate generation unit 7 is realized as one function of the bitmap selection unit 11.

【0028】ビットマップ選択部11は、左端エッジ生
成部6および右端エッジ生成部7が生成するビットマッ
プを選択し、合成し、必要なデータを出力する。アドレ
ス生成部12は、DMAに必要なアドレスを生成する。
The bitmap selection section 11 selects and combines bitmaps generated by the left edge generation section 6 and the right edge generation section 7, and outputs necessary data. The address generator 12 generates an address required for the DMA.

【0029】次に、動作を説明する。Next, the operation will be described.

【0030】〔水平直線の描画〕図3は水平直線の描画
処理の一例を示すフローチャートである。まず、水平直
線(X方向)の描画展開時は、格納部1Aの始点終点
(X始、X終)を比較部3で比較し、X終>X始である
か否かを確認する(ステップS1)。
[Drawing of Horizontal Straight Line] FIG. 3 is a flowchart showing an example of a drawing process of a horizontal straight line. First, when the horizontal straight line (X direction) is drawn and expanded, the comparison unit 3 compares the start point and end point (X start, X end) of the storage unit 1A to check whether X end> X start (step). S1).

【0031】左端/右端座標選択部2Bは、X終>X始
でない場合、(X左、X右)=(X始、X終)とする
(ステップS2)。一方、X終>X始である場合には、
(X左、X右)=(X終、X始)とする(ステップS
3)。
If X end> X start is not satisfied, the left end / right end coordinate selection unit 2B sets (X left, X right) = (X start, X end) (step S2). On the other hand, if X end> X start,
(X left, X right) = (X end, X start) (Step S
3).

【0032】さらに、X左の値、X右の値より、直線の
両端のビットマップをエッジ生成部6、7で生成させる
(ステップS4)。
Further, based on the X left value and the X right value, bitmaps at both ends of the straight line are generated by the edge generators 6 and 7 (step S4).

【0033】次いで、X終の値とX始の値との差に基づ
いて、水平方向の必要なDMA回数を算出する(ステッ
プS5)。このDMA回数は、X終とX始の差が何ワー
ドに該当するのかを示す値となる。
Next, the necessary number of DMAs in the horizontal direction is calculated based on the difference between the X-end value and the X-start value (step S5). The number of DMAs is a value indicating how many words the difference between the X end and the X start corresponds to.

【0034】次いで、ビットマップ選択部11で、必要
な水平方向のDMA回数が1回(つまり、1ワード内に
直線の両端がある)ならば、左端と右端のビットマップ
の論理積を出力する(ステップS7,合成出力機能)。
次いで、DMAカウンタの値をインクリメントする。ア
ドレス生成部は、次のワードを書き込むアドレスをこの
DMAカウンタの値に基づいて算出する。
Next, if the required number of horizontal DMAs is one (that is, both ends of a straight line are included in one word), the bitmap selection unit 11 outputs the logical product of the leftmost and rightmost bitmaps. (Step S7, composite output function).
Next, the value of the DMA counter is incremented. The address generation unit calculates an address to write the next word based on the value of the DMA counter.

【0035】一方、ステップS6において、必要な水平
方向のDMA回数が1回以上の場合、最初のDMA発生
時には、左端エッジ生成部6の結果を出力する(ステッ
プS9,左端出力機能)。さらに、DMAカウンタをイ
ンクリメントする。すると、アドレス生成部12は次の
ワードのアドレスを算出する。
On the other hand, if the required number of horizontal DMAs is one or more in step S6, the result of the left edge generator 6 is output when the first DMA occurs (step S9, left end output function). Further, the DMA counter is incremented. Then, the address generator 12 calculates the address of the next word.

【0036】ここで、ビットマップ選択部11は、水平
方向DMA回数演算部9Aの演算結果と、DMAカウン
タ10の値とから、次に生成するワードが最後のワード
か否かを確認する(ステップS11)。最後のDMA発
生時には右端エッジ生成部7の結果を出力し(ステップ
S12,右端出力機能)、それ以外では1ワード全て”
H”を出力する(ステップS13,中間出力機能)。ど
ちらの場合にも、DMAカウンタをインクリメントする
(ステップS10,S8)。
Here, the bitmap selection unit 11 checks whether or not the next word to be generated is the last word from the operation result of the horizontal DMA number operation unit 9A and the value of the DMA counter 10 (step). S11). When the last DMA is generated, the result of the right end edge generation unit 7 is output (step S12, right end output function).
H "(step S13, intermediate output function). In either case, the DMA counter is incremented (steps S10, S8).

【0037】〔矩形の描画〕矩形の描画展開時は、格納
部1の水平方向始点終点(X始、X終)を比較部3で比
較し、もしX終>X始ならば、左端/右端座標選択部2
Bで(X左、X右)=(X終、X始)とする。同様に、
格納部2の垂直方向始点終点(Y始、Y終)から(Y
上、Y下)を選択する。
[Rectangle Drawing] When drawing a rectangle, the comparison unit 3 compares the horizontal start point and end point (X start, X end) of the storage unit 1. If X end> X start, left end / right end Coordinate selection unit 2
In B, (X left, X right) = (X end, X start). Similarly,
From the vertical start point end point (Y start, Y end) of the storage unit 2 to (Y
Select up, Y down).

【0038】(X左、X右)の値より、水平方向直線描
画展開を行い、1ライン終了すると(必要水平方向DM
A回数分DMAを行うと)、アドレス生成部はあらかじ
めセットされていた1ラインのワード数とDMA開始前
に演算した初期アドレスから、1ライン後の直線左端位
置までアドレスを移動させ、全ライン同様に処理を行
う。処理を行うライン数は、(Y上、Y下)座標より、
垂直方向DMAライン数演算部9Bにて求める。
Based on the values of (X left, X right), straight line drawing development in the horizontal direction is performed.
When the DMA is performed for A times), the address generation unit moves the address from the preset number of words of one line and the initial address calculated before the start of DMA to the leftmost position of the straight line after one line, and the same as for all lines. The process is performed. The number of lines to be processed is calculated from the (Y upper, Y lower) coordinates
It is obtained by the vertical DMA line number calculation unit 9B.

【0039】垂直直線の描画展開も、矩形描画展開と同
様の方法で行う。
The drawing development of the vertical straight line is performed in the same manner as the rectangle drawing development.

【0040】以上説明したように、本実施形態による
と、使用頻度の高い水平直線、垂直直線、水平方向の矩
形が、CPUでの処理を行わず、また、1ドットごとの
演算を行わずに展開処理が行えるため、従来の展開処理
に必要とした時間より短時間で処理を終了することがで
きる。即ち、印刷データの展開処理を行うCPUは、本
実施形態によるプリンタ用描画装置に開始/終了座標を
出力するだけで描画メモリに直線又は矩形が展開される
ため、比較的処理量が多い直線の展開処理から解放さ
れ、このため、印刷データの全体的な展開時間が高速に
なり、従って、印刷データの印刷出力を高速に行うこと
ができる。
As described above, according to the present embodiment, for the frequently used horizontal straight line, vertical straight line, and horizontal rectangle, the processing by the CPU is not performed and the calculation for each dot is not performed. Since the expansion processing can be performed, the processing can be completed in a shorter time than the time required for the conventional expansion processing. In other words, the CPU that performs the processing for developing the print data develops a straight line or a rectangle in the drawing memory only by outputting the start / end coordinates to the drawing apparatus for a printer according to the present embodiment. It is released from the expansion processing, and therefore, the entire expansion time of the print data is shortened, and therefore, the print output of the print data can be performed at a high speed.

【0041】[0041]

【発明の効果】本発明は以上のように構成され機能する
ので、これによると、ビットマップ描画手段が、メモリ
に対してワード単位でビットマップデータを描画するた
め、ビットマップ生成手段は、ワード単位でビットマッ
プデータを生成することができ、このため、ドット単位
の描画処理と比較して高速に描画することができ、さら
に、1ワード中に始点と終点とがある場合には、ビット
マップ生成部が、合成出力機能により、右端エッジ生成
部からの出力と左端エッジ生成部からの出力との論理積
を生成するため、ドット単位の操作をせずに、ワード単
位でビットマップデータを生成することができ、従っ
て、1ワードに満たない短い直線であっても高速に描画
することができる。このように、使用頻度の高い水平直
線および矩形をドット毎の演算を行わずに展開処理を行
うことができる従来にない優れたプリンタ用描画装置を
提供することができる。
According to the present invention, the bitmap drawing means draws the bitmap data in the memory in word units. Bitmap data can be generated in units, so that drawing can be performed at a higher speed than in dot-based drawing processing. Further, when there is a start point and an end point in one word, The generation unit generates logical product of the output from the right edge generation unit and the output from the left edge generation unit using the composite output function, so that bitmap data is generated in word units without performing dot-by-dot operations Therefore, even a short straight line less than one word can be drawn at high speed. As described above, it is possible to provide an unprecedented excellent drawing device for a printer, which can perform a developing process on a frequently used horizontal straight line and a rectangle without performing an operation for each dot.

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

【図1】本発明の一実施形態の構成を示すブロック図で
ある。
FIG. 1 is a block diagram showing a configuration of an embodiment of the present invention.

【図2】図1に示したプリンタ用描画装置の詳細構成を
示す説明図である。
FIG. 2 is an explanatory diagram showing a detailed configuration of the printer drawing apparatus shown in FIG.

【図3】図2に示した構成での水平直線の描画処理の一
例を示すフローチャートである。
3 is a flowchart showing an example of a horizontal straight line drawing process in the configuration shown in FIG. 2;

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

1 座標記憶手段 2 座標選択部 3 ビットマップ生成手段 4 ビットマップ描画手段 6 左端エッジ生成部 7 中間生成部 8 右端エッジ生成部 9 DMAライン演算部 10 DMAカウンタ 11 ビットマップ選択部 12 アドレス生成部 DESCRIPTION OF SYMBOLS 1 Coordinate storage means 2 Coordinate selection part 3 Bitmap generation means 4 Bitmap drawing means 6 Left edge generation part 7 Intermediate generation part 8 Right end edge generation part 9 DMA line operation part 10 DMA counter 11 Bitmap selection part 12 Address generation part

Claims (5)

【特許請求の範囲】[Claims] 【請求項1】 入力されたデータの開始座標および終了
座標を記憶する座標記憶手段と、この座標記憶手段に格
納された座標情報とメモリアクセスのワード長とに基づ
いてビットマップデータを生成するビットマップ生成手
段と、このビットマップ生成手段によって生成されたビ
ットマップデータを外部メモリに描画するビットマップ
描画手段とを備え、 前記ビットマップ生成手段が、前記座標記憶手段に格納
された座標情報によって指定される右端のワードのビッ
トマップデータを生成する右端エッジ生成部と、前記座
標記憶手段に格納された座標情報によって指定される左
端のワードのビットマップデータを生成する左端エッジ
生成部と、前記左端のワードから右端のワードまでの間
のワードのビットマップデータを生成する中間生成部と
を備え、 前記ビットマップ描画手段が、前記座標記憶手段に格納
された座標情報によって定まるビットマップデータの長
さと前記ワードの予め定められたワード長とに基づいて
メモリアクセス回数を算出するDMA回数演算部と、こ
のDMA回数演算部から出力される演算結果に基づいて
前記ビットマップ生成手段の各生成部からの出力を選択
するビットマップ選択部とを備え、 このビットマップ選択部が、前記メモリアクセス回数が
「1」であるときには前記右端エッジ生成部からの出力
と前記左端エッジ生成部からの出力との論理積を生成す
る合成出力機能を備えたことを特徴とするプリンタ用描
画装置。
1. A bit for generating bitmap data on the basis of coordinate storage means for storing a start coordinate and an end coordinate of input data, and coordinate information stored in the coordinate storage means and a word length of memory access. The map generation means and the bitmap drawing means for drawing the bitmap data generated by the bitmap generation means in an external memory are provided, and the bitmap generation means is designated by the coordinate information stored in the coordinate storage means. A right edge generating unit for generating bitmap data for the rightmost word, a left edge generating unit for generating bitmap data for the leftmost word specified by the coordinate information stored in the coordinate storage unit, and the left edge Intermediate generator that generates bitmap data for words between the word and the rightmost word DMA count calculation, wherein the bitmap drawing means calculates the memory access count based on the length of the bitmap data determined by the coordinate information stored in the coordinate storage means and a predetermined word length of the word. And a bit map selecting section that selects an output from each of the generating sections of the bit map generating means based on a calculation result output from the DMA number calculating section, the bit map selecting section including the memory access section. When the number of times is "1", the drawing device for a printer is provided with a composite output function for generating a logical product of the output from the right edge generation unit and the output from the left edge generation unit.
【請求項2】 前記ビットマップ選択部に、当該ビット
マップ選択部による前記ワード単位のビットマップデー
タの出力回数をカウントするDMAカウンタを併設し、 前記ビットマップ選択部が、前記メモリアクセス回数が
「1」を越えるときには前記左端エッジ生成部によって
生成されたビットマップデータを出力する左端出力機能
と、この左端出力機能によって左端のビットマップデー
タが出力された後に前記DMAカウンタの出力値が前記
DMA回数演算部の演算結果に至るまで前記1ワード分
のビットマップデータを出力する中間出力機能と、前記
DMAカウンタの出力値が前記DMA回数演算部の演算
結果に至ったときには前記右端エッジ生成部によって生
成されたビットマップデータを出力する右端出力機能と
を備えたことを特徴とする請求項1記載のプリンタ用描
画装置。
2. The bit map selecting section is provided with a DMA counter for counting the number of output of the bit map data of the word unit by the bit map selecting section, and the bit map selecting section sets the memory access number to " When it exceeds 1 ”, the left end output function of outputting the bit map data generated by the left end edge generation unit, and the output value of the DMA counter after the left end bit map data is output by the left end output function An intermediate output function for outputting the bit map data for one word up to the calculation result of the calculation section, and the right end edge generation section when the output value of the DMA counter reaches the calculation result of the DMA number calculation section It has a right end output function to output the bitmap data Printer drawing device according to claim 1,.
【請求項3】 前記DMAカウンタに、このDMAカウ
ンタの出力値に基づいて次のワードの出力座標を生成す
るアドレス生成部を併設したことを特徴とする請求項2
記載のプリンタ用描画装置。
3. The DMA counter according to claim 2, further comprising an address generator for generating output coordinates of a next word based on an output value of the DMA counter.
The drawing device for a printer according to the above.
【請求項4】 前記アドレス生成部が、前記座標記憶手
段に格納される垂直方向の座標に基づいて前記右端出力
機能によってビットマップデータが出力された後に次の
行の座標を指定する矩形出力制御機能を備えたことを特
徴とする請求項3記載のプリンタ用描画装置。
4. The rectangular output control, wherein the address generation unit specifies the coordinates of the next row after the bitmap data is output by the right end output function based on the vertical coordinates stored in the coordinate storage means. The drawing device for a printer according to claim 3, further comprising a function.
【請求項5】 前記ビットマップ生成手段が、前記開始
座標と終了座標とを比較する始点終点比較回路と、この
始点終点比較回路の出力に基づいて左端座標及び右端座
標を選択すると共に当該左端座標および右端座標を座標
情報として前記座標記憶手段に出力する座標選択部とを
備えたことを特徴とする請求項1記載のプリンタ用描画
装置。
5. A starting point / ending point comparing circuit for comparing the starting coordinates and the ending coordinates, wherein the bitmap generating means selects a left end coordinate and a right end coordinate based on an output of the starting point / ending point comparing circuit. 2. A drawing device for a printer according to claim 1, further comprising: a coordinate selection unit that outputs right end coordinates to the coordinate storage unit as coordinate information.
JP7310365A 1995-11-29 1995-11-29 Drawing device for printer Expired - Fee Related JP2776347B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP7310365A JP2776347B2 (en) 1995-11-29 1995-11-29 Drawing device for printer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP7310365A JP2776347B2 (en) 1995-11-29 1995-11-29 Drawing device for printer

Publications (2)

Publication Number Publication Date
JPH09150558A true JPH09150558A (en) 1997-06-10
JP2776347B2 JP2776347B2 (en) 1998-07-16

Family

ID=18004373

Family Applications (1)

Application Number Title Priority Date Filing Date
JP7310365A Expired - Fee Related JP2776347B2 (en) 1995-11-29 1995-11-29 Drawing device for printer

Country Status (1)

Country Link
JP (1) JP2776347B2 (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH03144867A (en) * 1989-10-31 1991-06-20 Nippon Steel Corp Method and device for plotting straight line
JPH0550695A (en) * 1991-08-27 1993-03-02 Tokyo Electric Co Ltd Print data processing device
JPH0761087A (en) * 1993-08-27 1995-03-07 Toyo Electric Mfg Co Ltd Efficient use of frame memory

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH03144867A (en) * 1989-10-31 1991-06-20 Nippon Steel Corp Method and device for plotting straight line
JPH0550695A (en) * 1991-08-27 1993-03-02 Tokyo Electric Co Ltd Print data processing device
JPH0761087A (en) * 1993-08-27 1995-03-07 Toyo Electric Mfg Co Ltd Efficient use of frame memory

Also Published As

Publication number Publication date
JP2776347B2 (en) 1998-07-16

Similar Documents

Publication Publication Date Title
JP2909273B2 (en) Outline font line width adjusting method and apparatus
US5519412A (en) Pattern processing method
JP2776347B2 (en) Drawing device for printer
EP0458571A2 (en) Image processing method and apparatus
JP2774662B2 (en) Character processor
JP2806679B2 (en) Character generator
JP2646437B2 (en) Jagi correction device for data expansion
JPH03282496A (en) character pattern generator
JP2833921B2 (en) Vector font transformation processing method
JP3571119B2 (en) Image drawing device
JP3084817B2 (en) Character output device
JPH08101675A (en) Font expansion device
JP3055306B2 (en) Data output device
JPH02238965A (en) recording device
JPH07162675A (en) Image output device
JPH10143676A (en) Picture processor and method for processing the same and recording medium
JPH0250277A (en) Screening system for binary picture information
JPS625291A (en) Italic character generation method
JPH10124692A (en) Plotting circuit
JPH07141513A (en) Graphic drawing device
JPH02144781A (en) Method and device for painting out
JPS63196987A (en) Graphic processing device
JPS636594A (en) Character pattern processor
JPH0916145A (en) Information processing device
JPH06167965A (en) Character processing method and device

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: 19980331

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090501

Year of fee payment: 11

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100501

Year of fee payment: 12

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110501

Year of fee payment: 13

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110501

Year of fee payment: 13

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120501

Year of fee payment: 14

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120501

Year of fee payment: 14

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130501

Year of fee payment: 15

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20140501

Year of fee payment: 16

LAPS Cancellation because of no payment of annual fees