JP2005078521A - Plotting method and recording device - Google Patents

Plotting method and recording device Download PDF

Info

Publication number
JP2005078521A
JP2005078521A JP2003310428A JP2003310428A JP2005078521A JP 2005078521 A JP2005078521 A JP 2005078521A JP 2003310428 A JP2003310428 A JP 2003310428A JP 2003310428 A JP2003310428 A JP 2003310428A JP 2005078521 A JP2005078521 A JP 2005078521A
Authority
JP
Japan
Prior art keywords
logical operation
source
pcl
printer
memory
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2003310428A
Other languages
Japanese (ja)
Inventor
Kazuhiro Okada
岡田  和広
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.)
Murata Machinery Ltd
Original Assignee
Murata Machinery 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 Murata Machinery Ltd filed Critical Murata Machinery Ltd
Priority to JP2003310428A priority Critical patent/JP2005078521A/en
Publication of JP2005078521A publication Critical patent/JP2005078521A/en
Pending legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To provide a PCL printer which is adaptive to objects (sources) of all plotting objects assuming various shapes bya unified processing and the processing time is shortened. <P>SOLUTION: In the PCL printer, a rectangular area surrounding an object (source) of a designated plotting object included in PCL transmitted from an external PC 11 through a communication line 10 is handled as a new object (source), and a logical operation resulting from properly converting a designated logical operation mode so as to obtain the same result as execution of the designated logical operation mode is executed for this new object (source), and the operation result is written in a plotting memory 7, and an image expanded in the plotting memory 7, which is represented by the operation result, is printed out to a paper by a recording part 2. <P>COPYRIGHT: (C)2005,JPO&NCIPI

Description

本発明は、ページ記述言語(PDL:Page Description Language)のプリンタコントロール言語(PCL:Printer Copntrol Language)を解釈して、PCLで指示される画像をメモリに描画する描画方法、及び、そのPCLで指示される画像を記録する記録装置(PCLプリンタ)に関し、特に、PCLプリンタでの画像展開における論理演算の実行手法にする。   The present invention interprets a printer control language (PCL) of a page description language (PDL) and draws an image specified by the PCL in a memory, and an instruction by the PCL In particular, the present invention relates to a recording apparatus (PCL printer) for recording an image to be executed, and in particular, a method for executing a logical operation in image development on the PCL printer.

本来のコピー機能,ファクシミリ機能に加えて、通信網を介してパーソナルコンピュータ(PC:Personal Computer)と接続されており、PCから送られるデータを他のファクシミリ装置へ送信する送信機能、及び、そのデータをプリントアウトするプリンタ機能を備えた機能複合型のファクシミリ装置(ファクシミリ複合装置)が開発されている。また、インタフェース装置を介してPCとネットワークプリンタとが接続されており、PCにて作成・編集されたデータをインタフェース装置を介してネットワークプリンタへ送出してプリントアウトするネットワークプリンティングシステムが知られている。このようなPCからのデータをプリントアウトする装置では、PCから送られるプリンタ言語(PJL(Printer Job Language:プリンタジョブ言語)、PDLなど)を解釈して、その解釈結果に基づいて画像を記録する(例えば、特許文献1,2参照)。   In addition to the original copy function and facsimile function, a transmission function connected to a personal computer (PC) via a communication network and transmitting data sent from the PC to other facsimile machines, and the data A function composite type facsimile apparatus (facsimile composite apparatus) having a printer function for printing out images has been developed. There is also known a network printing system in which a PC and a network printer are connected via an interface device, and data created and edited by the PC is sent to the network printer via the interface device and printed out. . In such an apparatus for printing out data from a PC, a printer language (PJL (Printer Job Language), PDL, etc.) sent from the PC is interpreted, and an image is recorded based on the interpretation result. (For example, refer to Patent Documents 1 and 2).

文書作成ソフトウエアや表計算ソフトウエアなどのPC上のアプリケーションからプリントが指示された場合、選択されているプリンタドライバは、プリントデータをプリンタが解釈可能なデータに変換する。PCLプリンタのプリンタドライバが生成するデータは、PJLの部分とPCLの部分とで構成されている。図9にこれらのデータを示す。図9の上段の文字サイズが大きい部分がPJLであり、文字サイズが小さい部分がPCL−XLである。PJLは元来テキストデータ列で表されており、PCLは通常バイナリデータ列で表されている。但し、図9の下段では、PJLも含めてバイナリデータ列で表示している。   When printing is instructed from an application on a PC such as document creation software or spreadsheet software, the selected printer driver converts the print data into data interpretable by the printer. Data generated by the printer driver of the PCL printer is composed of a PJL portion and a PCL portion. FIG. 9 shows these data. In FIG. 9, the part with the large character size is PJL, and the part with the small character size is PCL-XL. PJL is originally represented by a text data string, and PCL is usually represented by a binary data string. However, in the lower part of FIG. 9, binary data strings including PJL are displayed.

PJLには主にプリンタに対するジョブ制御命令(例えば両面プリント指示命令など)が含まれており、PCL−XLには主にページに描画される内容が記述されている。XLではセッションと呼ばれる単位の中に、複数のページが含まれている。図10は、PCL−XLコマンドの構成例を示す図である。各ページの中には、サイズ,向きを指示するページ設定コマンド、原点及び座標系を指示する座標設定コマンド、線や塗りつぶしのパターン,後述する論理演算モードを指示する描画モード設定コマンド、描画したいオブジェクトを指示する描画コマンドが含まれている。PCLプリンタは、このようなPJL及びPCLのコマンドを解釈し、描画メモリにページを展開してプリント処理を実行する。   PJL mainly includes a job control command (for example, a double-sided print instruction command) for the printer, and PCL-XL describes contents to be mainly drawn on a page. In XL, a plurality of pages are included in a unit called a session. FIG. 10 is a diagram illustrating a configuration example of the PCL-XL command. Each page includes a page setting command for designating size and orientation, a coordinate setting command for designating the origin and coordinate system, a line and fill pattern, a drawing mode setting command for designating a logical operation mode to be described later, and an object to be drawn A drawing command for instructing is included. The PCL printer interprets such PJL and PCL commands, expands the page in the drawing memory, and executes print processing.

PCLには、描画対象のオブジェクト(以下、Sourceとも言う)と、オブジェクトの塗りつぶしパターン(以下、Paint とも言う)と、論理演算モードとが、所定の文法則に従って記述されており、あるオブジェクトの記録(描画)がPCLコマンドにてPCから指示される場合、これらの3種の情報が指定される。PCLプリンタは、指定されたSource、Paint 及び既に描画されているオブジェクト(以下、Destination とも言う)を被演算子、指定された論理演算モードを演算子として論理演算を実行し、その演算結果を描画メモリに書き込む。この描画手法の一例を図11に示す。   In the PCL, an object to be drawn (hereinafter also referred to as “Source”), an object fill pattern (hereinafter also referred to as “Paint”), and a logical operation mode are described according to a predetermined grammar rule. When (drawing) is instructed from the PC by the PCL command, these three types of information are designated. The PCL printer executes the logical operation using the specified Source and Paint and the already drawn object (hereinafter also called Destination) as the operand and the specified logical operation mode as the operator, and draws the operation result. Write to memory. An example of this drawing technique is shown in FIG.

図12は、論理演算モードを説明するための図である。論理演算モードは、ROPコードとPaint TxモードとSource Tx モードとの3種類で指定される。ROPコードは、256種類の論理演算コードであり、Paint をP、SourceをS、Destination をDと夫々略記した逆ポーランド記法で示される。例えば、SDPxoは、Paint 及びDestination の排他的論理和の計算結果とSourceとで論理和をとるという論理演算を示している(図12(a)参照)。また、Paint Txモード及びSource Tx モードは、OpaqueとTransparencyとの2つの値をとる。Opaqueは白部分が不透明である(透過ではない)ことを示し(図12(b)参照)、Transparencyは白部分が透明である(透過である)ことを示す(図12(c)参照)。例えば、Paint TxモードでOpaqueが指定された場合には、Paint の白部分が不透明であることを示している。   FIG. 12 is a diagram for explaining the logical operation mode. The logical operation mode is specified by three types of ROP code, Paint Tx mode, and Source Tx mode. ROP codes are 256 kinds of logical operation codes, and are represented in reverse Polish notation, in which Paint is abbreviated as P, Source is as S, and Destination is as D. For example, SDPxo indicates a logical operation in which a logical sum is calculated from the calculation result of the exclusive OR of Paint and Destination and Source (see FIG. 12A). The Paint Tx mode and the Source Tx mode take two values, Opaque and Transparency. Opaque indicates that the white portion is opaque (not transmissive) (see FIG. 12B), and Transparency indicates that the white portion is transparent (transmissive) (see FIG. 12C). For example, when Opaque is specified in Paint Tx mode, the white part of Paint is opaque.

ROPコード,Paint Txモード及びSource Tx モードの3種類で指定される論理演算モードは、最終的に256種類の論理演算の一つに帰着する。例えば、ROP=SDPxo,Paint Txモード=Opaque,Source Tx モード=Transparencyは、DPSnax の論理演算を実行することと等価となる。そして、PCLプリンタは、PCから送られてくるROPコード,Paint Txモード及びSource Tx モードに基づき、これらの指示内容を統合して1つの論理演算の式を作成し、この作成した論理演算の式に従った演算結果を描画メモリに書き込む。
特開平10−329371号公報 特開2002−268847号公報
The logical operation mode specified by the three types of ROP code, Paint Tx mode, and Source Tx mode ultimately results in one of 256 types of logical operations. For example, ROP = SDPxo, Paint Tx mode = Opaque, Source Tx mode = Transparency is equivalent to executing a logical operation of DPSnax. Based on the ROP code, Paint Tx mode, and Source Tx mode sent from the PC, the PCL printer integrates these instructions to create one logical operation expression, and the logical operation expression thus created. The calculation result according to is written in the drawing memory.
JP-A-10-329371 JP 2002-268847 A

PCLプリンタ側では、PCLで指定される描画対象のオブジェクト(Source)の外周領域を管理し、その内部領域に対して指定された論理演算を実行することになるが、この場合、各画素がその内部領域に存在するか否かを判定し、存在すると判定された画素に対してのみ論理演算を行う必要がある。描画対象のオブジェクト(Source)は種々の複雑な形状を呈している場合が多く、このような場合には上述の処理が複雑になるという問題がある。   On the PCL printer side, the outer peripheral area of the drawing target object (Source) specified by the PCL is managed, and the specified logical operation is executed on the inner area. It is necessary to determine whether or not the pixel exists in the internal region and perform a logical operation only on the pixel determined to be present. The drawing target object (Source) often has various complicated shapes. In such a case, there is a problem that the above-described processing becomes complicated.

本発明は斯かる事情に鑑みてなされたものであり、種々の形状を呈する全ての描画対象のオブジェクト(Source)に対して統一した処理で対応することができ、簡単な処理で済ますことができる描画方法及び記録装置を提供することを目的とする。   The present invention has been made in view of such circumstances, and can deal with all drawing target objects (Sources) having various shapes by a unified process, and can be a simple process. An object is to provide a drawing method and a recording apparatus.

請求項1に係る描画方法は、描画対象のオブジェクトの形状情報と該オブジェクトの描画に関する論理演算情報とを含むプリンタコントロール言語を解析して、該プリンタコントロール言語で指示される画像をメモリに描画する方法において、前記描画対象のオブジェクトを取り囲む矩形領域を設定し、設定した矩形領域に対して、前記論理演算情報に基づく論理演算を実行することを特徴とする。   A drawing method according to claim 1 analyzes a printer control language including shape information of an object to be drawn and logical operation information related to drawing of the object, and draws an image designated by the printer control language in a memory. In the method, a rectangular region surrounding the drawing target object is set, and a logical operation based on the logical operation information is executed on the set rectangular region.

請求項1にあっては、プリンタコントロール言語(PCL)に含まれる指定された描画対象のオブジェクト(Source)を取り囲む矩形領域を新たなオブジェクト(Source)として扱い、この新たなオブジェクト(Source)に対して、指定された論理演算モードを実行した場合と同じ結果が得られるように指定された論理演算モードを適切に変換してなる論理演算を実行し、その演算結果をメモリに描画する。よって、指定されるオブジェクトが如何なる形状を呈していても、全て統一的に簡単な処理で取り扱えるため、その処理時間も短くて済む。   According to the first aspect of the present invention, a rectangular area surrounding the designated drawing target object (Source) included in the printer control language (PCL) is treated as a new object (Source), and the new object (Source) is handled. Thus, a logical operation obtained by appropriately converting the designated logical operation mode so as to obtain the same result as when the designated logical operation mode is executed is executed, and the operation result is drawn in the memory. Therefore, even if the designated object has any shape, it can be handled in a unified and simple process, and the processing time can be shortened.

請求項2に係る描画方法は、請求項1において、前記論理演算情報と論理演算の式とを対照させたテーブルを準備しておき、前記矩形領域に対して実行する前記論理演算の式を前記テーブルから設定することを特徴とする。   According to a second aspect of the present invention, there is provided a drawing method according to the first aspect, wherein a table that compares the logical operation information with a logical operation expression is prepared, and the logical operation expression to be executed on the rectangular area is defined as the logical operation expression. It is set from a table.

請求項2にあっては、矩形領域に対して施す論理演算の式を、指定された論理演算モードに基づいて、テーブルから設定する。よって、適切な論理演算の式を簡単に設定する。   According to a second aspect of the present invention, an expression for a logical operation performed on the rectangular area is set from the table based on the designated logical operation mode. Therefore, an appropriate logical operation expression is easily set.

請求項3に係る記録装置は、記録対象のオブジェクトの形状情報と該オブジェクトの記録に関する論理演算情報とを含むプリンタコントロール言語を解析して、該プリンタコントロール言語で指示される画像を記録する記録装置において、前記記録対象のオブジェクトを取り囲む矩形領域を設定する手段と、設定した矩形領域に対して前記論理演算情報に基づく論理演算を実行する演算手段と、該演算手段による演算結果をメモリに書き込む手段と、前記メモリの書込み内容に応じた画像を記録する手段とを備えることを特徴とする。   A recording apparatus according to claim 3, which analyzes a printer control language including shape information of an object to be recorded and logical operation information regarding recording of the object, and records an image instructed in the printer control language Means for setting a rectangular area surrounding the object to be recorded, arithmetic means for executing a logical operation on the set rectangular area based on the logical operation information, and means for writing a calculation result by the calculation means into a memory And means for recording an image according to the written contents of the memory.

請求項3にあっては、請求項1のようにしてメモリに描画された演算結果に従って、指定された画像を記録する。よって、複雑な処理が不要となり、記録時間の短縮化を図れる。   According to the third aspect, the designated image is recorded in accordance with the calculation result drawn in the memory as in the first aspect. Therefore, complicated processing is unnecessary, and the recording time can be shortened.

本発明では、Sourceで指定される図形を取り囲む矩形を新たなSourceとして扱い、この新たなSourceに応じて、指定された論理演算モードを変更するようにしたので、元のSourceがどのような形状であっても、全て統一的に処理を行うことが可能となり、処理を簡略化することができて、描画に要する時間を短く済ますことができ、記録処理の短縮化も実現することができる。   In the present invention, the rectangle surrounding the figure specified by Source is treated as a new Source, and the specified logical operation mode is changed according to the new Source. Even so, it is possible to perform the processing in a unified manner, simplify the processing, reduce the time required for drawing, and shorten the recording processing.

また、本発明では、矩形領域に対して実行する論理演算の式を、指定された論理演算モードに基づいて、テーブルから設定するようにしたので、適切な論理演算の式を簡単に設定することができ、処理時間の更なる短縮を図ることができる。   Further, in the present invention, since the formula of the logical operation to be performed on the rectangular area is set from the table based on the designated logical operation mode, it is possible to easily set an appropriate logical operation formula. And the processing time can be further shortened.

以下、本発明をその実施の形態を示す図面を参照して具体的に説明する。図1は、本発明の記録装置としてのPCLプリンタ20の構成を示すブロック図である。   Hereinafter, the present invention will be described in detail with reference to the drawings showing embodiments thereof. FIG. 1 is a block diagram showing the configuration of a PCL printer 20 as a recording apparatus of the present invention.

PCLプリンタ20は、制御部1,記録部2,表示部3,操作部4,ROM5,RAM6,描画メモリ7,PCインタフェース部8などを備えている。制御部1は、具体的にはCPUで構成されており、バス9を介してPCLプリンタ20の上述したようなハードウェア各部と接続されていて、それらを制御すると共に、ROM5に格納された制御プログラムに従って、種々のソフトウェア的機能を実行する。   The PCL printer 20 includes a control unit 1, a recording unit 2, a display unit 3, an operation unit 4, a ROM 5, a RAM 6, a drawing memory 7, a PC interface unit 8, and the like. Specifically, the control unit 1 is constituted by a CPU, and is connected to the above-described hardware units of the PCL printer 20 via the bus 9 to control them and control stored in the ROM 5. Various software functions are executed according to the program.

記録部2は、例えば電子写真方式のプリンタ装置であって、描画メモリ7に展開されている画像を用紙にプリントアウトする。表示部3は、液晶表示装置またはCRTディスプレイ等の表示装置であり、PCLプリンタ20の動作状態、ユーザへ操作入力を促すメッセージなどを表示する。操作部4は、PCLプリンタ20を操作するために必要な各種のファンクションキーを備えている。なお、表示部3をタッチパネル方式とすることにより、操作部4の各種のキーの内の一部または全部を代用することも可能である。   The recording unit 2 is, for example, an electrophotographic printer device, and prints out an image developed in the drawing memory 7 on a sheet. The display unit 3 is a display device such as a liquid crystal display device or a CRT display, and displays an operating state of the PCL printer 20, a message for prompting a user to input an operation, and the like. The operation unit 4 includes various function keys necessary for operating the PCL printer 20. In addition, it is also possible to substitute a part or all of the various keys of the operation unit 4 by using the display unit 3 as a touch panel system.

ROM5は、PCLプリンタ20の動作に必要な種々のソフトウェアのプログラムを予め格納している。また、ROM5は、後述する論理演算の変換処理において使用するROPコードを対照させた変換テーブル5aを有している。RAM6は、SRAMまたはフラッシュメモリ等で構成され、ソフトウェアの実行時に発生する一時的なデータを記憶する。描画メモリ7は、外部のPC11から送られてきたプリンタ言語を解釈して最終的に得られる演算結果を描画する。PCインタフェース部8は、LAN等からなる通信線10を介して外部のPC11に接続されており、PC11との間でデータのやりとりを行う。   The ROM 5 stores various software programs necessary for the operation of the PCL printer 20 in advance. The ROM 5 also has a conversion table 5a for comparing ROP codes used in the logical operation conversion process described later. The RAM 6 is composed of SRAM, flash memory, or the like, and stores temporary data generated when software is executed. The drawing memory 7 draws a calculation result finally obtained by interpreting the printer language sent from the external PC 11. The PC interface unit 8 is connected to an external PC 11 via a communication line 10 such as a LAN, and exchanges data with the PC 11.

このような構成のPCLプリンタ20にあっては、通信線10を介して外部のPC11からプリンタ言語(PJL,PCLなど)を入力した場合、そのプリンタ言語を解析し、指定されたSource、Paint 及びDestination に対して所望の論理演算を実行し、その演算結果を描画メモリ7に書き込み、描画メモリ7に書き込まれた演算結果(描画パターン)を読み出してそれに応じた画像を記録部2にて記録するようになっている。   In the PCL printer 20 having such a configuration, when a printer language (PJL, PCL, etc.) is input from the external PC 11 via the communication line 10, the printer language is analyzed, and the designated Source, Paint, and A desired logical operation is executed on Destination, the calculation result is written in the drawing memory 7, the calculation result (drawing pattern) written in the drawing memory 7 is read, and an image corresponding to the calculation result is recorded in the recording unit 2. It is like that.

次に、本発明のPCLプリンタ20の動作について説明する。図2は、動作の一例を説明するための図であり、図2(a)はPC11から指定されたPCLコマンドを表し、図2(b)は実際の描画処理を表している。   Next, the operation of the PCL printer 20 of the present invention will be described. 2A and 2B are diagrams for explaining an example of the operation. FIG. 2A shows a PCL command designated by the PC 11, and FIG. 2B shows an actual drawing process.

図2(a)に示すように、PCLコマンドにおいて、Paint としてある濃度を持ったグレイパターンが指定され、Sourceとして文字mを変形させた形状をなすオブジェクトが指定され、Destination として予め描画された斜線パターンのオブジェクトが指定されている。また、論理演算モードは、Paint Txモード及びSource Tx モードがいずれもOpaqueに指定され、ROPコードがPに指定されている。   As shown in FIG. 2A, in the PCL command, a gray pattern having a certain density is specified as Paint, an object having a shape obtained by deforming the letter m is specified as Source, and a diagonal line drawn in advance as Destination A pattern object is specified. In the logical operation mode, both the Paint Tx mode and the Source Tx mode are designated as Opaque, and the ROP code is designated as P.

このようなPCLコマンドに対して、図2(b)に示すように、指定された元のSource(オブジェクト)を取り囲む最小の矩形Aを新たなSourceとする。この新たなSourceである矩形Aに対して、PCLコマンドで指定された論理演算を単純に適用した場合には、所望の演算結果、つまり図2(a)に示すような演算結果は得られない。そこで、以下のように論理演算モードを補正する。まず、Paint とSourceとの論理和を取る必要があるため、ROPコードをPSo に補正する。また、新たなSource(矩形A)の白部分は透過にする必要があるため、Source Tx モードをTransparencyに補正する。更に、PC11で指定される論理演算では、輝度の有無を基準として白が1、黒が0であるRGB空間が前提となっているが、一方、描画メモリ7では、トナー付着の有無を基準として白が0、黒が1であるCMY空間として取り扱われるため、この違いに応じた論理演算モードの補正が必要となる。   In response to such a PCL command, as shown in FIG. 2B, a minimum rectangle A surrounding the designated original source (object) is set as a new source. When the logical operation specified by the PCL command is simply applied to the new source rectangle A, the desired operation result, that is, the operation result as shown in FIG. 2A cannot be obtained. . Therefore, the logical operation mode is corrected as follows. First, since it is necessary to take the logical sum of Paint and Source, the ROP code is corrected to PSo. Further, since the white portion of the new source (rectangle A) needs to be transparent, the source Tx mode is corrected to transparency. Further, the logical operation specified by the PC 11 is based on an RGB space in which white is 1 and black is 0 on the basis of the presence / absence of luminance. Since it is treated as a CMY space in which white is 0 and black is 1, correction of the logical operation mode corresponding to this difference is required.

以上のような論理演算の変換過程をまとめると、図3に示す(C1)〜(C3)のようになる。
(C1):ROPコードのPaint (P)をPaint とSource(S)との論理和(PSo )に置換する。
(C2):RGB空間におけるROPコードをCMY空間におけるROPコードに変換する。
(C3):Source Tx モードがTransparencyであるときのROPコードに変換する。
The conversion process of the logical operation as described above is summarized as (C1) to (C3) shown in FIG.
(C1): Replace ROP code Paint (P) with the logical sum (PSo) of Paint and Source (S).
(C2): ROP code in RGB space is converted to ROP code in CMY space.
(C3): Convert to ROP code when Source Tx mode is Transparency.

指定された論理演算モードに対して上記のような補正を順次行うことにより、最終的な論理演算式を求める。そして、この論理演算式に従って、新たなSource(矩形A)に対する論理演算を実行することにより、PC11から指定された所望の演算結果(図2(a)に示すような演算結果)と同じ演算結果を得ることができる(図2(b)参照)。   A final logical operation expression is obtained by sequentially performing the above correction on the designated logical operation mode. Then, by executing a logical operation on a new source (rectangle A) according to this logical operation expression, the same operation result as the desired operation result (the operation result as shown in FIG. 2A) designated by the PC 11 Can be obtained (see FIG. 2B).

図4は、本発明のPCLプリンタ20における記録処理の動作手順を示すフローチャートである。外部のPC11から通信線10及びPCインタフェース部8を介してプリンタ言語で表されたコマンドを入力した場合、制御部1はそのコマンドを解析する(ステップS1)。そして、制御部1は、コマンドの解析結果に基づいて、まず、矩形状の新たなSource領域を生成する(ステップS2)。   FIG. 4 is a flowchart showing an operation procedure of recording processing in the PCL printer 20 of the present invention. When a command expressed in the printer language is input from the external PC 11 via the communication line 10 and the PC interface unit 8, the control unit 1 analyzes the command (step S1). Based on the command analysis result, the control unit 1 first generates a new rectangular source region (step S2).

図5は、このSource領域生成の動作手順、即ちS2のサブルーチンを示すフローチャートである。指定されたSource(オブジェクト)の最大高さと最大幅とを求め(ステップS21)、求めた最大高さ及び最大幅で特定される長方形をRAM6に割り当てる(ステップS22)。RAM6に割り当てた長方形の領域を0で初期化する(ステップS23)。この処理は、CMY空間での白で初期化することと等価である。次に、割り当てた長方形の領域に、指定されたSource(オブジェクト)を描画する(ステップS24)。描画したSource(オブジェクト)の内部領域を1に変換する(ステップS25)。この処理は、CMY空間で黒く塗りつぶすことと等価である。   FIG. 5 is a flowchart showing an operation procedure for generating the Source area, that is, a subroutine of S2. The maximum height and maximum width of the designated source (object) are obtained (step S21), and a rectangle specified by the obtained maximum height and maximum width is assigned to the RAM 6 (step S22). The rectangular area allocated to the RAM 6 is initialized with 0 (step S23). This process is equivalent to initializing with white in the CMY space. Next, the designated source (object) is drawn in the allocated rectangular area (step S24). The internal area of the drawn source (object) is converted to 1 (step S25). This process is equivalent to painting black in the CMY space.

次いで、指定された論理演算を変換する(ステップS3)。図6は、この論理演算変換の動作手順、即ちS3のサブルーチンを示すフローチャートである。指定されたROPコードのPをPSo に置換して、新たなROPコードを求める(ステップS31)。白:1,黒:0を前提としたこの新たなROPコードを、白:0,黒:1のROPコードに変換する(ステップS32)。S32で変換したROPコードを、Source Tx モードがTransparencyであるときのROPコードに変換する(ステップS33)。これによって、最終的なROPコードが求められる。なお、S32及び/またはS33において、ROM5に格納されている変換テーブル5aを参照してこの変換処理を行うようにすれば、処理時間を短縮できる。   Next, the designated logical operation is converted (step S3). FIG. 6 is a flowchart showing the operation procedure of the logical operation conversion, that is, the subroutine of S3. A new ROP code is obtained by replacing P of the designated ROP code with PSo (step S31). This new ROP code premised on white: 1, black: 0 is converted into an ROP code of white: 0, black: 1 (step S32). The ROP code converted in S32 is converted into an ROP code when the Source Tx mode is Transparency (step S33). As a result, a final ROP code is obtained. In S32 and / or S33, if this conversion process is performed with reference to the conversion table 5a stored in the ROM 5, the processing time can be shortened.

次いで、求めたROPコードを用いて論理演算を行い、その演算結果を描画メモリ7に書き込む(ステップS4)。図7は、この論理演算実行及び演算結果書込みの動作手順、即ちS4のサブルーチンを示すフローチャートである。S33で最終的に求めたROPコードにより、1画素単位で、Source、Paint 及びDestination の論理演算を行う(ステップS41)。論理演算にて得られる演算結果を描画メモリ7に書き込む(ステップS42)。次に、制御部1は、割り当てたメモリ領域の全ての画素についての処理を完了したか否かを判断し(ステップS43)、完了していない場合には(S43:NO)、動作がS41に戻って、次の画素について同様の処理を行う。全ての画素についての処理を完了した場合には(S43:YES)、動作がS4のサブルーチンを終了する。   Next, a logical operation is performed using the obtained ROP code, and the operation result is written in the drawing memory 7 (step S4). FIG. 7 is a flowchart showing an operation procedure for executing the logical operation and writing the operation result, that is, a subroutine of S4. Based on the ROP code finally obtained in S33, logical operations of Source, Paint, and Destination are performed in units of one pixel (Step S41). An operation result obtained by the logical operation is written in the drawing memory 7 (step S42). Next, the control unit 1 determines whether or not the processing for all the pixels in the allocated memory area has been completed (step S43). If the processing has not been completed (S43: NO), the operation proceeds to S41. Returning, the same processing is performed for the next pixel. When the process for all the pixels is completed (S43: YES), the subroutine of operation S4 is terminated.

次いで、制御部1は、指定された全てのSource(オブジェクト)を描画メモリ7に描画したか否かを判断し(ステップS5)、未処理のSource(オブジェクト)が残っている場合には(S5:NO)、動作がS1に戻り、その未処理のSource(オブジェクト)に対して同様の処理を行う。一方、指定された全てのSource(オブジェクト)が描画メモリ7に描画された場合(S5:YES)、記録部2にて、描画メモリ7に展開されている画像を用紙にプリントアウトする(ステップS6)。   Next, the control unit 1 determines whether or not all the specified sources (objects) have been drawn in the drawing memory 7 (step S5), and when unprocessed sources (objects) remain (S5). : NO), the operation returns to S1, and the same processing is performed on the unprocessed Source (object). On the other hand, when all the designated sources (objects) are drawn in the drawing memory 7 (S5: YES), the recording unit 2 prints out the image developed in the drawing memory 7 on a sheet (step S6). ).

本発明における論理演算の変換処理の他の例について説明する。図8は、この他の例における論理演算の変換過程を示す図であり、(D1)〜(D3)のような手順となる。
(D1):RGB空間におけるROPコードをCMY空間におけるROPコードに変換する。
(D2):ROPコードのPaint (P)をPaint とSource(S)との論理積(PSa )に置換する。
(D3):Source Tx モードがTransparencyであるときのROPコードに変換する。
Another example of logical operation conversion processing in the present invention will be described. FIG. 8 is a diagram showing the conversion process of logic operation in this other example, and the procedure is as shown in (D1) to (D3).
(D1): ROP code in RGB space is converted to ROP code in CMY space.
(D2): Replace ROP code Paint (P) with the logical product (PSa) of Paint and Source (S).
(D3): Convert to ROP code when Source Tx mode is Transparency.

指定された論理演算モードに対して上記(D1)〜(D3)のような補正を順次行うことにより求めた最終的な論理演算式に従って、Source(矩形A)に対する論理演算を実行することにより、PC11から指定された所望の演算結果と同じ演算結果を得ることができる。   By performing a logical operation on the source (rectangle A) in accordance with the final logical operation expression obtained by sequentially performing the corrections (D1) to (D3) for the specified logical operation mode, The same calculation result as the desired calculation result designated from the PC 11 can be obtained.

なお、上述した例では、モノクロ表示の場合について説明したが、カラー表示の場合についても、本発明を同様に適用することが可能である。また、ファクシミリ複合装置においても、本発明を同様に実施できることは勿論である。   In the above-described example, the case of monochrome display has been described. However, the present invention can be similarly applied to the case of color display. Of course, the present invention can be similarly implemented in a facsimile composite apparatus.

本発明の記録装置としてのPCLプリンタの構成を示すブロック図である。1 is a block diagram illustrating a configuration of a PCL printer as a recording apparatus of the present invention. 本発明のPCLプリンタの動作の一例を説明するための図である。It is a figure for demonstrating an example of operation | movement of the PCL printer of this invention. 論理演算の変換過程の一例を示す図である。It is a figure which shows an example of the conversion process of a logical operation. 本発明のPCLプリンタにおける記録処理の動作手順を示すフローチャートである。3 is a flowchart showing an operation procedure of recording processing in the PCL printer of the present invention. Source領域生成の動作手順(S2のサブルーチン)を示すフローチャートである。It is a flowchart which shows the operation | movement procedure (subroutine of S2) of Source area | region production | generation. 論理演算変換の動作手順(S3のサブルーチン)を示すフローチャートである。It is a flowchart which shows the operation | movement procedure (subroutine of S3) of logical operation conversion. 論理演算実行及び演算結果書込みの動作手順(S4のサブルーチン)を示すフローチャートである。It is a flowchart which shows the operation | movement procedure (subroutine of S4) of logical operation execution and operation result writing. 論理演算の変換過程の他の例を示す図である。It is a figure which shows the other example of the conversion process of a logical operation. プリントデータを示す図である。It is a figure which shows print data. PCL−XLコマンドの構成例を示す図である。It is a figure which shows the structural example of a PCL-XL command. 描画メモリへの描画手法の一例を示す図である。It is a figure which shows an example of the drawing technique to a drawing memory. 論理演算モードを説明するための図である。It is a figure for demonstrating logic operation mode.

符号の説明Explanation of symbols

1 制御部
2 記録部
5 ROM
5a 変換テーブル
6 RAM
7 描画メモリ
8 PCインタフェース部
10 通信線
11 PC
20 PCLプリンタ
1 Control unit 2 Recording unit 5 ROM
5a Conversion table 6 RAM
7 Drawing memory 8 PC interface unit 10 Communication line 11 PC
20 PCL printer

Claims (3)

描画対象のオブジェクトの形状情報と該オブジェクトの描画に関する論理演算情報とを含むプリンタコントロール言語を解析して、該プリンタコントロール言語で指示される画像をメモリに描画する方法において、前記描画対象のオブジェクトを取り囲む矩形領域を設定し、設定した矩形領域に対して、前記論理演算情報に基づく論理演算を実行することを特徴とする描画方法。   In a method for analyzing a printer control language including shape information of an object to be drawn and logical operation information regarding drawing of the object, and drawing an image instructed in the printer control language in a memory, the object to be drawn is A drawing method characterized in that a surrounding rectangular area is set, and a logical operation based on the logical operation information is executed on the set rectangular area. 前記論理演算情報と論理演算の式とを対照させたテーブルを準備しておき、前記矩形領域に対して実行する前記論理演算の式を前記テーブルから設定することを特徴とする請求項1記載の描画方法。   The table of the said logical operation information and the formula of a logical operation is prepared, The formula of the said logical operation performed with respect to the said rectangular area is set from the said table. Drawing method. 記録対象のオブジェクトの形状情報と該オブジェクトの記録に関する論理演算情報とを含むプリンタコントロール言語を解析して、該プリンタコントロール言語で指示される画像を記録する記録装置において、前記記録対象のオブジェクトを取り囲む矩形領域を設定する手段と、設定した矩形領域に対して前記論理演算情報に基づく論理演算を実行する演算手段と、該演算手段による演算結果をメモリに書き込む手段と、前記メモリの書込み内容に応じた画像を記録する手段とを備えることを特徴とする記録装置。   A printer that analyzes the printer control language including the shape information of the object to be recorded and the logical operation information related to the recording of the object, and surrounds the object to be recorded in a recording apparatus that records an image specified by the printer control language A means for setting a rectangular area, a calculation means for executing a logical operation based on the logical calculation information for the set rectangular area, a means for writing a calculation result by the calculation means into a memory, and depending on a write content of the memory And a recording unit.
JP2003310428A 2003-09-02 2003-09-02 Plotting method and recording device Pending JP2005078521A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2003310428A JP2005078521A (en) 2003-09-02 2003-09-02 Plotting method and recording device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2003310428A JP2005078521A (en) 2003-09-02 2003-09-02 Plotting method and recording device

Publications (1)

Publication Number Publication Date
JP2005078521A true JP2005078521A (en) 2005-03-24

Family

ID=34412306

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2003310428A Pending JP2005078521A (en) 2003-09-02 2003-09-02 Plotting method and recording device

Country Status (1)

Country Link
JP (1) JP2005078521A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8861003B2 (en) 2012-01-31 2014-10-14 Kyocera Document Solutions Inc. Image forming apparatus that performs rectangle drawing processing

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8861003B2 (en) 2012-01-31 2014-10-14 Kyocera Document Solutions Inc. Image forming apparatus that performs rectangle drawing processing

Similar Documents

Publication Publication Date Title
US9013718B2 (en) Print control apparatus, control method thereof, and device driver for converting commands from one format to another
JP4710763B2 (en) Image processing program, instruction device, and image processing system
JP5700014B2 (en) Printing system, printing control program, and recording medium
JP2009188816A (en) Printer driver and image forming apparatus
JP2017228838A (en) Image processing apparatus, image processing method and program
CN101090433B (en) Image forming apparatus and image forming method
JP2008077160A (en) Image processing device, image processing method, image forming apparatus, computer-executable program, and recording medium storing the program
JP2006304276A (en) Printing apparatus, printing method, program and storage medium
JP2005084898A (en) Print data processing system and program for this system
JP2007133756A (en) Image forming apparatus and program therefor
JP2005078521A (en) Plotting method and recording device
JP2019012952A (en) Information processing apparatus, information processing method, and program
KR100565054B1 (en) Method and apparatus for print file editing and color image forming system employing the same
JP2017097463A (en) Print control system, print control device, and program
JP2008046856A (en) Document processing apparatus, document processing program and document processing method
JP6250110B2 (en) Information processing apparatus, method and program thereof
JP2008219418A (en) Image forming apparatus, image processing method and image processing program
JP4398361B2 (en) OUTPUT CONTROL DEVICE, OUTPUT CONTROL METHOD, PROGRAM, AND RECORDING MEDIUM
JP2019185365A (en) Information processor, printer driver, and information processing method
JP2010232736A (en) Image processor, image forming device, and program
JP5678559B2 (en) Information processing apparatus and information processing program
JP5063207B2 (en) Color conversion processing apparatus, method, recording medium, and program
JP3826091B2 (en) Information processing apparatus, information processing method, printing apparatus, and printing method
JP2023020343A (en) Image processing apparatus, image processing method, and program
JP6252215B2 (en) Image forming system and image forming apparatus