JP5251166B2 - Printer control method and apparatus, and printer control program - Google Patents

Printer control method and apparatus, and printer control program Download PDF

Info

Publication number
JP5251166B2
JP5251166B2 JP2008047300A JP2008047300A JP5251166B2 JP 5251166 B2 JP5251166 B2 JP 5251166B2 JP 2008047300 A JP2008047300 A JP 2008047300A JP 2008047300 A JP2008047300 A JP 2008047300A JP 5251166 B2 JP5251166 B2 JP 5251166B2
Authority
JP
Japan
Prior art keywords
image data
line
printing
procedure
reduced
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
JP2008047300A
Other languages
Japanese (ja)
Other versions
JP2009205460A (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.)
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 JP2008047300A priority Critical patent/JP5251166B2/en
Publication of JP2009205460A publication Critical patent/JP2009205460A/en
Application granted granted Critical
Publication of JP5251166B2 publication Critical patent/JP5251166B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Record Information Processing For Printing (AREA)

Description

本発明はプリンタに印刷媒体の種類に応じたレイアウトで印刷させるためのプリンタ制御方法および装置ならびにプリンタ制御プログラムに関する。本明細書において「プリンタ」とは、黒あるいは色の付いた気体、液体あるいは粉体を用いて対象とする媒体に着色する装置全般をいい、流体を噴射して着色する装置や、印刷機能に加えスキャナ機能やコピー機能が付加された複合機と呼ばれる機器を含む。   The present invention relates to a printer control method and apparatus for causing a printer to print with a layout corresponding to the type of print medium, and a printer control program. In this specification, the term “printer” refers to all devices that color a target medium using black or colored gas, liquid, or powder. In addition, it includes devices called multifunction devices with scanner and copy functions.

プリンタで印刷可能な印刷媒体として、裏面に粘着層が設けられたシールが1枚のシートに複数配置されたミニフォトシールあるいはミニ写真シールと呼ばれる分割シール印刷用紙が市販されている。このような用紙の個々のシールに同一の画像を印刷する技術として、特許文献1には、プリンタ独自で印刷媒体の種類を検出し、その検出結果に応じて、入力された画像を縮小して個々のシールに印刷することが開示されている。また、特許文献2には、同じ画像を複数並べて印刷する際の実行時間をプリンタ側で短縮する技術が開示されている。   As print media that can be printed by a printer, divided seal printing paper called a mini photo sticker or a mini photo sticker in which a plurality of stickers each having an adhesive layer on the back surface are arranged on one sheet is commercially available. As a technique for printing the same image on each sticker of such paper, Patent Document 1 detects the type of print medium by the printer and reduces the input image according to the detection result. Printing on individual seals is disclosed. Patent Document 2 discloses a technique for shortening the execution time on the printer side when printing a plurality of the same images side by side.

コンピュータ上で動作するアプリケーションプログラムから分割シールへの印刷を行うには、プリンタからそのプリンタの固有の情報であるアトリビュート情報を取得し、その情報に基づいて処理を行う。アトリビュート情報の取得およびその情報に基づく印刷媒体種類等のメニューの表示は、同じコンピュータ上で動作するプリンタドライバプログラムにより行われる。プリンタドライバプログラムはまた、アプリケーションプログラムからの印刷命令に従って、アプリケーションプログラムから送られてくる画像データをそのプリンタでの印刷に適したデータに変換してプリンタに送信する。   In order to perform printing on the divided sticker from an application program operating on a computer, attribute information that is unique information of the printer is acquired from the printer, and processing is performed based on the information. Acquisition of attribute information and display of a menu such as a print medium type based on the information are performed by a printer driver program operating on the same computer. The printer driver program also converts image data sent from the application program into data suitable for printing by the printer in accordance with a print command from the application program, and transmits the data to the printer.

プリンタが分割シールに対応している場合には、アトリビュート情報内に、その印刷媒体種類に対応していることを示す情報が含まれる。プリンタドライバプログラムは、その情報を取得し、アプリケーションプログラムに表示する。分割シールの印刷に対応したアプリケーションプログラムであれば、例えば、画像の選択(1枚または複数枚)、印刷媒体サイズ選択、印刷媒体種類選択、レイアウト選択、レイアウト実施、印刷というようなユーザインタフェースの流れによって、あらかじめ印刷媒体の種類に応じたレイアウト選択を行い、利用者の望む通りのレイアウトで印刷することができる。
特開2000−313143号公報 特開2005−262537号公報
When the printer is compatible with the division seal, the attribute information includes information indicating that it corresponds to the print medium type. The printer driver program acquires the information and displays it on the application program. If it is an application program that supports divisional seal printing, for example, a user interface flow such as image selection (one or more), print medium size selection, print medium type selection, layout selection, layout execution, and printing. Thus, it is possible to perform layout selection according to the type of print medium in advance and to print in a layout desired by the user.
JP 2000-313143 A JP 2005-262537 A

しかし、分割シールの個々のシールに対応して画像を印刷できるのは、アプリケーションプログラムが対応しているか、プリンタが独自に対応している必要がある。分割シールに対応していないアプリケーションプログラムから印刷しようとすると、1画像の選択、印刷媒体サイズ選択、印刷媒体種類選択、印刷開始という固定した流れでプリンタドライブバを使用することになる。このようなアプリケーションプログラムにはレイアウトの概念はなく、印刷媒体種類として例えば1枚のシートに16分割のシールが配置されたミニフォトシールが選択されていても、アプリケーションプログラムではその印刷媒体の大きさを考慮するだけで、プリンタドライバへは印刷媒体サイズ一杯の画像を渡すことになる。利用者は、印刷媒体種類としてミニフォトシールを選択したので、当然、16分割されたミニフォトシールが印刷されるものと予測するが、ドライバの構造上、他の印刷媒体同様に印刷媒体一杯に画像が印刷されてしまうことになる。また、プリンタ側で独自に対応する場合には、画像データを蓄えるための大きな画像メモリが必要となり、処理負荷も大きく、高速に処理することは困難である。   However, it is necessary for the application program or the printer to be able to print an image corresponding to each seal of the divided seal. When trying to print from an application program that does not support the division seal, the printer drive bar is used in a fixed flow of selecting one image, selecting a print medium size, selecting a print medium type, and starting printing. Such an application program has no concept of layout, and even if, for example, a mini photo sticker in which a 16-part sticker is arranged on one sheet is selected as the type of print medium, the size of the print medium in the application program is selected. Therefore, an image having the full print medium size is passed to the printer driver. Since the user has selected the mini photo sticker as the print medium type, the user expects that the 16-divided mini photo sticker will be printed. However, due to the structure of the driver, the print medium fills up like any other print medium. The image will be printed. In addition, when the printer side uniquely handles it, a large image memory for storing image data is required, the processing load is large, and high-speed processing is difficult.

さらに、現在市販の特殊印刷媒体にアプリケーションプログラムが対応していたとしても、アプリケーションプログラムの作成後に発売された特殊印刷媒体に対しては、プリンタが対応していてもアプリケーションプログラムでは対応できないことになる。   In addition, even if an application program is compatible with a commercially available special print medium, the application program cannot support a special print medium released after the application program is created even if the printer supports it. .

本発明は、このような課題を解決し、ひとつの画像データから同一の画像を1枚の印刷媒体に複数並べてプリンタに印刷させることのできるプリンタ制御方法および装置ならびにプリンタ制御プログラムを提供することを目的とする。   The present invention solves such problems and provides a printer control method and apparatus, and a printer control program capable of causing a printer to print a plurality of identical images from a single image data on a single print medium. Objective.

本発明の第1の観点によると、画像データを取り込んで1枚の印刷媒体にM×N個(M、Nは共に2以上の整数)の同一画像として印刷できるサイズに縮小する第1のステップと、縮小された画像データの1ラインのデータをM回繰り返して印刷用の1ラインのラスタデータを生成する第2のステップと、この第2のステップで生成されたラスタデータをプリンタに送信する第3のステップとを含み、第2のステップおよび第3のステップを縮小された画像データの最初のラインから最後のラインまで繰り返し、さらにそれをN回繰り返すことを特徴とするプリンタ制御方法が提供される。   According to the first aspect of the present invention, the first step of capturing image data and reducing it to a size that can be printed as one M × N (M and N are integers of 2 or more) identical images on a single print medium. A second step of generating one line raster data for printing by repeating one line of the reduced image data M times, and transmitting the raster data generated in the second step to the printer. A printer control method comprising: repeating a second step and a third step from the first line to the last line of the reduced image data, and further repeating it N times Is done.

第1のステップで1ライン分のデータを縮小する毎に第2のステップおよび第3のステップを実行し、第1のステップにより縮小された画像データを最初のラインから最後のラインまで蓄え、この蓄えられた画像データに対して、第2のステップおよび第3のステップをその画像データの最初のラインから最後のラインまで繰り返し、さらにそれをN−1回繰り返すことが望ましい。   Each time the data for one line is reduced in the first step, the second step and the third step are executed, and the image data reduced in the first step is stored from the first line to the last line. It is desirable to repeat the second step and the third step for the stored image data from the first line to the last line of the image data, and then repeat it N-1 times.

本発明の第2の観点によると、画像データが入力される画像データ入力部と、入力された画像データを1枚の印刷媒体にM×N個(M、Nは共に2以上の整数)の同一画像として印刷できるサイズに縮小する縮小処理部と、縮小された画像データの1ライン毎のデータをM回繰り返してそれぞれ印刷用の1ラインのラスタデータを生成し、縮小された画像データの最初のラインに相当するラスタデータから縮小された画像データの最後のラインに相当するラスタデータまでをN回繰り返して生成するラスタデータ生成部と、生成されたラスタデータを1ライン毎にプリンタに送信するラスタバッファとを備えたことを特徴とするプリンタ制御装置が提供される。   According to the second aspect of the present invention, an image data input unit to which image data is input, and M × N pieces of input image data (M and N are integers of 2 or more) on one print medium. A reduction processing unit that reduces to a size that can be printed as the same image, and data for each line of the reduced image data are repeated M times to generate one line of raster data for printing, and the first of the reduced image data A raster data generation unit that repeatedly generates N data from raster data corresponding to the first line to raster data corresponding to the last line of the reduced image data, and transmits the generated raster data to the printer line by line. A printer control apparatus comprising a raster buffer is provided.

縮小処理部により縮小された画像データを蓄える縮小画像バッファを備え、ラスタデータ生成部は、縮小処理部が1ライン分のデータを縮小する毎にその縮小されたデータをM回繰り返して印刷用のラスタデータを生成し、縮小処理部が最後のラインの縮小処理を終えた後は、縮小画像バッファから1ライン毎のデータを取り出しそのデータをM回繰り返すことでそれぞれ印刷用の1ラインのラスタデータを生成し、縮小画像バッファに蓄えられた画像データの最初のラインから最後のラインまでをN−1回繰り返すことが望ましい。   A reduced image buffer for storing image data reduced by the reduction processing unit is provided, and the raster data generation unit repeats the reduced data M times each time the reduction processing unit reduces the data for one line. After the raster data is generated and the reduction processing unit finishes the reduction processing of the last line, the data for each line is taken out from the reduced image buffer and the data is repeated M times so that each line of raster data for printing is printed. Is preferably repeated N-1 times from the first line to the last line of the image data stored in the reduced image buffer.

本発明の第3の観点によると、コンピュータに、画像データを取り込んで1枚の印刷媒体にM×N個(M、Nは共に2以上の整数)の同一画像として印刷できるサイズに縮小する第1の手順と、縮小された画像データの1ラインのデータをM回繰り返して印刷用の1ラインのラスタデータを生成する第2の手順と、この第2の手順で生成されたラスタデータをプリンタに送信する第3の手順と、第2の手順および第3の手順を縮小された画像データの最初のラインから最後のラインまで繰り返し、さらにそれをN回繰り返す第4の手順とを実行させることを特徴とするプリンタ制御プログラムが提供される。   According to the third aspect of the present invention, the image data is taken into a computer and reduced to a size that can be printed as M × N (M and N are integers of 2 or more) identical images on a single print medium. 1 procedure, a second procedure for generating 1 line raster data for printing by repeating 1 line data of the reduced image data M times, and the raster data generated by the second procedure is printed on the printer. And a fourth procedure that repeats the second procedure and the third procedure from the first line to the last line of the reduced image data and repeats it N times. A printer control program is provided.

コンピュータに、第4の手順として、第1の手順で1ライン分のデータを縮小する毎に第2の手順および第3の手順を実行する手順と、第1の手順により縮小された画像データを最初のラインから最後のラインまで蓄える手順と、この蓄えられた画像データに対して、第2の手順および第3の手順をその画像データの最初のラインから最後のラインまで繰り返し、さらにそれをN−1回繰り返す手順とを実行させることが望ましい。   As a fourth procedure, the computer stores the procedure for executing the second procedure and the third procedure every time data for one line is reduced in the first procedure, and the image data reduced by the first procedure. For the stored procedure from the first line to the last line and for the stored image data, the second and third procedures are repeated from the first line to the last line of the image data, It is desirable to execute a procedure that is repeated once.

[第1の実施の形態]
図1は本発明の第1の実施の形態を示すブロック構成図であり、本発明をプリンタ制御装置として実施した例を示す。このプリンタ制御装置1は、コンピュータ、ネットワーク、画像メモリその他の画像データ供給源とプリンタ2との間に接続され、入力された画像データからプリンタ2が印刷するためのデータを1ラスタライン毎に生成して出力する装置であり、画像データが入力される画像データ入力部11と、入力された画像データを1枚の印刷媒体にM×N個(M、Nは共に2以上の整数)の同一画像として印刷できるサイズに縮小する縮小処理部12と、縮小処理部12により縮小された画像データを蓄える縮小画像バッファ13と、縮小された画像データの1ライン毎のデータをM回繰り返してそれぞれ印刷用の1ラインのラスタデータを生成し、縮小された画像データの最初のラインに相当するラスタデータから縮小された画像データの最後のラインに相当するラスタデータまでをN回繰り返して生成するラスタデータ生成部14と、生成されたラスタデータを1ライン毎にプリンタに送信するラスタバッファ15とを備える。
[First Embodiment]
FIG. 1 is a block diagram showing the first embodiment of the present invention, and shows an example in which the present invention is implemented as a printer control apparatus. The printer control apparatus 1 is connected between a printer, a computer, a network, an image memory, and other image data supply sources, and generates data for the printer 2 to print from input image data for each raster line. The image data input unit 11 to which image data is input and M × N pieces of input image data on a single print medium (M and N are integers of 2 or more) are the same. The reduction processing unit 12 that reduces the image data to a size that can be printed, the reduced image buffer 13 that stores the image data reduced by the reduction processing unit 12, and the data for each line of the reduced image data are printed M times repeatedly. 1 line raster data is generated, and the last of the reduced image data is generated from the raster data corresponding to the first line of the reduced image data. Comprising up to raster data corresponding to the in-raster data generation unit 14 for generating repeated N times, a raster buffer 15 to transmit the generated raster data to the printer for each line.

[第1の実施の形態の動作]
図2は図1に示したプリンタ制御装置1の動作のフローチャートである。画像データをM×N個印刷するには、余白を含める必要があるため、元の画像データをM分の1またはN分の1より小さく縮小する必要がある。以下では、簡単のため、余白部分は考慮せず、画像データ入力部11に入力された画像データを縦、横共にM分の1に縮小し、1枚の印刷媒体に横M個、縦N個印刷するものとして説明する。ここで「縦」および「横」とはそれぞれ、プリンタの給紙方向およびラスタ方向を意味する。この方向は、必ずしも、印刷される画像データの方向と同一となるわけではないことに注意する必要がある。
[Operation of First Embodiment]
FIG. 2 is a flowchart of the operation of the printer control apparatus 1 shown in FIG. In order to print M × N pieces of image data, it is necessary to include a margin, so it is necessary to reduce the original image data to be smaller than 1 / M or 1 / N. In the following, for the sake of simplicity, the blank portion is not taken into consideration, and the image data input to the image data input unit 11 is reduced to 1 / M in both the vertical and horizontal directions. A description will be given assuming that individual printing is performed. Here, “vertical” and “horizontal” mean the paper feeding direction and raster direction of the printer, respectively. Note that this direction is not necessarily the same as the direction of the image data to be printed.

画像データ入力部11は画像バッファを備え、この画像バッファに画像データが格納されると、縮小処理部12は、その画像データを印刷する際の1ラスタラインに相当する画像データを受け取り(ステップS1)、M分の1に縮小して(ステップS2)、縮小画像バッファ13へ格納する(ステップS3)。ここで、縮小処理部12が受け取る「1ラスタラインに相当する画像データ」とは、元の画像データが縦方向に縮小されるように間引いたデータでもよく、縮小処理部12で縦方向の縮小も行うものとして、その縮小の対象となる画像データでもよい。ラスタデータ生成部14は、縮小処理部12から縮小された1ライン分のデータを受け取り、それを横方向にM回繰り返してラスタバッファ15に書き込むことで、1ライン分のラスタデータを生成する(ステップS4)、ラスタバッファ15に蓄えられたデータは、プリンタ2に送信される(ステップS5)。以上の処理を画像データの最後のラスタラインまで繰り返す(S6)。以上の処理により、プリンタ2では、横方向にM個の縮小画像が印刷される。   The image data input unit 11 includes an image buffer. When image data is stored in the image buffer, the reduction processing unit 12 receives image data corresponding to one raster line when printing the image data (step S1). ), Reduced to 1 / M (step S2), and stored in the reduced image buffer 13 (step S3). Here, the “image data corresponding to one raster line” received by the reduction processing unit 12 may be data thinned out so that the original image data is reduced in the vertical direction. Also, the image data to be reduced may be used. The raster data generation unit 14 receives the data for one line reduced from the reduction processing unit 12, and repeats it M times in the horizontal direction and writes it into the raster buffer 15, thereby generating raster data for one line ( In step S4, the data stored in the raster buffer 15 is transmitted to the printer 2 (step S5). The above processing is repeated until the last raster line of the image data (S6). With the above processing, the printer 2 prints M reduced images in the horizontal direction.

続いてラスタデータ生成部14は、縮小画像バッファ13から縮小された1ライン分のデータを取り出し(ステップS7)、それを横方向にM回繰り返してラスタバッファ15に書き込むことで、1ライン分のラスタデータを生成する(ステップS8)、ラスタバッファ15に蓄えられたデータはプリンタ2に送信される(ステップS9)。以上の処理を画像データの最後のラスタラインまで繰り返す(ステップS10)。以上の処理により、プリンタ2では、2行目のM個の縮小画像が印刷される。ステップS7からステップ11の処理をN−1回繰り返すことで(ステップS11)、プリンタ2でM×N個の縮小画像の印刷が完了する。   Subsequently, the raster data generation unit 14 extracts one line of reduced data from the reduced image buffer 13 (step S7), repeats it M times in the horizontal direction, and writes it in the raster buffer 15 to thereby store one line. Raster data is generated (step S8), and the data stored in the raster buffer 15 is transmitted to the printer 2 (step S9). The above processing is repeated until the last raster line of the image data (step S10). With the above processing, the printer 2 prints M reduced images in the second row. By repeating the processing from step S7 to step 11 N-1 times (step S11), the printer 2 completes printing of M × N reduced images.

この実施の形態では、最初のM個の縮小画像について、縮小処理部12の出力から直接にラスタデータ生成部14でラスタデータを生成している。これにより、画像データの縮小処理中に印刷を開始することができ、プリンタ2の待ち時間を短縮することができる。また、それ以降の縮小画像については、縮小画像バッファ13に蓄えたデータを利用することで、縮小処理を繰り返す必要がなくなる。   In this embodiment, raster data generation unit 14 generates raster data directly from the output of reduction processing unit 12 for the first M reduced images. Thus, printing can be started during the image data reduction process, and the waiting time of the printer 2 can be shortened. For the subsequent reduced images, the data stored in the reduced image buffer 13 is used so that it is not necessary to repeat the reduction process.

[印刷媒体と印刷レイアウトの例]
図3は分割シールのレイアウト例を説明する図であり、図4は正常な印刷結果の例、図5はレイアウト処理しない場合の印刷結果の例を示す。ここでは、1枚のシートに16枚のシールが配置されたミニフォトシールのレイアウト例を示す。画像データをレイアウト処理せずにそのまま印刷媒体サイズで印刷すると、図5に示すように、印刷媒体サイズ一杯の画像が印刷されてしまう。これに対して、図1および図2を参照して説明したレイアウト処理をM=N=4として実行することで、図4に示すような印刷結果が得られる。
[Examples of print media and print layout]
FIG. 3 is a diagram for explaining a layout example of divided seals. FIG. 4 shows an example of a normal printing result, and FIG. Here, a layout example of a mini photo sticker in which 16 stickers are arranged on one sheet is shown. If the image data is printed as it is in the print medium size without performing layout processing, an image having the full print medium size is printed as shown in FIG. In contrast, when the layout process described with reference to FIGS. 1 and 2 is executed with M = N = 4, a print result as shown in FIG. 4 is obtained.

なお、印刷媒体の給紙方向が図3から図5における横方向(印刷媒体の長手方向)である場合、図2を参照した説明において用いた「横方向」とは、図3から図5における縦方向となる。   When the print medium feeding direction is the horizontal direction in FIG. 3 to FIG. 5 (the longitudinal direction of the print medium), the “lateral direction” used in the description with reference to FIG. The vertical direction.

[第2の実施の形態]
図6は本発明の第2の実施の形態を示すブロック構成図である。この実施の形態は、プリンタ2のアトリビュート情報を取得して画像データ供給源に通知し、また、縮小処理部12およびラスタデータ生成部14にも通知するアトリビュート情報取得処理部16を備えたことが第1の実施の形態と異なる。
[Second Embodiment]
FIG. 6 is a block diagram showing a second embodiment of the present invention. This embodiment includes an attribute information acquisition processing unit 16 that acquires attribute information of the printer 2 and notifies the image data supply source of the attribute information, and also notifies the reduction processing unit 12 and the raster data generation unit 14. Different from the first embodiment.

第1の実施の形態に関する説明では、単純化のため、プリンタ制御装置1が入力画像データを縮小してプリンタ2にM×N個の縮小画像を印刷させる処理に関してのみ説明した。実用的には、プリンタ制御装置1を、プリンタ2のアトリビュート情報や入力される画像データの大きさに係わらずに、入力された画像データをある特定の印刷媒体種類に対応するサイズに縮小して、1枚の印刷媒体にM×N個の同一画像として印刷する装置として実施することもできる。この場合、画像データの縦横比と印刷すべき領域の縦横比が一致しない場合には、縦横比が変化しないように画像データの一部を切り取って処理してもよく、縦横比が変化を許容することとしてもよい。ただ、このような装置は固定的な処理しかできず、柔軟性に乏しいものとなってしまう。   In the description of the first embodiment, for simplification, only the process in which the printer control apparatus 1 reduces the input image data and causes the printer 2 to print M × N reduced images has been described. Practically, the printer control device 1 reduces the input image data to a size corresponding to a specific print medium type regardless of the attribute information of the printer 2 and the size of the input image data. The present invention can also be implemented as an apparatus that prints M × N identical images on a single print medium. In this case, if the aspect ratio of the image data does not match the aspect ratio of the area to be printed, a part of the image data may be cut and processed so that the aspect ratio does not change, and the aspect ratio is allowed to change. It is good to do. However, such an apparatus can only perform a fixed process and is inflexible.

これに対して第2の実施の形態では、アトリビュート情報取得処理部16がプリンタ2からアトリビュート情報を取得し、縮小処理部12およびラスタデータ生成部14は、画像データ供給源からの印刷媒体種類の指定に対応して、レイアウト処理が必要かどうかを判断し、その判断に基づいてプリンタ制御を行う。   On the other hand, in the second embodiment, the attribute information acquisition processing unit 16 acquires attribute information from the printer 2, and the reduction processing unit 12 and the raster data generation unit 14 determine the type of print medium from the image data supply source. In response to the designation, it is determined whether layout processing is necessary, and printer control is performed based on the determination.

[第3の実施の形態]
図7は本発明の第3の実施の形態を示すブロック構成図であり、本発明をプリンタドライバプログラムとして実施した例を示す。コンピュータ20は、CPU、RAM、ROM、ハードディスク、各種インタフェース等のハードウェアを備え、所定のオペレーティングシステムの下で、アプリケーションプログラム31、ビデオドライバプログラム32、プリンタドライバプログラム33等のプログラムが動作可能となっている。なお、図7では、コンピュータ20を構成するハードウェアのうち、プリンタ制御に関連するメモリ23、ビデオインタフェース24およびプリンタインタフェース25を破線のブロックで示す。プリンタドライバプログラム33は、画像データを取り込んで1枚の印刷媒体にM×N個(M、Nは共に2以上の整数)の同一画像として印刷できるサイズに縮小する第1の手順を実行する画像データ入力部35および縮小処理部36と、縮小された画像データの1ラインのデータをM回繰り返して印刷用の1ラインのラスタデータを生成する第2の手順、この第2の手順で生成されたラスタデータをプリンタ22に送信する第3の手順、ならびに第2の手順および第3の手順を縮小された画像データの最初のラインから最後のラインまで繰り返し、さらにそれをN回繰り返す第4の手順を実行するラスタデータ生成部37とを備える。
[Third Embodiment]
FIG. 7 is a block diagram showing the third embodiment of the present invention, and shows an example in which the present invention is implemented as a printer driver program. The computer 20 includes hardware such as a CPU, RAM, ROM, hard disk, and various interfaces, and programs such as an application program 31, a video driver program 32, and a printer driver program 33 can operate under a predetermined operating system. ing. In FIG. 7, the memory 23, the video interface 24, and the printer interface 25 related to printer control among the hardware configuring the computer 20 are indicated by broken-line blocks. The printer driver program 33 captures image data and executes a first procedure for reducing the size so that M × N (M and N are integers of 2 or more) identical images can be printed on a single print medium. A second procedure for generating one line of raster data for printing by repeating the data input unit 35 and the reduction processing unit 36 with one line of the reduced image data M times, and is generated by this second procedure. The third procedure for transmitting the raster data to the printer 22, and the second procedure and the third procedure are repeated from the first line to the last line of the reduced image data, and this is repeated N times. And a raster data generation unit 37 for executing the procedure.

各プログラムによる印刷処理について説明する。アプリケーションプログラム31は、画像の加工、表示および印刷を行うための各種の処理を行う。ビデオドライバプログラム32は、アプリケーションプログラム31からの指示により、ビデオインタフェース24を介してディスプレイ装置21に、画像や文字、映像、ユーザインタフェース等の各種情報などを表示させる。プリンタドライバプログラム33は、アプリケーションプログラム31からの指示により、プリンタ22で画像や文字を印刷するための処理を行う。   The printing process by each program will be described. The application program 31 performs various processes for processing, displaying, and printing an image. The video driver program 32 displays various information such as images, characters, videos, and user interfaces on the display device 21 via the video interface 24 according to instructions from the application program 31. The printer driver program 33 performs processing for printing images and characters on the printer 22 in accordance with instructions from the application program 31.

次に、プリンタドライバプログラム34の動作について説明する。アトリビュート情報取得処理部34は、プリンタインタフェース25を介して、プリンタ22からそのプリンタの固有の情報であるアトリビュート情報を取得し、その情報をアプリケーションプログラム31に通知すると共に、縮小処理部36およびラスタデータ生成部37にも通知する。画像データ入力部35は、アプリケーションプログラム31から、印刷命令と印刷すべき画像データを受け取る。この印刷命令には、選択された印刷媒体サイズおよび印刷媒体種類の情報が含まれる。縮小処理部36は、選択された印刷媒体種類がM×Nの分割シートである場合、その個々の分割シートに画像が印刷されるような大きさに画像データを縮小し、メモリ23に格納すると共に、ラスタデータ生成部37に出力する。ラスタデータ生成部37は、縮小処理部36から縮小された1ライン分のデータを受け取り、それを横方向にM回繰り返した1ライン分のラスタデータを生成して、プリンタインタフェース25を介してプリンタ22に送信する。ラスタデータ生成部37は以上の処理を画像データの最後のラスタラインまで繰り返し、プリンタ22に、横方向にM個の縮小画像を印刷させる。続いてラスタデータ生成部37は、メモリ23から縮小された1ライン分のデータを取り出し、それを横方向にM回繰り返して1ライン分のラスタデータを生成し、プリンタインタフェース25を介してプリンタ22に送信する。これを画像データの最後のラスタラインまで繰り返し、さらに、その繰り返し処理をN−1回繰り返す。これによりプリンタ22では、M×N個の縮小画像の印刷が完了する。   Next, the operation of the printer driver program 34 will be described. The attribute information acquisition processing unit 34 acquires attribute information, which is unique information of the printer, from the printer 22 via the printer interface 25, notifies the application program 31 of the information, and reduces the reduction processing unit 36 and raster data. The generation unit 37 is also notified. The image data input unit 35 receives a print command and image data to be printed from the application program 31. This print command includes information on the selected print medium size and print medium type. When the selected print medium type is an M × N divided sheet, the reduction processing unit 36 reduces the image data to such a size that an image is printed on each divided sheet, and stores the image data in the memory 23. At the same time, the data is output to the raster data generation unit 37. The raster data generation unit 37 receives the data for one line reduced from the reduction processing unit 36, generates raster data for one line by repeating the data M times in the horizontal direction, and outputs the data via the printer interface 25 to the printer. 22 to send. The raster data generation unit 37 repeats the above processing up to the last raster line of the image data, and causes the printer 22 to print M reduced images in the horizontal direction. Subsequently, the raster data generation unit 37 takes out the reduced data for one line from the memory 23 and repeats it in the horizontal direction M times to generate raster data for one line, and the printer 22 via the printer interface 25. Send to. This is repeated until the last raster line of the image data, and the repetition process is repeated N-1 times. Thus, the printer 22 completes printing of M × N reduced images.

この実施の形態では、分割シートのような特殊印刷媒体をサポートするためにアプリケーションプログラム31側で対応する必要はない。このため、アプリケーションプログラム31の製作者がドライバプログラム33の製作者と異なる場合でも、ドライバプログラム33の製作者のみの作業で特殊印刷媒体に対応できるようになる。   In this embodiment, it is not necessary to deal with the application program 31 in order to support a special print medium such as a divided sheet. For this reason, even when the producer of the application program 31 is different from the producer of the driver program 33, it becomes possible to deal with the special print medium only by the work of the producer of the driver program 33.

以上の説明では分割シートを例に説明したが、本発明は、他の印刷媒体に印刷する場合にも同様に実施できる。例えば、通常の紙に複数の縮小画像を印刷したり、プラスチックや布などの紙以外の印刷媒体に縮小画像を印刷することもできる。   In the above description, the divided sheet has been described as an example. However, the present invention can be similarly implemented when printing on another print medium. For example, a plurality of reduced images can be printed on normal paper, or the reduced images can be printed on a printing medium other than paper such as plastic or cloth.

本発明の第1の実施の形態を示すブロック構成図であり、本発明をプリンタ制御装置として実施した例を示す。1 is a block configuration diagram showing a first embodiment of the present invention, and shows an example in which the present invention is implemented as a printer control device. FIG. 図1に示したプリンタ制御装置の動作のフローチャートである。2 is a flowchart of the operation of the printer control apparatus shown in FIG. 分割シールのレイアウト例を説明する図である。It is a figure explaining the example of a layout of a division | segmentation seal | sticker. 図3に示した分割シールへの正常な印刷結果の例を示す図である。It is a figure which shows the example of the normal printing result to the division | segmentation seal | sticker shown in FIG. レイアウト処理しない場合の図3に示した分割シールへの印刷結果の例を示す図である。FIG. 4 is a diagram illustrating an example of a result of printing on a divided sticker illustrated in FIG. 3 when layout processing is not performed. 本発明の第2の実施の形態を示すブロック構成図であり、本発明をプリンタ制御装置として実施した例を示す。It is a block block diagram which shows the 2nd Embodiment of this invention, and shows the example which implemented this invention as a printer control apparatus. 本発明の第3の実施の形態を示すブロック構成図であり、本発明をプリンタドライバプログラムとして実施した例を示す。It is a block block diagram which shows the 3rd Embodiment of this invention, and shows the example which implemented this invention as a printer driver program.

符号の説明Explanation of symbols

1 プリンタ制御装置
2、22 プリンタ
11、35 画像データ入力部
12、36 縮小処理部
13 縮小画像バッファ
14、37 ラスタデータ生成部
15 ラスタバッファ
16、34 アトリビュート情報取得処理部
20 コンピュータ
21 ディスプレイ装置
23 メモリ
24 ビデオインタフェース
25 プリンタインタフェース
31 アプリケーションプログラム
32 ビデオドライバプログラム
33 プリンタドライバ
DESCRIPTION OF SYMBOLS 1 Printer control apparatus 2, 22 Printer 11, 35 Image data input part 12, 36 Reduction process part 13 Reduced image buffer 14, 37 Raster data generation part 15 Raster buffer 16, 34 Attribute information acquisition process part 20 Computer 21 Display apparatus 23 Memory 24 Video Interface 25 Printer Interface 31 Application Program 32 Video Driver Program 33 Printer Driver

Claims (4)

画像データを取り込んで、取り込んだ画像データのうち印刷する際の1ラインに相当する画像データを、画像データ全体が1枚の印刷媒体にM×N(M、Nは共に2以上の整数)の同一画像として印刷できるサイズに縮小する第1のステップと、
縮小された1ライン分の画像データをM回繰り返して印刷用の1ラインのラスタデータを生成する第2のステップと、
この第2のステップで生成された上記ラスタデータをプリンタに送信する第3のステップと
を含み、
上記M個×N行の同一画像のうち、プリンタの給紙方向において1行目のM個の同一画像を印刷する際には、
上記第1のステップで1ライン分の画像データを縮小する毎に上記第2のステップおよび上記第3のステップを実行し、
上記第1のステップにより縮小された画像データを最初のラインから最後のラインまで蓄え、
上記M個×N行の同一画像のうち、プリンタの給紙方向において2行目以降のM個の同一画像を印刷する際には、
蓄えられた最初のラインから最後のラインまでの画像データに対して、上記第2のステップおよび上記第3のステップを繰り返し、さらにそれをN−1回繰り返す
ことを特徴とするプリンタ制御方法。
Capturing image data, the image data corresponding to one line for printing among the image data captured, M pieces × N rows whole image data on one print medium (M, N are both integer of 2 or more A first step of reducing the image to a size that can be printed as the same image of
The reduced image data for one line has a second step of generating the raster data for one line for printing repeated M times,
A third step of transmitting the raster data generated in the second step to a printer,
When printing M identical images in the first row in the paper feeding direction of the M × N identical images,
Each time the image data for one line is reduced in the first step, the second step and the third step are executed.
The image data reduced by the first step is stored from the first line to the last line,
Of the above M × N same images, when printing M same images in the second and subsequent rows in the paper feed direction of the printer,
A printer control method characterized by repeating the second step and the third step with respect to the stored image data from the first line to the last line, and further repeating it N-1 times .
前記Mおよび前記Nは共に4であり、前記1枚の印刷媒体は裏面に粘着層が設けられたシールが1枚のシートに配置された分割シール印刷用紙である請求項1記載のプリンタ制御方法。   2. The printer control method according to claim 1, wherein both M and N are 4, and the one printing medium is a divided sticker printing sheet in which a sticker provided with an adhesive layer on a back surface is arranged on one sheet. . 画像データが入力される画像データ入力部と、
入力された画像データのうち印刷する際の1ラインに相当する画像データを、画像データ全体が1枚の印刷媒体にM×N(M、Nは共に2以上の整数)の同一画像として印刷できるサイズに縮小する縮小処理部と、
縮小された1ライン分の画像データをM回繰り返してそれぞれ印刷用の1ラインのラスタデータを生成し、上記画像データの最初のラインに相当するラスタデータから上記画像データの最後のラインに相当するラスタデータまでをN回繰り返して生成するラスタデータ生成部と、
生成されたラスタデータを1ライン毎にプリンタに送信するラスタバッファと
上記縮小処理部により縮小された画像データを蓄える縮小画像バッファと
を備え
上記M個×N行の同一画像のうち、プリンタの給紙方向において1行目のM個の同一画像を印刷する際には、
上記ラスタデータ生成部は、上記縮小処理部が1ライン分の画像データを縮小する毎にその縮小された画像データをM回繰り返して印刷用のラスタデータを生成し、
上記縮小画像バッファは、上記縮小処理部により縮小された画像データを最初のラインから最後のラインまで蓄え、
上記M個×N行の同一画像のうち、プリンタの給紙方向において2行目以降のM個の同一画像を印刷する際には、
上記縮小画像バッファから1ライン毎の画像データを取り出しその画像データをM回繰り返すことでそれぞれ印刷用の1ラインのラスタデータを生成し、上記縮小画像バッファに蓄えられた画像データの最初のラインから最後のラインまでをN−1回繰り返す
ことを特徴とするプリンタ制御装置。
An image data input unit for inputting image data;
The image data corresponding to one line when printing of the input image data, M number × N rows whole image data on one print medium (M, N are both integer of 2 or more) as the same images A reduction processing unit that reduces the size to a printable size;
The reduced image data for one line was generated raster data for one line for printing each repeated M times, which corresponds to the last line of the image data from the raster data corresponding to the first line of the image data A raster data generation unit that repeatedly generates up to raster data N times;
A raster buffer for transmitting the generated raster data to the printer line by line ;
A reduced image buffer for storing the image data reduced by the reduction processing unit ,
When printing M identical images in the first row in the paper feeding direction of the M × N identical images,
The raster data generation unit generates raster data for printing by repeating the reduced image data M times each time the reduction processing unit reduces the image data for one line,
The reduced image buffer stores the image data reduced by the reduction processing unit from the first line to the last line,
Of the above M × N same images, when printing M same images in the second and subsequent rows in the paper feed direction of the printer,
The image data for each line is extracted from the reduced image buffer, and the image data is repeated M times to generate one line of raster data for printing. From the first line of the image data stored in the reduced image buffer, A printer control apparatus characterized by repeating N-1 times up to the last line .
コンピュータに、
画像データを取り込んで、取り込んだ画像データのうち印刷する際の1ラインに相当する画像データを、画像データ全体が1枚の印刷媒体にM×N(M、Nは共に2以上の整数)の同一画像として印刷できるサイズに縮小する第1の手順と、
縮小された1ライン分の画像データをM回繰り返して印刷用の1ラインのラスタデータを生成する第2の手順と、
この第2の手順で生成されたラスタデータをプリンタに送信する第3の手順と
を実行させ
上記M個×N行の同一画像のうち、プリンタの給紙方向において1行目のM個の同一画像を印刷する際には、
上記第1の手順で1ライン分の画像データを縮小する毎に上記第2の手順および上記第3の手順を実行する手順と、
上記第1の手順により縮小された画像データを最初のラインから最後のラインまで蓄える手順と、
を実行させ、
上記M個×N行の同一画像のうち、プリンタの給紙方向において2行目以降のM個の同一画像を印刷する際には、
蓄えられた最初のラインから最後のラインまでの画像データに対して、上記第2の手順および上記第3の手順を繰り返し、さらにそれをN−1回繰り返す手順と
を実行させることを特徴とするプリンタ制御プログラム。
On the computer,
Capturing image data, the image data corresponding to one line for printing among the image data captured, M pieces × N rows whole image data on one print medium (M, N are both integer of 2 or more ) A first procedure for reducing the size so that it can be printed as the same image;
The reduced image data for one line has a second procedure for generating raster data for one line for printing repeated M times,
A third procedure for transmitting the raster data generated in the second procedure to the printer ; and
When printing M identical images in the first row in the paper feeding direction of the M × N identical images,
A procedure for executing the second procedure and the third procedure each time image data for one line is reduced in the first procedure;
A procedure for storing the image data reduced by the first procedure from the first line to the last line;
And execute
Of the above M × N same images, when printing M same images in the second and subsequent rows in the paper feed direction of the printer,
A procedure in which the second procedure and the third procedure are repeated on the stored image data from the first line to the last line, and the procedure is repeated N-1 times.
Printer control program characterized Rukoto allowed to run.
JP2008047300A 2008-02-28 2008-02-28 Printer control method and apparatus, and printer control program Expired - Fee Related JP5251166B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2008047300A JP5251166B2 (en) 2008-02-28 2008-02-28 Printer control method and apparatus, and printer control program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2008047300A JP5251166B2 (en) 2008-02-28 2008-02-28 Printer control method and apparatus, and printer control program

Publications (2)

Publication Number Publication Date
JP2009205460A JP2009205460A (en) 2009-09-10
JP5251166B2 true JP5251166B2 (en) 2013-07-31

Family

ID=41147645

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2008047300A Expired - Fee Related JP5251166B2 (en) 2008-02-28 2008-02-28 Printer control method and apparatus, and printer control program

Country Status (1)

Country Link
JP (1) JP5251166B2 (en)

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08332745A (en) * 1995-06-08 1996-12-17 Casio Electron Mfg Co Ltd Copy printer and copy printing and reading apparatus
JP2000313143A (en) * 1999-04-30 2000-11-14 Olympus Optical Co Ltd Printer
JP2004102712A (en) * 2002-09-10 2004-04-02 Fuji Xerox Co Ltd Printing device, printing instruction device, image forming device, printing method and program
JP2004142435A (en) * 2002-10-01 2004-05-20 Seiko Epson Corp Printer, method of printing, program, and printing system
JP2006062132A (en) * 2004-08-25 2006-03-09 Canon Inc Image data conversion circuit
JP4454532B2 (en) * 2005-05-16 2010-04-21 ローム株式会社 Image processing device, mobile phone

Also Published As

Publication number Publication date
JP2009205460A (en) 2009-09-10

Similar Documents

Publication Publication Date Title
JP5531531B2 (en) Image processing system and image processing program
JP2009282853A (en) Image processing apparatus, image processing method, and image processing program
JP2018147259A (en) Information processing device, program, storage medium, and information processing method
JP2013153521A (en) Controller and program
US20140204418A1 (en) Print data generating apparatus and image recording system
JP2009059197A (en) Display system, display method, and display program
JP6447564B2 (en) Image forming apparatus, program, and information processing system
JP5251166B2 (en) Printer control method and apparatus, and printer control program
US10140558B2 (en) Print control system, print control apparatus, and program
JP2009269179A (en) Printer, program and recording medium
JP6755644B2 (en) Character processing device, character processing method, character processing program
JP2010238086A (en) Image input/output device, print preview display method, and print preview display program
JP2009101662A (en) Printing processor
JP2008022048A (en) Image processing setter, image processor, image formation system, image processing setting method, image processing method and image forming method
JP2006327126A (en) Image forming apparatus
JP2008060730A (en) Image processor, image processing method, image processing program, and recording medium
JP2008020994A (en) Printer driver software and computer
JP2017054470A (en) Image processing device and image processing method
JP2014197349A (en) Picture processing device, information processing method, and program
JP4552695B2 (en) Driver program and print control method
JP2016200999A (en) Printing instruction device, printing system, and program
JPH11170675A (en) Printer system
JP5151564B2 (en) Printer control method and apparatus, and printer control program
JP5675160B2 (en) Printing apparatus, image processing method, and program
JP2007087156A (en) Print controller, print control method, print control program, and recording medium

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20110114

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20120815

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20120820

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20121017

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20130319

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20130401

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20160426

Year of fee payment: 3

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

LAPS Cancellation because of no payment of annual fees