JP2006119709A - Drawing processing system - Google Patents

Drawing processing system Download PDF

Info

Publication number
JP2006119709A
JP2006119709A JP2004304138A JP2004304138A JP2006119709A JP 2006119709 A JP2006119709 A JP 2006119709A JP 2004304138 A JP2004304138 A JP 2004304138A JP 2004304138 A JP2004304138 A JP 2004304138A JP 2006119709 A JP2006119709 A JP 2006119709A
Authority
JP
Japan
Prior art keywords
cmyk
rendering
cmy
raster operation
processing system
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
JP2004304138A
Other languages
Japanese (ja)
Inventor
Takashi Ono
隆 大野
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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP2004304138A priority Critical patent/JP2006119709A/en
Publication of JP2006119709A publication Critical patent/JP2006119709A/en
Withdrawn legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To avoid drawing corruption due to an ROP process on a memory-saving rendering system by avoiding drawing corruption due to the generation of MSK during CMYK rendering, for an area where predetermined ROP is determined and DST remains. <P>SOLUTION: A drawing system that performs rendering in CMYK using a raster operation determines the raster operation designated; converts the CMYK to CMY according to the result determined; determines if an output destination becomes translucent due to the data to be drawn and the raster operation; creates a mask pattern based on the result determined; and changes a rendering process according to the mask pattern created. <P>COPYRIGHT: (C)2006,JPO&NCIPI

Description

本発明は、描画モデルのROP(Raster OPeration)処理に対応する描画処理システムに関するものである。   The present invention relates to a drawing processing system corresponding to ROP (Raster Operation) processing of a drawing model.

図3に示すWindows(登録商標)GDIの描画モデルにおいては、Source(以降、SRC),Pattern(以降、PTN),Mask(以降、MSK),Destination(以降、DST)とROP(Raster OPeration)によりレンダリングを行っており、また、その他のOS等の描画モデルにおいても同様のROPを使ってレンダリング処理を行っている。(特許文献1)これらの描画モデルに対応する場合に、印刷装置においては、入力されたRGBのデータをCMYKへ色変換し、ハーフトーン処理後にROPを使ってレンダリング処理し、ハーフトーンのビットマップイメージをメモリに格納するので、RGBの24bitレンダリングよりも省メモリな描画システムを実現している。CMYKによるレンダリング処理において、SRC,PTN,DSTの色とROPの組み合わせによっては、CMYKのプレーン毎にレンダリング処理すると、正常に描画されない場合がある。この問題を回避するため、レンダリング前にSRC,PTN,DSTをそれぞれCMYKをCMYに変換後、CMYでプレーン毎にレンダリングし、レンダリング後にDSTをCMYからCMYKに変換し、正常な出力結果となるようにしている。
特開2002−7101号公報
In the drawing model of Windows (registered trademark) GDI shown in FIG. 3, Source (hereinafter referred to as SRC), Pattern (hereinafter referred to as PTN), Mask (hereinafter referred to as MSK), Destination (hereinafter referred to as DST) and ROP (Raster Operation). Rendering is performed, and rendering processing is also performed using a similar ROP in other drawing models such as an OS. (Patent Document 1) In the case of corresponding to these drawing models, in a printing apparatus, input RGB data is color-converted into CMYK, rendered using ROP after halftone processing, and halftone bitmap Since the image is stored in the memory, a rendering system that saves memory compared to RGB 24-bit rendering is realized. In rendering processing by CMYK, depending on the combination of SRC, PTN, and DST colors and ROP, rendering may not be performed normally when rendering processing is performed for each CMYK plane. To avoid this problem, SRC, PTN, and DST are converted from CMYK to CMY before rendering, then rendered for each plane in CMY, and after rendering, DST is converted from CMY to CMYK so that a normal output result is obtained. I have to.
Japanese Patent Laid-Open No. 2002-7101

しかしながら、CMYKレンダリングにおける上記描画不正回避処理においては、例えば、C=255,M=255,Y=255,K=0のピクセルは、K=0に置き換わりROP処理された領域だけがROP処理されなかった領域とは異なる色となり描画不正が発生する場合がある。   However, in the drawing fraud avoidance processing in CMYK rendering, for example, pixels with C = 255, M = 255, Y = 255, and K = 0 are replaced with K = 0, and only the ROP processed region is not ROP processed. There is a case where the color becomes different from the selected area and drawing fraud occurs.

図4にDSaのROPが指定された場合のCMYKレンダリングで描画不正となる一例を示す。SRCとDSTのANDの処理においては、SRCが白の場合、DSTの色がそのまま残ることになるが、CMYKレンダリングにおいては、DSTのCMYKからCMYに変換し、かつレンダリング後にCMYからCMYKに変換するため、(C,M,Y,K)=(128,128,128,0)が(C,M,Y)=(128,128,128)となり、レンダリング後は、(C,M,Y,K)=(0,0,0,128)となり、元のDSTから色が変わり、描画領域外とは異なる色となってしまう。   FIG. 4 shows an example of drawing fraud in CMYK rendering when DSa ROP is specified. In the AND processing of SRC and DST, when SRC is white, the color of DST remains as it is. However, in CMYK rendering, DST CMYK is converted to CMY, and after rendering, CMY is converted to CMYK. Therefore, (C, M, Y, K) = (128, 128, 128, 0) becomes (C, M, Y) = (128, 128, 128), and after rendering, (C, M, Y, K) = (0, 0, 0, 128), the color changes from the original DST, and the color is different from that outside the drawing area.

上記の課題を解決するために本発明の請求項1記載の描画処理システムは、
ラスターオペレーションを使ってCMYKでレンダリングを行う描画システムにおいて、指定されたラスターオペレーションを判別するラスターオペレーション判別手段と、前記ラスターオペレーション判別手段によって判別した結果に応じてCMYKからCMYに変換するCMY変換手段と、描画するデータとラスターオペレーションにより出力先が透過となるかを判定する透過判定手段と、前記透過判定手段により判定した結果に基づいて、マスクパターンを生成するマスク生成手段と、前記マスク生成手段により生成したマスクパターンに応じて、レンダリング処理を切り替える手段とを有することを特徴とする。
In order to solve the above-described problem, a drawing processing system according to claim 1 of the present invention provides:
In a rendering system that performs rendering in CMYK using a raster operation, a raster operation determination unit that determines a specified raster operation, and a CMY conversion unit that converts CMYK to CMY according to a result determined by the raster operation determination unit A transmission determination unit that determines whether the output destination is transparent by data to be rendered and a raster operation; a mask generation unit that generates a mask pattern based on a result determined by the transmission determination unit; and a mask generation unit And a means for switching a rendering process in accordance with the generated mask pattern.

また、本発明の描画処理システムは、ラスターオペレーションを使ってCMYKでレンダリングを行う描画処理システムにおいて、指定されたラスターオペレーションを判別するラスターオペレーション判別手段と、前記ラスターオペレーション判別手段によって判別した結果に応じてCMYKからCMYに変換するCMY変換手段と、描画するデータとラスターオペレーションにより出力先が透過となるかを判定する透過判定手段と、前記透過判定手段により判定した結果に基づいて、マスクパターンを生成するマスク生成手段と、前記マスク生成手段により生成したマスクパターンからクリップ領域の形状を抽出するクリップ抽出手段と、前記クリップ抽出手段により抽出してクリップによってレンダリング処理を行う手段とを有することを特徴とする。   The drawing processing system according to the present invention is a rendering processing system that performs rendering in CMYK using a raster operation. According to the raster operation determining means for determining a specified raster operation and the result determined by the raster operation determining means. CMY conversion means for converting from CMYK to CMY, transmission determination means for determining whether the output destination is transparent by data to be drawn and raster operation, and generation of a mask pattern based on the result determined by the transmission determination means A mask generating unit that extracts a shape of a clip region from the mask pattern generated by the mask generating unit, and a unit that performs extraction processing using the clip extracted by the clip extracting unit. The features.

以上のように、本発明では、CMYKレンダリングにおいて、所定のROPを判定しDSTのままになる領域についてMSKを生成することによる描画不正を回避し、省メモリなレンダリングシステムでのROP処理による描画不正を回避することが可能となる。また、さらに生成したMSKからクリップ領域に変換することにより、DSTのままになる領域については描画しないようにすることができ、パフォーマンスを向上させることが可能となる。   As described above, according to the present invention, in CMYK rendering, it is possible to avoid drawing fraud due to determination of a predetermined ROP and generation of MSK for an area that remains DST, and drawing fraud due to ROP processing in a memory-saving rendering system. Can be avoided. Further, by converting the generated MSK to the clip area, it is possible to avoid drawing the area that remains as DST, and to improve the performance.

(実施例1)
本実施例の構成を説明する前に、本実施例を適用するに好適なレーザービームプリンタ(以下「LBP」と記述)の構成について図1を参照しながら説明する。なお、本実施例を適用するプリンタは、レーザビームプリンタに限られるものではなく、他のプリント方式のプリンタでも良いことは言うまでもない。以下、図面を参照して本発明の実施例を詳細に説明する。
Example 1
Before describing the configuration of the present embodiment, the configuration of a laser beam printer (hereinafter referred to as “LBP”) suitable for application of the present embodiment will be described with reference to FIG. Needless to say, the printer to which the present embodiment is applied is not limited to the laser beam printer, but may be a printer of another printing method. Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings.

図1は、実施例のLBPの内部構造を示す断面図である。図において、100はLBP本体であり、外部に接続されているコンピュータ(図2の301)から供給される文字印字命令、各種図形描画命令、イメージ描画命令及び色指定命令等に従って対応する文字パターンや図形、イメージ等を作成し、記録媒体である記録用紙上に像を形成する。151は操作のためのスイッチ及びプリンタの状態を表示するLED表示器やLCD表示器等が配されている操作パネル、101はLBP100全体の制御及びホスト・コンピュータから供給される文字印字命令等を解析するプリンタ制御ユニットである。尚、本実施例におけるLBPはRGBの色情報をM(マゼンタ)C(シアン)Y(イエロー)K(クロ)に変換し、それらを並列で像形成・現像するため、MCYKそれぞれが像形成・現像機構を持つ。プリンタ制御ユニット101はMCYKそれぞれの印字イメージを生成し、ビデオ信号に変換してMCYKそれぞれのレーザ・ドライバに出力する。M(マゼンタ)のレーザ・ドライバ110は半導体レーザ111を駆動するための回路であり、入力されたビデオ信号に応じて半導体レーザ111から発射されるレーザ光112をオン・オフ切替する。レーザ光112は回転多面鏡113で左右方向に振られて静電ドラム114上を走査する。これにより、静電ドラム114上には文字や図形のパターンの静電潜像が形成される。この潜像は静電ドラム114周囲の現像ユニット(トナーカートリッジ)115によって現像された後、記録用紙に転写される。C(シアン)、Y(イエロー)、K(クロ)に関してもM(マゼンタ)と同様の像形成・現像機構を持ち、120、121、122、123、124、125はC(シアン)用の像形成・現像機構、130、131、132、133、134、135はY(イエロー)用の像形成・現像機構、140、141、142、143、144、145はK(クロ)用の像形成・現像機構である。個々の機能はM(マゼンタ)の像形成・現像機構と同じであるので説明は省略する。   FIG. 1 is a cross-sectional view showing the internal structure of the LBP of the embodiment. In the figure, reference numeral 100 denotes an LBP main body, which corresponds to a character pattern corresponding to a character printing command, various graphic drawing commands, image drawing commands, color designation commands, etc. supplied from an externally connected computer (301 in FIG. 2). A figure, an image, etc. are created, and an image is formed on a recording sheet as a recording medium. 151 is a switch for operation and an operation panel provided with an LED display and an LCD display for displaying the status of the printer. 101 is a control of the entire LBP 100 and analyzes a character print command supplied from the host computer. A printer control unit. The LBP in this embodiment converts RGB color information into M (magenta) C (cyan) Y (yellow) K (black), and forms and develops them in parallel. Has a development mechanism. The printer control unit 101 generates a print image for each MCYK, converts it into a video signal, and outputs it to each MCYK laser driver. The M (magenta) laser driver 110 is a circuit for driving the semiconductor laser 111, and switches on and off the laser beam 112 emitted from the semiconductor laser 111 in accordance with an input video signal. The laser beam 112 is swung in the left-right direction by the rotary polygon mirror 113 to scan the electrostatic drum 114. As a result, an electrostatic latent image of a character or figure pattern is formed on the electrostatic drum 114. The latent image is developed by a developing unit (toner cartridge) 115 around the electrostatic drum 114 and then transferred to a recording sheet. C (cyan), Y (yellow), and K (black) have the same image formation / development mechanism as M (magenta), and 120, 121, 122, 123, 124, and 125 are C (cyan) images. Formation / development mechanism, 130, 131, 132, 133, 134, 135 are Y (yellow) image formation / development mechanisms, 140, 141, 142, 143, 144, 145 are K (black) image formation / development mechanisms. Development mechanism. The individual functions are the same as those of the M (magenta) image forming / developing mechanism, and a description thereof will be omitted.

記録用紙にはカット・シートを用い、カット・シート記録紙はLBPに装着した給紙カセット102に収納されバネ103で一定の高さに保たれており、給紙ローラ104及び搬送ローラ105と106とにより装置内に取り込まれ、用紙搬送ベルト107に乗せられてMCYKの各像形成・現像機構を通過する。記録用紙に転写されたMCYKの各トナー(粉末インク)は定着器108で熱と圧力により記録用紙に固定され、記録用紙は搬送ローラ109と150によってLBP本体上部に出力される。   A cut sheet is used as the recording paper, and the cut sheet recording paper is stored in a paper feed cassette 102 mounted on the LBP and is kept at a certain height by a spring 103. A paper feed roller 104 and transport rollers 105 and 106 are used. Are taken into the apparatus, are placed on the sheet conveying belt 107, and pass through each image forming / developing mechanism of MCYK. Each MCYK toner (powder ink) transferred to the recording paper is fixed to the recording paper by heat and pressure by the fixing unit 108, and the recording paper is output to the upper part of the LBP main body by the conveying rollers 109 and 150.

図2は、本発明の実施例を示す印刷システムの構成を説明するブロック図である。301は、アプリケーションなどを用いてイメージを編集し、プリンタドライバを介して印刷データを送信するコンピュータである。   FIG. 2 is a block diagram illustrating the configuration of the printing system according to the embodiment of the present invention. A computer 301 edits an image using an application or the like and transmits print data via a printer driver.

201は印刷装置である。202はネットワークに繋がるコンピュータ301などのデバイスと情報の入出力を行うためのネットワークI/Fである。ネットワークI/F202を介してコンピュータ301からの印刷データを受信する。203は様々な情報を一時格納するRAMである。RAM203は、コンピュータ301から送信され、ネットワークI/F202を介して受信した印刷データまたはイメージデータを格納する受信バッファ204、入力されたデータを中間コードに変換するときに一時的に使用するワークメモリ205、プリンタ内部の中間コードなどを格納するフレームバッファ210、中間コードを展開したデータを格納するラスタメモリ211からなる。   Reference numeral 201 denotes a printing apparatus. Reference numeral 202 denotes a network I / F for inputting / outputting information to / from a device such as a computer 301 connected to the network. Print data from the computer 301 is received via the network I / F 202. A RAM 203 temporarily stores various information. A RAM 203 is a reception buffer 204 that stores print data or image data transmitted from the computer 301 and received via the network I / F 202, and a work memory 205 that is temporarily used when the input data is converted into an intermediate code. A frame buffer 210 for storing an intermediate code in the printer, and a raster memory 211 for storing data obtained by developing the intermediate code.

208は、印刷装置201におけるCPU211の制御コードを格納するROMである。ROM208は、受信バッファ204から読み出したデータを解析し、所定の処理に振り分ける解析処理部214と、解析処理部において解析された描画論理(ROP)設定の所定のROPを判定するROP判定部215と、ROP判定部215によって所定のROPが判定されたときにマスクパターンを生成するマスク生成部209と、フレームバッファ206に格納された中間コードを展開してラスタメモリに格納する展開処理部210からなる。   Reference numeral 208 denotes a ROM that stores the control code of the CPU 211 in the printing apparatus 201. The ROM 208 analyzes the data read from the reception buffer 204 and distributes the data to predetermined processing, and the ROP determination unit 215 that determines a predetermined ROP of the drawing logic (ROP) setting analyzed by the analysis processing unit. The mask generation unit 209 generates a mask pattern when a predetermined ROP is determined by the ROP determination unit 215, and the expansion processing unit 210 expands the intermediate code stored in the frame buffer 206 and stores it in the raster memory. .

211は印刷装置201の演算処理や制御を行う中央演算処理装置(CPU)である。212はプリンタエンジン213との信号の入出力を行うエンジンI/Fである。213はイメージデータに基づいて、周知の電子写真プロセスによって感光ドラム上に潜像を形成し、用紙に転写して定着し印字を行うプリンタエンジンである。   Reference numeral 211 denotes a central processing unit (CPU) that performs arithmetic processing and control of the printing apparatus 201. An engine I / F 212 inputs and outputs signals to and from the printer engine 213. A printer engine 213 forms a latent image on a photosensitive drum by a known electrophotographic process based on image data, transfers the image onto a sheet, fixes the image, and performs printing.

図8は、本発明の実施例における印刷装置のフローチャートである。   FIG. 8 is a flowchart of the printing apparatus according to the embodiment of the present invention.

印刷装置において、データを受信する(S1101)と、データ解析を開始する(S1102)。データ解析において、描画論理設定のときにROP2の描画論理か調べる(S1103)。ROP2の描画論理の場合、ROP2の描画処理を行う(S1104)。一方、ROP2の描画論理でない場合、ROP3の描画論理かを判定し(S1105)、ROP3の描画論理の場合はROP3の描画処理を行う(S1106)。ROP3の描画論理でもない場合は、その他の処理をする(S1107)。全てのデータの処理が終了まで、S1102〜S1107を繰り返し行う。全てのデータ処理が終了する(S1108)と、作成されたMSK,PTN,Sと指定されたROPに基づいてレンダリング処理を行い(S1109)、作成されたラスターイメージをエンジンに転送し、印刷して(S1110)終了する。   When the printing apparatus receives data (S1101), data analysis is started (S1102). In the data analysis, it is checked whether the drawing logic of ROP2 is set when the drawing logic is set (S1103). In the case of ROP2 drawing logic, ROP2 drawing processing is performed (S1104). On the other hand, if it is not ROP2 drawing logic, it is determined whether it is ROP3 drawing logic (S1105). If it is ROP3 drawing logic, ROP3 drawing processing is performed (S1106). If the drawing logic is not ROP3, other processing is performed (S1107). S1102 to S1107 are repeated until the processing of all data is completed. When all the data processing is completed (S1108), rendering processing is performed based on the created MSK, PTN, S and the designated ROP (S1109), and the created raster image is transferred to the engine and printed. (S1110) The process ends.

図9は、S1104のROP2描画処理のフローチャートである。   FIG. 9 is a flowchart of the ROP2 drawing process in S1104.

ROP2描画処理では、SRCが黒のときDSTとなるROPかを判定する(S1201)。SRCが黒のときDSTとなるROP((ROP2&0x3)==0x2)の場合は、SRCに指定されているデータの各ピクセルが黒かを判定する(S1202)。黒の場合はMSKを0(S1203)、黒以外の場合はMSKを1(S1204)とし、SRCの全ピクセルに対しS1202〜S1204を繰り返し行い、SRCの全ピクセルの検索が終了する(S1205)と、MSKのパターンを設定し(S1211)、ROP2をROP4に変換する(S1212)。一方、SRCが黒のときDSTとなるROPではない場合、SRCが白のときDSTとなるROPかを判定する(S1206)。SRCが白のときDSTとなるROP((ROP2&0xc)==0x8)の場合は、SRCに指定されているデータの各ピクセルが白かを判定する(S1207)。白の場合はMSKを0(S1208)、白以外の場合はMSKを1(S1209)とし、SRCの全ピクセルに対しS1207〜S1209を繰り返し行い、SRCの全ピクセルの検索が終了する(S1210)と、MSKのパターンを設定し(S1211)、ROP2をROP4に変換する(S1212)。SRCが黒でも、白でもDSTにならないROPについては、MSKのパターンを設定せずに終了する。   In the ROP2 drawing process, it is determined whether the ROP is a DST when the SRC is black (S1201). In the case of ROP which becomes DST when SRC is black ((ROP2 & 0x3) == 0x2), it is determined whether each pixel of data designated in SRC is black (S1202). When black, MSK is set to 0 (S1203), and when other than black, MSK is set to 1 (S1204). S1202 to S1204 are repeated for all pixels of SRC, and the search of all pixels of SRC is completed (S1205). MSK pattern is set (S1211), and ROP2 is converted to ROP4 (S1212). On the other hand, if the SRC is not a ROP that is a DST when the SRC is black, it is determined whether the ROP is a DST when the SRC is white (S1206). In the case of ROP which becomes DST when SRC is white ((ROP2 & 0xc) == 0x8), it is determined whether each pixel of data designated in SRC is white (S1207). When white, MSK is set to 0 (S1208), and when other than white, MSK is set to 1 (S1209). S1207 to S1209 are repeated for all pixels of SRC, and the search of all pixels of SRC ends (S1210). MSK pattern is set (S1211), and ROP2 is converted to ROP4 (S1212). For ROPs that do not become DST regardless of whether SRC is black or white, the process ends without setting the MSK pattern.

図10は、S1106のROP3描画処理のフローチャートである。   FIG. 10 is a flowchart of the ROP3 drawing process in S1106.

ROP3描画処理では、SRCが黒のときDSTとなるROPかを判定する(S1301)。SRCが黒のときDSTとなるROP((ROP3&0x33)==0x22)の場合は、SRCに指定されているデータの各ピクセルが黒かを判定する(S1302)。黒の場合はMSKを0(S1303)、黒以外の場合はMSKを1(S1304)とし、SRCの全ピクセルに対しS1302〜S1304を繰り返し行い、SRCの全ピクセルの検索が終了する(S1305)と、MSKのパターンを設定し(S1311)、ROP3をROP4に変換する(S1312)。一方、SRCが黒のときDSTとなるROPではない場合、SRCが白のときDSTとなるROPかを判定する(S1306)。SRCが白のときDSTとなるROP((ROP3&0xcc)=0x88)の場合は、SRCに指定されているデータの各ピクセルが白かを判定する(S1307)。白の場合はMSKを0(S1308)、白以外の場合はMSKを1(S1309)とし、SRCの全ピクセルに対しS1307〜S1309を繰り返し行い、SRCの全ピクセルの検索が終了する(S1310)と、MSKのパターンを設定し(S1311)、ROP3をROP4に変換する(S1312)。SRCが黒でも、白でもDSTにならないROPについては、さらにPTNについてROP3描画処理を行う(S1313)。   In the ROP3 drawing process, it is determined whether the ROP is a DST when the SRC is black (S1301). In the case of ROP which becomes DST when SRC is black ((ROP3 & 0x33) == 0x22), it is determined whether each pixel of data designated in SRC is black (S1302). When black, MSK is set to 0 (S1303), and when other than black, MSK is set to 1 (S1304). S1302 to S1304 are repeated for all pixels of SRC, and the search of all pixels of SRC is completed (S1305). MSK pattern is set (S1311), and ROP3 is converted to ROP4 (S1312). On the other hand, if it is not the ROP that becomes DST when the SRC is black, it is determined whether the ROP becomes DST when the SRC is white (S1306). In the case of ROP that becomes DST when SRC is white ((ROP3 & 0xcc) = 0x88), it is determined whether each pixel of data designated in SRC is white (S1307). If white, MSK is set to 0 (S1308), and if not white, MSK is set to 1 (S1309). S1307 to S1309 are repeated for all pixels in SRC, and the search for all pixels in SRC ends (S1310). MSK pattern is set (S1311), and ROP3 is converted to ROP4 (S1312). For ROPs that do not become DST regardless of whether SRC is black or white, ROP3 drawing processing is further performed for PTN (S1313).

図11は、S1313のPTNのROP3描画処理のフローチャートである。   FIG. 11 is a flowchart of the PTN ROP3 drawing process in S1313.

ROP3描画処理では、PTNが黒のときDSTとなるROPかを判定する(S1401)。PTNが黒のときDSTとなるROP((ROP3&0x0f)==0x0a)の場合は、PTNに指定されているデータの各ピクセルが黒かを判定する(S1402)。黒の場合はMSKを0(S1403)、黒以外の場合はMSKを1(S1404)とし、PTNの全ピクセルに対しS1402〜S1404を繰り返し行い、PTNの全ピクセルの検索が終了する(S1405)と、MSKのパターンを設定し(S1411)、ROP3をROP4に変換する(S1412)。一方、PTNが黒のときDSTとなるROPではない場合、PTNが白のときDSTとなるROPかを判定する(S1406)。PTNが白のときDSTとなるROP((ROP3&0xf0)==0xa0)の場合は、PTNに指定されているデータの各ピクセルが白かを判定する(S1407)。白の場合はMSKを0(S1408)、白以外の場合はMSKを1(S1409)とし、PTNの全ピクセルに対しS1407〜S1409を繰り返し行い、PTNの全ピクセルの検索が終了する(S1310)と、MSKのパターンを設定し(S1411)、ROP3をROP4に変換する(S1412)。PTNが黒でも、白でもDSTにならないROPについては、MSKのパターンを設定せずに終了する。   In the ROP3 drawing process, it is determined whether the ROP is a DST when the PTN is black (S1401). In the case of ROP that becomes DST when PTN is black ((ROP3 & 0x0f) == 0x0a), it is determined whether each pixel of the data specified in PTN is black (S1402). If black, MSK is set to 0 (S1403), and if not black, MSK is set to 1 (S1404). S1402 to S1404 are repeated for all pixels of PTN, and the search of all pixels of PTN is completed (S1405). MSK pattern is set (S1411), and ROP3 is converted to ROP4 (S1412). On the other hand, when the PTN is not ROP that is DST when the PTN is black, it is determined whether the ROP is DST when the PTN is white (S1406). In the case of ROP that becomes DST when PTN is white ((ROP3 & 0xf0) == 0xa0), it is determined whether each pixel of data specified in PTN is white (S1407). If white, MSK is set to 0 (S1408), and if not white, MSK is set to 1 (S1409). S1407 to S1409 are repeated for all pixels of PTN, and the search of all pixels of PTN is completed (S1310). MSK pattern is set (S1411), and ROP3 is converted to ROP4 (S1412). For ROPs that do not become DST regardless of whether PTN is black or white, the process ends without setting the MSK pattern.

図12は、S1109のレンダリング処理のフローチャートである。   FIG. 12 is a flowchart of the rendering process in S1109.

レンダリング処理においては、CMYKレンダリングできないROPかどうかを判定する(S1501)。CMYKレンダリングできない場合は、MSKが0のときDSTになるROPかを判定する(S1502)。MSKが0のときDSTになる場合は、MSKが1のピクセルのS,PTN,DSTをそれぞれCMYKからCMYに変換し(S1503)、CMYレンダリングする(S1504)。CMYレンダリングが終了した後に、MSKが1のピクセルのレンダリング後のDSTのCMYをCMYKへ変換し(S1505)、レンダリング処理を終了する。一方、MSKが0のときDSTにならない場合は、S,PTN,DSTをそれぞれCMYKからCMYに変換し(S1506)、CMYレンダリングする(S1507)。CMYレンダリングが終了した後に、レンダリング後のDSTのCMYをCMYKへ変換し(S1508)、レンダリング処理を終了する。CMYKレンダリングできる場合は、CMYKそれぞれ指定されたROPによりレンダリングし(S1509)、レンダリング処理を終了する。   In the rendering process, it is determined whether or not the ROP cannot be CMYK rendered (S1501). If CMYK rendering cannot be performed, it is determined whether the ROP is DST when MSK is 0 (S1502). When MSK is 0 and DST is obtained, S, PTN, and DST of a pixel with MSK 1 are converted from CMYK to CMY, respectively (S1503), and CMY rendering is performed (S1504). After the CMY rendering is completed, the CMY of the DST after rendering of the pixel whose MSK is 1 is converted into CMYK (S1505), and the rendering process is terminated. On the other hand, when MSK is not 0 and DST does not occur, S, PTN, and DST are converted from CMYK to CMY, respectively (S1506), and CMY rendering is performed (S1507). After the CMY rendering is completed, the CMY of the rendered DST is converted into CMYK (S1508), and the rendering process ends. If CMYK rendering can be performed, rendering is performed by each designated ROP of CMYK (S1509), and the rendering process ends.

S1105のROP2からROP4への変換,S1108のROP3からROP4への変換方法の一例を図7に示す。ROP2、ROP3のDSaが指定された場合は、SRCが白の場合、DSTのままの描画結果になり、S1104のROP2描画処理、またはS1107のROP3描画処理においてSRCが白のピクセルを0,それ以外を1とするMSKを生成する。MSKを生成したあと、ROP4の上位8ビットを10101010に、下位8ビットをROP3のDSaの8ビットにして、ROP2、ROP3を16ビットのROP4に変換する。DSoのときも同様の方法で、SRCが黒のピクセルを0、それ以外を1とするMSKを生成し、以下はDSaと同様にROP4に変換する。   An example of the conversion method from ROP2 to ROP4 in S1105 and the conversion method from ROP3 to ROP4 in S1108 is shown in FIG. When DSa of ROP2 and ROP3 is specified, if SRC is white, the rendering result remains as DST. In S1104 ROP2 rendering processing or S1107 ROP3 rendering processing, SRC is 0 for white pixels, otherwise An MSK with 1 is generated. After generating the MSK, the upper 8 bits of ROP4 are converted to 10101010, the lower 8 bits are converted to 8 bits of DSa of ROP3, and ROP2 and ROP3 are converted to 16 bits of ROP4. In the case of DSo, the same method is used to generate an MSK where the SRC is 0 for black pixels and 1 for other pixels, and the following is converted to ROP4 in the same way as DSa.

図5に示すとおり、図4でCMYK→CMY→CMYK変換により色が変わり描画不正となっていた領域で、CMYK→CMY→CMYK変換やらないようにし、正常な色で出力できるようになる。   As shown in FIG. 5, in the region where the color has changed due to the CMYK → CMY → CMYK conversion in FIG. 4 and the drawing has become invalid, the CMYK → CMY → CMYK conversion is not performed, and normal colors can be output.

(その他の実施例)
実施例1では、ROPを判定し、DSTとなる領域のピクセルを0とするMSKを設定し、レンダリング処理において、MSKが0のSRC,PTN,DSTのピクセルをCMYK→CMY→CMYK変換しないようにし、正常な結果を得ているが、MSKのパターンの1のピクセルの形状を取り出し、クリップ領域とすることで、DSTとなる領域のレンダリング処理をしないようにしてもよい。図6は、実施例1の図5と同じデータでのクリップ領域生成の例である。
(Other examples)
In the first embodiment, ROP is determined, MSK is set so that the pixel in the region serving as DST is 0, and SRC, PTN, and DST pixels in which MSK is 0 are not subjected to CMYK → CMY → CMYK conversion in the rendering process. Although a normal result is obtained, the rendering process of the region serving as the DST may not be performed by taking out the shape of one pixel of the MSK pattern and setting it as the clip region. FIG. 6 is an example of clip area generation with the same data as FIG. 5 of the first embodiment.

本発明の一実施例のレーザビームプリンタの構造を示す側断面図である。1 is a side sectional view showing a structure of a laser beam printer according to an embodiment of the present invention. 実施例1による印刷システムの構成を示すブロック図である。1 is a block diagram illustrating a configuration of a printing system according to Embodiment 1. FIG. Windows(登録商標)のGDIの描画モデルを示した図である。It is the figure which showed the drawing model of GDI of Windows (trademark). CMYKレンダリングで描画不正となる一例を示す図である。It is a figure which shows an example used as a drawing fraud by CMYK rendering. 実施例1によるCMYKレンダリングでの描画不正を回避した例を示す図である。FIG. 10 is a diagram illustrating an example in which drawing fraud is avoided in CMYK rendering according to the first embodiment. その他の実施例によるCMYKレンダリングでの描画不正を回避した例を示す図である。It is a figure which shows the example which avoided the drawing fraud in the CMYK rendering by another Example. 実施例1によるROP2,ROP3からROP4への変換の一例を示した図である。FIG. 6 is a diagram illustrating an example of conversion from ROP2, ROP3 to ROP4 according to the first embodiment. 実施例1による印刷装置における描画処理のフローチャートである。6 is a flowchart of a drawing process in the printing apparatus according to the first embodiment. 実施例1によるS1104のROP2描画処理のフローチャートである。10 is a flowchart of ROP2 drawing processing in S1104 according to the first embodiment. 実施例1によるS1106のROP3描画処理のフローチャートである。10 is a flowchart of ROP3 drawing processing in S1106 according to the first embodiment. 実施例1によるS1313のPTNのROP3描画処理のフローチャートである。10 is a flowchart of the PTN ROP3 drawing process in S1313 according to the first embodiment. 実施例1によるS1109のレンダリング処理のフローチャートである。10 is a flowchart of rendering processing in S1109 according to the first embodiment.

符号の説明Explanation of symbols

100 プリンタ本体
101 プリンタ制御ユニット
102 給紙カセット
103 用紙を持ち上げるためのバネ
104 給紙ローラ
105 用紙搬送ローラ
106 用紙搬送ローラ
107 用紙搬送ベルト
108 定着器
109 用紙搬送ローラ
110 レーザ・ドライバ(マゼンタ用)
111 半導体レーザ発射装置(マゼンタ用)
113 回転多面鏡(マゼンタ用)
114 静電ドラム(マゼンタ用)
115 トナーカートリッジ(マゼンタ用)
120 レーザ・ドライバ(シアン用)
121 半導体レーザ発射装置(シアン用)
122 レーザ・ビーム(シアン用)
123 回転多面鏡(シアン用)
124 静電ドラム(シアン用)
125 トナーカートリッジ(シアン用)
130 レーザ・ドライバ(イエロー用)
131 半導体レーザ発射装置(イエロー用)
132 レーザ・ビーム(イエロー用)
133 回転多面鏡(イエロー用)
134 静電ドラム(イエロー用)
135 トナーカートリッジ(イエロー用)
140 レーザ・ドライバ(クロ用)
141 半導体レーザ発射装置(クロ用)
142 レーザ・ビーム(クロ用)
143 回転多面鏡(クロ用)
144 静電ドラム(クロ用)
145 トナーカートリッジ(クロ用)
150 用紙搬送ローラ
151 操作パネル
DESCRIPTION OF SYMBOLS 100 Printer body 101 Printer control unit 102 Paper feed cassette 103 Spring for lifting paper 104 Paper feed roller 105 Paper transport roller 106 Paper transport roller 107 Paper transport belt 108 Fixing device 109 Paper transport roller 110 Laser driver (for magenta)
111 Semiconductor laser emitting device (for magenta)
113 Rotating polygon mirror (for magenta)
114 Electrostatic drum (for magenta)
115 Toner cartridge (for magenta)
120 Laser driver (for cyan)
121 Semiconductor laser emitting device (for cyan)
122 Laser beam (for cyan)
123 Rotating polygon mirror (for cyan)
124 Electrostatic drum (for cyan)
125 toner cartridge (for cyan)
130 Laser driver (for yellow)
131 Semiconductor laser emitting device (for yellow)
132 Laser beam (for yellow)
133 Rotating polygon mirror (for yellow)
134 Electrostatic drum (for yellow)
135 Toner cartridge (for yellow)
140 Laser driver (for black)
141 Semiconductor laser emitting device (for black)
142 Laser beam (for black)
143 Rotating polygon mirror (for black)
144 Electrostatic drum (for black)
145 Toner cartridge (for black)
150 Paper transport roller 151 Operation panel

Claims (7)

ラスターオペレーションを使ってCMYKでレンダリングを行う描画システムにおいて、
指定されたラスターオペレーションを判別するラスターオペレーション判別手段と、
前記ラスターオペレーション判別手段によって判別した結果に応じてCMYKからCMYに変換するCMY変換手段と、
描画するデータとラスターオペレーションにより出力先が透過となるかを判定する透過判定手段と、
前記透過判定手段により判定した結果に基づいて、マスクパターンを生成するマスク生成手段と、
前記マスク生成手段により生成したマスクパターンに応じて、レンダリング処理を切り替える手段とを有することを特徴とする描画処理システム。
In a drawing system that renders in CMYK using raster operations,
Raster operation determination means for determining a specified raster operation;
CMY conversion means for converting from CMYK to CMY according to the result determined by the raster operation determination means;
Transparency determining means for determining whether the output destination is transparent by the data to be rendered and the raster operation;
Mask generating means for generating a mask pattern based on the result determined by the transmission determining means;
A drawing processing system comprising: means for switching rendering processing in accordance with the mask pattern generated by the mask generating means.
前記ラスターオペレーションは、Windows(登録商標)GDIのラスターオペレーション2,ラスターオペレーション3,ラスターオペレーション4またはそれに準ずるその他のOSの描画モデルで使われる描画論理であることを特徴とする請求項1記載の描画処理システム。   2. The drawing according to claim 1, wherein the raster operation is a drawing logic used in a raster operation 2, a raster operation 3, a raster operation 4 or other OS drawing model of Windows (registered trademark) GDI. Processing system. 前記CMYKレンダリングは、CMYKのプレーン毎にレンダリング処理を行うCMYKレンダリング手段と、CMYKからCMYへ変換後、CMYのプレーンごとにレンダリング処理をし、出力先をCMYからCMYKへ変換するCMYレンダリング手段を有することを特徴とする請求項1記載の描画処理システム。   The CMYK rendering has CMYK rendering means for performing rendering processing for each CMYK plane, and CMY rendering means for performing rendering processing for each CMY plane after converting from CMYK to CMY and converting the output destination from CMY to CMYK. The drawing processing system according to claim 1. 前記レンダリング切り替え手段は、前記CMYKレンダリング手段と、CMYレンダリング手段のいずれかを選択することを特徴とする請求項1記載の描画処理システム。   The drawing processing system according to claim 1, wherein the rendering switching unit selects one of the CMYK rendering unit and the CMY rendering unit. ラスターオペレーションを使ってCMYKでレンダリングを行う描画処理システムにおいて、
指定されたラスターオペレーションを判別するラスターオペレーション判別手段と、
前記ラスターオペレーション判別手段によって判別した結果に応じてCMYKからCMYに変換するCMY変換手段と、
描画するデータとラスターオペレーションにより出力先が透過となるかを判定する透過判定手段と、
前記透過判定手段により判定した結果に基づいて、マスクパターンを生成するマスク生成手段と、
前記マスク生成手段により生成したマスクパターンからクリップ領域の形状を抽出するクリップ抽出手段と、
前記クリップ抽出手段により抽出してクリップによってレンダリング処理を行う手段とを有することを特徴とする描画処理システム。
In a drawing processing system that renders in CMYK using raster operations,
Raster operation determination means for determining a specified raster operation;
CMY conversion means for converting from CMYK to CMY according to the result determined by the raster operation determination means;
Transparency determining means for determining whether the output destination is transparent by the data to be rendered and the raster operation;
Mask generating means for generating a mask pattern based on the result determined by the transmission determining means;
Clip extraction means for extracting the shape of the clip region from the mask pattern generated by the mask generation means;
A drawing processing system comprising: means for extracting by the clip extracting means and performing rendering processing with the clip.
前記ラスターオペレーションは、Windows(登録商標)GDIのラスターオペレーション2,ラスターオペレーション3,ラスターオペレーション4またはそれに準ずるその他のOSの描画モデルで使われる描画論理であることを特徴とする請求項5記載の描画処理システム。   6. The drawing according to claim 5, wherein the raster operation is a drawing logic used in a raster operation 2, a raster operation 3, a raster operation 4 or other OS drawing model of Windows GDI. Processing system. 前記CMYKレンダリングは、CMYKのプレーン毎にレンダリング処理を行うCMYKレンダリング手段と、CMYKからCMYへ変換後、CMYのプレーンごとにレンダリング処理をし、出力先をCMYからCMYKへ変換するCMYレンダリング手段を有することを特徴とする請求項5記載の描画処理システム。   The CMYK rendering has CMYK rendering means for performing rendering processing for each CMYK plane, and CMY rendering means for performing rendering processing for each CMY plane after converting from CMYK to CMY and converting the output destination from CMY to CMYK. The drawing processing system according to claim 5.
JP2004304138A 2004-10-19 2004-10-19 Drawing processing system Withdrawn JP2006119709A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2004304138A JP2006119709A (en) 2004-10-19 2004-10-19 Drawing processing system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2004304138A JP2006119709A (en) 2004-10-19 2004-10-19 Drawing processing system

Publications (1)

Publication Number Publication Date
JP2006119709A true JP2006119709A (en) 2006-05-11

Family

ID=36537566

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2004304138A Withdrawn JP2006119709A (en) 2004-10-19 2004-10-19 Drawing processing system

Country Status (1)

Country Link
JP (1) JP2006119709A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8040570B2 (en) * 2006-12-18 2011-10-18 Adapx, Inc. Systems and methods for print coating de-saturation

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8040570B2 (en) * 2006-12-18 2011-10-18 Adapx, Inc. Systems and methods for print coating de-saturation

Similar Documents

Publication Publication Date Title
JP4484770B2 (en) Image processing apparatus and method
US7679795B2 (en) Image processing apparatus and method thereof
US20090303504A1 (en) Image forming apparatus, image forming method, and recording medium therefor
WO2011048771A1 (en) Image processing apparatus, image processing method, and program
JP3902907B2 (en) Image processing apparatus and method, and image forming apparatus
JP3927948B2 (en) Image forming apparatus control method and image forming apparatus
US7038815B2 (en) Image processing apparatus and its method, and image processing system and its control method
JP2006044169A (en) Printing device and method of controlling the same
JP5854622B2 (en) Image forming system, information processing apparatus, image forming method, and information processing method
JPH11355588A (en) Picture processor, picture processing method and recording medium
JP2006119709A (en) Drawing processing system
JP2002007102A (en) Printing controller and plotting controller and data processing method and storage medium
JP4086425B2 (en) Image processing apparatus and method
JP2007074539A (en) Image forming device
JP4235339B2 (en) Image processing apparatus and method
JP2006171940A (en) Printing system
JP2006155221A (en) Printing system and printing control method
CN110879691B (en) Computer, image forming apparatus, information processing apparatus, and information processing system
JP2004174964A (en) Printing control device, method for processing data thereof, and memory medium housing computer readable program
JP2006140597A (en) Device and method for printing control, computer program, and storage medium
JP3453398B2 (en) Image processing system and image processing method
JPH0744687A (en) Picture forming device
JP2006235813A (en) Print system
JP2002312141A (en) Printing control device, printing information preparation method, program and recording medium
JP2006344129A (en) Printing system

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20080108