JPH05246113A - Printing device - Google Patents

Printing device

Info

Publication number
JPH05246113A
JPH05246113A JP4050704A JP5070492A JPH05246113A JP H05246113 A JPH05246113 A JP H05246113A JP 4050704 A JP4050704 A JP 4050704A JP 5070492 A JP5070492 A JP 5070492A JP H05246113 A JPH05246113 A JP H05246113A
Authority
JP
Japan
Prior art keywords
dot pattern
data
ruled line
coordinates
vector information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP4050704A
Other languages
Japanese (ja)
Inventor
Naohiko Miyoshi
尚彦 三好
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.)
Ricoh Co Ltd
Original Assignee
Ricoh Co 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 Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP4050704A priority Critical patent/JPH05246113A/en
Publication of JPH05246113A publication Critical patent/JPH05246113A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To avoid degradation of print quality caused by magnification varying process and resolve cost problem. CONSTITUTION:A ruled line data or graphic data is inputted by a character code from a host device. In magnification varying process, a dot pattern data corresponding to the character code is extracted, its singular points are detected, coordinates of each singular point is converted into vector information, and a magnification varying dot pattern data is developed in accordance with the vector information and a magnification. In the case of the ruled line data, a branch point and a bending point of the ruled line on the dot pattern is made to be singular point, the coordinates of each singular point is converted into vector information, coordinates of each branch point and bending point of the ruled line to be developed is calculated in accordance with each vector information and magnification, and the coordinates are connected so as to develop the magnification varying dot pattern of the ruled line.

Description

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

【0001】[0001]

【産業上の利用分野】この発明は、コンピュータなどで
処理したデータをページ単位で印字出力するレーザプリ
ンタ等のページプリンタやデジタル複写機等の印刷装置
に関し、特に解像度の異なるドットプリンタのエミュレ
ーションや変倍処理を行なう印刷装置において、罫線デ
ータ及びグラフィックデータを高品位に描画するのに好
適な印刷装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a printer such as a page printer such as a laser printer or a digital copying machine, which prints out data processed by a computer page by page, and particularly emulation or conversion of a dot printer having a different resolution. The present invention relates to a printing apparatus suitable for drawing ruled line data and graphic data with high quality in a printing apparatus that performs double processing.

【0002】[0002]

【従来の技術】現在、コンピュータより出力される印刷
情報は、大きく分けてイメージデータ及びグラフィック
データを含むドットパターンデータと、文字コードを含
むコードデータに分けられる。そこで、上記のような印
刷装置においては、コンピュータからコードデータを受
け取った場合には、対応するドットパターンデータをパ
ターンメモリから抽出して画像メモリに展開し、イメー
ジデータを受け取った場合には、解像度の整合が取れて
いる場合はそのまま等倍で、解像度が異なる場合は変倍
処理を行なって画像メモリに展開し、そのように展開さ
れた各画像データを重ね合わせて印刷を行なうようにし
ている。
2. Description of the Related Art At present, print information output from a computer is roughly classified into dot pattern data including image data and graphic data and code data including a character code. Therefore, in the printing apparatus as described above, when the code data is received from the computer, the corresponding dot pattern data is extracted from the pattern memory and expanded in the image memory, and when the image data is received, the resolution is set. If they match, the image is scaled as it is, and if the resolutions are different, scaling processing is performed and the image data is expanded, and the image data thus expanded are superimposed and printed. ..

【0003】このような印刷装置において、文字の倍角
指定又は4倍角指定がなされている場合、一般的にドッ
トパターンデータを単純に指定倍数にて変倍を行なう方
法が知られている。その他に、印字品質をよくするため
に変倍後スムーシングをかける方法、そしてベクトルフ
ォントを持っている場合にはベクトルフォントを使用す
る方法も知られている。
In such a printing apparatus, when a character double-width designation or quadruple-width designation is made, a method is generally known in which dot pattern data is simply scaled by a designated multiple. In addition, a method of smoothing after scaling to improve print quality, and a method of using a vector font when a vector font is included are also known.

【0004】罫線の描画は、全てイメージで描画する方
法と、罫線フォントとイメージの組み合わせにより描画
する方法が一般的である。罫線フォントとイメージの組
み合わせというのは、通常罫線フォントのサイズが文字
ピッチ,行ピッチよりも小さいため、その間をイメージ
で埋める方法をいう。
The ruled lines are generally drawn by an image method or a combination of a ruled line font and an image. The combination of a ruled line font and an image is a method in which the size of the ruled line font is usually smaller than the character pitch and the line pitch, and the space between them is filled with an image.

【0005】[0005]

【発明が解決しようとする課題】従来の印刷装置では、
ドットパターンデータを変倍(特に拡大)すると変倍後
の画像データにギザギザが目立ち、印字品質が劣化して
しまうという問題があった。そこで、印字品質をよくす
るためにスムーシング処理やベクトルフォントによる描
画により対処しているが、前者の場合は印字品質の向上
は若干しか見込めない。後者の場合はベクトルフォント
を用意しなくてはならないため、コスト的な問題と、ド
ットフォントも当然合わせ持つため物理的な問題が残
る。
In the conventional printing apparatus,
When the dot pattern data is scaled (especially enlarged), there is a problem that the image data after scaling is conspicuous and print quality is deteriorated. Therefore, in order to improve the print quality, smoothing processing and drawing with a vector font are taken as measures, but in the former case, the improvement of the print quality can be expected only slightly. In the latter case, a vector font must be prepared, so there is a cost problem and a physical problem remains because dot fonts are naturally combined.

【0006】また、上述のような機能を持ち且つドット
プリンタのエミュレーションを行なう印刷装置では、一
般的にドットプリンタよりも高解像度のため、罫線フォ
ントとイメージの組合わせで罫線を描画する場合、イメ
ージは変倍処理が必要となり、その変倍率が整数倍でな
い時には小数点以下を切り捨てるか切り上げるかで罫線
フォントの線幅が異なり、罫線がガタガタになってしま
うという問題点がある。
In a printing apparatus having the above-mentioned function and emulating a dot printer, the resolution is generally higher than that of a dot printer. Therefore, when drawing a ruled line with a combination of a ruled line font and an image, an image is drawn. Requires a scaling process, and when the scaling ratio is not an integer multiple, the line width of the ruled line font is different depending on whether the fractional part is rounded down or rounded up, and the ruled line becomes rattled.

【0007】この発明は上記の点に鑑みてなされたもの
であり、コスト等の問題を解消しつつ変倍処理による印
字品質の劣化を回避することを目的とする。
The present invention has been made in view of the above points, and it is an object of the present invention to solve the problems of cost and the like and to avoid the deterioration of the printing quality due to the scaling processing.

【0008】[0008]

【課題を解決するための手段】この発明は上記の目的を
達成するため、イメージデータ及びグラフィックデータ
を含むドットパターンと、文字コードを含むコードデー
タからなる印刷情報とをページ単位で上位装置から入力
し、コードデータに対応するドットパターンデータをパ
ターンメモリから抽出して、その抽出したドットパター
ンデータと上位装置から入力したドットパターンデータ
とを合成してページ単位で印字出力する印刷装置におい
て、上位装置から罫線データあるいはグラフィックデー
タが文字コードで入力され、且つ変倍処理を行なう場合
に、該文字コードに対応して抽出されたドットパターン
データの特異点を検出し、その各特異点の座標をベクト
ル情報に変換して、そのベクトル情報と変倍率に応じて
変倍ドットパターンデータを展開する変倍ドットパター
ン展開手段を設けたものである。
In order to achieve the above object, the present invention inputs a dot pattern including image data and graphic data and print information including code data including a character code in page units from a host device. In the printing device that extracts the dot pattern data corresponding to the code data from the pattern memory, combines the extracted dot pattern data with the dot pattern data input from the host device, and prints out in page units, a host device When the ruled line data or graphic data is input by a character code from and the scaling processing is performed, the singular points of the dot pattern data extracted corresponding to the character code are detected, and the coordinates of each singular point are vectored. Converted to information and scaled dot pattern according to the vector information and scaling ratio It is provided with a variable power dot pattern developing means for developing the data.

【0009】なお、変倍ドットパターン展開手段が、罫
線データのドットパターンをベクトル情報に変換する
際、そのドットパターン上の罫線の分岐点及び折れ曲が
り点を特異点とし、その各特異点の座標をベクトル情報
に変換して、その各ベクトル情報と変倍率により展開す
べき罫線の各分岐点及び折れ曲がり点の座標を算出し、
その各座標を結線することにより罫線の変倍ドットパタ
ーンを展開する手段を備えているとよい。
Incidentally, when the scaling dot pattern developing means converts the dot pattern of the ruled line data into vector information, the branch points and bending points of the ruled line on the dot pattern are set as singular points, and the coordinates of each singular point are set. Convert to vector information, and calculate the coordinates of each branch point and bending point of the ruled line to be developed by each vector information and scaling factor,
It is preferable to provide a means for expanding the variable-magnification dot pattern of the ruled line by connecting the respective coordinates.

【0010】また、罫線の変倍ドットパターンを展開す
る手段が、各種罫線データの特異点の座標を予めテーブ
ルとして持ち、罫線データの文字コードを入力した時、
上記テーブルを参照して必要な特異点の座標を算出し、
その算出した特異点の座標をベクトル情報に変換して、
その各ベクトル情報と変倍率により展開すべき罫線の分
岐点及び折れ曲がり点の座標を算出し、その各座標を結
線することにより罫線の変倍ドットパターンを展開する
ようにしてもよい。
Further, when the means for expanding the scaled dot pattern of the ruled line has the table of the coordinates of the singular points of various ruled line data in advance and the character code of the ruled line data is input,
Calculate the necessary singular point coordinates by referring to the above table,
Convert the calculated coordinates of the singular point into vector information,
It is also possible to calculate the coordinates of the branch point and the bending point of the ruled line to be developed based on the respective vector information and the scaling factor, and connect the respective coordinates to develop the scaling dot pattern of the ruled line.

【0011】[0011]

【作用】この発明による印刷装置は、上位装置から罫線
データあるいはグラフィックデータが文字コードで入力
され、且つ変倍処理を行なう場合に、該文字コードに対
応して抽出されたドットパターンデータの特異点を検出
し、その各特異点の座標をベクトル情報に変換して、そ
のベクトル情報と変倍率に応じて変倍ドットパターンデ
ータを展開するので、変倍処理による印字品質の劣化を
回避でき、しかもコスト等の問題を解消できる。
In the printing apparatus according to the present invention, when the ruled line data or the graphic data is input by the character code from the host apparatus and the scaling processing is performed, the singular point of the dot pattern data extracted corresponding to the character code is used. Is detected, the coordinates of each singular point are converted into vector information, and the scaling dot pattern data is expanded according to the vector information and the scaling ratio, so it is possible to avoid deterioration of printing quality due to scaling processing, and Problems such as cost can be solved.

【0012】なお、罫線データのドットパターンをベク
トル情報に変換する際、そのドットパターン上の罫線の
分岐点及び折れ曲がり点を特異点とし、その各特異点の
座標をベクトル情報に変換して、その各ベクトル情報と
変倍率により展開すべき罫線の各分岐点及び折れ曲がり
点の座標を算出し、その各座標を結線することにより、
罫線の変倍ドットパターンを展開できる。
When the dot pattern of the ruled line data is converted into vector information, the branch points and bending points of the ruled line on the dot pattern are set as singular points, and the coordinates of each singular point are converted into vector information. By calculating the coordinates of each branch point and the bending point of the ruled line to be developed by each vector information and the scaling factor, and connecting the respective coordinates,
You can develop variable-scale dot patterns for ruled lines.

【0013】この場合、各種罫線データの特異点の座標
を予めテーブルとして持ち、罫線データの文字コードを
入力した時、上記テーブルを参照して必要な特異点の座
標を算出するようにすれば、罫線の変倍ドットパターン
の展開処理を高速化することができる。
In this case, if the coordinates of singular points of various ruled line data are stored in advance as a table and the character code of the ruled line data is input, the coordinates of the necessary singular points are calculated by referring to the above table. It is possible to speed up the expansion processing of the scaled dot pattern of the ruled line.

【0014】[0014]

【実施例】以下、この発明の実施例を図面に基づいて具
体的に説明する。図2はこの発明の一実施例を示すレー
ザプリンタのブロック図であり、プリンタコントローラ
1とエンジン2,パネル装置3,ディスク装置4とから
なる。ホスト装置5は、このプリンタの上位装置であ
る。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENT An embodiment of the present invention will be specifically described below with reference to the drawings. FIG. 2 is a block diagram of a laser printer showing an embodiment of the present invention, which comprises a printer controller 1, an engine 2, a panel device 3, and a disk device 4. The host device 5 is a host device of this printer.

【0015】プリンタコントローラ1は、CPU6,プ
ログラムROM7,フォントROM(パターンメモリ)
8,RAM9,ビットマップメモリ20,NVRAM1
0,ICカード11と、エンジンインタフェース(以下
インタフェースをI/Fと略称する)12,パネルI/
F13,ディスクI/F14,ホストI/F15の各I
/Fとによって構成されている。
The printer controller 1 includes a CPU 6, a program ROM 7 and a font ROM (pattern memory).
8, RAM 9, bitmap memory 20, NVRAM1
0, IC card 11, engine interface (hereinafter, interface is abbreviated as I / F) 12, panel I / F
F13, disk I / F14, host I / F15
/ F and.

【0016】CPU6は、プログラムROM7のプログ
ラムとパネル装置3からのモード指示、及びホスト装置
(ホストコンピュータ)5からのコマンドによってプリ
ンタコントローラ1全体を制御する中央処理装置であ
る。プログラムROM7は、このプリンタコントローラ
1の制御プログラムを格納しているリードオンリ・メモ
リ、フォントROM8は、フォントのドットパターンデ
ータなどを記憶するリードオンリ・メモリである。
The CPU 6 is a central processing unit that controls the printer controller 1 as a whole according to a program in the program ROM 7, a mode instruction from the panel device 3, and a command from the host device (host computer) 5. The program ROM 7 is a read-only memory that stores the control program of the printer controller 1, and the font ROM 8 is a read-only memory that stores the dot pattern data of the font.

【0017】RAM9は、CPU6用のワークメモリ,
入力データを格納するためのインプットバッファ,ペー
ジデータを格納するためのページバッファ,ベクトル情
報を格納するためのベクトルファイル,ダウンロードフ
ォントを格納するためのフォントファイル等に使用する
ランダムアクセス・メモリ、ビットマップメモリ20
は、ページ単位のドットパターンデータ(ビットマップ
データ)を書き込むためのランダムアクセス・メモリで
ある。
The RAM 9 is a work memory for the CPU 6,
Random access memory used for input buffer for storing input data, page buffer for storing page data, vector file for storing vector information, font file for storing downloaded fonts, bitmap Memory 20
Is a random access memory for writing dot pattern data (bitmap data) in page units.

【0018】NVRAM10は、パネル装置3からのモ
ード指示の内容などを記憶しておく不揮発性メモリであ
り、ICカード11は、フォントデータやプログラムを
外部から供給する場合に使用する着脱可能なメモリカー
ドである。エンジンI/F12は、実際に印字を行なう
エンジン2とコマンド及びステータスや印字データの通
信を行なうためのインタフェース、パネルI/F13
は、使用者に現在のプリンタの状態を知らせたりモード
指示を行なったりするパネル装置3と、コマンドやステ
ータスの通信を行なうインタフェースである。
The NVRAM 10 is a non-volatile memory for storing the contents of the mode instruction from the panel device 3, and the IC card 11 is a removable memory card used when externally supplying font data and programs. Is. The engine I / F 12 is an interface for communicating commands, statuses, and print data with the engine 2 that actually prints, and a panel I / F 13
Is an interface that communicates commands and status with the panel device 3 that informs the user of the current printer status and gives a mode instruction.

【0019】ディスクI/F14は、ディスク装置4と
通信を行なうためのインタフェースである。ホストI/
F15は、ホスト装置5と通信を行なうインタフェース
であり、通常はセントロI/FやRS232Cである。
ディスク装置4は、フォントデータやプログラム,画像
データなどの様々のデータを記憶しておく外部記憶装置
であり、フロッピディスク装置(FDD)やハードディ
スク装置(HDD)などである。
The disk I / F 14 is an interface for communicating with the disk device 4. Host I /
The F15 is an interface that communicates with the host device 5, and is typically a Centro I / F or RS232C.
The disk device 4 is an external storage device that stores various data such as font data, programs, and image data, and is a floppy disk device (FDD) or hard disk device (HDD).

【0020】次に、このように構成したこの実施例の作
用について説明する。図1は、図2のCPU6によるこ
の発明に係わる処理の一例を示すフロー図である。この
ルーチンはホスト装置5からの印刷情報がRAM9のイ
ンプットバッファに1ページ分入力されるとスタート
し、まず変倍モードか否かを判断して、変倍モードでな
ければ通常の処理を行なう。
Next, the operation of this embodiment thus constructed will be described. FIG. 1 is a flow chart showing an example of processing according to the present invention by the CPU 6 of FIG. This routine starts when one page of print information is input from the host device 5 to the input buffer of the RAM 9, and first determines whether or not the mode is the variable magnification mode, and if it is not the variable magnification mode, performs normal processing.

【0021】すなわち、インプットバッファから1バイ
ト分ずつ印刷情報を取り出し、その取り出した印刷情報
がイメージデータ及びグラフィックデータを含むドット
パターンであれば、それをそのままビットマップメモリ
20に蓄積する。また、取り出した印刷情報が文字コー
ドを含むコードデータであれば、それをページデータに
変換してRAM9のページバッファに格納する。
That is, the print information for each byte is taken out from the input buffer, and if the taken out print information is a dot pattern containing image data and graphic data, it is stored in the bitmap memory 20 as it is. If the extracted print information is code data including a character code, it is converted into page data and stored in the page buffer of the RAM 9.

【0022】以後、上述と同様の処理を繰り返し、1ペ
ージ分の印刷情報を全て処理し終えた時点で、ページデ
ータが作成されていればその各文字に対応するドットパ
ターンデータをフォントROM8から抽出してビットマ
ップメモリ20上に展開し、ビットマップメモリ20上
のドットパターンデータをビデオ信号としてエンジン2
に転送して印字出力させる。このとき、ビットマップメ
モリ20にホスト装置5からのドットパターンデータが
蓄積されていれば、それにフォントROM8から抽出さ
れるドットパターンデータが重ね合わされて合成され
る。
After that, the same processing as described above is repeated, and when the printing information for one page is completely processed, if the page data is created, the dot pattern data corresponding to each character is extracted from the font ROM 8. The dot pattern data on the bitmap memory 20 as a video signal to the engine 2
To print out. At this time, if the dot pattern data from the host device 5 is stored in the bit map memory 20, the dot pattern data extracted from the font ROM 8 is overlaid and combined.

【0023】一方、変倍モードならばインプットバッフ
ァから1バイト分の印刷情報を取り出し、その印刷情報
が罫線データ又はグラフィックデータの文字コードか否
かを判断し、その文字コードであればそれに対応するド
ットパターンデータをフォントROM8から抽出して、
その抽出したドットパターンデータの特異点を検出し、
その各特異点の座標をベクトル情報に変換して、それを
RAM9のベクトルファイルに格納する。その後、取り
出した印刷情報が罫線データ又はグラフィックデータの
文字コードか否かの判断に戻る。
On the other hand, in the variable magnification mode, one byte of print information is taken out from the input buffer, and it is judged whether or not the print information is the character code of the ruled line data or the graphic data. Extract the dot pattern data from the font ROM8,
Detects the singular points of the extracted dot pattern data,
The coordinates of each singular point are converted into vector information, which is stored in the vector file of the RAM 9. After that, the process returns to the determination as to whether the extracted print information is a character code of ruled line data or graphic data.

【0024】ここで、文字コードによる罫線データ及び
グラフィックデータに対応するドットパターンは種類も
少なく単純なパターンなので、閉ざされたシステム内で
はドットパターンデータを抽出することにより、ベクト
ル情報を簡易にし簡単にベクトル化することができる。
Here, since the dot patterns corresponding to the ruled line data and the graphic data by the character code have few types and are simple patterns, by extracting the dot pattern data in a closed system, the vector information can be simplified and simplified. It can be vectorized.

【0025】また、取り出した印刷情報が他の文字コー
ドの場合には、上述と同様にページデータを作成してそ
れをページバッファに格納した後、取り出した印刷情報
が罫線データ又はグラフィックデータの文字コードか否
かの判断に戻る。取り出した印刷情報がホスト装置5か
らのドットパターンデータの場合には、それをX,Y方
向に変倍してビットマップメモリ20に蓄積した後、取
り出した印刷情報が罫線データ又はグラフィックデータ
の文字コードか否かの判断に戻る。
If the fetched print information is another character code, page data is created and stored in the page buffer as described above, and then the fetched print information is a character of ruled line data or graphic data. Return to the judgment whether it is a code or not. If the fetched print information is dot pattern data from the host device 5, it is scaled in the X and Y directions and stored in the bitmap memory 20, and then the fetched print information is the characters of the ruled line data or graphic data. Return to the judgment whether it is a code or not.

【0026】取り出した印刷情報が文字コード及びドッ
トパターンデータのいずれでもない場合、すなわち改頁
コードの場合には展開処理を行なう。すなわち、ベクト
ル情報が作成されていれば、そのベクトル情報と変倍率
に応じてビットマップメモリ20上に変倍ドットパター
ンを展開した後、ビットマップメモリ20上の変倍ドッ
トパターンデータをビデオ信号としてエンジン2に転送
して印字出力させる。
When the extracted print information is neither a character code nor dot pattern data, that is, a page break code, a development process is performed. That is, if the vector information is created, the variable dot pattern is expanded on the bitmap memory 20 according to the vector information and the variable ratio, and then the variable dot pattern data on the bitmap memory 20 is used as a video signal. It is transferred to the engine 2 and printed out.

【0027】また、ページデータが作成されていれば、
ビットマップメモリ20上にそのページデータの各文字
に対応するドットパターンデータをフォントROM8か
ら抽出し、それをX,Y方向に変倍してビットマップメ
モリ20上に展開した後、ビットマップメモリ20上の
変倍ドットパターンデータをビデオ信号としてエンジン
2に転送して印字出力させる。
If page data is created,
The dot pattern data corresponding to each character of the page data is extracted from the font ROM 8 on the bitmap memory 20, and the dot pattern data is scaled in the X and Y directions and expanded on the bitmap memory 20. The variable-magnification dot pattern data above is transferred to the engine 2 as a video signal and printed out.

【0028】なお、ベクトル情報とページデータの両方
を使用して展開処理を行なった場合には、ビットマップ
メモリ20上で罫線データ又はグラフィックデータの文
字コードに対応する変倍ドットパターンデータとそれ以
外の文字コードに対応する変倍ドットパターンデータと
が重ね合わされて合成される。また、ビットマップメモ
リ20にホスト装置5からのドットパターンデータが蓄
積されていれば、それに上記いずれか又は両方を合成し
た変倍ドットパターンデータが重ね合わされて合成され
る。
When the expansion processing is performed by using both the vector information and the page data, the variable scale dot pattern data corresponding to the character code of the ruled line data or the graphic data on the bitmap memory 20 and the other The variable-magnification dot pattern data corresponding to the character code is superimposed and synthesized. If the dot pattern data from the host device 5 is stored in the bitmap memory 20, variable dot pattern data obtained by combining one or both of the above is superimposed and combined.

【0029】図3は図1の処理のうち罫線データの文字
コードに対応する処理のみを具体的に示すフローチャー
トであり、罫線データの文字コードを入力した時、その
文字コードに対応するドットパターンデータ(罫線フォ
ント)をフォントROM8から抽出して、そのドットパ
ターンデータ上の罫線の分岐点及び折れ曲がり点(特異
点)の座標を求め、その各特異点の座標をベクトル情報
に変換して、そのベクトル情報と変倍率により展開すべ
き罫線の各分岐点及び折れ曲がり点の座標を算出し、そ
の各座標を結線して罫線の変倍ドットパターンを展開す
る。
FIG. 3 is a flow chart specifically showing only the process corresponding to the character code of the ruled line data in the process of FIG. 1. When the character code of the ruled line data is input, the dot pattern data corresponding to the character code is inputted. (Rule line font) is extracted from the font ROM 8, the coordinates of the branch points and bending points (singular points) of the ruled line on the dot pattern data are obtained, the coordinates of each singular point are converted into vector information, and the vector is obtained. Coordinates of each branch point and bending point of the ruled line to be developed are calculated based on the information and the scaling factor, and the respective coordinates are connected to develop the scaling dot pattern of the ruled line.

【0030】図4はホスト装置5から送られてくる罫線
データであり、セル(細線枠内)が罫線フォントの描画
領域で、点線領域内がイメージで転送される。図を見て
判るように、X,Y座標で引き出した点(分岐点及び折
れ曲がり点)が罫線の特異点であり、この特異点の座標
をベクトル情報化し、そのベクトル情報と変倍率により
展開すべき罫線の各分岐点及び折れ曲がり点の座標を算
出した後、その各座標を結線することにより、最終的に
原画と略同等の品質の罫線を描画することができる。
FIG. 4 shows ruled line data sent from the host device 5. A cell (inside a thin line frame) is a drawing region of a ruled line font, and an inside of a dotted line region is an image. As can be seen from the figure, the points drawn at the X and Y coordinates (branching points and bending points) are the singular points of the ruled line, and the coordinates of these singular points are converted into vector information and expanded by the vector information and the scaling factor. After calculating the coordinates of each branch point and the bending point of the power ruled line, by connecting the respective coordinates, it is possible to finally draw a ruled line of substantially the same quality as the original image.

【0031】図5に図4の罫線データの特異点の座標に
より得られるベクトル情報の一例を示す。ベクトル情報
としては特異点の座標と属性(罫線フォントの種類)を
持ち、ヘッダとして罫線の属性(線幅等)を持つ。ま
た、図6にグラフィックデータの一例を、図7にその特
異点の座標により得られるベクトル情報の一例をそれぞ
れ示す。そのベクトル情報において、Aの部分は、線幅
(0は塗りつぶしを示す)と、ポリゴン形又は円形など
図形情報を示す属性エリア1バイトである。Bの部分
は、展開(描画)されるセルの基本座標のオフセットと
して与えられる座標エリアである。最終バイトはターミ
ネータである。
FIG. 5 shows an example of vector information obtained from the coordinates of the singular points of the ruled line data shown in FIG. The vector information has coordinates and attributes (type of ruled line font) of a singular point, and has a ruled line attribute (such as line width) as a header. 6 shows an example of graphic data, and FIG. 7 shows an example of vector information obtained from the coordinates of the singular points. In the vector information, the portion A is a 1-byte attribute area indicating the line width (0 indicates the filling) and graphic information such as a polygon or a circle. The part B is a coordinate area given as an offset of the basic coordinates of the cell to be developed (drawn). The last byte is the terminator.

【0032】このように、この実施例によれば、ホスト
装置5から罫線データあるいはグラフィックデータが文
字コードで入力され、且つ倍角モードが指定されている
場合に、その文字コードに対応して抽出されたドットパ
ターンデータの特異点を検出し、その各特異点の座標を
ベクトル情報に変換して、そのベクトル情報と変倍率に
応じて変倍ドットパターンデータを展開するので、変倍
モードによる印字品質の劣化を回避でき、しかもベクト
ルフォントを用意しておく必要がないためコスト等の問
題を解消できる。
As described above, according to this embodiment, when the ruled line data or the graphic data is input from the host device 5 by the character code and the double-width mode is designated, it is extracted corresponding to the character code. Detects singular points in the dot pattern data, converts the coordinates of each singular point to vector information, and expands the variable-size dot pattern data according to the vector information and the scaling factor. Can be avoided, and since it is not necessary to prepare a vector font, problems such as cost can be solved.

【0033】なお、罫線フォントの種類は図4に示した
程度の種類しかないので、その各罫線フォントの特異点
の座標を予めテーブルとしてプログラムROM7に持
ち、罫線データの文字コードを入力した時、上記テーブ
ルを参照して必要な特異点の座標を算出するようにすれ
ば、罫線の変倍ドットパターンの展開処理を高速化する
ことができる。
Since there are only types of ruled line fonts as shown in FIG. 4, when the coordinates of the singular points of each ruled line font are stored in the program ROM 7 as a table in advance and the character code of the ruled line data is input, By calculating the coordinates of the required singular point with reference to the above table, it is possible to speed up the expansion processing of the variable-scale dot pattern of the ruled line.

【0034】以上、この発明をレーザプリンタに適用し
た実施例について説明したが、この発明はこれ以外に限
らず、LEDプリンタ,液晶シャッタプリンタ,インク
ジェットプリンタ等の他のページプリンタやデジタル複
写機等の各種の印刷装置に適用し得るものである。
Although the embodiments in which the present invention is applied to a laser printer have been described above, the present invention is not limited to this, and other page printers such as LED printers, liquid crystal shutter printers, ink jet printers, digital copiers and the like. It can be applied to various printing devices.

【0035】[0035]

【発明の効果】以上説明したように、この発明によれ
ば、変倍処理による印字品質の劣化を回避でき、且つコ
スト等の問題も解消できる。
As described above, according to the present invention, it is possible to avoid the deterioration of the print quality due to the scaling process and solve the problems such as cost.

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

【図1】図2のCPU6によるこの発明に係わる処理を
示すフロー図である。
FIG. 1 is a flow chart showing a process according to the present invention by a CPU 6 of FIG.

【図2】この発明の一実施例を示すレーザプリンタのブ
ロック図である。
FIG. 2 is a block diagram of a laser printer showing an embodiment of the present invention.

【図3】図1の処理のうち罫線データの文字コードに対
応する処理を具体的に示すフローチャートである。
FIG. 3 is a flowchart specifically showing a process corresponding to a character code of ruled line data in the process of FIG.

【図4】罫線データの一例を示す説明図である。FIG. 4 is an explanatory diagram showing an example of ruled line data.

【図5】図4の罫線データの特異点の座標により得られ
るベクトル情報の一例を示す説明図である。
5 is an explanatory diagram showing an example of vector information obtained from coordinates of singular points of the ruled line data shown in FIG. 4;

【図6】グラフィックデータの一例を示す説明図であ
る。
FIG. 6 is an explanatory diagram showing an example of graphic data.

【図7】図6のグラフィックデータの特異点の座標によ
り得られるベクトル情報の一例を示す説明図である。
7 is an explanatory diagram showing an example of vector information obtained by coordinates of singular points of the graphic data of FIG.

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

1 プリンタコントローラ 2 エンジン 3 パネル装置 5 ホスト装置 6 中央処理装置(CPU) 7 プログラムR
OM 8 フォントROM 9 RAM 10 NVRAM 20 ビットマッ
プメモリ
1 Printer Controller 2 Engine 3 Panel Device 5 Host Device 6 Central Processing Unit (CPU) 7 Program R
OM 8 Font ROM 9 RAM 10 NVRAM 20 Bitmap memory

───────────────────────────────────────────────────── フロントページの続き (51)Int.Cl.5 識別記号 庁内整理番号 FI 技術表示箇所 G09G 5/40 8121−5G ─────────────────────────────────────────────────── ─── Continuation of the front page (51) Int.Cl. 5 Identification code Office reference number FI technical display location G09G 5/40 8121-5G

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 イメージデータ及びグラフィックデータ
を含むドットパターンと、文字コードを含むコードデー
タからなる印刷情報とをページ単位で上位装置から入力
し、前記コードデータに対応するドットパターンデータ
をパターンメモリから抽出して、その抽出したドットパ
ターンデータと前記上位装置から入力したドットパター
ンデータとを合成してページ単位で印字出力する印刷装
置において、 前記上位装置から罫線データあるいはグラフィックデー
タが文字コードで入力され、且つ変倍処理を行なう場合
に、該文字コードに対応して抽出されたドットパターン
データの特異点を検出し、その各特異点の座標をベクト
ル情報に変換して、そのベクトル情報と変倍率に応じて
変倍ドットパターンデータを展開する変倍ドットパター
ン展開手段を設けたことを特徴とする印刷装置。
1. A dot pattern including image data and graphic data and print information including code data including a character code are input from a host device in page units, and dot pattern data corresponding to the code data is input from a pattern memory. In a printing device that extracts and combines the extracted dot pattern data with the dot pattern data input from the host device and prints out in page units, ruled line data or graphic data is input from the host device in a character code. When performing the scaling process, the singular points of the dot pattern data extracted corresponding to the character code are detected, the coordinates of each singular point are converted into vector information, and the vector information and the scaling factor are converted. Variable dot pattern exhibition that expands variable dot pattern data according to Printing apparatus characterized in that a means.
【請求項2】 前記変倍ドットパターン展開手段が、罫
線データのドットパターンをベクトル情報に変換する
際、そのドットパターン上の罫線の分岐点及び折れ曲が
り点を特異点とし、その各特異点の座標をベクトル情報
に変換して、その各ベクトル情報と変倍率により展開す
べき罫線の各分岐点及び折れ曲がり点の座標を算出し、
その各座標を結線することにより罫線の変倍ドットパタ
ーンを展開する手段を有する請求項1記載の印刷装置。
2. When the variable-magnification dot pattern developing means converts the dot pattern of the ruled line data into vector information, the branch points and bending points of the ruled lines on the dot pattern are set as singular points, and the coordinates of each singular point are set. Is converted into vector information, and the coordinates of each branch point and bending point of the ruled line to be developed are calculated according to each vector information and the scaling factor,
2. The printing apparatus according to claim 1, further comprising means for developing a variable-scale dot pattern of a ruled line by connecting the respective coordinates.
【請求項3】 請求項2に記載の印刷装置において、前
記罫線の変倍ドットパターンを展開する手段が、各種罫
線データの特異点の座標を予めテーブルとして持ち、罫
線データの文字コードを入力した時、前記テーブルを参
照して必要な特異点の座標を算出し、その算出した特異
点の座標をベクトル情報に変換して、その各ベクトル情
報と変倍率により展開すべき罫線の分岐点及び折れ曲が
り点の座標を算出し、その各座標を結線することにより
罫線の変倍ドットパターンを展開するようにしたことを
特徴とする印刷装置。
3. The printing apparatus according to claim 2, wherein the means for expanding the variable-scale dot pattern of the ruled line has a table of coordinates of singular points of various ruled line data in advance, and the character code of the ruled line data is input. At this time, the coordinates of the necessary singular points are calculated by referring to the table, the calculated coordinates of the singular points are converted into vector information, and the branch points and bends of the ruled lines to be developed according to each vector information and the scaling factor. A printing apparatus characterized in that a variable-scale dot pattern of a ruled line is developed by calculating coordinates of points and connecting the respective coordinates.
JP4050704A 1992-03-09 1992-03-09 Printing device Pending JPH05246113A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4050704A JPH05246113A (en) 1992-03-09 1992-03-09 Printing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4050704A JPH05246113A (en) 1992-03-09 1992-03-09 Printing device

Publications (1)

Publication Number Publication Date
JPH05246113A true JPH05246113A (en) 1993-09-24

Family

ID=12866292

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4050704A Pending JPH05246113A (en) 1992-03-09 1992-03-09 Printing device

Country Status (1)

Country Link
JP (1) JPH05246113A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009133986A (en) * 2007-11-29 2009-06-18 Casio Comput Co Ltd Projection apparatus, projection control method, and program

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009133986A (en) * 2007-11-29 2009-06-18 Casio Comput Co Ltd Projection apparatus, projection control method, and program

Similar Documents

Publication Publication Date Title
US6247028B1 (en) Controlling attributes of pre-registered form data to match those of data to be printed with the form data
JP3029136B2 (en) Output method and device
JPH0916149A (en) Character processor, character processing method, and memory
JP3486467B2 (en) Image recording apparatus and control method thereof
JPH05246113A (en) Printing device
JP2007025845A (en) Printer control method and program
US7310166B2 (en) Information processing apparatus and method, and print control program
JPH07177348A (en) Printer device
JPH0744687A (en) Picture forming device
JP2580965B2 (en) Printer device
JP2711860B2 (en) Output control method and device
US6329993B1 (en) Character processing apparatus, character processing method and record medium recording character processing program
JP3419450B2 (en) Pixel data processing apparatus and method
JP2710350B2 (en) Image processing apparatus and image processing method of image processing apparatus
JP2771629B2 (en) Character processor
JPH086542A (en) Character font and method and device for pattern expansion of same
JP2974638B2 (en) Document processing apparatus and method
JPH09277616A (en) Printer and control method therefor
JP3084817B2 (en) Character output device
JP2784823B2 (en) Image editing printing method of printer
JPH09230844A (en) Font converting device
JPH06110444A (en) Character processor and character output method
JPH10202960A (en) Printing equipment
JPH06149224A (en) Method and device for image output
JPH03112668A (en) Printer