JP2002248816A - Printer - Google Patents

Printer

Info

Publication number
JP2002248816A
JP2002248816A JP2001052261A JP2001052261A JP2002248816A JP 2002248816 A JP2002248816 A JP 2002248816A JP 2001052261 A JP2001052261 A JP 2001052261A JP 2001052261 A JP2001052261 A JP 2001052261A JP 2002248816 A JP2002248816 A JP 2002248816A
Authority
JP
Japan
Prior art keywords
drawing command
memory
unit
page
writing
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.)
Withdrawn
Application number
JP2001052261A
Other languages
Japanese (ja)
Other versions
JP2002248816A5 (en
Inventor
Hiroshi Ishihara
博史 石原
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.)
Ricoh Co Ltd
Original Assignee
Ricoh 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 Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP2001052261A priority Critical patent/JP2002248816A/en
Publication of JP2002248816A publication Critical patent/JP2002248816A/en
Publication of JP2002248816A5 publication Critical patent/JP2002248816A5/ja
Withdrawn legal-status Critical Current

Links

Landscapes

  • Image Generation (AREA)
  • Record Information Processing For Printing (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide a printer in which a plotting instruction can be processed at high rate by saving the plotting of a figure into a memory under predetermined conditions thereby decreasing the number of read/write times of a memory in the graphic process. SOLUTION: Judgeable is represented by a density Ld=0 and a judgeable flag M=0 (S2), and plotting instructions As, Ls and F are inputted for each figure (S3). If M≠1 (S4; N) and a plotting instruction logical operation F is not SET (S5; N), a decision is made that logical operation results are indeterminate and 1 is substitute for M (S9) before the control advances to plotting instruction processing (S10). If a density Ls specified by a plotting instruction is identical to a density Ld written in Ad (S6; Y), logical operation SET (F (S, D)=S) is identical to D and an operation for reading the memory in As over the entire region, performing logical operation SET and writing in the memory in Ad can be saved.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、ページプリンタの
プリンタ言語処理を高速化することができるプリンタ装
置に関する。
[0001] 1. Field of the Invention [0002] The present invention relates to a printer capable of speeding up a printer language process of a page printer.

【0002】[0002]

【従来の技術】一般的に、レーザプリンタやドットプリ
ンタのような2値プリンタの場合、ディザなどを使って
疑似階調を表現するために指定された任意の領域をある
一定のビットパターン(色)で塗りつぶすという処理を
行う。この場合、1つの描画命令で指定された領域内の
ページメモリへのread(リード;読み込み)/wr
ite(ライト;書き込み)の処理を行うことになる。
この描画命令が描画処理前に省略可能と判断することが
できれば、この領域内のread/writeの処理も
そのまま省略されることになり、これによる高速処理が
望まれている。この高速処理に関して特開平5−266
177号公報には、メモリへのwrite動作を省略し
高速化を図る描画装置が記載されている。また、特開平
11−7364号公報には、全描画命令に対して重なり
判定を行い、重なっていない図形に対して論理演算の変
更を行い、図形を分割して矩形範囲で重なり判定をする
ことで高速化を図る情報処理装置、情報処理方法、記憶
媒体、および印刷システムの発明が記載されている。
2. Description of the Related Art Generally, in the case of a binary printer such as a laser printer or a dot printer, an arbitrary area designated for expressing a pseudo gradation by using dither or the like is provided with a certain bit pattern (color). ). In this case, read (read; read) / wr to the page memory in the area specified by one drawing command
Item (write; write) processing is performed.
If it can be determined that the drawing command can be omitted before the drawing processing, the read / write processing in this area is also omitted as it is, and high-speed processing by this is desired. Japanese Patent Laid-Open No. 5-266 discloses this high-speed processing.
Japanese Patent Application Publication No. 177 discloses a drawing apparatus for increasing the speed by omitting a write operation to a memory. Japanese Unexamined Patent Application Publication No. 11-7364 discloses that overlapping determination is performed for all drawing commands, logical operations are changed for non-overlapping graphics, and graphics are divided and overlap determination is performed in a rectangular range. The invention of an information processing apparatus, an information processing method, a storage medium, and a printing system that achieves high-speed processing is described.

【0003】[0003]

【発明が解決しようとする課題】しかしながら、特開平
5−266177号公報記載の発明では、描画領域内メ
モリの各ワードに対して比較を行うので、必ずメモリへ
のread動作が必要となってしまう。また、read
動作の後に論理演算結果との比較処理があるので、比較
処理時間とメモリへのwrite動作時間とのトレード
オフとなり、高速化はメモリwrite動作が遅い装置
に限られる。さらに、各ワードに対して1回の比較を行
っているので高速化に限界がある。また、特開平11−
007364では、全描画命令に対してその範囲を記憶
するための大量のメモリを必要とし、格子領域毎のL
d、Mのみというような省メモリでは高速化の実現が困
難である。また、判定回数は描画命令数の2乗に比例す
るため描画命令が数千数万になる現在では一般的なアプ
リケーションでの印刷で高速化は望めず、1図形に対し
てその範囲を記憶するメモリも必要となるので省メモリ
も望めない。また、描画が省略できるかどうかの判断を
論理演算のみで判断しているので、省略される条件が限
られてしまう。そこで、本発明の目的は、ある一定条件
で図形のメモリへの描画を省略することにより、図形描
画処理の大半を占めるメモリのreadとwriteの
回数を減らし描画命令の高速処理を図ることができるプ
リンタ装置を提供することである。
However, in the invention described in Japanese Patent Application Laid-Open No. Hei 5-266177, comparison is performed for each word in the memory in the drawing area, so that a read operation to the memory is always required. . Also, read
Since there is a comparison process with the result of the logical operation after the operation, there is a trade-off between the comparison processing time and the write operation time to the memory, and the speedup is limited to a device with a slow memory write operation. Furthermore, since the comparison is performed once for each word, there is a limit to speeding up. Further, Japanese Unexamined Patent Publication No.
007364 requires a large amount of memory to store the range for all drawing commands, and requires L
It is difficult to realize high speed with a memory saving such as only d and M. In addition, since the number of times of determination is proportional to the square of the number of drawing commands, the number of drawing commands becomes tens of thousands. At present, high-speed printing cannot be expected by printing with a general application, and the range is stored for one figure. Since memory is required, memory saving cannot be expected. In addition, since the determination as to whether or not the drawing can be omitted is made only by the logical operation, conditions for the omission are limited. Therefore, an object of the present invention is to omit drawing of a graphic in a memory under a certain condition, thereby reducing the number of times of reading and writing of the memory which occupies most of the graphic drawing processing, and achieving high-speed processing of a drawing command. It is to provide a printer device.

【0004】[0004]

【課題を解決するための手段】請求項1記載の発明で
は、図形データの描画特性を含む描画命令を入力する描
画命令入力手段と、前記描画命令入力手段によって入力
された描画命令を記憶する記憶手段と、前記記憶手段に
前記描画命令入力手段によって入力された描画命令の描
画属性を書き込む、または、すでに記憶されている描画
命令を前記記憶手段から読み出す描画命令書き込み・読
み出し手段と、前記描画命令入力手段によって入力され
た描画命令が前記記憶手段に記憶されている描画命令の
描画特性の所定条件と一致するか否かを判断する描画命
令判断手段と、前記描画命令書き込み・読み出し手段に
よる前記記憶手段に記憶されている描画命令の描画特性
に基づいて、前記図形データの描画を行う描画手段と、
を備え、前記描画命令書き込み・読み出し手段は、前記
描画命令判断手段による判断結果に基づいて、前記記憶
手段に対して前記描画命令入力手段によって入力された
描画命令の書き込み、または読み出しを行うことによ
り、前記の目的を達成する。
According to the first aspect of the present invention, a drawing command input unit for inputting a drawing command including drawing characteristics of graphic data, and a storage for storing the drawing command input by the drawing command input unit. Means for writing a drawing attribute of a drawing command input by the drawing command input means to the storage means, or a drawing command writing / reading means for reading a previously stored drawing command from the storage means; A drawing command determining unit configured to determine whether a drawing command input by an input unit matches a predetermined condition of a drawing characteristic of the drawing command stored in the storage unit; and the storage by the drawing command writing / reading unit. Drawing means for drawing the graphic data based on a drawing characteristic of a drawing command stored in the means;
Wherein the drawing command writing / reading unit writes or reads a drawing command input by the drawing command input unit to the storage unit based on a determination result by the drawing command determination unit. Achieve the above objectives.

【0005】請求項2記載の発明では、請求項1記載の
発明において、前記記憶手段が1ページ分の描画命令を
記憶するページメモリである場合、前記ページメモリを
格子単位に分割する分割手段をさらに備え、前記分割手
段によって分割された記憶手段の格子単位について、前
記描画命令書き込み・読み出し手段は、前記描画命令判
断手段によって前記描画命令の描画特性が所定条件と一
致すると判断された場合、前記記憶手段に前記描画命令
の描画属性の書き込みを行わないことにより、前記の目
的を達成する。請求項3記載の発明では、請求項2記載
の発明において、前記ページメモリがバンドメモリであ
ることにより、前記の目的を達成する。請求項4記載の
発明では、請求項2記載の発明において、前記記憶手段
のページメモリがCMYK(シアン・マゼンダ・イエロ
ー・ブラック)のカラー各色に対応したメモリであるこ
とにより、前記の目的を達成する。
According to a second aspect of the present invention, in the first aspect of the present invention, when the storage means is a page memory for storing a drawing command for one page, the dividing means for dividing the page memory into lattice units is provided. Further, for the grid unit of the storage unit divided by the division unit, the drawing command writing / reading unit, when the drawing command determination unit determines that the drawing characteristic of the drawing command matches a predetermined condition, The above object is achieved by not writing the drawing attribute of the drawing command in the storage means. According to a third aspect of the present invention, in the second aspect of the present invention, the above object is achieved by the page memory being a band memory. According to a fourth aspect of the present invention, in the second aspect of the present invention, the object is achieved by providing a page memory of the storage means which is a memory corresponding to each color of CMYK (cyan, magenta, yellow, black). I do.

【0006】[0006]

【発明の実施の形態】以下、本発明の好適な実施の形態
について図1ないし図5を参照して詳細に説明する。ビ
ットマップの論理演算には、SET(上書き)、OR
(論理和)、AND(論理積)、XOR、NOTがあ
る。この論理演算が描画処理前のメモリ領域全体が単一
であるデスティネーションビットマップパターン(以
下、Dとする)と描画属性命令で指定されたソースビッ
トマップパターン(以下、Sとする)の2つのパターン
に対して行われる。本実施の形態では、論理演算をF、
演算結果をF(S、D)と表記する。これらのS、D、
Fの関係がD=F(S、D)になることがS、D、Fの
比較のみで判断可能であれば、論理演算が省略可能とな
る。図1は、D=F(S、D)になる関係の一例を示し
た図である。全ビットが1のパターンを(all1)、
全ビットが0のパターンを(all0)、それ以外のあ
る任意のパターンを(any)と表記する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Preferred embodiments of the present invention will be described below in detail with reference to FIGS. Bitmap logical operations include SET (overwrite), OR
(Logical sum), AND (logical product), XOR, and NOT. This logical operation is performed by using a destination bitmap pattern (hereinafter, referred to as D) in which the entire memory area before the drawing process is single and a source bitmap pattern (hereinafter, referred to as S) specified by the drawing attribute command. Performed on the pattern. In the present embodiment, the logical operation is F,
The calculation result is denoted by F (S, D). These S, D,
If it can be determined that the relation of F becomes D = F (S, D) only by comparing S, D, and F, the logical operation can be omitted. FIG. 1 is a diagram illustrating an example of a relationship where D = F (S, D). A pattern in which all bits are 1 (all1),
A pattern in which all bits are 0 is expressed as (all0), and another arbitrary pattern is expressed as (any).

【0007】プリンタ内の描画処理では、指定された色
濃度に対応したパターンがS、ページメモリがDに対応
する。通常、これらのメモリの読み出しや書き込みなど
のメモリアクセスは処理時間がかかる。処理の省略を判
断するためにはSとD双方のビットパターンの比較が必
要となるので、Sを得るためにディザパターンが格納さ
れたメモリへのreadが1回、Dを得るためにページ
メモリへのreadが1回発生する。さらに、判断の結
果省略不可となった場合は演算結果のページメモリへの
writeが発生する。プリンタでは疑似階調を表現す
るためにディザパターンを用いるのが一般的である。デ
ィザパターンは指定された色濃度が決まれば一意に決ま
るパターンである。また、ディザパターンはページ領域
の左上原点から敷き詰めるように処理されるので、異な
る図形でも同じディザパターンであれば、任意の場所で
ディザパターンは一致する。
In the drawing process in the printer, the pattern corresponding to the designated color density corresponds to S, and the page memory corresponds to D. Normally, memory access such as reading and writing of these memories takes processing time. Since it is necessary to compare the bit patterns of both S and D in order to determine the omission of the processing, a read to the memory in which the dither pattern is stored once to obtain S and a page memory to obtain D are performed. Read occurs once. Furthermore, if the result of the determination indicates that the operation cannot be omitted, a write of the operation result to the page memory occurs. In a printer, a dither pattern is generally used to express a pseudo gradation. The dither pattern is a pattern uniquely determined when the designated color density is determined. Further, since the dither pattern is processed so as to be spread from the upper left origin of the page area, if the same dither pattern is used for different figures, the dither pattern matches at an arbitrary position.

【0008】すなわち、D=F(S、D)を判断するた
めには、ディザパターンが格納されているメモリとペー
ジメモリへのreadを行わずに、それぞれの色濃度と
論理演算で判断可能である。色濃度は数値(整数0−2
55が一般的である)で表現されるので、この数値の比
較となる。なお、判断可能なのは指定された領域内全体
を同一の色濃度で処理することが前提となる。Sが領域
内同一濃度でもDが領域内の一部分のみ同一濃度の場
合、Dが領域内同一濃度でもSが一部分のみ同一の場
合、つまり領域内に複数の濃度が存在する場合、判断は
色濃度に加えて領域情報が必要となり、色濃度のみの比
較では判断不可能となる。また、NOT演算の場合はビ
ットの反転の結果が使われるので、同じ色濃度でも異な
るディザパターンとなるので、判断はできない。
That is, in order to determine D = F (S, D), it is possible to make a determination based on the respective color densities and logical operations without reading the memory storing the dither pattern and the page memory. is there. The color density is a numerical value (integer 0-2)
55 is common), and this numerical value is compared. What can be determined is based on the premise that the entire specified area is processed with the same color density. If S is the same density in the area and D is the same density only in a part of the area, if D is the same density in the area and S is the same only in part, that is, if there are multiple densities in the area, the determination is color density In addition to this, the area information is required, and it is impossible to make a determination by comparing only the color density. In the case of the NOT operation, since the result of bit inversion is used, a different dither pattern is obtained even with the same color density.

【0009】一般的に、アプリケーションの描画では演
算にはSETまたはORが使われることが多い。次に、
図2および図3を参照してSET演算での処理について
説明する。図2は、描画処理されるページの一例および
本実施の形態のプリンタ装置の概略構成を示した図であ
る。図2に示すように、ページ全体を示すページ領域1
内には、描画命令で指定された描画命令指定領域(以
下、領域Asとする)2、描画命令で指定された色濃度
に対応するディザパターン3、描画の処理対象となるペ
ージメモリ上の一部の矩形領域である処理対象ページメ
モリ領域(以下、領域Adとする)4、すでに領域As
に描画されているディザパターンD5が存在する。ま
た、本実施の形態のプリンタ装置にはページ領域1に対
応して、指定された描画命令指定濃度Lsを格納するメ
モリ6、指定された描画命令論理演算Fを格納するメモ
リ7、領域Asを描画する際に指定された処理対象領域
結果色濃度Ldを格納するメモリ8、D=F(S、D)
を判定可能かどうかを示す判定可能フラグMを格納する
メモリ9が備えられている。
In general, SET or OR is often used for calculation in application drawing. next,
The processing in the SET operation will be described with reference to FIGS. FIG. 2 is a diagram illustrating an example of a page to be rendered and a schematic configuration of the printer device according to the present embodiment. As shown in FIG. 2, a page area 1 showing the entire page
In the drawing, a drawing command designation area (hereinafter, referred to as an area As) 2 specified by the drawing command, a dither pattern 3 corresponding to the color density specified by the drawing command, Target page memory area (hereinafter, referred to as an area Ad) 4 which is a rectangular area of a part, and an area As
There is a dither pattern D5 drawn in the. Further, in the printer device of the present embodiment, a memory 6 for storing a specified drawing command and a specified density Ls, a memory 7 for storing a specified drawing command logical operation F, and a region As corresponding to the page area 1 are provided. A memory 8 for storing the processing target area result color density Ld specified when drawing, D = F (S, D)
Is provided with a memory 9 for storing a determination possible flag M indicating whether or not determination is possible.

【0010】図3は、SET演算での描画処理手順を示
したフローチャートを示した図である。ページ毎に処理
が開始されると(ステップ1)、プリンタのページメモ
リは色濃度0のパターンで初期化されているので、Ld
を0に設定する。また、全領域が初期化され、領域内の
濃度は0のみであるので、M=0とし、判定可能である
ことを示す(ステップ2)。そして、1図形毎に描画命
令As、Ls、Fを入力する(ステップ3)。すでに判
定不可の命令を処理していることを示すM=1であれば
(ステップ4;Y)、判定を行わずステップ10へ移行
し、通常処理を行う。判定可能フラグMがM=1でなく
(ステップ4;N)、描画命令論理演算FがSETでな
ければ(ステップ5;N)、論理演算結果を不定と判断
して判定可能フラグMに1を代入し(ステップ9)、描
画命令処理(ステップ10)へ移行する。
FIG. 3 is a flowchart showing a drawing processing procedure in the SET operation. When the process is started for each page (step 1), since the page memory of the printer has been initialized with the pattern of color density 0, Ld
Is set to 0. Further, since the entire area is initialized and the density in the area is only 0, M = 0 is set, indicating that determination is possible (step 2). Then, drawing commands As, Ls, and F are input for each figure (step 3). If M = 1, which indicates that an instruction that cannot be determined has already been processed (step 4; Y), the process proceeds to step 10 without performing determination, and normal processing is performed. If the determinable flag M is not M = 1 (Step 4; N) and the drawing command logical operation F is not SET (Step 5; N), the logical operation result is determined to be indeterminate and 1 is set to the determinable flag M. Substitution is performed (step 9), and the process proceeds to the drawing command processing (step 10).

【0011】描画命令により指定された濃度Lsとすで
にAd内に描画されている濃度Ldが同一であれば(ス
テップ6;Y)、論理演算SET(F(S、D)=S)
がDと同一ということになる。すなわち、全領域に対し
てAs内のメモリをreadし、論理演算SETを行
い、Ad内のメモリにwriteするという動作を省略
しても結果が同じであるということになるので、描画処
理を省略してステップ3の描画命令入力の処理に戻る。
領域Asが領域Adを含むかどうかを判定し、領域As
が領域Adを含む場合(ステップ7;Y)、LdにLs
を代入して描画命令処理に移行する(ステップ9)。領
域Asが領域Adを含まない場合(ステップ7;N)、
描画処理の結果、Adが単一の濃度ではなく、以降の判
定が不可能になるので、論理演算結果を不定と判断して
判定可能フラグMに1を代入し(ステップ9)、描画命
令処理(ステップ10)へ移行する。なお、任意の領域
Asと矩形領域Adの包含関係判定は既知の方法を用い
るものとする。
If the density Ls specified by the drawing command is the same as the density Ld already drawn in Ad (step 6; Y), a logical operation SET (F (S, D) = S)
Is the same as D. That is, even if the operation of reading the memory in As for all areas, performing the logical operation SET, and writing to the memory in Ad is omitted, the result is the same, so the drawing process is omitted. Then, the process returns to the drawing command input process of step 3.
It is determined whether or not the region As includes the region Ad, and the region As is determined.
Includes the region Ad (step 7; Y), Ld is Ls
And the processing shifts to the drawing command processing (step 9). When the region As does not include the region Ad (Step 7; N),
As a result of the drawing processing, Ad is not a single density and the subsequent determination becomes impossible. Therefore, it is determined that the logical operation result is indefinite, and 1 is substituted into the determinable flag M (step 9), and the drawing command processing is performed. Move to (Step 10). It is assumed that a known method is used to determine the inclusion relationship between the arbitrary area As and the rectangular area Ad.

【0012】Ls=Ldではないと判定されたが(ステ
ップ6;N)、論理演算SETを使うとAdがLsで描
画されることがわかっているので、描画結果の濃度Ld
にLsを代入する(ステップ8)。また、Ad全体が描
画されることがわかるので(ステップ7)、AdはLd
の単一パターンとなり以降の判定も可能となる。ステッ
プ5、ステップ7で以降判定不可と判断された場合、判
定不可の命令を処理していることを示すMに1を代入す
る(ステップ9)。そして、ステップ10においてステ
ップ3で入力された描画命令を使って、通常通り描画命
令処理を行う。描画命令処理後、そのページ内のすべて
の描画命令が終了しているかどうかを調べ(ステップ1
1)、描画命令が終了していなければ(ステップ11;
N)、ステップ3に戻り、次の描画命令の処理を続け
る。描画命令が終了していれば(ステップ11;Y)、
すべての処理が終了する。なお、本実施の形態では、ス
テップ5で論理演算をSETに限っているが、図1で示
した例をステップ5とステップ6に描画命令処理の省略
判定として追加するようにしてもよい。
Although it is determined that Ls = Ld is not satisfied (step 6; N), it is known that if the logical operation SET is used, Ad is drawn with Ls, so that the density Ld of the drawing result is obtained.
Is substituted for Ls (step 8). Further, since it is understood that the entire Ad is drawn (Step 7), Ad is Ld
Becomes a single pattern, and the subsequent determination is also possible. If it is determined that the determination is impossible in Steps 5 and 7 thereafter, 1 is substituted for M indicating that the instruction of the undeterminable is being processed (Step 9). Then, in step 10, the drawing command processing is performed as usual using the drawing command input in step 3. After the drawing command processing, it is checked whether all drawing commands in the page have been completed (step 1).
1) If the drawing command has not been completed (step 11;
N), and return to step 3 to continue the processing of the next drawing command. If the drawing command has been completed (step 11; Y),
All processing ends. In the present embodiment, the logical operation is limited to SET in step 5, but the example shown in FIG. 1 may be added to steps 5 and 6 as omission determination of the drawing command processing.

【0013】次に、ページ全体の領域を格子状に分割
し、処理する図形を含む格子領域に対して行う処理につ
いて説明する。図4は、ページ全体の領域を格子状に分
割した場合を示した図である。ページ全体の領域11内
には、最左上の格子領域12、2行2列目の格子領域1
3、パターンSで描画される図形14、図形14を含む
外枠矩形15が含まれている。まず、ページ全体の領域
11をある一定の大きさの格子領域12に分割する。格
子領域12が大きいと格子領域12全体を一定濃度で描
画する確率が低くなり、格子領域12を小さくすると処
理領域数も多くなり処理時間が長くなるので、1cm×
1cm程度の適度な大きさが望ましい。格子領域12の
それぞれに、領域Asを描画する際に指定された処理対
象領域結果色濃度Ldを格納するメモリ8、判定可能フ
ラグM9を用意する(図2参照)。
Next, a description will be given of processing performed on a grid area including a figure to be processed by dividing the entire page area into a grid. FIG. 4 is a diagram showing a case where the entire page area is divided into a grid. In the region 11 of the entire page, the top left lattice region 12, the second row and the second column lattice region 1
3, a figure 14 drawn in the pattern S, and an outer frame rectangle 15 including the figure 14 are included. First, the area 11 of the entire page is divided into grid areas 12 having a certain size. If the grid area 12 is large, the probability of drawing the entire grid area 12 at a constant density is low, and if the grid area 12 is small, the number of processing areas increases and the processing time becomes longer.
An appropriate size of about 1 cm is desirable. In each of the lattice areas 12, a memory 8 for storing the processing target area result color density Ld designated when the area As is drawn, and a determinable flag M9 are prepared (see FIG. 2).

【0014】初期値は図3の処理手順で説明したよう
に、Ld=0、M=0とする。図4の図形14の描画を
一例として、図形14を一部でも含む格子領域12を検
知する。この検知方法は、まず、その図形全体を含む外
枠矩形15を含む格子領域12を検知する。図4の例で
は(列、行)=(1、1)−(3、3)の9つの格子領
域12が図形14を含むことになる。この9つの格子領
域12それぞれに対して、図3で説明したような処理手
順で描画命令処理を実行する。描画の論理演算F=SE
T、描画色濃度Ls=Ld(=0)とすると、9つの全
格子領域12でF=SET(図3のステップ5参照)、
Ls=Ld(図3のステップ6参照)となるので、描画
処理は省略される。9つの全格子領域12のM、Ldは
変わらず、M=0、Ld=0となる。図形14を含まな
いその他の格子領域12の判定フラグMは変わらずM=
0、Ld=0となる。
The initial values are set to Ld = 0 and M = 0 as described in the processing procedure of FIG. Taking the drawing of the graphic 14 in FIG. 4 as an example, the grid area 12 including at least a part of the graphic 14 is detected. In this detection method, first, a grid region 12 including an outer frame rectangle 15 including the entire figure is detected. In the example of FIG. 4, nine grid regions 12 of (column, row) = (1, 1)-(3, 3) include the graphic 14. The rendering command processing is executed for each of the nine grid regions 12 according to the processing procedure described with reference to FIG. Drawing logical operation F = SE
Assuming that T and drawing color density Ls = Ld (= 0), F = SET in all nine grid regions 12 (see step 5 in FIG. 3),
Since Ls = Ld (see step 6 in FIG. 3), the drawing process is omitted. M and Ld of all nine lattice regions 12 do not change, and M = 0 and Ld = 0. The determination flag M of the other grid area 12 not including the graphic 14 is unchanged and M =
0, Ld = 0.

【0015】また、F=SET、Ls≠Ldとすると、
その処理の結果は、(2、2)の格子領域12のみ判定
可能フラグM9は変わらずM=0(引き続き判定可能)
となり、それ以外の8つの格子領域12は領域の一部の
みの描画なのでM=1となる。また、(2、2)の格子
領域12にのみパターンSに対応する濃度LsがLdの
メモリに格納される。(1、1)−(3、3)の9つの
格子領域12ではLs≠Ldなので、描画処理自体は省
略されない。図形14を含まないその他の格子領域12
の判定フラグMは変わらずM=0、Ld=0となる。な
お、図4ではページ全体を格子状に分割しているが、省
メモリを目的とし、ページを複数のバンドに分割して印
刷処理を行うバンドプリンタのバンドメモリに対しても
適用することができる。
If F = SET and Ls ≠ Ld,
As a result of the processing, only the grid region 12 of (2, 2) can be determined with the flag M9 unchanged, and M = 0 (can be determined continuously)
In the other eight grid regions 12, since only a part of the region is drawn, M = 1. The density Ls corresponding to the pattern S is stored in the Ld memory only in the (2, 2) lattice area 12. In the nine (1, 1)-(3, 3) grid regions 12, since LsLLd, the drawing process itself is not omitted. Other grid area 12 not including figure 14
Is unchanged, M = 0 and Ld = 0. In FIG. 4, the entire page is divided into a lattice, but the present invention can be applied to a band memory of a band printer that divides a page into a plurality of bands and performs print processing for the purpose of saving memory. .

【0016】図5は、ページ領域全体が3バンドに分割
されている場合を示した図である。例えば、2バンド目
のバンドメモリ22が格子領域に分割されている。格子
を敷き詰める際の起点はバンドメモリ22の起点(図5
の22の矢印の位置)となる。3バンド目も同様に、起
点は23の位置となる。このように格子の位置関係が全
バンドで共通であれば、各バンド21〜23をページメ
モリ全体と置き換えて、描画命令処理を実行することが
できる。なお、本実施の形態では1ページに適用してい
るが、カラープリンタのCMYK(シアン・マゼンダ・
イエロー・ブラック)ではそれぞれ独立した描画処理を
行うので、れぞれのページについて適用することもでき
る。
FIG. 5 is a diagram showing a case where the entire page area is divided into three bands. For example, the band memory 22 of the second band is divided into lattice regions. The starting point for laying the grid is the starting point of the band memory 22 (FIG. 5).
(Position of arrow 22). Similarly, the starting point of the third band is located at position 23. If the positional relationship of the grid is common to all the bands as described above, each band 21 to 23 can be replaced with the entire page memory, and the drawing command processing can be executed. Although the present embodiment is applied to one page, the CMYK (cyan, magenta,
(Yellow / black), the drawing process is performed independently for each page, so that it can be applied to each page.

【0017】また、バンドプリンタのように、ページ全
体が適度に分割(通常十数から数十)されていると、バ
ンド単位で初期値のビットマップパターンとの比較が可
能となるので、ページ全体を一度に処理するよりは高速
になる。例えば、図3と図4の例を比較すると、図2の
処理対象ページメモリ領域Adの処理以降となるパター
ンDは、重なり判定を行っていないため、どの場所に初
期値all0とは異なる図形(この場合、領域Adの位
置)があるかわからず、処理前と処理後のページメモリ
に変化があるかないかが判定できないため、領域Adが
たとえ省略可能な図形であったとしても描画処理する必
要があるが、図4の図形14と図形15は独立した処理
となり、バンド9は初期状態とわかっているので、図形
15の描画処理は省略することができる。このように、
バンドに分割されていると重なり判定と同じ効果が得ら
れる。また、本実施の形態では、必要なメモリが格子領
域毎のLd、Mのみなので省メモリでの実現が可能であ
る。
If the entire page is appropriately divided (usually ten to several tens) as in a band printer, it is possible to compare the initial value bitmap pattern in band units. Is faster than processing them all at once. For example, comparing the example of FIG. 3 with the example of FIG. 4, since the pattern D after the processing of the processing target page memory area Ad of FIG. In this case, it is impossible to determine whether there is a change in the page memories before and after the process because it is not known whether or not there is a region Ad), and it is necessary to perform the drawing process even if the region Ad is an omissible graphic. However, since the graphic 14 and the graphic 15 in FIG. 4 are independent processes and the band 9 is known to be in the initial state, the drawing process of the graphic 15 can be omitted. in this way,
When divided into bands, the same effect as in the overlap determination can be obtained. Further, in the present embodiment, since only necessary memories are Ld and M for each lattice area, it is possible to realize a memory saving.

【0018】[0018]

【発明の効果】請求項1記載の発明では、描画命令書き
込み・読み出し手段は、描画命令判断手段による判断結
果に基づいて、記憶手段に対して描画命令入力手段によ
って入力された描画命令の書き込み、または読み出しを
行うので、図形描画処理の大半を占めるメモリのrea
dとwriteの回数を減らし、描画命令の高速処理化
を図ることができる。請求項2記載の発明では、記憶手
段が1ページ分の描画命令を記憶するページメモリであ
る場合、ページメモリを格子単位に分割する分割手段を
さらに備え、分割手段によって分割された記憶手段の格
子単位について、描画命令書き込み・読み出し手段は、
描画命令判断手段によって描画命令の描画特性が所定条
件と一致すると判断された場合、記憶手段に描画命令の
描画属性の書き込みを行わないので、ある一定条件で図
形のメモリへの描画を省略することにより、図形描画処
理の大半を占めるメモリのreadとwriteの回数
を減らし描画命令の高速処理を図ることができる。
According to the first aspect of the present invention, the drawing command writing / reading means writes the drawing command input to the storage means by the drawing command input means on the basis of the determination result by the drawing command determination means. Or, because reading is performed, the memory area that occupies most of the figure drawing process
The number of times of d and write can be reduced, and high-speed processing of a drawing command can be achieved. According to the second aspect of the present invention, when the storage unit is a page memory that stores a drawing command for one page, the storage unit further includes a division unit that divides the page memory into lattice units. For the unit, the drawing command writing / reading means
If the drawing command determining unit determines that the drawing characteristic of the drawing command matches the predetermined condition, the drawing attribute of the drawing command is not written in the storage unit. Accordingly, it is possible to reduce the number of times of reading and writing of the memory, which occupies most of the graphic drawing processing, and achieve high-speed processing of the drawing command.

【0019】請求項3記載の発明では、ページメモリが
バンドメモリであっても、分割手段によって分割された
記憶手段の格子単位について、描画命令書き込み・読み
出し手段は、描画命令判断手段によって描画命令の描画
特性が所定条件と一致すると判断された場合、記憶手段
に描画命令の描画属性の書き込みを行わないので、ある
一定条件で図形のメモリへの描画を省略することによ
り、図形描画処理の大半を占めるメモリのreadとw
riteの回数を減らし描画命令の高速処理を図ること
ができる。請求項4記載の発明では、記憶手段のページ
メモリがCMYK(シアン・マゼンダ・イエロー・ブラ
ック)のカラー各色に対応したメモリであっても、分割
手段によって分割された記憶手段の格子単位について、
描画命令書き込み・読み出し手段は、描画命令判断手段
によって描画命令の描画特性が所定条件と一致すると判
断された場合、記憶手段に描画命令の描画属性の書き込
みを行わないので、ある一定条件で図形のメモリへの描
画を省略することにより、図形描画処理の大半を占める
メモリのreadとwriteの回数を減らし描画命令
の高速処理を図ることができる。
According to the third aspect of the present invention, even if the page memory is a band memory, the drawing command writing / reading means determines whether or not the drawing command is determined by the drawing command determination means for the grid unit of the storage means divided by the dividing means. If it is determined that the drawing characteristics match the predetermined condition, the drawing attribute of the drawing command is not written in the storage means. Occupied memory read and w
The number of write operations can be reduced, and high-speed processing of a drawing command can be achieved. According to the fourth aspect of the present invention, even if the page memory of the storage unit is a memory corresponding to each color of CMYK (cyan, magenta, yellow, black), the grid unit of the storage unit divided by the division unit is
The drawing command writing / reading means does not write the drawing attribute of the drawing command to the storage means when the drawing command determining means determines that the drawing characteristic of the drawing command matches the predetermined condition. By omitting drawing in the memory, the number of times of reading and writing of the memory, which occupies most of the figure drawing processing, can be reduced, and high-speed processing of drawing commands can be achieved.

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

【図1】D=F(S、D)になる関係の一例を示した図
である。
FIG. 1 is a diagram illustrating an example of a relationship where D = F (S, D).

【図2】描画処理されるページの一例および本実施の形
態のプリンタ装置の概略構成を示した図である。
FIG. 2 is a diagram illustrating an example of a page to be subjected to a drawing process and a schematic configuration of a printer device according to the present embodiment.

【図3】SET演算での描画処理手順を示したフローチ
ャートを示した図である。
FIG. 3 is a flowchart illustrating a drawing processing procedure in a SET operation.

【図4】ページ全体の領域を格子状に分割した場合を示
した図である。
FIG. 4 is a diagram showing a case where an entire page area is divided into a grid.

【図5】ページ領域全体が3バンドに分割されている場
合を示した図である。
FIG. 5 is a diagram showing a case where the entire page area is divided into three bands.

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

1 ページ領域 2 描画命令指定領域As 4 処理対象ページメモリ領域Ad 1 page area 2 drawing command designation area As 4 processing target page memory area Ad

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 図形データの描画特性を含む描画命令を
入力する描画命令入力手段と、 前記描画命令入力手段によって入力された描画命令を記
憶する記憶手段と、 前記記憶手段に前記描画命令入力手段によって入力され
た描画命令の描画属性を書き込む、または、すでに記憶
されている描画命令を前記記憶手段から読み出す描画命
令書き込み・読み出し手段と、 前記描画命令入力手段によって入力された描画命令が前
記記憶手段に記憶されている描画命令の描画特性の所定
条件と一致するか否かを判断する描画命令判断手段と、 前記描画命令書き込み・読み出し手段による前記記憶手
段に記憶されている描画命令の描画特性に基づいて、前
記図形データの描画を行う描画手段と、を備え、 前記描画命令書き込み・読み出し手段は、前記描画命令
判断手段による判断結果に基づいて、前記記憶手段に対
して前記描画命令入力手段によって入力された描画命令
の書き込み、または読み出しを行うことを特徴とするプ
リンタ装置。
1. A drawing command input unit for inputting a drawing command including drawing characteristics of graphic data, a storage unit for storing a drawing command input by the drawing command input unit, and the drawing command input unit in the storage unit A drawing command writing / reading means for writing a drawing attribute of a drawing command input by the drawing command or a drawing command already stored from the storage means; and a drawing command input by the drawing command input means for storing the drawing command. A drawing command determining unit that determines whether or not a predetermined condition of a drawing characteristic of the drawing command stored in the storage unit is matched; and a drawing characteristic of the drawing command stored in the storage unit by the drawing command writing / reading unit. And a drawing means for drawing the graphic data based on the drawing command. Based on the determination result by decree determining means, a printer apparatus which is characterized in that the writing of drawing command drawing command input by the input means or reading, with respect to the storage means.
【請求項2】 前記記憶手段が1ページ分の描画命令を
記憶するページメモリである場合、前記ページメモリを
格子単位に分割する分割手段をさらに備え、 前記分割手段によって分割された記憶手段の格子単位に
ついて、前記描画命令書き込み・読み出し手段は、前記
描画命令判断手段によって前記描画命令の描画特性が所
定条件と一致すると判断された場合、前記記憶手段に前
記描画命令の描画属性の書き込みを行わないことを特徴
とする請求項1記載のプリンタ装置。
2. When the storage unit is a page memory that stores a drawing command for one page, the storage unit further includes a division unit that divides the page memory into lattice units. For the unit, the drawing command writing / reading unit does not write the drawing attribute of the drawing command in the storage unit when the drawing command determination unit determines that the drawing characteristic of the drawing command matches a predetermined condition. The printer device according to claim 1, wherein:
【請求項3】 前記ページメモリがバンドメモリである
ことを特徴とする請求項2記載のプリンタ装置。
3. The printer according to claim 2, wherein said page memory is a band memory.
【請求項4】 前記記憶手段のページメモリがCMYK
(シアン・マゼンダ・イエロー・ブラック)のカラー各
色に対応したメモリであることを特徴とする請求項2記
載のプリンタ装置。
4. The page memory of said storage means is CMYK
3. The printer according to claim 2, wherein the memory is a memory corresponding to each of the colors (cyan, magenta, yellow, and black).
JP2001052261A 2001-02-27 2001-02-27 Printer Withdrawn JP2002248816A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2001052261A JP2002248816A (en) 2001-02-27 2001-02-27 Printer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2001052261A JP2002248816A (en) 2001-02-27 2001-02-27 Printer

Publications (2)

Publication Number Publication Date
JP2002248816A true JP2002248816A (en) 2002-09-03
JP2002248816A5 JP2002248816A5 (en) 2005-08-11

Family

ID=18912919

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2001052261A Withdrawn JP2002248816A (en) 2001-02-27 2001-02-27 Printer

Country Status (1)

Country Link
JP (1) JP2002248816A (en)

Similar Documents

Publication Publication Date Title
JP3294883B2 (en) Color separation method in ink jet color graphic printing
US5003496A (en) Page memory control in a raster image processor
JP3319834B2 (en) Color separation method in color figure printing
JPH03214271A (en) Pixel image emphasizing method
US5808600A (en) Character pattern forming method and apparatus
EP0446339A1 (en) Page memory control in a raster image processor employed for digital halftoning
JPH06162210A (en) Image processor
JP2002248816A (en) Printer
US6108101A (en) Technique for printing with different printer heads
EP0253352B1 (en) Graphic data processing system
JP2006272557A (en) Image processor and image processing program
US4835529A (en) Output display apparatus
JP4539801B2 (en) Image processing apparatus and image forming apparatus
JP4636145B2 (en) Image processing apparatus and program
JP2004334533A (en) Image processing device and method
JPH08183208A (en) Method and apparatus for recording bit map
JP2626769B2 (en) Output control device and method
JP3636891B2 (en) Color image output method
JP2699386B2 (en) Image recording device
JPH0449067A (en) Printing apparatus
JP3591096B2 (en) How to control a page printer
JPH0511737A (en) Outline font generating method
JP3967175B2 (en) Image processing system
JPH08241308A (en) Method and device for image processing
JPS61223937A (en) Processing system for line graph

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20041221

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20050124

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20050124

RD02 Notification of acceptance of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7422

Effective date: 20050124

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20050316

A761 Written withdrawal of application

Free format text: JAPANESE INTERMEDIATE CODE: A761

Effective date: 20070807