JP2005117557A - Image reading apparatus, printer, and reading method of image data - Google Patents

Image reading apparatus, printer, and reading method of image data Download PDF

Info

Publication number
JP2005117557A
JP2005117557A JP2003352367A JP2003352367A JP2005117557A JP 2005117557 A JP2005117557 A JP 2005117557A JP 2003352367 A JP2003352367 A JP 2003352367A JP 2003352367 A JP2003352367 A JP 2003352367A JP 2005117557 A JP2005117557 A JP 2005117557A
Authority
JP
Japan
Prior art keywords
image data
image
memory
buffer
printing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2003352367A
Other languages
Japanese (ja)
Inventor
Seiji Kojima
聖司 小島
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.)
Seiko Epson Corp
Original Assignee
Seiko Epson Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Seiko Epson Corp filed Critical Seiko Epson Corp
Priority to JP2003352367A priority Critical patent/JP2005117557A/en
Publication of JP2005117557A publication Critical patent/JP2005117557A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Record Information Processing For Printing (AREA)
  • Facsimiles In General (AREA)
  • Storing Facsimile Image Data (AREA)
  • Editing Of Facsimile Originals (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide an image reading apparatus, a printer, and a reading method of image data capable of improving the print throughput when expanding the image data captured by scanning and printing out the image data on a plurality of print media. <P>SOLUTION: In printing posters, first to third images 40a to 40c are read by one scanning. Image data 41a to 41c of the images are once transferred to a line buffer 32. Then the first image data 41a are transferred to an input buffer 33 and subjected to image processing and the second and third image data 41b, 41c are stored in a RAM 22 for a CPU. Then the second image data 41b are transferred to the input buffer 33 in succession to the end of the image data 41a and the third image data 41c are transferred to the input buffer 33 after that. <P>COPYRIGHT: (C)2005,JPO&NCIPI

Description

本発明は、画像をスキャンによって読み取り可能な画像読取装置、印刷装置及び画像データの読取方法に関する。   The present invention relates to an image reading apparatus, a printing apparatus, and an image data reading method capable of reading an image by scanning.

近年、プリンタではプリンタ機能にスキャナ機能を追加した複合機と呼ばれる機種が開発されている。この複合機は、スキャナで読み取ったスキャンデータを基に印刷処理を行うコピー機として使用することが可能であり、ホストコンピュータから印刷データをもらわずに単体で印刷処理が実行可能である。また、複合機はホストコンピュータからの印刷データに基づき印刷処理が可能であるし、スキャナで読み取ったスキャンデータをホストコンピュータに送信する機能も備えている。   In recent years, printers have been developed that are called multifunction devices in which a scanner function is added to a printer function. This multifunction device can be used as a copier that performs print processing based on scan data read by a scanner, and can execute print processing alone without receiving print data from a host computer. Further, the multi-function peripheral can perform print processing based on print data from the host computer, and has a function of transmitting scan data read by the scanner to the host computer.

ところで、この複合機を用い、スキャンした1枚分の画像データを拡大して複数の用紙に印刷を行う拡大印刷(ポスタ印刷)を行う場合がある。しかし、この拡大印刷の場合、1回のスキャンでは用紙1枚分の画像をスキャンする構成であるので、それぞれの用紙ごとにスキャンを行う必要が生じていた。従って、例えば3×3の9枚で拡大印刷する場合には9回のスキャンが必要となり、スキャンの回数が多くなることから、その分だけ印刷時間が長引くという問題があった。   By the way, there is a case where enlargement printing (poster printing) for enlarging one scanned image data and printing on a plurality of sheets is performed using this multi-function peripheral. However, in the case of this enlarged printing, an image for one sheet is scanned in one scan, and thus it is necessary to perform scanning for each sheet. Therefore, for example, when 9 × 3 × 3 enlargement printing is performed, nine scans are required, and the number of scans increases, so there is a problem that the printing time is prolonged accordingly.

本発明は、スキャンで取り込んだ画像データを拡大して複数枚の印刷媒体で印刷出力する場合に、印刷のスループットを向上できる画像読取装置、印刷装置及び画像データの読取方法を提供することにある。   An object of the present invention is to provide an image reading apparatus, a printing apparatus, and an image data reading method capable of improving printing throughput when image data captured by scanning is enlarged and printed out by a plurality of printing media. .

上記問題点を解決するために、この発明では、スキャナによってスキャンした画像を拡大して複数の印刷媒体に印刷出力するときに、前記画像の画像データをデータ処理する画像読取装置において、前記画像データを画像処理する際に該画像データが書き込まれるバッファと、前記画像データを一時的に記憶可能なメモリと、スキャンした前記画像データのうち前記印刷媒体の1枚目に印刷する画像データを前記バッファに送って画像処理を実行させ、前記バッファでの画像処理が完了するまで残りの画像データを前記メモリに蓄積し、その蓄積した画像データを1枚目の画像データに続けて前記バッファに送る制御手段とを備えた構成とする。   In order to solve the above problems, in the present invention, in an image reading apparatus that processes image data of an image when the image scanned by a scanner is enlarged and printed on a plurality of print media, the image data A buffer in which the image data is written when image processing is performed, a memory capable of temporarily storing the image data, and image data to be printed on the first sheet of the print medium among the scanned image data Control to send image data to the image processing unit, store the remaining image data in the memory until image processing in the buffer is completed, and send the stored image data to the buffer following the first image data. And a means.

この構成によれば、スキャンした画像を拡大して複数枚の印刷媒体に印刷出力する印刷形式(例えばポスタ印刷)の場合、用紙複数枚分の画像を一度にスキャンし、その1枚目の画像データを印刷処理にまわし、残りをメモリに蓄積しておいて、先に画像処理にまわした1枚目の画像データに続けてメモリ内の画像データを印刷処理にまわす構成とした。従って、印刷媒体を1枚ずつスキャンして印刷出力すると印刷時間が長くなってしまうが、本例の構成を用いればスキャン回数が少なく済み、この印刷形式での印刷のスループットが向上する。   According to this configuration, in the case of a print format (for example, poster printing) in which a scanned image is enlarged and printed on a plurality of print media, a plurality of sheets of images are scanned at a time, and the first image The data is sent to the printing process, the rest is stored in the memory, and the image data in the memory is sent to the printing process following the first image data that has been sent to the image processing. Accordingly, if the print medium is scanned and printed one by one, the printing time becomes long. However, if the configuration of this example is used, the number of scans can be reduced, and the printing throughput in this printing format is improved.

この発明では、前記スキャナは、前記画像の全範囲のうち印刷媒体の枚数に応じて決まる所定範囲を1回のスキャンで取り込むとともに、前記制御手段は、前記スキャナが取り込んだ前記所定範囲の画像のうち1枚目の画像データを画像処理にまわすとともに残りを前記メモリに蓄積し、前記メモリに蓄積しておいた画像データを前記に送って印刷処理が完了すると、前記スキャナに次の所定範囲のスキャンを実行させ、この処理を画像全体のスキャンが完了するまで繰り返す構成とする。この構成によれば、Pを2以上の整数とした場合、印刷形式がP×Pのポスタ印刷であっても対応可能となる。   According to the present invention, the scanner captures a predetermined range determined according to the number of print media in the entire range of the image in one scan, and the control means captures the image in the predetermined range captured by the scanner. Among them, the first image data is subjected to image processing and the rest is accumulated in the memory. When the image data accumulated in the memory is sent to the above and the printing process is completed, the scanner has the following predetermined range. The scan is executed, and this process is repeated until the entire image is scanned. According to this configuration, when P is an integer of 2 or more, it is possible to support poster printing with a printing format of P × P.

この発明では、前記メモリのメモリ量とスキャン印刷時の諸条件とに基づき、前記印刷媒体の何枚分の画像データが前記メモリに蓄積可能かを算出する算出手段を備え、前記制御手段は、前記算出手段の算出結果に基づき前記スキャナによるスキャン回数を決定し、前記算出手段で求めた回数分のスキャンを前記スキャナに実行させる構成とする。この構成によれば、その時々に応じた最適なスキャン回数が設定可能となり、スキャン回数を必要最低限の回数に設定することが可能となる。   In the present invention, based on the memory amount of the memory and various conditions at the time of scan printing, a calculation unit that calculates how many pieces of image data of the print medium can be stored in the memory, the control unit includes: The number of scans by the scanner is determined based on the calculation result of the calculation unit, and the scanner is caused to execute the number of scans obtained by the calculation unit. According to this configuration, it is possible to set the optimum number of scans according to the time, and it is possible to set the number of scans to the minimum necessary number.

この発明では、前記メモリは、前記画像データを蓄積可能な領域がそのときの該メモリの使用状態に応じて可変であるとともに、前記算出手段は、前記メモリの全メモリ量のうち前記画像データを蓄積可能なメモリ量を算出し、前記メモリ量に基づき印刷媒体何枚分の画像データが前記メモリに蓄積可能かを算出する構成とする。この構成によれば、メモリに最大限蓄積可能な画像枚数がその都度算出されることになり、メモリ量に応じた最適なスキャン回数が設定可能となり、装置としての性能が向上する。   According to the present invention, the area in which the image data can be stored in the memory is variable in accordance with a use state of the memory at that time, and the calculation means calculates the image data out of the total memory amount of the memory. The amount of memory that can be stored is calculated, and based on the amount of memory, how many print media image data can be stored in the memory is calculated. According to this configuration, the maximum number of images that can be stored in the memory is calculated each time, and an optimum number of scans can be set according to the amount of memory, thereby improving the performance of the apparatus.

この発明では、前記バッファは、全体の記憶領域を複数に区分することによって複数の分割記憶領域を有した構成であるとともに、前記制御手段は、前記メモリに蓄積された画像データを所定のライン単位で前記分割記憶領域へ順に書き込むとともに、書き込まれた画像データが画像処理されて空きが生じるとそこに次の画像データを書き込み、この処理を繰り返し実行してメモリ内の画像データを前記バッファに送る構成とする。この構成によれば、ある分割記憶領域ではメモリ内の画像データのバッファへの転送が行われ、他の分割記憶領域では書き込まれた画像データの次処理への転送が行われる。従って、メモリ内のバッファへの転送と、バッファに書き込まれた画像データの次処理への転送とを重ね合わせることが可能となり、メモリ内の画像データのバッファへの転送が高速化する。   In the present invention, the buffer has a configuration having a plurality of divided storage areas by dividing the entire storage area into a plurality of areas, and the control means stores the image data stored in the memory in predetermined line units. The image data is sequentially written to the divided storage area, and when the written image data is subjected to image processing and a space is generated, the next image data is written therein, and this processing is repeatedly executed to send the image data in the memory to the buffer. The configuration. According to this configuration, the image data in the memory is transferred to a buffer in a certain divided storage area, and the written image data is transferred to the next process in another divided storage area. Therefore, it is possible to superimpose the transfer to the buffer in the memory and the transfer of the image data written in the buffer to the next process, and the transfer of the image data in the memory to the buffer is accelerated.

この発明では、スキャンした画像データに基づく印刷処理を、前記スキャナによる画像のスキャンに重ね合わせて実行させる印刷実行手段を備えた構成とする。この構成によれば、スキャン処理と印刷出力とが重ね合わされるので、例えばスキャンと印刷処理とを別々に行う場合に比べて印刷のスループットが向上する。   In the present invention, the print processing unit based on the scanned image data is provided with a print execution unit that executes the print process in an overlapping manner with the scan of the image by the scanner. According to this configuration, since the scanning process and the print output are overlapped, the printing throughput is improved as compared with, for example, the case where the scanning and the printing process are performed separately.

この発明では、請求項のいずれか一項に記載の画像読取装置と、前記スキャナによって読み取られた画像データに基づき前記印刷媒体に印刷処理を実行する印刷機構とを備えた印刷装置である構成とする。   The present invention is a printing apparatus comprising: the image reading apparatus according to any one of claims; and a printing mechanism that executes a printing process on the print medium based on image data read by the scanner. To do.

この発明では、スキャナでスキャンした画像を拡大して複数枚の印刷媒体に印刷出力するときに、バッファを用いて前記画像の画像データをデータ処理する画像データの読取方法において、制御手段は前記スキャナで取り込んだ前記画像データのうち前記印刷媒体の1枚目に印刷する画像データを前記バッファに送って画像処理を実行させ、前記バッファでの画像処理が完了するまで残りの画像データをメモリに蓄積し、その蓄積した画像データを1枚目の画像データに続けて前記バッファに送る構成とする。   According to the present invention, in the image data reading method in which the image data of the image is processed using a buffer when the image scanned by the scanner is enlarged and printed on a plurality of print media, the control means includes the scanner The image data to be printed on the first sheet of the print medium is sent to the buffer from among the image data captured in step 1, the image processing is executed, and the remaining image data is stored in the memory until the image processing in the buffer is completed. Then, the stored image data is sent to the buffer following the first image data.

以下、本発明を具体化した画像読取装置、印刷装置及び画像データの読取方法の一実施形態を図1〜図8に従って説明する。
図1は、印刷装置としてのプリンタ1の斜視図である。プリンタ1は、ホストコンピュータに接続することなく一台で印刷処理が可能なインクジェット式のスタンドアロン機である。プリンタ1は、原稿台2に載せた原稿(見本)をスキャンして、その画像を印刷媒体としての用紙3に印刷するスキャナ印刷(コピー印刷)が可能である。また、プリンタ1はスキャンした画像データをホストコンピュータに送信するスキャン読取りや、ホストコンピュータから受信した印刷データを印刷出力することも可能である。
Hereinafter, an embodiment of an image reading apparatus, a printing apparatus, and an image data reading method embodying the present invention will be described with reference to FIGS.
FIG. 1 is a perspective view of a printer 1 as a printing apparatus. The printer 1 is an ink jet stand-alone machine that can perform printing processing by itself without being connected to a host computer. The printer 1 can perform scanner printing (copy printing) by scanning a document (sample) placed on a document table 2 and printing the image on a sheet 3 as a printing medium. In addition, the printer 1 can scan and transmit scanned image data to a host computer, and can print out print data received from the host computer.

プリンタ1の前面右側下部には、メモリーカード4を挿し込むためのカードスロット5が配設されている。メモリーカード4には、デジタルカメラ等で撮影された画像がデジタル信号の画像情報として記憶されている。メモリーカード4の画像情報は、例えばデータ圧縮したJPEGファイルや、データ非圧縮のTIFFファイル、BITMAPファイル等で書き込まれている。プリンタ1は、カードスロット5に挿し込まれたメモリーカード4の画像情報を読み取り、所望の画像を用紙3に印刷するカード印刷が実行可能である。   A card slot 5 for inserting a memory card 4 is disposed at the lower right side of the front surface of the printer 1. The memory card 4 stores an image taken with a digital camera or the like as image information of a digital signal. The image information of the memory card 4 is written in, for example, a data-compressed JPEG file, a data non-compressed TIFF file, a BITMAP file, or the like. The printer 1 can execute card printing in which image information of the memory card 4 inserted into the card slot 5 is read and a desired image is printed on the paper 3.

プリンタ1のケース6の側面には操作パネル部7が配設され、この操作パネル部7にはLCD8や各種スイッチ類9が配設されている。LCD8には、プリンタ1のメニュー機能、印刷条件、動作内容、動作状況、エラー内容等が表示される。また、各種スイッチ類9としては電源を通電・遮断する電源ボタン10、プリンタ1の印刷条件を設定するときに操作する選択ボタン11、スキャナ印刷やカード印刷を開始するときに捜査する印刷開始ボタン12(カラー・モノクロの2種類)等がある。   An operation panel section 7 is disposed on the side surface of the case 6 of the printer 1, and an LCD 8 and various switches 9 are disposed on the operation panel section 7. The LCD 8 displays the menu function, printing conditions, operation contents, operation status, error contents, and the like of the printer 1. The various switches 9 include a power button 10 for energizing and shutting off the power, a selection button 11 that is operated when setting printing conditions of the printer 1, and a print start button 12 that is investigated when starting scanner printing and card printing. (Two types of color and monochrome).

図2は、プリンタ1の電気的構成を示すブロック図である。プリンタ1はスキャナとしてのスキャナユニット13及びプリンタユニット14を備えている。スキャナユニット13は例えば露光ランプ、CCDセンサ、パルスモータ及びスキャナ入力回路等からなり、原稿台2に置かれた原稿をスキャン可能である。また、プリンタユニット14は例えばヘッド15、キャリッジ16、キャリッジモータ17及び紙送りモータ18等からなり、キャリッジ16が走査方向Aに往復動してヘッド15からインクを吐出し、用紙3を紙送りする動作を行って印刷を実行する。   FIG. 2 is a block diagram illustrating an electrical configuration of the printer 1. The printer 1 includes a scanner unit 13 and a printer unit 14 as scanners. The scanner unit 13 includes, for example, an exposure lamp, a CCD sensor, a pulse motor, a scanner input circuit, and the like, and can scan a document placed on the document table 2. The printer unit 14 includes, for example, a head 15, a carriage 16, a carriage motor 17, and a paper feed motor 18. The carriage 16 reciprocates in the scanning direction A to eject ink from the head 15 and feed the paper 3. Perform the operation and print.

プリンタ1はメイン制御を司るCPU19を備え、CPU19にはバス20を介してROM21、メモリとしてのCPU用のRAM22、ASIC23が接続されている。ROM21には、プリンタ1の起動・動作時に実行される制御プログラム、スキャナユニット13の動作を制御するためのスキャン用制御パラメータ、プリンタユニット14の動作を制御するためのプリンタ用制御パラメータ等が記憶されている。ROM21には、ポスタ印刷時にスキャンで読み取った画像データをデータ処理するための読取制御プログラムも記憶されている。なお、算出手段はCPU19及び読取制御プログラムにより構成される。   The printer 1 includes a CPU 19 that performs main control. A ROM 21, a CPU RAM 22 as a memory, and an ASIC 23 are connected to the CPU 19 via a bus 20. The ROM 21 stores a control program executed when the printer 1 is started and operated, a scan control parameter for controlling the operation of the scanner unit 13, a printer control parameter for controlling the operation of the printer unit 14, and the like. ing. The ROM 21 also stores a reading control program for data processing of image data read by scanning during poster printing. The calculating means is constituted by the CPU 19 and a reading control program.

プリンタユニット14はプリンタエンジンコントローラ24を介してCPU19に接続されている。また、カードスロット5はカードI/F回路25を介してCPU19に接続されている。CPU19はカードI/F回路25を介して、メモリーカード4の画像の読み/書きを行う。また、CPU19はスキャン用制御パラメータに基づきスキャナユニット13を駆動してスキャンを実行させ、原稿台2にセットされた原稿(見本)の画像を読み込む。なお、印刷実行手段はASIC23及び読取制御プログラムにより構成され、印刷機構はプリンタユニット14及びASIC23により構成される。   The printer unit 14 is connected to the CPU 19 via the printer engine controller 24. The card slot 5 is connected to the CPU 19 via the card I / F circuit 25. The CPU 19 reads / writes the image on the memory card 4 via the card I / F circuit 25. Further, the CPU 19 drives the scanner unit 13 based on the scanning control parameters to execute scanning, and reads an image of a document (sample) set on the document table 2. The print execution unit is configured by the ASIC 23 and the reading control program, and the printing mechanism is configured by the printer unit 14 and the ASIC 23.

ASIC23は、スキャナコントローラ26、レイアウタ27、ハーフトーンコントローラ(以下、HTコントローラと記す)28、マイクロウィーブコントローラ(以下、MWコントローラと記す)29及びCPUインターフェースユニット30とを備えている。また、ASIC23にはASIC用のRAM31が接続され、RAM31はラインバッファ32、バッファとしてのインプットバッファ33、ハーフトーンバッファ34及びイメージバッファ35として使用される。なお、制御手段はレイアウタ27及び読取制御プログラムにより構成される。   The ASIC 23 includes a scanner controller 26, a layouter 27, a halftone controller (hereinafter referred to as HT controller) 28, a microweave controller (hereinafter referred to as MW controller) 29, and a CPU interface unit 30. An ASIC RAM 31 is connected to the ASIC 23, and the RAM 31 is used as a line buffer 32, an input buffer 33 as a buffer, a halftone buffer 34, and an image buffer 35. The control means includes a layouter 27 and a reading control program.

スキャナコントローラ26はスキャナユニット13を駆動制御するとともに、CCDセンサで読み取った画像データ(スキャンデータ)をラインバッファ32に一旦格納する。この画像データは、RGB系の画素データ(以下、RGBデータと記す)36としてラインバッファ32に格納される。しかし、RGBデータ36は画素ごとにRGB,RGB,…とは並んでおらず、例えば図3に示すようにRだけのライン(Rラインデータ36a)、Gだけのライン(Gラインデータ36b)、Bライン(Bラインデータ36c)だけのラインというように1ラインに付き一色の状態で書き込まれる。   The scanner controller 26 drives and controls the scanner unit 13 and temporarily stores image data (scan data) read by the CCD sensor in the line buffer 32. This image data is stored in the line buffer 32 as RGB pixel data (hereinafter referred to as RGB data) 36. However, the RGB data 36 is not aligned with RGB, RGB,... For each pixel. For example, as shown in FIG. 3, only R lines (R line data 36a), only G lines (G line data 36b), One line is written in a single color state such as only a B line (B line data 36c).

このスキャン処理の際、レイアウタ27はRAM31の空きメモリ領域を参照してインプットバッファ33を確保すると、スキャナコントローラ26に対し画像データをインプットバッファ33に転送する旨の指令を出力する。これにより、スキャナコントローラ26はラインバッファ32に数ライン分のデータが蓄積されると、その画像データをインプットバッファ33に転送する。このとき、スキャナコントローラ26は、図3に示すようにRGBデータ36を画素ごとにRGB,RGB,…と並び替え、複数のRGBラインデータ36dとしてインプットバッファ33に格納する。   During this scanning process, when the layouter 27 secures the input buffer 33 by referring to the free memory area of the RAM 31, the layouter 27 outputs a command to the scanner controller 26 to transfer the image data to the input buffer 33. As a result, when data for several lines is accumulated in the line buffer 32, the scanner controller 26 transfers the image data to the input buffer 33. At this time, as shown in FIG. 3, the scanner controller 26 rearranges the RGB data 36 into RGB, RGB,... For each pixel, and stores it in the input buffer 33 as a plurality of RGB line data 36d.

そして、レイアウタ27はインプットバッファ33がフル状態になると、インプットバッファ33内の全てのRGBデータ36をHTコントローラ28に送出する。そしてHTコントローラ28は、インプットバッファ33から送られてきたRGBデータ36に色変換処理やハーフトーン処理(例えば、2値化処理及びディザ処理)を施して、これら処理後の画像データをハーフトーンバッファ(以下、HTバッファと記す)34に格納する。   When the input buffer 33 becomes full, the layouter 27 sends all the RGB data 36 in the input buffer 33 to the HT controller 28. The HT controller 28 performs color conversion processing and halftone processing (for example, binarization processing and dither processing) on the RGB data 36 sent from the input buffer 33, and the image data after these processing is processed in the halftone buffer. (Hereinafter referred to as HT buffer) 34.

このときの画像処理を詳述すると、まずHTコントローラ28は、ROM21内のルックアップテーブル(LUT)を参照してインプットバッファ33内のRGBデータ36に色変換処理を施し、RGBデータ36をCMYK系の画素データ(以下、CMYKデータと記す)37に変換する。続いてHTコントローラ28は、高値分解能(例えば256階調)であるCMYKデータ37を誤差拡散法等の手法により低値分解能(例えば2値)のデータへ2値化したり、256色のパレットにない色を表現するためにCMYKデータ37にディザ処理を施したりして、CMYK4色のイメージデータとする。   The image processing at this time will be described in detail. First, the HT controller 28 refers to a lookup table (LUT) in the ROM 21 to perform color conversion processing on the RGB data 36 in the input buffer 33, and converts the RGB data 36 into the CMYK system. Pixel data (hereinafter referred to as CMYK data) 37. Subsequently, the HT controller 28 binarizes the CMYK data 37 having a high value resolution (for example, 256 gradations) into data having a low value resolution (for example, binary values) by a technique such as an error diffusion method, or does not exist in the 256 color palette. In order to express colors, the CMYK data 37 is subjected to dither processing to obtain CMYK four-color image data.

そして、HTコントローラ28はHTバッファ34内のCMYKデータ37をMWコントローラ29に送出する。MWコントローラ29は色変換及びハーフトーン処理後のCMYKデータ37をマイクロウィーブ処理し、ヘッド15が一走査するときに印刷処理すべき一走査分のヘッド駆動データ38を生成して、イメージバッファ35に順次格納する。このヘッド駆動データ38は、ヘッド15の各ノズルに対しインク吐出の有無と吐出量を指示する2値データである。   Then, the HT controller 28 sends the CMYK data 37 in the HT buffer 34 to the MW controller 29. The MW controller 29 performs microweave processing on the CMYK data 37 after color conversion and halftone processing, generates head driving data 38 for one scan to be printed when the head 15 performs one scanning, and stores it in the image buffer 35. Store sequentially. The head drive data 38 is binary data that indicates the presence / absence of ink ejection and the ejection amount for each nozzle of the head 15.

マイクロウィーブ処理について説明すると、ヘッド15は用紙3の送り方向(副走査方向)のノズルピッチでドットを形成するため、連続する番号のラスタを1回の主走査で形成することができない。そこで、毎回の主走査ではノズルピッチ間隔で複数本のラスタを形成しながら、ラスタを形成する度に形成位置を少しずつずらして、ラスタとラスタの間を少しずつラスタで埋めていくようにして、最終的に連続したラスタを形成する処理をマイクロウィーブ処理という。   The microweave process will be described. Since the head 15 forms dots at the nozzle pitch in the paper 3 feed direction (sub-scanning direction), it is impossible to form rasters with consecutive numbers in one main scan. Therefore, in each main scan, while forming a plurality of rasters at nozzle pitch intervals, the formation position is shifted little by little every time a raster is formed, and the rasters are filled with rasters little by little. The process of finally forming a continuous raster is called a microweave process.

この後、CPU19は一走査分のヘッド駆動データ38がイメージバッファ35に溜まり次第、それを順次、CPUインターフェースユニット30を介して読み出し、そのヘッド駆動データ38を一走査分ずつ順次プリンタエンジンコントローラ24に出力する。プリンタエンジンコントローラ24は、ヘッド駆動データ38に基づきヘッド15を駆動させるとともに、プリンタ用制御パラメータに基づきキャリッジモータ17や紙送りモータ18等を駆動して用紙3に印刷を実行する。   Thereafter, as soon as the head drive data 38 for one scan is accumulated in the image buffer 35, the CPU 19 sequentially reads out the head drive data 38 via the CPU interface unit 30, and sequentially outputs the head drive data 38 to the printer engine controller 24 for each scan. Output. The printer engine controller 24 drives the head 15 based on the head drive data 38 and drives the carriage motor 17 and the paper feed motor 18 based on the printer control parameters to execute printing on the paper 3.

また、1枚の用紙3に複数の画像を印刷するレイアウト印刷や、画像の回転方向を例えば90度、180度、270度と変える回転印刷を行う場合、CPU19はスキャンした画像データをラインバッファ32を通じてCPU用のRAM22に一旦書き込む。そして、CPU19はRAM22を作業領域として、取り込んだ画像データに対しレイアウト変換や回転変換を実施する。こうすれば、データ出し入れの際の処理速度が速くなり、各処理を短時間で行うことが可能である。レイアウト変換や回転変換が済まされた画像データはインプットバッファ33に送られて、上述した画像処理を経て印刷出力される。   When performing layout printing for printing a plurality of images on one sheet 3 or rotating printing for changing the image rotation direction to, for example, 90 degrees, 180 degrees, and 270 degrees, the CPU 19 stores the scanned image data in the line buffer 32. Then, the data is temporarily written in the CPU RAM 22. Then, the CPU 19 performs layout conversion and rotation conversion on the captured image data using the RAM 22 as a work area. In this way, the processing speed at the time of data input / output is increased, and each processing can be performed in a short time. The image data that has undergone layout conversion and rotation conversion is sent to the input buffer 33, and is printed out through the image processing described above.

次に、スキャンした画像でポスタ印刷を行うときの画像データのデータ処理について以下に説明する。ポスタ印刷とは、図4に示すように1枚の画像39を複数枚の用紙3,3,…に分けて印刷出力する印刷方法である。さて、操作パネル部7の操作によって印刷条件がポスタ印刷が設定され、印刷開始ボタン12が押されると、CPU19は読取制御プログラムに基づき画像39をスキャンしてポスタ印刷を実施する。なお、本例は図4に示すように1枚の画像39が3×3の合計9枚で印刷出力されたとする。   Next, data processing of image data when performing poster printing with a scanned image will be described below. Poster printing is a printing method in which a single image 39 is printed on a plurality of sheets 3, 3,... As shown in FIG. When the printing condition is set to poster printing by the operation of the operation panel unit 7 and the print start button 12 is pressed, the CPU 19 scans the image 39 based on the reading control program and performs poster printing. In this example, as shown in FIG. 4, it is assumed that one image 39 is printed out with a total of 9 sheets of 3 × 3.

ここで、印刷開始ボタン12が押されたとき、CPU19はスキャナユニット13及びプリンタユニット14が使用中か否かを確認する。そして、使用中でなければCPU19はASIC23(スキャナコントローラ26)にその旨を出力し、ASIC23にRAM31の動作状態を確認させる。ここでは、RAM31の空き領域を確認し、ポスタ印刷可能な程度の空き領域があればスキャン処理を実行してポスタ印刷が開始される。一方、RAM31に充分な空き領域がない場合にはASIC23からNGが返され、CPU19は他の処理が実行されていると判断してLCD8にその旨を表示させる。   Here, when the print start button 12 is pressed, the CPU 19 checks whether the scanner unit 13 and the printer unit 14 are in use. If it is not in use, the CPU 19 outputs a message to that effect to the ASIC 23 (scanner controller 26), and causes the ASIC 23 to check the operation state of the RAM 31. Here, the empty area of the RAM 31 is confirmed, and if there is an empty area sufficient for poster printing, scan processing is executed and poster printing is started. On the other hand, if there is not enough free space in the RAM 31, NG is returned from the ASIC 23, and the CPU 19 determines that other processing is being executed and displays that on the LCD 8.

続いて、ポスタ印刷が可能な状況下の場合、CPU19はRAM22に用紙何枚分の画像データが蓄積可能かを算出する。即ち、スキャンした画像データを蓄積可能なRAM22のメモリ量をMemory(Byte)、図5に示すようにスキャンされる画像39の用紙1枚分に対応する画像39aの幅をW(inch)、高さをH(inch)とする。また、画像39の幅方向のスキャン解像度(記憶解像度)をResW(dpi )、画像高さ方向のスキャン解像度をResH(dpi )とすると、RAM22に蓄積可能な画像枚数は以下の式(1) によって算出される。   Subsequently, in a situation where poster printing is possible, the CPU 19 calculates how many sheets of image data can be stored in the RAM 22. That is, the memory amount of the RAM 22 that can store the scanned image data is Memory (Byte), and the width of the image 39a corresponding to one sheet of the scanned image 39 is W (inch), as shown in FIG. Let H be (inch). If the scan resolution (storage resolution) in the width direction of the image 39 is ResW (dpi) and the scan resolution in the image height direction is ResH (dpi), the number of images that can be stored in the RAM 22 is expressed by the following equation (1). Calculated.

Memory/W×ResW×H×ResH×3Byte … (1)
ここで、式(1) の「3Byte」はRGBに対応するものである。RAM22は他処理にも使用されることから、全てのメモリ領域がデータ蓄積に使用可能というわけではなく、ポスタ印刷を行うその時々でメモリ量Memoryの値は変化する。また、本例は用紙2枚分の画像データがRAM22に蓄積可能であるとする。なお、スキャン印刷時の諸条件とは、幅W、高さH、スキャン解像度ResW,ResHに相当する。
Memory / W x ResW x H x ResH x 3 bytes (1)
Here, “3 Byte” in Expression (1) corresponds to RGB. Since the RAM 22 is also used for other processing, not all memory areas can be used for data storage, and the value of the memory amount Memory changes at the time of poster printing. In this example, it is assumed that image data for two sheets can be stored in the RAM 22. The various conditions at the time of scan printing correspond to the width W, the height H, and the scan resolutions ResW and ResH.

まず、本例の場合には用紙2枚分の画像データが格納可能であるので、レイアウタ27は1回目のスキャン処理で上から3枚分の画像40a〜40c(図6参照)をスキャンさせる。これら画像40a〜40cの画像データ41a〜41cは生データの状態(つまりRライン、Gライン、Bラインの色別の状態)でラインバッファ32に格納される。なお、1度のスキャンで同時に3枚の画像40a〜40cを取り込むので、ラインバッファ32に格納された各ラインデータ36a〜36cは1枚目の画像データ41a〜3枚目の画像データ41cを含むデータとして読み取られる。   First, since image data for two sheets can be stored in this example, the layouter 27 scans three images 40a to 40c (see FIG. 6) from the top in the first scanning process. The image data 41a to 41c of the images 40a to 40c are stored in the line buffer 32 in a raw data state (that is, a state for each color of R line, G line, and B line). Since three images 40a to 40c are captured simultaneously in one scan, each line data 36a to 36c stored in the line buffer 32 includes the first image data 41a to the third image data 41c. Read as data.

そして、スキャン動作の過程で数ライン分のラインデータがラインバッファ32に蓄積されると、レイアウタ27は1枚目の画像データ41aをインプットバッファ33に送出させ、2枚目及び3枚目の画像データ41b,41cをRAM22に送出させる。レイアウタ27はラインバッファ32に数ライン分のラインデータが蓄積される度に、1枚目の画像データ41aをインプットバッファ33に送出し、2枚目及び3枚目の画像データ41b,41cをRAM22に送出する処理を繰り返し実行させる。   When line data for several lines is accumulated in the line buffer 32 in the course of the scanning operation, the layouter 27 sends the first image data 41a to the input buffer 33, and the second and third images. Data 41 b and 41 c are sent to the RAM 22. The layouter 27 sends the first image data 41a to the input buffer 33 each time several lines of line data are stored in the line buffer 32, and the second and third image data 41b and 41c are stored in the RAM 22. The process to send to is repeatedly executed.

ここで、画像データ41a〜41cはRAM22及びインプットバッファ33に送られる前に、以下に示す手順でデータ処理される。まずレイアウタ27は、画像データ41a〜41cに解像度変換を施して、画像データ41a〜41cを印刷解像度に変換する。続いてレイアウタ27は解像度変換後の画像データ41a〜41cにイメージ拡大処理を施して、印刷すべき用紙3のサイズに合わせて画像データ41a〜41cを機分拡大する。従って、これら処理が施された後、1枚目の画像データ41aがインプットバッファ33に、2枚目及び3枚目の画像データ41b,41cがRAM22に送出される。   Here, before the image data 41a to 41c are sent to the RAM 22 and the input buffer 33, data processing is performed according to the following procedure. First, the layouter 27 performs resolution conversion on the image data 41a to 41c, and converts the image data 41a to 41c into print resolution. Subsequently, the layouter 27 performs image enlargement processing on the image data 41a to 41c after the resolution conversion, and enlarges the image data 41a to 41c according to the size of the paper 3 to be printed. Therefore, after these processes are performed, the first image data 41 a is sent to the input buffer 33, and the second and third image data 41 b and 41 c are sent to the RAM 22.

また、インプットバッファ33は2つに区分された状態で使用され、例えばインプットバッファ33の一方の記憶領域を領域(分割記憶領域)B1、他方の記憶領域を領域(分割記憶領域)B2とし、高さ方向のライン数を16ラインとする。まずレイアウタ27は、読み取った画像データ41aを先に領域B1に格納し始める。レイアウタ27は、領域B1に16ライン分の画像データ41aが蓄積されると、領域B1内の画像データ42aをラインごとにHTコントローラ28に送出するとともに、ラインバッファ32内の画像データ41aの格納先を領域B2に切り換えてそこに画像データ42aの続きを格納する。   The input buffer 33 is used in a state of being divided into two. For example, one storage area of the input buffer 33 is an area (divided storage area) B1, and the other storage area is an area (divided storage area) B2. The number of lines in the vertical direction is 16 lines. First, the layouter 27 starts to store the read image data 41a in the area B1 first. When the image data 41a for 16 lines is accumulated in the area B1, the layouter 27 sends the image data 42a in the area B1 to the HT controller 28 line by line and stores the image data 41a in the line buffer 32. Is switched to the area B2, and the continuation of the image data 42a is stored therein.

HTコントローラ28は、領域B1からラインごとに送出された画像データ42aに色変換処理及びハーフトーン処理を施す。また、レイアウタ27は領域B2がフル状態になると、領域B2内の画像データ42bをHTコントローラ28に送出する。従って、HTコントローラ28は領域B1内の画像データ42aに続けて領域B2内の画像データ42bについて色変換処理及びハーフトーン処理を施すことになる。そして、マイクロウィーブ処理後の画像データ(YMCKデータ37)が印刷処理にまわされて印刷出力される。   The HT controller 28 performs color conversion processing and halftone processing on the image data 42a sent for each line from the area B1. The layouter 27 sends the image data 42b in the area B2 to the HT controller 28 when the area B2 becomes full. Therefore, the HT controller 28 performs color conversion processing and halftone processing on the image data 42b in the region B2 following the image data 42a in the region B1. Then, the image data (YMCK data 37) after the microweave process is sent to the print process and printed out.

また、図7に示すようにHTコントローラ28は、色変換及びハーフトーン処理が終了するとHT終了の旨をレイアウタ27に通知する。レイアウタ27はHT終了の旨の通知を受け取ると、領域B2に格納した画像データ42bの続きを領域B1に入力させる。ここで、色変換及びハーフトーン処理に要する時間Taはインプットバッファ33へのデータ格納に要する時間Tbより長い。従って、領域B1の画像データ42aの色変換及びハーフトーン処理が終わる頃には領域B2へのデータ格納が終了しており、空になった領域B1には先程の領域B2へ格納した画像データ42bの続きが書き込まれる。   Further, as shown in FIG. 7, the HT controller 28 notifies the layouter 27 of the end of HT when the color conversion and the halftone process are completed. When the layouter 27 receives the notification that the HT has ended, the layouter 27 inputs the continuation of the image data 42b stored in the area B2 to the area B1. Here, the time Ta required for color conversion and halftone processing is longer than the time Tb required for storing data in the input buffer 33. Therefore, when the color conversion and halftone processing of the image data 42a in the area B1 is completed, the data storage in the area B2 is completed, and the image data 42b stored in the previous area B2 is stored in the empty area B1. The continuation of is written.

そして、そしてレイアウタ27は以上の処理を繰り返し実行して、スキャンで読み取った画像データ41aをHTコントローラ28に転送する。従って、画像データ41aのインプットバッファ33への書き込みと、インプットバッファ33に書き込んだ画像データ42aのHTコントローラ28への転送とを重ね合わせることが可能であり、データ転送時間の短時間化が可能である。また、スキャンの途中であっても画像処理が完了した画像データはヘッド15に順次送られる構成上、印刷出力とスキャン処理とは重ね合わさった状態で実施される。   Then, the layouter 27 repeatedly executes the above processing, and transfers the image data 41a read by scanning to the HT controller 28. Therefore, the writing of the image data 41a to the input buffer 33 and the transfer of the image data 42a written to the input buffer 33 to the HT controller 28 can be overlapped, and the data transfer time can be shortened. is there. Further, the image data that has been subjected to the image processing even during the scanning is sequentially sent to the head 15, so that the print output and the scanning processing are overlapped.

一方、図6に示すように2枚目及び3枚目の画像データ41b,41cはRAM22に順次格納される。ここで、1枚目の画像データ41aのHTコントローラ28への転送が終了に近づくと、画像データ41aのライン数に応じて領域B1,B2の一方がフリー状態(空状態)になる。従って、レイアウタ27はインプットバッファ33の領域B1,B2の一方がフリーになると、RAM22内に蓄積された2枚目の画像データ41bを1ラインずつインプットバッファ33へ転送し始める。   On the other hand, as shown in FIG. 6, the second and third image data 41 b and 41 c are sequentially stored in the RAM 22. Here, when the transfer of the first image data 41a to the HT controller 28 is nearing the end, one of the areas B1 and B2 becomes free (empty) according to the number of lines of the image data 41a. Accordingly, when one of the areas B1 and B2 of the input buffer 33 becomes free, the layouter 27 starts to transfer the second image data 41b stored in the RAM 22 to the input buffer 33 line by line.

2枚目の画像データ41bは1枚目の画像データ41aと同様の手順で、インプットバッファ33への格納と、インプットバッファ33からHTコントローラ28への送出とが実施される。そしてレイアウタ27は、2枚目の画像データ41bのHTコントローラ28への送出が終わりに近づき、インプットバッファ33の領域B1,B2の一方がフリーになると、RAM22内に蓄積された3枚目の画像データ41cのインプットバッファ33への転送を開始する。この3枚目の画像データ41cの転送も、1枚目及び2枚目と同様の手順で実施される。   The second image data 41b is stored in the input buffer 33 and sent from the input buffer 33 to the HT controller 28 in the same procedure as the first image data 41a. The layouter 27 approaches the end of sending the second image data 41b to the HT controller 28, and when one of the areas B1 and B2 of the input buffer 33 becomes free, the third image stored in the RAM 22 is displayed. The transfer of the data 41c to the input buffer 33 is started. The transfer of the third image data 41c is performed in the same procedure as the first and second images.

1枚目〜3枚目の画像40a〜40cの印刷出力が完了すると、レイアウタ27は2回目のスキャン処理を実行して4枚目〜6枚目の画像40d〜40fが読み取らせる。そして、4枚目〜6枚目の画像40d〜40fも1枚目〜3枚目と同様の手順でHTコントローラ28に送出される。また、4枚目〜6枚目の画像40d〜40fの印刷出力が完了すると、3回目のスキャン処理を実行して7枚目〜9枚目の画像40g〜40iが読み取られ、1枚目〜3枚目と同様の手順でHTコントローラ28に送出される。そして、これら画像40a〜40iが各用紙3に印刷出力されてポスタ印刷が実施される。   When the print output of the first to third images 40a to 40c is completed, the layouter 27 executes the second scanning process to read the fourth to sixth images 40d to 40f. The fourth to sixth images 40d to 40f are also sent to the HT controller 28 in the same procedure as the first to third images. When the print output of the fourth to sixth images 40d to 40f is completed, the third scan process is executed to read the seventh to ninth images 40g to 40i, and the first to It is sent to the HT controller 28 in the same procedure as the third sheet. Then, these images 40a to 40i are printed out on each sheet 3, and poster printing is performed.

ところで、RAM22の空き領域によっては、1回のスキャンでRAM22に用紙1枚分の画像データしか蓄積できな場合がある。この場合、レイアウタ27は1回目のスキャンで1枚目及び2枚目に画像40a,40bをスキャンし、1枚目の画像データ41aを印刷処理にまわし、2枚目の画像データ41bをRAM22に蓄積する。そして、1枚目及び2枚目の印刷処理が終了すると、レイアウタ27は3枚目の画像40cをスキャン印刷させる。   By the way, depending on an empty area of the RAM 22, there may be a case where only one sheet of image data can be stored in the RAM 22 in one scan. In this case, the layouter 27 scans the first and second images 40a and 40b in the first scan, passes the first image data 41a to the printing process, and sends the second image data 41b to the RAM 22. accumulate. When the first and second printing processes are completed, the layouter 27 scans and prints the third image 40c.

1枚目〜3枚目の印刷出力が終了すると、4枚目以降の画像40d〜40iについても同様の手順で印刷処理される。即ち、4枚目及び5枚目の画像40d,40eがスキャンされ、4枚目の画像40dが印刷処理にまわされ、5枚目の画像40eがRAM22に蓄積される。そして、4枚目及び5枚目の印刷処理が終了すると6枚目の画像40fがスキャン印刷される。そして、4枚目〜6枚目の印刷処理が終了すると、7枚目〜9枚目の画像40g〜40iについても同様の手順で印刷処理される。   When the first to third sheets are printed, the fourth and subsequent images 40d to 40i are printed in the same procedure. That is, the fourth and fifth images 40d and 40e are scanned, the fourth image 40d is sent to the printing process, and the fifth image 40e is stored in the RAM 22. When the fourth and fifth printing processes are completed, the sixth image 40f is scanned and printed. When the fourth to sixth printing processes are completed, the seventh to ninth images 40g to 40i are printed in the same procedure.

次に、CPU19がポスタ印刷時に実行する処理を図8に示すフローチャートに従って説明する。
ステップ100では、ポスタ印刷の用紙枚数P×Pを取得する。即ち、ポスタ印刷で印刷出力される用紙3は行及び列(図4参照)ともに同じ枚数となり、その行(或いは列)の用紙枚数であるPを取得する。
Next, processing executed by the CPU 19 during poster printing will be described with reference to the flowchart shown in FIG.
In step 100, the number of paper sheets P × P for poster printing is acquired. That is, the number of sheets 3 printed and output by poster printing is the same in both rows and columns (see FIG. 4), and P, which is the number of sheets in that row (or column), is acquired.

ステップ101では、CPU19のRAM22において画像データを蓄積可能なメモリ量Memoryを算出する。
ステップ102では、各パラメータW,H,ResW,ResHを取得する。
In step 101, a memory amount Memory that can store image data in the RAM 22 of the CPU 19 is calculated.
In step 102, each parameter W, H, ResW, ResH is acquired.

ステップ103では、1回のスキャンで取り込み可能な処理枚数Mを算出する。即ち、CPU19のRAM22に用紙何枚分の画像データが蓄積可能かを式(1) に基づき算出し、用紙1枚分の画像データはラインバッファ32からそのままインプットバッファ33へ転送可能であるので、式(1) で算出された値に「1」を加えた値をMとして算出する。   In step 103, the number of processed sheets M that can be captured in one scan is calculated. That is, how many sheets of image data can be stored in the RAM 22 of the CPU 19 is calculated based on the equation (1), and the image data for one sheet can be transferred from the line buffer 32 to the input buffer 33 as it is. A value obtained by adding “1” to the value calculated by the equation (1) is calculated as M.

ステップ104では、画像39の高さ方向(行方向)のスキャンが終了したか否かを判断する。即ち、3×3のポスタ印刷の場合、画像39の高さ方向に3度スキャンを行う必要があるが、高さ方向においてスキャンが3回実施されたか否かが判断される。画像39の高さ方向(行方向)のスキャンが終了していなければステップ105に移行し、終了していればポスタ印刷を終了する。   In step 104, it is determined whether or not scanning of the image 39 in the height direction (row direction) has been completed. That is, in the case of 3 × 3 poster printing, it is necessary to perform scanning three times in the height direction of the image 39, but it is determined whether or not scanning has been performed three times in the height direction. If the scanning of the image 39 in the height direction (row direction) has not been completed, the process proceeds to step 105, and if it has been completed, poster printing is terminated.

ステップ105では、画像39の幅方向(列方向)のスキャンが終了したか否かを判断する。即ち、3×3のポスタ印刷の場合、各行では画像39の幅方向に用紙3枚分の画像データをスキャンする必要があるが、各行で用紙3枚分の画像データがスキャンされていればステップ104に戻り、スキャンされていなければステップ106に移行する。   In step 105, it is determined whether or not scanning of the image 39 in the width direction (column direction) has been completed. That is, in the case of 3 × 3 poster printing, it is necessary to scan the image data for three sheets in the width direction of the image 39 in each row, but if the image data for three sheets is scanned in each row, the step is performed. Returning to step 104, if not scanned, the process proceeds to step 106.

ステップ106では、画像39のスキャンを開始して、その画像データのうち1枚目の画像40aを印刷出力し、2〜M枚目の画像データ41b,…をCPU19のRAM22に蓄積する。一度のスキャンで用紙3枚分の画像データが取り込み可能であれば、2枚目及び3枚目の画像データがRAM22に蓄積される。   In step 106, scanning of the image 39 is started, the first image 40a of the image data is printed out, and the 2nd to Mth image data 41b, ... are stored in the RAM 22 of the CPU 19. If image data for three sheets of paper can be captured in one scan, the second and third image data are stored in the RAM 22.

ステップ107では、CPU19のRAM22に蓄積した画像データでの印刷出力が完了したか否かを判断する。即ち、2〜M枚目の画像40b,…の印刷が完了したか否かが判断され、印刷が終了していなければステップ108に移行し、印刷が終了していればステップ105に戻る。   In step 107, it is determined whether or not the print output with the image data stored in the RAM 22 of the CPU 19 is completed. That is, it is determined whether or not the printing of the second to Mth images 40b,... Is completed. If the printing has not been completed, the process proceeds to step 108. If the printing has been completed, the process returns to step 105.

ステップ108では、CPU19のRAM22に蓄積した画像データを印刷出力する。即ち、2枚目及び3枚目の画像データ41b,41cがRAM22に蓄積されていれば、2枚目及び3枚目の画像40b,40cが印刷処理される。   In step 108, the image data stored in the RAM 22 of the CPU 19 is printed out. That is, if the second and third image data 41b and 41c are stored in the RAM 22, the second and third images 40b and 40c are printed.

本例のポスタ印刷では、1回のスキャンで用紙複数枚分の画像データを取り込み、1枚目の画像を印刷処理にまわし、残りの画像データをRAM22に蓄積しておく構成とした。ところで、用紙1枚ずつ画像をスキャンする方法を用いると、3×3のポスタ印刷の場合には合計9回のスキャンが必要となる。しかし、本例の構成を用いれば、RAM22に用紙2枚分の画像データを蓄積可能であれば、スキャン回数が3回で済むことになり、スキャン回数の減少に伴ってポスタ印刷のスループットが向上する。   In the poster printing of this example, the image data for a plurality of sheets is taken in one scan, the first image is sent to the printing process, and the remaining image data is stored in the RAM 22. By the way, if a method of scanning an image sheet by sheet is used, a total of nine scans are required in the case of 3 × 3 poster printing. However, if the configuration of this example is used, if the image data for two sheets of paper can be stored in the RAM 22, the number of scans is three, and the throughput of poster printing improves as the number of scans decreases. To do.

この実施形態によれば、以下の効果を得ることができる。
(1)1回のスキャンで用紙複数枚分の画像データを取り込み、1枚目の画像を印刷処理にまわし、残りの画像データをRAM22に蓄積しておく構成であるので、用紙1枚ずつ画像をスキャンする構成に比べてスキャン回数を減らすことができ、ポスタ印刷時のスループットを向上することができる。
According to this embodiment, the following effects can be obtained.
(1) The configuration is such that image data for a plurality of sheets of paper is captured in one scan, the first image is sent to the printing process, and the remaining image data is stored in the RAM 22. The number of scans can be reduced as compared with the configuration for scanning, and the throughput during poster printing can be improved.

(2)ポスタ印刷を行うとき、RAM22のメモリ領域のうち画像データの蓄積に使用可能なメモリ量Memoryを算出し、そのメモリ量Memoryとスキャン解像度ResW,ResHとを用いて、RAM22に蓄積可能な画像の枚数を算出する構成である。従って、最大限蓄積可能な画像枚数がその都度設定でき、スキャン回数を必要最低限の回数に設定することができる。   (2) When performing poster printing, a memory amount Memory that can be used for storing image data in the memory area of the RAM 22 is calculated, and can be stored in the RAM 22 using the memory amount Memory and the scan resolutions ResW and ResH. In this configuration, the number of images is calculated. Therefore, the maximum number of images that can be stored can be set each time, and the number of scans can be set to the minimum required number.

(3)記憶領域を2分割してインプットバッファ33に2つの領域B1,B2を持たせ、ラインバッファ32の画像データを領域B1,B2へ交互に転送する構成とした。従って、ラインバッファ32の画像データのインプットバッファ33への転送と、インプットバッファ33内の画像データのHTコントローラ28への転送とを重ね合わせることができ、データ転送の高速化やスキャンの途中停止等の不具合が生じ難くなる。   (3) The storage area is divided into two so that the input buffer 33 has two areas B1 and B2, and the image data in the line buffer 32 is alternately transferred to the areas B1 and B2. Therefore, the transfer of the image data in the line buffer 32 to the input buffer 33 and the transfer of the image data in the input buffer 33 to the HT controller 28 can be overlapped, speeding up the data transfer, stopping the scan halfway, etc. It becomes difficult to cause the trouble.

(4)画像39のスキャンの途中でも、画像処理された画像データがヘッド15に送られればヘッド15を走査して印刷を開始する構成である。従って、スキャンと印刷出力とを重ね合わせることができ、例えばスキャンが終了した後に印刷動作を開始する構成に比べて印刷のスループットを向上することができる。   (4) Even when the image 39 is being scanned, if image-processed image data is sent to the head 15, the head 15 is scanned to start printing. Therefore, the scan and the print output can be superimposed, and for example, the print throughput can be improved as compared with the configuration in which the print operation is started after the scan is completed.

なお、上記実施形態は以下の態様に変更してもよい。
(変形例1)ラインバッファ32に書き込まれた2枚目及び3枚目の画像データ41b,41cは、RAM22に直接転送される構成に限定されない。例えば、図9に示すように3枚分の画像データ41a〜41cを有する1ライン分のラインデータ36aをインプットバッファ33に書き込み、そこから2枚目及び3枚目の画像データ41b,41cをRAM22に転送する。そして、インプットバッファ33に次のラインデータ36bが転送されたときには、1枚目の画像データ41aを残してラインデータ36bを上書きする構成を採用してもよい。この場合、ラインバッファ32からのデータ転送をRAM22とインプットバッファ33とで別々に行う必要がなく、転送処理を簡単に行うことができる。
In addition, you may change the said embodiment into the following aspects.
(Modification 1) The second and third image data 41 b and 41 c written in the line buffer 32 are not limited to the configuration in which they are directly transferred to the RAM 22. For example, as shown in FIG. 9, one line of line data 36a having three pieces of image data 41a to 41c is written to the input buffer 33, and the second and third pieces of image data 41b and 41c are stored in the RAM 22 from there. Forward to. Then, when the next line data 36b is transferred to the input buffer 33, a configuration may be adopted in which the line data 36b is overwritten while leaving the first image data 41a. In this case, it is not necessary to transfer data from the line buffer 32 separately between the RAM 22 and the input buffer 33, and the transfer process can be easily performed.

(変形例2)RAM22に蓄積可能な用紙枚数を算出するとき、解像度はスキャン解像度に限らず、例えば印刷解像度としてもよい。この場合、スキャンに時間を要するものの高画質で印刷出力することができる。また、スキャン解像度や印刷解像度をユーザによって設定可能な構成としてもよい。   (Modification 2) When calculating the number of sheets that can be stored in the RAM 22, the resolution is not limited to the scan resolution, and may be, for example, the print resolution. In this case, although it takes time to scan, it can be printed out with high image quality. Further, the scan resolution and print resolution may be set by the user.

(変形例3)RAM22に蓄積可能な用紙枚数をその都度算出して最適な枚数を導く構成に限定されない。例えば、RAM22の使用可能なメモリ領域や、ポスタ印刷実行時のスキャン解像度に関係なく、用紙1枚分のみをRAM22に蓄積するというように蓄積枚数を固定としてもよい。   (Modification 3) The present invention is not limited to a configuration in which the number of sheets that can be stored in the RAM 22 is calculated each time and the optimum number is derived. For example, the number of stored sheets may be fixed such that only one sheet is stored in the RAM 22 regardless of the usable memory area of the RAM 22 and the scan resolution at the time of poster printing.

(変形例4)画像データの蓄積先は必ずしもCPU19のRAM22に限定されない。例えば、ASIC23のRAM31に空き領域が存在していれば、そこを画像データの蓄積場所として使用してもよい。   (Modification 4) The image data storage destination is not necessarily limited to the RAM 22 of the CPU 19. For example, if there is an empty area in the RAM 31 of the ASIC 23, it may be used as an image data storage location.

(変形例5)本例のデータ転送方法は、ポスタ印刷の場合に使用されることに限定されない。例えば、画像39を拡大してサイズの大きい用紙(A1等)にスキャン印刷する場合、スキャンで取り込んだ画像データの一部をインプットバッファ33に転送し、残りをRAM22に転送する構成としてもよい。また、ポスタ印刷の場合にはP×Pというように行と列とが同じ用紙枚数となることに限らず、例えば1×2のように行と列で異なる用紙枚数としてもよい。   (Modification 5) The data transfer method of this example is not limited to being used for poster printing. For example, when the image 39 is enlarged and scanned and printed on a large size sheet (A1 or the like), a part of the image data captured by the scan may be transferred to the input buffer 33 and the rest may be transferred to the RAM 22. In the case of poster printing, the number of sheets is not limited to the same number of sheets in rows and columns, such as P × P. For example, the number of sheets may be different in rows and columns, such as 1 × 2.

次に、上記実施形態及び別例から把握できる技術的思想について以下に追記する。
(1)請求項3〜6において、スキャン印刷時の諸条件とは、スキャンした画像を拡大して複数枚の印刷媒体に印刷する際の印刷媒体の合計枚数、スキャナ解像度及び印刷解像度のいずれか1つである。
Next, the technical idea that can be grasped from the above embodiment and other examples will be described below.
(1) In claims 3 to 6, the conditions for scan printing are any of the total number of print media, scanner resolution, and print resolution when a scanned image is enlarged and printed on a plurality of print media. One.

(2)スキャナによってスキャンした画像を拡大して印刷媒体に印刷出力するときに、前記画像の画像データをデータ処理する画像読取装置において、前記画像データを画像処理する際に該画像データが書き込まれるバッファと、前記画像データを一時的に記憶可能なメモリと、スキャンした前記画像データのうち一部の画像データを前記バッファに送って画像処理を実行させ、前記バッファでの画像処理が完了するまで残りの画像データを前記メモリに蓄積しておく制御手段を備えたことを特徴とする画像読取装置。   (2) When an image scanned by a scanner is enlarged and printed out on a print medium, the image data is written when the image data is processed in an image reading apparatus that processes the image data of the image. A buffer, a memory capable of temporarily storing the image data, a part of the scanned image data is sent to the buffer to execute image processing, and the image processing in the buffer is completed An image reading apparatus comprising control means for storing remaining image data in the memory.

(3)スキャナでスキャンした画像を拡大して印刷媒体に印刷出力するときに、バッファを用いて前記画像の画像データをデータ処理する画像データの読取方法において、制御手段は、スキャンした前記画像データのうち一部分の画像データを前記バッファに送って画像処理を実行させ、前記バッファでの画像処理が完了するまで残りの画像データをメモリに蓄積しておくことを特徴とする画像データの読取方法。   (3) In an image data reading method in which image data of the image is processed using a buffer when an image scanned by a scanner is enlarged and printed out on a print medium, the control means includes the scanned image data A method for reading image data, comprising: sending part of the image data to the buffer to execute image processing, and storing the remaining image data in a memory until the image processing in the buffer is completed.

一実施形態におけるプリンタの斜視図。1 is a perspective view of a printer according to an embodiment. プリンタの電気的構成を示すブロック図。FIG. 2 is a block diagram illustrating an electrical configuration of the printer. 画像データがインプットバッファへ転送されるときの例示図。FIG. 4 is an exemplary diagram when image data is transferred to an input buffer. ポスタ印刷を説明するための例示図。FIG. 4 is an exemplary diagram for explaining poster printing. 各用紙にどのスキャン範囲が印刷出力されるかを示す画像の平面図。The top view of the image which shows which scanning range is printed out on each paper. スキャンで取り込まれた画像データの転送の仕方を示す例示図。FIG. 4 is an exemplary diagram illustrating a method of transferring image data captured by scanning. レイアウタとHTコントローラとの間のトランザクションチャート。Transaction chart between the layouter and the HT controller. ポスタ印刷時にCPUによって実行されるフローチャート。The flowchart performed by CPU at the time of poster printing. 別例における画像データがインプットバッファへ転送されるときの例示図。FIG. 10 is an exemplary diagram when image data in another example is transferred to an input buffer.

符号の説明Explanation of symbols

1…印刷装置としてのプリンタ、3…印刷媒体としての用紙、13…スキャナとしてのスキャナユニット、14…印刷機構を構成するプリンタユニット、19…算出手段を構成するCPU、22…メモリとしてのRAM、23…印刷実行手段及び印刷機構を構成するASIC、33…バッファとしてのインプットバッファ、37…制御手段を構成するレイアウタ、39,40a〜40i…画像、41a〜41c,42a,42b…画像データ、B1,B2…分割記憶領域、Memory…メモリ量、W,H,ResW,ResH…諸条件としての各パラメータ。   DESCRIPTION OF SYMBOLS 1 ... Printer as printing apparatus, 3 ... Paper as printing medium, 13 ... Scanner unit as scanner, 14 ... Printer unit which comprises printing mechanism, 19 ... CPU which comprises calculation means, 22 ... RAM as memory, 23... ASIC constituting the printing execution means and printing mechanism, 33... Input buffer as a buffer, 37... Layouter constituting control means, 39, 40a to 40i... Image, 41a to 41c, 42a, 42b. , B2: Divided storage area, Memory: Memory amount, W, H, ResW, ResH ... Each parameter as various conditions.

Claims (8)

スキャナによってスキャンした画像を拡大して複数の印刷媒体に印刷出力するときに、前記画像の画像データをデータ処理する画像読取装置において、
前記画像データを画像処理する際に該画像データが書き込まれるバッファと、
前記画像データを一時的に記憶可能なメモリと、
スキャンした前記画像データのうち前記印刷媒体の1枚目に印刷する画像データを前記バッファに送って画像処理を実行させ、前記バッファでの画像処理が完了するまで残りの画像データを前記メモリに蓄積し、その蓄積した画像データを1枚目の画像データに続けて前記バッファに送る制御手段と
を備えたことを特徴とする画像読取装置。
In an image reading apparatus for processing the image data of the image when the image scanned by the scanner is enlarged and printed on a plurality of print media,
A buffer into which the image data is written when the image data is processed;
A memory capable of temporarily storing the image data;
The image data to be printed on the first sheet of the print medium among the scanned image data is sent to the buffer to execute image processing, and the remaining image data is stored in the memory until the image processing in the buffer is completed And a control means for sending the stored image data to the buffer after the first image data.
前記スキャナは、前記画像の全範囲のうち印刷媒体の枚数に応じて決まる所定範囲を1回のスキャンで取り込むとともに、
前記制御手段は、前記スキャナが取り込んだ前記所定範囲の画像のうち1枚目の画像データを画像処理にまわすとともに残りを前記メモリに蓄積し、前記メモリに蓄積しておいた画像データを前記バッファの送って印刷出力が完了すると、前記スキャナに次の所定範囲のスキャンを実行させ、この処理を画像全体のスキャンが完了するまで繰り返すことを特徴とする請求項1に記載の画像読取装置。
The scanner captures a predetermined range determined according to the number of print media in the entire range of the image in one scan,
The control means turns the first image data out of the predetermined range of images captured by the scanner into image processing, stores the rest in the memory, and stores the image data stored in the memory in the buffer. The image reading apparatus according to claim 1, wherein when the print output is completed, the scanner is caused to execute a next scan of a predetermined range, and this process is repeated until the entire image is scanned.
前記メモリのメモリ量とスキャン印刷時の諸条件とに基づき、前記印刷媒体の何枚分の画像データが前記メモリに蓄積可能かを算出する算出手段を備え、
前記制御手段は、前記算出手段の算出結果に基づき前記スキャナによるスキャン回数を決定し、前記算出手段で求めた回数分のスキャンを前記スキャナに実行させることを特徴とする請求項1又は2に記載の画像読取装置。
Based on the amount of memory of the memory and various conditions at the time of scan printing, comprising a calculating means for calculating how many image data of the printing medium can be stored in the memory,
The said control means determines the frequency | count of scanning by the said scanner based on the calculation result of the said calculation means, and makes the said scanner perform the scan of the frequency | count calculated | required by the said calculation means. Image reading apparatus.
前記メモリは、前記画像データを蓄積可能な領域がそのときの該メモリの使用状態に応じて可変であるとともに、
前記算出手段は、前記メモリの全メモリ量のうち前記画像データを蓄積可能なメモリ量を算出し、前記メモリ量に基づき印刷媒体何枚分の画像データが前記メモリに蓄積可能かを算出することを特徴とする請求項3に記載の画像読取装置。
In the memory, the area where the image data can be stored is variable according to the use state of the memory at that time,
The calculation means calculates a memory amount that can store the image data out of a total memory amount of the memory, and calculates how many print media image data can be stored in the memory based on the memory amount. The image reading apparatus according to claim 3.
前記バッファは、全体の記憶領域を複数に区分することによって複数の分割記憶領域を有した構成であるとともに、
前記制御手段は、前記メモリに蓄積された画像データを所定のライン単位で前記分割記憶領域へ順に書き込むとともに、書き込まれた画像データが画像処理されて空きが生じるとそこに次の画像データを書き込み、この処理を繰り返し実行してメモリ内の画像データを前記バッファに送ることを特徴とする請求項1〜4のうちいずれか一項に記載の画像読取装置。
The buffer has a configuration having a plurality of divided storage areas by dividing the entire storage area into a plurality of areas, and
The control means sequentially writes the image data stored in the memory into the divided storage area in a predetermined line unit, and when the written image data is subjected to image processing and a space is generated, the next image data is written therein. The image reading apparatus according to claim 1, wherein the processing is repeatedly executed to send image data in a memory to the buffer.
スキャンした画像データに基づく印刷処理を、前記スキャナによる画像のスキャンに重ね合わせて実行させる印刷実行手段を備えたことを特徴とする請求項1〜5のうちいずれか一項に記載の画像読取装置。   The image reading apparatus according to claim 1, further comprising: a print execution unit that executes a print process based on the scanned image data in an overlapping manner with an image scan by the scanner. . 請求項1〜6のうちいずれか一項に記載の画像読取装置と、前記スキャナによって読み取られた画像データに基づき前記印刷媒体に印刷処理を実行する印刷機構とを備えたことを特徴とする印刷装置。   7. An image printing apparatus comprising: the image reading apparatus according to claim 1; and a printing mechanism that executes a printing process on the print medium based on image data read by the scanner. apparatus. スキャナでスキャンした画像を拡大して複数枚の印刷媒体に印刷出力するときに、バッファを用いて前記画像の画像データをデータ処理する画像データの読取方法において、
制御手段は前記スキャナで取り込んだ前記画像データのうち前記印刷媒体の1枚目に印刷する画像データを前記バッファに送って画像処理を実行させ、前記バッファでの画像処理が完了するまで残りの画像データをメモリに蓄積し、その蓄積した画像データを1枚目の画像データに続けて前記バッファに送ることを特徴とする画像データの読取方法。
In an image data reading method in which image data of the image is processed using a buffer when an image scanned by a scanner is enlarged and printed on a plurality of print media.
The control means sends image data to be printed on the first sheet of the print medium out of the image data captured by the scanner to the buffer to execute image processing, and the remaining image until the image processing in the buffer is completed. A method of reading image data, wherein the data is stored in a memory, and the stored image data is sent to the buffer following the first image data.
JP2003352367A 2003-10-10 2003-10-10 Image reading apparatus, printer, and reading method of image data Pending JP2005117557A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2003352367A JP2005117557A (en) 2003-10-10 2003-10-10 Image reading apparatus, printer, and reading method of image data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2003352367A JP2005117557A (en) 2003-10-10 2003-10-10 Image reading apparatus, printer, and reading method of image data

Publications (1)

Publication Number Publication Date
JP2005117557A true JP2005117557A (en) 2005-04-28

Family

ID=34543333

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2003352367A Pending JP2005117557A (en) 2003-10-10 2003-10-10 Image reading apparatus, printer, and reading method of image data

Country Status (1)

Country Link
JP (1) JP2005117557A (en)

Similar Documents

Publication Publication Date Title
JP4929237B2 (en) Image processing apparatus and image processing method
KR100633140B1 (en) Image forming device and Method for compensating resoultion
US20050191105A1 (en) Printing apparatus and method with respect to medium
US20090232571A1 (en) Printing apparatus and printing method with respect to medium
JP2005117558A (en) Image reading apparatus, printer, and reading method of image data
JP2005117559A (en) Image reading apparatus, printer, and reading method of image data
JP6160023B2 (en) Printing device
JP3613076B2 (en) Image processing apparatus, image processing method, and recording medium
JP2005117557A (en) Image reading apparatus, printer, and reading method of image data
JP2005169650A (en) Information inputting/printing apparatus
JP4407317B2 (en) Printing apparatus, printing method on media, and printing system
JPH11254660A (en) Method and apparatus for printing image, and printed matter
JP2005007800A (en) System for printing image based on information of the number of dots formed in specified region
JP2004048709A (en) Image processing apparatus and image processing method
JP2005111802A (en) Printer, printing method, and program
JP4385713B2 (en) Image data reading apparatus, printing apparatus, and image data reading method
JP2005111843A (en) Printer, printing method, and program
JP2005305832A (en) Printer
WO2004082942A1 (en) Printer for printing an image according to presence/absence of dot formation and printing control device thereof
JP5621557B2 (en) Printing device
JP2005111668A (en) Printer
JP6140952B2 (en) Data processing apparatus, data processing method and program
JP2005086540A (en) Combined machine system
JP2011120197A (en) Image data processing apparatus, printer, image data processing method, and program
JP2003330663A (en) Information processor