JP2017024190A - Image processing device, image processing method of image processing device and program - Google Patents

Image processing device, image processing method of image processing device and program Download PDF

Info

Publication number
JP2017024190A
JP2017024190A JP2015142102A JP2015142102A JP2017024190A JP 2017024190 A JP2017024190 A JP 2017024190A JP 2015142102 A JP2015142102 A JP 2015142102A JP 2015142102 A JP2015142102 A JP 2015142102A JP 2017024190 A JP2017024190 A JP 2017024190A
Authority
JP
Japan
Prior art keywords
tile
command
image processing
plotting
tile drawing
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
JP2015142102A
Other languages
Japanese (ja)
Inventor
山下 洋
Hiroshi Yamashita
洋 山下
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 JP2015142102A priority Critical patent/JP2017024190A/en
Publication of JP2017024190A publication Critical patent/JP2017024190A/en
Pending legal-status Critical Current

Links

Images

Abstract

PROBLEM TO BE SOLVED: To improve reproducibility of a color between adjacent tiles in tile plotting, even when a tile plotting-repeating clearance does not coincide with a tile plotting size.SOLUTION: An image processing device for processing a tile plotting command analyzed from printing data, determines whether or not a clearance is generated in a tile plotting interval by comparing a tile repeating size specified by one tile plotting interval to be plotted and a tile size specified by the one tile plotting to be plotted by the tile plotting command. Here, when determined that the clearance is generated in the tile plotting interval, plotting command processing is controlled in a switching system so as to execute first replacement processing for replacing the tile plotting command with a first tile plotting command in response to the clearance and second replacement processing for replacing the tile plotting command with a second tile plotting command. Plotting processing is executed in response to the replaced first tile plotting command or second tile plotting command.SELECTED DRAWING: Figure 6

Description

本発明は、画像処理装置、画像処理装置の画像処理方法、及びプログラムに関するものである。   The present invention relates to an image processing apparatus, an image processing method for the image processing apparatus, and a program.

一般的にPDL描画処理は、PDL解析処理と描画処理に分割できる。PDL解析処理は、PDLデータを解析し、より抽象度の低い描画コマンドに変換する。描画処理は描画コマンドを受け取り、デバイス座標への変換処理及び色合成処理を行い、ラスターデータを作成する。ここで、ラスターデータはプリンタデバイスで紙に出力されたり、モニタデバイスで表示されたりする。
PDLデータとしては、Microsoft社のページ記述言語であるXPSやAdobe社のページ記述言語であるPDF等が存在する。
XPS、PDFには、同じ塗りを一回以上繰り返して描画するタイル描画命令が存在する。このタイル描画命令では、タイル(繰り返しの単位となる領域)の幅・高さとタイルを敷き詰める領域を指定する。
このタイルの幅・高さはPDLで定義されている座標系(以下PDL座標)の単位で指定されている。
例えばXPSの座標系は左上原点で単位は1/96インチと定義されている。このPDL座標は、描画処理においてデバイスに出力・表示するラスターデータに変換する際に、デバイスで定義されている座標(以下デバイス座標)へと変換される。デバイス座標は、プリンタの場合、左上原点において、ピクセル単位で示されるのが一般的である。
ここで、描画処理のPDL座標からデバイス座標への変換において、PDL座標では整数として指定されている描画内容が出力サイズや解像度の指定によりピクセルで表現できない場合がある。
この問題を解決するためにXPS仕様(ECMA−388)では、タイル描画命令を描画する際に、一つのタイル描画命令の描画が出力解像度に対して小さいとき、一つのタイル内の描画結果の平均色で一つのタイルとして塗ることが推奨となっている(非特許文献1参照)。
Generally, PDL drawing processing can be divided into PDL analysis processing and drawing processing. In the PDL analysis process, PDL data is analyzed and converted into a drawing command with a lower abstraction level. The drawing process receives a drawing command, performs a conversion process to device coordinates and a color synthesis process, and creates raster data. Here, the raster data is output on paper by a printer device or displayed on a monitor device.
As the PDL data, there are XPS which is a page description language of Microsoft Corporation, PDF which is a page description language of Adobe Corporation, and the like.
In XPS and PDF, there is a tile drawing command for drawing the same coating one or more times. In this tile drawing command, the width / height of a tile (an area serving as a repeating unit) and an area for laying the tile are designated.
The width and height of the tile are specified in units of a coordinate system defined by PDL (hereinafter referred to as PDL coordinates).
For example, the XPS coordinate system is defined as the upper left origin and the unit is 1/96 inch. The PDL coordinates are converted into coordinates defined in the device (hereinafter referred to as device coordinates) when converted into raster data to be output / displayed on the device in the drawing process. In the case of a printer, the device coordinates are generally indicated in units of pixels at the upper left origin.
Here, in the conversion from the PDL coordinates to the device coordinates in the drawing process, there are cases where the drawing contents specified as an integer in the PDL coordinates cannot be expressed by pixels due to the designation of the output size or resolution.
In order to solve this problem, in the XPS specification (ECMA-388), when drawing a tile drawing command, if the drawing of one tile drawing command is smaller than the output resolution, the average of the drawing results in one tile It is recommended to paint as one tile with color (see Non-Patent Document 1).

特願2002−64988号公報Japanese Patent Application No. 2002-64988 ECMA−388 Open XML Paper SpecificationECMA-388 Open XML Paper Specification

しかしながら、タイル描画を繰り返す隙間がタイル描画サイズと一致しない場合があり、その場合は、タイル描画間には隙間が生じる。このタイル描画間の隙間に関する描画方法については、上記XPS仕様で明示的に規定されていないため、実装依存の出力結果となる。つまり、PDL座標からデバイス座標に変換する過程において、描画結果の縮小方法によっては、変換誤差からタイル描画間の隙間が不均一になる場合や、隙間のみ出力結果になる問題があった。   However, there is a case where a gap in which tile drawing is repeated does not match the tile drawing size. In this case, a gap is generated between tile drawing. Since the drawing method related to the gap between tile drawing is not explicitly defined in the XPS specification, the output result depends on the implementation. That is, in the process of converting from PDL coordinates to device coordinates, depending on the drawing result reduction method, there is a problem that gaps between tile drawings are non-uniform due to conversion errors or only gaps are output.

本発明は、上記の課題を解決するためになされたもので、本発明の目的は、タイル描画を繰り返す隙間がタイル描画サイズと一致しない場合でも、タイル描画における隣接するタイル間で色の再現性を向上できる仕組みを提供することである。   The present invention has been made to solve the above-described problems, and the object of the present invention is to achieve color reproducibility between adjacent tiles in tile drawing even when a gap in which tile drawing is repeated does not match the tile drawing size. It is to provide a mechanism that can improve.

上記目的を達成する本発明の画像処理装置は以下に示す構成を備える。
印刷データから解析されるタイル描画命令を処理する画像処理装置であって、描画すべき1つのタイル描画間隔で特定されるタイル繰り返しサイズと前記タイル描画命令で描画すべき1つのタイル描画で特定されるタイルサイズとを比較してタイル描画間隔内に隙間が発生するかどうかを判断する判断手段と、前記タイル描画間隔内に隙間が発生すると判断した場合、当該隙間に応じて前記タイル描画命令を第1のタイル描画命令に置換する第1の置換処理と、前記タイル描画命令を第2のタイル描画命令に置換する第2の置換処理を行うように描画命令処理を切替制御する制御手段と、置換された第1のタイル描画命令または第2のタイル描画命令に従い描画処理を行う描画手段と、を備えることを特徴とする。
The image processing apparatus of the present invention that achieves the above object has the following configuration.
An image processing apparatus for processing a tile drawing command analyzed from print data, which is specified by a tile repetition size specified by one tile drawing interval to be drawn and one tile drawing to be drawn by the tile drawing command. A determination unit that determines whether or not a gap is generated within the tile drawing interval by comparing the tile size with the tile size, and when determining that a gap is generated within the tile drawing interval, Control means for switching and controlling the drawing command processing so as to perform a first replacement processing for replacing with a first tile drawing command, and a second replacement processing for replacing the tile drawing command with a second tile drawing command; Drawing means for performing drawing processing according to the replaced first tile drawing command or second tile drawing command.

本発明によれば、タイル描画を繰り返す隙間がタイル描画サイズと一致しない場合でも、タイル描画における隣接するタイル間で色の再現性を向上できる。   According to the present invention, it is possible to improve color reproducibility between adjacent tiles in tile drawing even when a gap in which tile drawing is repeated does not match the tile drawing size.

画像処理システムの構成を示すブロック図である。It is a block diagram which shows the structure of an image processing system. 画像処理システムのモジュール構成を示すブロック図である。It is a block diagram which shows the module structure of an image processing system. 画像処理装置が処理するタイル描画命令を示す図である。It is a figure which shows the tile drawing command which an image processing apparatus processes. タイル描画情報の構成を説明する図である。It is a figure explaining the structure of tile drawing information. タイル描画部によるタイルの描画結果を表す一例である。It is an example showing the drawing result of the tile by a tile drawing part. 画像処理装置の画像処理方法を示すフローチャートである。It is a flowchart which shows the image processing method of an image processing apparatus. 画像処理装置の画像処理方法を示すフローチャートである。It is a flowchart which shows the image processing method of an image processing apparatus. 画像処理システムのハードウエア構成を説明するブロック図である。It is a block diagram explaining the hardware constitutions of an image processing system.

次に本発明を実施するための最良の形態について図面を参照して説明する。
<システム構成の説明>
〔第1実施形態〕
Next, the best mode for carrying out the present invention will be described with reference to the drawings.
<Description of system configuration>
[First Embodiment]

図1は、本実施形態を示す画像処理システムの構成を示すブロック図である。以下、印刷データから解析されるタイル描画命令を処理する画像処理装置を含むシステムの構成について説明する。
図1において、コンピュータ101とプリンタ102がネットワーク103を介して相互に接続されており、お互いに通信を行うことができる。ネットワーク103は、コンピュータ101とプリンタ102間で通信可能であれば、USBケーブルなどの他の方式であってもよい。
FIG. 1 is a block diagram illustrating a configuration of an image processing system according to the present exemplary embodiment. Hereinafter, a configuration of a system including an image processing apparatus that processes a tile drawing command analyzed from print data will be described.
In FIG. 1, a computer 101 and a printer 102 are connected to each other via a network 103 and can communicate with each other. The network 103 may be another system such as a USB cable as long as communication is possible between the computer 101 and the printer 102.

コンピュータ101で、ユーザの印刷指示操作に応じて、プリンタドライバを介してユーザから印刷設定及び印刷ドキュメント(XPSデータなど)の入力を受け付け、ネットワーク103を介して102プリンタに印刷データを投げる。102プリンタは印刷データを受け取ると印刷データからビットマップに展開して紙などの記憶媒体に出力する。   The computer 101 accepts input of print settings and a print document (such as XPS data) from the user via the printer driver in response to the user's print instruction operation, and throws the print data to the 102 printer via the network 103. When the printer 102 receives the print data, the printer 102 develops the print data into a bitmap and outputs it to a storage medium such as paper.

図8は、図1に示した画像処理システムのハードウエア構成を説明するブロック図である。
図8において、801はCPUであり、RAM802に格納された制御プログラムに従って、本装置全体の制御を行う。RAM802は、CPU801が実行する本装置が実行する画像処理に関わる制御プログラムや、文書、画像等のデータを格納する。803はネットワークインタフェースで、CPU801の制御のもとにインターネット等のネットワークとの接続を行ってデータ等を送受信する。
FIG. 8 is a block diagram illustrating a hardware configuration of the image processing system shown in FIG.
In FIG. 8, reference numeral 801 denotes a CPU, which controls the entire apparatus according to a control program stored in a RAM 802. The RAM 802 stores a control program related to image processing executed by the apparatus executed by the CPU 801, and data such as documents and images. A network interface 803 connects to a network such as the Internet under the control of the CPU 801 to transmit / receive data and the like.

804はデータを保存する磁気ディスク等の外部記憶装置である。805はディスプレイ、806はキーボード、807はマウス等のポインティングデバイスである。RAM802に格納されているプログラムは、同じくRAM802に格納されているオペレーティングシステムの機能を必要に応じて使用することにより、所定の動作を行う。   Reference numeral 804 denotes an external storage device such as a magnetic disk for storing data. Reference numeral 805 denotes a display, 806 denotes a keyboard, and 807 denotes a pointing device such as a mouse. The program stored in the RAM 802 performs a predetermined operation by using the functions of the operating system stored in the RAM 802 as necessary.

例えば、RAM802に一時記憶するデータ内容の読み書き、外部記憶装置804上でのデータの読み書き、ネットワークインタフェース803を介したデータの送受信を行う。そしてキーボード806やポインティングデバイス807からの入力受け取り、ディスプレイ805への表示、等を行う。なお、外部記憶装置804上には、図2に示すモジュール(制御プログラム)も記憶されている。また、各モジュールを専用のハードウエアとして、ASICのハードウエアで構成することも可能である。   For example, reading / writing of data contents temporarily stored in the RAM 802, reading / writing of data on the external storage device 804, and transmission / reception of data via the network interface 803 are performed. Then, input from the keyboard 806 and the pointing device 807 is received, and display on the display 805 is performed. The external storage device 804 also stores a module (control program) shown in FIG. In addition, each module can be configured by ASIC hardware as dedicated hardware.

図2は、図1に示した画像処理システムのモジュール構成を示すブロック図である。
図2において、印刷データ生成部201はコンピュータ101上で印刷データを生成するものであり、例えばプリンタドライバなどになる。印刷データ202は文字、図形、画像などの印刷オブジェクトなどから構成され、例えばXPSデータ、PCLデータなどになる。タイル命令があるものであればデータ形式は問わない。印刷データ解析部203は印刷データ202を解析し、印刷オブジェクト情報209として保存するものである。また、印刷データ解析部203は印刷データ中のタイル命令をタイル描画情報204として保存することができる。
FIG. 2 is a block diagram showing a module configuration of the image processing system shown in FIG.
In FIG. 2, a print data generation unit 201 generates print data on the computer 101, and is, for example, a printer driver. The print data 202 is composed of print objects such as characters, graphics, and images, such as XPS data and PCL data. Any data format can be used as long as it has a tile command. The print data analysis unit 203 analyzes the print data 202 and saves it as print object information 209. Further, the print data analysis unit 203 can store tile instructions in the print data as tile drawing information 204.

タイル描画情報204は、印刷データ中のタイル命令を表す情報であり、図4にて後述する。タイル描画部205はタイル描画情報204に対して繰り返しを行わずにタイル1つ分を描画しタイル画像206を生成するものである。タイル描画部205は、置換された第1のタイル描画命令または第2のタイル描画命令に従い描画命令処理を行う。   The tile drawing information 204 is information representing a tile command in the print data, and will be described later with reference to FIG. The tile drawing unit 205 draws one tile without repeating the tile drawing information 204 and generates a tile image 206. The tile drawing unit 205 performs drawing command processing in accordance with the replaced first tile drawing command or second tile drawing command.

また、タイル描画部205は、タイル描画情報204を描画せずに印刷オブジェクトに変換し、印刷オブジェクト情報209として保存することができる。タイル画像206はタイル描画情報を描画した結果のタイル1つ分の画像である。本実施形態ではタイル画像206を使用している。しかしながら、タイル画像を使用する必要はなく、画像のみからタイル命令が構成されているときはその画像をそのまま使用してもいい。   Further, the tile drawing unit 205 can convert the tile drawing information 204 into a print object without drawing, and save it as print object information 209. The tile image 206 is an image for one tile as a result of drawing the tile drawing information. In the present embodiment, a tile image 206 is used. However, it is not necessary to use a tile image, and when a tile command is composed only of an image, the image may be used as it is.

また、文字、図形などの印刷オブジェクトからタイル命令が構成されているときはその印刷オブジェクトの色をそのまま使用してもいい。平均色取得部207はタイル画像206の平均色を求めるものである。   Further, when a tile command is composed of print objects such as characters and graphics, the color of the print object may be used as it is. The average color acquisition unit 207 obtains the average color of the tile image 206.

これは例えば、タイル画像206の全画素の色の平均値などで求めることができる。印刷オブジェクト生成部208はタイル描画情報204と平均色から印刷オブジェクトを生成し、印刷オブジェクト情報209に保存するものである。印刷オブジェクト情報209は印刷データ中の印刷オブジェクトの情報を格納したものであり、描画部210で描画することで出力データ211の画像データとなる。   This can be obtained by, for example, an average value of colors of all pixels of the tile image 206. The print object generation unit 208 generates a print object from the tile drawing information 204 and the average color and stores it in the print object information 209. The print object information 209 stores information on the print object in the print data, and becomes image data of the output data 211 by drawing with the drawing unit 210.

なお、図2に示すコンピュータ101とプリンタ102の機能ブロック図はこのように配置される必要はなく、いずれかをコンピュータ101で行ってもよいし、いずれかをプリンタ102で行ってもよいし、自由に変更可能である。   Note that the functional block diagrams of the computer 101 and the printer 102 shown in FIG. 2 do not have to be arranged in this way, either one may be performed by the computer 101, either one may be performed by the printer 102, It can be changed freely.

図3に、本実施形態を示す画像処理装置が処理するタイル描画命令300の一例を示す図である。本例は、XPSのタイル描画命令の例である。
図3において、TileMode301が「Tile」の場合、描画命令がタイル描画であることを示す。302はタイル描画命令を描画する領域を示す。303は一つのタイル描画命令の描画間隔を示す。304は、一つのタイル描画命令の描画内容を示す。印刷データ解析部203では、タイル描画命令からタイル描画情報204を保存する。
FIG. 3 is a diagram illustrating an example of a tile drawing command 300 processed by the image processing apparatus according to the present embodiment. This example is an example of an XPS tile drawing command.
In FIG. 3, when TileMode 301 is “Tile”, it indicates that the drawing command is tile drawing. Reference numeral 302 denotes an area for drawing a tile drawing command. Reference numeral 303 denotes a drawing interval of one tile drawing command. Reference numeral 304 denotes the drawing content of one tile drawing command. The print data analysis unit 203 saves the tile drawing information 204 from the tile drawing command.

図4は、図2に示したタイル描画情報204の構成を説明する図である。
印刷データに含まれる各タイル命令は、ここではそれぞれ1行で表現されている。401はタイルを識別するためのタイル識別子である。402は1つのタイルのピクセル値での大きさを表すタイルサイズである。403は繰り返し描画を行ったあとの全タイルのピクセル値での大きさを表す描画サイズである、404は1つのタイルの繰り返し描画をするときの各タイルの間隔を表すタイル繰り返しサイズである。これら401から404などから構成されている。
FIG. 4 is a diagram for explaining the configuration of the tile drawing information 204 shown in FIG.
Here, each tile command included in the print data is represented by one line. 401 is a tile identifier for identifying a tile. Reference numeral 402 denotes a tile size that represents the size of one tile in terms of pixel values. Reference numeral 403 denotes a drawing size representing the size of all tiles after repeated drawing, and reference numeral 404 denotes a tile repetition size representing the interval between tiles when one tile is repeatedly drawn. These 401 to 404 are configured.

図5は、図2に示したタイル描画部205によるタイルの描画結果を表す一例である。
図5において、(a)はタイル命令通りに描画した結果の一例である。細い実線の矩形は各タイル領域を表しており、実際には描画されない。点線の矩形501はタイルサイズ402を表しており、実際には描画されない。同様に点線502はタイルの繰り返しサイズ404を表しており、実際には描画されない。
FIG. 5 shows an example of a tile drawing result by the tile drawing unit 205 shown in FIG.
In FIG. 5, (a) is an example of a result of rendering according to a tile command. A thin solid rectangle represents each tile area and is not actually drawn. A dotted rectangle 501 represents the tile size 402 and is not actually drawn. Similarly, the dotted line 502 represents the tile repeat size 404 and is not actually drawn.

(b)はタイル描画サイズ部分を平均色で描画し、タイルの繰り返しサイズとタイルサイズの差であるタイルの隙間部分は描画しないでタイルを描画した結果の一例である。なお、本実施形態では、白と黒とから構成される色情報を示すが、白黒以外の色情報でも同様に処理される。特に、後述するフローチャートにおいて、描画すべき1つのタイル描画間隔で特定されるタイル繰り返しサイズとタイル描画命令で描画すべき1つのタイル描画で特定されるタイルサイズとを比較した場合に、タイル描画間隔内に隙間が発生すると判断された場合、描画命令の置換処理が切替制御される。ここでの描画命令の置換処理は、黒と白とから50%灰色(中間色)情報に置換される。置換された色情報を平均色情報と呼ぶ。また、(b)に示す描画命令置換処理で置換された描画命令は、当該タイルに描画すべき色情報(白と黒)で決定される平均色情報で当該タイル描画間隔に従う領域を描画する命令である。
(c)はタイルの繰り返しサイズ部分を平均色で描画してタイルを描画し、タイルの繰り返しサイズでタイルを描画した結果の一例である。ここでの描画命令の置換処理は、黒と白と、隙間の色情報から12.5%灰色(中間色)情報に置換される。また、(c)に示す描画命令置換処理で置換された描画命令は、発生する隙間を当該タイルに描画すべき色情報と当該隙間で特定される色情報とで決定される平均色情報で当該タイル描画間隔に従う領域を描画する命令である。
(B) is an example of a result of drawing a tile without drawing a tile gap size portion, which is a difference between the tile repeat size and the tile size, and drawing a tile drawing size portion with an average color. In the present embodiment, color information composed of white and black is shown, but color information other than black and white is similarly processed. In particular, in the flowchart described later, when comparing the tile repetition size specified by one tile drawing interval to be drawn with the tile size specified by one tile drawing to be drawn by a tile drawing command, the tile drawing interval When it is determined that a gap is generated, the drawing command replacement processing is switched. In this drawing command replacement process, black and white are replaced with 50% gray (intermediate color) information. The replaced color information is referred to as average color information. Further, the drawing command replaced by the drawing command replacement process shown in (b) is a command for drawing an area according to the tile drawing interval with average color information determined by color information (white and black) to be drawn on the tile. It is.
(C) is an example of a result of drawing a tile by drawing a repeated size portion of the tile with an average color and drawing the tile with the repeated size of the tile. In this drawing command replacement process, black and white and color information of the gap are replaced with 12.5% gray (intermediate color) information. Further, the drawing command replaced by the drawing command replacement process shown in (c) is the average color information determined by the color information to be drawn on the tile and the color information specified by the gap. This is a command for drawing an area according to a tile drawing interval.

図6は、本実施形態を示す画像処理装置の画像処理方法を示すフローチャートである。本例は、プリンタ102が備えるCPUが記憶された制御プログラムを実行することで実現される。以下、図2に示すモジュールを主体として説明する。
S601にて印刷データ202から印刷データ解析部203で印刷オブジェクトを取得する。S602にて、印刷データ解析部203は、S601で取得した印刷オブジェクトがタイル描画であるかどうか、具体的には、TileMode301が「Tile」であるか否かで判断する。ここで、印刷オブジェクトがTileでないと印刷データ解析部203が判断した場合、S608にて印刷オブジェクトからその印刷オブジェクトを印刷オブジェクト情報209に追加して、S607へ進む。
FIG. 6 is a flowchart illustrating an image processing method of the image processing apparatus according to the present exemplary embodiment. This example is realized by executing a control program stored in the CPU included in the printer 102. Hereinafter, the module shown in FIG. 2 will be mainly described.
In step S <b> 601, the print data analysis unit 203 acquires a print object from the print data 202. In step S <b> 602, the print data analysis unit 203 determines whether the print object acquired in step S <b> 601 is tile drawing, specifically, whether the TileMode 301 is “Tile”. If the print data analysis unit 203 determines that the print object is not Tile, the print object is added from the print object to the print object information 209 in S608, and the process proceeds to S607.

一方、S602にて印刷オブジェクトのTileMode301が「Tile」であると印刷データ解析部203が判断した場合、S603にて、印刷データ202からタイル描画情報204を保存する。そして、S604にて、タイル描画部205は、タイル描画情報204のタイルサイズ402が一定値以下か否かで大小関係を判定する。ここで、判定に使用する一定値は、PDL座標系に対して、デバイス座標系に変換する際にピクセルでタイルの描画内容が表現できるか否かで決めることができる。   On the other hand, if the print data analysis unit 203 determines that the Tile Mode 301 of the print object is “Tile” in S <b> 602, the tile drawing information 204 is saved from the print data 202 in S <b> 603. In step S <b> 604, the tile drawing unit 205 determines the size relationship based on whether the tile size 402 of the tile drawing information 204 is equal to or less than a predetermined value. Here, the fixed value used for the determination can be determined by whether or not the rendering contents of the tile can be expressed by pixels when the PDL coordinate system is converted to the device coordinate system.

例えば、図5に示した点線501がデバイス座標系において1ピクセルでタイル描画内容の格子のサイズが0.5ピクセルで合った場合、タイル501Tの描画内容は、デバイス座標系では正確に表すことができない。この場合は、一定値はタイルサイズがデバイス座標系で2ピクセル以下か否かで判定する。   For example, if the dotted line 501 shown in FIG. 5 is 1 pixel in the device coordinate system and the grid size of the tile drawing content is 0.5 pixel, the drawing content of the tile 501T can be accurately represented in the device coordinate system. Can not. In this case, the fixed value is determined by determining whether the tile size is 2 pixels or less in the device coordinate system.

一方、タイル描画情報204のタイルサイズ402が一定値以下であるとタイル描画部205が判断した場合は、タイル描画部205は、タイル描画命令が正確に表現できないと判断し、S605にて、タイル描画部205は、後述するタイル変換処理を実行し、実行した結果をS606にて印刷オブジェクト情報209に追加する。   On the other hand, when the tile drawing unit 205 determines that the tile size 402 of the tile drawing information 204 is equal to or smaller than a certain value, the tile drawing unit 205 determines that the tile drawing command cannot be accurately expressed, and in step S605, The drawing unit 205 executes a tile conversion process described later, and adds the execution result to the print object information 209 in S606.

一方、タイル描画情報204のタイルサイズ402が一定値以下でないとタイル描画部205が判断した場合は、タイル描画命令が正確に表現できると判断し、S608にて、加工せずにタイル描画情報204を印刷オブジェクト情報209に追加する。これらの処理を印刷データ202のすべて印刷オブジェクトに対して繰り返す(S607)。
尚、繰り返しは、ページ単位でも、矩形単位でもよく印刷データ単位で限定したものではない。
次に、S609にて、描画部210が印刷データ202に対する印刷オブジェクト情報209を描画して、本処理を終了する。
On the other hand, when the tile drawing unit 205 determines that the tile size 402 of the tile drawing information 204 is not equal to or less than a predetermined value, it determines that the tile drawing command can be accurately expressed, and the tile drawing information 204 is processed without being processed in S608. Is added to the print object information 209. These processes are repeated for all print objects of the print data 202 (S607).
Note that the repetition may be a page unit or a rectangle unit, and is not limited to a print data unit.
In step S <b> 609, the drawing unit 210 draws the print object information 209 for the print data 202, and the process ends.

図7は、本実施形態を示す画像処理装置の画像処理方法を示すフローチャートである。本例は、S605に示したタイル変換処理の一例である。各ステップは、プリンタ102が備えるCPUが記憶された制御プログラムを実行することで実現される。以下、図2に示すモジュールを主体として説明する。
S701にて、タイル描画部205は、タイル描画情報204を取得し、S702にて、タイル描画部205は、タイル描画情報204のタイル繰り返しサイズ404からタイルサイズ402を引いた値、つまりタイル描画間の隙間が一定値以下か否かで大小関係を判定する。なお、判定に使用する一定値は、PDL座標系に対して、デバイス座標系に変換する際にピクセルでタイルの描画間の隙間が表現できるか否かでタイル描画方法を切り替えることができる。
FIG. 7 is a flowchart illustrating an image processing method of the image processing apparatus according to the present exemplary embodiment. This example is an example of the tile conversion process shown in S605. Each step is realized by executing a control program stored in the CPU of the printer 102. Hereinafter, the module shown in FIG. 2 will be mainly described.
In S701, the tile drawing unit 205 acquires the tile drawing information 204. In S702, the tile drawing unit 205 subtracts the tile size 402 from the tile repetition size 404 of the tile drawing information 204, that is, between tile drawing information. The magnitude relationship is determined based on whether or not the gap is less than a certain value. Note that the fixed value used for the determination can switch the tile drawing method depending on whether or not a gap between tile drawing can be expressed by pixels when converting to the device coordinate system with respect to the PDL coordinate system.

例えば、図5に示した点線502で囲まれる領域がデバイス座標系において1ピクセル、タイル描画内容の格子のサイズが0.25ピクセル、間隔が0.5ピクセルであった場合、タイル502Tの描画内容およびタイル描画間の隙間は、デバイス座標系では正確に表すことができない。この場合は、一定値はタイル描画間の隙間がデバイス座標系で1ピクセル以下か否かで判定する。   For example, when the area surrounded by the dotted line 502 shown in FIG. 5 is 1 pixel in the device coordinate system, the grid size of the tile drawing content is 0.25 pixel, and the interval is 0.5 pixel, the drawing content of the tile 502T In addition, the gap between tile drawings cannot be represented accurately in the device coordinate system. In this case, the fixed value is determined by whether or not the gap between tile drawing is 1 pixel or less in the device coordinate system.

ここで、タイル描画情報204のタイル繰り返しサイズ404からタイルサイズ402を引いた値が一定値以下であるとタイル描画部205が判断した場合、S703にて、タイル描画部205でタイル描画情報204の繰り返しサイズ404でタイルを描画する。S704にて、平均色取得部207がS703の描画結果から平均色を取得する。   If the tile drawing unit 205 determines that the value obtained by subtracting the tile size 402 from the tile repetition size 404 of the tile drawing information 204 is equal to or less than a certain value, the tile drawing unit 205 stores the tile drawing information 204 in S703. Draw tiles with repeat size 404. In step S704, the average color acquisition unit 207 acquires the average color from the rendering result in step S703.

タイルの描画に関しては、前述のS604にて、デバイス座標系で正確に表すことができないと判定されているため、タイル描画情報204が正確に表現できるサイズで描画し、描画内容から平均色を算出する。
例えば、点線502で囲まれる領域がデバイス座標系において1ピクセル、タイル描画内容である格子のサイズが0.25、タイル描画間の隙間が0.5ピクセルであった場合は、隙間を含めた最低4×4のサイズで描画する。描画結果から16ピクセルの内、2ピクセルが黒のため、図5の(c)のように12.5%の灰色と算出できる。
Regarding tile drawing, since it is determined in S604 that it cannot be accurately expressed in the device coordinate system, drawing is performed with a size that can be accurately expressed by the tile drawing information 204, and an average color is calculated from the drawn contents. To do.
For example, if the area surrounded by the dotted line 502 is 1 pixel in the device coordinate system, the size of the grid that is the tile drawing content is 0.25, and the gap between tile drawing is 0.5 pixel, the minimum including the gap Draw in 4x4 size. From the drawing result, 2 pixels out of 16 pixels are black, so that it can be calculated as 12.5% gray as shown in FIG.

S705にて、図5の(c)で一例として示したように、S704で取得した平均色でタイル描画情報204からタイルサイズ402を繰り返しサイズにかつその描画内容は平均色で塗るタイル描画情報に置き換える。
一方、タイル描画情報204のタイル繰り返しサイズ404からタイルサイズ402を引いた値が一定値以下でないとタイル描画部205が判断した場合は、S706にてタイル描画部205でタイル描画情報204からタイルサイズ402でタイルを描画する。
In S705, as shown as an example in FIG. 5C, the tile size 402 is repeated from the tile drawing information 204 with the average color acquired in S704, and the drawing content is tile drawing information to be painted with the average color. replace.
On the other hand, if the tile drawing unit 205 determines that the value obtained by subtracting the tile size 402 from the tile repetition size 404 of the tile drawing information 204 is not equal to or less than a predetermined value, the tile drawing unit 205 uses the tile drawing information 204 to determine the tile size in S706. At 402, a tile is drawn.

S707にて、平均色取得部207がS706の描画結果から平均色を取得する。タイルの描画に関しては、前述のS604にて、デバイス座標系で正確に表すことができないと判定されているため、タイル描画情報204が正確に表現できるサイズで描画し、描画内容から平均色を算出する。   In step S707, the average color acquisition unit 207 acquires the average color from the rendering result in step S706. Regarding tile drawing, since it is determined in S604 that it cannot be accurately expressed in the device coordinate system, drawing is performed with a size that can be accurately expressed by the tile drawing information 204, and an average color is calculated from the drawn contents. To do.

例えば、図5の(a)に示した点線501で囲まれる領域がデバイス座標系において1ピクセル、タイル描画内容である格子のサイズが0.5、タイル描画間の隙間が1ピクセルであった場合は、隙間を含めず最低2×2のサイズで描画する。描画結果から4ピクセルの内、2ピクセルが黒のため、図5の(b)のように50%の灰色と算出できる。S708にて、図5の(b)で一例として示したように、S707で取得した平均色でタイル描画情報204からタイルの描画内容を平均色で塗るタイル描画情報204に置き換える。   For example, when the area surrounded by the dotted line 501 shown in FIG. 5A is 1 pixel in the device coordinate system, the size of the grid that is the tile drawing content is 0.5, and the gap between the tile drawing is 1 pixel Draws at least 2 × 2 size without gaps. Since 2 pixels out of 4 pixels are black from the drawing result, it can be calculated as 50% gray as shown in FIG. In S708, as shown as an example in FIG. 5B, the tile drawing information 204 is replaced with the tile drawing information 204 for painting the tile drawing content with the average color using the average color acquired in S707.

最後にS709にて、印刷オブジェクト生成部208がS705もしくはS708で変換したタイル描画情報204を印刷オブジェクト情報209に追加して、本処理を終了する。なお、タイルの描画および描画の色を取得する方法は特に本実施形態に限定するものではない。   Finally, in step S709, the tile drawing information 204 converted by the print object generation unit 208 in step S705 or S708 is added to the print object information 209, and this process ends. Note that tile drawing and a method of acquiring the drawing color are not particularly limited to the present embodiment.

以上、本実施形態によれば、一つのタイル描画のサイズが小さく、タイル描画間に隙間がある場合に、タイルの隙間により描画命令を切り替えることで、ユーザが印刷して出力したときのタイルの再現性を向上させることができる。   As described above, according to the present embodiment, when the size of one tile drawing is small and there is a gap between tile drawing, by switching the drawing command by the gap between tiles, the tile of the tile when the user prints and outputs is switched. Reproducibility can be improved.

本発明は、上述の実施形態の1以上の機能を実現するプログラムを、ネットワーク又は記憶媒体を介してシステムまたは装置に供給し、そのシステム又は装置のコンピュータにおける1つ以上のプロセッサがプログラムを読み出し実行する処理でも実現可能である。また、1以上の機能を実現する回路(例えばASIC)によっても実現可能である。   The present invention supplies a program that realizes one or more functions of the above-described embodiments to a system or apparatus via a network or a storage medium, and one or more processors in a computer of the system or apparatus read and execute the program This process can be realized. It can also be realized by a circuit (for example, ASIC) that realizes one or more functions.

801 CPU   801 CPU

Claims (7)

印刷データから解析されるタイル描画命令を処理する画像処理装置であって、
描画すべき1つのタイル描画間隔で特定されるタイル繰り返しサイズと前記タイル描画命令で描画すべき1つのタイル描画で特定されるタイルサイズとを比較してタイル描画間隔内に隙間が発生するかどうかを判断する判断手段と、
前記タイル描画間隔内に隙間が発生すると判断した場合、当該隙間に応じて前記タイル描画命令を第1のタイル描画命令に置換する第1の置換処理と、前記タイル描画命令を第2のタイル描画命令に置換する第2の置換処理を行うように描画命令処理を切替制御する制御手段と、
置換された第1のタイル描画命令または第2のタイル描画命令に従い描画処理を行う描画手段と、
を備えることを特徴とする画像処理装置。
An image processing apparatus for processing a tile drawing command analyzed from print data,
Whether a gap is generated in the tile drawing interval by comparing the tile repetition size specified by one tile drawing interval to be drawn with the tile size specified by one tile drawing to be drawn by the tile drawing command A judging means for judging
When it is determined that a gap is generated within the tile drawing interval, a first replacement process for replacing the tile drawing command with the first tile drawing command according to the gap, and the tile drawing command with the second tile drawing Control means for switching and controlling the drawing command processing so as to perform the second replacement processing for replacing with a command;
Drawing means for performing drawing processing in accordance with the replaced first tile drawing command or second tile drawing command;
An image processing apparatus comprising:
前記第1のタイル描画命令は、発生する隙間を当該タイルに描画すべき色情報と当該隙間で特定される色情報とで決定される平均色情報で当該タイル描画間隔に従う領域を描画する命令であることを特徴とする請求項1に記載の画像処理装置。   The first tile drawing command is a command for drawing a region according to the tile drawing interval with average color information determined by color information to be drawn on the tile and color information specified by the gap. The image processing apparatus according to claim 1, wherein the image processing apparatus is provided. 前記第1のタイル描画命令は、各タイル描画間隔で隙間を生成しない命令であることを特徴とする請求項2記載の画像処理装置。   The image processing apparatus according to claim 2, wherein the first tile drawing command is a command that does not generate a gap at each tile drawing interval. 前記第2のタイル描画命令は、当該タイルに描画すべき色情報で決定される平均色情報で当該タイルサイズに従う領域を描画する命令であることを特徴とする請求項1に記載の画像処理装置。   2. The image processing apparatus according to claim 1, wherein the second tile drawing command is a command for drawing an area according to the tile size with average color information determined by color information to be drawn on the tile. . 前記第2のタイル描画命令は、各タイル描画間隔で隙間を生成する命令であることを特徴とする請求項4記載の画像処理装置。   The image processing apparatus according to claim 4, wherein the second tile drawing command is a command for generating a gap at each tile drawing interval. 印刷データから解析されるタイル描画命令を処理する画像処理装置の画像処理方法であって、
描画すべき1つのタイル描画間隔で特定されるタイル繰り返しサイズと前記タイル描画命令で描画すべき1つのタイル描画で特定されるタイルサイズとを比較してタイル描画間隔内に隙間が発生するかどうかを判断する判断工程と、
前記タイル描画間隔内に隙間が発生すると判断した場合、当該隙間に応じて前記タイル描画命令を第1のタイル描画命令に置換する第1の置換処理と、前記タイル描画命令を第2のタイル描画命令に置換する第2の置換処理を行うように描画命令処理を切替制御する制御工程と、
置換された第1のタイル描画命令または第2のタイル描画命令に従い描画処理を行う描画工程と、
を備えることを特徴とする画像処理装置の画像処理方法。
An image processing method of an image processing apparatus for processing a tile drawing command analyzed from print data,
Whether a gap is generated in the tile drawing interval by comparing the tile repetition size specified by one tile drawing interval to be drawn with the tile size specified by one tile drawing to be drawn by the tile drawing command A judging process for judging
When it is determined that a gap is generated within the tile drawing interval, a first replacement process for replacing the tile drawing command with the first tile drawing command according to the gap, and the tile drawing command with the second tile drawing A control step of switching and controlling the drawing command process so as to perform a second replacement process for replacing with a command;
A drawing step of performing drawing processing in accordance with the replaced first tile drawing command or second tile drawing command;
An image processing method for an image processing apparatus.
請求項6に記載の画像処理装置の画像処理方法をコンピュータに実行させることを特徴とするプログラム。   A program causing a computer to execute the image processing method of the image processing apparatus according to claim 6.
JP2015142102A 2015-07-16 2015-07-16 Image processing device, image processing method of image processing device and program Pending JP2017024190A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2015142102A JP2017024190A (en) 2015-07-16 2015-07-16 Image processing device, image processing method of image processing device and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2015142102A JP2017024190A (en) 2015-07-16 2015-07-16 Image processing device, image processing method of image processing device and program

Publications (1)

Publication Number Publication Date
JP2017024190A true JP2017024190A (en) 2017-02-02

Family

ID=57949093

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2015142102A Pending JP2017024190A (en) 2015-07-16 2015-07-16 Image processing device, image processing method of image processing device and program

Country Status (1)

Country Link
JP (1) JP2017024190A (en)

Similar Documents

Publication Publication Date Title
JP6671188B2 (en) Image forming apparatus, method, and program
JP2011070337A (en) Image processing system and image processing program
JP5821916B2 (en) Image forming method, program for image forming system, recording medium recording program for image forming system, and image forming system
JP6202908B2 (en) Image processing apparatus, image processing method, and program
EP3032498B1 (en) Image processing apparatus, image processing method, and a program
US8566703B2 (en) Page description data processing apparatus, page description data processing method, and recording medium
KR20060134667A (en) Method and apparatus for generating pattern image
JP2015225409A (en) Image processor, print information generation device, image forming apparatus, image formation system and program
JP6482432B2 (en) Drawing command processing apparatus and drawing command processing method
JP2017024190A (en) Image processing device, image processing method of image processing device and program
US20150261486A1 (en) Image processing apparatus and image processing method
JP2017097463A (en) Print control system, print control device, and program
JP6507809B2 (en) Printing instruction device, printing system and program
JP7150487B2 (en) Information processing device, information processing method, and program
JP4853504B2 (en) Image processing program and image processing system
JP7316829B2 (en) Information processing device, information processing method, and program
JP5957979B2 (en) Image processing method, image processing program, and image forming apparatus
JP2013148969A (en) Image processing device and image processing method
JP2020029067A (en) Drawing processing apparatus, drawing processing method, and program
JP2007081886A (en) Drawing processing apparatus
JP2016133901A (en) Print instruction apparatus, printing system, and program
JP2019208164A (en) Drawing processing apparatus, drawing processing method, and program
JP2013033390A (en) Information processing system, drawing processing method and program
JP2020037198A (en) Image processor and image processing program
JP2011155502A (en) Printing system performing color/monochrome determination, printing method, program

Legal Events

Date Code Title Description
RD02 Notification of acceptance of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7422

Effective date: 20180306