JP3358698B2 - Drawing equipment - Google Patents

Drawing equipment

Info

Publication number
JP3358698B2
JP3358698B2 JP08454096A JP8454096A JP3358698B2 JP 3358698 B2 JP3358698 B2 JP 3358698B2 JP 08454096 A JP08454096 A JP 08454096A JP 8454096 A JP8454096 A JP 8454096A JP 3358698 B2 JP3358698 B2 JP 3358698B2
Authority
JP
Japan
Prior art keywords
sum
dot
line
screen
conversion table
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
JP08454096A
Other languages
Japanese (ja)
Other versions
JPH09251531A (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.)
Hitachi Communication Technologies Ltd
Original Assignee
Hitachi Communication Technologies Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hitachi Communication Technologies Ltd filed Critical Hitachi Communication Technologies Ltd
Priority to JP08454096A priority Critical patent/JP3358698B2/en
Publication of JPH09251531A publication Critical patent/JPH09251531A/en
Application granted granted Critical
Publication of JP3358698B2 publication Critical patent/JP3358698B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Image Processing (AREA)
  • Editing Of Facsimile Originals (AREA)

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、画面の表示をドッ
ト単位で行う描画装置に関し、特に単位長当りのドット
数を縦方向および横方向で変換して表示する変換機能を
有する描画装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a drawing apparatus for displaying a screen in units of dots, and more particularly to a drawing apparatus having a conversion function of converting the number of dots per unit length in a vertical direction and a horizontal direction for display.

【0002】[0002]

【従来の技術】従来、画面の表示をドット単位で行う描
画装置では、画面の縦方向および横方向でドット数を変
換して表示する際に、各ドットに対応する各ビット毎に
白ビットか黒ビットかを判別し、任意の変換要求に応じ
て描画ビットを生成し、メモリビットマップ展開を行う
ことで処理していた。
2. Description of the Related Art Conventionally, in a drawing apparatus for displaying a screen in units of dots, when converting the number of dots in the vertical and horizontal directions of the screen and displaying the converted image, a white bit is used for each bit corresponding to each dot. The processing is performed by determining whether the bit is a black bit, generating a drawing bit in response to an arbitrary conversion request, and developing a memory bitmap.

【0003】[0003]

【発明が解決しようとする課題】しかし、従来の描画装
置における変換処理では、処理動作が複雑であり、描画
処理の高速化が図れないといった不都合があった。ま
た、変換後の描画結果について、使用者の要求に基づい
て白ドットを強調したり、黒ドットを強調したりすると
いったドット色優先処理を行うことができなかった。
However, the conversion processing in the conventional drawing apparatus has a disadvantage that the processing operation is complicated and that the drawing processing cannot be sped up. Further, with respect to the drawing result after conversion, it is not possible to perform a dot color priority process such as emphasizing a white dot or a black dot based on a user's request.

【0004】本発明は、このような課題を解決するため
になされたもので、変換処理を簡素化して高速化を図
り、併せて描画結果に対するドット色の優先指示が可能
な描画装置を提供することを目的とする。
The present invention has been made to solve such a problem, and provides a drawing apparatus capable of simplifying a conversion process to increase the speed and also giving priority to a dot color for a drawing result. The purpose is to:

【0005】[0005]

【課題を解決するための手段】本発明は、横方向および
縦方向の各単位長当りのドット数がAドットで構成され
る第1の画面を、横方向および縦方向の各単位長当りの
ドット数がBドット(但し、A<B)で構成される第2
の画面に変換して描画する描画装置であって、前記第1
の画面における横方向のランレングスの総和mと、前記
第2の画面における横方向のドット展開数pと、当該ド
ット展開数pの総和qとを格納する横方向変換テーブル
と、前記第1の画面における横方向の連続する同一色の
ドット毎に、そのドット数nを前記総和mと加算して、
これを新たな総和mとして前記横方向変換テーブルに格
納し、当該総和mを前記単位ドット数Bで乗算した後に
前記単位ドット数Aで除算し、得られた商と余りの四捨
五入値とを加算し、この加算値から前記ドット展開数の
総和qを減算して得た値を、新たにドット展開数pとし
て当該横方向変換テーブルに格納し、更に、当該ドット
展開数pを前記横方向変換テーブルに格納されている総
和qと加算して、これを新たに総和qとして当該横方向
変換テーブルに格納する第1の演算手段と、前記第1の
画面における方向のライン数の総和Mと、前記第2の
画面における縦方向のライン展開数Pと、当該ライン展
開数Pの総和Qとを格納する縦方向変換テーブルと、
記第1の画面における縦方向のライン毎に、1を前記総
和Mと加算して、これを新たな総和Mとして前記縦方向
変換テーブルに格納し、当該総和Mを前記単位ドット数
Bで乗算した後に前記単位ドット数Aで除算し、得られ
た商と余りの四捨五入値とを加算し、この加算値から前
記ドット展開数の総和Qを減算して得た値を、新たにラ
イン展開数Pとして当該縦方向変換テーブルに格納し、
更に、当該ライン展開数Pを前記縦方向変換テーブルに
格納されている総和Qと加算して、これを新たに総和Q
として当該縦方向変換テーブルに格納する第2の演算手
段と、を備え、前記第2の画面の横方向は前記ドット展
開数p毎に描画し、縦方向は前記ライン展開数P毎に描
画する描画装置において、前記横方向変換テーブルは、
前記第2の画面で強調する優先色を指定する優先色指定
データを格納し、前記第1の演算手段は、優先色を描画
する場合は前記商と前記余りの四捨五入値とを加算し、
その加算値から前記ドット展開数の総和qを減算して得
た値を前記ドット展開 数pとし、非優先色を描画する場
合は前記商から前記ドット展開数の総和qを減算して得
た値を前記ドット展開数pとすることを特徴とするもの
である。
SUMMARY OF THE INVENTION According to the present invention, a first screen in which the number of dots per unit length in the horizontal and vertical directions is A dots is displayed. The second number of dots consisting of B dots (however, A <B)
A drawing device that converts the image into a screen of
Sum of the horizontal run length m on the screen of
The number p of dots developed in the horizontal direction on the second screen and the
A horizontal conversion table for storing the sum q of the number of expansions p, and a horizontal continuous conversion table of the same color on the first screen.
For each dot, the number of dots n is added to the sum m,
This is stored in the horizontal conversion table as a new sum m.
After multiplying the sum m by the unit dot number B,
Dividing by the unit dot number A, the obtained quotient and the remainder are rounded off.
Quintuple value and add the dot development number
The value obtained by subtracting the sum q is newly defined as the dot development number p.
Stored in the horizontal direction conversion table,
The number of expansions p is the total number stored in the horizontal direction conversion table.
The sum is added to the sum q, and this is newly added to the sum q.
A first calculating means to be stored in a conversion table; a total sum M of the number of lines in the vertical direction on the first screen;
The number of vertical line developments P on the screen and the line
And vertical conversion table that stores the sum Q of the opening number P, before
For each vertical line on the first screen, 1 is added to the total
The sum is added to the sum M to obtain a new sum M.
Stored in a conversion table, and the sum M is the number of unit dots.
B and then dividing by the unit dot number A to obtain
Quotient and the rounded value of the remainder
The value obtained by subtracting the total Q of the dot development numbers is
Stored in the vertical conversion table as the number of in-expansion P,
Further, the line development number P is stored in the vertical conversion table.
The sum is added to the stored sum Q, and this is newly added to the sum Q.
The second operator stored in the vertical conversion table as
Comprises a stage, wherein the transverse direction of the second screen is drawn for each of the number of dots expand p, vertically Oite to the drawing device to draw on each number of said line deployment P, the transverse direction conversion table,
Priority color designation for designating a priority color to be emphasized on the second screen
The data is stored, and the first arithmetic unit draws a priority color.
If so, add the quotient and the remainder rounded value,
It is obtained by subtracting the sum q of the dot development numbers from the added value.
Is used as the dot development number p to draw a non-priority color.
In this case, subtract the sum q of the dot development numbers from the quotient
Is set as the dot development number p .

【0006】[0006]

【0007】[0007]

【0008】本発明によれば、横方向変換テーブルおよ
び縦方向変換テーブルを用いて縦方向および横方向の変
換を行うようにしたので、変換処理の簡素化および高速
化を図ることができる。
According to the present invention, since the vertical and horizontal conversions are performed using the horizontal and vertical conversion tables, the conversion processing can be simplified and speeded up.

【0009】また、本発明によれば、横方向変換テーブ
ルに格納された優先色指定データを用いて、描画結果に
対して優先色を強調して描画することができる。この場
合、優先色のドット展開数pは余りの四捨五入値を加算
し、非優先色のドット展開数pは余りを切り捨てること
によって所望の描画結果を得る。
Further, according to the present invention, by using the priority color designation data stored in the horizontal direction conversion table, it is possible to draw the drawing result with the priority color emphasized. In this case, a desired drawing result is obtained by adding the rounded value of the remainder to the dot development number p of the priority color and cutting off the remainder of the dot development number p of the non-priority color.

【0010】[0010]

【発明の実施の形態】図1は、本発明による描画装置の
一実施の形態を示すブロック図である。この装置はCP
U(中央処理装置)1によって全体が制御されるように
構成されており、CPU1にはシステムバスを介して次
の各装置が接続されている。
FIG. 1 is a block diagram showing an embodiment of a drawing apparatus according to the present invention. This device is a CP
The entire system is controlled by a U (central processing unit) 1, and the following devices are connected to the CPU 1 via a system bus.

【0011】ICC2はIC(集積回路)カード搭載ス
ロットおよびICメモリカードである。IPLROM3
はIPL(初期プログラムローディング)プログラムお
よび保守プログラムを格納する読取り専用メモリで、2
56Kバイトの記憶容量を有する。FONTROM4は
文字フォント格納用の読取り専用メモリで、8Mバイト
の記憶容量を有する。
The ICC 2 is an IC (integrated circuit) card mounting slot and an IC memory card. IPLROM3
Is a read-only memory for storing an IPL (initial program loading) program and a maintenance program.
It has a storage capacity of 56 Kbytes. The font ROM 4 is a read-only memory for storing character fonts, and has a storage capacity of 8 Mbytes.

【0012】REC5は画素データ回転用のLSI(大
規模集積回路)で、SRAM6に書き込んだ画素データ
(ソース)を0度、90度、180度および270度と
90度ずつ内部で回転させ、得られた画素データ(ディ
ステネーション)をSRAM6に書き込む。
REC 5 is an LSI (Large Scale Integrated Circuit) for rotating pixel data, which internally rotates the pixel data (source) written in the SRAM 6 by 90 degrees at 0, 90, 180 and 270 degrees. The obtained pixel data (destination) is written to the SRAM 6.

【0013】SRAM6はREC5で回転させる画素デ
ータ用のスタティック型の読取り書込みメモリで、64
Kバイトの記憶容量を有する。REC5の回転動作のソ
ースおよびディステネーションともこのメモリ領域を用
いる。
An SRAM 6 is a static read / write memory for pixel data rotated by the REC 5,
It has a storage capacity of K bytes. This memory area is used for the source and destination of the rotation operation of the REC 5.

【0014】TRC7はタイマーであり、LTM8はホ
スト系高速シリアルインターフェイス制御であり、LR
TM9はホスト系高速シリアルインターフェイス・トラ
ンシーバ、ODC10はLTM8の86系バスとCPU
1のバス変換およびDMA転送を制御する。
TRC7 is a timer, LTM8 is a host system high-speed serial interface control, and LR
TM9 is a host high-speed serial interface transceiver, and ODC10 is an LTM8 86-system bus and CPU.
1 bus conversion and DMA transfer.

【0015】MAC11はCPU1からのPIO(プロ
セス入出力)アクセス制御を行う。MIC12はモノリ
シック集積回路で、その中のTIMER12aは16ビ
ットのタイマ3チャンネルおよび3チャンネル共通の1
6ビット長のプリスケーラを有する。また、INTCT
L12bは各割り込み要求元からの割り込みを優先制御
し、レベル1からレベル7までの割り込み要求としCP
U1へ発行する。割り込み番号の昇順に従い割り込みの
優先度が上がる。特にレベル7ではノンマスカブル割り
込みである。SPIF12cはSP13とCPU1との
インターフェイス部で、16ビット長のコマンドポー
ト、ステータスポートおよび制御ポートを備える。
The MAC 11 controls PIO (process input / output) access from the CPU 1. The MIC 12 is a monolithic integrated circuit, in which the TIMER 12a is a 16-bit timer having three channels and one common to three channels.
It has a 6-bit length prescaler. Also, INTCT
L12b gives priority control to the interrupt from each interrupt request source and sets the interrupt request from level 1 to level 7 as CP.
Issue to U1. The priority of the interrupt increases according to the ascending order of the interrupt number. In particular, at level 7, a non-maskable interrupt is generated. The SPIF 12c is an interface between the SP 13 and the CPU 1, and has a 16-bit command port, a status port, and a control port.

【0016】SP13はスレーブプロセッサで、PPR
14の状態監視およびPPR14との通信機能パネルの
状態制御を行う。SPROM15はSPプログラムの格
納用読取り専用メモリで、32Kバイトの記憶容量を有
する。
SP13 is a slave processor, PPR
14 and controls the state of the communication function panel with the PPR 14. The SPROM 15 is a read-only memory for storing SP programs and has a storage capacity of 32 Kbytes.

【0017】CPLD16はCPU1のIOレジスタの
一部でディップスイッチである。PMC17はプラグイ
ンメモリカードで、その中のPPRC17aはPPR制
御部でDRAM18からビットマップデータをDMA
(直接メモリアクセス)で読み出し、PPR14が必要
とするシルアル信号を出力する。PC17bはDRAM
リード時のパリティチェッカである。
The CPLD 16 is a part of the IO register of the CPU 1 and is a dip switch. A PMC 17 is a plug-in memory card, and a PPRC 17a in the PMC 17 is a PPR control unit that transfers bit map data from the DRAM 18 to the DMA.
(Direct memory access) and outputs a serial signal required by the PPR 14. PC17b is DRAM
This is a parity checker at the time of reading.

【0018】DRAM18はCPU1の作業時にデータ
を一時的に記憶するダイナミック型の読取り書込みメモ
リで、18Mバイトの記憶容量を有する。このDRAM
18は描画展開を行う際に使用される。
The DRAM 18 is a dynamic read / write memory for temporarily storing data when the CPU 1 operates, and has a storage capacity of 18 Mbytes. This DRAM
Reference numeral 18 is used when rendering is performed.

【0019】この描画装置は、上位装置側の例えば24
0dpi(ドット/インチ)の描画データをメモリへの
ビットマップ展開(文字コードデータ、図形コマンドデ
ータ)を行い、その後、例えば400dpiへの変換を
行う。また、画像データの場合には、メモリへのビット
マップ展開を行うときに同時に240→400dpi変
換描画を行い、画像データ(文字コードデータ、図形コ
マンドデータ、画像データ)の400dpiの描画結果
を出力する。
This drawing apparatus has, for example, 24
Bitmap expansion (character code data, graphic command data) of drawing data of 0 dpi (dot / inch) to a memory is performed, and then conversion to, for example, 400 dpi is performed. In the case of image data, 240 → 400 dpi conversion drawing is performed at the same time as bitmap development to memory, and a 400 dpi drawing result of image data (character code data, figure command data, image data) is output. .

【0020】図2は、画面を横方向に変換処理する際に
用いる32ビット(4バイト)の横方向変換テーブルT
Aである。テーブル中、ランレングスの総和(m)は黒
ドットまたは白ドットが変化するまでの連続する画素数
(ランレングス)の総和を示し、ソースパターンから送
られて来る個々の白ビット数または黒ビット数を順次加
算していった値を格納する。
FIG. 2 shows a 32-bit (4-byte) horizontal conversion table T used for horizontal conversion of a screen.
A. In the table, the total sum of run lengths (m) indicates the total number of continuous pixels (run length) until the black dot or white dot changes, and the number of individual white bits or black bits sent from the source pattern. Are sequentially added and stored.

【0021】ドット展開数(p)は画面の横方向のドッ
ト数を240dpiから400dpiに変換した場合の
描画するビット数を蓄積し、個々のソースパターンを演
算処理した後の拡大されたデストパターンの白ビット数
または黒ビット数を格納記憶する。この値が後の2ライ
ンまたは1ライン書き込みの際に使用され、デストパタ
ーンが作成される。
The number of dots developed (p) accumulates the number of bits to be drawn when the number of dots in the horizontal direction of the screen is converted from 240 dpi to 400 dpi, and the enlarged dest pattern after the arithmetic processing of each source pattern is accumulated. The number of white bits or the number of black bits is stored and stored. This value is used in the subsequent two-line or one-line writing, and a dest pattern is created.

【0022】ドット展開数の総和(q)は400dpi
で展開したときの横方向のドット数を蓄積し、pを順次
加算していった値を格納記憶する。
The total sum (q) of the dot development numbers is 400 dpi.
The number of dots in the horizontal direction at the time of development is accumulated, and the value obtained by sequentially adding p is stored.

【0023】優先色指定(clr)は白ビット、黒ビッ
トおよび通常描画の選択時に参照し、これで指定した優
先色が描画結果に反映される。この優先色指定(cl
r)は上位装置からのデータ上の指示またはこの描画装
置のメモリスイッチ情報からの優先色指定の値を記憶格
納する。
The priority color designation (clr) is referred to when a white bit, a black bit and normal drawing are selected, and the designated priority color is reflected in the drawing result. This priority color designation (cl
r) stores an instruction on data from the host device or a value of designation of priority color from memory switch information of this drawing device.

【0024】図3は、画面を縦方向に変換処理する際に
用いる32ビット(4バイト)の縦方向変換テーブルT
Bである。テーブル中、ラインの総和(M)はソースパ
ターン側の処理されたライン数を順次加算(1ラインず
つ増加)していった値を格納記憶する。
FIG. 3 shows a vertical conversion table T of 32 bits (4 bytes) used when the screen is converted in the vertical direction.
B. In the table, the sum (M) of lines stores and stores a value obtained by sequentially adding (incrementing by one line) the number of processed lines on the source pattern side.

【0025】ライン展開数(P)は次に描画するライン
が1ラインかまたは2ラインかを示しており、この値を
格納記憶する。この値は横方向描画処理の際に2ライン
または1ライン描画指示に使用する。
The line development number (P) indicates whether the next line to be drawn is one line or two lines, and this value is stored and stored. This value is used for a two-line or one-line drawing instruction during the horizontal drawing process.

【0026】ライン展開数の総和(Q)はライン展開数
(P)を順次加算していった値を格納記憶する。
The sum (Q) of the line development numbers stores and stores a value obtained by sequentially adding the line development number (P).

【0027】次に、図4〜図6に示すフローチャートを
参照しながら、画面の横方法のドット数を240dpi
から400dpiに変換処理する動作について説明す
る。まず、横方向変換テーブルTAから優先色指定(c
lr)を読み込む(ステップS1)。次いで、読み込ん
だ優先色指定(clr)が白ビット優先処理であるか否
か判定する(ステップS2)。
Next, referring to the flowcharts shown in FIGS. 4 to 6, the number of dots in the horizontal direction of the screen is set to 240 dpi.
The operation of converting the data to 400 dpi will be described. First, the priority color designation (c
1r) is read (step S1). Next, it is determined whether the read priority color designation (clr) is white bit priority processing (step S2).

【0028】白ビット優先処理の場合はランレングス
(n)を読み込み(ステップS3)、それが白ビットか
黒ビットかを判定する(ステップS4)。白ビットであ
れば、ランレングスの総和(m)、ドット展開数
(p)、ドット展開数の総和(q)はそれぞれ次のよう
になる(ステップS5)。
In the case of the white bit priority processing, the run length (n) is read (step S3), and it is determined whether it is a white bit or a black bit (step S4). If it is a white bit, the total sum of run lengths (m), the number of dot developments (p), and the total number of dot developments (q) are as follows (step S5).

【0029】m←m+n p←(m×400/240の商)+(m×400/24
0の余り四捨五入値)−q q←q+p この値を横方向変換テーブルTAに書込む。
M ← m + n p ← (quotient of m × 400/240) + (m × 400/24
(Rounded-off value of 0) −q q ← q + p This value is written in the horizontal direction conversion table TA.

【0030】次いで、2ライン描画指示か否か判定し
(ステップS6)、2ライン描画指示であればデストa
drのオフセット位置からpビット2ライン書き込み
(ステップS7)、2ライン描画指示でなければデスト
adrのオフセット位置からpビット1ライン書き込み
(ステップS8)、それぞれリターンする。
Next, it is determined whether or not a two-line drawing instruction is given (step S6).
Two lines of p bits are written from the offset position of dr (step S7), and if it is not a 2-line drawing instruction, one line of p bits is written from the offset position of dest adr (step S8), and the process returns.

【0031】ステップS4でランレングス(n)が黒ビ
ットであれば、ランレングスの総和(m)、ドット展開
数(p)、ドット展開数の総和(q)はそれぞれ次のよ
うになる(ステップS9)。
If the run length (n) is a black bit in step S4, the total sum of run lengths (m), the number of dot developments (p), and the total number of dot developments (q) are as follows (step S4). S9).

【0032】m←m+n p←(m×400/240の商)−q q←q+p この値を横方向変換テーブルTAに書込む。M ← m + n p ← (quotient of m × 400/240) −q q ← q + p This value is written in the horizontal conversion table TA.

【0033】次いで、2ライン描画指示か否か判定し
(ステップS10)、2ライン描画指示であればデスト
adrのオフセット位置からpビット2ライン書き込み
(ステップS11)、2ライン描画指示でなければデス
トadrのオフセット位置からpビット1ライン書き込
み(ステップS12)、それぞれリターンする。
Next, it is determined whether or not a two-line drawing instruction has been issued (step S10). If it is a two-line drawing instruction, two bits of p bits are written from the offset position of dest adr (step S11). One line of p bits is written from the offset position of adr (step S12), and the process returns.

【0034】ステップS2で優先色指定(clr)が白
ビット優先処理でないと判定した場合は、図5の処理に
移り、優先色指定(clr)が黒ビット優先処理である
か否か判定する(ステップS21)。黒ビット優先処理
の場合はランレングス(n)を読み込み(ステップS2
2)、それが白ビットか黒ビットかを判定する(ステッ
プS23)。黒ビットであればランレングスの総和
(m)、ドット展開数(p)、ドット展開数の総和
(q)は次のようになる(ステップS24)。
If it is determined in step S2 that the priority color designation (clr) is not the white bit priority process, the process proceeds to FIG. 5, and it is determined whether the priority color designation (clr) is the black bit priority process (step S2). Step S21). In the case of black bit priority processing, run length (n) is read (step S2).
2) It is determined whether it is a white bit or a black bit (step S23). If it is a black bit, the total sum of run lengths (m), the number of dot developments (p), and the total number of dot developments (q) are as follows (step S24).

【0035】m←m+n p←(m×400/240の商)+(m×400/24
0の余り四捨五入値)−q q←q+p この値を横方向変換テーブルTAに書込む。
M ← m + n p ← (quotient of m × 400/240) + (m × 400/24
(Rounded-off value of 0) −q q ← q + p This value is written in the horizontal direction conversion table TA.

【0036】次いで、2ライン描画指示か否か判定し
(ステップS25)、2ライン描画指示であればデスト
adrのオフセット位置からpビット2ライン書き込み
(ステップS26)、2ライン描画指示でなければデス
トadrのオフセット位置からpビット1ライン書き込
み(ステップS27)、それぞれリターンする。
Next, it is determined whether or not a two-line drawing instruction has been issued (step S25). If the instruction is a two-line drawing instruction, two lines of p bits are written from the offset position of dest adr (step S26). Write one line of p bits from the offset position of adr (step S27), and return.

【0037】ランレングス(n)が白ビットであれば
(ステップS23)、ランレングスの総和(m)、ドッ
ト展開数(p)、ドット展開数の総和(q)はそれぞれ
次のようになる(ステップS28)。
If the run length (n) is a white bit (step S23), the total sum of run lengths (m), the number of dot developments (p), and the total number of dot developments (q) are as follows ( Step S28).

【0038】m←m+n p←(m×400/240の商)−q q←q+p この値を横方向変換テーブルTAに書込む。M ← m + n p ← (quotient of m × 400/240) −q q ← q + p This value is written in the horizontal direction conversion table TA.

【0039】次いで、2ライン描画指示か否か判定し
(ステップS29)、2ライン描画指示であればデスト
adrのオフセット位置からpビット2ライン書き込み
(ステップS30)、2ライン描画指示でなければデス
トadrのオフセット位置からpビット1ライン書き込
み(ステップS31)、それぞれリターンする。
Next, it is determined whether or not a two-line drawing instruction is given (step S29). If the instruction is a two-line drawing instruction, two lines of p bits are written from the offset position of the dest adr (step S30). Write one line of p bits from the offset position of adr (step S31), and return.

【0040】ステップS21で優先色指定(clr)が
黒ビット優先処理でないと判定した場合は、図6の処理
に移り、ビット色の強調がない通常の処理を行う。ラン
レングスの総和(m)、実際の展開ドット数(p)、ド
ット展開数の総和(q)はそれぞれ次のようになる(ス
テップS41)。
If it is determined in step S21 that the priority color designation (clr) is not the black bit priority processing, the processing shifts to the processing in FIG. 6, and normal processing without emphasizing the bit color is performed. The total (m) of the run lengths, the actual number of developed dots (p), and the total (q) of the numbers of developed dots are as follows (step S41).

【0041】m←m+n p←(m×400/240の商)+(m×400/24
0の余り四捨五入値)−q q←q+p この値を横方向変換テーブルTAに書込む。
M ← m + n p ← (quotient of m × 400/240) + (m × 400/24
(Rounded-off value of 0) −q q ← q + p This value is written in the horizontal direction conversion table TA.

【0042】次いで、2ライン描画指示か否か判定し
(ステップS42)、2ライン描画指示であればデスト
adrのオフセット位置からpビット2ライン書き込み
(ステップS43)、2ライン描画指示でなければデス
トadrのオフセット位置からpビット1ライン書き込
み(ステップS44)、それぞれリターンする。
Next, it is determined whether or not a two-line drawing instruction has been issued (step S42). If it is a two-line drawing instruction, two bits of p bits are written from the offset position of the dest adr (step S43). Write one line of p bits from the offset position of adr (step S44), and return.

【0043】ここで、デストadrとは、デストパター
ンを描画するメモリの中で任意に指定されるアドレスを
示す。また、オフセット位置とは、デストパターンの描
画の際にビットの位置を指定する。オフセット位置で指
定する範囲は、バイトバウンダリ(8ビット)の場合は
0〜7まで、ワードバウンダリ(16ビット)の場合は
0〜15まで、ロングワードバウンダリ(32ビット)
の場合は0〜31までである。
Here, the dest adr indicates an address arbitrarily specified in a memory for drawing a dest pattern. The offset position designates the position of a bit at the time of drawing the dest pattern. The range specified by the offset position is from 0 to 7 for a byte boundary (8 bits), from 0 to 15 for a word boundary (16 bits), and a long word boundary (32 bits).
In the case of, it is from 0 to 31.

【0044】次に、図7に示すフローチャートを参照し
ながら、画面の縦方向のドット数を240dpiから4
00dpiに拡大変換処理する動作について説明する。
まず、ライン(N)を読み込む。ライン(N)は240
dpi描画時に描画するであろう仮想的な処理済みライ
ンである。ライン(N)が入力されることによって、ラ
インの総和(M)、ライン展開数(P)、ライン展開数
の総和(Q)はそれぞれ次のようになる(ステップS5
1)。
Next, referring to the flow chart shown in FIG. 7, the number of dots in the vertical direction of the screen is changed from 240 dpi to 4 dots.
The operation for performing the enlargement conversion process to 00 dpi will be described.
First, the line (N) is read. Line (N) is 240
This is a virtual processed line that will be drawn at the time of dpi drawing. When the line (N) is input, the total sum (M) of the lines, the number of line developments (P), and the total sum of the number of line developments (Q) are as follows (step S5).
1).

【0045】M←M+N P←(M×400/240の商)+(M×400/24
0の余り四捨五入値)−Q Q←Q+P この値を縦方向変換テーブルTBに書込む。
M ← M + N P ← (quotient of M × 400/240) + (M × 400/24
(Rounded-off value of 0) −Q Q ← Q + P This value is written in the vertical direction conversion table TB.

【0046】次いで、ライン展開数(P)が2か否か判
定し(ステップS52)、2であれば横方向描画時に2
ライン描画指示をし(ステップS53)、2でなければ
1であるの横方向描画時に1ライン描画指示をし(ステ
ップS54)、ライン数を更新するためにライン(N)
に1を加算し(ステップS55)、リターンする。
Next, it is determined whether or not the number of line developments (P) is 2 (step S52).
A line drawing instruction is issued (step S53). If it is not 2, a 1-line drawing instruction is given at the time of horizontal drawing (step S54), and the line (N) is updated to update the number of lines.
Is added to (step S55), and the process returns.

【0047】このように、白ビット優先処理(ステップ
S3〜S12)を行った場合は、テーブルTA中の優先
色指定の結果を反映して、「400×240の余りの四
捨五入値」を白ビットの数に加算し、黒ビットの処理は
余りを切り捨て処理することによって白ビット優先の描
画結果を得ることが可能となる。
As described above, when the white bit priority processing (steps S3 to S12) is performed, the “400 × 240 remainder rounded value” is changed to the white bit, reflecting the result of the priority color designation in the table TA. , And rounding off the remainder in the processing of the black bit makes it possible to obtain a drawing result in which the white bit is prioritized.

【0048】また、黒ビット優先処理(ステップS22
〜S31)を行った場合は、テーブルTA中の優先色指
定の結果を反映して、「400×240の余りの四捨五
入値」を黒ビットの数に加算し、白ビットの処理は余り
を切り捨て処理することによって黒ビット優先の描画結
果を得ることが可能となる。
Further, black bit priority processing (step S22)
-S31), the result of the priority color designation in the table TA is reflected, "400 × 240 rounded value" is added to the number of black bits, and the white bit processing rounds off the remainder. By performing the processing, it is possible to obtain a drawing result with black bit priority.

【0049】また、通常処理(ステップS41〜S4
4)を行った場合は、テーブル中の優先色指定の結果を
反映して、「400×240の余りの四捨五入値」を白
ビットおよび黒ビットともに数に加算し、強調のない通
常の描画結果を得ることが可能となる。
The normal processing (steps S41 to S4)
If 4) is performed, the result of the priority color designation in the table is reflected, and “400 × 240 rounded value” is added to the numbers for both the white bit and the black bit to obtain the normal drawing result without emphasis. Can be obtained.

【0050】次に、図8〜図10に示す変換模図を参照
しながら、縦方向および横方向をそれぞれ240dpi
から400dpiに変換処理する具体例について説明す
る。なお、図8は白ビット優先処理、図9は黒ビット優
先処理、図10は通常処理である。また、各図の図
(a)は240dpiのソースパターンを示し、図
(b)は400dpiのデストパターンを示す。また、
白ドットおよび黒ドットの配列は各図のソースパターン
でいずれも同一であるとする。また、画面の原点座標
(0,0)は左上位置とし、240dpi画面の描画開
始位置の座標(x,y)は(3,3)であるとする。
Next, with reference to the conversion schematic diagrams shown in FIGS.
A specific example in which the conversion processing is performed to the data from 400 dpi will be described. 8 shows a white bit priority process, FIG. 9 shows a black bit priority process, and FIG. 10 shows a normal process. In each figure, (a) shows a 240 dpi source pattern, and (b) shows a 400 dpi dest pattern. Also,
It is assumed that the arrangement of the white dots and the black dots is the same in the source pattern of each drawing. The origin coordinates (0, 0) of the screen are at the upper left position, and the coordinates (x, y) of the drawing start position on the 240 dpi screen are (3, 3).

【0051】まず、図8に示す変換模図を参照して白ビ
ット優先処理(ステップS3〜S12)の具体例につい
て説明する。
First, a specific example of the white bit priority processing (steps S3 to S12) will be described with reference to the conversion diagram shown in FIG.

【0052】処理1として、描画開始位置の変換処理を
行う。変換後の描画開始位置の座標(X,Y)は次のよ
うになる。
As processing 1, conversion processing of the drawing start position is performed. The coordinates (X, Y) of the drawing start position after the conversion are as follows.

【0053】X座標・・・3×400/240=5 Y座標・・・3×400/240=5 従って、変換後の描画開始位置の座標(X,Y)は
(5,5)となる。
X coordinate: 3 × 400/240 = 5 Y coordinate: 3 × 400/240 = 5 Accordingly, the coordinates (X, Y) of the drawing start position after conversion are (5, 5). .

【0054】処理2として、縦方向1ライン目の変換処
理を行う。ステップS51からラインの総和(M)、ラ
イン展開数(P)、ライン展開数の総和(Q)は次のよ
うになる。なお、大カッコ[ ]内の数値は演算値であ
る。
As processing 2, conversion processing for the first line in the vertical direction is performed. From step S51, the sum of the lines (M), the number of line developments (P), and the sum of the number of line developments (Q) are as follows. The numerical values in square brackets [] are calculated values.

【0055】M[1]←M[0]+N[1] P[2]←商[1]+余り四捨五入値[1]−Q[0] Q[2]←Q[0]+P[2] 従って、P(ライン展開数)は2となるので、2ライン
描画となる。
M [1] ← M [0] + N [1] P [2] ← quotient [1] + Rounded value [1] −Q [0] Q [2] ← Q [0] + P [2] Accordingly, since P (the number of line developments) is 2, two-line drawing is performed.

【0056】処理3として、1ライン目の横方向のドッ
ト変換処理を行う。まず、1ライン目の左側の2ランレ
ングスの白ドットは、ステップS5からランレングスの
総和(m)、ドット展開数(p)、ドット展開数の総和
(q)は次のようになる。
In process 3, a horizontal dot conversion process for the first line is performed. First, with respect to the white dots of two run lengths on the left side of the first line, the total sum (m) of the run lengths, the number of dot developments (p), and the total sum (q) of the dot development numbers from step S5 are as follows.

【0057】m[2]←m[0]+n[2] p[3]←商[3]+余り四捨五入値[0]−q[0] q[3]←q[0]+p[3] 従って、p(ドット展開数)は3となるので、白ドット
は2ランレングスから3ランレングスへ変換描画処理さ
れる。
M [2] ← m [0] + n [2] p [3] ← quotient [3] + rounded value [0] −q [0] q [3] ← q [0] + p [3] Accordingly, since p (the number of developed dots) is 3, the white dot is converted and drawn from 2 run lengths to 3 run lengths.

【0058】次いで、1ライン目の中央の2ランレング
スの黒ドットは、ステップS9からランレングスの総和
(m)、ドット展開数(p)、ドット展開数の総和
(q)は次のようになる。
Next, in step S9, the total of the run lengths (m), the number of dot developments (p), and the total of the dot development numbers (q) from the step S9 are as follows. Become.

【0059】m[4]←m[2]+n[2] p[3]←商[6]−q[3] q[6]←q[3]+p[3] 従って、p(ドット展開数)は3となるので、黒ドット
は2ランレングスから3ランレングスへ変換描画処理さ
れる。
M [4] ← m [2] + n [2] p [3] ← quotient [6] −q [3] q [6] ← q [3] + p [3] Therefore, p (dot development number ) Is 3, so that the black dot is converted and drawn from 2 run lengths to 3 run lengths.

【0060】次いで、1ライン目の右側の2ランレング
スの白ドットは、ステップS5からランレングスの総和
(m)、ドット展開数(p)、ドット展開数の総和
(q)は次のようになる。
Next, the total of the run lengths (m), the number of dot developments (p), and the total of the dot development numbers (q) from the step S5 are as follows. Become.

【0061】m[6]←m[4]+n[2] p[4]←商[10]+余り四捨五入値[0]−q[6] q[10]←q[6]+p[4] 従って、p(ドット展開数)は4となるので、白ドット
は2ランレングスから4ランレングスへ変換描画処理さ
れる。
M [6] ← m [4] + n [2] p [4] ← quotient [10] + rounded value [0] −q [6] q [10] ← q [6] + p [4] Accordingly, since p (the number of developed dots) is 4, the white dot is converted and drawn from 2-run length to 4-run length.

【0062】また、処理2で求めたP(ライン展開数)
は2であるので、1ライン目はステップS7およびS1
1によって2ライン描画される。
Further, P (the number of line developments) obtained in process 2
Is 2, the first line is divided into steps S7 and S1.
Two lines are drawn by one.

【0063】処理4として、縦方向2ライン目の変換処
理を行う。ステップS51からラインの総和(M)、ラ
イン展開数(P)、ライン展開数の総和(Q)は次のよ
うになる。
As processing 4, conversion processing for the second line in the vertical direction is performed. From step S51, the sum of the lines (M), the number of line developments (P), and the sum of the number of line developments (Q) are as follows.

【0064】M[2]←M[1]+N[1] P[1]←商[3]+余り四捨五入値[0]−Q[2] Q[3]←Q[2]+P[1] 従って、P(ライン展開数)は1となるので、1ライン
描画となる。
M [2] ← M [1] + N [1] P [1] ← quotient [3] + Rounded value [0] −Q [2] Q [3] ← Q [2] + P [1] Accordingly, since P (the number of line developments) is 1, one line is drawn.

【0065】処理5として、2ライン目の横方向のドッ
ト変換処理を行う。まず、2ライン目の左側の2ランレ
ングスの黒ドットは、ステップS9からランレングスの
総和(m)、ドット展開数(p)、ドット展開数の総和
(q)は次のようになる。
In process 5, a horizontal dot conversion process for the second line is performed. First, for the two run length black dots on the left side of the second line, the total sum of run lengths (m), the number of dot developments (p), and the total sum of the number of dot developments (q) from step S9 are as follows.

【0066】m[2]←m[0]+n[2] p[3]←商[3]−q[0] q[3]←q[9]+p[3] 従って、p(ドット展開数)は3となるので、黒ドット
は2ランレングスから3ランレングスへ変換描画処理さ
れる。
M [2] ← m [0] + n [2] p [3] ← quotient [3] −q [0] q [3] ← q [9] + p [3] Therefore, p (dot development number ) Is 3, so that the black dot is converted and drawn from 2 run lengths to 3 run lengths.

【0067】次いで、2ライン目の中央の2ランレング
スの白ドットは、ステップS5からランレングスの総和
(m)、ドット展開数(p)、ドット展開数の総和
(q)は次のようになる。
Next, in step S5, the total of the run lengths (m), the number of dot developments (p), and the total of the number of dot developments (q) from the step S5 are as follows. Become.

【0068】m[4]←m[2]+n[2] p[4]←商[6]+余り四捨五入値[1]−q[3] q[7]←q[3]+p[4] 従って、p(ドット展開数)は4となるので、白ドット
は2ランレングスから4ランレングスへ変換描画処理さ
れる。
M [4] ← m [2] + n [2] p [4] ← quotient [6] + rounded value [1] −q [3] q [7] ← q [3] + p [4] Accordingly, since p (the number of developed dots) is 4, the white dot is converted and drawn from 2-run length to 4-run length.

【0069】次いで、2ライン目の右側の2ランレング
スの黒ドットは、ステップS9からランレングスの総和
(m)、ドット展開数(p)、ドット展開数の総和
(q)は次のようになる。
Next, the total of the run lengths (m), the number of dot developments (p), and the total of the dot development numbers (q) from the step S9 are as follows. Become.

【0070】m[6]←m[4]+n[2] p[3]←商[10]−q[7] q[10]←q[7]+p[3] 従って、p(ドット展開数)は3となるので、黒ドット
は2ランレングスから3ランレングスへ変換描画処理さ
れる。また、処理4で求めたP(ライン展開数)は1で
あるので、2ライン目はステップS8およびS12によ
って1ライン描画される。
M [6] ← m [4] + n [2] p [3] ← quotient [10] −q [7] q [10] ← q [7] + p [3] Therefore, p (dot development number ) Is 3, so that the black dot is converted and drawn from 2 run lengths to 3 run lengths. Further, since P (the number of line developments) obtained in process 4 is 1, one line is drawn for the second line in steps S8 and S12.

【0071】次に、図9に示す変換模図を参照して黒ビ
ット優先処理(ステップS22〜S31)の具体例につ
いて説明する。
Next, a specific example of the black bit priority processing (steps S22 to S31) will be described with reference to the conversion diagram shown in FIG.

【0072】処理1として、描画開始位置の変換処理を
行う。この処理は、図8における処理1と同様であるの
で詳細説明は省略する。この処理1の結果、変換後の描
画開始位置の座標(X,Y)は(5,5)となる。
As processing 1, conversion processing of the drawing start position is performed. This processing is the same as the processing 1 in FIG. As a result of this processing 1, the coordinates (X, Y) of the drawing start position after conversion are (5, 5).

【0073】次いで、処理2として、縦方向1ライン目
の変換処理を行う。この処理も、図8における処理2と
同様であるので詳細説明は省略する。この処理2の結
果、P(ライン展開数)は2となるので、2ライン描画
となる。
Next, as processing 2, conversion processing for the first line in the vertical direction is performed. This process is also the same as the process 2 in FIG. As a result of this processing 2, P (the number of line developments) becomes 2, so that two lines are drawn.

【0074】処理3として、1ライン目の横方向のドッ
ト変換処理を行う。まず、1ライン目の左側の2ランレ
ングスの白ドットはステップS28からランレングスの
総和(m)、ドット展開数(p)、ドット展開数の総和
(q)は次のようになる。
As process 3, a horizontal dot conversion process for the first line is performed. First, the total of the run lengths (m), the number of dot developments (p), and the total of the number of dot developments (q) from the step S28 in the left two-run-length white dots on the first line are as follows.

【0075】m[2]←m[0]+n[2] p[3]←商[3]−q[0] q[3]←q[0]+p[3] 従って、p(ドット展開数)は3となるので、白ドット
は2ランレングスから3ランレングスへ変換描画処理さ
れる。
M [2] ← m [0] + n [2] p [3] ← quotient [3] −q [0] q [3] ← q [0] + p [3] Therefore, p (dot development number ) Is 3, so that the white dot is converted and rendered from 2 run lengths to 3 run lengths.

【0076】次いで、1ライン目の中央の2ランレング
スの黒ドットは、ステップS24からランレングスの総
和(m)、ドット展開数(p)、ドット展開数の総和
(q)は次のようになる。
Next, in step S24, the total of the run lengths (m), the number of dot developments (p), and the total of the number of dot developments (q) from the step S24 are as follows. Become.

【0077】m[4]←m[2]+n[2] p[4]←商[6]+余り四捨五入値[1]−q[3] q[7]←q[3]+p[4] 従って、p(ドット展開数)は4となるので、黒ドット
は2ランレングスから4ランレングスへ変換描画処理さ
れる。
M [4] ← m [2] + n [2] p [4] ← quotient [6] + rounded value [1] −q [3] q [7] ← q [3] + p [4] Accordingly, since p (the number of developed dots) is 4, the black dot is converted and drawn from 2 run lengths to 4 run lengths.

【0078】次いで、1ライン目の右側の2ランレング
スの白ドットは、ステップS28からランレングスの総
和(m)、ドット展開数(p)、ドット展開数の総和
(q)は次のようになる。
Next, the total of the run lengths (m), the number of dot developments (p), and the total of the dot development numbers (q) from the step S28 for the two run-length white dots on the right side of the first line are as follows. Become.

【0079】m[6]←m[4]+n[2] p[3]←商[10]−q[7] q[10]←q[7]+p[3] 従って、p(ドット展開数)は3となるので、白ドット
は2ランレングスから3ランレングスへ変換描画処理さ
れる。
M [6] ← m [4] + n [2] p [3] ← quotient [10] −q [7] q [10] ← q [7] + p [3] Therefore, p (dot development number ) Is 3, so that the white dot is converted and rendered from 2 run lengths to 3 run lengths.

【0080】また、処理2で求めたP(ライン展開数)
は2であるので、1ライン目はステップS26およびS
30によって2ライン描画される。
Further, P (the number of line developments) obtained in process 2
Is 2, the first line is divided into steps S26 and S
30, two lines are drawn.

【0081】処理4として、縦方向2ライン目の変換処
理を行う。この処理も、図8における処理4と同様であ
るので詳細説明は省略する。この処理4の結果、P(ラ
イン展開数)は1となるので、1ライン描画となる。
As processing 4, conversion processing for the second line in the vertical direction is performed. This processing is also the same as the processing 4 in FIG. As a result of this processing 4, P (the number of line developments) becomes 1, so that one line is drawn.

【0082】処理5として、2ライン目の横方向のドッ
ト変換処理を行う。まず、2ライン目の左側の2ランレ
ングスの黒ドットはステップS24からランレングスの
総和(m)、ドット展開数(p)、ドット展開数の総和
(q)は次のようになる。
In process 5, a horizontal dot conversion process for the second line is performed. First, the total of the run lengths (m), the number of dot developments (p), and the total of the number of dot developments (q) from the step S24 for the left two-run length black dot on the second line are as follows.

【0083】m[2]←m[0]+n[2] p[3]←商[3]+余り四捨五入値[0]−q[0] q[3]←q[0]+p[3] 従って、p(ドット展開数)は3となるので、黒ドット
は2ランレングスから3ランレングスへ変換描画処理さ
れる。
M [2] ← m [0] + n [2] p [3] ← quotient [3] + rounded value [0] −q [0] q [3] ← q [0] + p [3] Accordingly, since p (the number of developed dots) is 3, the black dot is converted from two run lengths to three run lengths.

【0084】次いで、2ライン目の中央の2ランレング
スの白ドットは、ステップS28からランレングスの総
和(m)、ドット展開数(p)、ドット展開数の総和
(q)は次のようになる。
Next, the total of the run lengths (m), the number of dot developments (p), and the total of the number of dot developments (q) from the step S28 are as follows. Become.

【0085】m[4]←m[2]+n[2] p[3]←商[6]−q[3] q[6]←q[3]+p[3] 従って、p(ドット展開数)は3となるので、白ドット
は2ランレングスから3ランレングスへ変換描画処理さ
れる。
M [4] ← m [2] + n [2] p [3] ← quotient [6] −q [3] q [6] ← q [3] + p [3] Therefore, p (dot development number ) Is 3, so that the white dot is converted and rendered from 2 run lengths to 3 run lengths.

【0086】次いで、2ライン目の右側の2ランレング
スの黒ドットは、ステップS24からランレングスの総
和(m)、ドット展開数(p)、ドット展開数の総和
(q)は次のようになる。
Next, the total of the run lengths (m), the number of dot developments (p), and the total of the dot development numbers (q) from the step S24 are as follows. Become.

【0087】m[6]←m[4]+n[2] p[4]←商[10]+余り四捨五入値[0]−q[6] q[10]←q[6]+p[4] 従って、p(ドット展開数)は4となるので、黒ドット
は2ランレングスから4ランレングスへ変換描画処理さ
れる。また、処理4で求めたP(ライン展開数)は1で
あるので、2ライン目はステップS27およびS31に
よって1ライン描画される。
M [6] ← m [4] + n [2] p [4] ← quotient [10] + rounded value [0] −q [6] q [10] ← q [6] + p [4] Accordingly, since p (the number of developed dots) is 4, the black dot is converted and drawn from 2 run lengths to 4 run lengths. Further, since P (the number of line developments) obtained in process 4 is 1, one line is drawn for the second line in steps S27 and S31.

【0088】次に、図10に示す変換模図を参照して強
調の無い通常処理(ステップS41〜S44)の具体例
について説明する。
Next, a specific example of the normal processing without emphasis (steps S41 to S44) will be described with reference to the conversion schematic diagram shown in FIG.

【0089】処理1として、描画開始位置の変換処理を
行う。この処理は、図8における処理1と同様であるの
で詳細説明は省略する。この処理1の結果、変換後の描
画開始位置の座標(X,Y)は(5,5)となる。処理
2として、縦方向1ライン目の変換処理を行う。この処
理も、図8における処理2と同様であるので詳細説明は
省略する。この処理2の結果、P(ライン展開数)は2
となるので、2ライン描画となる。
As processing 1, conversion processing of the drawing start position is performed. This processing is the same as the processing 1 in FIG. As a result of this processing 1, the coordinates (X, Y) of the drawing start position after conversion are (5, 5). As processing 2, conversion processing of the first line in the vertical direction is performed. This process is also the same as the process 2 in FIG. As a result of this processing 2, P (the number of line developments) is 2
Therefore, two-line drawing is performed.

【0090】処理3として、1ライン目の横方向のドッ
ト変換処理を行う。まず、1ライン目の左側の2ランレ
ングスの白ドットはステップS41からランレングスの
総和(m)、ドット展開数(p)、ドット展開数の総和
(q)は次のようになる。
As processing 3, a horizontal dot conversion processing for the first line is performed. First, the total of the run lengths (m), the number of dot developments (p), and the total of the dot development numbers (q) for the two run-length white dots on the left side of the first line from step S41 are as follows.

【0091】m[2]←m[0]+n[2] p[3]←商[3]+余り四捨五入値[0]−q[0] q[3]←q[0]+p[3] 従って、p(ドット展開数)は3となるので、白ドット
は2ランレングスから3ランレングスへ変換描画処理さ
れる。
M [2] ← m [0] + n [2] p [3] ← quotient [3] + rounded value [0] −q [0] q [3] ← q [0] + p [3] Accordingly, since p (the number of developed dots) is 3, the white dot is converted and drawn from 2 run lengths to 3 run lengths.

【0092】次いで、1ライン目の中央の2ランレング
スの黒ドットは、ステップS41からランレングスの総
和(m)、ドット展開数(p)、ドット展開数の総和
(q)は次のようになる。
Next, in step S41, the total of the run lengths (m), the number of dot developments (p), and the total of the number of dot developments (q) from the step S41 are as follows. Become.

【0093】m[4]←m[2]+n[2] p[4]←商[6]+余り四捨五入値[1]−q[3] q[7]←q[3]+p[4] 従って、p(ドット展開数)は4となるので、黒ドット
は2ランレングスから4ランレングスへ変換描画処理さ
れる。
M [4] ← m [2] + n [2] p [4] ← quotient [6] + rounded value [1] −q [3] q [7] ← q [3] + p [4] Accordingly, since p (the number of developed dots) is 4, the black dot is converted and drawn from 2 run lengths to 4 run lengths.

【0094】次いで、1ライン目の右側の2ランレング
スの白ドットは、ステップS41からランレングスの総
和(m)、ドット展開数(p)、ドット展開数の総和
(q)は次のようになる。
Next, from step S41, the total of the run lengths (m), the number of dot developments (p), and the total of the number of dot developments (q) from the step S41 are as follows. Become.

【0095】m[6]←m[4]+n[2] p[3]←商[10]+余り四捨五入値[0]−q[7] q[10]←q[7]+p[3] 従って、p(ドット展開数)は3となるので、白ドット
は2ランレングスから3ランレングスへ変換描画処理さ
れる。
M [6] ← m [4] + n [2] p [3] ← quotient [10] + rounded value [0] −q [7] q [10] ← q [7] + p [3] Accordingly, since p (the number of developed dots) is 3, the white dot is converted and drawn from 2 run lengths to 3 run lengths.

【0096】また、処理2で求めたP(ライン展開数)
は2であるので、1ライン目はステップS43によって
2ライン描画される。
Further, P (the number of line developments) obtained in process 2
Is 2, the first line is drawn in step S43.

【0097】処理4として、縦方向2ライン目の変換処
理を行う。この処理も、図8の処理における処理4と同
様であるので詳細説明は省略する。この処理4の結果、
P(ライン展開数)は1となるので、1ライン描画とな
る。
As processing 4, conversion processing for the second line in the vertical direction is performed. This process is also the same as the process 4 in the process of FIG. As a result of this processing 4,
Since P (the number of developed lines) is 1, one line is drawn.

【0098】処理5として、2ライン目の横方向のドッ
ト変換処理を行う。まず、2ライン目の左側の2ランレ
ングスの黒ドットはステップS41からランレングスの
総和(m)、ドット展開数(p)、ドット展開数の総和
(q)は次のようになる。
As processing 5, horizontal dot conversion processing for the second line is performed. First, the total (m) of the run lengths, the number of dot developments (p), and the total of the number of dot developments (q) for the two run-length black dots on the left side of the second line from step S41 are as follows.

【0099】m[2]←m[0]+n[2] p[3]←商[3]+余り四捨五入値[0]−q[0] q[3]←q[0]+p[3] 従って、p(ドット展開数)は3となるので、黒ドット
は2ランレングスから3ランレングスへ変換描画処理さ
れる。
M [2] ← m [0] + n [2] p [3] ← quotient [3] + rounded value [0] −q [0] q [3] ← q [0] + p [3] Accordingly, since p (the number of developed dots) is 3, the black dot is converted from two run lengths to three run lengths.

【0100】次いで、2ライン目の中央の2ランレング
スの白ドットは、ステップS41からランレングスの総
和(m)、ドット展開数(p)、ドット展開数の総和
(q)は次のようになる。
Next, in step S41, the total of the run lengths (m), the number of dot developments (p), and the total of the number of dot developments (q) from the step S41 are as follows. Become.

【0101】m[4]←m[2]+n[2] p[4]←商[6]+余り四捨五入値[1]−q[3] q[7]←q[3]+p[4] 従って、p(ドット展開数)は4となるので、白ドット
は2ランレングスから4ランレングスへ変換描画処理さ
れる。
M [4] ← m [2] + n [2] p [4] ← quotient [6] + rounded value [1] −q [3] q [7] ← q [3] + p [4] Accordingly, since p (the number of developed dots) is 4, the white dot is converted and drawn from 2-run length to 4-run length.

【0102】次いで、2ライン目の右側の2ランレング
スの黒ドットは、ステップS41からランレングスの総
和(m)、ドット展開数(p)、ドット展開数の総和
(q)は次のようになる。
Next, the total of the run lengths (m), the number of dot developments (p), and the total of the number of dot developments (q) from the step S41 are as follows. Become.

【0103】m[6]←m[4]+n[2] p[3]←商[10]+余り四捨五入値[0]−q[7] q[10]←q[7]+p[3] 従って、p(ドット展開数)は3となるので、黒ドット
は2ランレングスから3ランレングスへ変換描画処理さ
れる。また、処理4で求めたP(ライン展開数)は1で
あるので、2ライン目はステップS44によって1ライ
ン描画される。
M [6] ← m [4] + n [2] p [3] ← quotient [10] + rounded value [0] −q [7] q [10] ← q [7] + p [3] Accordingly, since p (the number of developed dots) is 3, the black dot is converted from two run lengths to three run lengths. Further, since P (the number of line developments) obtained in process 4 is 1, one line is drawn for the second line in step S44.

【0104】[0104]

【発明の効果】本発明によれば、横方向変換テーブルお
よび縦方向変換テーブルを用いて縦方向および横方向の
変換を行うようにしたので、変換処理の簡素化および高
速化を図ることができる。
According to the present invention, since the vertical and horizontal conversions are performed using the horizontal and vertical conversion tables, the conversion processing can be simplified and speeded up. .

【0105】また、本発明によれば、上位装置からの指
示またはメモリスイッチ情報により変換描画結果に対す
る白ビットの強調または黒ビットの強調、通常の描画結
果の出力など、使用者の希望にそった描画結果を出力す
ることが可能になり、描画結果の出力を選択することが
できる。
Further, according to the present invention, according to the user's wishes, such as emphasizing white bits or black bits with respect to the converted drawing result or outputting a normal drawing result in accordance with an instruction from a host device or memory switch information. The drawing result can be output, and the output of the drawing result can be selected.

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

【図1】本発明の一実施の形態による描画装置を示すブ
ロック図である。
FIG. 1 is a block diagram showing a drawing apparatus according to an embodiment of the present invention.

【図2】横方向変換テーブルを示す図である。FIG. 2 is a diagram showing a horizontal direction conversion table.

【図3】縦方向変換テーブルを示す図である。FIG. 3 is a diagram showing a vertical direction conversion table.

【図4】横方向変換処理を示すフローチャ−トである。FIG. 4 is a flowchart showing a horizontal direction conversion process.

【図5】図4に続く横方向変換処理を示すフローチャ−
トである。
FIG. 5 is a flowchart showing a horizontal conversion process following FIG. 4;
It is.

【図6】図5に続く横方向変換処理を示すフローチャ−
トである。
FIG. 6 is a flowchart showing a horizontal conversion process following FIG. 5;
It is.

【図7】縦方向変換処理を示すフローチャ−トである。FIG. 7 is a flowchart showing a vertical direction conversion process.

【図8】白ビット優先処理の具体例を示す変換模図で、
(a)はソースパターン、(b)はデストパターンをそ
れぞれ示す。
FIG. 8 is a conversion diagram showing a specific example of white bit priority processing;
(A) shows a source pattern, and (b) shows a dest pattern.

【図9】黒ビット優先処理の具体例を示す変換模図で、
(a)はソースパターン、(b)はデストパターンをそ
れぞれ示す。
FIG. 9 is a conversion diagram showing a specific example of black bit priority processing;
(A) shows a source pattern, and (b) shows a dest pattern.

【図10】通常処理の具体例を示す変換模図で、(a)
はソースパターン、(b)はデストパターンをそれぞれ
示す。
FIG. 10 is a conversion schematic diagram showing a specific example of the normal processing, and FIG.
Indicates a source pattern, and (b) indicates a dest pattern.

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

1 CPU(中央処理装置) 2 ICC(ICメモリカード) 3 IPLROM(IPLプログラムメモリ) 4 FONTROM(文字フォントメモリ) 5 REC(画素データ回転用LSI) 6 SRAM(画素データ用スタティックメモリ) 7 TRC(タイマー) 8 LTM(ホスト系高速シリアルインターフェイス制
御) 9 LRTM(ホスト系高速シリアルインターフェイス
・トランシーバ) 10 ODC(バス変換およびDMA転送制御) 11 MAC(PIOアクセス制御) 12 MIC(モノリシック集積回路) 13 SP(スレーブプロセッサ) 14 PPR 15 PSROM(SPプログラムメモリ) 16 CPLD(ディップスイッチ) 17 PMC(プラグインメモリカード) 18 DRAM(ダイナミックメモリ) TA 横方向変換テーブル TB 縦方向変換テーブル
Reference Signs List 1 CPU (central processing unit) 2 ICC (IC memory card) 3 IPLROM (IPL program memory) 4 FONTROM (character font memory) 5 REC (LSI for pixel data rotation) 6 SRAM (static memory for pixel data) 7 TRC (timer) 8) LTM (host high-speed serial interface control) 9 LRTM (host high-speed serial interface transceiver) 10 ODC (bus conversion and DMA transfer control) 11 MAC (PIO access control) 12 MIC (monolithic integrated circuit) 13 SP (slave) Processor) 14 PPR 15 PSROM (SP program memory) 16 CPLD (Dip switch) 17 PMC (Plug-in memory card) 18 DRAM (Dynamic memory) TA Horizontal direction Conversion table TB Vertical conversion table

───────────────────────────────────────────────────── フロントページの続き (56)参考文献 特開 昭58−114567(JP,A) 特開 平1−183961(JP,A) 特開 平2−210957(JP,A) 特開 平5−250468(JP,A) 特開 平7−114635(JP,A) 特公 昭60−25945(JP,B1) (58)調査した分野(Int.Cl.7,DB名) G06T 3/40 H04N 1/393 H04N 1/387 101 JICSTファイル(JOIS)──────────────────────────────────────────────────続 き Continuation of the front page (56) References JP-A-58-114567 (JP, A) JP-A-1-1833961 (JP, A) JP-A-2-210957 (JP, A) JP-A-5-114 250468 (JP, A) JP-A-7-114635 (JP, A) JP-B-60-25945 (JP, B1) (58) Fields investigated (Int. Cl. 7 , DB name) G06T 3/40 H04N 1 / 393 H04N 1/387 101 JICST file (JOIS)

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 横方向および縦方向の各単位長当りのド
ット数がAドットで構成される第1の画面を、横方向お
よび縦方向の各単位長当りのドット数がBドット(但
し、A<B)で構成される第2の画面に変換して描画す
る描画装置であって、 前記第1の画面における横方向のランレングスの総和m
と、前記第2の画面における横方向のドット展開数p
と、当該ドット展開数pの総和qとを格納する横方向変
換テーブルと、前記第1の画面における横方向の連続する同一色のドッ
ト毎に、そのドット数nを前記総和mと加算して、これ
を新たな総和mとして前記横方向変換テーブルに格納
し、当該総和mを前記単位ドット数Bで乗算した後に前
記単位ドット数Aで除算し、得られた商と余りの四捨五
入値とを加算し、この加算値から前記ドット展開数の総
和qを減算して得た値を、新たにドット展開数pとして
当該横方向変換テーブルに格納し、更に、当該ドット展
開数pを前記横方向変換テーブルに格納されている総和
qと加算して、これを新たに総和qとして当該横方向変
換テーブルに格納する第1の演算手段と、 前記第1の画面における方向のライン数の総和Mと、
前記第2の画面における縦方向のライン展開数Pと、当
該ライン展開数Pの総和Qとを格納する縦方向変換テー
ブルと、前記第1の画面における縦方向のライン毎に、1を前記
総和Mと加算して、これを新たな総和Mとして前記縦方
向変換テーブルに格納し、当該総和Mを前記単位ドット
数Bで乗算した後に前記単位ドット数Aで除算し、得ら
れた商と余りの四捨五入値とを加算し、この加算値から
前記ドット展開数の総和Qを減算して得た値を、新たに
ライン展開数Pとして当該縦方向変換テーブルに格納
し、更に、当該ライン展開数Pを前記縦方向変換テーブ
ルに格納されている総和Qと加算して、これを新たに総
和Qとして当該縦方向変換テーブルに格納する第2の演
算手段と、 を備え、 前記第2の画面の横方向は前記ドット展開数p毎に描画
し、縦方向は前記ライン展開数P毎に描画する描画装置
おいて、 前記横方向変換テーブルは、前記第2の画面で強調する
優先色を指定する優先色指定データを格納し、 前記第1の演算手段は、優先色を描画する場合は前記商
と前記余りの四捨五入値とを加算し、その加算値から前
記ドット展開数の総和qを減算して得た値を前記ドット
展開数pとし、非優先色を描画する場合は前記商から前
記ドット展開数の総和qを減算して得た値を前記ドット
展開数pとすることを特徴とする描画装置
1. A first screen in which the number of dots per unit length in the horizontal direction and the vertical direction is A dots, and the number of dots per unit length in the horizontal direction and the vertical direction is B dots (however, A <B), which is a drawing device that converts and draws on a second screen composed of A <B), wherein a total sum m of horizontal run lengths on the first screen is m
And the dot development number p in the horizontal direction on the second screen
And a horizontal direction conversion table for storing the total q of the dot development numbers p, and dots of the same color that are continuous in the horizontal direction on the first screen.
For each point, the dot number n is added to the sum m, and
Is stored in the horizontal conversion table as a new sum m.
After multiplying the sum m by the unit dot number B,
Divide by the unit dot number A and round the obtained quotient and remainder
And the sum of the dot development numbers from the sum.
The value obtained by subtracting the sum q is newly defined as the dot development number p.
Stored in the horizontal direction conversion table, and
The opening number p is the sum total stored in the horizontal conversion table.
q, and this is added as a new sum q,
First calculation means to be stored in the conversion table, a sum M of the number of lines in the vertical direction on the first screen ,
The number of line developments P in the vertical direction on the second screen
A vertical conversion table for storing the sum Q of the line development numbers P , and 1 for each vertical line on the first screen.
The sum is added to the sum M and the sum is defined as a new sum M.
And stores the sum M in the unit dot.
After multiplying by the number B and dividing by the unit dot number A,
Quotient and the rounded value of the remainder
The value obtained by subtracting the total Q of the dot development numbers is newly calculated.
Stored in the vertical conversion table as the line development number P
Further, the line development number P is converted into the vertical direction conversion table.
Is added to the total sum Q stored in the
The second performance stored in the vertical conversion table as the sum Q
Comprising a calculation means, wherein the lateral direction of the second screen is drawn for each of the number of dots expand p, vertically Oite to the drawing device <br/> to draw on each of the line number deployment P, the transverse The direction conversion table is highlighted on the second screen.
Priority color designation data for designating a priority color is stored, and the first arithmetic means stores the quotient when drawing the priority color.
And the rounded value of the remainder, and
The value obtained by subtracting the sum q of the dot development numbers is
When the number of expansions is p and the non-priority color is drawn,
The value obtained by subtracting the sum q of the dot development numbers is
A drawing apparatus characterized in that the number of development is p .
JP08454096A 1996-03-14 1996-03-14 Drawing equipment Expired - Fee Related JP3358698B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP08454096A JP3358698B2 (en) 1996-03-14 1996-03-14 Drawing equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP08454096A JP3358698B2 (en) 1996-03-14 1996-03-14 Drawing equipment

Publications (2)

Publication Number Publication Date
JPH09251531A JPH09251531A (en) 1997-09-22
JP3358698B2 true JP3358698B2 (en) 2002-12-24

Family

ID=13833489

Family Applications (1)

Application Number Title Priority Date Filing Date
JP08454096A Expired - Fee Related JP3358698B2 (en) 1996-03-14 1996-03-14 Drawing equipment

Country Status (1)

Country Link
JP (1) JP3358698B2 (en)

Also Published As

Publication number Publication date
JPH09251531A (en) 1997-09-22

Similar Documents

Publication Publication Date Title
US4849747A (en) Display data transfer control apparatus applicable for display unit
US4984183A (en) Graphics display controller for transferring figure data to overlapping portions of destination area and drawing-enable area defined by clipping rectangle
US4837564A (en) Display control apparatus employing bit map method
CA2013818A1 (en) Separate font and attribute display system
EP0658858B1 (en) Graphics computer
JP3477666B2 (en) Image display control device
JP3358698B2 (en) Drawing equipment
JP2797320B2 (en) Image display device
US5734873A (en) Display controller with accelerated drawing of text strings
JPH0695279B2 (en) Display information processing device
JP2829051B2 (en) Character display method
JPH09251292A (en) Plotting device
JP3007396B2 (en) Character processing device and character processing method
JP2700124B2 (en) Graphic display method and apparatus for implementing the same
JPH08147210A (en) Bit map memory device
JP3264941B2 (en) Image display control method and apparatus
JPH10214077A (en) Method for generating synthetic plotting data and synthetic plotting device
JP3727998B2 (en) Graphic processing apparatus and graphic processing method
JP2737845B2 (en) Character processing method and apparatus
JPH09251293A (en) Graphic paint-out plotting device
JPH0830258A (en) High difinition color image display device
JPH05241942A (en) Plotting address translating device
JPH0877371A (en) Image forming device
JPH09319347A (en) Display controller
JPH07199907A (en) Display controller

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees