JP3475489B2 - Image printing device - Google Patents

Image printing device

Info

Publication number
JP3475489B2
JP3475489B2 JP10007394A JP10007394A JP3475489B2 JP 3475489 B2 JP3475489 B2 JP 3475489B2 JP 10007394 A JP10007394 A JP 10007394A JP 10007394 A JP10007394 A JP 10007394A JP 3475489 B2 JP3475489 B2 JP 3475489B2
Authority
JP
Japan
Prior art keywords
virtual
image
data
print
sub
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
JP10007394A
Other languages
Japanese (ja)
Other versions
JPH07307858A (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.)
Casio Computer Co Ltd
Original Assignee
Casio Computer 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 Casio Computer Co Ltd filed Critical Casio Computer Co Ltd
Priority to JP10007394A priority Critical patent/JP3475489B2/en
Publication of JPH07307858A publication Critical patent/JPH07307858A/en
Application granted granted Critical
Publication of JP3475489B2 publication Critical patent/JP3475489B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Image Processing (AREA)
  • Editing Of Facsimile Originals (AREA)
  • Dot-Matrix Printers And Others (AREA)
  • Record Information Processing For Printing (AREA)

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、簡単な回路構成で画像
の回転、千鳥印字、及び任意の拡大率での拡大を一定し
た処理時間で行う画像印刷装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image printing apparatus which performs image rotation, zigzag printing, and enlargement at an arbitrary enlargement ratio with a constant processing time with a simple circuit structure.

【0002】[0002]

【従来の技術】従来より、画像メモリに記憶されている
画像を印刷する場合、図18のブロック図に示すような
画像処理装置により印刷データが作成され印刷制御がな
されていた。これを簡単に説明すると、同図に示すタイ
ミング信号発生回路1は、オン/オフ状態のタイミング
信号を出力して印刷データ作成のための主走査及び副走
査の動作を制御する回路である。CPU (Central Proc
essing Unit)2は、印刷画像の拡大率、画像切り出し位
置、画像回転の有無等の情報を出力して各部を制御する
回路である。アドレス生成回路3は、画像メモリ4上の
複数の画像データを順次読み出すためのアドレス信号を
生成して画像メモリ4に供給する回路である。画像メモ
リ4は、ビデオ信号処理回路等からなる画像記憶手段5
により、テレビ、ビデオカメラ、ビデオデッキ等のアナ
ログビデオ信号から変換されたディジタル画像データを
記憶するフレームメモリであり、アドレス生成回路3か
ら供給されるアドレスの画素データを出力する。上記デ
ィジタル画像データは輝度信号Yと色差信号Cとからな
る画素データで構成されている。合成処理回路A(6)
は、画像メモリ4から出力される複数の画素データ(輝
度信号Y)を合成制御回路7から出力される拡大率に対
応する輝度合成パラメータに基づいて合成演算した合成
輝度信号Y′を出力する。シャープネス処理回路8は、
複数の合成輝度信号Y′を読み込んで輪郭強調処理を行
って処理済輝度信号Y″出力する回路である。合成処理
回路B(9)は、画像メモリ4から出力される複数の画
素データ(色差信号C)を合成制御回路7から出力され
る拡大率に対応する色差合成パラメータに基づいて合成
演算した合成色差信号C′を出力する。画像処理・印刷
制御回路は、シャープネス処理回路8から入力する処理
済輝度信号Y″および合成処理回路Bから入力する合成
色差信号C′により印刷データを生成し図外の印字部に
出力して印刷制御を行う回路である。
2. Description of the Related Art Conventionally, when printing an image stored in an image memory, print data is created and print control is performed by an image processing apparatus as shown in the block diagram of FIG. To briefly explain this, the timing signal generating circuit 1 shown in the figure is a circuit which outputs a timing signal in an ON / OFF state and controls the operations of main scanning and sub scanning for creating print data. CPU (Central Proc
The essing unit 2 is a circuit that outputs information such as the enlargement ratio of the print image, the image cutout position, and the presence or absence of image rotation, and controls each unit. The address generation circuit 3 is a circuit that generates an address signal for sequentially reading a plurality of image data on the image memory 4 and supplies the address signal to the image memory 4. The image memory 4 is an image storage means 5 including a video signal processing circuit and the like.
Thus, it is a frame memory for storing digital image data converted from an analog video signal of a television, a video camera, a video deck, etc., and outputs the pixel data of the address supplied from the address generation circuit 3. The digital image data is composed of pixel data composed of a luminance signal Y and a color difference signal C. Synthesis processing circuit A (6)
Outputs a combined luminance signal Y ′ obtained by combining and calculating a plurality of pixel data (luminance signal Y) output from the image memory 4 based on a luminance combining parameter corresponding to the enlargement ratio output from the combining control circuit 7. The sharpness processing circuit 8
This is a circuit that reads a plurality of combined luminance signals Y ′, performs edge enhancement processing, and outputs a processed luminance signal Y ″. The combining processing circuit B (9) is a circuit for outputting a plurality of pixel data (color difference) output from the image memory 4. The signal C) is output as a composite color difference signal C'combined based on the color difference composition parameters corresponding to the enlargement ratio output from the composition control circuit 7. The image processing / printing control circuit inputs from the sharpness processing circuit 8. A circuit for performing print control by generating print data from the processed luminance signal Y ″ and the composite color difference signal C ′ input from the composite processing circuit B and outputting the print data to a printing unit (not shown).

【0003】[0003]

【発明が解決しようとする課題】しかしながら、上記従
来の構成では、画像印刷を行うに際し下記に述べるよう
な種々の問題が発生する。
However, in the above-mentioned conventional configuration, various problems as described below occur during image printing.

【0004】即ち、画像を拡大して印刷しようとする
と、アドレス生成回路及び合成回路に夫々拡大率毎の論
理回路が必要になる。これらの論理回路は拡大率が異な
ると全く別な構成の回路となり、拡大率を複数用意しよ
うとすると、これに応じた複数の回路を夫々アドレス生
成回路及び合成回路毎に備える必要が生じてくる。ま
た、これらの回路を切り替えて動作させる制御回路も必
要となってくる。したがって、全体として回路が複雑に
なるという欠点を有していた。
That is, in order to enlarge and print an image, the address generating circuit and the synthesizing circuit each require a logic circuit for each enlargement ratio. These logic circuits have completely different configurations when the enlargement ratio is different, and when preparing a plurality of enlargement ratios, it becomes necessary to provide a plurality of circuits corresponding to the enlargement ratios for each of the address generation circuit and the synthesis circuit. . In addition, a control circuit for switching these circuits to operate becomes necessary. Therefore, there is a drawback that the circuit becomes complicated as a whole.

【0005】また、見た目に良い印刷画像とするために
は隣接する印刷ドットの間隔を均一に、つまり千鳥格子
状に配置する必要がある。しかし、このような千鳥印字
を行うためには、上記のアドレス生成回路及び合成回路
に、副走査番号が偶数のときと奇数のときとでは夫々別
個のアドレス生成回路及び合成回路が必要となる。した
がって、回路がいっそう複雑になって、設計上、価格
上、更には小型化の上で問題が増加する。
Further, in order to obtain a printed image that looks good, it is necessary to arrange the intervals between adjacent printed dots uniformly, that is, in a zigzag pattern. However, in order to perform such zigzag printing, the address generating circuit and the synthesizing circuit described above require separate address generating circuits and synthesizing circuits when the sub-scanning numbers are even and odd, respectively. Therefore, the circuit becomes more complicated, and problems increase in design, price, and size reduction.

【0006】さらに、画像を90度回転させて印刷した
いという要望がしばしば発生する。ところで、画像デー
タはデータ量が多いから、通常、画像メモリには体積に
比較して記憶容量が大きく且つ安価なDRAMが用いら
れる。一般にDRAMからデータを読み出す場合はロー
アドレスを指定しカラムアドレスをシーケンシャルにシ
フトして読み出し、1ラインデータの読み出しが終わっ
た後にローアドレスをシフトし次の1ライン(行)を読
み出す方法、所謂ファーストページモードで読み出すの
が一般的に行われる。これはDRAMに書込んだ画像デ
ータを回転することなしに、印字する場合であり高速の
読み出しが可能となる。ところが画像を90度回転して
印刷を行う場合はDRAMからの読み出し順序も前記方
法とは異ならせ90度回転するような方向に読み出さな
ければならない。即ちまずカラムアドレスを指定し順次
ローアドレスをシフトして1桁目を読み出し、これを順
次2、3桁目と繰り返すこととなる。この方法は元来D
RAMの読み出しには適さないため、回転を行うと印刷
処理速度が回転を行わない場合に対して大幅に遅くなっ
てしまう。
Further, there is often a desire to print an image rotated by 90 degrees. By the way, since the image data has a large amount of data, a DRAM, which has a large storage capacity and is inexpensive as compared with the volume, is usually used for the image memory. In general, when reading data from a DRAM, a row address is designated, column addresses are sequentially shifted and read, and after reading one line of data, the row address is shifted and the next one line (row) is read, so-called first. Reading is typically done in page mode. This is a case where printing is performed without rotating the image data written in the DRAM, and high-speed reading is possible. However, when an image is rotated by 90 degrees for printing, the reading order from the DRAM must be different from that in the above method and the reading must be performed in a direction in which the image is rotated by 90 degrees. That is, first, the column address is designated, the row address is sequentially shifted, the first digit is read, and this is sequentially repeated for the second and third digits. This method is originally D
Since it is not suitable for reading the RAM, the print processing speed when rotated is significantly slower than when the rotation is not performed.

【0007】次に、合成処理の後にシャープネス処理を
行うようになっているが、この方法であると、拡大率の
違いによってシャープネス処理の範囲を変更しなければ
ならなくなり、このためのメモリを別個に必要とする。
これは、拡大率が大きな場合、合成後における注目ドッ
トのデータと周囲ドットのデータとは殆ど変わらないた
め、効果的なシャープネス処理を行うためには注目ドッ
トからかなり離れたドットの合成後データを用いる必要
があることに拠る。つまり、それらのデータを複数記憶
しておかねばならず、その分メモリが必要となる。この
ことは、回路の増大やコストの上昇を招くという問題だ
けでなく、処理時間も一定ではなくなるという問題を招
来する。
Next, the sharpness processing is performed after the synthesis processing. With this method, however, the range of the sharpness processing must be changed due to the difference in the enlargement ratio, and a separate memory for this is required. Need to.
This is because when the enlargement ratio is large, the data of the target dot after combining and the data of the surrounding dots are almost the same, so in order to perform effective sharpness processing, the data after combining of dots that are far from the target dot should be used. It depends on what needs to be used. That is, it is necessary to store a plurality of such data, and a memory is required accordingly. This causes not only the problem that the circuit is increased and the cost is increased, but also the problem that the processing time is not constant.

【0008】本発明の課題は、上記従来の実情に鑑み、
簡単な回路構成で画像の回転、千鳥印字、及び任意の拡
大率での拡大を一定した処理時間で行うことのできる画
像印刷装置を提供することである。
The object of the present invention is to solve the above-mentioned conventional problems.
An object of the present invention is to provide an image printing apparatus capable of performing image rotation, zigzag printing, and enlargement at an arbitrary enlargement ratio with a constant processing time with a simple circuit configuration.

【0009】[0009]

【課題を解決するための手段】以下に、本発明に係わる
画像印刷装置の構成を述べる。先ず、本発明は、画像デ
ータを印刷出力する画像印刷装置を前提とする。
The structure of the image printing apparatus according to the present invention will be described below. First, the present invention is premised on an image printing apparatus that prints out image data.

【0010】本発明の画像印刷装置は、画像メモリのア
ドレス空間に対応した仮想座標空間上における座標を計
算する座標計算手段と、画像メモリから読み出した画像
データと座標計算手段による座標の計算結果とに基づい
て印刷データを作成する画像処理手段と、仮想座標空間
は仮想列座標と仮想行座標からなり、前記座標計算手段
は、前記仮想座標上の仮想列初期値、仮想列間隔、仮想
行初期値、仮想行間隔、前記画像メモリから読み出した
画像データを印刷データとして出力する際の画像回転の
有無、及び画像回転を行う場合の回転角度とに基づいて
座標計算を行うように構成される。
The image printing apparatus of the present invention includes coordinate calculation means for calculating coordinates in a virtual coordinate space corresponding to the address space of the image memory, image data read from the image memory, and calculation results of coordinates by the coordinate calculation means. Image processing means for creating print data based on the virtual coordinate space
Is composed of virtual column coordinates and virtual row coordinates.
Is the virtual column initial value on the virtual coordinates, the virtual column interval, the virtual column
Line initial value, virtual line interval, read from the image memory
Image rotation when outputting image data as print data
Based on the presence / absence and the rotation angle when rotating the image
It is configured to perform coordinate calculations .

【0011】[0011]

【0012】さらに、上記座標計算手段は、例えば請求
項2記載のように、少なくとも上記仮想列初期値及び上
記仮想行初期値により印刷画像の画像メモリ上の位置を
決定するように構成される。また、例えば請求項3記載
のように、上記仮想列間隔及び上記仮想行間隔により印
刷画像の拡大率を決定するように構成される。さらにま
た、例えば請求項4記載のように、副走査方向が偶数番
目の主走査と副走査方向が奇数番目の主走査とでは主走
査方向の仮想座標の初期値を主走査方向の仮想座標間隔
の1/2ずらして設定するように構成される。
Further, the coordinate calculation means is, for example, a request.
As described in Item 2 , at least the virtual column initial value and the virtual row initial value are used to determine the position of the print image on the image memory. Further, as described in claim 3 , for example, the enlargement ratio of the print image is determined by the virtual column interval and the virtual row interval. Furthermore, for example, as described in claim 4 , the initial value of the virtual coordinate in the main scanning direction is the initial value of the virtual coordinate in the main scanning direction between the main scanning in the even-numbered sub-scanning direction and the main scanning in the odd-numbered sub-scanning direction. It is configured to be set by shifting by 1/2.

【0013】また、上記画像処理手段は、例えば請求項
記載のように、画像回転の有無に応じて画像メモリの
画素データを印刷用紙の長手方向または横手方向に印刷
するよう印字出力するように構成される。また、例えば
請求項6記載のように、上記画像メモリの出力に対し輪
郭強調処理を行って処理済み輝度信号を出力し、仮想列
アドレス及び仮想行アドレスに基づいて前記処理済み輝
度信号を合成処理することにより上記印刷データを作成
するように構成される。さらにまた、例えば請求項7
載のように、上記画像メモリの1画素のアスペクト比
(たてよこ比)を一桁の整数の平方根の比で表わし上記
画像回転による上記仮想列間隔と上記仮想行間隔との比
を一桁の整数の比となるよう設定するように構成され
る。
Further, the image processing means is, for example, in the claims.
As described in 5, the pixel data of the image memory is configured to be printed out so as to be printed in the longitudinal direction or the lateral direction of the printing paper according to the presence or absence of image rotation. Also, for example
As described in claim 6, outline enhancement processing is performed on the output of the image memory to output a processed luminance signal, and the virtual column is output.
Based on the address and virtual row address
The print data is created by combining the frequency signals . Still further, for example, as described in claim 7 , the aspect ratio (vertical ratio) of one pixel of the image memory is represented by a ratio of a square root of an integer of one digit, and the virtual column interval and the virtual row by the image rotation are expressed. It is configured to set the ratio to the interval to be a one-digit integer ratio.

【0014】[0014]

【作用】この発明は、座標計算手段が画像メモリのアド
レス空間に対応した仮想座標空間上における座標を計算
し、画像処理手段が画像メモリから読み出した画像デー
タと座標計算手段による座標の計算結果とに基づいて印
刷データを作成し、仮想座標空間は仮想列座標と仮想行
座標からなり、前記座標計算手段は、前記仮想座標上の
仮想列初期値、仮想列間隔、仮想行初期値、仮想行間
隔、前記画像メモリから読み出した画像データを印刷デ
ータとして出力する際の画像回転の有無、及び画像回転
を行う場合の回転角度とに基づいて座標計算を行うもの
である。
According to the present invention, the coordinate calculation means calculates the coordinates in the virtual coordinate space corresponding to the address space of the image memory, and the image processing means reads the image data from the image memory and the coordinate calculation result by the coordinate calculation means. virtual line creates print data, the virtual coordinate space and the virtual column coordinates based on
The coordinates on the virtual coordinates.
Virtual column initial value, virtual column interval, virtual row initial value, virtual row interval
Image data read from the image memory.
Whether to rotate the image when outputting it as a data, and the image rotation
The coordinate calculation is performed based on the rotation angle when performing .

【0015】上記の座標計算手段は、少なくとも仮想列
初期値及び仮想行初期値により印刷画像の画像メモリ上
の位置を決定し、仮想列間隔及び仮想行間隔により印刷
画像の拡大率を決定し、さらに、副走査方向が偶数番目
の主走査と副走査方向が奇数番目の主走査とでは主走査
方向の仮想座標の初期値を主走査方向の仮想座標間隔の
1/2ずらして設定する。
The coordinate calculating means determines the position of the print image on the image memory by at least the virtual column initial value and the virtual row initial value, and determines the enlargement ratio of the print image by the virtual column interval and the virtual row interval. Further, the initial value of the virtual coordinate in the main scanning direction is set to be shifted by ½ of the virtual coordinate interval in the main scanning direction between the even-numbered main scanning in the sub-scanning direction and the odd-numbered main scanning in the sub-scanning direction.

【0016】また、上記画像処理手段は、画像回転の有
無に応じて画像メモリの画素データを印刷用紙の長手方
向または横手方向に印刷するよう印字出力し、画像メモ
リの出力に対し輪郭強調処理を行って処理済み輝度信号
を出力し、仮想列アドレス及び仮想行アドレスに基づい
て前記処理済み輝度信号を合成処理することにより上記
印刷データを作成し、画像メモリの1画素のアスペクト
比(たてよこ比)を一桁の整数の平方根の比で表わし画
像回転による仮想列間隔と仮想行間隔との比を一桁の整
数の比となるよう設定する。
Further, the image processing means prints out the pixel data of the image memory so as to print in the longitudinal direction or the lateral direction of the printing paper according to the presence / absence of image rotation, and performs edge enhancement processing on the output of the image memory. Go and processed luminance signal
Based on the virtual column address and virtual row address
The print data is created by synthesizing the processed luminance signal, and the aspect ratio (vertical ratio) of one pixel in the image memory is represented by the ratio of the square root of a one-digit integer. And the virtual line spacing are set to be a one-digit integer ratio.

【0017】これにより、簡単な回路構成で画像の回
転、千鳥印字、及び任意の拡大率での拡大を一定した処
理時間で行うことができる。
Thus, the rotation of the image, the zigzag printing, and the enlargement at an arbitrary enlargement ratio can be performed with a constant processing time with a simple circuit configuration.

【0018】[0018]

【実施例】以下、本発明の実施例について図面を参照し
ながら詳述する。なお、以下の説明では印字と印刷を同
義に用いる。
Embodiments of the present invention will be described in detail below with reference to the drawings. In the following description, printing and printing are used synonymously.

【0019】図1は、一実施例の画像印刷装置のブロッ
ク図である。同図において、タイミング信号発生回路1
1は、オン又はオフの各種の状態タイミング信号を出力
して印刷データ作成のための主走査及び副走査の動作を
制御する。
FIG. 1 is a block diagram of an image printing apparatus according to an embodiment. In the figure, a timing signal generation circuit 1
Reference numeral 1 outputs various state timing signals of ON or OFF to control the operation of main scanning and sub-scanning for creating print data.

【0020】CPU12は、システムプログラムを格納
した不図示のROM(Read Only Memory)を備えており、
このROMから読み出したシステムプログラムに基づき
タイミング信号を出力する等して機構部分のシーケンス
制御を行う。さらに不図示の入力パネル等からのキー入
力やその他の操作信号等を入力したり必要な情報を外部
に報知する等を行うユーザインタフェースの制御を行
い、印刷画像の拡大率、画像切り出し位置、画像回転の
有無等の外部からの入力情報を認識し、この認識に基づ
いて、下記の仮想列生成回路13及び仮想行生成回路1
4に対し回転指示、仮想列及び仮想行の初期値、仮想列
及び仮想行の間隔を設定し、さらに上記のタイミング信
号発生回路11に対し、主走査の回数、副走査の回数等
を設定して、印刷動作開始を各部に指示する。尚、CP
U12は、画像データそのものの処理は以下に説明する
各処理回路に任せて自身では直接扱うことはしていな
い。
The CPU 12 has a ROM (Read Only Memory) (not shown) storing a system program,
A sequence signal is output based on the system program read from the ROM to control the sequence of the mechanical portion. In addition, the user interface is controlled to input key input from an input panel (not shown), other operation signals, etc. and to notify the necessary information to the outside. The input information from the outside such as the presence or absence of rotation is recognized, and based on this recognition, the following virtual column generation circuit 13 and virtual row generation circuit 1
4, rotation instructions, initial values of virtual columns and virtual rows, intervals between virtual columns and virtual rows are set, and further, the number of main scans, the number of sub-scans, etc. are set in the timing signal generation circuit 11 described above. Then, each unit is instructed to start the printing operation. In addition, CP
U12 does not directly handle the processing of the image data itself by leaving it to each processing circuit described below.

【0021】仮想列生成回路13は、組み合わせ回路、
加算器、16ビットレジスタ等で構成され、最上位ビッ
トb15〜最下位ビットb0からなる仮想列座標値「b
15〜b0」を出力する。仮想行生成回路14も、組み
合わせ回路、加算器、15ビットレジスタ等で構成さ
れ、最上位ビットb14〜最下位ビットb0からなる仮
想行座標値「b14〜b0」を出力する。
The virtual column generation circuit 13 is a combinational circuit,
A virtual column coordinate value "b" composed of an adder, a 16-bit register, etc. and composed of the most significant bit b15 to the least significant bit b0.
15-b0 "is output. The virtual row generation circuit 14 is also composed of a combination circuit, an adder, a 15-bit register, etc., and outputs virtual row coordinate values “b14 to b0” composed of the most significant bit b14 to the least significant bit b0.

【0022】アドレス生成回路15は、上記仮想列座標
値及び仮想行座標値に対応するアドレスの画像メモリ1
6上の複数の画像データを順次読み出すためのアドレス
信号を生成して画像メモリ16に供給する。
The address generation circuit 15 operates the image memory 1 of an address corresponding to the virtual column coordinate value and the virtual row coordinate value.
An address signal for sequentially reading a plurality of image data on 6 is generated and supplied to the image memory 16.

【0023】画像メモリ16は、例えば2MB(メガバ
イト)で構成されるフレームメモリを有し、このフレー
ムメモリの上記アドレス生成回路15によって指定され
るアドレスに画像データを記憶する。
The image memory 16 has a frame memory composed of, for example, 2 MB (megabytes), and stores image data at the address designated by the address generation circuit 15 of this frame memory.

【0024】画像記憶手段17は、例えばビデオ信号処
理回路等からなり、テレビ、ビデオカメラ、ビデオデッ
キ等から入力されるアナログビデオ信号を輝度信号と色
差信号に分離し、例えば1ドット当たり8ビット構成の
輝度信号Yと2ドット当り6ビット構成の色差信号Cと
からなるデジタル信号に変換して、この変換したディジ
タル信号、すなわち画像データを、画像メモリ16へ出
力する。
The image storage means 17 is composed of, for example, a video signal processing circuit, etc., and separates an analog video signal input from a television, a video camera, a video deck, etc. into a luminance signal and a color difference signal, for example, 8 bits per dot. Of the luminance signal Y and the color difference signal C of 6 bits per 2 dots, and the converted digital signal, that is, image data is output to the image memory 16.

【0025】シャープネス処理回路18は、複数の輝度
信号Yを読み込んで輪郭強調処理を行って処理済み輝度
信号Yを出力する。合成処理回路A(19)は、シャー
プネス処理回路18から入力する複数の輝度信号Yを、
仮想列生成回路13から入力する仮想列アドレス及び仮
想行生成回路14から入力する仮想行アドレスに基づい
て合成演算した信号からなる合成輝度信号Y′を出力す
る。
The sharpness processing circuit 18 reads a plurality of luminance signals Y, performs edge enhancement processing, and outputs a processed luminance signal Y. The synthesis processing circuit A (19) converts the plurality of luminance signals Y input from the sharpness processing circuit 18 into
The composite luminance signal Y'composed of a composite operation signal based on the virtual column address input from the virtual column generation circuit 13 and the virtual row address input from the virtual row generation circuit 14 is output.

【0026】合成処理回路B(20)は、画像メモリ1
6から出力される複数の画素データ(色差信号C)を仮
想列生成回路13から入力する仮想列アドレス及び仮想
行生成回路14から入力する仮想行アドレスに基づいて
合成演算した信号からなる合成色差信号C′を出力す
る。
The synthesis processing circuit B (20) is used in the image memory 1
A composite color difference signal composed of signals obtained by performing a composite operation on a plurality of pixel data (color difference signal C) output from the reference numeral 6 based on a virtual column address input from the virtual column generation circuit 13 and a virtual row address input from the virtual row generation circuit 14. Output C '.

【0027】画像処理回路・印刷制御回路21の画像処
理回路は、画質調整のための色合い調整回路、コントラ
スト調整回路、明るさ調整回路や、カラー印刷のための
色補正処理回路、ガンマ補正処理回路、色別印字のため
のカラーマスキング処理回路等からなり、合成処理回路
19から入力する輝度信号Y′及び合成処理回路Bから
入力する合成色差信号C′に基づいて印刷データを生成
する。一方、印刷制御回路は、印刷デバイス(後述する
印字部22)に対して印刷データ、クロック、ストロー
ブ信号等を繰り返し送信するデータ変換回路、環境温度
補正回路、電源電圧低下補正回路等からなり、印刷部2
2による画像印刷を制御する。これら画像処理回路及び
印刷制御回路は上記CPU12による機構部シーケンス
制御に同期して動作する。
The image processing circuit of the image processing circuit / printing control circuit 21 includes a hue adjustment circuit for adjusting image quality, a contrast adjustment circuit, a brightness adjustment circuit, a color correction processing circuit for color printing, and a gamma correction processing circuit. , A color masking processing circuit for printing by color, etc., and generates print data based on the luminance signal Y ′ input from the combining processing circuit 19 and the combined color difference signal C ′ input from the combining processing circuit B. On the other hand, the print control circuit includes a data conversion circuit that repeatedly transmits print data, a clock, a strobe signal, etc. to a printing device (printing unit 22 described later), an environmental temperature correction circuit, a power supply voltage drop correction circuit, and the like. Part 2
2 controls image printing. These image processing circuit and print control circuit operate in synchronization with the mechanical section sequence control by the CPU 12.

【0028】印刷部22は、主走査方向(用紙の横方
向)にライン状に配列された発熱体からなる印字ヘッド
(サーマルヘッド)を備えている。このサーマルヘッド
は本体装置の支持部材に固定されており、副走査方向
(用紙の縦方向に)に用紙を送りながら主走査方向の印
字を一度に行う。上記の発熱体の配列ピッチはおよそ1
25μm(ミクロン)であり、これは1mm(ミリメー
トル)当たりおよそ8ドットの画素密度に対応する。
The printing section 22 is provided with a print head (thermal head) composed of heating elements arranged in a line in the main scanning direction (lateral direction of paper). This thermal head is fixed to a support member of the main body device, and performs printing in the main scanning direction at one time while feeding the paper in the sub scanning direction (the longitudinal direction of the paper). The array pitch of the above heating elements is approximately 1
25 μm (microns), which corresponds to a pixel density of approximately 8 dots per mm (millimeter).

【0029】本実施例では、画像処理回路・印刷制御回
路21は、印字の際、副走査が偶数番目の主走査1ライ
ンの印字では、サーマルヘッドの偶数番目の発熱体を選
択的に発熱させ、一方、副走査が奇数番目の主走査1ラ
インの印字では奇数番目の発熱体を選択的に発熱させ
る。すなわち偶数番目と奇数番目の副走査における主走
査に対応して偶数番目と奇数番目の発熱体を交互に発熱
させる。そして、用紙の幅とほぼ同幅のインクリボンを
用紙に重ねて副走査方向に移動させながら上記発熱させ
た発熱体の熱エネルギーによりインクリボンのインクを
用紙に転写して主走査1ラインの印字を同時(一度)に
行う。そのとき、詳しくは後述するが、印字画素が用紙
上に千鳥格子状に配置されるように用紙の送り量(1回
の副走査距離)が制御される。
In the present embodiment, the image processing circuit / printing control circuit 21 selectively causes the even-numbered heating elements of the thermal head to generate heat when printing one line of main scanning in which the sub-scanning is even. On the other hand, in the printing of one line of main scanning in which the sub-scanning is odd, the odd-numbered heating elements are selectively heated. That is, the even-numbered and odd-numbered heating elements are alternately caused to generate heat corresponding to the main scanning in the even-numbered and odd-numbered sub-scans. Then, the ink of the ink ribbon is transferred to the paper by the thermal energy of the heating element that is heated while the ink ribbon having the width substantially the same as the width of the paper is overlapped on the paper and moved in the sub-scanning direction, and one-line main scanning is performed. At the same time (once). At this time, as will be described later in detail, the paper feed amount (one sub-scanning distance) is controlled so that the print pixels are arranged in a zigzag pattern on the paper.

【0030】このように印字画素を千鳥格子状で印字す
ると、発熱体が一つ置きに交互に発熱するので発熱体の
熱履歴の補正が容易になり、また隣接する画素が全て均
等な間隔で配置されるため良好な発色の印刷画像が得ら
れる。
When the print pixels are printed in a zigzag pattern in this manner, the heat generating elements alternately generate heat, so that the thermal history of the heat generating elements can be easily corrected, and all the adjacent pixels are evenly spaced. Since it is arranged in, a printed image with good color can be obtained.

【0031】上記印刷に用いるインクリボンには、減法
混色の三原色であるイエロー(黄色)、マゼンタ(赤色
染料)及びシアン(緑味のある青色)の三色と文字など
の印字に専用するブラック(黒)とをベースフィルムの
長手方向へ順次に並べ、この四色一組を繰り返し塗布し
た形状のインクリボンを用いている。勿論、文字を印刷
せず画像のみを印刷する場合はイエロー、マゼンタ、シ
アンの三色のリボンを用いてもよい。
The ink ribbon used for the above printing has three colors of subtractive primary colors of yellow (yellow), magenta (red dye) and cyan (blue with a greenish tint), and black dedicated to printing characters ( (Black) are sequentially arranged in the longitudinal direction of the base film, and an ink ribbon having a shape in which a set of four colors is repeatedly applied is used. Of course, when printing only the image without printing the characters, ribbons of three colors of yellow, magenta, and cyan may be used.

【0032】印字画素の濃度階調は、1印字ドット内に
占めるインクの面積を制御する面積階調法で行ない12
8階調で表現する。これは発熱体の熱エネルギーを時間
的に128段階に制御し、1印字ドットの最大発色範囲
内での転写インクの広がりを同心円状に変化させること
により行う。
The density gradation of the print pixels is obtained by the area gradation method which controls the area of the ink occupied in one print dot.
Expressed in 8 gradations. This is performed by controlling the thermal energy of the heating element in 128 steps in time and changing the spread of the transfer ink within the maximum coloring range of one print dot in a concentric manner.

【0033】また、特には図示しないがキー入力部がC
PU12に接続しており、電源をオン/オフする電源キ
ー、所望のビデオ画像を画像メモリ16に取り込むメモ
リキー、色、明度等を設定する印字設定キー、画像の拡
大(又は縮小)を指示する拡大キー、画像の回転(90
度回転)を指示する回転キー、印刷開始を指示する印字
スタートキー等各種の入力キーを備えている。CPU1
2は、これら入力キーからの入力信号の指示に基づいて
処理を行う。
Although not particularly shown, the key input section is C
It is connected to the PU 12, and a power key for turning the power on / off, a memory key for loading a desired video image into the image memory 16, a print setting key for setting color, brightness, etc., and an instruction for enlarging (or reducing) the image. Enlarge key, rotate image (90
Various input keys such as a rotation key for instructing rotation start and a print start key for instructing printing start are provided. CPU1
2 performs processing based on the instruction of the input signal from these input keys.

【0034】図2(a),(b) は、上記画像メモリ16の物
理的な実アドレスに対応する論理アドレス空間(以下、
画像メモリアドレス空間という)と本実施例における仮
想座標空間との関係を示したものである。同図(a) に示
す画像メモリアドレス空間は、画像データの左上を原点
として9ビット(b8〜b0)の値で表わされる列アド
レス「0」〜「29 −1」(0〜511)と8ビット
(b7〜b0)の値で表わされる行アドレス「0」〜
「28 −1」(0〜255)とで構成されている。つま
り、画像メモリアドレス空間の列アドレス0〜511
が、画像データの左端から右端に向けて増加し、行アド
レス0〜255が、画像データの上端から下端に向けて
増加する。すなわちアドレス座標軸のスケールが縦横同
一であるとすれば、横長のアドレス空間である。
2A and 2B show a logical address space (hereinafter referred to as a physical address space) corresponding to a physical real address of the image memory 16.
3 shows the relationship between the image memory address space) and the virtual coordinate space in this embodiment. The image memory address space shown in FIG. 9A has column addresses “0” to “2 9 −1” (0 to 511) represented by 9-bit (b8 to b0) values with the upper left of the image data as the origin. Row address "0" represented by 8-bit value (b7 to b0)
"2 8 -1" (0 to 255). That is, the column addresses 0 to 511 of the image memory address space
Increases from the left end to the right end of the image data, and the row addresses 0 to 255 increase from the upper end to the lower end of the image data. That is, if the scales of the address coordinate axes are the same vertically and horizontally, the address space is horizontally long.

【0035】これに対応する同図(b) に示す仮想座標空
間は、16ビット(b15〜b0)の値で表わされる仮
想列座標「0」〜「216−1」と15ビット(b14〜
b0)の値で表わされる仮想行座標「0」〜「215
1」とで構成され、同様に座標空間の左上を原点として
いる。したがって、この場合も、仮想列座標値は左端か
ら右端に向けて増加し、仮想行座標値は上端から下端に
向けて増加する。
Corresponding to this, the virtual coordinate space shown in FIG. 6B is a virtual column coordinate represented by a value of 16 bits (b15 to b0) "0" to "2 16 -1" and 15 bits (b14 to b0).
virtual row coordinates “0” to “2 15 − represented by the value of b0)
1 ”, and similarly, the upper left of the coordinate space is the origin. Therefore, also in this case, the virtual column coordinate value increases from the left end to the right end, and the virtual row coordinate value increases from the upper end to the lower end.

【0036】上記の仮想座標空間は、16ビット(b1
5〜b0)の仮想列座標の上位9ビット(b15〜b
7)が画像メモリアドレス空間の列アドレスを示してお
り、15ビット(b14〜b0)の仮想行座標の上位8
ビット(b14〜b7)が画像メモリアドレス空間の行
アドレスを示している。
The above virtual coordinate space has 16 bits (b1
The upper 9 bits (b15 to b) of the virtual column coordinates of 5 to b0)
7) indicates the column address of the image memory address space, and the upper 8 bits of the virtual row coordinates of 15 bits (b14 to b0).
Bits (b14 to b7) indicate the row address of the image memory address space.

【0037】図3に、この画像メモリアドレス空間と仮
想座標空間との対応関係を更に詳細に示す。同図は仮想
座標空間を一部拡大して示している。同図の黒点で示す
太い実線の交点は、仮想列座標の上位9ビット(b15
〜b7)で示される列座標「X−1」、「X」、「X+
1」、「X+2」と、仮想行座標の上位8ビット(b1
4〜b7)で示される行座標「Y−1」、「Y」、「Y
+1」、「Y+2」とからなる仮想座標空間を示してい
る。この仮想座標空間が上述したように画像メモリアド
レス空間に対応しており、同図の交点座標(黒点)に付
与されている記号a、b、c・・・n、o、pは、画像
メモリアドレス空間上の画像データ(輝度信号Y)を示
している。また、細い実線は、仮想列座標の下位6番目
〜4番目の3ビット(b6〜4b)で示される列座標
と、仮想行座標の下位6番目〜4番目の3ビット(b6
〜4b)で示される行座標とによる仮想座標空間を示し
ている。この細い実線で示される仮想座標空間に対応す
る画像データ例えばQは、同図のドットからの合成によ
って作成される。
FIG. 3 shows the correspondence relationship between the image memory address space and the virtual coordinate space in more detail. In the figure, a part of the virtual coordinate space is enlarged and shown. The intersections of the thick solid lines shown by the black dots in the figure are the upper 9 bits (b15
To b7) column coordinates "X-1", "X", "X +"
1 ”,“ X + 2 ”, and the upper 8 bits (b1
Row coordinates "Y-1", "Y", and "Y" indicated by 4 to b7).
A virtual coordinate space composed of "+1" and "Y + 2" is shown. This virtual coordinate space corresponds to the image memory address space as described above, and the symbols a, b, c ... N, o, p assigned to the intersection coordinates (black points) in the figure are the image memory. Image data (luminance signal Y) in the address space is shown. Also, the thin solid line indicates the column coordinates indicated by the lower 6th to 4th 3 bits (b6 to 4b) of the virtual column coordinates and the lower 6th to 4th 3 bits (b6) of the virtual row coordinates.
4b) and the row coordinates shown in FIG. The image data corresponding to the virtual coordinate space indicated by the thin solid line, for example, Q is created by combining the dots in FIG.

【0038】図4(a),(b) は、その合成処理、および、
この合成処理の前に行われるシャープネス処理を説明す
る図である。尚これらの処理は図1におけるシャープネ
ス処理回路18及び合成処理回路A,Bによって処理さ
れる。図4(a) は図3の点Qを中心として一部を再掲し
たもの、図4(b) は仮想列の下位4ビット(仮想列b3
〜b0)及び仮想行の下位4ビット(仮想列b3〜b
0)の座標空間(以下、範囲Aという)である。
FIGS. 4A and 4B show the synthesizing process and
It is a figure explaining the sharpness process performed before this synthetic | combination process. These processes are processed by the sharpness processing circuit 18 and the composition processing circuits A and B in FIG. FIG. 4 (a) is a part reprinted around the point Q in FIG. 3, and FIG. 4 (b) is the lower 4 bits of the virtual column (virtual column b3).
~ B0) and the lower 4 bits of the virtual row (virtual columns b3 to b3)
0) coordinate space (hereinafter referred to as range A).

【0039】同図(a) の図において点Qは画像メモリの
画素データf,g,j,kの内側にある。この点Qの合
成データを得るためには、その合成のために先ず画像メ
モリの画素データf,g,j,kの各々の位置における
シャープネス処理計算を行い、シャープネス処理後のデ
ータF,G,J,Kを得る。但しシャープネス処理後の
データF,G,J,Kの位置はそれぞれ画像メモリの画
素データf,g,j,kの位置と同じである。図1のシ
ャープネス処理回路18は、上記シャープネス処理後の
データF,G,J,Kを得るために以下に示す計算を行
っている。
In the figure (a), the point Q is inside the pixel data f, g, j, k of the image memory. In order to obtain the combined data of the point Q, first, for the combination, the sharpness processing calculation is performed at each position of the pixel data f, g, j, k of the image memory, and the sharpened data F, G, Get J and K. However, the positions of the data F, G, J, and K after the sharpness processing are the same as the positions of the pixel data f, g, j, and k of the image memory, respectively. The sharpness processing circuit 18 in FIG. 1 performs the following calculations to obtain the data F, G, J, K after the above sharpness processing.

【0040】F=f+α(4f−b−e−g−j) G=g+α(4g−c−f−h−k) J=j+α(4j−f−i−k−n) K=k+α(4k−g−j−l−o) 但しαはシャープネスレベルを表わす変数であり、0〜
1の値を採る。
F = f + α (4f-b-e-g-j) G = g + α (4g-c-f-h-k) J = j + α (4j-f-i-k-n) K = k + α (4k -G-j-l-o) where α is a variable representing the sharpness level, and 0 to
Take a value of 1.

【0041】これら一連の計算を行うために必要な画素
データは、図3に示す画素データの中のb,c,e,
f,g,h,i,j,k,l,n,oの12画素であ
る。図1におけるアドレス生成回路は、これら12画素
のデータを得るための複数のアドレス情報を順番に画素
メモリに供給するためのものである。つまり、仮想列の
上位9ビット(仮想列b15〜b7)をx、仮想行の上
位8ビット(仮想行b14〜b7)をyとするとき、b
(y−1,x),c(y−1,x+1),e(y,x−
1),f(y,x),g(y,x+1),h(y,x+
2),i(y+1,x−1),j(y+1,x),k
(y+1,x+1),l(y+1,x+2),n(y+
2,x),o(y+2,x+1)の各画素データが画像
メモリから順番に読み出される。但しここでいうf
(y,x)とは、行アドレスy、列アドレスxでアドレ
スされる画素データfを表わす。
Pixel data necessary for performing these series of calculations are b, c, e, and the like in the pixel data shown in FIG.
There are 12 pixels of f, g, h, i, j, k, l, n, and o. The address generation circuit in FIG. 1 is for sequentially supplying a plurality of address information for obtaining the data of these 12 pixels to the pixel memory. That is, when the upper 9 bits of the virtual column (virtual columns b15 to b7) are x and the upper 8 bits of the virtual row (virtual rows b14 to b7) are y, b
(Y-1, x), c (y-1, x + 1), e (y, x-
1), f (y, x), g (y, x + 1), h (y, x +
2), i (y + 1, x-1), j (y + 1, x), k
(Y + 1, x + 1), l (y + 1, x + 2), n (y +
2, x) and o (y + 2, x + 1) pixel data are sequentially read from the image memory. However, f here
(Y, x) represents pixel data f addressed by a row address y and a column address x.

【0042】上記シャープネス処理が行われた後、次
に、図1の合成処理回路A(19)は、これらシャープ
ネス処理後の4点F,G,J,Kのデータを入力とし、
以下に示す合成計算を行い、合成輝度出力Y′である点
Qのデータを得る。
After the above sharpness processing is performed, the synthesizing processing circuit A (19) in FIG. 1 receives the data of these four points F, G, J, and K after the sharpness processing as input,
The following composite calculation is performed to obtain the data of the point Q which is the composite luminance output Y '.

【0043】U=F(8−β)/8+J(β/8)=
{F(8−β)+J・β}/8 V=G(8−β)/8+K(β/8)={G(8−β)
+K・β}/8 Q=U(8−γ)/8+V(γ/8)={U(8−γ)
+V・γ}/8 但し、βは仮想行のビット6〜ビット4(仮想行b6〜
b4)による0から7までの値をとる仮想行方向の合成
パラメータであり、またγは仮想列のビット6〜ビット
4(仮想列b6〜b4)による0から7までの値をとる
仮想列方向の合成パラメータである。
U = F (8-β) / 8 + J (β / 8) =
{F (8-β) + J · β} / 8 V = G (8-β) / 8 + K (β / 8) = {G (8-β)
+ K · β} / 8 Q = U (8−γ) / 8 + V (γ / 8) = {U (8−γ)
+ V · γ} / 8 where β is bit 6 to bit 4 of the virtual row (virtual row b6 to
b4) is a synthesis parameter in the virtual row direction that takes values from 0 to 7, and γ is a virtual column direction that takes values from 0 to 7 in bits 6 to 4 of the virtual column (virtual columns b6 to b4). Is a synthetic parameter of.

【0044】仮想座標空間の仮想列、仮想行が図4(b)
に示す仮想座標上の点X(仮想座標空間の最少単位の座
標点)を指している場合、この合成データは点Qのデー
タを採用する。これは、図4(b) の範囲Aの中のデータ
を全て点Qのデータに代替させることを意味する。その
理由は、範囲Aの中の全ての点のデータとして点Qのデ
ータを採用しても、印刷出力の品質に対して必要充分な
精度が得られるからである。
Virtual columns and rows of the virtual coordinate space are shown in FIG. 4 (b).
When pointing to the point X on the virtual coordinates (the coordinate point of the minimum unit in the virtual coordinate space) shown in, the synthetic data adopts the data of the point Q. This means that all the data in the range A of FIG. 4 (b) is replaced with the data of the point Q. The reason is that even if the data of the point Q is adopted as the data of all the points in the range A, the necessary and sufficient accuracy for the quality of the print output can be obtained.

【0045】一般に、合成は図5に示す方法によって実
行される。同図を用いて合成についてさらに説明する。
同図において、点a,b,c,dに画像データa,b,
c,dがあるとき点qのデータqを求める方法は以下の
方法によっている。尚、同図の画像データa,b,c,
d、及び合成データqは、図4(a) のシャープネス処理
後の画像データF,G,J,K、及び合成データQに対
応している。
In general, the composition is performed by the method shown in FIG. The synthesis will be further described with reference to FIG.
In the figure, image data a, b, and
The method for obtaining the data q at the point q when there are c and d is as follows. The image data a, b, c,
d and the composite data q correspond to the image data F, G, J, K after the sharpness processing and the composite data Q in FIG.

【0046】図5において、点a点b間をn分割して、
その点a点b間のXアドレスを0、1、2〜nとし、点
a点c間をm分割して、その点a点c間のYアドレスを
0、1、2〜mとして、Xアドレスがx、Yアドレスが
yのデータをp[x,y]で表わすものとする。
In FIG. 5, the point a and the point b are divided into n,
The X address between the points a and b is set to 0, 1, 2 to n, the point a to the point c is divided into m, and the Y address between the points a and c is set to 0, 1, 2 to m, and X is set. Data having an address of x and a Y address of y is represented by p [x, y].

【0047】先ず図のように点i及び点jを置くと、そ
れらの点のデータi及びjは、 i=p[x,0]=a(n−x)/n+b・x/n j=p[x,m]=c(n−x)/n+d・x/n として得られ、これより点qのデータqは、 q=p[x,y]=i(m−y)/m+j・y/m で得られる。ここで、n=8、m=8、0≦x≦7、0
≦y≦7(但しx、yはともに整数)とすると、データ
i、j、q はそれぞれ、 i=p[x,0]={a(8−x)+b・x}/8 j=p[x,8]={c(8−x)+d・x}/8 q=p[x,y]={i(8−y)+j・y}/8 となる。尚、上記中間データi及びjは、図4(a) のデ
ータU、Vに対応している(但し座標X、Yが上記図5
と図4(a) では入れ代わっている)。そして前述した図
4(a) のデータU、V、及びQの算出式は、上記の一般
式によっている。
First, when points i and j are placed as shown in the figure, the data i and j at those points are i = p [x, 0] = a (n-x) /n+b.x/n j = p [x, m] = c (n−x) / n + d · x / n, from which the data q at the point q is q = p [x, y] = i (m−y) / m + j · It is obtained in y / m 2. Here, n = 8, m = 8, 0 ≦ x ≦ 7, 0
If ≦ y ≦ 7 (where x and y are both integers), the data i, j, and q are i = p [x, 0] = {a (8−x) + b · x} / 8 j = p, respectively. [X, 8] = {c (8−x) + d · x} / 8 q = p [x, y] = {i (8−y) + j · y} / 8. The intermediate data i and j correspond to the data U and V in FIG. 4A (where the coordinates X and Y are the same as those in FIG. 5).
And in Fig. 4 (a) they are replaced). The formulas for calculating the data U, V, and Q in FIG. 4A described above are based on the above general formula.

【0048】また、上記3式は、以下の3式に変形する
ことができる。すなわち、 i=(a+i0 +2i1 +4i2 )/8 j=(c+j0 +2j1 +4j2 )/8 q=(i+q0 +2q1 +4q2 )/8 但し、in 、jn 、qn (n=0、1、2)はx、yに
従って図6(a),(b) の図表に示す値をとる。
Further, the above three expressions can be transformed into the following three expressions. That is, i = (a + i 0 + 2i 1 + 4i 2 ) / 8 j = (c + j 0 + 2j 1 + 4j 2 ) / 8 q = (i + q 0 + 2q 1 + 4q 2 ) / 8 where i n , j n , and q n (n = 0, 1, 2) takes the values shown in the charts of FIGS. 6 (a) and 6 (b) according to x and y.

【0049】図7は、これらの式に基づいて演算を行う
合成処理回路A(19)の順序回路である。同図におい
て、マルチプレクサ31、32、及び33は、選択信号
端子sに入力する2ビットのコントロール信号sに基づ
いて入力端子0、1、及び2に入力する信号(データ)
を選択し、その選択したデータを出力端子Yから出力す
る。マルチプレクサ31の入力端子0、1、及び2には
8ビットの画像データa、c、及びフィードバックされ
た8ビットの中間合成データvが夫々入力する。また、
マルチプレクサ32の入力端子0、1、及び2には同じ
く8ビットの画像データb、d、及びフィードバックさ
れた8ビットの中間合成データuが夫々入力する。そし
て、マルチプレクサ33の入力端子0、及び1には3ビ
ットのアドレスデータx、及びyが夫々入力する。この
アドレスデータx、及びyは、それぞれ図4(a) に説明
した仮想列の中間3ビット(b6〜b4)及び仮想行の
中間3ビット(b6〜b4)に対応している。
FIG. 7 shows a sequential circuit of the synthesis processing circuit A (19) which performs an operation based on these expressions. In the figure, multiplexers 31, 32, and 33 are signals (data) input to input terminals 0, 1, and 2 based on a 2-bit control signal s input to a selection signal terminal s.
Is selected, and the selected data is output from the output terminal Y. The 8-bit image data a and c and the fed back 8-bit intermediate composite data v are input to the input terminals 0, 1 and 2 of the multiplexer 31, respectively. Also,
Similarly, 8-bit image data b and d and fed-back 8-bit intermediate synthetic data u are input to the input terminals 0, 1, and 2 of the multiplexer 32, respectively. Then, 3-bit address data x and y are input to the input terminals 0 and 1 of the multiplexer 33, respectively. The address data x and y correspond to the middle 3 bits (b6 to b4) of the virtual column and the middle 3 bits (b6 to b4) of the virtual row described in FIG. 4A, respectively.

【0050】上記のマルチプレクサ34、35、及び3
6は、選択信号端子sにマルチプレクサ33から入力す
るアドレスデータwに基づいて、上記マルチプレクサ3
1及び32から入力端子0、及び1に夫々入力するデー
タを選択し、その選択したデータを出力端子Yから出力
する。
The multiplexers 34, 35 and 3 described above
Reference numeral 6 denotes the multiplexer 3 based on the address data w input from the multiplexer 33 to the selection signal terminal s.
Data to be input to the input terminals 0 and 1 are selected from 1 and 32, and the selected data is output from the output terminal Y.

【0051】ビットシフタ37は、マルチプレクサ36
から入力する8ビットのデータの最下位ビットの下に1
ビットの「0」を付加して、即ち入力データを2倍にし
た9ビットのデータを出力する。加算器38は、マルチ
プレクサ31からの入力データにマルチプレクサ34か
らの入力データを加算した9ビットのデータを出力す
る。加算器39は、マルチプレクサ35からの入力デー
タにビットシフタ37からの入力データを加算した10
ビットのデータを出力する。
The bit shifter 37 includes a multiplexer 36.
1 under the least significant bit of 8-bit data input from
Bit "0" is added, that is, 9-bit data obtained by doubling the input data is output. The adder 38 adds the input data from the multiplexer 31 to the input data from the multiplexer 31 and outputs 9-bit data. The adder 39 adds the input data from the multiplexer 35 to the input data from the bit shifter 37 to obtain 10
Outputs bit data.

【0052】ビットシフタ40は、加算器39から入力
する10ビットのデータの最下位ビットの下に1ビット
の「0」を付加して入力データを2倍にした11ビット
のデータを出力する。加算器41は、加算器38からの
入力データにビットシフタ40からの入力データを加算
して出力する。ビットシフタ42は、加算器41から入
力する11ビットのデータの上位8ビットを取り出し
て、即ち入力データを1/8にして出力する。このビッ
トシフタ42の出力はラッチ43に入力する。ラッチ4
3は8個のDFFで構成されており、その出力はラッチ
44に入力すると共に、マルチプレクサ32の入力端子
2にフィードバックされる。そしてラッチ44も同様に
8個のDFFで構成され、その出力はマルチプレクサ3
1の入力端子2フィードバックされる。
The bit shifter 40 outputs 11-bit data obtained by doubling the input data by adding 1-bit "0" under the least significant bit of the 10-bit data input from the adder 39. The adder 41 adds the input data from the adder 38 to the input data from the bit shifter 40 and outputs the result. The bit shifter 42 takes out the upper 8 bits of the 11-bit data input from the adder 41, that is, outputs the input data as ⅛. The output of the bit shifter 42 is input to the latch 43. Latch 4
3 is composed of eight DFFs, the output of which is input to the latch 44 and fed back to the input terminal 2 of the multiplexer 32. The latch 44 is also composed of eight DFFs, and its output is the multiplexer 3
1 input terminal 2 is fed back.

【0053】図8は、上記構成の順序回路の動作を説明
するタイミングチャートである。同図において、上述し
た2ビット構成のコトロール信号sは、上位ビットがs
1、下位ビットがs0である。このコントロール信号s
は、タイミングT0で「0」、タイミングT1で
「1」、そしてタイミングT2で「2」になる(図8
(b) 参照)。また、クロック信号ckは、同期クロック
であり、このクロック信号ckの立ち上がり(図8(a)
のr1、r2、r3参照)に同期してこの順序回路が動
作する。以下、図8のタイムチャートを参照しながら、
図7の順序回路の動作を説明する。
FIG. 8 is a timing chart for explaining the operation of the sequential circuit having the above configuration. In the figure, in the control signal s having the 2-bit configuration described above, the upper bits are s.
1, the lower bit is s0. This control signal s
Becomes "0" at timing T0, "1" at timing T1 and "2" at timing T2 (FIG. 8).
(See (b)). The clock signal ck is a synchronous clock, and the rising edge of this clock signal ck (see FIG. 8 (a)).
(See r1, r2, r3) of FIG. Below, referring to the time chart of FIG.
The operation of the sequential circuit of FIG. 7 will be described.

【0054】先ず、タイミングT0ではコントロール信
号s=0である(図8(b),(c),(d)参照)。この信号s
=0では、マルチプレクサ31はデータaを選択して出
力し、マルチプレクサ32はデータbを選択して出力
し、そしてマルチプレクサ33はアドレスデータxを選
択して出力wとする(図8(e),(f),(g) 参照)。
First, at timing T0, the control signal s = 0 (see FIGS. 8 (b), 8 (c) and 8 (d)). This signal s
= 0, the multiplexer 31 selects and outputs the data a, the multiplexer 32 selects and outputs the data b, and the multiplexer 33 selects the address data x and outputs it as the output w (FIG. 8 (e), (See (f) and (g)).

【0055】上記3ビットの値「0」(000)、
「1」(001)、「2」(010)、「3」(01
1)、「4」(100)、「5」(101)、「6」
(110)、及び「7」(111)をとるアドレスデー
タxの最上位ビットをw2、中央ビットをw1、最下位
ビットをw0とする。これらのビットデータw0、w
1、w2はそれぞれマルチプレクサ34、35、36の
各選択信号端子に入力する。
The 3-bit value "0" (000),
"1" (001), "2" (010), "3" (01
1), "4" (100), "5" (101), "6"
It is assumed that the most significant bit of the address data x taking (110) and “7” (111) is w2, the central bit is w1, and the least significant bit is w0. These bit data w0, w
1 and w2 are input to the selection signal terminals of the multiplexers 34, 35 and 36, respectively.

【0056】マルチプレクサ34は、選択信号端子に入
力するアドレスデータxの最下位ビットw0により入力
データa、bを選択する。即ちビットw0が「0」のと
き、つまりアドレスデータxが「0」、「2」、
「4」、「6」の何れかのときデータaを選択して出力
し、ビットw0が「1」のとき、すなわちアドレスデー
タxが「1」、「3」、「5」、「7」の何れかのとき
データbを選択して出力する。これは図6(a) に示す図
表(表1)におけるデータi0 である(図8(h) も参
照)。
The multiplexer 34 selects the input data a, b according to the least significant bit w0 of the address data x input to the selection signal terminal. That is, when the bit w0 is "0", that is, the address data x is "0", "2",
When either "4" or "6", the data a is selected and output, and when the bit w0 is "1", that is, the address data x is "1", "3", "5", "7". In either case, the data b is selected and output. This is the data i 0 in the chart (Table 1) shown in FIG. 6 (a) (see also FIG. 8 (h)).

【0057】同様にマルチプレクサ35は、選択信号端
子に入力するアドレスデータxの中央ビットw1により
入力データa、bを選択する。即ちビットw1が「0」
のとき、つまりアドレスデータxが「0」、「1」、
「4」、「5」の何れかのときデータaを選択して出力
し、ビットw1が「1」のとき、つまりアドレスデータ
xが「2」、「3」、「6」、「7」の何れかのときデ
ータbを選択して出力する。これは図6(a) に示す図表
(表1)におけるi1 である(図8(i) も参照)。
Similarly, the multiplexer 35 selects the input data a, b according to the central bit w1 of the address data x input to the selection signal terminal. That is, the bit w1 is "0"
, That is, when the address data x is “0”, “1”,
When either "4" or "5", the data a is selected and output, and when the bit w1 is "1", that is, the address data x is "2", "3", "6", "7". In either case, the data b is selected and output. This is i 1 in the chart (Table 1) shown in FIG. 6 (a) (see also FIG. 8 (i)).

【0058】更に同様にマルチプレクサ36は、選択信
号端子に入力するアドレスデータxの最上位ビットw2
により入力データa、bを選択する。マルチプレクサ3
6は、ビットw2が「0」のとき、つまりアドレスデー
タxが「0」、「1」、「2」、「3」の何れかのとき
データaを選択して出力し、ビットw2が「1」のと
き、つまりアドレスデータxが「4」、「5」、
「6」、「7」の何れかのときデータbを選択して出力
する。これは図6(a) に示す図表(表1)におけるi2
である(図8(j) も参照)。
Further, similarly, the multiplexer 36 uses the most significant bit w2 of the address data x input to the selection signal terminal.
The input data a and b are selected by. Multiplexer 3
6 outputs the data a when the bit w2 is "0", that is, when the address data x is "0", "1", "2", or "3", and the bit w2 is "0". 1 ”, that is, the address data x is“ 4 ”,“ 5 ”,
When either "6" or "7", the data b is selected and output. This is i 2 in the chart (Table 1) shown in FIG. 6 (a).
(See also Fig. 8 (j)).

【0059】そして、ビットシフタ37は「2i2 」を
出力し、加算器38は「a+i0 」を出力し、加算器3
9は「i1 +2i2 」を出力し、ビットシフタ40は
「2i 1 +4i2 」を出力し、加算器41は「a+i0
+2i1 +4i2 」を出力し、そしてビットシフタ42
は「(a+i0 +2i1 +4i2 )/8」すなわち
「i」を出力する(以上、図8(k) 〜(p) 参照)。
Then, the bit shifter 37 displays "2i2"
And the adder 38 outputs "a + i0Is output, and the adder 3
9 is "i1+ 2i2Is output, and the bit shifter 40
"2i 1+ 4i2Is output, and the adder 41 outputs “a + i0
+ 2i1+ 4i2, And the bit shifter 42
Is "(a + i0+ 2i1+ 4i2) / 8 ”
“I” is output (see FIGS. 8 (k) to 8 (p)).

【0060】ラッチ43は、上記ビットシフタ42の出
力iをクロックckの立ち上がりr1で記憶する(図8
(q) 参照)。次に、タイミングT1では、コントロール
信号s=1になる(図8(b),(c),(d) 参照)。この信号
s=1では、マルチプレクサ31はデータcを選択して
出力し、マルチプレクサ32はデータdを選択して出力
し、マルチプレクサ33は引き続きアドレスデータxを
出力する(図8(e),(f),(g) 参照)。
The latch 43 stores the output i of the bit shifter 42 at the rising edge r1 of the clock ck (FIG. 8).
(See (q)). Next, at timing T1, the control signal s = 1 (see FIGS. 8 (b), (c), and (d)). With this signal s = 1, the multiplexer 31 selects and outputs the data c, the multiplexer 32 selects and outputs the data d, and the multiplexer 33 continues to output the address data x (FIGS. 8E, 8F). ), (g)).

【0061】マルチプレクサ34は、選択信号端子に入
力するアドレスデータxの最下位ビットw0が「0」
(アドレスデータxが「0」、「2」、「4」、「6」
の何れか)のときデータcを選択して出力し、ビットw
0が「1」(アドレスデータxが「1」、「3」、
「5」、「7」の何れか)のときデータdを選択して出
力する。これは図6(a) に示す図表(表1)におけるデ
ータj0 である(図8(h) も参照)。
In the multiplexer 34, the least significant bit w0 of the address data x input to the selection signal terminal is "0".
(Address data x is "0", "2", "4", "6"
In either case), the data c is selected and output, and the bit w
0 is “1” (address data x is “1”, “3”,
When either "5" or "7"), the data d is selected and output. This is the data j 0 in the chart (Table 1) shown in FIG. 6 (a) (see also FIG. 8 (h)).

【0062】同様にマルチプレクサ35は、選択信号端
子に入力するアドレスデータxの中央ビットw1が
「0」(アドレスデータxが「0」、「1」、「4」、
「5」の何れか)のときデータcを選択して出力し、ビ
ットw1が「1」(アドレスデータxが「2」、
「3」、「6」、「7」の何れか)のときデータdを選
択して出力する。これは図6(a) に示す図表(表1)に
おけるj1 である(図8(i) も参照)。
Similarly, in the multiplexer 35, the central bit w1 of the address data x input to the selection signal terminal is "0" (the address data x is "0", "1", "4",
When it is "5", the data c is selected and output, and the bit w1 is "1" (address data x is "2",
When any of "3", "6", and "7"), the data d is selected and output. This is j 1 in the chart (Table 1) shown in FIG. 6 (a) (see also FIG. 8 (i)).

【0063】更に同様にマルチプレクサ36は、選択信
号端子に入力するアアドレスデータxの最上位ビットw
2が「0」(アドレスデータxが「0」、「1」、
「2」、「3」の何れか)のときデータcを選択して出
力し、ビットw2が「1」(アドレスデータxが
「4」、「5」、「6」、「7」の何れか)のときデー
タdを選択して出力する。これは図6(a) に示す図表
(表1)におけるj2 である(図8(j) も参照)。
Further, similarly, the multiplexer 36 has the most significant bit w of the address data x input to the selection signal terminal.
2 is “0” (address data x is “0”, “1”,
When it is "2" or "3"), the data c is selected and output, and the bit w2 is "1" (the address data x is "4", "5", "6", or "7"). Or), the data d is selected and output. This is j 2 in the chart (Table 1) shown in FIG. 6 (a) (see also FIG. 8 (j)).

【0064】そして、ビットシフタ37は「2j2 」、
加算器38は「c+j0 」、加算器39は「j1 +2j
2 」、ビットシフタ40は「2j1 +4j2 」、加算器
41は「c+j0 +2j1 +4j2 」、及びビットシフ
タ42は「(c+j0 +2j 1 +4j2 )/8」すなわ
ち「j」をそれぞれ出力する(以上、図8(k) 〜(p)参
照)。
Then, the bit shifter 37 outputs "2j2",
The adder 38 uses “c + j0, And the adder 39 uses “j1+ 2j
2, The bit shifter 40 reads "2j1+ 4j2], Adder
41 is “c + j0+ 2j1+ 4j2], And Bitsiff
Data 42 is "(c + j0+ 2j 1+ 4j2) / 8 ”
Output "j" respectively (See Fig. 8 (k)-(p) for the above.
See).

【0065】ラッチ43は、クロックckの立ち上がり
r2で、それまで記憶していたデータiをタッチ44に
転送して、新たに上記ビットシフタ42の出力jを記憶
する(図8(q),(r) 参照)。
At the rising edge r2 of the clock ck, the latch 43 transfers the data i stored until then to the touch 44 and newly stores the output j of the bit shifter 42 (FIGS. 8 (q), (r )).

【0066】このクロックckの立ち上がりr2直後に
おけるラッチ43の出力u及びラッチ44の出力vは、
それぞれ、u=(c+j0 +2j1 +4j2 )/8=
j、及びv=(a+i0 +2i1 +4i2 )/8=i、
であり、それぞれマルチプレクサ32及び31の入力端
子2に入力する。
Immediately after the rising edge r2 of the clock ck, the output u of the latch 43 and the output v of the latch 44 are
U = (c + j 0 + 2j 1 + 4j 2 ) / 8 =
j, and v = (a + i 0 + 2i 1 + 4i 2 ) / 8 = i,
And input to the input terminals 2 of the multiplexers 32 and 31, respectively.

【0067】そして、次のタイミングT2では、コント
ロール信号s=2になり(図8(b),(c),(d) 参照)、こ
の信号s=2で、マルチプレクサ31はラッチ44の出
力v、即ちiを選択して出力し、マルチプレクサ32は
ラッチ43の出力u、即ちjを選択して出力し、マルチ
プレクサ33はアドレスデータyを出力する(図8(e),
(f),(g) 参照)。
Then, at the next timing T2, the control signal s = 2 (see FIGS. 8 (b), (c) and (d)), and the multiplexer 31 outputs the output v of the latch 44 at this signal s = 2. , I is selected and output, the multiplexer 32 selects and outputs the output u of the latch 43, that is, j, and the multiplexer 33 outputs address data y (FIG. 8 (e),
(See (f) and (g)).

【0068】マルチプレクサ34は、選択信号端子に入
力するアドレスデータyの最下位ビットw0が「0」
(アドレスデータyが「0」、「2」、「4」、「6」
の何れか)のときデータiを選択して出力し、ビットw
0が「1」(アドレスデータxが「1」、「3」、
「5」、「7」の何れか)のときデータjを選択して出
力する。これは図6(b) に示す図表(表2)におけるデ
ータq0 である(図8(h) も参照)。
In the multiplexer 34, the least significant bit w0 of the address data y input to the selection signal terminal is "0".
(Address data y is "0", "2", "4", "6"
In either case), data i is selected and output, and bit w
0 is “1” (address data x is “1”, “3”,
When either "5" or "7"), the data j is selected and output. This is the data q 0 in the chart (Table 2) shown in FIG. 6 (b) (see also FIG. 8 (h)).

【0069】同様にマルチプレクサ35は、選択信号端
子に入力するアドレスデータyの中央ビットw1が
「0」(アドレスデータyが「0」、「1」、「4」、
「5」の何れか)のときデータiを選択して出力し、ビ
ットw1が「1」(アドレスデータyが「2」、
「3」、「6」、「7」の何れか)のときデータjを選
択して出力する。これは図6(b) に示す図表(表2)に
おけるq1 である(図8(i) も参照)。
Similarly, in the multiplexer 35, the central bit w1 of the address data y input to the selection signal terminal is "0" (the address data y is "0", "1", "4",
When it is "5", the data i is selected and output, and the bit w1 is "1" (address data y is "2",
When any of "3", "6", and "7"), the data j is selected and output. This is q 1 in the chart (Table 2) shown in FIG. 6 (b) (see also FIG. 8 (i)).

【0070】更に同様にマルチプレクサ36は、選択信
号端子に入力するアアドレスデータyの最上位ビットw
2が「0」(アドレスデータyが「0」、「1」、
「2」、「3」の何れか)のときデータiを選択して出
力し、ビットw2が「1」(アドレスデータyが
「4」、「5」、「6」、「7」の何れか)のときデー
タjを選択して出力する。これは図6(b) に示す図表
(表2)におけるq2 である(図8(j) も参照)。
Further, similarly, the multiplexer 36 outputs the most significant bit w of the address data y input to the selection signal terminal.
2 is “0” (address data y is “0”, “1”,
When it is "2" or "3"), the data i is selected and output, and the bit w2 is "1" (the address data y is "4", "5", "6", or "7"). Or), the data j is selected and output. This is q 2 in the chart (Table 2) shown in FIG. 6 (b) (see also FIG. 8 (j)).

【0071】そして、ビットシフタ37は「2q2 」、
加算器38は「c+q0 」、加算器39は「q1 +2q
2 」、ビットシフタ40は「2q1 +4q2 」、加算器
41は「i+q0 +2q1 +4q2 」、及びビットシフ
タ42は「(i+q0 +2q 1 +4q2 )/8」すなわ
ち「q」をそれぞれ出力する(以上、図8(k) 〜(p)参
照)。
Then, the bit shifter 37 outputs "2q2",
The adder 38 uses “c + q0, And the adder 39 displays “q1+ 2q
2, And the bit shifter 40 is "2q1+ 4q2], Adder
41 is “i + q0+ 2q1+ 4q2], And Bitsiff
42 is “(i + q0+ 2q 1+ 4q2) / 8 ”
Output "q" respectively (See Fig. 8 (k)-(p) for the above.
See).

【0072】ラッチ43は、クロックckの立ち上がり
r3で、ビットシフタ42の出力qを記憶する(図8
(q),(r) 参照)。このクロックckの立ち上がりr3直
後におけるラッチ43の出力uは、u=(i+q0 +2
1 +4q2 )/8=q、である。ラッチ43は、この
データqを合成処理データuとして出力する。これが合
成処理回路A(又はB)の出力である。このように仮想
座標空間上の任意の座標位置に、画像メモリアドレス空
間の画像データに基づく合成処理済みデータが得られ
る。この仮想座標空間の合成処理済み画像データによっ
て、図1の画像処理回路・印刷制御回路21は、印刷用
の印字データを作成する。この印字データによる印刷画
像は、本実施例においては、「回転指示無し」と「回転
指示有り」の二通りの態様で印字される。
The latch 43 stores the output q of the bit shifter 42 at the rising edge r3 of the clock ck (see FIG. 8).
(See (q) and (r)). Immediately after the rising edge r3 of the clock ck, the output u of the latch 43 is u = (i + q 0 +2
q 1 + 4q 2 ) / 8 = q. The latch 43 outputs this data q as combined processing data u. This is the output of the synthesis processing circuit A (or B). In this way, the composited data based on the image data in the image memory address space can be obtained at any coordinate position in the virtual coordinate space. The image processing circuit / printing control circuit 21 in FIG. 1 creates print data for printing based on the combined image data in the virtual coordinate space. In the present embodiment, the print image based on this print data is printed in two modes: "no rotation instruction" and "rotation instruction".

【0073】図9(a) は上記の回転指示無しの場合の印
字状態を示しており、同図(b) は回転指示有りの場合の
印字状態を示している。この回転指示が有る場合は、回
転指示が無い場合の画像データが反時計回り方向に90
度回転した状態で印字出力される。
FIG. 9A shows the printing state when there is no rotation instruction, and FIG. 9B shows the printing state when there is rotation instruction. When there is this rotation instruction, the image data when there is no rotation instruction is 90% counterclockwise.
Printed in a rotated state.

【0074】用紙の印字面は、同図のように横長に置い
た状態で、その縦と横の方向が画像データの縦と横の方
向にそのまま対応する。そして実際の印字出力では用紙
の幅方向(図の上下方向)に印字動作の主走査が行わ
れ、用紙の長手方向(図の横方向)に印字動作の副走査
(用紙送り)が行われる。
As shown in the figure, the printing surface of the paper is in a horizontally long state, and the vertical and horizontal directions thereof correspond to the vertical and horizontal directions of the image data. In actual print output, the main scanning of the printing operation is performed in the width direction of the paper (vertical direction in the drawing), and the sub-scanning (paper feeding) of the printing operation is performed in the longitudinal direction of the paper (horizontal direction in the drawing).

【0075】したがって、同図(a) に示すように回転指
示が無い場合は、印刷データ作成時において、印字動作
の主走査方向に合わせて読み出す画像データの読み出し
主走査方向は画像メモリアドレス空間の下から上方向に
なり、同じく副走査方向は画像メモリアドレス空間の左
から右方向になる。即ち、画像データ読み出しの主走査
方向の向きは、画像メモリアドレス空間の行座標、従っ
て仮想座標空間の仮想行座標の向きと逆であり、同じく
副走査方向の向きは、画像メモリアドレス空間の列座
標、したがって仮想列座標の向きと同じになる。
Therefore, as shown in FIG. 8A, when there is no rotation instruction, the read main scanning direction of the image data read in accordance with the main scanning direction of the printing operation is the image memory address space when the print data is created. Similarly, the sub-scanning direction is from left to right in the image memory address space. That is, the direction of the main scanning direction of the image data reading is opposite to the row coordinate of the image memory address space, and thus the direction of the virtual row coordinate of the virtual coordinate space. Similarly, the direction of the sub scanning direction is the column of the image memory address space. Coordinates, and hence the orientation of the virtual column coordinates.

【0076】また、同図(b) に示すように回転指示が有
る場合は、印刷データ作成時において、印字動作の主走
査方向に合わせて読み出す画像データの読み出し主走査
方向は、画像メモリの左から右方向であり、副走査方向
は上から下方向である。つまり、主走査方向の向きは仮
想列座標の向きと同じであり、副走査方向の向きも仮想
行座標の向きと同じである。
When there is a rotation instruction as shown in FIG. 6B, the read main scanning direction of the image data read in accordance with the main scanning direction of the printing operation is the left side of the image memory when the print data is created. To the right, and the sub-scanning direction is from top to bottom. That is, the orientation in the main scanning direction is the same as the orientation in the virtual column coordinates, and the orientation in the sub-scanning direction is also the same as the orientation in the virtual row coordinates.

【0077】図10に、上記印刷画像に回転指示が無い
場合における、この印刷画像の画素と仮想座標との対応
関係を示す。以下、印刷画像のアスペクト比(たてよこ
比)が一定に保たれている、即ち印刷画像が画像ソース
に対して縦長や横長にならない場合の例について説明す
る。
FIG. 10 shows the correspondence between the pixels of the print image and the virtual coordinates when there is no rotation instruction in the print image. Hereinafter, an example will be described in which the aspect ratio (vertical / horizontal ratio) of the print image is kept constant, that is, the print image is not vertically or horizontally long with respect to the image source.

【0078】上述したように回転指示が無い場合は仮想
座標に対する主走査方向は下から上方向であり副走査方
向は右から左方向である。従って、ユーザインタフェー
スからの入力による設定に基づいて画像メモリアドレス
空間から切り出される画像データ領域の、左下角の画素
に対応する仮想座標51を走査の原点とし、この仮想座
標51に走査アドレスとしての初期値を設定する。ここ
で、主走査方向の画像データを、原点51から副走査番
号が0番の主走査方向にデータa0 、b0 、c 0
0 、・・・、次の副走査番号1番の主走査方向にデー
タa1 、b1 、c1、d1 、・・・、更に次の副走査番
号2番の主走査方向にデータa2 、b2 、c 2 、d2
・・・であるとする。
As described above, when there is no rotation instruction, it is virtual
The main scanning direction for the coordinates is from bottom to top, and the sub-scanning direction
The direction is from right to left. Therefore, the user interface
Image memory address based on the setting by input from
The pixel in the lower left corner of the image data area cut out from space
The virtual coordinate 51 corresponding to
An initial value as a scanning address is set in the mark 51. here
Image data in the main scanning direction from the origin 51 to the sub scanning number.
No. 0 is data a in the main scanning direction0, B0, C 0,
d0, ..., in the main scanning direction of the next sub-scan number 1
A1, B1, C1, D1,,,,, the next sub-scan number
Data a in the main scanning direction of No. 22, B2, C 2, D2,
...

【0079】これら印刷画像の画素データ配置に対応す
る仮想座標空間の行間隔及び列間隔は、画像の拡大率が
決まれば、印字主走査方向及び印字副走査方向の最大印
刷画素数によって自動的に定まる値をとる。
The line spacing and the column spacing of the virtual coordinate space corresponding to the pixel data arrangement of these print images are automatically determined by the maximum number of print pixels in the print main scanning direction and the print sub scanning direction if the image enlargement ratio is determined. Takes a fixed value.

【0080】ところで、同図に示すように、本実施例で
は、仮想座標空間に対する走査において、副走査番号が
偶数(0番を含む)のときの主走査開始時には仮想行に
「仮想行初期値」を代入し、その後は主走査の進行に合
わせて仮想行間隔を減算する。これによって下から上へ
主走査がデータa0 、b0 、c0 、d0 、・・・、更に
次の副走査番号が偶数のとき主走査がデータa2
2 、c2 、d2 、・・・というように行われる。
By the way, as shown in the figure, in the present embodiment, when scanning in the virtual coordinate space, when the main scanning is started when the sub-scanning number is an even number (including 0), the "virtual row initial value" is displayed in the virtual row. , ”And then subtracts the virtual line interval as the main scan progresses. As a result, from the bottom to the top, the main scan is data a 0 , b 0 , c 0 , d 0 , ... And when the next sub-scan number is an even number, the main scan is data a 2 ,
b 2 , c 2 , d 2 , ...

【0081】一方、副走査番号が奇数のときの主走査開
始時には仮想行に「仮想行初期値−仮想行間隔÷2」を
代入する。そして、後は同様に主走査の進行に合わせて
上記仮想行間隔を減算する。これによって下から上へ主
走査がデータa1 、b1 、c 1 、d1 、・・・、更に次
の副走査番号が奇数のときデータa3 、b3 、c3 、d
3 、・・・というように行われる。
On the other hand, when the sub scanning number is an odd number, the main scanning is opened.
At the beginning, "virtual row initial value-virtual row interval / 2" is added to the virtual row.
substitute. And after that, in the same way as the main scanning progresses
Subtract the virtual line spacing. This is the main from bottom to top
Scan is data a1, B1, C 1, D1,,, next
Data a when the sub-scan number of is odd3, B3, C3, D
3, ... and so on.

【0082】また、仮想列には、副走査開始時に「仮想
列初期値」を代入し、その後副走査の進行に合わせて仮
想列間隔を加算する。これによって左から右へ副走査が
行われる。したがって、副走査番号が偶数である主走査
の印字ドットと副走査番号が奇数である主走査の印字ド
ットでは「仮想行間隔÷2」だけ仮想行座標がずれるこ
とになる。これにより、印刷画像の画素毎の印字が縦に
見ても横に見ても千鳥状に行われる(図の画像データb
2 、b3 、c2 、c3 、d2 およびd4 、c5、d6
7 、d8 の配列を参照)。また、この結果、本実施例
では、隣接する印字画素の配列がどの方向にも均一に、
即ち隣接する印字画素を結ぶ線が正三角形を描くように
配列される。この結果、いずれの印字画素を取り上げて
見ても(上下端及び両側端の画素は除く)これに隣接す
る印字画素同士を結ぶ線は正六角形を形成する(図の画
像データb8 を中心とする画像データa7 、a9
6 、b8 、b10、b7 、b9 の配列を参照)。このよ
うに、印字ドットが千鳥格子状に均一に配列されること
により良好な発色の印刷画像が得られる。
Further, the "virtual column initial value" is assigned to the virtual column at the start of the sub scanning, and thereafter the virtual column interval is added in accordance with the progress of the sub scanning. As a result, sub scanning is performed from left to right. Therefore, the virtual line coordinates of the main-scan print dots having an even sub-scan number and the main-scan print dots having an odd sub-scan number are displaced by "virtual line interval / 2". As a result, printing of each pixel of the print image is performed in a zigzag manner when viewed vertically or horizontally (image data b in the figure).
2 , b 3 , c 2 , c 3 , d 2 and d 4 , c 5 , d 6 ,
See sequence of c 7, d 8). Further, as a result, in the present embodiment, the arrangement of the adjacent print pixels is uniform in any direction,
That is, the line connecting the adjacent print pixels is arranged so as to draw an equilateral triangle. As a result, no matter which print pixel is picked up (excluding the pixels at the upper and lower ends and both side ends), the line connecting the print pixels adjacent to it forms a regular hexagon (centering on the image data b 8 in the figure). Image data a 7 , a 9 ,
See sequence of b 6, b 8, b 10 , b 7, b 9). In this way, by arranging the print dots uniformly in a zigzag pattern, it is possible to obtain a print image with good color development.

【0083】そして、これらの仮想行座標の画像データ
(前述した合成処理後の画像データ)が図1に示した印
刷部22の印字ヘッドの偶数番目と奇数番目の発熱体に
それぞれ対応しており、印刷時には、印字ドットと副走
査番号が偶数である主走査か奇数である主走査かによっ
て、印字ヘッドの偶数番目と奇数番目の発熱体が交互に
発熱する。これにより発熱体に印加する印字データの熱
履歴補正が容易になる。
The image data of these virtual row coordinates (image data after the above-mentioned composition processing) correspond to the even-numbered and odd-numbered heating elements of the print head of the printing unit 22 shown in FIG. 1, respectively. During printing, the even-numbered and odd-numbered heating elements of the print head alternately generate heat depending on whether the print dot and the main scan in which the sub-scan number is even or the main scan in odd. This facilitates the thermal history correction of the print data applied to the heating element.

【0084】次に、図11に、印字画像に回転指示が有
る場合における印刷画像の画素と仮想座標との対応関係
を示す。上述したように回転指示が有る場合は仮想座標
に対する主走査方向は左から右方向であり副走査方向は
上から下方向である。従って、この場合は、ユーザイン
タフェースからの入力による設定に基づいて画像メモリ
アドレス空間から切り出される画像データ領域の、左上
角の画素に対応する仮想座標52を走査の原点とし、こ
の仮想座標52に走査アドレスとしての初期値を設定す
る。この場合も、主走査方向の画像データを、原点52
から副走査番号が0番の主走査方向にデータa0
0 、c0 、d0 、・・・、次の副走査番号1番の主走
査方向にデータa1 、b1 、c1 、d1 、・・・、更に
次の副走査番号2番の主走査方向にデータa2 、b2
2 、d2 、・・・であるとする(これらは、図10の
場合と同一の記号であるが、図10のデータa0 、b0
・・・、a1 、b1 ・・・、a2 、b2 ・・・とは、位
置、値ともに異なる)。
Next, FIG. 11 shows a correspondence relationship between pixels of the print image and virtual coordinates when the print image has a rotation instruction. As described above, when there is a rotation instruction, the main scanning direction with respect to the virtual coordinates is from left to right and the sub scanning direction is from top to bottom. Therefore, in this case, the virtual coordinate 52 corresponding to the pixel at the upper left corner of the image data area cut out from the image memory address space based on the setting by the input from the user interface is set as the scanning origin, and the virtual coordinate 52 is scanned. Set the initial value as an address. Also in this case, the image data in the main scanning direction is set to the origin 52.
From the sub-scan number 0 to the main scanning direction data a 0 ,
b 0 , c 0 , d 0 , ..., Data a 1 , b 1 , c 1 , d 1 , ... In the main scanning direction of the next sub-scanning number 1 , and the next sub-scanning number 2 Data a 2 , b 2 , in the main scanning direction of
It is assumed that they are c 2 , d 2 , ... (These are the same symbols as in the case of FIG. 10, but the data a 0 , b 0 of FIG.
..., a 1 , b 1, ..., A 2 , b 2 ... Are different in position and value).

【0085】この場合も、これら印刷画像の画素データ
配置に対応する仮想座標空間の行間隔及び列間隔は、画
像の拡大率が決まれば、印字主走査方向及び印字副走査
方向の最大印刷画素数によって自動的に定まる値をと
る。
Also in this case, the row spacing and the column spacing in the virtual coordinate space corresponding to the pixel data arrangement of these print images are the maximum number of print pixels in the print main scanning direction and the print sub-scanning direction if the enlargement ratio of the image is determined. Takes a value automatically determined by.

【0086】そして、この印字画像に「回転指示が有
る」場合には、本実施例では、同図に示すように、仮想
座標空間に対する走査において、副走査番号が偶数のと
きの主走査開始時には仮想列に「仮想列初期値」を代入
し、その後は主走査の進行に合わせて仮想列間隔を加算
する。これによって主走査が左から右へデータa0 、b
0 、c0 、d0 、・・・、更に次の副走査番号が偶数の
とき主走査がデータa2、b2 、c2 、d2 、・・・と
いうように行われる。
Then, the print image shows "There is a rotation instruction.
In this embodiment, as shown in FIG.
When scanning in the coordinate space, if the subscan number is an even number
Substitute "Virtual column initial value" into the virtual column at the start of main scanning
After that, add virtual column intervals as the main scan progresses
To do. As a result, the main scan is data a from left to right.0, B
0, C0, D0,,, and the next sub-scan number is even
When the main scan is data a2, B2, C2, D2,···When
It is done like that.

【0087】一方、副走査番号が奇数のときの主走査開
始時には仮想列に「仮想列初期値+仮想列間隔÷2」を
代入する。そして、同様にその後は主走査の進行に合わ
せて仮想列間隔を加算する。これによって主走査が左か
ら右へデータa1 、b1 、c 1 、d1 、・・・、更に次
の副走査番号が奇数のときデータa3 、b3 、c3 、d
3 、・・・というように行われる。
On the other hand, when the sub scanning number is an odd number, the main scanning is opened.
At the beginning, set "virtual column initial value + virtual column interval / 2" to the virtual column
substitute. After that, in the same way
Then, the virtual column interval is added. This makes the main scan left
From right to data a1, B1, C 1, D1,,, next
Data a when the sub-scan number of is odd3, B3, C3, D
3, ... and so on.

【0088】また、仮想行には、副走査開始時に「仮想
行初期値」を代入し、その後副走査の進行に合わせて仮
想行間隔を加算する。これにより副走査が上から下へ行
われる。したがって、この回転指示有りの場合では、副
走査番号が偶数である主走査の印字ドットと副走査番号
が奇数である主走査の印字ドットでは仮想列座標のほう
が「仮想列間隔÷2」だけずれることになり、これによ
り、画素毎の印字が千鳥状に行われる。そして、この場
合も、印刷画像の画素毎の印字が縦に見ても横に見ても
千鳥状に行われる(図の画像データb2 、b3 、c2
3 、d2 およびd2 、c3 、d4 、c5 、d6 の配列
を参照)。また、隣接する印字画素を結ぶ線が正三角形
を描くように配列され、上下端及び両側端の画素を除く
いずれの印字画素を取り上げて見ても、これに隣接する
印字画素同士を結ぶ線は正六角形を形成する(図の画像
データc8 を中心とする画像データb7 、b9 、c6
8 、c10、c7 、c9 の配列を参照)。尚、この場合
も、仮想列座標の合成処理後の画像データが印刷部22
の印字ヘッドの偶数番目と奇数番目の発熱体にそれぞれ
対応する印字データとして用いられることは、上述の回
転指示が無い場合と同様である。
Further, the virtual line has a "virtual line" at the start of the sub-scan.
Substituting "line initial value", and then temporarily as the sub-scan progresses.
Add thought intervals. This causes the sub-scan to go from top to bottom.
Be seen. Therefore, if this rotation instruction is given,
Main scan print dots with even scan numbers and sub scan numbers
The virtual column coordinates are more
Will be shifted by "virtual column interval ÷ 2".
Therefore, the printing is performed in a staggered manner for each pixel. And this place
In both cases, whether the printing of each pixel of the printed image is viewed vertically or horizontally
Staggered (image data b in the figure)2, B3, C2,
c3, D2And d2, C3, DFour, CFive, D6Array of
See). The line connecting adjacent print pixels is an equilateral triangle.
Are arranged so that the upper and lower edges and both side edges are excluded.
Adjacent to any printed pixel, picked up
The line connecting the print pixels forms a regular hexagon (image in the figure)
Data c8Image data b centered on7, B9, C6,
c 8, CTen, C7, C9See the array). In this case
Also, the image data after the synthesis processing of the virtual column coordinates is printed by the printing unit 22.
On the even-numbered and odd-numbered heating elements of the
What is used as corresponding print data is that
This is the same as when there is no instruction to turn.

【0089】図12に、上記のように仮想座標空間の仮
想列を生成する仮想列生成回路13の動作フローチャー
トを示し、図13に、同じく仮想行を生成する仮想行生
成回路14の動作フローチャートを示す。尚、この処理
において、仮想列生成回路13には、CPU12から仮
想列初期値、仮想列間隔、及び回転指示有無の情報が入
力され、タイミング信号発生回路11から主走査開始、
主走査変化、副走査開始、副走査変化、及び副走査奇数
の情報が入力される。また、仮想行生成回路14には、
同様にCPU12から仮想行初期値、仮想行間隔、及び
回転指示有無の情報が入力され、タイミング信号発生回
路11から上記同様に主走査開始、主走査変化、副走査
開始、副走査変化、及び副走査奇数の情報が入力され
る。
FIG. 12 shows an operation flowchart of the virtual column generation circuit 13 for generating a virtual column in the virtual coordinate space as described above, and FIG. 13 shows an operation flowchart of the virtual row generation circuit 14 for similarly generating a virtual row. Show. In this process, the virtual column initial value, virtual column interval, and rotation instruction presence / absence information are input to the virtual column generation circuit 13 from the CPU 12, and the timing signal generation circuit 11 starts main scanning.
Information of main scan change, sub scan start, sub scan change, and sub scan odd number is input. Further, the virtual row generation circuit 14 has
Similarly, the virtual row initial value, the virtual row interval, and information regarding the presence / absence of a rotation instruction are input from the CPU 12, and the timing signal generation circuit 11 performs the main scanning start, main scanning change, sub-scanning start, sub-scanning change, and sub-scanning in the same manner as above. Scan odd number information is input.

【0090】上記仮想列初期値及び仮想行初期値は、画
像メモリアドレス空間から、シャープネス処理後の合成
処理によって仮想座標空間に変換された画像データの印
刷開始点座標であり、上述したように回転指示無しの場
合は切り出される画像データの左下角の点が指定され、
回転指示有りの場合は同じく画像データの左上の点が指
定される。また、仮想列間隔及び仮想行間隔は上述した
ように指定された拡大率に基づいてCPU12により演
算され設定される。これら初期値及び間隔値のパラメー
タと、タイミング信号発生回路11によって制御される
主走査回数及び副走査回数により、画像メモリ16の任
意の範囲の印刷が可能になる。
The virtual column initial value and the virtual row initial value are print start point coordinates of the image data converted from the image memory address space to the virtual coordinate space by the combining process after the sharpness process, and are rotated as described above. If there is no instruction, the point in the lower left corner of the image data to be cut out is specified,
When there is a rotation instruction, the upper left point of the image data is also designated. The virtual column interval and the virtual row interval are calculated and set by the CPU 12 based on the enlargement ratio designated as described above. The parameters of the initial value and the interval value and the number of main scans and the number of sub-scans controlled by the timing signal generation circuit 11 enable printing in an arbitrary range of the image memory 16.

【0091】先ず図12のフローチャートを用いて仮想
列生成回路13による仮想列生成の動作を説明する。
尚、以下の処理では、仮想座標空間を順次設定するため
に、特には図示しないが、仮想行座標を記憶する仮想行
レジスタおよび仮想列座標を記憶する仮想列レジスタが
使用される。
First, the operation of virtual column generation by the virtual column generation circuit 13 will be described with reference to the flowchart of FIG.
In the following processing, although not particularly shown, a virtual row register for storing virtual row coordinates and a virtual column register for storing virtual column coordinates are used to sequentially set the virtual coordinate space.

【0092】先ず、初めに回転指示があるか否か判別す
る(ステップS1)。そして、CPU12から回転指示
無しの信号が入っていれば(S1がNO)、以下に説明
する回転指示無しの場合の仮想列生成処理を行う。
First, it is determined whether or not there is a rotation instruction (step S1). Then, if a signal indicating that there is no rotation instruction is input from the CPU 12 (NO in S1), the virtual column generation process for the case where there is no rotation instruction is performed as described below.

【0093】すなわち、副走査に変化があるか否か判別
し(ステップS6)、タイミング信号発生回路11から
副走査変化信号が入力していれば(S6がYES)、次
に、その副走査変化が、副走査の開始であるか、それと
も副走査実行中における次の副走査への遷移であるかを
判別する(ステップS7)。そして、タイミング信号発
生回路11から副走査開始信号が入力していれば(S7
がYES)、副走査の開始、即ち副走査原点の設定が指
示されている。したがって、この場合は、仮想列レジス
タに仮想列初期値をセットする(ステップS8)。これ
により、図11に示した回転指示無しの場合の走査原点
51の列座標(副走査番号0の列座標)が設定される。
That is, it is judged whether or not there is a change in the sub-scanning (step S6), and if the sub-scanning change signal is input from the timing signal generating circuit 11 (YES in S6), then the sub-scanning change. Is the start of the sub-scan or the transition to the next sub-scan during execution of the sub-scan (step S7). If the sub-scanning start signal is input from the timing signal generating circuit 11 (S7
Is YES), the sub-scanning is started, that is, the sub-scanning origin is set. Therefore, in this case, the virtual column initial value is set in the virtual column register (step S8). As a result, the column coordinates of the scanning origin 51 (the column coordinates of the sub-scanning number 0) in the case where there is no rotation instruction shown in FIG. 11 are set.

【0094】そして、この場合は後述する仮想行生成回
路14による走査原点51の行座標も設定されており、
これら設定された列座標及び行座標により先ず原点51
の画像データが走査される。
In this case, the row coordinates of the scanning origin 51 by the virtual row generation circuit 14 described later are also set,
The origin 51 is first set based on these set column and row coordinates.
Image data is scanned.

【0095】続いてステップS1に戻り、回転指示無し
(S1がNO)を確認し、ステップS6で副走査変化無
し(S6がNO)を判別するということを、副走査0番
の主走査が終了するまでの間繰り返して、副走査0番の
主走査終了によりタイミング信号発生回路11から再び
副走査変化有りの信号が入力すると(S6がYES)、
次に、副走査が開始ではなく実行中であることを判別し
て(S7がNO)、仮想列レジスタの仮想列データに仮
想列間隔を加算する(ステップS9)。これにより、次
の副走査の仮想列座標が設定される。
Then, returning to step S1, it is confirmed that there is no rotation instruction (S1 is NO), and it is determined in step S6 that there is no change in sub-scanning (NO in S6). Repeatedly until the sub-scanning No. 0 main scanning ends, the timing signal generating circuit 11 again inputs a signal with sub-scanning change (YES in S6),
Next, it is determined that the sub-scanning is being executed instead of being started (NO in S7), and the virtual column interval is added to the virtual column data of the virtual column register (step S9). As a result, the virtual column coordinates for the next sub-scan are set.

【0096】このように、主走査中はステップS1、S
6を繰り返し、主走査終了毎にステップS6、S7、S
9を行って仮想列データを仮想列間隔分だけ順次インク
リメントして副走査用の仮想列を生成する。これによ
り、図11に示した回転指示無しの場合における、左か
ら右方向への副走査が実現する。
Thus, steps S1 and S are performed during the main scanning.
6 is repeated, and steps S6, S7, S
9, the virtual column data is sequentially incremented by the virtual column interval to generate a virtual column for sub-scanning. As a result, sub-scanning from the left to the right in the case without the rotation instruction shown in FIG. 11 is realized.

【0097】一方、仮想行生成回路14は上記の処理に
平行して下記に説明する回転指示無しの場合の仮想行の
生成を行う。この動作を図13のフローチャートに基づ
いて説明する。
On the other hand, the virtual row generation circuit 14 generates a virtual row in the case where there is no rotation instruction described below in parallel with the above processing. This operation will be described based on the flowchart of FIG.

【0098】この場合も先ず回転指示があるか否か判別
し(ステップS11)、CPU12から回転指示無しの
信号が入っていないことを確認して(S11がNO)、
以下に説明する回転指示無しの場合の仮想行生成処理を
行う。
Also in this case, first, it is determined whether or not there is a rotation instruction (step S11), and it is confirmed that no signal indicating no rotation instruction is input from the CPU 12 (NO in S11).
The virtual row generation processing in the case where there is no rotation instruction described below is performed.

【0099】先ず、主走査に変化があるか否か判別し
(ステップS12)、タイミング信号発生回路11から
主走査変化の信号が入力していれば(S12がYE
S)、続いて、その主走査変化が、主走査の開始である
か、或いは主走査実行中における次の画像データへの走
査であるかを判別する(ステップS13)。そして、タ
イミング信号発生回路11から主走査の開始信号が入力
していれば(S13がYES)、さらにその主走査開始
が奇数番目の副走査における主走査開始であるか否か判
別する(ステップS14)。そして、タイミング信号発
生回路11から、副走査奇数を示す信号が入力していな
い場合は、偶数番目の副走査における主走査開始である
と認識し(S14がNO)、仮想行レジスタに仮想行初
期値をセットする(ステップS19)。これにより、図
11に示した回転指示無しの場合の走査原点51の行座
標が設定される。これは、最初は副走査番号0の主走査
開始の行座標、以後、副走査番号が偶数の主走査開始の
行座標となる。
First, it is determined whether or not there is a change in the main scanning (step S12), and if a signal of the main scanning change is input from the timing signal generation circuit 11 (S12 is YE).
S) Then, it is determined whether the change in the main scan is the start of the main scan or the scan to the next image data during the execution of the main scan (step S13). Then, if the main scanning start signal is input from the timing signal generation circuit 11 (YES in S13), it is further determined whether or not the main scanning start is the main scanning start in the odd-numbered sub-scanning (step S14). ). When the signal indicating the odd number of sub-scans is not input from the timing signal generation circuit 11, it is recognized that the main scan in the even-numbered sub-scan is started (NO in S14), and the virtual row initial is set in the virtual row register. A value is set (step S19). As a result, the row coordinates of the scanning origin 51 when there is no rotation instruction shown in FIG. 11 are set. This first becomes the main scanning start row coordinate of the sub-scanning number 0, and thereafter becomes the main scanning start row coordinate of an even-numbered sub-scanning number.

【0100】そして、その主走査の次の画像データを走
査するタイミングまでの間、上記ステップS11で回転
指示無し(S11がNO)の確認と、ステップS12で
主走査変化無し(S12がNO)の判別を繰り返す。そ
して次の画像データの走査タイミングでタイミング信号
発生回路11から主走査変化有りの信号が入力すると
(S12がYES)、次に、主走査が開始ではなく実行
中であることを判別して(S13がNO)、仮想行レジ
スタの仮想行データから仮想行間隔を減算する(ステッ
プS16)。これにより、主走査の次の画像データの仮
想行座標が設定される。
Until the timing of scanning the image data next to the main scanning, it is confirmed in step S11 that there is no rotation instruction (NO in S11), and in step S12 that there is no change in main scanning (NO in S12). Repeat discrimination. When a signal indicating that the main scanning has changed is input from the timing signal generating circuit 11 at the scanning timing of the next image data (YES in S12), it is then determined that the main scanning is being executed instead of being started (S13). Is NO), the virtual row interval is subtracted from the virtual row data in the virtual row register (step S16). As a result, the virtual row coordinates of the image data next to the main scan are set.

【0101】このように、主走査中はステップS11、
S12、S13、S16が順次繰り返されて、仮想行デ
ータが仮想行間隔分だけ順次デクリメントされ、これに
より仮想座標空間を下から上へと主走査を行う図11に
示した回転指示無しの場合の主走査が実現する。
As described above, during the main scanning, steps S11,
S12, S13, and S16 are sequentially repeated, and the virtual row data is sequentially decremented by the virtual row interval, whereby the main scanning is performed from the bottom to the top of the virtual coordinate space. Main scanning is realized.

【0102】また、上記ステップS14で副走査が奇数
番目であった場合は、仮想行レジスタに、「仮想行初期
値−仮想行間隔÷2」をセットする(ステップS1
6)。これにより、奇数番目の副走査における主走査に
おいて、行座標が常に「仮想行間隔÷2」だけ、原点方
向へ、つまり上方へずれ、図11に示した奇数番目の副
走査における主走査の千鳥状のずれが実現する。
If the sub-scanning is an odd number in step S14, "virtual row initial value-virtual row interval / 2" is set in the virtual row register (step S1).
6). As a result, in the main scanning in the odd-numbered sub-scans, the line coordinates are always displaced by "virtual line interval / 2" toward the origin, that is, upward, and the staggered main scanning in the odd-numbered sub-scan shown in FIG. The deviation of shape is realized.

【0103】次に、回転指示有りの場合の処理を以下に
説明する。上述の図12のステップS1の判別で、CP
U12から回転指示有りの信号が入っている場合は(S
1がYES)、以下に説明する回転指示有りの場合の仮
想列生成処理を行う。
Next, the processing when there is a rotation instruction will be described below. By the determination in step S1 of FIG. 12 described above, the CP
If there is a rotation instruction signal from U12 (S
If 1 is YES), the virtual column generation process in the case where there is a rotation instruction described below is performed.

【0104】先ず、主走査に変化があるか否か判別し
(ステップS2)、タイミング信号発生回路11から主
走査変化の信号が入力していれば(S2がYES)、次
に主走査の開始であるか否か判別する(ステップS
3)。そして、タイミング信号発生回路11から主走査
開始の信号が入力していれば(S3がYES)、続いて
その主走査開始が奇数番目の副走査における主走査開始
であるか否かを判別する(ステップS4)。そして、奇
数番目ではない即ち偶数番目の副走査における主走査開
始である場合には(S4がNO)、仮想行レジスタに仮
想列初期値をセットする(ステップS8)。これによ
り、図12に示した回転指示有りの場合の走査原点52
の列座標が設定される。これは、最初は副走査番号0の
主走査開始列座標となり、以後、副走査番号が偶数の主
走査開始列座標となる。
First, it is determined whether or not there is a change in main scanning (step S2), and if a signal for main scanning change is input from the timing signal generation circuit 11 (YES in S2), then the main scanning is started. Or not (step S
3). Then, if the main scanning start signal is input from the timing signal generation circuit 11 (YES in S3), it is subsequently determined whether or not the main scanning start is the main scanning start in the odd-numbered sub-scanning ( Step S4). Then, when the main scanning is not started in the odd-numbered sub scanning, that is, in the even-numbered sub scanning (NO in S4), the virtual column initial value is set in the virtual row register (step S8). As a result, the scanning origin 52 shown in FIG.
The column coordinates of are set. This first becomes the main scanning start column coordinate of the sub scanning number 0, and thereafter becomes the main scanning start column coordinate of an even sub scanning number.

【0105】そして、副走査番号0の主走査終了まで、
上記ステップS1で回転指示有り(S1がYES)を確
認し、ステップS2で主走査変化有り(S2がYES)
を判別し、続いてステップS3で主走査実行中(S3が
NO)を確認して、前述した回転指示無しの場合の副走
査実行中の場合と同様に、仮想列レジスタの仮想列デー
タに仮想列間隔を加算する(ステップS9)、というこ
とを繰り返す。これにより次の主走査の列座標が順次設
定される。このステップS1、S2、S3、及びS9の
繰り返しは、全ての副走査番号が偶数の主走査において
開始から終了まで同様に行われる。
Then, until the main scanning of sub-scan number 0 ends,
It is confirmed in the step S1 that there is a rotation instruction (YES in S1), and there is a change in main scanning in step S2 (YES in S2).
Then, in step S3, it is confirmed that the main scanning is being executed (S3 is NO), and the virtual column data of the virtual column register is virtualized as in the case of the sub-scanning in the case where there is no rotation instruction as described above. The process of adding the column intervals (step S9) is repeated. As a result, the column coordinates for the next main scan are sequentially set. The repetition of these steps S1, S2, S3, and S9 is similarly performed from the start to the end in the main scanning in which all sub-scanning numbers are even.

【0106】このように、回転指示ありの場合は、仮想
列データが仮想列間隔分だけ順次インクリメントされて
主走査の仮想座標が順次生成され、図12に示した画像
データを左から右へ行う主走査処理が実現する。
As described above, when the rotation instruction is issued, the virtual column data is sequentially incremented by the virtual column interval to sequentially generate the virtual coordinates of the main scanning, and the image data shown in FIG. 12 is performed from left to right. Main scanning processing is realized.

【0107】このようにして主走査終了により、上記ス
テップS3で、タイミング信号発生回路11から再び主
走査開始の信号が入力すると(S3がYES)、上述し
たステップS4で再びその主走査開始の副走査番号が奇
数番目か否か判別し、奇数番目であれば(S4がYE
S)、仮想列レジスタの仮想列データに「仮想列初期値
+仮想列間隔÷2」を設定する(ステップS5)。これ
により、奇数番目の副走査における主走査において、列
座標が常に「仮想列間隔÷2」だけ、原点から遠のく方
向へ、つまり右へずれ、図12に示した奇数番目の副走
査における主走査の千鳥状のずれが実現する。
In this way, when the main scanning is completed and the signal for starting the main scanning is input again from the timing signal generating circuit 11 in the step S3 (YES in S3), the sub-scan of the main scanning is started again in the step S4. It is determined whether or not the scan number is an odd number, and if it is an odd number (S4 is YE
S), "virtual column initial value + virtual column interval / 2" is set in the virtual column data of the virtual column register (step S5). As a result, in the main scanning in the odd-numbered sub-scans, the column coordinates are always displaced by "virtual column interval / 2" in the direction away from the origin, that is, to the right, and the main scanning in the odd-numbered sub-scans shown in FIG. The staggered deviation of is realized.

【0108】そして、上記の処理に平行して、仮想行生
成回路14は、下記に説明する回転指示有りの場合の仮
想行の生成を行う。この動作を再び図13のフローチャ
ートに基づいて説明する。
In parallel with the above processing, the virtual row generation circuit 14 generates a virtual row when there is a rotation instruction as described below. This operation will be described again with reference to the flowchart of FIG.

【0109】この場合も先ず回転指示の有無を判別し
(ステップS11)、CPU12からの回転指示有りの
信号入力を確認して(S11がYES)、以下に説明す
る回転指示有りの場合の仮想行生成処理を行う。
Also in this case, the presence / absence of a rotation instruction is first determined (step S11), the signal input with the rotation instruction from the CPU 12 is confirmed (S11 is YES), and the virtual line in the case of the rotation instruction described below is confirmed. Performs generation processing.

【0110】この場合は、先ず副走査に変化があるか否
か判別する(ステップS17)。そしてタイミング信号
発生回路11から副走査変化の信号が入力していれば
(S17がYES)、続いて、その副走査変化が、副走
査の開始であるか、或いは副走査実行中における次の副
走査への移動であるかを判別する(ステップS18)。
そして、タイミング信号発生回路11から副走査の開始
信号が入力していれば(S18がYES)、副走査の開
始、即ち副走査原点の設定が指示されていると判断し
て、この場合は、仮想行レジスタの仮想行データに仮想
行初期値を設定する(ステップS19)。これにより、
図12に示した回転指示有りの場合の走査原点52の行
座標(副走査番号0の列座標)が設定される。
In this case, it is first judged whether or not there is a change in the sub-scan (step S17). Then, if the sub-scanning change signal is input from the timing signal generating circuit 11 (YES in S17), the sub-scanning change is the start of the sub-scanning, or the next sub-scan during the execution of the sub-scanning. It is determined whether or not the movement is for scanning (step S18).
Then, if the sub-scanning start signal is input from the timing signal generating circuit 11 (YES in S18), it is determined that the sub-scanning start, that is, the sub-scanning origin is set, and in this case, The virtual row initial value is set in the virtual row data of the virtual row register (step S19). This allows
The row coordinates (column coordinates of the sub-scanning number 0) of the scanning origin 52 in the case where there is the rotation instruction shown in FIG. 12 are set.

【0111】そして、上述した仮想列生成回路13によ
る走査原点52の列座標の設定も行われていることにり
先ず原点52の画像データが走査される。続いてステッ
プS11に戻り、回転指示有り(S11がYES)を確
認し、ステップS17で副走査変化無し(S17がN
O)を判別するということを、副走査0番の主走査が終
了するまでの間繰り返して、副走査0番の主走査終了に
よりタイミング信号発生回路11から再び副走査変化有
りの信号が入力すると(S17がYES)、次に、再び
ステップS18において、今度は副走査が開始ではなく
実行中であることを判別して(S18がNO)、仮想行
レジスタの仮想行データに仮想行間隔を加算する(ステ
ップS20)。これにより、次の副走査の仮想行座標が
設定される。
Then, since the column coordinates of the scanning origin 52 are set by the virtual column generating circuit 13 described above, the image data of the origin 52 is scanned first. Then, returning to step S11, it is confirmed that there is a rotation instruction (YES in S11), and there is no change in sub-scanning in step S17 (N in S17).
O) is repeated until the sub-scanning No. 0 main scanning is completed, and when a sub-scanning change signal is input again from the timing signal generating circuit 11 when the sub-scanning No. 0 main scanning is completed. (YES in S17) Next, in step S18 again, it is determined that the sub-scanning is being executed this time instead of being started (NO in S18), and the virtual row interval is added to the virtual row data of the virtual row register. Yes (step S20). As a result, the virtual row coordinates for the next sub-scan are set.

【0112】このように、主走査中はステップS11、
S17を繰り返し、主走査終了毎にステップS17、S
18の判別によりステップS20を行って、仮想行デー
タを仮想行間隔分だけ順次インクリメントして副走査用
の仮想行を原点から離れる方向へ生成する。これによ
り、図12に示した回転指示有りの場合における、上か
ら下方向への副走査が実現する。
As described above, during the main scanning, steps S11,
S17 is repeated, and steps S17 and S
In step S20, the virtual row data is sequentially incremented by the virtual row interval to generate a virtual row for sub-scanning in the direction away from the origin. As a result, sub-scanning from the top to the bottom in the case where there is the rotation instruction shown in FIG. 12 is realized.

【0113】以上、図1〜図13で説明したように、C
PU12から仮想列生成回路13及び仮想行生成回路1
4に対して供給される回転指示の有無、仮想列及び仮想
行初期値、仮想列及び仮想行間隔の各パラメータと、タ
イミング信号発生回路11から仮想列生成回路13及び
仮想行生成回路14に対して供給される主走査回数及び
副走査回数情報により画像メモリの任意の範囲の印刷が
可能になる。
As described above with reference to FIGS. 1 to 13, C
From PU 12 to virtual column generation circuit 13 and virtual row generation circuit 1
4, the presence / absence of a rotation instruction, the virtual column and virtual row initial values, the virtual column and virtual row interval parameters, and the timing signal generation circuit 11 to the virtual column generation circuit 13 and the virtual row generation circuit 14. The information about the number of main scans and the number of sub-scans supplied in this way enables printing in an arbitrary range of the image memory.

【0114】既に述べたように、本実施例においては、
印刷画像の回転の有無に関わらず、注目画素を中心とし
て6個の印刷画素(印字ドット)の描く正六角形は、対
向する二つの頂点を結んで形成される3本の線のうち一
本の線が副走査方向に平行するように形成される(図1
0、図11参照)。そして、このような印字ドットの配
列においては、互いに隣接する3個の印字ドットは正三
角形を形成する。
As described above, in this embodiment,
Regardless of whether the print image is rotated or not, the regular hexagon drawn by the six print pixels (print dots) centering on the target pixel is one of the three lines formed by connecting two opposite vertices. The lines are formed so as to be parallel to the sub-scanning direction (see FIG. 1).
0, see FIG. 11). In such an array of print dots, three print dots adjacent to each other form an equilateral triangle.

【0115】図14は、この印字ドットの主走査方向及
び副走査方向における配列の状態を再掲したものであ
る。図では、印字ドットの中心を「×」印の交点で表わ
している。同図には印字ドット「イ」を中心として6個
の印字ドット「ロ」、「ハ」、「ニ」、「ホ」、「ヘ」
および「ト」によって形成される正六角形の例を示して
いる。ここで、互いに隣接する任意の3個の印字ドッ
ト、例えば図の印字ドット「イ」、「ト」および「ヘ」
によって形成される正三角形を例にとって説明すれば、
正三角形の頂点(印字ドット「イ」)から底辺(他の二
つの印字ドット「ト」と「ヘ」を結ぶ線)へ下ろした垂
線は底辺を二分することが知られている。この垂線と底
辺との交点と、印字ドット「ト」(又は「ヘ」)との距
離を「D」とすれば、底辺の長さ(印字ドット「ト」と
「ヘ」間の距離)は「2D」である。そして、上記距離
「D」が既に述べたように一回の副走査の距離である。
FIG. 14 shows again the state of arrangement of the print dots in the main scanning direction and the sub scanning direction. In the figure, the center of the print dot is represented by the intersection of the "x" marks. In the figure, there are 6 printing dots centered on the printing dot "a", "b", "c", "d", "e", and "f".
And an example of a regular hexagon formed by "to". Here, arbitrary three print dots adjacent to each other, for example, print dots “a”, “to” and “f” in the figure
Taking an example of an equilateral triangle formed by
It is known that a perpendicular line that descends from the apex of a regular triangle (print dot “a”) to the bottom (the line connecting the other two print dots “t” and “f”) bisects the bottom. If the distance between the intersection of this perpendicular line and the bottom and the print dot "to" (or "he") is "D", the length of the bottom (the distance between the print dots "to" and "he") is It is "2D". The distance "D" is the distance for one sub-scan, as already described.

【0116】また、上記の印字ドット「イ」、「ト」お
よび「ヘ」は正三角形を形成しているから、各辺の長さ
は等しく、したがって、印字ドット「イ」と「ト」の直
線距離は底辺と同様に「2D」である。したがって、印
字ドット「イ」から底辺まで下ろした垂線の長さはピタ
ゴラスの定理により√3・Dである。これから、印字ド
ットの主走査方向の間隔(例えば印字ドット「ト」と
「ハ」の主走査方向の間隔)が上記垂線の2倍、即ち
「2√3・D」となることは明かである。
Since the above-mentioned print dots "a", "to" and "f" form an equilateral triangle, the length of each side is equal, and therefore the print dots "a" and "to" are the same. The straight line distance is “2D” like the base. Therefore, the length of the perpendicular line drawn from the print dot “A” to the bottom is √3 · D according to the Pythagorean theorem. From this, it is clear that the interval between the print dots in the main scanning direction (for example, the interval between the print dots “TO” and “C” in the main scanning direction) is twice the perpendicular line, that is, “2√3 · D”. .

【0117】また、これらのことから、1画素の印字ア
スペクト比、つまり最も近接する画素間(図の印字ドッ
ト「イ」と「ト」間参照)の副走査方向(用紙のたて方
向)間隔と主走査方向(用紙のよこ方向)間隔の比は
「1:√3」となることは明かである。
From these facts, the print aspect ratio of one pixel, that is, the interval between the closest pixels (refer to the print dots "a" and "t" in the figure) in the sub-scanning direction (vertical direction of the paper). It is clear that the ratio of the main scanning direction (paper lateral direction) interval is “1: √3”.

【0118】本実施例においては、拡大率の計算を行う
に際して、上記1画素の印字アスペクト比が1:√3に
なることに基づいて、画像メモリ16の1画素のアスペ
クト比を1:√3に設定している。したがって、この画
像メモリ18に対応する仮想座標空間の仮想列座標軸と
仮想行座標軸のスケール比も1:√3に設定している。
この仮想座標空間のスケール設定に基づいて拡大率の計
算を行っている。以下に拡大率の計算について説明す
る。
In the present embodiment, when calculating the enlargement ratio, the aspect ratio of one pixel in the image memory 16 is 1: √3 based on the fact that the print aspect ratio of one pixel is 1: √3. Is set to. Therefore, the scale ratio of the virtual column coordinate axis and the virtual row coordinate axis in the virtual coordinate space corresponding to the image memory 18 is also set to 1: √3.
The enlargement ratio is calculated based on the scale setting of this virtual coordinate space. The calculation of the enlargement ratio will be described below.

【0119】先ず、回転指示無しの場合について説明す
る。この回転指示無しの場合は、図10に示したよう
に、仮想座標空間に対する主走査は仮想行方向に行なわ
れ副走査は仮想列方向に行われる。これを図15(a) に
再掲する。同図には上述した仮想列座標軸と仮想行座標
軸のスケール比を模式的に示し、これに図14で説明し
た印字ドット間隔を対比させて示している。
First, the case where there is no rotation instruction will be described. When this rotation instruction is not issued, as shown in FIG. 10, the main scanning with respect to the virtual coordinate space is performed in the virtual row direction and the sub-scanning is performed in the virtual column direction. This is shown again in Fig. 15 (a). In the same figure, the scale ratio between the virtual column coordinate axis and the virtual row coordinate axis described above is schematically shown, and the print dot interval described in FIG. 14 is shown in comparison therewith.

【0120】ここで仮想列間隔をa、仮想行間隔をbと
して、仮想列数がn列、仮想行数がm行の印字を行う場
合、一回の副走査の距離をDとすれば、印字画像の仮想
列方向の長さw、仮想行方向の長さtには、次式、 W=(n/a)D, t=(m/b)2√3・D の関係が成り立つ。
Here, when the virtual column interval is a, the virtual row interval is b, and the number of virtual columns is n and the number of virtual rows is m, printing is performed by setting the distance of one sub-scan as D. For the length w in the virtual column direction and the length t in the virtual row direction of the printed image, the following equations are satisfied: W = (n / a) D, t = (m / b) 2√3 · D.

【0121】また、隣接する3個の印字ドットが正三角
形を形成するように、つまり印字画像のアスペクト比を
一定に保って原画像データ(画像ソース)に対して縦長
にも横長にもならないようにするには、上述した仮想座
標空間のスケールを1:√3に保てばよい。即ち、「仮
想列単位長さ」:「仮想行単位長さ」を1:√3にすれ
ばよいことから、次式、 D/a:2√3・D/b=1:√3 の関係が成り立つ。
Further, three adjacent print dots form an equilateral triangle, that is, the aspect ratio of the print image is kept constant so that the print image does not become vertically or horizontally long with respect to the original image data (image source). To achieve this, the scale of the virtual coordinate space described above may be kept at 1: √3. That is, since "virtual column unit length": "virtual row unit length" may be set to 1: √3, the following equation: D / a: 2√3 · D / b = 1: √3 Holds.

【0122】∴ a:b=1:2 であり、これにより、上記aとbの関係が求められる。
同図(b) に、上記a、bとして与えられるパラメータの
一例を図表にして示す。この図表は、左端の縦に番号1
〜3を示し、横にそれらの番号に対応する上記a,bの
パラメータ、画像の回転指示、および画像の拡大率を示
している。尚、番号1〜3は説明の便宜上、一組のパラ
メータ毎に付与したものである。
∴a: b = 1: 2, so that the relationship between a and b can be obtained.
FIG. 2B shows an example of the parameters given as a and b above. This chart has the number 1 on the leftmost vertical.
3 to 3, and the a and b parameters corresponding to these numbers, the image rotation instruction, and the image enlargement ratio are shown on the side. Note that the numbers 1 to 3 are assigned to each set of parameters for convenience of explanation.

【0123】同図のに示すように、番号1番は拡大率1
00%(原寸印字)の場合のa、bのパラメータ設定の
例を示している。即ち拡大率100%のとき仮想列間隔
aを「64」、仮想行間隔bを「128」(上記a:b
=1:2による)に設定している。この拡大率100%
のときの仮想列間隔aの値を拡大率の基準値とすれば、
「(基準仮想列間隔÷仮想列間隔)×100」が拡大率
を表わすから、任意の拡大率が与えられれば、その拡大
率に対応する仮想列間隔が上記の関係から容易に算出さ
れ、したがって仮想行間隔もまた容易に算出される。
As shown in the figure, the number 1 is the enlargement ratio 1
An example of parameter setting of a and b in the case of 00% (full size printing) is shown. That is, when the enlargement ratio is 100%, the virtual column interval a is "64" and the virtual row interval b is "128" (above a: b.
= 1: 2). This expansion rate 100%
If the value of the virtual column interval a at the time is set as the reference value of the enlargement ratio,
Since "(reference virtual column interval ÷ virtual column interval) x 100" represents the enlargement ratio, if an arbitrary enlargement ratio is given, the virtual column interval corresponding to the enlargement ratio can be easily calculated from the above relationship. Virtual line spacing is also easily calculated.

【0124】同図(b) の番号2番の拡大率50%(1/
2に縮小)の場合のa=128,b=256は、このよ
うにして算出した例を示している。また、番号3番の拡
大率533%(約5倍)の場合のa=12,b=24も
同様であり、その他の拡大率の場合についても上記の演
算により算出できる。
The enlargement ratio of No. 2 in the figure (b) is 50% (1 /
In the case of (reduction to 2), a = 128 and b = 256 indicate examples calculated in this way. The same applies to a = 12 and b = 24 when the enlargement ratio of number 3 is 533% (about 5 times), and other enlargement ratios can be calculated by the above calculation.

【0125】次に、回転指示有りの場合における拡大率
計算について説明する。回転指示有りの場合は、図11
に示したように、仮想座標空間に対する主走査は仮想列
方向に行なわれ副走査は仮想行方向に行われる。これを
図16(a) に上記同様仮想座標空間の模式的スケールと
印字ドット間隔を対比して示す。
Next, the calculation of the enlargement ratio when there is a rotation instruction will be described. If there is a rotation instruction,
As shown in, the main scanning with respect to the virtual coordinate space is performed in the virtual column direction, and the sub-scanning is performed in the virtual row direction. This is shown in FIG. 16 (a) by comparing the schematic scale of the virtual coordinate space with the print dot spacing, as in the above.

【0126】ここで仮想列間隔をc、仮想行間隔をd、
そして上記同様に仮想列数をn、仮想行数をm、一回の
副走査の距離をDとすれば、印字画像の仮想列方向の長
さw′、仮想行方向の長さt′には、次式、 W′=(n/c)2√3・D, t′=(m/d)D の関係が成り立つ。
Here, the virtual column interval is c, the virtual row interval is d,
Similarly to the above, if the number of virtual columns is n, the number of virtual rows is m, and the distance of one sub-scan is D, the print image has a length w'in the virtual column direction and a length t'in the virtual row direction. Is expressed by the following equation, W '= (n / c) 2√3 · D, t' = (m / d) D.

【0127】そして、この場合も印字画像のアスペクト
比を一定に保つためには、仮想座標空間のスケールを一
定に、即ち上記同様「仮想列単位長さ」:「仮想行単位
長さ」を1:√3にすればよい。これから、次式、 2√3・D/c:D/d=1:√3 の関係が成り立ち、 ∴ c:d=1:2 である。これにより、上記cとdの関係が求められる。
Also in this case, in order to keep the aspect ratio of the printed image constant, the scale of the virtual coordinate space is made constant, that is, "virtual column unit length": "virtual line unit length" is set to 1 as in the above case. : Set to √3. From this, the following equation, 2√3 · D / c: D / d = 1: √3, holds, and ∴c: d = 1: 2. As a result, the relationship between c and d is obtained.

【0128】また、この場合の拡大率は、「回転無しの
場合の印字画像の大きさ」:「回転有りの場合の印字画
像の大きさ」=「拡大率」によって求めることができ
る。即ち、 w′/w=t′/t=2√3・a/c=√3・b/c =√3・b/6d=√3・a/3d の関係式から求めることができる。
Further, the enlargement ratio in this case can be obtained by "the size of the printed image without rotation": "the size of the printed image with rotation" = "enlargement ratio". That is, w '/ w = t' / t = 2√3 · a / c = √3 · b / c = √3 · b / 6d = √3 · a / 3d.

【0129】同図(b) の図表に示す番号4番の拡大率4
2%の場合のc=528,d=88や、番号5番の拡大
率739%の場合のc=30,d=5は、このようにし
て算出した例を示している。また、その他の拡大率の場
合についても上記の演算により容易に算出できる。
The enlargement ratio 4 of the number 4 shown in the chart of FIG.
C = 528 and d = 88 in the case of 2% and c = 30 and d = 5 in the case of the enlargement ratio 739% of the number 5 indicate examples calculated in this way. Also, in the case of other enlargement ratios, it can be easily calculated by the above calculation.

【0130】尚、上記の印刷画像については、フレーム
画像の印刷(全部走査)を例として説明しているが、フ
ィールド画像の印刷(一つ置き走査)にも適用できる。
このフィールド画像の印刷の場合は、図14から明かな
ように(例えば図の印字ドット「ロ」は次の副走査線上
にずれる)、1画素の印字アスペクト比は「2:√3」
である。
The above-mentioned print image has been described by taking the printing of the frame image (all scanning) as an example, but it can be applied to the printing of the field image (every other scanning).
In the case of printing this field image, as is clear from FIG. 14 (for example, the print dot “b” in the figure is shifted to the next sub-scanning line), the print aspect ratio of one pixel is “2: √3”.
Is.

【0131】これに対応して画像メモリの1画素のアス
ペクト比を2:√3とし、仮想座標空間の仮想列座標軸
と仮想行座標軸のスケールも2:√3とすれば、上述し
た拡大率計算は、回転指示無しの場合は「仮想列単位長
さ」:「仮想行単位長さ」=2:√3として、 D/a:2√3・D/b=2:√3 の関係式から、 a:b=1:4 というaとbの関係が得られる。また、回転指示有りの
場合は、同様に、 2√3・D/c:D/d=2:√3 の関係式から、 c:d=3:1 というcとdの関係が得られる。また、この場合の拡大
率は、 w′/w=t′/t=2√3・a/c=√3・b/2c =√3・b/6d=2√3・a/3d によって求めることができる。
Correspondingly, if the aspect ratio of one pixel in the image memory is set to 2: √3 and the scales of the virtual column coordinate axis and the virtual row coordinate axis of the virtual coordinate space are also set to 2: √3, the above-described enlargement ratio calculation is performed. When there is no rotation instruction, “virtual column unit length”: “virtual row unit length” = 2: √3, and D / a: 2√3 · D / b = 2: √3 , A: b = 1: 4, the relationship between a and b is obtained. Further, in the case where there is a rotation instruction, similarly, from the relational expression of 2√3 · D / c: D / d = 2: √3, the relation between c and d of c: d = 3: 1 can be obtained. Further, the enlargement ratio in this case is obtained by w ′ / w = t ′ / t = 2√3 · a / c = √3 · b / 2c = √3 · b / 6d = 2√3 · a / 3d be able to.

【0132】図17の図表は、上述した画像メモリの1
画素のアスペクト比を2:√3とした場合のパラメータ
の一例である。この場合も、回転指示無しで拡大率10
0%のときの基準値と、この基準値に基づいて算出され
た各拡大率50%及び533%にそれぞれ対応するa、
bの値、並びに回転指示有りの場合の拡大率42%及び
739にそれぞれ対応してc、dがとるべき値を示して
いる。
The diagram of FIG. 17 shows the above-mentioned image memory 1
It is an example of the parameter when the aspect ratio of the pixel is set to 2: √3. Also in this case, the enlargement ratio is 10 without the rotation instruction.
The reference value at 0% and a corresponding to the respective enlargement ratios of 50% and 533% calculated based on the reference value,
The values of b and the values of c and d corresponding to the enlargement ratios of 42% and 739 when the rotation instruction is given are shown.

【0133】上記図17では、仮想行間隔が前述の図1
5(b) 及び図16(b) の仮想行間隔に比較して2倍にな
っている。これは、画素のアスペクト比を図15及び図
16の1:√3に対して図17では2:√3にしたこと
による。
In FIG. 17, the virtual line spacing is the same as in FIG.
It is doubled as compared with the virtual row interval in FIG. 5 (b) and FIG. 16 (b). This is because the pixel aspect ratio is 1: √3 in FIGS. 15 and 16 and is 2: √3 in FIG.

【0134】このように、仮想座標空間を用いることに
よって、一般に画像メモリの1画素のアスペクト比が二
種類ある可能性がある画像処理において、処理する画像
データの二種類のアスペクト比の関係が2倍の関係とな
る画像処理装置の構成を容易に実現することができる。
As described above, by using the virtual coordinate space, in image processing in which one pixel of the image memory may generally have two kinds of aspect ratios, the relationship between the two kinds of aspect ratios of the image data to be processed is two. It is possible to easily realize the configuration of the image processing device having the double relationship.

【0135】[0135]

【発明の効果】以上詳細に説明したように、本発明によ
れば、仮想座標を用いることにより簡単な回路構成で、
印刷画像の90度回転の有り無し両方の場合の自由な拡
大率での印刷画像を得ることができる。また、原画像デ
ータに基づいてシャープネス処理を行ってから合成処理
を行うのでシャープネス処理の利いた印刷画像を得るこ
とができる。また、仮想座標のX軸とY軸のスケールを
1:√3に設定していることにより拡大率の如何に関わ
らず副走査が偶数のときと奇数のときとで印字ドットの
位置を主走査方向に半主走査間隔ずらす印刷方法を容易
に実現できる。また、仮想座標空間を介して画像データ
を印字データに変換するので拡大率によらず一定の処理
時間で印刷画像データを得ることができる。また、仮想
座標空間によって処理を行うのでシャープネス処理及び
合成処理のためのメモリを必要とせず経済的である。ま
た、1画素2種類のアスペクト比の関係が2倍の関係と
なる画像データに対し仮想座標のX軸とY軸のスケール
を2:√3に設定することにより容易に対応できるの
で、1画素2種類のアスペクト比の関係が2倍の関係と
なる画像処理装置を容易に構成できる。
As described above in detail, according to the present invention, by using virtual coordinates, a simple circuit configuration can be realized.
It is possible to obtain a print image at a free enlargement ratio in both cases of rotating the print image by 90 degrees. Further, since the sharpness processing is performed based on the original image data and then the synthesis processing is performed, it is possible to obtain a print image with a sharpness processing effect. Further, by setting the scales of the X-axis and the Y-axis of the virtual coordinates to 1: √3, the print dot position is main-scanned when the sub-scan is even and when the sub-scan is odd, regardless of the enlargement ratio. A printing method that shifts the semi-main scanning interval in the direction can be easily realized. Further, since the image data is converted into the print data via the virtual coordinate space, the print image data can be obtained in a constant processing time regardless of the enlargement ratio. Further, since the processing is performed in the virtual coordinate space, no memory is required for the sharpness processing and the composition processing, which is economical. Further, since it is possible to easily cope with image data in which the relationship of the aspect ratio of two kinds of one pixel is doubled, by setting the scale of the X-axis and the Y-axis of the virtual coordinate to 2: √3, it is possible to easily deal with one pixel. It is possible to easily configure the image processing device in which the relationship between the two types of aspect ratios is double.

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

【図1】一実施例の画像印刷装置のブロック図である。FIG. 1 is a block diagram of an image printing apparatus according to an embodiment.

【図2】画像メモリアドレス空間と仮想座標空間との関
係を示す図である。
FIG. 2 is a diagram showing a relationship between an image memory address space and a virtual coordinate space.

【図3】画像メモリアドレス空間と仮想座標空間との対
応関係を更に詳細に示す図である。
FIG. 3 is a diagram showing the correspondence relationship between an image memory address space and a virtual coordinate space in more detail.

【図4】(a),(b) はシャープネス処理及びその後に行わ
れる合成処理を説明する図である。
FIG. 4A and FIG. 4B are diagrams illustrating a sharpness process and a synthesizing process performed thereafter.

【図5】合成について説明する図である。FIG. 5 is a diagram illustrating composition.

【図6】(a),(b) は合成処理における中間データの値を
示す図表である。
6A and 6B are charts showing values of intermediate data in the combining process.

【図7】合成処理回路の順序回路を示す図である。FIG. 7 is a diagram showing a sequential circuit of a synthesis processing circuit.

【図8】順序回路の動作のタイミングチャートである。FIG. 8 is a timing chart of the operation of the sequential circuit.

【図9】(a) は印刷画像が回転指示無しの場合の印字状
態を示す図、(b) は回転指示有りの場合の印字状態を示
す図である。
9A is a diagram showing a print state when a print image has no rotation instruction, and FIG. 9B is a diagram showing a print state when there is a rotation instruction.

【図10】印刷画像が回転指示無しの場合における印刷
画像の画素と仮想座標との対応関係を示す図である。
FIG. 10 is a diagram showing a correspondence relationship between pixels of a print image and virtual coordinates when the print image has no rotation instruction.

【図11】印刷画像が回転指示有りの場合における印刷
画像の画素と仮想座標との対応関係を示す図である。
FIG. 11 is a diagram illustrating a correspondence relationship between pixels of a print image and virtual coordinates when the print image has a rotation instruction.

【図12】仮想座標空間の仮想列を生成する仮想列生成
回路の動作のフローチャートである。
FIG. 12 is a flowchart of the operation of a virtual column generation circuit that generates a virtual column in a virtual coordinate space.

【図13】仮想座標空間の仮想行を生成する仮想行生成
回路の動作のフローチャートである。
FIG. 13 is a flowchart of the operation of a virtual row generation circuit that generates a virtual row in a virtual coordinate space.

【図14】主走査方向及び副走査方向における印字ドッ
トの配列を説明する図である。
FIG. 14 is a diagram illustrating an arrangement of print dots in a main scanning direction and a sub scanning direction.

【図15】(a) は回転指示無しの場合の仮想座標のスケ
ールと印字ドットの間隔とを対比させて示す図、(b) は
拡大率に対応するパラメータの例を示す図である。
FIG. 15A is a diagram showing the scale of virtual coordinates and the interval of print dots in contrast when there is no rotation instruction, and FIG. 15B is a diagram showing an example of parameters corresponding to the enlargement ratio.

【図16】(a) は回転指示有りの場合の仮想座標のスケ
ールと印字ドットの間隔とを対比させて示す図、(b) は
拡大率に対応するパラメータの例を示す図である。
16A is a diagram showing a scale of virtual coordinates in comparison with a print dot interval in the case where there is a rotation instruction, and FIG. 16B is a diagram showing an example of a parameter corresponding to an enlargement ratio.

【図17】画像メモリの1画素のアスペクト比を2:√
3とした場合の拡大率に対応するパラメータの例を示す
図である。
FIG. 17 shows the aspect ratio of one pixel in the image memory is 2: √
It is a figure which shows the example of the parameter corresponding to the expansion rate at the time of setting it as 3.

【図18】従来の画像処理装置の構成を示すブロック図
である。
FIG. 18 is a block diagram showing a configuration of a conventional image processing apparatus.

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

1 タイミング信号発生回路 2 CPU (Central Processing Unit) 3 アドレス生成回路 4 画像メモリ 5 画像記憶手段 6 合成処理回路A 7 合成制御回路 8 シャープネス処理回路 9 合成制御回路B 10 画像処理・印刷制御回路 11 タイミング信号発生回路 12 CPU 13 仮想列生成回路 14 仮想行生成回路 15 アドレス生成回路 16 画像メモリ 17 画像記憶手段 18 シャープネス処理回路 19 合成処理回路A 20 合成処理回路B 21 画像処理回路・印刷制御回路 22 印刷部 a、b、c、d、e、f、g、h、i、j、k、l、
m、n、o、p 画像データ(輝度信号Y) Q 合成データ F,G,J,K シャープネス処理後のデータ s コントロール信号 v、u 中間合成データ x、y、w アドレスデータ 31、32、33、34、35、36 マルチプレクサ 37、40、42 ビットシフタ 38、39、41 加算器 43、44 ラッチ 51、52 走査原点
1 Timing Signal Generation Circuit 2 CPU (Central Processing Unit) 3 Address Generation Circuit 4 Image Memory 5 Image Storage Unit 6 Synthesis Processing Circuit A 7 Synthesis Control Circuit 8 Sharpness Processing Circuit 9 Synthesis Control Circuit B 10 Image Processing / Print Control Circuit 11 Timing Signal generation circuit 12 CPU 13 Virtual column generation circuit 14 Virtual row generation circuit 15 Address generation circuit 16 Image memory 17 Image storage means 18 Sharpness processing circuit 19 Synthesis processing circuit A 20 Synthesis processing circuit B 21 Image processing circuit / print control circuit 22 Printing Parts a, b, c, d, e, f, g, h, i, j, k, l,
m, n, o, p image data (luminance signal Y) Q composite data F, G, J, K sharpened data s control signal v, u intermediate composite data x, y, w address data 31, 32, 33 , 34, 35, 36 Multiplexer 37, 40, 42 Bit shifter 38, 39, 41 Adder 43, 44 Latch 51, 52 Scan origin

───────────────────────────────────────────────────── フロントページの続き (58)調査した分野(Int.Cl.7,DB名) H04N 1/38 - 1/409 G06T 3/00 - 3/60 G06F 3/12 B41J 5/30 ─────────────────────────────────────────────────── ─── Continued Front Page (58) Fields surveyed (Int.Cl. 7 , DB name) H04N 1/38-1/409 G06T 3/00-3/60 G06F 3/12 B41J 5/30

Claims (7)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】画像データを印刷出力する画像印刷装置に
おいて、 画像メモリのアドレス空間に対応した仮想座標空間上に
おける座標を計算する座標計算手段と、 前記画像メモリから読み出した画像データと前記座標計
算手段による座標の計算結果とに基づいて印刷データを
作成する画像処理手段と、を有し、 前記仮想座標空間は仮想列座標と仮想行座標からなり、
前記座標計算手段は、前記仮想座標上の仮想列初期値、
仮想列間隔、仮想行初期値、仮想行間隔、前記画像メモ
リから読み出した画像データを印刷データとして出力す
る際の画像回転の有無、及び画像回転を行う場合の回転
角度とに基づいて座標計算を行う ことを特徴とする画像
印刷装置。
1. An image printing apparatus for printing and outputting image data, coordinate calculation means for calculating coordinates in a virtual coordinate space corresponding to an address space of an image memory, image data read from the image memory and the coordinate calculation. a image processing means for creating print data based on the calculation result of the coordinates by means of said virtual coordinate space comprises a virtual column coordinate and a virtual line coordinates,
The coordinate calculation means is a virtual column initial value on the virtual coordinate,
Virtual column spacing, virtual row initial value, virtual row spacing, image memo
Output the image data read from the printer as print data.
Whether to rotate the image when rotating, and the rotation when rotating the image
An image printing device characterized by performing coordinate calculation based on an angle .
【請求項2】 前記座標計算手段は、少なくとも前記仮想
列初期値及び前記仮想行初期値により印刷画像の前記画
像メモリ上の位置を決定することを特徴とする請求項1
記載の画像印刷装置。
2. The coordinate calculation means determines the position of a print image on the image memory based on at least the virtual column initial value and the virtual row initial value.
The image printing device described.
【請求項3】 前記座標計算手段は、前記仮想列間隔及び
前記仮想行間隔により印刷画像の拡大率を決定すること
を特徴とする請求項1記載の画像印刷装置。
3. The image printing apparatus according to claim 1, wherein the coordinate calculation unit determines the enlargement ratio of the print image based on the virtual column spacing and the virtual row spacing.
【請求項4】 前記座標計算手段は、副走査方向が偶数番
目の主走査と副走査方向が奇数番目の主走査とでは主走
査方向の仮想座標の初期値を主走査方向の仮想座標間隔
の1/2ずらして設定することを特徴とする請求項1記
載の画像印刷装置。
Wherein said coordinate calculating means, the sub-scanning direction of the even-numbered main scanning and sub-scanning direction the virtual coordinate space of the odd-numbered main scanning direction an initial value of the main scanning direction of the virtual coordinate in the main scanning The image printing apparatus according to claim 1, wherein the image printing apparatus is set to be shifted by 1/2.
【請求項5】 前記画像処理手段は、前記画像回転の有無
に応じて画像メモリの画素データを印刷用紙の長手方向
または横手方向に印刷するよう印字出力することを特徴
とする請求項1記載の画像印刷装置。
Wherein said image processing means, according to claim 1, wherein the printed output to print the pixel data of the image memory in longitudinal or transverse direction of the printing paper in accordance with the presence or absence of the image rotation Image printing device.
【請求項6】 前記画像処理手段は、前記画像メモリの出
力に対し輪郭強調処理を行って処理済み輝度信号を出力
し、仮想列アドレス及び仮想行アドレスに基づいて前記
処理済み輝度信号を合成処理することにより前記印刷デ
ータを作成することを特徴とする請求項1記載の画像印
刷装置。
Wherein said image processing means, outputs the processed luminance signal by performing edge enhancement processing to the output of the image memory
Based on the virtual column address and virtual row address
The image printing apparatus according to claim 1, wherein the print data is created by synthesizing processed luminance signals .
【請求項7】 前記画像処理手段は、前記画像メモリの1
画素のアスペクト比(たてよこ比)を一桁の整数の平方
根の比で表わし前記画像回転による前記仮想列間隔と前
記仮想行間隔との比を一桁の整数の比となるよう設定す
ることを特徴とする請求項1記載の画像印刷装置。
7. The image processing means is one of the image memories.
Representing the aspect ratio (vertical ratio) of a pixel by the ratio of the square root of a one-digit integer, and setting the ratio of the virtual column interval and the virtual row interval by the image rotation to be a one-digit integer ratio. The image printing apparatus according to claim 1, wherein
JP10007394A 1994-05-13 1994-05-13 Image printing device Expired - Fee Related JP3475489B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP10007394A JP3475489B2 (en) 1994-05-13 1994-05-13 Image printing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP10007394A JP3475489B2 (en) 1994-05-13 1994-05-13 Image printing device

Publications (2)

Publication Number Publication Date
JPH07307858A JPH07307858A (en) 1995-11-21
JP3475489B2 true JP3475489B2 (en) 2003-12-08

Family

ID=14264286

Family Applications (1)

Application Number Title Priority Date Filing Date
JP10007394A Expired - Fee Related JP3475489B2 (en) 1994-05-13 1994-05-13 Image printing device

Country Status (1)

Country Link
JP (1) JP3475489B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4728744B2 (en) * 2005-08-29 2011-07-20 シャープ株式会社 Image processing device

Also Published As

Publication number Publication date
JPH07307858A (en) 1995-11-21

Similar Documents

Publication Publication Date Title
US4651287A (en) Digital image processing algorithm for output devices with discrete halftone gray scale capability
JP2733696B2 (en) Halftone pixel processor
EP0369702B1 (en) Image processing apparatus and method
US5781666A (en) Image processing method and apparatus suitable for both high-resolution and low-resolution image data
JPH1028230A (en) Method for processing image and device therefor
US5877865A (en) Image processing apparatus and method for printing data described in a page description language
JP3475489B2 (en) Image printing device
JP2000280564A (en) Method and system for printing
JP2856420B2 (en) Character pattern data generation method
JP2907487B2 (en) Image processing method and apparatus
JPH07285245A (en) Video printer
JPH0795260B2 (en) Information processing equipment
JP3184639B2 (en) Image processing apparatus and method
JP3671529B2 (en) Thermal transfer recording apparatus and recording method
JPH056829B2 (en)
JP2751121B2 (en) Image processing device
JP3476270B2 (en) Print data creation device
JP2975025B2 (en) Color scheme simulation system
JPH0698154A (en) Dot recorder
JP3015092B2 (en) Document processing method and apparatus
JPH04573A (en) Image processor
JPH06149223A (en) Display device and its relative device, and image display system
JPH04574A (en) Image processor
JPS60236773A (en) Output device
JP2004064473A (en) Method for preparing threshold matrix and device for preparing color image data

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20030826

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

Free format text: PAYMENT UNTIL: 20090926

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20100926

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20100926

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20110926

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20120926

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20130926

Year of fee payment: 10

LAPS Cancellation because of no payment of annual fees