JPH05278295A - Printer - Google Patents
PrinterInfo
- Publication number
- JPH05278295A JPH05278295A JP4082114A JP8211492A JPH05278295A JP H05278295 A JPH05278295 A JP H05278295A JP 4082114 A JP4082114 A JP 4082114A JP 8211492 A JP8211492 A JP 8211492A JP H05278295 A JPH05278295 A JP H05278295A
- Authority
- JP
- Japan
- Prior art keywords
- print data
- overlay
- data
- overlap
- 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
Links
Landscapes
- Record Information Processing For Printing (AREA)
Abstract
(57)【要約】
【目的】 印字データの印字領域と、オーバーレイ印字
データの印字領域とが重なる場合には、オーバーレイ印
字処理をしない。
【構成】 印字排出する際に、S11で印字データの印
字領域とオーバーレイ印字データの印字領域を比べる。
2つの領域が重なっていない場合にのみ、S12で、印
字データにオーバーレイ印字データの追加を行ない、印
字排出する。重なっている場合には、オーバーレイ印字
データの追加をせずに、そのまま印字データを印字排出
する。
(57) [Summary] [Purpose] When the print area of the print data and the print area of the overlay print data overlap, the overlay print processing is not performed. [Structure] When printing and discharging, in S11, the print area of the print data is compared with the print area of the overlay print data.
Only in the case where the two areas do not overlap, in S12, overlay print data is added to the print data, and the print is discharged. If they overlap, the print data is directly printed out without adding the overlay print data.
Description
【0001】[0001]
【産業上の利用分野】本発明は、ホストコンピュータ等
の上位装置から印字データを受信して印字媒体に印字を
行なうような印字装置に関するものである。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a printer which receives print data from a host device such as a host computer and prints on a print medium.
【0002】[0002]
【従来の技術】従来、この種の印字装置において、上位
装置からの印字データを印字する際に、ページ番号や枠
線などを追加したい場合がある。その場合、追加したい
データ(以下、オーバーレイ印字データと呼ぶ)を印字
装置内に予め記憶し、印字排出を行なう時点で追加した
いデータを、印字データに加えて印字を行う処理が行な
われる。この処理を、図5で示すフローチャートを参照
して説明する。印字装置は、所定の初期設定を行った
(S50)後、上位装置から印字データを受信する(S
51)。この印字データが印字排出コマンドでなければ
(S52・NO)、その印字データにしたがってページ
メモリに画像データを形成して(S53)次の印字デー
タを受信する(S51)。一方、印字データが印字排出
コマンドのときは(S52・YES)、ページメモリに
形成されている画像データに前記オーバーレイ印字デー
タ(例えば、ページ番号)を追加して(S54)印字を
行う(S55)。このような処理は、通常オーバーレイ
処理と呼ばれており、この処理を行うことにより、図6
で示すように、図7に示すオーバーレイ処理を行わずに
印字した画像にページ番号を付加した状態で出力するこ
とができる。2. Description of the Related Art Conventionally, in this type of printing apparatus, it is sometimes desired to add a page number, a frame line, or the like when printing print data from a host apparatus. In this case, the data to be added (hereinafter referred to as overlay print data) is stored in the printing device in advance, and the data to be added is printed in addition to the print data when the print is discharged. This processing will be described with reference to the flowchart shown in FIG. The printer receives the print data from the host device after performing a predetermined initial setting (S50) (S50).
51). If this print data is not a print discharge command (S52, NO), image data is formed in the page memory according to the print data (S53), and the next print data is received (S51). On the other hand, when the print data is the print discharge command (S52, YES), the overlay print data (for example, page number) is added to the image data formed in the page memory (S54) and printing is performed (S55). .. Such processing is usually called overlay processing. By performing this processing, the processing shown in FIG.
As shown in FIG. 7, it is possible to output the image with the page number added to the printed image without performing the overlay process shown in FIG.
【0003】[0003]
【発明が解決しようとする課題】しかしながら、上記の
ような印字装置において、このオーバーレイ処理は印字
データに関係なく行なわれるため、図6(b)に示すよ
うに、印字データによる印字と、オーバーレイ印字デー
タの印字が重なることにより、印字された画像が見苦し
くなってしまうという問題があった。However, in the printing apparatus as described above, this overlay processing is performed regardless of the print data. Therefore, as shown in FIG. 6B, printing by print data and overlay printing are performed. There is a problem in that the printed images become unsightly due to overlapping of data printing.
【0004】本発明は、上述した問題点を解決するため
になされたものであり、印字データによる印字と、オー
バーレイ印字データの印字が重なる場合、そのオーバー
レイ印字データを印字しないようにして、印字された画
像の見栄えをよくする印字装置を提供することを目的と
する。The present invention has been made to solve the above-mentioned problems, and when printing by print data and printing of overlay print data overlap, the overlay print data is printed without printing. It is an object of the present invention to provide a printing device that improves the appearance of a printed image.
【0005】[0005]
【課題を解決するための手段】この目的を達成するため
に本発明の印字装置は、図1に示すように、オーバーレ
イ印字データを記憶する記憶手段と、印字データの印字
領域と前記記憶手段に記憶されたオーバーレイ印字デー
タの印字領域の重なりを検出する重なり検出手段と、オ
ーバーレイ印字データを前記重なり検出手段の検出結果
に応じて印字データに加える印字データ追加手段とを備
えている。In order to achieve this object, a printing apparatus of the present invention, as shown in FIG. 1, includes a storage unit for storing overlay print data, a print data printing area and the storage unit. Overlapping detection means for detecting the overlap of the print areas of the stored overlay print data, and print data adding means for adding the overlay print data to the print data according to the detection result of the overlap detection means are provided.
【0006】[0006]
【作用】上記の構成を有する本発明の印字装置では、重
なり検出手段は、印字排出を行う際に、記憶手段に記憶
されているオーバーレイ印字データの印字領域と、印字
データの印字領域の重なっている範囲を検出する。印字
データ追加手段は、前記重なり検出手段によって重なっ
ている範囲が検出されなかった場合に、オーバーレイ印
字データを印字データに追加する。In the printing apparatus of the present invention having the above-mentioned structure, the overlap detection means causes the overlay print data print area stored in the storage means to overlap the print data print area when the print is discharged. To detect the range. The print data adding means adds the overlay print data to the print data when the overlapping area is not detected by the overlap detecting means.
【0007】[0007]
【実施例】以下、本発明を具体化した一実施例を図面を
参照して説明する。DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described below with reference to the drawings.
【0008】図2は本実施例の印字装置の構成を示すブ
ロック図である。印字装置は制御装置の主体である中央
演算処理装置のCPU1に、ランダムアクセスメモリ
(RAM)2と、読み出し専用メモリであるROM3
と、外部からの印字データを受信するためのインターフ
ェース4と、記録媒体(用紙)に画像を形成する印字機
構5とがそれぞれ接続されている。FIG. 2 is a block diagram showing the arrangement of the printing apparatus of this embodiment. The printing device includes a CPU 1 of a central processing unit, which is the main body of the control device, a random access memory (RAM) 2, and a ROM 3 which is a read-only memory.
An interface 4 for receiving print data from the outside and a print mechanism 5 for forming an image on a recording medium (paper) are connected to each other.
【0009】RAM2には印字データの印字範囲として
印字データのX,Y座標の最大値、最小値を記憶する印
字範囲記憶エリア21と、オーバーレイデータの印字範
囲としてオーバーレイ印字データのX,Y座標の最大
値、最小値を記憶するオーバーレイ印字範囲記憶エリア
22と、オーバーレイ印字データを記憶するためのオー
バーレイ印字データ記憶エリア23と、記録媒体への印
字のために画像データを記憶するページメモリ24とが
設けられている。The RAM 2 has a print range storage area 21 for storing the maximum and minimum values of the X and Y coordinates of the print data as the print range of the print data, and the X and Y coordinates of the overlay print data as the print range of the overlay data. An overlay print range storage area 22 for storing the maximum value and the minimum value, an overlay print data storage area 23 for storing overlay print data, and a page memory 24 for storing image data for printing on a recording medium are provided. It is provided.
【0010】ROM3には、図3で示されるようなフロ
ーチャートで表わされるプログラムが記憶されており、
さらに、本印字装置全体を制御する為の制御プログラム
を記憶するプログラムメモリ31が設けられている。更
に、プログラムメモリ31には入力された印字データの
印字範囲を検出するための印字範囲検出プログラム31
1と、入力されたオーバーレイ印字データの印字範囲を
検出するためのオーバーレイ印字範囲検出プログラム3
12と、前記印字範囲と前記オーバーレイ印字範囲とが
重なっているか否かを検出するための重なり範囲検出プ
ログラム313と、印字データにオーバーレイ印字デー
タを追加するための印字データ追加プログラム314と
が納められている。The ROM 3 stores a program represented by the flowchart shown in FIG.
Further, a program memory 31 for storing a control program for controlling the entire printing apparatus is provided. Further, the program memory 31 has a print range detection program 31 for detecting the print range of the input print data.
1 and an overlay print range detection program 3 for detecting the print range of the input overlay print data
12, an overlap range detection program 313 for detecting whether or not the print range and the overlay print range overlap, and a print data addition program 314 for adding overlay print data to print data are stored. ing.
【0011】本実施例の記憶手段はオーバーレイ印字デ
ータ記憶エリア23であり、重なり検出手段は重なり範
囲検出プログラム313である。また、印字データ追加
手段は印字データ追加プログラム314である。The storage means of this embodiment is the overlay print data storage area 23, and the overlap detection means is the overlap range detection program 313. The print data adding means is a print data adding program 314.
【0012】以下、図3のフローチャートを参照しつ
つ、本実施例の印字装置の動作について説明する。The operation of the printing apparatus of this embodiment will be described below with reference to the flowchart of FIG.
【0013】なお、以下に説明する動作は、CPU1が
ROM3に記憶されている各種プログラムに基づいて行
うものである。The operations described below are performed by the CPU 1 based on various programs stored in the ROM 3.
【0014】まず電源を投入すると、図3におけるステ
ップS1(以下、単にS1で表わす。他のステップにつ
いても同じ)の初期設定が行なわれる。続いてS2が実
行され、外部ホストコンピュータ等からの印字装置制御
命令であるデータをインターフェース4が受信する。S
3にて、このデータが印字データであると判定された場
合には、S7で印字範囲検出プログラム311により印
字範囲の検出を行い、S8で印字範囲記憶エリア21に
記憶しS6に進む。First, when the power is turned on, the initial setting of step S1 in FIG. 3 (hereinafter referred to simply as S1; the same applies to the other steps) is performed. Subsequently, S2 is executed, and the interface 4 receives data which is a printing device control command from an external host computer or the like. S
If it is determined in 3 that the data is print data, the print range detection program 311 detects the print range in S7, the print range is stored in the print range storage area 21 in S8, and the process proceeds to S6.
【0015】印字データではないと判定された場合に
は、S4にてオーバーレイ印字データであるかが判定さ
れる。オーバーレイデータであった場合には、S9でオ
ーバーレイ印字範囲検出プログラム312によりオーバ
ーレイ印字データの印字範囲の検出を行い、S10でオ
ーバーレイ印字範囲記憶エリア22に記憶する。その
後、S14でオーバーレイ印字データ記憶エリア23に
オーバーレイ印字データを記憶してS2に戻る。When it is determined that the print data is not print data, it is determined in S4 whether the print data is overlay print data. If it is overlay data, the print range of the overlay print data is detected by the overlay print range detection program 312 in S9, and is stored in the overlay print range storage area 22 in S10. After that, the overlay print data is stored in the overlay print data storage area 23 in S14, and the process returns to S2.
【0016】オーバーレイデータではないと判定された
場合には、S5にて印字排出コマンドであるか判定を行
い、印字排出コマンドであると判定された場合にはS1
1へ進み、印字排出コマンドではないと判定された場合
にはS6に進む。If it is determined that it is not the overlay data, it is determined in S5 whether it is a print discharge command, and if it is determined that it is a print discharge command, S1.
When it is determined that the command is not the print discharge command, the process proceeds to S6.
【0017】S6では、印字装置制御命令である印字デ
ータに従って処理を行ない、ページメモリ24に印字デ
ータに基づいた画像データを形成する。そして次のデー
タを受け取るためにS2に戻る。In S6, processing is performed in accordance with print data which is a printer control command, and image data based on the print data is formed in the page memory 24. Then, the process returns to S2 to receive the next data.
【0018】一方、S11では、印字データの印字範囲
とオーバーレイ印字データの印字範囲とが重なっている
か否かを、印字範囲記憶エリア21とオーバーレイ印字
範囲記憶エリア22を参照することにより、重なり範囲
検出プログラム313で行い、重なっていると判定され
た場合にはS13に進む。重なっていない場合には、S
12にて印字データ追加プログラム314に基づいてオ
ーバーレイ印字データをページメモリ24に書き込み、
S13に進む。On the other hand, in S11, the overlapping range is detected by referring to the printing range storage area 21 and the overlay printing range storage area 22 to determine whether the printing range of the print data and the printing range of the overlay print data overlap. The program 313 is performed, and when it is determined that they overlap, the process proceeds to S13. If they do not overlap, S
At 12, the overlay print data is written to the page memory 24 based on the print data addition program 314,
Proceed to S13.
【0019】S13において、印字機構5によりページ
メモリ24の画像データを記録媒体に形成した後、S2
に戻って次のデータの受信を待つ。After the image data of the page memory 24 is formed on the recording medium by the printing mechanism 5 in S13, S2 is executed.
Return to and wait for the next data.
【0020】すなわち、S12において印字データの印
字範囲とオーバーレイ印字データの印字範囲とが重なっ
ていないと判定されれば、図4(a)に示すように、オ
ーバーレイ印字データ(この場合、ページ番号)が追加
されて印字される。逆に、印字データの印字範囲とオー
バーレイ印字データの印字範囲とが重なっていると判定
されれば、図4(b)に示すように、オーバーレイ印字
データが追加されずに印字される。That is, if it is determined in S12 that the print range of the print data and the print range of the overlay print data do not overlap, as shown in FIG. 4A, the overlay print data (in this case, the page number) is printed. Is added and printed. On the contrary, if it is determined that the print range of the print data and the print range of the overlay print data overlap, the overlay print data is printed without being added, as shown in FIG. 4B.
【0021】以上説明したようなステップに従って印字
データの処理を行うことにより、図7に示すような画像
を印字するための印字データに対して、オーバーレイ処
理によりオーバーレイ印字データ(ページ番号)を追加
しても、印字データの印字範囲とオーバーレイ印字デー
タの印字範囲とが重なっている場合には、図4(b)に
示すように、そのオーバーレイ印字データは印字されな
いため、印字される画像の見栄えがよい。By processing the print data according to the steps as described above, the overlay print data (page number) is added to the print data for printing the image as shown in FIG. 7 by the overlay processing. However, when the print range of the print data and the print range of the overlay print data overlap, the overlay print data is not printed, as shown in FIG. Good.
【0022】ここで、上述した印字範囲の重なりの検出
方法について説明する。まず、印字範囲を検出する際に
は、印字範囲検出プログラム311により、入力された
印字データについてX方向及びY方向の座標の最大値及
び最小値をそれぞれ計算し、印字範囲記憶エリア21に
ある最大値と比較して大きいもの、最小値と比較して小
さいものを印字範囲記憶エリア21に記憶する。これに
より、すべての印字データを囲む最小の四角形の座標値
が求められ、これが印字範囲となる。オーバーレイ印字
範囲の検出でも同様に、オーバーレイ印字範囲検出プロ
グラム312により、入力されたオーバーレイ印字デー
タのX方向及びY方向の座標の最大値及び最小値をそれ
ぞれ計算し、オーバーレイ印字範囲記憶エリア22にあ
る最大値と比較して大きいもの、最小値と比較して小さ
いものをオーバーレイ印字範囲記憶エリア22に記憶す
る。これにより、すべてのオーバーレイ印字データを囲
む最小の四角形の座標値が求められ、これがオーバーレ
イ印字範囲となる。印字範囲の四角形の座標値と、オー
バーレイ印字範囲の四角形の座標値とを重なり範囲検出
プログラム313により比較することで、印字範囲の重
なりの検出を行なう。Here, a method of detecting the overlap of the above-mentioned printing ranges will be described. First, when detecting the print range, the print range detection program 311 calculates the maximum value and the minimum value of the coordinates of the input print data in the X direction and the Y direction, respectively, and stores the maximum value in the print range storage area 21. Those that are larger than the value and smaller than the minimum value are stored in the print range storage area 21. As a result, the coordinate value of the smallest quadrangle surrounding all the print data is obtained, and this is the print range. Similarly, in the detection of the overlay print range, the overlay print range detection program 312 calculates the maximum value and the minimum value of the coordinates of the input overlay print data in the X direction and the Y direction, respectively, and stores them in the overlay print range storage area 22. Those that are larger than the maximum value and smaller than the minimum value are stored in the overlay print range storage area 22. Thereby, the coordinate value of the smallest quadrangle surrounding all the overlay print data is obtained, and this is the overlay print range. By comparing the coordinate values of the quadrangle of the print range with the coordinate values of the quadrangle of the overlay print range by the overlap range detection program 313, the overlap of the print ranges is detected.
【0023】尚、本発明は以上詳述した実施例に限定さ
れるものではなく、その要旨を逸脱しない範囲において
種々の変更は可能である。The present invention is not limited to the embodiments described in detail above, and various modifications can be made without departing from the spirit of the invention.
【0024】例えば、印字データ追加手段は、重なりが
ある場合に、重なっていない部分のオーバーレイ印字デ
ータだけをページメモリ24に追加しても良い。For example, when there is an overlap, the print data adding means may add only the overlay print data of the non-overlapped portion to the page memory 24.
【0025】また、重なり検出手段はページメモリ24
に書き込まれるオーバーレイ印字データの全ての点をチ
ェックして重なりを検出しても良い。The overlap detecting means is the page memory 24.
The overlap may be detected by checking all the points of the overlay print data written in.
【0026】[0026]
【発明の効果】以上説明したことから明かなように、本
発明の印字装置によれば、印字データによる印字領域
と、オーバーレイ印字データの印字領域が重なる場合に
は、オーバーレイ印字データを印字データに追加しない
ため、印字された画像において印字データに基づく画像
とオーバーレイ印字データに基づく画像とが重なること
はなく、印字された画像の見栄えがよくなる。As is apparent from the above description, according to the printing apparatus of the present invention, when the print area of the print data and the print area of the overlay print data overlap, the overlay print data is used as the print data. Since the image is not added, the image based on the print data and the image based on the overlay print data do not overlap each other in the printed image, and the printed image looks good.
【図面の簡単な説明】[Brief description of drawings]
【図1】本発明の構成を示すブロック図である。FIG. 1 is a block diagram showing a configuration of the present invention.
【図2】本発明を具体化した印字装置の構成を示すブロ
ック図である。FIG. 2 is a block diagram showing a configuration of a printing apparatus embodying the present invention.
【図3】本実施例の印字装置のオーバーレイ処理に関す
るフローチャートである。FIG. 3 is a flowchart regarding overlay processing of the printing apparatus according to the present exemplary embodiment.
【図4】本実施例の印字装置のオーバーレイ処理を行っ
た印字結果の例を示す説明図である。FIG. 4 is an explanatory diagram showing an example of a print result obtained by performing overlay processing of the printing apparatus of this embodiment.
【図5】従来のオーバーレイ処理に関するフローチャー
トである。FIG. 5 is a flowchart of a conventional overlay process.
【図6】従来のオーバーレイ処理を行った印字結果の例
を示す説明図である。FIG. 6 is an explanatory diagram showing an example of a print result obtained by performing conventional overlay processing.
【図7】通常の印字結果の例を示す説明図である。FIG. 7 is an explanatory diagram showing an example of a normal print result.
23 オーバーレイ印字データ記憶エリア 313 重なり範囲検出プログラム 314 印字データ追加プログラム 23 Overlay print data storage area 313 Overlap range detection program 314 Print data addition program
Claims (1)
手段と、 印字データの印字領域と前記記憶手段に記憶されたオー
バーレイ印字データの印字領域の重なりを検出する重な
り検出手段と、 オーバーレイ印字データを前記重なり検出手段の検出結
果に応じて印字データに加える印字データ追加手段とを
備えていることを特徴とする印字装置。1. Storage means for storing overlay print data, overlap detection means for detecting the overlap between the print area of the print data and the print area of the overlay print data stored in the storage means, and the overlay print data for overlapping. A printing apparatus comprising: print data adding means for adding print data according to a detection result of the detecting means.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP4082114A JPH05278295A (en) | 1992-04-03 | 1992-04-03 | Printer |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP4082114A JPH05278295A (en) | 1992-04-03 | 1992-04-03 | Printer |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH05278295A true JPH05278295A (en) | 1993-10-26 |
Family
ID=13765383
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP4082114A Pending JPH05278295A (en) | 1992-04-03 | 1992-04-03 | Printer |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH05278295A (en) |
-
1992
- 1992-04-03 JP JP4082114A patent/JPH05278295A/en active Pending
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US6233057B1 (en) | Information recording apparatus | |
| JPH05278295A (en) | Printer | |
| JP3230516B2 (en) | Printer, recording medium and printer memory management method | |
| JPH0462169A (en) | printing device | |
| JP2904359B2 (en) | Printing device and print control device | |
| JPH05270097A (en) | Method and apparatus for printing | |
| JP3100679B2 (en) | Image processing device | |
| JPH04329483A (en) | Image processor | |
| JP3334258B2 (en) | Printer control device and method | |
| JP2768307B2 (en) | Printer device | |
| JP4280388B2 (en) | Image processing apparatus, method, and storage medium | |
| JPH0664252A (en) | Printing device having emulation mode | |
| JP2991305B2 (en) | Printing apparatus and printing control method | |
| JP2803560B2 (en) | Printer control device | |
| JP3143118B2 (en) | Printer and print image pattern development method | |
| JPH08282017A (en) | Recording apparatus and recording control method | |
| JP3226226B2 (en) | Character processing method and apparatus | |
| JP2000094797A (en) | Print control device, data processing method of print control device, and storage medium storing computer-readable program | |
| JP2000155660A (en) | Print output control method | |
| JPH09258935A (en) | Image forming method and apparatus | |
| JPH0725106A (en) | Printer device | |
| JPH06255210A (en) | Printer | |
| JPH06149735A (en) | Data reception controller | |
| JPH0519988A (en) | Printer | |
| JPH0950523A (en) | Image smoothing circuit |