JP2911529B2 - Printing equipment - Google Patents

Printing equipment

Info

Publication number
JP2911529B2
JP2911529B2 JP2047853A JP4785390A JP2911529B2 JP 2911529 B2 JP2911529 B2 JP 2911529B2 JP 2047853 A JP2047853 A JP 2047853A JP 4785390 A JP4785390 A JP 4785390A JP 2911529 B2 JP2911529 B2 JP 2911529B2
Authority
JP
Japan
Prior art keywords
image data
scaling
raster
unit
wired
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
JP2047853A
Other languages
Japanese (ja)
Other versions
JPH03249873A (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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP2047853A priority Critical patent/JP2911529B2/en
Publication of JPH03249873A publication Critical patent/JPH03249873A/en
Application granted granted Critical
Publication of JP2911529B2 publication Critical patent/JP2911529B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、印刷装置に関し、例えばワイヤードツト方
式で印刷すべき画像の配列順序で入力される画像データ
(以下、ワイヤードツト画像データという)をラスター
スキヤン方式で印刷する際に、可変倍(拡大/縮小)の
画像データに変換して描画出力する印刷装置に関するも
のである。
Description: BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a printing apparatus, and more particularly, to image data (hereinafter, referred to as wired dot image data) input in an arrangement order of images to be printed by a wired dot method. BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a printing apparatus that converts image data into variable-magnification (enlarged / reduced) image data and outputs the image data when printing in a raster scan method.

〔従来の技術〕[Conventional technology]

従来から、ラスタースキヤン方式の印刷装置におい
て、ワイヤードツト画像データをラスタースキヤン方式
で印刷すべき画素の配列順序の画像データ(ラスター画
像データ)に変換して描画出力するものがあった。そし
てこのような印刷装置で画像データの変倍が可能なもの
はあるが、変倍率を固定倍率(2倍・3倍・1.5倍な
ど)で指示するものが多かった。
2. Description of the Related Art Conventionally, there has been a raster scan printing apparatus that converts wired dot image data into image data (raster image data) in an arrangement order of pixels to be printed by a raster scan method and outputs the image data. Although there are printers capable of scaling image data, there are many printers in which a scaling factor is designated by a fixed scaling factor (2, 3, or 1.5 times).

〔発明が解決しようとする課題〕[Problems to be solved by the invention]

上記従来技術では、変倍率は予め設定されている固定
倍率であるため、微妙な倍率(1.01倍・2.99倍等)で変
倍することはできなかった。
In the above prior art, since the magnification is a fixed magnification set in advance, it was not possible to change the magnification at a delicate magnification (1.01 × 2.99, etc.).

また、変倍率を可変にして微妙な倍率で変倍処理を
し、さらにワイヤードツト画像データからラスター画像
データに変換するためには、変倍した画像データを、変
倍前の画像データとは別に記憶しなければならない。
In addition, in order to perform variable magnification processing at a delicate magnification by changing the magnification, and to convert the wired dot image data to raster image data, the scaled image data must be separated from the image data before magnification. I have to remember.

このため画像データの処理に大容量のメモリを必要と
し、しかも処理時間が長期化してしまうという問題があ
った。
Therefore, there has been a problem that a large-capacity memory is required for processing image data, and the processing time is prolonged.

本発明は、上述した従来の欠点に鑑みてなされ、その
目的とするところは、例えばワイヤードツト画像データ
を小容量のメモリー上で微妙な倍率で変倍し、高速に展
開し、描画出力することができるラスタースキヤン方式
の印刷装置を提供することにある。
The present invention has been made in view of the above-described drawbacks of the related art, and an object thereof is, for example, to enlarge wired-dot image data at a delicate magnification on a small-capacity memory, develop the image at high speed, and output a drawing. It is an object of the present invention to provide a raster scanning type printing apparatus which can perform the above.

〔課題を解決するための手段〕[Means for solving the problem]

上述した課題を解決し、目的を達成するため、本発明
に係る印刷装置は、第1の画像データを入力する入力手
段と、前記入力手段によって入力された第1の画像デー
タを、第1の画像データとは、画素の時間的な配列順序
が異なる第2の画像データに変換する第1変換手段と、
前記第1変換手段からの第2の画像データを、第1の方
向に変倍処理し、第3の画像データとして出力する第1
変倍処理手段と、前記第1変倍処理手段からの第2の画
像データを、第3の画像データとは画素の時間的な配列
順序が異なる第4の画像データに変換する第2変換手段
と、前記第2変換手段からの第4の画像データを、第1
の方向とは異なる第2の方向に変倍処理し、第5の画像
データとして出力する第2変倍処理手段とを有すること
を特徴とする。
In order to solve the above-described problem and achieve the object, a printing apparatus according to the present invention includes an input unit for inputting first image data, and a first image data input by the input unit. The image data is a first conversion unit that converts the image into second image data in which the temporal arrangement order of the pixels is different;
A first image processing unit that performs a scaling process on the second image data from the first conversion unit in a first direction and outputs the image data as third image data;
Scaling processing means, and second conversion means for converting the second image data from the first scaling processing means into fourth image data having a temporal arrangement order of pixels different from that of the third image data. And the fourth image data from the second conversion means
And a second scaling unit that performs scaling processing in a second direction different from the direction of (i) and outputs the result as fifth image data.

上述の印刷装置において、好適には、変倍率を設定す
るための設定手段を含み、第1又は第2変倍処理手段の
いずれか少なくとも一方は、設定された変倍率に基づい
て、1ライン上に並ぶ1つ又は複数の画素の画像データ
毎に、当該画像データを印刷すべき位置、及び当該画像
データを続けて描画すべき回数を演算する演算手段とを
含むことを特徴とする。
In the above-described printing apparatus, it is preferable that the printing apparatus further include a setting unit for setting a scaling ratio, and at least one of the first and second scaling processing units performs one-line processing based on the set scaling ratio. And a calculating means for calculating, for each image data of one or a plurality of pixels arranged in the image data, a position at which the image data is to be printed and the number of times the image data is to be drawn continuously.

また本発明に係るラスタースキヤン方式の印刷装置
は、ワイヤードツト画像データをラスター画像データに
変換し、可変倍率で拡大/縮小を行ない、描画出力する
ことができる印刷装置であって、入力されたワイヤード
ツト画像データを指示された倍率で水平方向の変倍をす
る変倍処理部と、前記変倍されたワイヤードツト画像デ
ータを格納するワーヤードツト画像データ格納部と、前
記ワイヤードツト画像データをラスター画像データに変
換する変換処理部と、前記ラスター画像データを格納す
るラスター画像格納部と、前記ラスター画像データ格納
部に格納された画像データを指示された倍率で変倍する
変倍処理部と、前記変倍されたラスター画像データを一
時格納する一時格納エリアと、前記一時格納エリアに格
納されたラスター画像をワイヤードツト画像データに変
換する変換処理部とを備える。
Further, the raster scanning printing apparatus according to the present invention is a printing apparatus capable of converting wired dot image data into raster image data, performing enlargement / reduction at a variable magnification, and outputting a drawing, wherein A scaling unit for scaling the dot image data in the horizontal direction at a specified magnification, a word-to-dot image data storage unit for storing the scaled wire-dot image data, and raster image data for the wire-dot image data A raster processing unit for storing the raster image data; a scaling processing unit for scaling the image data stored in the raster image data storage at a designated magnification; A temporary storage area for temporarily storing doubled raster image data, and a raster image stored in the temporary storage area And a conversion processing unit for converting the Waiyadotsuto image data.

〔作用〕[Action]

本発明に従えば、第1変倍処理手段は、入力手段によ
って入力された第1の画像データを、第1変換手段によ
ってその画素の時間的な配列順序が変換され第2の画像
データとして出力される。すなわち、たとえば第1の画
像データがワイヤードツト画像データの場合には、第1
変換手段は、そのワイヤードツト画像データをたとえば
ラスター画像データ(第2の画像データ)に変換され
る。そして第2の画像データは、第1変倍処理手段によ
って第1の方向に変倍されて第3の画像データとして出
力される。この第3の画像データは、第2変換手段によ
って、印刷態様に応じた画素の配列順序となるように変
換されるとともに、第2変倍手段によって第1の方向と
は異なる第2の方向に変倍され(第5の画像データ)、
この第5の画像データに基づいて印刷が行なわれる。
According to the present invention, the first scaling unit converts the first image data input by the input unit into second image data in which the temporal arrangement order of the pixels is converted by the first conversion unit. Is done. That is, for example, when the first image data is wired dot image data,
The converting means converts the wired image data into, for example, raster image data (second image data). Then, the second image data is scaled in the first direction by the first scaling unit and output as third image data. The third image data is converted by the second conversion means so as to have an arrangement order of pixels according to the printing mode, and is converted by the second scaling means in a second direction different from the first direction. Scaled (fifth image data)
Printing is performed based on the fifth image data.

また上記第1、第2変倍処理手段は同一構成によって
実現されてもよく、好適には設定手段及び演算手段を含
み、設定手段によって所望の値に設定された変倍率に基
づいて、1ライン上に並ぶ1つ又は複数の画素の画像デ
ータ毎に、当該画像データを印刷すべき位置、及び当該
画像データを続けて描画すべき回数を演算する。
The first and second scaling processing means may be realized by the same configuration, and preferably includes a setting means and a calculating means, and one line is set based on a scaling ratio set to a desired value by the setting means. For each piece of image data of one or more pixels arranged above, the position where the image data should be printed and the number of times that the image data should be drawn continuously are calculated.

かかる構成によれば、各方向への変倍処理を画素の時
間的な配列順序の変換の前後で行なうので、各処理の前
後で1頁分の画像データを記憶しておく必要が無く、メ
モリ容量の削減を図ることができるとともに、各処理を
並列的に実行することが可能となる。
According to this configuration, since the scaling process in each direction is performed before and after the conversion of the temporal arrangement order of the pixels, there is no need to store one page of image data before and after each process. The capacity can be reduced, and each process can be executed in parallel.

かかる構成によれば、ワイヤードツト画像データ格納
部は変倍されたワイヤードツト画像データを格納し、ラ
スター変換処理部は変倍されたワイヤードツト画像デー
タをラスター画像データに変換し、ラスター画像データ
格納部は変換されたラスター画像データを格納し、変倍
処理はワイヤードツト画像データおよびラスター画像デ
ータを変倍(拡大/縮小)する。
According to this configuration, the wired dot image data storage unit stores the scaled wired dot image data, and the raster conversion processing unit converts the scaled wired dot image data into raster image data, and stores the raster image data. The unit stores the converted raster image data, and the scaling process scales (enlarges / reduces) the wired image data and the raster image data.

〔実施例〕〔Example〕

以下に添付図面を参照して、本発明の好適な実施例を
詳細に説明する。
Hereinafter, preferred embodiments of the present invention will be described in detail with reference to the accompanying drawings.

第1図は本発明の一実施例の印刷装置の構成を示すブ
ロツク図であり、この印刷装置はワイヤードツト画像デ
ータを入力し、ラスタースキヤン方式で印刷を行なうこ
とができる。同図中、1は画像データや印字データをプ
リンタに送給するホストコンピユータ、2は印刷や複写
に関する通常処理を実行する中央処理装置(CPU)であ
る。3はホストコンピユータ1からのデータを受け取る
入力バツフア、4はCPU2から出力されたデータを一時保
存する出力バツフア、5は出力バツフア4に保持された
データを印刷部6に送給するためのインターフエース
で、9は入力バツフア3に格納されたワイヤードツト画
像データをラスター画像データに変換するラスター変換
処理部、8はラスター変換処理部で変換されたラスター
画像データを8ライン分(ワイヤードツト画像データ1
ライン分)格納する画像格納部である。
FIG. 1 is a block diagram showing a configuration of a printing apparatus according to an embodiment of the present invention. This printing apparatus can input wired dot image data and perform printing by a raster scan method. In FIG. 1, reference numeral 1 denotes a host computer that sends image data and print data to a printer, and 2 denotes a central processing unit (CPU) that executes normal processing related to printing and copying. 3 is an input buffer for receiving data from the host computer 1, 4 is an output buffer for temporarily storing data output from the CPU 2, and 5 is an interface for sending the data held in the output buffer 4 to the printing unit 6. Reference numeral 9 denotes a raster conversion processing unit for converting the wired dot image data stored in the input buffer 3 into raster image data, and 8 denotes the raster image data converted by the raster conversion processing unit for eight lines (wired dot image data 1).
An image storage unit for storing (for lines).

また7は画像格納部8に格納されたラスター画像デー
タの1ライン(1ラスター)分のデータについて指示さ
れた水平倍率によって、水平方向の変倍を行ない、かつ
一時格納エリア12に格納されている1ライン(1ラスタ
ー)分のラスター画像データについて指示された垂直倍
率によって、垂直方向の変倍を行なう変倍処理部、10は
前記変倍処理部7によって水平変倍された1ライン(1
ラスター)分のラスター画像データを格納するラスター
画像格納部、13はラスター画像格納部10に格納されてい
るラスター画像データを紙送り方向に垂直な方向のラス
ター画像データに変換する変換処理部、12は前記ラスタ
ー変換処理部9によって変換されたラスター画像データ
を一時格納する一時格納エリアである。
Numeral 7 changes the magnification in the horizontal direction by the designated horizontal magnification for the data of one line (one raster) of the raster image data stored in the image storage unit 8, and is stored in the temporary storage area 12. The scaling unit 10 performs scaling in the vertical direction at the specified vertical magnification for raster image data for one line (one raster).
A raster image storage unit 13 for storing raster image data for each raster; a conversion processing unit 13 for converting raster image data stored in the raster image storage unit 10 into raster image data in a direction perpendicular to the paper feeding direction; Is a temporary storage area for temporarily storing raster image data converted by the raster conversion processing unit 9.

変倍処理部7によって、垂直変倍されたラスター画像
データは前記出力バツフア4を介して印刷部6に出力さ
れる。
The raster image data that has been vertically scaled by the scaling unit 7 is output to the printing unit 6 via the output buffer 4.

第2図より、ランドスケープ(用紙横おき)で紙が搬
送されているとき、通常、ワイヤードツト画像データ
は、紙送り方向に対して垂直方向(90度)に配列された
複数の画素毎に描画され、ラスター画像データについて
も垂直方向(90度)に配列された複数の画素毎に描画さ
れる。
As shown in FIG. 2, when paper is being conveyed in a landscape (horizontal paper), the wired dot image data is usually drawn for each of a plurality of pixels arranged in a direction (90 degrees) perpendicular to the paper feed direction. The raster image data is also drawn for each of a plurality of pixels arranged in the vertical direction (90 degrees).

したがって、印刷装置に対して送られる1バイト毎の
データ形式が同一となる。
Therefore, the data format for each byte sent to the printing apparatus is the same.

また、本発明によるラスタースキヤン方式の印刷装置
は、紙送り方向に対して垂直にスキヤン(走査)され
る。したがって変倍処理を行なわない場合には、ワイヤ
ードツト画像データの形式でデータを送っても、1バイ
ト毎に画素の配列順序を変換すればよいので、処理が比
較的容易である。しかしながら、変倍処理も容易に行な
うために、本実施例では、紙送り方向のラスター画像デ
ータに変換して変倍する。
Further, the raster scanning type printing apparatus according to the present invention performs scanning (scanning) perpendicularly to the paper feeding direction. Therefore, when the scaling process is not performed, even if the data is sent in the form of the wired image data, the arrangement order of the pixels may be converted for each byte, so that the process is relatively easy. However, in order to easily perform the scaling process, in the present embodiment, the image is converted into raster image data in the paper feed direction and scaled.

そこで、本実施例は、第3図に示されるように、画像
の変倍処理及び画像データの変換処理を行なう。以下、
その処理動作を説明する。
Therefore, in the present embodiment, as shown in FIG. 3, image scaling processing and image data conversion processing are performed. Less than,
The processing operation will be described.

まずステツプS31では、ホストコンピユータ1から、
コマンドとともに送られるパラメータに基づいて、画像
変倍の倍率をセツトする。パラメータとしては、入力さ
れた画像データ1ビツト分に対する水平方向(この場合
には紙送りに垂直な方向)の幅(つまり、1ビツトを水
平方向に幾らかの大きさで変換するか)と、その水平方
向と垂直方向(紙送り方向)の変倍比が入力される。
First, in step S31, from the host computer 1,
Set the magnification of the image scaling based on the parameters sent with the command. The parameters include the width in the horizontal direction (in this case, the direction perpendicular to the paper feed) for one bit of the input image data (that is, whether or not to convert one bit in the horizontal direction to some size). The magnification ratio between the horizontal direction and the vertical direction (paper feed direction) is input.

1ビツトを垂直方向に幾らの大きさで変倍するかとい
う垂直方向の高さは、水平方向の幅と水平・垂直比率で
計算される。
The vertical height of how much to scale one bit in the vertical direction is calculated by the horizontal width and the horizontal / vertical ratio.

垂直方向高さ=水平方向幅*垂直比/水平比…(式1) 但し(式1)によって垂直方向変倍高を求めるのでは
なく、垂直の高さを直接入力しても良いことは言うまで
もない。
Vertical height = horizontal width * vertical ratio / horizontal ratio (Equation 1) However, it is needless to say that the vertical height may be directly input instead of obtaining the vertical scaling height by (Equation 1). No.

次にステツプS32では、入力バツフア3に格納された
ワイヤードツト画像データをラスター画像データに変換
し、画像格納部8に格納する(後述の第7図で説明)。
Next, in step S32, the wired image data stored in the input buffer 3 is converted into raster image data and stored in the image storage unit 8 (described later with reference to FIG. 7).

次にステツプS33では、画像格納部8に格納されたラ
スター画像データの中から、8ライン分について水平の
変倍をステツプS31の入力パラメータ値より行ない、ラ
スター画像格納部10に格納する(後述の第4図・第8図
で説明)。
Next, in step S33, from the raster image data stored in the image storage unit 8, horizontal scaling is performed for eight lines based on the input parameter values of step S31, and stored in the raster image storage unit 10 (described later). 4 and FIG. 8).

次にステツプS34では、ラスター画像格納部10に格納
されたラスター画像の画素の配列方向が変換され、一次
格納エリア12に格納する(後述の第9図で説明)。
Next, in step S34, the arrangement direction of the pixels of the raster image stored in the raster image storage unit 10 is converted and stored in the primary storage area 12 (described later with reference to FIG. 9).

そしてステツプS35では、一次格納エリア12のラスタ
ー画像データを垂直方向に変倍して出力バツフアに描画
し、これに基づいて印刷が行なわれる(後述の第10図で
説明)。
Then, in step S35, the raster image data in the primary storage area 12 is scaled in the vertical direction and drawn on an output buffer, and printing is performed based on this (described later with reference to FIG. 10).

以上のステツプS32からS35までのステツプが、入力さ
れたワイヤードツト画像データ全てについて行われたあ
と印刷が開始される(ステツプS36)。
Printing is started after the above steps S32 to S35 have been performed for all the input wired image data (step S36).

以下に、以上のステツプS32からS35各ステツプごとに
詳細な説明を行なう。
Hereinafter, a detailed description will be given for each of the above steps S32 to S35.

まず、第3図のステツプS32より、入力ワイヤードツ
ト画像データを回転を行なうことによってラスター画像
データに変換し、画像格納部8に格納する。第7図は、
本処理を最もよく表わした図である。
First, from step S32 in FIG. 3, the input wired image data is converted into raster image data by rotating, and stored in the image storage unit 8. FIG.
FIG. 9 is a diagram that best illustrates this processing.

次に第4図は、8ライン分のラスター画像データにつ
いて水平変倍を行ない、ラスター画像データ格納部10に
格納する処理動作(ステツプS33)のフローチヤートで
ある。
Next, FIG. 4 is a flowchart of the processing operation (step S33) of performing horizontal scaling on the raster image data for eight lines and storing the result in the raster image data storage unit 10.

ステツプS41において、ラスター画像データが画像格
納部8をいっぱいにした(空き領域のないフル状態)、
もしくは8ライン分のデータの処理が終了したのなら
ば、本処理を終了して、第3図のステツプS32に移行す
る。
In step S41, the raster image data fills the image storage unit 8 (full state with no free space),
Alternatively, if the processing of the data for eight lines has been completed, this processing is completed, and the flow shifts to step S32 in FIG.

ステツプS41で“NO"ならば、1バイト分のラスター画
像データを読み込み(ステツプS42)ステツプS43に移行
する。
If "NO" in the step S41, one byte of raster image data is read (step S42), and the process shifts to a step S43.

ステツプS43では、変倍データを画像格納部のどのア
ドレスにセツトするかを処理する開始位置処理ルーチン
が行なわれる。
In step S43, a start position processing routine for processing which address in the image storage unit sets the scaled data is performed.

ここで、開始位置処理ルーチンについての説明をす
る。
Here, the start position processing routine will be described.

第5図ステツプS51において、格子の大きさGSは入力
パラメータの水平変倍の幅であり、この実施例では、等
倍のときGS=24、2倍のときGS=48である。データの入
力数Nは逐次入力されるワイヤードツト画像データの個
数である。
In step S51 in FIG. 5, the grid size GS is the width of the horizontal scaling of the input parameter. In this embodiment, GS = 24 for the same magnification and GS = 48 for the double magnification. The number of data inputs N is the number of sequentially input wired dot image data.

ステツプS52では、開始位置(0)より幾つ進めた
(第8図下方に)ところに変倍された画像データを格納
するかという、その開始アドレスが次式によって決定さ
れる。
In step S52, the start address for determining how many steps forward (downward in FIG. 8) from the start position (0) to store the scaled image data is determined by the following equation.

PTR=((GS*N)+12)/24 …(式2) 本実施例では、印刷の解像度は300dpi(1ドツト24セ
ンチポイントに相当する)であり、例えば、水平変倍が
19インチポイント(1ポイントは1/72インチ)、送られ
たワイヤードツト画像データが5個目(第8図下方向
に)だとすると、PTR=((19*5)+12)/24=4とな
る。
PTR = ((GS * N) +12) / 24 (Equation 2) In this embodiment, the printing resolution is 300 dpi (corresponding to 24 dots per dot).
Assuming that the 19-inch point (one point is 1/72 inch) and the sent wired dot image data is the fifth (downward in FIG. 8), PTR = ((19 * 5) +12) / 24 = 4 .

なお(式2)では、少数点以下は切捨てられる。 Note that, in (Equation 2), fractions below the decimal point are truncated.

つまり、ラスター画像データ格納部10の4番目のアド
レスに変倍されたデータが格納される。
That is, the scaled data is stored in the fourth address of the raster image data storage unit 10.

この格納アドレスを求めるのが上述した開始位置処理
ルーチンである。
The start address processing routine described above determines this storage address.

つぎに、第4図ステツプS44では、ステツプS43によっ
て求められた格納アドレス(開始位置)に、水平変倍を
行なったデータを格納するのだが、その変倍幅は次式に
より印刷装置の単位系であるドツトに変換される。
Next, in step S44 in FIG. 4, the data subjected to horizontal scaling is stored at the storage address (start position) determined in step S43. Is converted to a dot.

DGS(変倍幅〈ドツト〉)=(GS+23)/24 …(式3) なお(式3)においても小数点以下は切捨てられる。DGS (magnification width <dot>) = (GS + 23) / 24 (Equation 3) In (Equation 3), the decimal part is also rounded down.

上述した場合にはDGS(19+23)/24=1(dot)と求
まるので、ラスター画像データ格納部10の4番目のアド
レスに変倍幅1ドツトのデータを格納することになる。
In the case described above, DGS (19 + 23) / 24 = 1 (dot) is obtained, so that data having a variable width of 1 dot is stored at the fourth address of the raster image data storage unit 10.

第8図は、2倍の変倍を行なう際にラスター画像格納
部10へのデータの格納態様をあらわした図である。
FIG. 8 is a diagram showing the manner in which data is stored in the raster image storage unit 10 when performing double magnification.

次に、第3図ステツプS34の画像データを第9図を参
照して説明する。
Next, the image data of step S34 in FIG. 3 will be described with reference to FIG.

ラスター画像機能部10に格納された画像データにおい
ては、1つのアドレスの1byteのデータは、紙送り方向
に配列された8ドツトの画素を表わす。ステツプS34で
は、このような画像データを紙送り方向に垂直な方向に
配列するように変換し、一次格納エリア12に格納する。
In the image data stored in the raster image function unit 10, one byte of data at one address represents eight-dot pixels arranged in the paper feed direction. In step S34, such image data is converted so as to be arranged in a direction perpendicular to the paper feeding direction, and stored in the primary storage area 12.

次に第3図のステツプS35の処理動作を第6図を参照
して説明する。
Next, the processing operation of step S35 in FIG. 3 will be described with reference to FIG.

第6図ステツプS61より変換されたラスター画像デー
タは、その幅の分だけ垂直変倍がなされる。つまり、第
10図よりラスター画像データ格納部は8ビツトの幅をも
っているので、この幅を越えるならば処理を終了する。
そうでないなら、ステツプS62で先の水平変倍の処理と
同様に開始位置処理ルーチンを用い、垂直変倍されたデ
ータを出力バツフアのどのアドレスに置くかを決定す
る。
The raster image data converted in step S61 in FIG. 6 is vertically scaled by the width thereof. That is,
As shown in FIG. 10, the raster image data storage section has a width of 8 bits. If the width exceeds this width, the processing is terminated.
If not, in step S62, the start position processing routine is used in the same manner as in the horizontal scaling process, and it is determined at which address of the output buffer the vertically scaled data is to be placed.

そして、変倍幅を印刷装置の単位(ドツト)に次式を
用いて変換して、 垂直変倍幅(ドツト)=(垂直変倍幅+23)/24 …(式
4) その出力バツフアのアドレスに変倍幅分だけ書き込ん
だならば、ステツプS61に戻り、そうでなければ変倍幅
の分だけ出力バツフア4にデータを書き込む(ステツプ
S63〜S64)。
Then, the scaling width is converted into the unit (dot) of the printing apparatus by using the following formula, and the vertical scaling width (dot) = (vertical scaling width + 23) / 24 (Equation 4) The address of the output buffer If the variable width has been written into the buffer, the process returns to step S61. Otherwise, the data is written into the output buffer 4 by the variable width (step S61).
S63-S64).

第10図が、この垂直変倍の処理を最もよく表わした図
である。
FIG. 10 is a diagram that best illustrates this vertical scaling process.

以上、第3図のステツプS32からS34までの処理を行な
うことによって、水平・垂直の変倍をして印刷が行われ
る。
As described above, by performing the processing from steps S32 to S34 in FIG. 3, printing is performed with horizontal and vertical scaling.

〔他の実施例〕[Other embodiments]

次に、本発明の他の実施例について説明する。 Next, another embodiment of the present invention will be described.

第11図は、本発明の他の実施例の印刷装置の構成例を
示す図である。
FIG. 11 is a diagram showing a configuration example of a printing apparatus according to another embodiment of the present invention.

第1図に変倍パラメータ入力部14を添加することによ
って、印刷装置の外部パネルなどのスイツチによって、
水平・垂直の変倍幅、高、変倍率が入力できるものであ
る。これによって、印刷装置に送る画像データに変倍の
情報を付加しなくても変倍が自由に行なう事ができる。
By adding a scaling parameter input unit 14 to FIG. 1, a switch such as an external panel of the printing apparatus can be used.
You can enter the horizontal and vertical scaling width, height, and scaling factor. Thus, scaling can be performed freely without adding scaling information to the image data to be sent to the printing apparatus.

〔発明の効果〕〔The invention's effect〕

以上に説明したように本発明によれば、ラスタースキ
ヤン方式の印刷装置において、ワイヤードツトの画像デ
ータに小容量のメモリーで高速に変倍(拡大・縮小)を
行ない印刷することができる。
As described above, according to the present invention, in a raster scan printing apparatus, printing (enlargement / reduction) of wired dot image data can be performed at high speed with a small-capacity memory and printed.

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

第1図は本発明の一実施例の印刷装置の構成を示すブロ
ツク図、 第2図は本発明の印刷装置に入力されるワイヤードツト
画像データの描画形式と本発明の印刷装置で印刷される
ラスター画像データの描画形式とを示した図、 第3図は第1図示の印刷装置の動作を説明するためのフ
ローチヤート、 第4図は第3図における水平変倍の処理動作(ステツプ
S33)を説明するためのフローチヤート、 第5図は第4図における開始位置処理ルーチンを説明す
るためのフローチヤート、 第6図は第3図における垂直変倍の処理動作を説明する
ためのフローチヤート、 第7図は本実施例のワイヤードツト画像データからラス
ター画像データの変換態様を示す図、 第8図は本実施例のラスター画像データの水平変倍の処
理動作を最もよく表わした図、 第9図は本実施例のラスター画像データの配列を変換す
る処理動作を示す図、 第10図は本実施例の垂直変倍からワイヤードツト画像デ
ータへの変換及び、出力バツフアに書き込む迄の処理動
作を示す図、 第11図は本発明の他の実施例の構成を示すブロツク図で
ある。 1…ホストコンピユータ、2…CPU、3…入力バツフ
ア、4…出力バツフア、6…印刷部、7…変倍処理部、
8…画像格納部、9…ラスター変換処理部、10…ラスタ
ー画像格納部、12…一次格納エリア、13…変換処理部、
14…変倍パラメータ入力部。
FIG. 1 is a block diagram showing the configuration of a printing apparatus according to an embodiment of the present invention, and FIG. 2 is a drawing format of wired image data input to the printing apparatus of the present invention and printed by the printing apparatus of the present invention. FIG. 3 shows a drawing format of raster image data, FIG. 3 is a flowchart for explaining the operation of the printing apparatus shown in FIG. 1, and FIG. 4 is a processing operation (step) of horizontal scaling in FIG.
FIG. 5 is a flowchart for explaining a start position processing routine in FIG. 4, and FIG. 6 is a flowchart for explaining a vertical zoom processing operation in FIG. FIG. 7 is a diagram showing a mode of converting raster image data from wired dot image data of the present embodiment. FIG. 8 is a diagram showing the processing operation of horizontal scaling of raster image data of the present embodiment best. FIG. 9 is a diagram showing a processing operation for converting the arrangement of raster image data according to the present embodiment. FIG. 10 is a diagram showing processing from conversion of vertical magnification to wired dot image data and writing to an output buffer according to the present embodiment. FIG. 11 is a block diagram showing the configuration of another embodiment of the present invention. DESCRIPTION OF SYMBOLS 1 ... Host computer, 2 ... CPU, 3 ... Input buffer, 4 ... Output buffer, 6 ... Printing part, 7 ... Scaling processing part,
8 image storage unit, 9 raster conversion processing unit, 10 raster image storage unit, 12 primary storage area, 13 conversion processing unit
14: Variable magnification parameter input section.

Claims (3)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】第1の画像データを入力する入力手段と、 前記入力手段によって入力された第1の画像データを、
第1の画像データとは、画素の時間的な配列順序が異な
る第2の画像データに変換する第1変換手段と、 前記第1変換手段からの第2の画像データを、第1の方
向に変倍処理し、第3の画像データとして出力する第1
変倍処理手段と、 前記第1変倍処理手段からの第3の画像データを、第3
の画像データとは画素の時間的な配列順序が異なる第4
の画像データに変換する第2変換手段と、 前記第2変換手段からの第4の画像データを、第1の方
向とは異なる第2の方向に変倍処理し、第5の画像デー
タとして出力する第2変倍処理手段とを有することを特
徴とする印刷装置。
An input unit for inputting first image data; and a first image data input by the input unit,
The first image data includes a first conversion unit that converts the image into a second image data having a different temporal arrangement order of pixels, and a second image data from the first conversion unit in a first direction. A first process of performing a scaling process and outputting as third image data;
Scaling processing means; and third image data from the first scaling processing means,
The image data of which is different from the image data of FIG.
A second converting means for converting the image data into a second image data, a fourth image data from the second converting means being subjected to scaling processing in a second direction different from the first direction, and output as fifth image data And a second variable magnification processing means.
【請求項2】請求項第1項記載の印刷装置において、 変倍率を設定するための設定手段を含み、 第1又は第2変倍処理手段のいずれか少なくとも一方
は、設定された変倍率に基づいて1ライン上に並ぶ1つ
又は複数の画素の画像データ毎に、当該画像データを印
刷すべき位置、及び当該画像データを続けて描画すべき
回数を演算する演算手段とを含むことを特徴とする印刷
装置。
2. The printing apparatus according to claim 1, further comprising setting means for setting a scaling factor, wherein at least one of the first and second scaling processing means adjusts the set scaling factor. Computing means for computing, for each image data of one or a plurality of pixels arranged on one line, a position at which the image data is to be printed and a number of times to continuously draw the image data based on the image data. Printing device.
【請求項3】ラスタースキヤン方式の印刷装置におい
て、入力されたワイヤードツト画像データを変倍する変
倍処理部を備え、前記変倍処理部によって変倍された画
像データを格納するワイヤードツト画像データ格納部を
備え、前記ワイヤードツト画像データをラスター画像デ
ータに変換するラスター変換処理部を備え、前記ラスタ
ー画像データを格納するラスター画像格納部を備え、前
記ラスター画像データを変倍する変倍処理部を備え、前
記変倍されたラスター画像データを一時格納する一時格
納エリアを備え、前記ラスター画像データをワイヤード
ツト画像データに変換するワイヤードツト変換処理部を
設けることによって、ワイヤードツトの画像データを変
倍して描画することを可能としたラスタースキヤン方式
の印刷装置。
3. A raster scanning type printing apparatus, comprising: a scaling unit for scaling input wired dot image data; and wired dot image data for storing image data scaled by the scaling unit. A raster conversion processing unit for converting the wired dot image data into raster image data; a raster image storage unit for storing the raster image data; and a scaling processing unit for scaling the raster image data A temporary storage area for temporarily storing the scaled raster image data, and a wired dot conversion processing unit for converting the raster image data into wired dot image data, thereby converting the wired dot image data. Raster scan type printing device that can draw twice.
JP2047853A 1990-02-27 1990-02-27 Printing equipment Expired - Fee Related JP2911529B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2047853A JP2911529B2 (en) 1990-02-27 1990-02-27 Printing equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2047853A JP2911529B2 (en) 1990-02-27 1990-02-27 Printing equipment

Publications (2)

Publication Number Publication Date
JPH03249873A JPH03249873A (en) 1991-11-07
JP2911529B2 true JP2911529B2 (en) 1999-06-23

Family

ID=12786930

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2047853A Expired - Fee Related JP2911529B2 (en) 1990-02-27 1990-02-27 Printing equipment

Country Status (1)

Country Link
JP (1) JP2911529B2 (en)

Also Published As

Publication number Publication date
JPH03249873A (en) 1991-11-07

Similar Documents

Publication Publication Date Title
US4893258A (en) Data processing apparatus having enlargement/reduction functions capable of setting different magnification in different directions
US5018078A (en) Apparatus and method for processing huge image information at high speed
US5163122A (en) Image processing system
JPH0547853B2 (en)
JPS6340189A (en) Address conversion system
US5847713A (en) Output apparatus with size change of character patterns only
JPH0471866A (en) Printer
JP2911529B2 (en) Printing equipment
JPH04252562A (en) Picture processing unit
JP3005014B2 (en) Printing equipment
JP3711735B2 (en) Document image processing apparatus and recording medium
JP3233970B2 (en) Image processing method and apparatus
JPH07250240A (en) Image forming device
JP2613302B2 (en) Reduction printing device
JP2513636B2 (en) Image processing device
JP2803560B2 (en) Printer control device
JPH0729448B2 (en) Printer controller
JP2690567B2 (en) Printing control device
JPH0729449B2 (en) Printer controller
JP2715475B2 (en) Graphic output device
JP3109727B2 (en) Character processing method and character processing device
JP2005123806A (en) Image processing method and image processing system
JPH0417527B2 (en)
JPH07245698A (en) Device and method for processing image
JPH06175637A (en) Method for generating character

Legal Events

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