JP2003200617A - Printer - Google Patents

Printer

Info

Publication number
JP2003200617A
JP2003200617A JP2002000452A JP2002000452A JP2003200617A JP 2003200617 A JP2003200617 A JP 2003200617A JP 2002000452 A JP2002000452 A JP 2002000452A JP 2002000452 A JP2002000452 A JP 2002000452A JP 2003200617 A JP2003200617 A JP 2003200617A
Authority
JP
Japan
Prior art keywords
data
image data
printer
scan line
rectangular
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
JP2002000452A
Other languages
Japanese (ja)
Inventor
Shinichi Takahashi
進一 高橋
Takahiro Miyoshi
隆弘 三好
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.)
Fujifilm Business Innovation Corp
Original Assignee
Fuji Xerox Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fuji Xerox Co Ltd filed Critical Fuji Xerox Co Ltd
Priority to JP2002000452A priority Critical patent/JP2003200617A/en
Publication of JP2003200617A publication Critical patent/JP2003200617A/en
Pending legal-status Critical Current

Links

Landscapes

  • Record Information Processing For Printing (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide a printer which can transfer data at a high speed to a printer mechanism part by reducing a data amount of image data generated by developing data received from a host. <P>SOLUTION: The printer is provided with a printer control part, a printer mechanism control part and the printer mechanism part. The printer control part has a rectangular image data-generating means for generating rectangular image data by dividing printing data in image data to rectangular regions, a position information-acquiring means for acquiring position information of generated rectangular image data and a data send means for sending rectangular image data having acquired position information added thereto to the printer mechanism control part. The printer mechanism control part has a printing output means for outputting received rectangular image data as video data on the basis of position information to the printer mechanism part. <P>COPYRIGHT: (C)2003,JPO

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、ホストより受信し
たデータに基いて印刷イメージデータを生成し、印刷出
力するプリンタ装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a printer device that generates print image data based on data received from a host and prints it out.

【0002】[0002]

【従来の技術】一般的な印刷装置では、ホストから受信
した印刷データをプリンタ制御部で展開して各ページ単
位にビットマップイメージを生成し、それをプリンタ機
構制御部に転送して印刷処理を行っている。その際、高
速処理するために展開したビットマップイメージをいっ
たんメモリに格納し、続けて次のページの展開処理を行
う方法が広く用いられている。こうすることにより、プ
リンタ機構制御部での印刷処理を待たずに印刷データの
展開処理ができるため、プリンタ制御部も効率良く展開
処理が行え、かつプリンタ機構制御部においても連続し
て印刷処理を行うことができる。但し、単にビットマッ
プイメージをそのままメモリに保持すると、保持するペ
ージ数に応じて使用するメモリ量が増大してしまう問題
が生じてしまう。このため、現在はビットマップイメー
ジを圧縮してからメモリに格納し、印刷時に圧縮データ
を復元してからプリンタ機構制御部に渡す方法がとられ
ている。
2. Description of the Related Art In a general printing apparatus, print data received from a host is expanded by a printer control unit to generate a bitmap image for each page, and the bitmap image is transferred to the printer mechanism control unit to perform print processing. Is going. At that time, a method is widely used in which a bitmap image developed for high-speed processing is temporarily stored in a memory, and then the next page is expanded. By doing so, since the print data can be expanded without waiting for the print process in the printer mechanism control unit, the printer control unit can also perform the expansion process efficiently and the printer mechanism control unit can also continuously perform the print processing. It can be carried out. However, if the bitmap image is simply held in the memory as it is, there arises a problem that the amount of memory used increases according to the number of held pages. Therefore, at present, a method is used in which the bitmap image is compressed and then stored in the memory, and the compressed data is restored at the time of printing before being passed to the printer mechanism control unit.

【0003】[0003]

【発明が解決しようとする課題】しかしながら、上記圧
縮、復元方式はビットマップイメージの圧縮及び復元処
理それぞれ時間がかかるため、トータルの処理時間が長
くなってしまうという問題がある。また、高速処理を行
うために圧縮、復元LSI等の専用回路を持つ方法もあ
るが、その場合はハード構成が高価になってしまうとい
う問題がある。
However, the above compression / decompression method has a problem that the total processing time becomes long because it takes time to compress and restore the bitmap image. There is also a method of using a dedicated circuit such as a compression / decompression LSI for performing high-speed processing, but in that case, there is a problem that the hardware configuration becomes expensive.

【0004】本発明は、ホストから受信したデータを展
開して生成したイメージデータのデータ量を削減するこ
とで、高速にプリンタ機構部に転送することができるプ
リンタ装置を提供することを目的とする。
SUMMARY OF THE INVENTION It is an object of the present invention to provide a printer device capable of transferring data to a printer mechanism unit at high speed by reducing the data amount of image data generated by expanding data received from a host. .

【0005】[0005]

【課題を解決するための手段】本発明のプリンタ装置
は、ホストから受信したデータをイメージデータに展開
し、展開したイメージデータをプリンタ機構制御部に送
信するプリンタ制御部と、受信したイメージデータをも
とにプリンタ機構部にビデオデータを出力するプリンタ
機構制御部と、ビデオデータにより所定の解像度で印刷
を行うプリンタ機構部とを備えたプリンタ装置であっ
て、プリンタ制御部は、イメージデータの中の印刷デー
タを矩形領域に分割して、矩形イメージデータを生成す
る矩形イメージデータ生成手段と、生成された矩形イメ
ージデータの位置情報を取得する位置情報取得手段と、
取得された位置情報を付加した矩形イメージデータをプ
リンタ機構制御部に送出するデータ送出手段とを有し、
プリンタ機構制御部は、受信した矩形イメージデータを
位置情報をもとにビデオデータとしてプリンタ機構部に
出力する印刷出力手段とを有する構成である。
A printer device according to the present invention develops data received from a host into image data, transmits the expanded image data to a printer mechanism control unit, and the received image data. A printer device that includes a printer mechanism control unit that outputs video data to the printer mechanism unit and a printer mechanism unit that performs printing at a predetermined resolution based on the video data. Of the print data of (1) is divided into rectangular areas, rectangular image data generation means for generating rectangular image data, position information acquisition means for acquiring position information of the generated rectangular image data,
Data transmission means for transmitting the rectangular image data to which the acquired position information is added to the printer mechanism control unit,
The printer mechanism control unit is configured to have a print output unit that outputs the received rectangular image data as video data to the printer mechanism unit based on the position information.

【0006】また、矩形イメージデータ生成手段は、所
定位置を基準としたXY座標に位置決めされたイメージ
データをX座標方向に走査するイメージデータ走査手段
と、直前の走査ラインに印刷データがなく、現走査ライ
ンに印刷データがある場合には、現走査ラインのY座標
を開始位置として取得する開始位置取得手段と、取得し
た開始位置からイメージデータを走査して、走査ライン
毎に印刷データの開始点と終了点のX座標を取得する印
刷データ位置取得手段と、直前の走査ラインに印刷デー
タがあり、現走査ラインに印刷データがない場合には現
走査ラインのY座標を終了位置として取得する第1終了
位置取得手段と、終了位置を検出したときには、走査ラ
イン毎に取得された開始点の中の最小値、終了点の中の
最大値の各X座標と開始位置、終了位置の各Y座標をも
とに、イメージデータの中から印刷データを矩形に抽出
する矩形データ抽出手段とを有する構成である。
Further, the rectangular image data generating means is an image data scanning means for scanning the image data positioned at XY coordinates with a predetermined position as a reference in the X coordinate direction, and there is no print data in the immediately preceding scanning line, so that the present image data is generated. When there is print data in the scan line, start position acquisition means for acquiring the Y coordinate of the current scan line as a start position, and image data is scanned from the acquired start position, and the start point of the print data is scanned for each scan line. And a print data position obtaining means for obtaining the X coordinate of the end point, and a print data for the immediately previous scan line, and for obtaining the Y coordinate of the current scan line as the end position when there is no print data for the current scan line. 1 end position acquisition means, and when the end position is detected, each X coordinate of the minimum value of the start points and the maximum value of the end points acquired for each scanning line Start position, based on each Y-coordinate of the end position, it is configured to have a rectangular data extracting means for extracting print data in a rectangular from the image data.

【0007】これらの構成により、イメージデータの中
から印刷データ(例えばモノクロプリンタ装置では、黒
ドットの有る部分のこと)を矩形に抽出するため、矩形
外の空白データ部分を削除できる。その結果、メモリ容
量を削減でき、また印刷時にプリンタ制御部からプリン
タ機構制御部への転送速度を高速化できる。また、矩形
イメージデータ生成手段は、現走査ラインで取得した開
始点と直前の走査ラインまでの開始点の最小値との差と
現走査ラインで取得した終了点と直前の走査ラインまで
の終了点の最大値との差の和が、所定値より大きい場合
は、直前の走査ラインのY座標を終了位置として取得す
る第2終了位置取得手段と、現走査ラインを新たな矩形
データを抽出するための走査ラインの開始位置とする開
始位置更新手段とを有する構成である。
With these configurations, print data (for example, a portion having a black dot in a monochrome printer) is extracted into a rectangle from the image data, so that the blank data portion outside the rectangle can be deleted. As a result, the memory capacity can be reduced, and the transfer speed from the printer control unit to the printer mechanism control unit can be increased during printing. Further, the rectangular image data generating means is configured to detect the difference between the start point acquired by the current scan line and the minimum value of the start points up to the previous scan line, the end point acquired by the current scan line, and the end point up to the previous scan line. If the sum of the difference from the maximum value of is larger than a predetermined value, a second end position acquisition means for acquiring the Y coordinate of the immediately previous scan line as the end position and the current scan line for extracting new rectangular data. And a start position updating means for setting the start position of the scan line.

【0008】この構成により、走査ラインの印刷データ
のX座標の差の和を所定値と比較してX座標の差の和が
所定値より大きい場合は、余分な空白データが多く含ま
れるためその変化する走査ラインを検出してその走査ラ
インを終了位置と決める。そしてその終了位置と開始位
置等をもとに矩形イメージデータを取得することで余分
な空白データが矩形データの中に含まれることを減少さ
せる効果を有する。
With this configuration, the sum of the differences in the X coordinates of the print data of the scanning line is compared with a predetermined value, and when the sum of the differences in the X coordinates is larger than the predetermined value, a large amount of extra blank data is included. A scanning line that changes is detected and the scanning line is determined as the end position. Then, by obtaining the rectangular image data based on the end position and the start position, it is possible to reduce the extra blank data included in the rectangular data.

【0009】[0009]

【発明の実施の形態】実施例のプリンタ装置の構成図を
図1に示す。プリンタ装置1はプリンタ制御部2、プリ
ンタ機構制御部3及びプリンタ機構部4から構成され
る。プリンタ制御部2は、回線制御部5、印刷データ展
開部6、メモリ部7、矩形制御部8、転送制御部9から
構成される。回線制御部5は、ホストから印刷データを
受信する制御を行う。印刷データ展開部6は、ホストか
ら受信した印字コードデータまたはイメージデータをペ
ージ単位に、イメージデータに展開してメモリ部7に格
納する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS FIG. 1 shows a block diagram of a printer device according to an embodiment. The printer device 1 includes a printer control unit 2, a printer mechanism control unit 3, and a printer mechanism unit 4. The printer control unit 2 includes a line control unit 5, a print data expansion unit 6, a memory unit 7, a rectangular control unit 8 and a transfer control unit 9. The line control unit 5 controls to receive print data from the host. The print data expansion unit 6 expands the print code data or image data received from the host into image data page by page and stores the image data in the memory unit 7.

【0010】矩形制御部8は、メモリ部7の中に格納さ
れているイメージデータの中からページ単位に印刷に必
要となる部分を矩形型に抽出する制御を行う。転送制御
部9は、メモリ部7に格納されている矩形イメージデー
タ等のデータをプリンタ機構制御部3に転送する制御を
行う。プリンタ機構制御部3はビデオデータの制御を含
むプリンタ機構部4の制御全般を行う。また、プリンタ
制御部2から送られてきた位置情報等を元に主走査方向
のビデオデータの開始点及びデータ長等を制御する機能
を有する。なお、本実施例ではプリンタ制御部2とプリ
ンタ機構制御部3を別構成としたが、これら機能を一つ
の制御部として構成することも可能である。
The rectangle control unit 8 controls the image data stored in the memory unit 7 to extract a portion required for printing page by page into a rectangular type. The transfer control unit 9 controls the transfer of data such as rectangular image data stored in the memory unit 7 to the printer mechanism control unit 3. The printer mechanism control unit 3 performs overall control of the printer mechanism unit 4 including control of video data. Further, it has a function of controlling the start point and the data length of the video data in the main scanning direction based on the position information sent from the printer control unit 2. Although the printer control unit 2 and the printer mechanism control unit 3 have different configurations in this embodiment, these functions may be configured as a single control unit.

【0011】プリンタ機構部4は、印刷を実行する処理
を行う。図2に、実施例のプリンタ装置の処理の流れ図
を示す。ホストと接続されたプリンタ装置1は、ホスト
から印刷データを回線制御部5で受信し、受信した印刷
データをページ単位のイメージデータとして展開してメ
モリ部7に格納する(S1ステップ)。
The printer mechanism section 4 carries out a process for executing printing. FIG. 2 shows a flow chart of processing of the printer apparatus of the embodiment. The printer device 1 connected to the host receives the print data from the host by the line control unit 5, develops the received print data as image data in page units, and stores it in the memory unit 7 (step S1).

【0012】格納されたイメージデータから矩形制御部
8は、印刷に必要な矩形イメージデータをページイメー
ジオブジェクトとして抽出する(S2ステップ)。図3に
矩形イメージデータ抽出処理の説明図を示す。図3
(a)に示すページイメージのデータを所定位置を基準
(0,0)としたXY座標で位置決めして、矩形イメー
ジデータを抽出し、図3(b)に示す4つのページイメ
ージオブジェクトを取得する。
From the stored image data, the rectangle controller 8 extracts the rectangle image data required for printing as a page image object (S2 step). FIG. 3 shows an explanatory diagram of the rectangular image data extraction processing. Figure 3
The page image data shown in (a) is positioned at XY coordinates with a predetermined position as a reference (0, 0), rectangular image data is extracted, and four page image objects shown in FIG. 3B are acquired. .

【0013】図4に実施例の矩形イメージデータ抽出処
理の流れ図を示す。まず関係する変数の初期化処理(S21
ステップ) を行う。すなわち、変数X1(オブジェクトの
X座標開始点)、X2(オブジェクトのX座標終了点)、
Y1(オブジェクトのY座標開始点)、Ysize (オブジェ
クトのY方向サイズ)、Y(処理ラスターのY座標)を
初期化する。
FIG. 4 shows a flow chart of the rectangular image data extraction processing of the embodiment. First, the initialization processing of the related variables (S21
Step). That is, variables X1 (the X coordinate start point of the object), X2 (the X coordinate end point of the object),
Initialize Y1 (starting point of Y coordinate of object), Ysize (size of object in Y direction), and Y (Y coordinate of processing raster).

【0014】次にメモリ部7から取得したページ単位の
イメージデータの1ラスター目から順にラスター単位で
印字データが存在するX方向の範囲を抽出するラスタデ
ータ処理を行う(S22ステップ) 。図5にラスターデータ
処理の流れ図を示す。まず、変数X(処理ラスターのX
座標)、Xstart(ラスター内の黒データ開始点)、Xend
(ラスター内の黒データ終了点)を初期化する(S22aス
テップ)。
Next, raster data processing is performed to extract the range in the X direction in which print data exists in raster units in order from the first raster of image data in page units acquired from the memory unit 7 (step S22). FIG. 5 shows a flow chart of raster data processing. First, the variable X (X of the processing raster
Coordinate), Xstart (black data start point in raster), Xend
Initialize (black data end point in raster) (step S22a).

【0015】次に走査方向に座標0から順に(S22iステ
ップ)当該座標データが黒かどうかを判断し(S22bステ
ップ)、最初に見つかった黒データのX座標を変数Xsta
rtにセットする(S22cステップ)。黒データが見つから
ない場合は、終了する(S22hステップ)。次にラスター
データの最終X座標をXにセットし(S22dステップ)、
その値から逆順(S22gステップ)に当該座標データが黒
かどうかを判断し(S22eステップ)、最初に見つかった
黒データのX座標を変数Xendにセットする(S22fステッ
プ)ことにより、ラスター単位での黒データの存在する
X方向の範囲を抽出することができる。
Next, it is determined in order from the coordinate 0 in the scanning direction (step S22i) whether or not the coordinate data is black (step S22b), and the X coordinate of the first black data found is set to the variable Xsta.
Set to rt (step S22c). If no black data is found, the process ends (step S22h). Next, set the final X coordinate of the raster data to X (step S22d),
From that value, it is determined in reverse order (S22g step) whether or not the coordinate data is black (S22e step), and the X coordinate of the first black data found is set in the variable Xend (S22f step), so that in raster units. The range in the X direction where the black data exists can be extracted.

【0016】次に前記ラスターデータ処理で抽出したX
方向の黒データの存在する範囲をY方向に広げて矩形イ
メージデータのページイメージオブジェクトを抽出する
オブジェクト形成処理( 図4のS23 ステップ) を行い、
それを最終ラインまで繰り返す(図4のS24 ステップ)
。図6にオブジェクト形成処理の流れ図Aを示す。
Next, X extracted by the raster data processing
The object formation process (step S23 in FIG. 4) of expanding the range in which the black data in the direction exists in the Y direction and extracting the page image object of the rectangular image data is performed.
Repeat it until the final line (S24 step in Fig. 4)
. FIG. 6 shows a flowchart A of the object forming process.

【0017】まず、1つ前のラスターに黒データの有無
をチェックし、有りの場合は、図7に示すオブジェクト
形成処理Bの処理に行く(S23aステップ) 。次に、当該
ラスター及び1つ前のラスター共に黒データが存在しな
い場合は、空白の継続としてオブジェクトは生成しない
(S23b ステップ) 。次に、1つ前のラスターに黒が存在
せずに現ラスターに黒データが存在する場合、矩形イメ
ージデータのページイメージオブジェクトの1ラスター
目として変数X1, X2にそれぞれXstart, Xendの値をセッ
トし、現ラスターのY座標を変数Y1にセットしてYsize
を1として次のラスター処理に入る(S23ca 〜S23cd ス
テップ)。
First, the presence / absence of black data in the previous raster is checked, and if there is black data, the process proceeds to the object forming process B shown in FIG. 7 (step S23a). Next, if black data does not exist in the raster and the previous raster, an object is not generated as a blank continuation.
(S23b step). Next, if there is no black in the previous raster but black data in the current raster, set the values of Xstart and Xend to variables X1 and X2 respectively as the first raster of the page image object of the rectangular image data. Then, set the Y coordinate of the current raster to the variable Y1 and set Ysize.
Is set to 1 and the next raster process starts (S23ca to S23cd steps).

【0018】図7にオブジェクト形成処理の流れ図Bを
示す。1つ前のラスターに黒データがある場合に、現ラ
スターの黒データの有無をチェックする(S23dステッ
プ)。黒データがある場合に、現ラスターと1つ前のラ
スター間で黒データの開始位置、終了位置に大きな差が
ある場合、1つの矩形イメージデータのページイメージ
オブジェクトとして扱うよりも2つの矩形イメージデー
タのページイメージオブジェクトに分けた方がオブジェ
クトデータの合計サイズを小さくすることができる。今
回の実施例では、後述の通りに各矩形イメージデータの
ページイメージオブジェクトのデータ部の先頭にヘッダ
部としてオブジェクト開始点のX、Y座標情報及びオブ
ジェクトのX、Yサイズ情報を格納するものとしてい
る。300dpiの解像度を持ち最大用紙サイズがA3
のプリンタでは、矩形イメージデータのページイメージ
オブジェクトは最大でA3サイズ(用紙全面黒の場合)
となり、X、Yサイズはそれぞれ3300ドット(0xCE
4 )、5100ドット(0x13EC)となるので、上記ヘッダ
部は2バイト×4で8バイト(64ビット)の領域とな
る。従って、両ラスター間の黒データの開始点、終了点
の差を比較し(S23eステップ)、差が64より大きい場
合は、1つ前のラスターに対するオブジェクト終結処理
(S23gaステップ)を行い、かつ現ラスターに対してオブ
ジェクト新規作成処理、すなわち変数X1にXstart、X2に
Xend、Y1にY 、Ysize に1をセットする(S23gb〜S23ge
ステップ)。
FIG. 7 shows a flowchart B of the object forming process. If there is black data in the previous raster, the presence or absence of black data in the current raster is checked (S23d step). When there is a large difference in the start position and end position of the black data between the current raster and the previous raster when there is black data, two rectangular image data are handled rather than being treated as a page image object of one rectangular image data. It is possible to reduce the total size of the object data by dividing the page image objects. In this embodiment, as will be described later, the X, Y coordinate information of the object start point and the X, Y size information of the object are stored at the beginning of the data portion of the page image object of each rectangular image data as a header portion. . It has a resolution of 300 dpi and the maximum paper size is A3.
Printer, the maximum size of page image object of rectangular image data is A3 size (when the entire paper is black)
The X and Y sizes are 3300 dots each (0xCE
4) Since it is 5100 dots (0x13EC), the header portion is an area of 2 bytes x 4 bytes of 8 bytes (64 bits). Therefore, the difference between the start point and the end point of the black data between both rasters is compared (S23e step), and if the difference is greater than 64, the object closing process for the previous raster is performed.
(S23ga step) and create new object for the current raster, that is, Xstart for variable X1 and X2 for variable
Set Xend, Y1 to Y and Ysize to 1 (S23gb ~ S23ge
Step).

【0019】この結果、オブジェクトを2つに分割する
ことが可能となる。また、両ラスター間の黒データの開
始点、終了点の差が64より小さい場合(S23eステッ
プ)で、1つ前のラスタの変数X1が現ラスターのXstart
を比較し(S23fステップ)、XstartがX1より小さい場合
はX1にXstartの値をセットし(S23fbステップ)、更にX
endのがX2と比較して(S23fc ステップ)、XendのがX2
より大きい場合はX2にXendの値をセットし(S23fd ステ
ップ)、更にYsize の値を1インクリメントして(S23f
e ステップ)、次のラスター処理に入る。
As a result, the object can be divided into two. Further, when the difference between the start point and the end point of the black data between both rasters is smaller than 64 (step S23e), the variable X1 of the immediately preceding raster is Xstart of the current raster.
Are compared (S23f step), and if Xstart is smaller than X1, X1 is set to the value of Xstart (S23fb step), and X
Compare end to X2 (S23fc step), Xend to X2
If it is larger, Xend is set to the value of Xend (step S23fd), and the value of Ysize is further incremented by 1 (S23f).
e step), and the next raster processing starts.

【0020】次に、1つ前のラスターにのみ黒データが
存在して現ラスターを空白データかチェックしたときに
(S23dステップ)、空白データの場合は、現オブジェク
トのオブジェクト終結処理(S23ha ステップ)を行って
から、関連する変数X1,X2,Y1,Ysize の初期化を行う
(S23hb 〜S23he ステップ)。図8にオブジェクト終結
処理の流れ図示す。
Next, when black data exists only in the previous raster and it is checked whether the current raster is blank data (step S23d), if it is blank data, object termination processing of the current object (step S23ha) Then, the related variables X1, X2, Y1 and Ysize are initialized (S23hb to S23he steps). FIG. 8 shows a flow chart of the object termination processing.

【0021】なお、オブジェクト終結処理は、始めにヘ
ッダ情報作成として前記変数X1及びY1の値を現オブジェ
クト開始点のX座標、Y座標とし、更に変数X1とX2の差
及びYzise より現オブジェクトのXサイズ、Yサイズを
決定する(S26aステップ)。次に前記ヘッダ情報をメモ
リに格納(S26bステップ)し、続けて現オブジェクトデ
ータをページデータから抽出してメモリに格納する(S2
6cステップ)。
In the object termination process, the values of the variables X1 and Y1 are first set as X and Y coordinates of the starting point of the current object as header information creation, and the X of the current object is calculated from the difference between the variables X1 and X2 and Yzise. The size and Y size are determined (step S26a). Next, the header information is stored in the memory (step S26b), and then the current object data is extracted from the page data and stored in the memory (S2).
6c step).

【0022】以上の処理を最終ライン(図4のS24 ステ
ップ)まで行った後、作成途中になっている矩形イメー
ジデータのページイメージオブジェクトがあれば(S25
ステップ)オブジェクト終結処理を行う(S26 ステッ
プ)ことで、各ページに対する矩形イメージデータの抽
出処理は完了する。次にオブジェクトの転送処理を行う
(図2のS3ステップ)。印刷時にプリンタ制御部2はヘ
ッダ情報と一緒にページイメージオブジェクトをプリン
タ機構制御部3に転送する。
After the above processing is performed up to the final line (step S24 in FIG. 4), if there is a page image object of rectangular image data that is being created (S25
(Step) By performing object termination processing (Step S26), the extraction processing of the rectangular image data for each page is completed. Next, an object transfer process is performed (S3 step in FIG. 2). At the time of printing, the printer control unit 2 transfers the page image object together with the header information to the printer mechanism control unit 3.

【0023】次にプリンタ機構制御部3は受信したデー
タを元にプリンタ機構部4のビデオ信号を制御して印刷
処理を行う(図2のS4ステップ)。図9に印刷処理の流
れ図を示す。まずプリンタ機構制御部3は必要な初期化
処理(S3a ステップ)を行った後、プリンタ制御部2か
ら送られてきたページイメージオブジェクトの読込み処
理(S3b ステップ)を行い、ヘッダ情報を元にページイ
メージオブジェクトの開始座標及びサイズ情報を設定す
る(S3c ステップ)。すなわち、X座標開始点を変数A
に、Y座標開始点を変数Bに、X方向サイズを変数C
に、Y方向サイズを変数Dにセットする。次に実際のビ
デオ信号制御時にページイメージオブジェクトの開始ラ
イン(Bライン目)までWait処理(S3d 〜S3f ステッ
プ)を行った後、ビデオデータ送信処理を行う。
Next, the printer mechanism control unit 3 controls the video signal of the printer mechanism unit 4 based on the received data to perform the printing process (step S4 in FIG. 2). FIG. 9 shows a flow chart of the printing process. First, the printer mechanism control unit 3 performs a necessary initialization process (S3a step), and then performs a reading process (S3b step) of the page image object sent from the printer control unit 2, and based on the header information, the page image is read. Set the start coordinates and size information of the object (S3c step). That is, the X coordinate start point is set to the variable A.
, The Y coordinate start point is the variable B, and the X direction size is the variable C.
Then, the size in the Y direction is set to the variable D. Next, during actual video signal control, Wait processing (S3d to S3f steps) is performed up to the start line (B line) of the page image object, and then video data transmission processing is performed.

【0024】ビデオデータ送信処理は、ページイメージ
オブジェクトの開始ドット(Aドット)までのWait処理
後にページイメージオブジェクトの対応する各ラインの
データ(Cドット)を元にビデオデータを送信し、その
後ライン最終ドットまでのWait処理を行う。次にこの処
理を本ビデオデータ送信処理はページイメージオブジェ
クトのY方向サイズ分(Dサイズ分)繰り返す(S3g 〜
S3k ステップ)。
In the video data transmission processing, after the Wait processing up to the start dot (A dot) of the page image object, the video data is transmitted based on the data (C dot) of the corresponding line of the page image object, and then the line end. Performs Wait processing up to dots. Next, this process is repeated for the size of the page image object in the Y direction (for the size D) of this video data transmission process (S3g-
S3k step).

【0025】以上でページイメージオブジェクト1個分
のビデオデータ送信処理は完了し、それをページイメー
ジオブジェクトの数だけ繰り返す(S3l ステップ)。そ
して最終ページイメージオブジェクトのビデオデータ送
信処理が完了した後でページ内の残りライン分のWait処
理(S3m ステップ)を行って1ページのビデオ信号処理
は完了し、プリンタ機構部4はビデオ信号を元に用紙上
に印刷像を形成して印刷処理を行う。
As described above, the video data transmission process for one page image object is completed, and the process is repeated by the number of page image objects (S3l step). Then, after the video data transmission process of the final page image object is completed, the Wait process (S3m step) for the remaining lines in the page is performed to complete the video signal process of one page, and the printer mechanism unit 4 receives the video signal from the video signal. Then, a print image is formed on the paper and printing processing is performed.

【0026】この結果、本発明では、展開済みページイ
メージの各ラスターライン毎に先頭と終端からそれぞれ
印字部分の開始点と終了点を求めることで、印刷データ
部分をページイメージオブジェクトとして1個以上の矩
形単位でメモリ格納を行なうため、メモリ削減をソフト
ウェアのみで高速に行うことが可能となる。これは、圧
縮/伸張をソフトウェアで実現している場合と比較して
も、特別な演算処理が不要のために処理そのものが簡単
・高速であり、かつ伸張といった復元処理も伴わないた
めトータル的に見ても処理時間短縮につながり、高速化
が実現できる。
As a result, according to the present invention, the start point and the end point of the print portion are obtained from the beginning and the end for each raster line of the developed page image, so that one or more print data portions are used as page image objects. Since the memory is stored in units of rectangles, the memory can be reduced at high speed only by software. Compared to the case where compression / decompression is implemented by software, this is a simple and high-speed process because no special arithmetic processing is required, and since decompression processing such as decompression is not involved Even if you look at it, it leads to a reduction in processing time and can be speeded up.

【0027】また、プリンタ機構制御部3への印刷デー
タ送信もプリンタ制御部2で展開したイメージデータ全
体でなくページイメージオブジェクト単位で行うこと
で、プリンタ機構制御部3へのデータ転送量の削減が可
能となる。更に、ビデオ主走査方向には常にページイメ
ージオブジェクトを重ならないようにすることで、印刷
時にページイメージオブジェクトを更に画像処理や変換
処理を行うことなく、ビデオ信号制御のみでそのままビ
デオデータとしてプリンタ機構に送信することが可能と
なり、より高速処理に向いた構成とすることができる。
Further, by transmitting the print data to the printer mechanism control unit 3 in units of page image objects instead of the entire image data developed by the printer control unit 2, it is possible to reduce the data transfer amount to the printer mechanism control unit 3. It will be possible. Furthermore, by making sure that the page image objects do not overlap in the video main scanning direction at all, the page image objects are not subjected to further image processing or conversion processing at the time of printing, and are directly transmitted to the printer mechanism as video data only by video signal control. It becomes possible to transmit, and a configuration suitable for higher speed processing can be obtained.

【0028】また、本方式をスポットカラー印刷装置に
応用する場合、基本的な構成及び処理は、上記の説明と
同じであるが、カラーの場合はヘッダ情報にページイメ
ージオブジェクトのカラー情報を持たせても良い。つま
り、印刷データの展開後、プリンタ制御部2はビットマ
ップ化された各カラーに対応するページイメージデータ
の印字データが存在する部分を1個以上の最小矩形単位
に分割し、それぞれをページイメージオブジェクトとし
てカラー情報、開始点情報及びサイズ情報と一緒にメモ
リに格納しておく。この場合、異なるカラー間では主走
査、副走査方向でページイメージオブジェクトが重なっ
ても良い。印刷時には、プリンタ制御部2は前記カラー
情報に対応するカラー印刷用のプリンタ機構制御部3に
前記開始点・サイズ情報及び矩形のページイメージオブ
ジェクトを転送、プリンタ機構制御部3は開始点及びサ
イズ情報を元にビデオ信号制御を行い、ページイメージ
オブジェクトをビデオデータとして用紙上に印刷像を形
成して印刷処理を行う。このように、スポットカラー印
刷の場合、色付けする印刷データは会社ロゴや一部文字
(強調文字等)といったようにページ内の一部分のみの
ケースが一般的のため、本発明の効果が発揮される。
When this system is applied to a spot color printing apparatus, the basic configuration and processing are the same as those described above, but in the case of color, the header information is given the color information of the page image object. May be. That is, after developing the print data, the printer control unit 2 divides the portion of the page image data corresponding to each bit-mapped color where the print data exists into one or more minimum rectangle units, and divides each into a page image object. Is stored in the memory together with the color information, the starting point information, and the size information. In this case, page image objects may overlap in the main scanning direction and the sub scanning direction between different colors. At the time of printing, the printer control unit 2 transfers the start point / size information and the rectangular page image object to the printer mechanism control unit 3 for color printing corresponding to the color information, and the printer mechanism control unit 3 starts the start point and size information. Video signal control is performed based on the above, and a print image is formed by forming a print image on a paper by using a page image object as video data. As described above, in the case of spot color printing, since the print data to be colored is generally only a part of the page such as a company logo or some characters (emphasized characters, etc.), the effect of the present invention is exerted. .

【0029】また、ビットマップ化されたページイメー
ジの印字データが存在する部分を1個以上の最小矩形単
位に分割する際、ページイメージを各ビット(ドット)
単位でページイメージオブジェクト抽出を行ったが、分
割するサイズをプリンタ機構制御部3がビデオデータを
扱うアクセス単位(例えば32ビット単位)の倍数とし
て処理することもできる。
When the portion of the bit-mapped page image where the print data is present is divided into one or more minimum rectangular units, the page image is divided into bits (dots).
Although the page image object extraction is performed in units, it is also possible to process the divided size as a multiple of the access unit (for example, 32-bit unit) in which the printer mechanism control unit 3 handles video data.

【0030】このときは、イメージデータの中から矩形
のページイメージオブジェクトを抽出する処理の際に、
取得したX座標を32ビットの倍数になるように、修正
する。例えば、X座標の開始点が120のときには、1
20より小さい値の中で120に最も近い32の倍数で
ある96を選び、その値を修正されたX座標の開始点と
する。また、X座標の終了点が、2000のときには、
2000より大きい値の中で2000に最も近い32の
倍数である2016を選び、その値を修正されたX座標
の終了点とする。その後、この修正された開始点および
終了点とY座標の開始位置および終了位置をもとにペー
ジイメージオブジェクト抽出を行う。
At this time, when the rectangular page image object is extracted from the image data,
The acquired X coordinate is corrected to be a multiple of 32 bits. For example, when the start point of the X coordinate is 120, 1
Of the values less than 20, the closest multiple of 32 to 120, 96, is chosen and that value is taken as the starting point for the modified X coordinate. When the end point of the X coordinate is 2000,
Among the values larger than 2000, 2016, which is the multiple of 32 closest to 2000, is selected, and the value is set as the end point of the corrected X coordinate. After that, the page image object is extracted based on the corrected start point and end point and the start position and end position of the Y coordinate.

【0031】この結果、プリンタ機構制御部3では、プ
リンタ制御部から転送されてきたページイメージオブジ
ェクトをアクセスするときに、アクセス単位で処理でき
るため、ページイメージオブジェクトのビットをアクセ
ス単位に修正する処理が不要となり高速に処理をするこ
とができる効果がある。
As a result, since the printer mechanism control unit 3 can process the page image object transferred from the printer control unit in the access unit, the bit of the page image object is corrected in the access unit. There is an effect that it becomes unnecessary and can be processed at high speed.

【0032】[0032]

【発明の効果】本発明により、ページイメージデータの
中から印刷する部分を1個以上の矩形単位で抽出し、メ
モリ格納を行なうため、メモリ削減が可能となり、印刷
時のイメージデータ転送速度も高速となる。
According to the present invention, the portion to be printed is extracted from the page image data in units of one or more rectangles and stored in the memory, so that the memory can be reduced and the image data transfer speed at the time of printing is also high. Becomes

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

【図1】実施例のプリンタ装置の構成図FIG. 1 is a configuration diagram of a printer device according to an embodiment.

【図2】実施例のプリンタ装置の処理の流れ図FIG. 2 is a flow chart of processing of a printer device according to an embodiment.

【図3】矩形イメージデータ抽出処理の説明図FIG. 3 is an explanatory diagram of rectangular image data extraction processing.

【図4】矩形イメージデータ抽出処理の流れ図FIG. 4 is a flow chart of rectangular image data extraction processing.

【図5】ラスターデータ処理の流れ図FIG. 5: Flow chart of raster data processing

【図6】オブジェクト形成処理の流れ図AFIG. 6 is a flowchart A of object formation processing.

【図7】オブジェクト形成処理の流れ図BFIG. 7 is a flowchart B of the object forming process.

【図8】オブジェクト終結処理の流れ図FIG. 8 is a flow chart of object closing processing.

【図9】印刷処理の流れ図[Fig. 9] Flowchart of print processing

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

1 プリンタ装置 2 プリンタ制御部 3 プリンタ機構制御部 4 プリンタ機構部 5 回線制御部 6 印刷データ展開部 7 メモリ部 8 矩形制御部 9 転送制御部 1 Printer device 2 Printer control unit 3 Printer mechanism controller 4 Printer mechanism 5 line control unit 6 Print data development section 7 Memory section 8 rectangle control unit 9 Transfer control unit

フロントページの続き Fターム(参考) 2C087 AB05 BA01 BA02 BA03 BA07 BD40 BD46 CA05 5B021 AA02 BB01 BB05 CC05 DD04Continued front page    F-term (reference) 2C087 AB05 BA01 BA02 BA03 BA07                       BD40 BD46 CA05                 5B021 AA02 BB01 BB05 CC05 DD04

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】ホストから受信したデータをイメージデー
タに展開し、展開したイメージデータをプリンタ機構制
御部に送信するプリンタ制御部と、受信したイメージデ
ータをもとにプリンタ機構部にビデオデータを出力する
プリンタ機構制御部と、ビデオデータにより所定の解像
度で印刷を行うプリンタ機構部とを備えたプリンタ装置
であって、 プリンタ制御部は、イメージデータの中の印刷データを
矩形領域に分割して、矩形イメージデータを生成する矩
形イメージデータ生成手段と、 生成された矩形イメージデータの位置情報を取得する位
置情報取得手段と、取得された位置情報を付加した矩形
イメージデータをプリンタ機構制御部に送出するデータ
送出手段とを有し、 プリンタ機構制御部は、受信した矩形イメージデータを
位置情報をもとにビデオデータとしてプリンタ機構部に
出力する印刷出力手段とを有することを特徴とするプリ
ンタ装置。
1. A printer control unit for expanding data received from a host into image data and transmitting the expanded image data to a printer mechanism control unit, and outputting video data to the printer mechanism unit based on the received image data. A printer device including a printer mechanism control unit for performing printing at a predetermined resolution with video data, wherein the printer control unit divides print data in image data into rectangular areas, Rectangular image data generation means for generating rectangular image data, position information acquisition means for acquiring position information of the generated rectangular image data, and rectangular image data to which the acquired position information is added is sent to the printer mechanism control section. The printer mechanism control unit has data transmission means, and the received rectangular image data is used as position information. Printer apparatus characterized by having a print outputting means for outputting the printing unit as a basis to the video data.
【請求項2】矩形イメージデータ生成手段は、 所定位置を基準としたXY座標に位置決めされたイメー
ジデータをX座標方向に走査するイメージデータ走査手
段と、 直前の走査ラインに印刷データがなく、現走査ラインに
印刷データがある場合には、現走査ラインのY座標を開
始位置として取得する開始位置取得手段と、 取得した開始位置からイメージデータを走査して、走査
ライン毎に印刷データの開始点と終了点のX座標を取得
する印刷データ位置取得手段と、 直前の走査ラインに印刷データがあり、現走査ラインに
印刷データがない場合には現走査ラインのY座標を終了
位置として取得する第1終了位置取得手段と、 終了位置を検出したときには、走査ライン毎に取得され
た開始点の中の最小値、終了点の中の最大値の各X座標
と開始位置、終了位置の各Y座標をもとに、イメージデ
ータの中から印刷データを矩形に抽出する矩形データ抽
出手段とを有することを特徴とする請求項1記載のプリ
ンタ装置。
2. The rectangular image data generating means includes image data scanning means for scanning in the X coordinate direction image data positioned at XY coordinates with a predetermined position as a reference, and there is no print data on the immediately preceding scanning line. If there is print data in the scan line, the start position acquisition means for acquiring the Y coordinate of the current scan line as the start position, and the image data is scanned from the acquired start position, and the start point of the print data for each scan line And print data position acquisition means for acquiring the X coordinate of the end point, and when there is print data in the previous scan line and no print data in the current scan line, the Y coordinate of the current scan line is acquired as the end position. 1 end position acquisition means, and when the end position is detected, X-coordinates of the minimum value of the start points and the maximum value of the end points acquired for each scanning line, Start position, based on each Y-coordinate of the end position, the printer apparatus according to claim 1, characterized in that it has a rectangular data extracting means for extracting print data in a rectangular from the image data.
【請求項3】矩形イメージデータ生成手段は、 現走査ラインで取得した開始点と直前の走査ラインまで
の開始点の最小値との差と現走査ラインで取得した終了
点と直前の走査ラインまでの終了点の最大値との差の和
が、所定値より大きい場合は、直前の走査ラインのY座
標を終了位置として取得する第2終了位置取得手段と、 現走査ラインを新たな矩形データを抽出するための走査
ラインの開始位置とする開始位置更新手段とを有するこ
とを特徴とする請求項2記載のプリンタ装置。
3. The rectangular image data generating means includes a difference between a start point acquired by the current scan line and a minimum value of start points up to the immediately preceding scan line, an end point acquired by the current scan line, and the immediately preceding scan line. If the sum of the difference from the maximum value of the end point of is larger than the predetermined value, the second end position acquisition means for acquiring the Y coordinate of the immediately previous scan line as the end position, and the current scan line as new rectangular data. 3. The printer apparatus according to claim 2, further comprising start position updating means for setting a start position of a scanning line for extraction.
JP2002000452A 2002-01-07 2002-01-07 Printer Pending JP2003200617A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2002000452A JP2003200617A (en) 2002-01-07 2002-01-07 Printer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2002000452A JP2003200617A (en) 2002-01-07 2002-01-07 Printer

Publications (1)

Publication Number Publication Date
JP2003200617A true JP2003200617A (en) 2003-07-15

Family

ID=27640833

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2002000452A Pending JP2003200617A (en) 2002-01-07 2002-01-07 Printer

Country Status (1)

Country Link
JP (1) JP2003200617A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009214537A (en) * 2008-02-14 2009-09-24 Seiko Epson Corp Printing control method for printer and printer
JP2012064044A (en) * 2010-09-16 2012-03-29 Ricoh Co Ltd Print image data generation device, printer, print control method, and program
JP2012064037A (en) * 2010-09-16 2012-03-29 Ricoh Co Ltd Print image data generation device, printer, print control method, and program
JP2016002763A (en) * 2014-06-19 2016-01-12 株式会社リコー Image forming apparatus, image forming system, and image forming method
JP2016107545A (en) * 2014-12-08 2016-06-20 株式会社リコー Image formation apparatus, image formation system and image formation method
JP2019119087A (en) * 2017-12-28 2019-07-22 キヤノン株式会社 Image formation apparatus, control device, control method and program in image formation apparatus

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009214537A (en) * 2008-02-14 2009-09-24 Seiko Epson Corp Printing control method for printer and printer
JP2012064044A (en) * 2010-09-16 2012-03-29 Ricoh Co Ltd Print image data generation device, printer, print control method, and program
JP2012064037A (en) * 2010-09-16 2012-03-29 Ricoh Co Ltd Print image data generation device, printer, print control method, and program
JP2016002763A (en) * 2014-06-19 2016-01-12 株式会社リコー Image forming apparatus, image forming system, and image forming method
JP2016107545A (en) * 2014-12-08 2016-06-20 株式会社リコー Image formation apparatus, image formation system and image formation method
JP2019119087A (en) * 2017-12-28 2019-07-22 キヤノン株式会社 Image formation apparatus, control device, control method and program in image formation apparatus

Similar Documents

Publication Publication Date Title
JPH0793559A (en) High-resolution computer graphics compression image storage method
JP2000118054A (en) Printer and method for reducing amount of consumption of toner
JP2001213015A (en) Image recording device
JP3285930B2 (en) Image processing device
JP3907471B2 (en) Image input / output controller
JP3695498B2 (en) Image processing device
US6411398B1 (en) Computer interface unit for computer data print-out system using stencil printers
JP3254672B2 (en) Image forming device
JP4065550B2 (en) Image input / output control device, image processing device, image processing method in image input / output control device, and image processing method in image processing device
JPH10136179A (en) Data processing device
JP3432153B2 (en) Image processing apparatus and image processing method
JP3703431B2 (en) Data communication apparatus, image processing apparatus, data communication method, and data communication method in image processing apparatus
JPH06113145A (en) Image processing device
JP3244745B2 (en) Image processing device
JP3624155B2 (en) Image compression apparatus, image compression method, and information processing system
JPH07336523A (en) Image processing system
JP3184544B2 (en) Image processing device
JP2564947B2 (en) Bitmap memory control method
JP3147238B2 (en) Image processing apparatus and image processing method
JP2003348338A (en) Information processing apparatus
JP2002240365A (en) Recording device
JP3093245B2 (en) Image processing device, output control device, image processing system and method
JP3214617B2 (en) Multi-value image printer
JP2613590B2 (en) Color image forming equipment
JPH0839864A (en) Lossless compression method and method for bitmap image