JPH0255170A - Printer controller - Google Patents

Printer controller

Info

Publication number
JPH0255170A
JPH0255170A JP20548388A JP20548388A JPH0255170A JP H0255170 A JPH0255170 A JP H0255170A JP 20548388 A JP20548388 A JP 20548388A JP 20548388 A JP20548388 A JP 20548388A JP H0255170 A JPH0255170 A JP H0255170A
Authority
JP
Japan
Prior art keywords
image
size
image data
orientation
memory
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
JP20548388A
Other languages
Japanese (ja)
Inventor
Hiroto Katsumata
勝又 宏人
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.)
Toshiba Corp
Original Assignee
Toshiba 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 Toshiba Corp filed Critical Toshiba Corp
Priority to JP20548388A priority Critical patent/JPH0255170A/en
Publication of JPH0255170A publication Critical patent/JPH0255170A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To perform a printing process even if the sizes and directions of printing images are different by enlarging/contracting the image in size corresponding to a single slip sheet by image enlarging/contracting means from the identification result of first and second identifying means, and rotating the image by image rotating means to match the direction of the set single slip sheet. CONSTITUTION:If it is judged that the sizes of a set sheet and image data stored in a first page memory 5 do not fit or the direction of the image data and that of the sheet does not coincide, an image data rotation instruction is input from a host computer to a main processor 1 through an external interface 3, a lithography processor 8 rotates at 90 degrees with respect to image data developed in the memory 5, and develops it in a second page memory 6. On the other hand, the processor 8 enlarges/contracts the image data developed in the memory 5 in coincidence with the size of a sheet, and develops it in the memory 6.

Description

【発明の詳細な説明】 [発明の目的] (産業上の利用分野) 本発明は、単票用紙に対して印字処理を行うページプリ
ンタ等においてのプリンタ制御装置に関する。
DETAILED DESCRIPTION OF THE INVENTION [Object of the Invention] (Field of Industrial Application) The present invention relates to a printer control device for a page printer or the like that performs printing processing on slip paper.

(従来の技術) 従来から単票用紙に対して印字処理を行うページプリン
タ等では、プリンタにセットされた印字用紙のサイズに
合せてプリントイメージの形式を決定、あるいはプリン
トイメージの形式に合せて用紙のサイズおよび向きを決
定して印字処理を行っていた。
(Prior art) Conventionally, in page printers that print on cut sheets, the format of the print image is determined according to the size of the print paper set in the printer, or the format of the print image is determined according to the format of the print image. The size and orientation of the image were determined and the printing process was performed.

したがって、例えばA4サイズ縦方向の印字用紙に対す
る印字処理を想定したプログラムにおいて、A4サイズ
め用紙が誤って横方向にセットされていた場合や、B4
サイズ等の異なるサイズの用紙がセットされていた場合
等、プリンタにセットされた印字用紙とプリントイメー
ジとの形式上の違いがある場合は、印字用紙上からの印
字のはみ出しや印字位置の偏りが生じるという難点かあ
った。
Therefore, for example, in a program that assumes printing processing on A4 size paper in the vertical direction, if the A4 size paper is mistakenly set in the horizontal direction, or if the B4
If there is a difference in format between the print paper set in the printer and the print image, such as when paper of different sizes is set, the print may protrude from the print paper or the print position may be uneven. There was a problem with this.

(発明が解決しようとする課題) 本発明は上述した従来のプリンタにおける課題を解決す
るためのもので、プリンタにセットされた単票用紙のサ
イズや向きとプリンタ内部において構築された印字イメ
ージのサイズや向きとが異なる場合でも、単票用紙に適
合する形式で目的の印字処理を行うことのできるプリン
タ制御装置の提供を目的としている。
(Problems to be Solved by the Invention) The present invention is intended to solve the above-mentioned problems with conventional printers. An object of the present invention is to provide a printer control device that can perform a desired printing process in a format that is compatible with a cut sheet even when the direction and direction are different.

[発明の11■成コ (課題を解決するための手段) 本発明のプリンタ制御装置は上記した目的を達成するた
めに、セットされた単票用紙のサイズおよび向きを識別
する第1の識別手段と、単票用紙上に印刷すべきイメー
ジのサイズおよび向きを識別する第2の識別手段と、第
1と第2の識別手段の識別結果より単票用紙のサイズお
よび向きとイメージのサイズおよび向きがそれぞれ適合
するか否かを判定する判定手段と、この判定手段により
111票用紙のサイズとイメージのサイズが適合しない
と判定されたとき、選択的にイメージを前記単票用紙に
応じたサイズに拡大/縮小するイメージ拡大/縮小手段
と、判定手段により単票用紙の向きとイメージの向きが
一致しないと判定されたとき、選択的にイメージを単票
用紙の向きに回転させるイメージ回転手段とを備えたも
のである。
[11 of the Invention (Means for Solving the Problem) In order to achieve the above-mentioned object, the printer control device of the present invention includes a first identification means for identifying the size and orientation of the set cut sheet. and second identification means for identifying the size and orientation of the image to be printed on the cut paper, and the size and orientation of the cut paper and the size and orientation of the image from the identification results of the first and second identification means. and a determining means for determining whether the sizes of the 111 form and the size of the image are compatible with each other, and when the determining means determines that the size of the 111 form and the size of the image do not match, selectively changing the image to a size corresponding to the size of the form. An image enlarging/reducing means for enlarging/reducing the image; and an image rotation means for selectively rotating the image in the direction of the cut sheet when the determining means determines that the orientation of the cut sheet and the orientation of the image do not match. It is prepared.

(作 用) 本発明のプリンタ制御装置では、判定手段が、第1の識
別手段と第2の識別手段のそれぞれの識別結果より、単
票用紙のサイズおよび向きとイメージのサイズおよび向
きがそれぞれ適合するか否かを判定し、そして単票用紙
のサイズとイメージのサイズが適合しないと判定された
とき、イメージ拡大/縮小手段が選択的に単票用紙に応
じたサイズにイメージを拡大/縮小し、また単票用紙の
向きとイメージの向きが一致しないと判定されたとき、
イメージ回転手段が選択的にイメージをセットされた単
票用紙の向きに合せて回転させるので、プリンタにセッ
トされた単票用紙のサイズや向きとプリンタ内部におい
て構築された印字イメージのサイズや向きとが異なる場
合でも、単票用紙に適合する形式で目的の印字処理を行
うことができる。
(Function) In the printer control device of the present invention, the determination means determines that the size and orientation of the cut sheet and the size and orientation of the image are compatible, based on the respective identification results of the first identification means and the second identification means. When it is determined that the size of the cut sheet and the size of the image do not match, the image enlargement/reduction means selectively enlarges/reduces the image to a size corresponding to the cut sheet. , and when it is determined that the orientation of the cut sheet and the orientation of the image do not match,
The image rotation means selectively rotates the image according to the orientation of the cut paper set in the printer, so that the size and orientation of the cut paper set in the printer and the size and orientation of the printed image constructed inside the printer are different. Even if the numbers are different, the desired printing process can be performed in a format that is compatible with the cut sheet.

(実施例) 以下、本発明の実施例を図面に基づいて説明する。(Example) Embodiments of the present invention will be described below based on the drawings.

第1図は本発明の一実施例のプリンタ制御装置の構成を
説明するためのブロック図である。
FIG. 1 is a block diagram for explaining the configuration of a printer control device according to an embodiment of the present invention.

同図におい−C,1はこのプリンタ制御装置の制御を統
括的に行うメインプロセッサ、2はこのメインプロセッ
サ1で実行される制御プログラム等が格納された主メモ
リ、3はホストコンピュータとの間における各種のデー
タの入出力を制御する外部インターフェース部である。
In the same figure, -C, 1 is a main processor that performs overall control of this printer control device, 2 is a main memory in which control programs, etc. executed by this main processor 1 are stored, and 3 is a main memory that is connected to a host computer. This is an external interface unit that controls input/output of various data.

また4はイメージメモリであり、このイメージメモリ4
には、それぞれ1ペ一ジ分のイメージブタが格納される
第1および第2のページメモリ5.6と、印字データに
対応する文字パターンが格納された文字パターン記憶部
7とが備えられている。
Also, 4 is an image memory, and this image memory 4
is equipped with first and second page memories 5.6 each storing one page worth of image data, and a character pattern storage section 7 storing character patterns corresponding to print data. There is.

さらに8は印字データに対応する文字パターンを文字パ
ターン記憶部7より発生させ、これを第1のページメモ
リ5に展開するイメージデータの展開処理や、第1のペ
ージメモリ5に展開されたイメージデータに対する拡大
/縮小処理、90度の回転処理等のイメージデータに係
わる各種の処理を行う描画プロセッサである。
Furthermore, 8 generates a character pattern corresponding to the print data from the character pattern storage unit 7, and performs an image data development process of developing this into the first page memory 5, and image data developed into the first page memory 5. This is a drawing processor that performs various processes related to image data, such as enlarging/reducing processing and 90 degree rotation processing.

なおこの描画プロセッサ8により拡大/縮小されたイメ
ージデータや回転処理されたイメージデータは上述した
第2のページメモリ6に展開されるようになっている。
The image data enlarged/reduced and rotated by the drawing processor 8 are developed in the second page memory 6 described above.

また9は実際の印刷動作を行うプリント実行部とのイン
ターフェース制御を行うプリントアダプタである。
Reference numeral 9 denotes a print adapter that performs interface control with a print execution section that performs actual printing operations.

次にこの実施鉤装置において代表さイ4動作について説
明する。
Next, the representative A4 operation of this hooking device will be explained.

まずホストコンピュータから外部インターフェース部3
を介して印字データが入力されると、メインプロセッサ
1は、描画プロセッサ8に対し第1のページメモリ5上
へのイメージデータの描画開始を通知する。
First, from the host computer to the external interface section 3
When print data is input via the main processor 1 , the main processor 1 notifies the drawing processor 8 to start drawing the image data onto the first page memory 5 .

この通知を受けた描画プロセッサ8は、入力された印字
データに基づいて、文字パターン記憶部7より対応する
文字パターンを発生させ、これを第1のページメモリ5
上に展開してイメージデータの描画を行う。
Upon receiving this notification, the drawing processor 8 generates a corresponding character pattern from the character pattern storage section 7 based on the input print data, and stores it in the first page memory 5.
Expand it on top and draw the image data.

描画を完了した後、次にメインプロセッサ1は、第1の
ページメモリ5上に描画されたイメージデータのサイズ
と向きをチエツクし、そのサイズや向きが、現在プリン
タにおいてセットされている印字用紙のサイズや向きと
印刷処理上適合するか否かを、プリント実行部における
用紙識別装置(図示せず)で得られた識別結果との比較
により判定する。
After completing the drawing, the main processor 1 next checks the size and orientation of the image data drawn on the first page memory 5, and checks whether the size and orientation of the image data is the same as that of the printing paper currently set in the printer. Whether or not the size and orientation are compatible with printing processing is determined by comparison with identification results obtained by a paper identification device (not shown) in the print execution unit.

なおこの用紙識別装置は、例えばプリンタ本体に直接装
着された用紙カセットの種類を調べることにより、ある
いは紙挿入口に直接挿入された用紙から、そのサイズお
よび向きが識別できるよう構成されている。
Note that this paper identification device is configured to be able to identify the size and orientation of paper, for example, by checking the type of paper cassette directly attached to the printer body, or from the paper inserted directly into the paper insertion slot.

そしてこの判定の結果、セットされた用紙と第1のペー
ジメモリ5上に描画されたイメージデータとのサイズが
適合しないと判断された場合(例えばA4の用紙に印字
するよう作成されたイメージデータに対しB4の用紙が
セットされたているような場合)、またはイメージデー
タの向きが用紙の向きと一致しないと判断された場合(
用紙の縦/横が異なる場合)は、それぞれの旨をホスト
コンピュータに通知し、例えばCRT等の表示を介して
オペレータに知らせることにより、次の指示をオペレー
タに促す。
As a result of this determination, if it is determined that the size of the set paper and the image data drawn on the first page memory 5 do not match (for example, if the size of the image data created to be printed on A4 paper (for example, when B4 paper is set), or when it is determined that the orientation of the image data does not match the orientation of the paper (
If the length/width of the paper is different), the host computer is notified of each fact, and the operator is notified via a display on a CRT, etc., thereby prompting the operator to give the next instruction.

この後、オペレータによる操作によりホストコンピュー
タから外部インターフェース部3を介してメインプロセ
ッサ1にイメージデータ回転指示が入力されると、描画
プロセッサ8は、第2図に示すように、第1のページメ
モリ5に展開されたイメージデータに対して90度の回
転処理を実行して、これを第2のページメモリ6上に展
開する。
Thereafter, when an image data rotation instruction is input from the host computer to the main processor 1 via the external interface unit 3 through an operation by the operator, the drawing processor 8 transfers the image data to the first page memory 5 as shown in FIG. A rotation process of 90 degrees is performed on the image data developed in , and this is developed on the second page memory 6 .

一方、ホストコンピュータからメインプロセッサ1にイ
メージ拡大/縮小指示が入力されると、描画プロセッサ
8は、第3図(a、b)にそれぞれ示すように、第1の
ページメモリうに展開されたイメージデータを用紙のサ
イズに合せて拡大/縮小し、これを第2のページメモリ
6に展開する。
On the other hand, when an image enlargement/reduction instruction is input from the host computer to the main processor 1, the drawing processor 8 outputs the image data developed in the first page memory, as shown in FIGS. 3(a, b). is enlarged/reduced according to the paper size, and developed in the second page memory 6.

以上のデータ処理を終えて第2のページメモリ6に格納
されたイメージデータは、プリントアダプタ9を介して
プリント実行部に出力され、これにより実際の印字処理
が行われる。
The image data stored in the second page memory 6 after the data processing described above is outputted to the print execution section via the print adapter 9, whereby actual printing processing is performed.

かくしてこの実施例のプリンタによれば、プリンタにセ
ットされた単票用紙のサイズや向きが、第1のページメ
モリ5に展開されたイメージデータのサイズや向きと印
刷処理上適合しない場合でも、簡単な操作により、自動
的に単票用紙のサイズおよび向きに適合したイメージデ
ータを生成してこれを単票用紙上に印刷することができ
る。
Thus, according to the printer of this embodiment, even if the size and orientation of the cut sheet set in the printer do not match the size and orientation of the image data developed in the first page memory 5 in the printing process, it is possible to easily Through these operations, it is possible to automatically generate image data that matches the size and orientation of the cut sheet and print it on the cut sheet.

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

第4図は本発明の他の実施例のプリンタ制御装置の構成
を説明するためのブロック図である。
FIG. 4 is a block diagram for explaining the configuration of a printer control device according to another embodiment of the present invention.

同図において、11はこのプリンタ制御装置の制御を統
括的に行うメインプロセッサ、12はこのメインプロセ
ッサ11で実行される制御プログラム等が格納された主
メモリ、13はホストコンピュータとの間における各種
のデータの入出力を制御する外部インターフェース部で
ある。
In the figure, 11 is a main processor that performs overall control of this printer control device, 12 is a main memory in which control programs, etc. executed by this main processor 11 are stored, and 13 is a main processor that performs various types of communication between the main processor 11 and the host computer. This is an external interface unit that controls data input/output.

また14はイメージデータをページ単位で格納するペー
ジメモリ15と、個々の印字データに対応する文字パタ
ーンが予め格納された文字バタン記憶部16とを備えた
イメージメモリ、17はページメモリ15に対するイメ
ージデータの描画処理やページメモリ15からのデータ
の読出処理等を行う描画プロセッサである。
Reference numeral 14 denotes an image memory comprising a page memory 15 for storing image data in page units, and a character stamp storage section 16 in which character patterns corresponding to individual print data are stored in advance, and 17 denotes image data for the page memory 15. This is a drawing processor that performs drawing processing, reading processing of data from the page memory 15, and the like.

また18は実際の印刷動作を行うプリント実行部とのイ
ンターフェース制御を行うとともに、ページメモリ15
から読出されたイメージデータに対する拡大/縮小およ
び90度回転等のイメージデータ処理を行ってこれをプ
リント実行部に出力する機能を備えたプリントアダプタ
である。
The page memory 18 also performs interface control with the print execution unit that performs the actual printing operation.
This print adapter has the function of performing image data processing such as enlarging/reducing and 90 degree rotation on image data read from the printer and outputting the processed data to a print execution unit.

次にこの実施例装置の動作について説明する。Next, the operation of this embodiment device will be explained.

まずホストコンピュータから外部インターフニス部13
を介して印字データが入力されると、メインプロセッサ
11は、この印字データに基づくページメモリ15上へ
のイメージデータの描画開始を描画プロセッサ17に対
し通知する。
First, from the host computer to the external interface unit 13
When print data is input via the main processor 11, the main processor 11 notifies the drawing processor 17 to start drawing image data on the page memory 15 based on this print data.

この通知を受けた描画プロセッサ17は、入力された印
字データに対応する文字パターンを文字パターン記憶部
16から発生させ、さらにこれをホストコンピュータか
ら送られてきたプリント形式情報(用紙サイズ、用紙の
方向等)に基づいてページメモリ15上に展開する。
Upon receiving this notification, the drawing processor 17 generates a character pattern corresponding to the input print data from the character pattern storage unit 16, and further uses the print format information (paper size, paper direction, etc.) sent from the host computer. etc.) on the page memory 15.

この後、メインプロセッサ11は、ページメモリ15上
に展開されたイメージのサイズや向きをチエツクし、そ
してそのサイズや向きが、現在プリンタにおいてセット
されている印字用紙のサイズや向きと適合するか否かを
、プリント実行部における用紙識別装置(図示せず)で
得られた識別結果との比較により判定する。なおこの用
紙識別装置については先の実施例で説明した通りである
Thereafter, the main processor 11 checks the size and orientation of the image developed on the page memory 15, and determines whether the size and orientation match the size and orientation of the printing paper currently set in the printer. This is determined by comparison with the identification result obtained by a paper identification device (not shown) in the print execution section. Note that this paper identification device is as described in the previous embodiment.

そしてこの比較判定の結果、セットされた用紙とページ
メモリ15上に描画されたイメージデータとのサイズが
適合しないと判断された場合、またはイメージデータの
向きが用紙の向きと一致しないと判断された場合、メイ
ンプロセッサ11は、プリントアダプタ18に対し次の
ようなイメージデータ処理の実行を指示する。
As a result of this comparison, it is determined that the sizes of the set paper and the image data drawn on the page memory 15 do not match, or it is determined that the orientation of the image data does not match the orientation of the paper. In this case, the main processor 11 instructs the print adapter 18 to perform the following image data processing.

すなわち、用紙の向きに不適合があった場合、メインプ
ロセッサ11は、プリントアダプタ18に対してイメー
ジデータの90度回転処理を指示する。
That is, if there is a mismatch in the orientation of the paper, the main processor 11 instructs the print adapter 18 to rotate the image data by 90 degrees.

この指示を受けたプリントアダプタ18は、第5図に示
すように、ページメモリ15に格納された 1ペ一ジ分
のイメージデータを図中左端のラインから 8ビツトま
たはIBビット毎に読出し、これらのデータをその都度
90度回転させてプリント実行部に転送する。
Upon receiving this instruction, the print adapter 18 reads out one page of image data stored in the page memory 15 in units of 8 bits or IB bits from the leftmost line in the figure, as shown in FIG. The data is rotated 90 degrees each time and transferred to the print execution unit.

これにより元のイメージデータを90度回転させたイメ
ージを用紙上に印字することができる。
As a result, an image obtained by rotating the original image data by 90 degrees can be printed on paper.

また用紙サイズに不適合があった場合、メインプロセッ
サ11はプリントアダプタ18に対しイメージデータの
拡大/縮小処理を指示する。
If there is a mismatch in paper size, the main processor 11 instructs the print adapter 18 to enlarge/reduce the image data.

この指示を受けたプリントアダプタ18は、第6図に示
すように、ページメモリ15に格納された 1ペ一ジ分
のイメージデータを図中上端のラインから 8ビツトま
たは16ビツト毎に読出し、これらのデータをその都度
プリント実行部にセットされた用紙のサイズに合せて縮
小/拡大してプリント実行部に転送する。
Upon receiving this instruction, the print adapter 18 reads out one page of image data stored in the page memory 15 every 8 or 16 bits from the top line in the figure, as shown in FIG. Each time, the data is reduced/enlarged according to the size of the paper set in the print execution section and transferred to the print execution section.

また用紙サイズとその向きにそれぞれ不適合があった場
合、メインプロセッサ11はプリントアダプタ18に対
しイメージデータの拡大/縮小処理とともに回転処理を
指示する。
If there is a mismatch in paper size and orientation, the main processor 11 instructs the print adapter 18 to perform image data enlargement/reduction processing and rotation processing.

この指示を受けたプリントアダプタ18は、第7図に示
すように、ページメモリ15に格納された 1ペ一ジ分
のイメージデータを図中左端のラインから 8ビツトま
たは16ビツト毎に読出し、これらのデータをその都度
90度回転させた後、さらにこれらのデータをプリント
実行部にセットされた用紙のサイズに合せて縮小/拡大
してプリント実行部に転送する。
Upon receiving this instruction, the print adapter 18 reads out one page of image data stored in the page memory 15 every 8 or 16 bits from the leftmost line in the figure, as shown in FIG. After rotating the data by 90 degrees each time, these data are further reduced/enlarged to match the size of the paper set in the print execution section and transferred to the print execution section.

かくしてこの実施例のプリンタ制御装置によれば、ペー
ジメモリ15上に展開されたイメージブタのサイズや向
きが、プリント実行部にセットされた用紙のサイズや向
きと適合しない場合でも、プリントアダプタ18におけ
るイメージ処理により、自動的に用紙のサイズおよび向
きに適合したイメージを用紙上に印字することができる
Thus, according to the printer control device of this embodiment, even if the size and orientation of the image expanded on the page memory 15 do not match the size and orientation of the paper set in the print execution unit, the printer control device in the print adapter 18 Through image processing, it is possible to automatically print an image on paper that matches the size and orientation of the paper.

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

第8図は本発明のさらに池の実施例のプリンタ制御装置
の構成を説明するだのブロフク図である。
FIG. 8 is a schematic diagram illustrating the configuration of a printer control device according to a further embodiment of the present invention.

同図において、21はこのプリンタ制御装置の制御を統
括的に行うメインプロセッサ、22はこのメインプロセ
ッサ21で実行される制御プログラムが格納され、かつ
ホストコンピュータから転送された1ページ毎の印字デ
ータを論理ページデータ情報として格納する主メモリ、
23はホストコンピュータとの間における各種のデータ
の入出力を制御する外部インターフェース部である。
In the figure, 21 is a main processor that performs overall control of this printer control device, and 22 is a main processor in which a control program executed by this main processor 21 is stored, and print data for each page transferred from the host computer is stored. Main memory to store logical page data information,
23 is an external interface section that controls input/output of various data with the host computer.

また24はイメージデータをページ単位で格納する物理
ページメモリ25の設定が可能とされたイメージメモリ
であり、さらにこのイメージメモリ24には、印字デニ
タに対応する文字パターンが予め格納された文字パター
ン記憶部26が備えられている。
Reference numeral 24 denotes an image memory in which a physical page memory 25 for storing image data in page units can be set, and furthermore, this image memory 24 includes a character pattern memory in which character patterns corresponding to the print data are stored in advance. A section 26 is provided.

さらに27は印字データに対応する文字パターンを文字
パターン記憶部26より発生させ、これをイメージメモ
リ24上に設定された物理ページメモリ25上に展開す
る描画プロセッサである。
Furthermore, 27 is a drawing processor that generates a character pattern corresponding to the print data from the character pattern storage section 26 and develops it on the physical page memory 25 set on the image memory 24.

また28は実際の印刷動作を行うプリント実行部とのイ
ンターフェース制御を行うプリントアダプタである。
Further, 28 is a print adapter that performs interface control with a print execution section that performs actual printing operations.

次にこの実施例装置の動作について第9図のフローチャ
ートを参照しながら説明する。
Next, the operation of this embodiment apparatus will be explained with reference to the flowchart of FIG.

まずメインプロセッサ21は、印字動作に先立ち、これ
から開始すべき印字処理の形式(用紙のサイズやその向
き)を示す情報をホストコンピュータから受取り、イメ
ージメモリ24上に、その情報に応じたサイズおよび向
きの物理ページメモリ25を設定する(ステップa)。
First, prior to a printing operation, the main processor 21 receives information from the host computer indicating the format of the printing process to be started (paper size and orientation), and stores the information in the image memory 24 in accordance with the size and orientation of the paper. (step a).

この後、ホストコンピュータから外部インターフェース
部23を介して印字データが入力されると、メインプロ
セッサ21はその1ペ一ジ分の印字データを論理ページ
データとして主メモリ22上に形成する(ステップb)
Thereafter, when print data is input from the host computer via the external interface unit 23, the main processor 21 forms the print data for one page as logical page data on the main memory 22 (step b).
.

次いで、メインプロセッサ21は、主メモリ22上に形
成された論理ページデータを描画プロセッサ27に与え
、イメージメモリ24に設定された物理ページメモリ2
5上に、実際に印字すべきイメージデータを展開する(
ステップC)。
Next, the main processor 21 provides the logical page data formed on the main memory 22 to the drawing processor 27, and the physical page memory 2 set in the image memory 24.
5, expand the image data to be actually printed (
Step C).

この後、メインプロセッサ21は、そのページメモリ2
5上に設定された物理ページメモリ24のサイズや向き
が、現在プリンタにセットされている印字用紙と適合す
るか否かを、プリンタ実行部における用紙識別装置(図
示せず)で得られた識別結果との比較により判定する(
ステップd)。
After this, the main processor 21 uses its page memory 2
Identification obtained by a paper identification device (not shown) in the printer execution unit determines whether the size and orientation of the physical page memory 24 set on 5 are compatible with the printing paper currently set in the printer. Judgment is made by comparing with the results (
Step d).

なお用紙識別装置については一実施例で説明した通りで
ある。
Note that the paper identification device is the same as described in one embodiment.

そしてこの比較の結果、プリンタにセットされた用紙と
物理ページメモリ25とのサイズが適合しないと判断さ
れた場合、またはイメージデータの向きが用紙の向きと
一致しないと判断された場合、メインプロセッサ21は
、イメージメモリ24上に生成された物理ページデータ
を無効とし、現在セットされている用紙のサイズ、向き
に適合する新たな物理ページメモリ25をイメージメモ
リ24上に再設定する(ステップe)。
As a result of this comparison, if it is determined that the size of the paper set in the printer and the physical page memory 25 do not match, or if it is determined that the orientation of the image data does not match the orientation of the paper, the main processor 2 invalidates the physical page data generated on the image memory 24 and resets a new physical page memory 25 on the image memory 24 that matches the size and orientation of the currently set paper (step e).

この後、メインプロセッサ21は、無効となった物理ペ
ージデータに対応する論理ページ情報を主メモリ22か
ら読出してこれに対する拡大/縮小、回転等のデータ処
理を行った後、このイメージデータを描画プロセッサ2
7に与える。
Thereafter, the main processor 21 reads the logical page information corresponding to the invalidated physical page data from the main memory 22, performs data processing such as enlarging/reducing and rotating the information, and then transfers this image data to the drawing processor. 2
Give to 7.

描画プロセッサ27は、この入力データに基づき、イメ
ージメモリ24において新たに設定された物理ページメ
モリ25上に、そのサイズおよび向きに適合する形式で
イメージデータの再展開を行う(ステップf)。
Based on this input data, the drawing processor 27 redeploys the image data onto the newly set physical page memory 25 in the image memory 24 in a format that is compatible with its size and orientation (step f).

この後、物理ページメモリ25上に展開されたイメージ
データは、プリントアダプタ28を介してプリント実行
部に転送され、これにより印字処理が行われる(ステッ
プg)。
Thereafter, the image data developed on the physical page memory 25 is transferred to the print execution section via the print adapter 28, and printing processing is thereby performed (step g).

かくしてこの実施例のプリンタ制御装置によれば、イメ
ージメモリ24上に、プリンタにセットされた用紙のサ
イズおよび方向に適合する物理ページメモリ25を再設
定することができるので、元の印字イメージのサイズや
向きが用紙のサイズや向きと適合しない場合でも、再設
定された物理ページメモリ25上に用紙のサイズおよび
向きに応じたイメージを再生して、目的の印字処理を行
うことができる。
Thus, according to the printer control device of this embodiment, it is possible to reset the physical page memory 25 on the image memory 24 that matches the size and orientation of the paper set in the printer, so that the size of the original print image can be changed. Even if the size and orientation of the paper do not match, the image corresponding to the size and orientation of the paper can be reproduced on the reset physical page memory 25 to perform the desired printing process.

[発明の効果] 以上説明したように本発明のプリンタ制御装置によれば
、プリンタにセットされた単票用紙のサイズや向きとプ
リンタ内部において構築された印字イメージのサイズや
向きと異なる場合でも、単票用紙に適合する形式で目的
の印字処理を行うことができる。
[Effects of the Invention] As explained above, according to the printer control device of the present invention, even if the size and orientation of the cut sheet set in the printer are different from the size and orientation of the print image constructed inside the printer, The desired printing process can be performed in a format that is compatible with cut paper.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図は本発明の一実施例のプリンタ制御装置の構成を
説明するためのブロック図、第2図は第1図のプリンタ
制御装置によるイメージデータの回転処理を示す図、第
3図は第1図のプリンタ制御装置によるイメージデータ
の拡大/縮小処理を示す図、第4図は本発明の他の実施
例のプリンタ制御装置の構成を説明するためのブロック
図、第5図は第4図のプリンタ制御装置によるイメージ
データの回転処理を示す図、第6図は第4図のプリンタ
制御装置によるイメージデータの拡大/縮小処理を示す
図、第7図は第4図のプリンタ制御装置によるイメージ
データの回転と拡大/縮小との同時処理を示す図、第8
図は本発明のさらに他の実施例のプリンタ制御装置の構
成を説明するためのブロック図、第9図は第8図のプリ
ンタ制御装置によるイメージデータの板回転および拡大
/縮小処理の流れを説明するためのフローチャートであ
る。 1・・・メインプロセッサ、2・・・主メモリ、3・・
・外部インターフェース部、4・・・イメージメモリ、
8・・・描画プロセッサ、9・・・プリントアダプタ。 出願人     株式会社 東芝
FIG. 1 is a block diagram for explaining the configuration of a printer control device according to an embodiment of the present invention, FIG. 2 is a diagram showing rotation processing of image data by the printer control device of FIG. 1, and FIG. 1 is a diagram showing enlargement/reduction processing of image data by the printer control device, FIG. 4 is a block diagram for explaining the configuration of a printer control device according to another embodiment of the present invention, and FIG. 6 is a diagram showing image data rotation processing by the printer control device in FIG. 4, FIG. 7 is a diagram showing image data enlargement/reduction processing by the printer control device in FIG. 4, and FIG. Diagram showing simultaneous processing of data rotation and expansion/reduction, No. 8
The figure is a block diagram for explaining the configuration of a printer control device according to still another embodiment of the present invention, and FIG. 9 explains the flow of plate rotation and enlargement/reduction processing of image data by the printer control device of FIG. 8. This is a flowchart for 1... Main processor, 2... Main memory, 3...
・External interface section, 4... image memory,
8... Drawing processor, 9... Print adapter. Applicant: Toshiba Corporation

Claims (1)

【特許請求の範囲】[Claims] (1)セットされた単票用紙のサイズおよび向きを識別
する第1の識別手段と、前記単票用紙上に印刷すべきイ
メージのサイズおよび向きを識別する第2の識別手段と
、前記第1と第2の識別手段の識別結果より前記単票用
紙のサイズおよび向きと前記イメージのサイズおよび向
きがそれぞれ適合するか否かを判定する判定手段と、こ
の判定手段により前記単票用紙のサイズと前記イメージ
のサイズが適合しないと判定されたとき、選択的に前記
イメージを前記単票用紙に応じたサイズに拡大/縮小す
るイメージ拡大/縮小手段と、前記判定手段により前記
単票用紙の向きと前記イメージの向きが一致しないと判
定されたとき、選択的に前記イメージを前記単票用紙の
向きに回転させるイメージ回転手段とを具備したことを
特徴とするプリンタ制御装置。
(1) a first identification means for identifying the size and orientation of the set cut paper; a second identification means for identifying the size and orientation of the image to be printed on the cut paper; and determining means for determining whether the size and orientation of the cut sheet and the size and orientation of the image match each other based on the identification results of the second identifying means; image enlarging/reducing means for selectively enlarging/reducing the image to a size corresponding to the cut sheet when the size of the image is determined to be incompatible; A printer control device comprising: image rotation means for selectively rotating the image in the direction of the cut sheet when it is determined that the orientations of the images do not match.
JP20548388A 1988-08-18 1988-08-18 Printer controller Pending JPH0255170A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP20548388A JPH0255170A (en) 1988-08-18 1988-08-18 Printer controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP20548388A JPH0255170A (en) 1988-08-18 1988-08-18 Printer controller

Publications (1)

Publication Number Publication Date
JPH0255170A true JPH0255170A (en) 1990-02-23

Family

ID=16507601

Family Applications (1)

Application Number Title Priority Date Filing Date
JP20548388A Pending JPH0255170A (en) 1988-08-18 1988-08-18 Printer controller

Country Status (1)

Country Link
JP (1) JPH0255170A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0520763A2 (en) * 1991-06-24 1992-12-30 Brother Kogyo Kabushiki Kaisha Printer capable of printing in a desired print range
JPH0639324U (en) * 1992-11-05 1994-05-24 甫篁 松岡 Reamer

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0520763A2 (en) * 1991-06-24 1992-12-30 Brother Kogyo Kabushiki Kaisha Printer capable of printing in a desired print range
JPH0639324U (en) * 1992-11-05 1994-05-24 甫篁 松岡 Reamer

Similar Documents

Publication Publication Date Title
JP3323652B2 (en) Printer system, host computer, and printing method
JPH0255170A (en) Printer controller
JPS61250722A (en) Printer
JPS61177067A (en) Printing system
JPH05270097A (en) Method and apparatus for printing
JP3697067B2 (en) Print control apparatus and print control method
JP3359165B2 (en) Printer control device and printer control method
JP3100679B2 (en) Image processing device
JPH11355545A (en) Data output device
JPH10191026A (en) Image processing device and method
JPH09254485A (en) Image forming apparatus
JPH11192761A (en) Printer and recording medium
JPH1148573A (en) Print processor and print processing method
JP3254011B2 (en) Form drawing system
JPH0462080A (en) Printing device
JPH01249460A (en) Printer
JPS60220771A (en) Picture-area memory switching controlling system
JPH10229487A (en) Image-forming device
JPH05212916A (en) Printer device
JP3226226B2 (en) Character processing method and apparatus
JPH10322543A (en) Image processor
JPH09240072A (en) Apparatus and method for control of printer, and printer
JPH09146728A (en) Printing execution method and network printing system
JPS63278851A (en) Magnification printing system of laser beam printer
JPH09207414A (en) Information processing device and method