JP2011124636A - Printing system, print data generation device, and printer - Google Patents

Printing system, print data generation device, and printer Download PDF

Info

Publication number
JP2011124636A
JP2011124636A JP2009278492A JP2009278492A JP2011124636A JP 2011124636 A JP2011124636 A JP 2011124636A JP 2009278492 A JP2009278492 A JP 2009278492A JP 2009278492 A JP2009278492 A JP 2009278492A JP 2011124636 A JP2011124636 A JP 2011124636A
Authority
JP
Japan
Prior art keywords
contour
pixel
print data
resolution
data
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
JP2009278492A
Other languages
Japanese (ja)
Inventor
Takashi Hiuga
崇 日向
Iwane Ikeda
岩音 池田
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.)
Seiko Epson Corp
Original Assignee
Seiko Epson Corp
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 Seiko Epson Corp filed Critical Seiko Epson Corp
Priority to JP2009278492A priority Critical patent/JP2011124636A/en
Publication of JP2011124636A publication Critical patent/JP2011124636A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Image Processing (AREA)
  • Editing Of Facsimile Originals (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To make print picture quality high in resolution while suppressing an increase in amount of print data. <P>SOLUTION: A print data generation device 100 acquires document data in which contents of a document are described with a predetermined language including line-drawing drawing instructions for drawing a line drawing, and converts the document data into raster data composed of pixel values of a plurality of pixels. Then, based on drawing positions of the line drawing that the line-drawing drawing instructions represent, the print data generation device 100 specifies contour pixels constituting a contour of the line drawing among the plurality of pixels constituting the raster data, and also finds, for each of the contour pixels, a representative passing point representing a representative position that the contour passes in each of the contour pixels, and a gradient value representing a gradient of the contour in each of the contour pixels. The print data generation device 100 generates print data by relating representative pass points and gradient values to contour pixels in the raster data, and transmits the print data to a printer 200. <P>COPYRIGHT: (C)2011,JPO&INPIT

Description

本発明は、印刷装置が印刷を行うために用いる印刷データを生成する技術に関する。   The present invention relates to a technique for generating print data used by a printing apparatus for printing.

近年、例えば、印刷ビジネスの分野などにおいて、インクジェットプリンターやレーザープリンター等の印刷装置に対して、オフセット印刷並の高精細な印刷画質や高速処理が求められている。印刷装置によって高精細感を実現するには、印刷データを生成する装置から印刷装置に転送する印刷データを高解像度化する方法がある。しかし、印刷データを単純に高解像度化すると、印刷装置に転送するデータ量が増大してしまう。そこで、高解像度化した印刷データを圧縮する手法が考えられるが、この場合、文字や線の太さが不均一化や、細線の欠損、文字のつぶれ、ジャギー等が生じるおそれがある。   In recent years, for example, in the field of the printing business, high-definition printing image quality and high-speed processing equivalent to offset printing have been demanded for printing apparatuses such as inkjet printers and laser printers. In order to realize a high-definition feeling with a printing apparatus, there is a method of increasing the resolution of print data transferred from the apparatus that generates print data to the printing apparatus. However, when the resolution of the print data is simply increased, the amount of data transferred to the printing apparatus increases. Therefore, a method of compressing print data with high resolution can be considered, but in this case, the thickness of characters and lines may become uneven, thin lines may be lost, characters may be crushed, and jaggy may occur.

このような問題に関して、例えば、特許文献1には、ボケやジャギーの発生を抑制するために、処理対象画像データの少なくとも一部を利用して、画像の所定特徴量(例えば、エッジ強度)を算出し、この特徴量に基づいて、複数の拡大方法(補間方法)を組み合わせることで、画像を高解像度化する技術が開示されている。   Regarding such a problem, for example, in Patent Document 1, in order to suppress the occurrence of blur and jaggy, a predetermined feature amount (for example, edge strength) of an image is obtained using at least a part of the processing target image data. There is disclosed a technique for increasing the resolution of an image by calculating and combining a plurality of enlargement methods (interpolation methods) based on the feature amount.

しかし、特許文献1に記載の技術は、もともと低解像度の画像データを高解像度化する技術であるため、高精細感を表現するための情報量が不足していた。   However, since the technique described in Patent Document 1 is originally a technique for increasing the resolution of low-resolution image data, the amount of information for expressing a high-definition feeling is insufficient.

特開2005−123812号公報JP 2005-123812 A

上述した問題を踏まえ、本発明が解決しようとする課題は、印刷データのデータ量が増大することを抑制しつつ、印刷画質を高精細化する技術を提供することにある。   In light of the above-described problems, the problem to be solved by the present invention is to provide a technique for improving the print image quality while suppressing an increase in the amount of print data.

本発明は、上述の課題の少なくとも一部を解決するために以下の形態または適用例として実現することが可能である。   The present invention can be realized as the following forms or application examples in order to solve at least a part of the above-described problems.

[適用例1]印刷データ生成装置と印刷装置とを備える印刷システムであって、前記印刷データ生成装置は、線画を描画するための線画描画命令を含む所定の言語によって文書の内容が記述された文書データを取得する文書データ取得部と、前記言語を解析して、前記文書データを、複数の画素の画素値によって構成されるラスターデータに変換するラスター変換部と、前記線画描画命令が表す線画の描画位置に基づき、前記ラスターデータを構成する複数の画素のうち、前記線画の輪郭を構成する輪郭画素を特定する輪郭画素特定部と、前記輪郭画素のそれぞれについて、該輪郭画素内を前記輪郭が通る代表的な位置を表す代表通過点と、該輪郭画素内における前記輪郭の傾きを表す勾配値とを求める輪郭情報生成部と、前記ラスターデータ中の前記輪郭画素に対して前記代表通過点と前記勾配値とを関連付けた印刷データを生成する印刷データ生成部と、を備え、前記印刷装置は、前記印刷データ生成装置から前記印刷データを取得する印刷データ取得部と、前記印刷データ中の前記ラスターデータを構成する各画素を高解像度化すると共に、該ラスターデータ中の前記輪郭画素については、該輪郭画素の画素値と、該輪郭画素に関連付けられた前記代表通過点および前記勾配値と、に基づき、該輪郭画素に含まれる複数の高解像度後の画素のそれぞれについて前記輪郭を再現するための画素値を決定する解像度変換部と、前記高解像度化されたラスターデータが表す画像の印刷を行う印刷部と、を備える、印刷システム。 Application Example 1 A printing system including a print data generation device and a print device, wherein the print data generation device describes the contents of a document in a predetermined language including a line drawing drawing command for drawing a line drawing A document data acquisition unit that acquires document data; a raster conversion unit that analyzes the language and converts the document data into raster data composed of pixel values of a plurality of pixels; and a line drawing represented by the line drawing drawing command A contour pixel specifying unit that specifies a contour pixel that constitutes the contour of the line drawing among a plurality of pixels that constitute the raster data based on the drawing position of the contour data, and the contour pixel within the contour pixel for each of the contour pixels A contour information generation unit for obtaining a representative passing point representing a representative position through which the image passes, and a gradient value representing the gradient of the contour in the contour pixel; and the raster data A print data generation unit that generates print data in which the representative passing point and the gradient value are associated with the contour pixel in the image processing apparatus, and the printing apparatus acquires the print data from the print data generation apparatus A print data acquisition unit that increases resolution of each pixel that constitutes the raster data in the print data, and for the contour pixel in the raster data, the pixel value of the contour pixel and the contour pixel A resolution conversion unit that determines a pixel value for reproducing the contour for each of a plurality of high-resolution pixels included in the contour pixel based on the associated representative passing point and the gradient value; and And a printing unit that prints an image represented by raster data with high resolution.

このような構成の印刷システムでは、文書データ中の輪郭部分については、印刷データ生成装置がラスターデータに関連付けた代表通過点と勾配値とを用いることで、印刷装置側で高解像度化を行う。そのため、印刷データのデータ量が増大することを抑制しつつ、印刷の見栄えに強く関わる輪郭部分を高精細化することが可能になる。また、ラスターデータに関連付けられる勾配値と代表通過点とは、それぞれ、輪郭画素内における輪郭の傾きと、輪郭が通過する代表的な位置とを表すので、高解像度化を行うための情報量が不足することがない。この結果、印刷装置側で輪郭を滑らかに表現することが可能になる。また、輪郭画素以外の画素については、印刷装置は、単純に、画素を分割することによって高解像度化することができるため、印刷処理の高速化を図ることが可能になる。   In the printing system having such a configuration, for the contour portion in the document data, the print data generation apparatus uses the representative passing point and the gradient value associated with the raster data, thereby increasing the resolution on the printing apparatus side. For this reason, it is possible to increase the definition of a contour portion that is strongly related to the appearance of printing while suppressing an increase in the amount of print data. In addition, the gradient value associated with the raster data and the representative passing point respectively represent the inclination of the contour in the contour pixel and the representative position through which the contour passes. Therefore, the amount of information for increasing the resolution is small. There is no shortage. As a result, the contour can be expressed smoothly on the printing apparatus side. For pixels other than the contour pixels, the printing apparatus can increase the resolution by simply dividing the pixels, so that the printing process can be speeded up.

[適用例2]適用例1に記載の印刷システムであって、前記印刷データ生成装置は、更に、前記線画描画命令を、線分を描画する1つ以上の線分描画命令に変換する命令変換部を備え、前記輪郭情報生成部は、前記各線分描画命令に含まれる前記線分の始点と終点と基づいて、前記代表通過点と前記勾配値とを求める、印刷システム。
このような構成であれば、線分描画命令に含まれる線分の始点と終点と基づいて、代表通過点と勾配値とを容易に求めることが可能になる。
Application Example 2 In the printing system according to Application Example 1, the print data generation apparatus further converts the line drawing drawing command into one or more line drawing commands for drawing a line segment. And the contour information generation unit obtains the representative passing point and the gradient value based on the start point and end point of the line segment included in each line segment drawing command.
With such a configuration, it is possible to easily obtain the representative passing point and the gradient value based on the start point and end point of the line segment included in the line segment drawing command.

[適用例3]適用例1または適用例2に記載の印刷システムであって、前記勾配値は、前記輪郭の傾きとともに、該輪郭を境界とした前記輪郭画素内の塗りつぶし方向を表し、前記解像度変換部は、前記高解像度化された前記輪郭画素について、前記勾配値と前記代表通過点とによって表される輪郭を境界として、前記勾配値が表す塗りつぶし方向側の塗りつぶしを行う、印刷システム。
このような構成であれば、勾配値が、輪郭画素内の塗りつぶし方向をも表すため、印刷データのデータ量を削減することができる。
[Application Example 3] In the printing system according to Application Example 1 or Application Example 2, the gradient value represents, along with the inclination of the outline, a filling direction in the outline pixel with the outline as a boundary, and the resolution The conversion unit is configured to perform filling on the filling direction side represented by the gradient value, with the outline represented by the gradient value and the representative passing point as a boundary for the high-resolution outline pixel.
With such a configuration, since the gradient value also represents the filling direction in the contour pixel, the data amount of the print data can be reduced.

[適用例4]適用例1ないし適用例3のいずれか一項に記載の印刷システムであって、前記輪郭情報生成部は、前記輪郭の傾きを、予め決められた複数種類の傾きのいずれかに近似し、該予め決められた複数種類の傾きに対してそれぞれ一意に付与された番号によって前記勾配値を表す、印刷システム。
このような構成であれば、勾配値のデータ量が制限されるため、印刷データのデータ量を削減することができる。
[Application Example 4] In the printing system according to any one of Application Examples 1 to 3, the outline information generation unit may set the inclination of the outline to any one of a plurality of predetermined inclinations. And the gradient value is represented by a number uniquely assigned to each of the plurality of predetermined gradients.
With such a configuration, since the data amount of the gradient value is limited, the data amount of the print data can be reduced.

[適用例5]適用例1ないし適用例4のいずれか一項に記載の印刷システムであって、前記輪郭情報生成部は、前記代表通過点として、前記輪郭画素の中心を原点とする直交座標系における前記輪郭と前記直交座標のx軸またはy軸との交点を求める、印刷システム。
このような構成であれば、輪郭画素内を通る輪郭の位置を適切に特定することができる。
Application Example 5 In the printing system according to any one of Application Example 1 to Application Example 4, the contour information generation unit may be an orthogonal coordinate having an origin at the center of the contour pixel as the representative passing point. A printing system for obtaining an intersection of the contour in the system and the x-axis or y-axis of the orthogonal coordinates.
With such a configuration, it is possible to appropriately specify the position of the contour passing through the contour pixel.

[適用例6]適用例5に記載の印刷システムであって、前記輪郭情報生成部は、前記直交座標系におけるx軸上およびy軸上の予め決められた複数の座標のいずれかに前記交点の位置を近似し、該近似された位置に予め付与された一意の番号によって前記代表通過点を表す、印刷システム。
このような構成であれば、代表通過点のデータ量が制限されるため、印刷データのデータ量を削減することができる。
[Application Example 6] In the printing system according to Application Example 5, the contour information generation unit may set the intersection point to one of a plurality of predetermined coordinates on the x-axis and the y-axis in the orthogonal coordinate system. And the representative passing point is represented by a unique number previously assigned to the approximated position.
With such a configuration, the data amount of the representative passing point is limited, so that the data amount of the print data can be reduced.

[適用例7]適用例1ないし適用例6のいずれか一項に記載の印刷システムであって、前記解像度変換部は、前記印刷装置の印刷解像度に応じて、前記高解像度化の倍率を調整する、印刷システム。
このような構成であれば、印刷装置の印刷解像度に応じた精細度で、線画の輪郭部分を再現することができる。
[Application Example 7] The printing system according to any one of Application Example 1 to Application Example 6, wherein the resolution conversion unit adjusts the magnification for increasing the resolution according to the printing resolution of the printing apparatus. A printing system.
With such a configuration, it is possible to reproduce the outline portion of the line drawing with a fineness according to the printing resolution of the printing apparatus.

[適用例8]印刷データ生成装置であって、線画を描画するための線画描画命令を含む所定の言語によって文書の内容が記述された文書データを取得する文書データ取得部と、前記言語を解析して、前記文書データを、複数の画素の画素値によって構成されるラスターデータに変換するラスター変換部と、前記線画描画命令が表す線画の描画位置に基づき、前記ラスターデータを構成する複数の画素のうち、前記線画の輪郭を構成する輪郭画素を特定する輪郭画素特定部と、前記輪郭画素のそれぞれについて、該輪郭画素内を前記輪郭が通る代表的な位置を表す代表通過点と、該輪郭画素内における前記輪郭の傾きを表す勾配値とを求める輪郭情報生成部と、前記ラスターデータ中の前記輪郭画素に対して前記代表通過点と前記勾配値とを関連付けた印刷データを生成する印刷データ生成部と、を備える印刷データ生成装置。 Application Example 8 A print data generation apparatus, a document data acquisition unit that acquires document data in which a document content is described in a predetermined language including a line drawing drawing command for drawing a line drawing, and analyzes the language Then, based on a raster conversion unit that converts the document data into raster data constituted by pixel values of a plurality of pixels, and a line drawing drawing position represented by the line drawing drawing command, a plurality of pixels that constitute the raster data An outline pixel specifying unit for specifying an outline pixel constituting the outline of the line drawing, a representative passing point representing a representative position where the outline passes through the outline pixel for each of the outline pixels, and the outline A contour information generating unit for obtaining a gradient value representing the gradient of the contour in a pixel, and relating the representative passing point and the gradient value to the contour pixel in the raster data. Print data generating apparatus comprising: a print data generating unit that generates print data attached, a.

[適用例9]複数の画素の画素値によって構成されるラスターデータを含む印刷データを取得して印刷を行う印刷装置であって、前記ラスターデータには、該ラスターデータを構成する複数の画素のうち、前記印刷データが表す文書内の線画の輪郭を構成する各輪郭画素に対して、該輪郭画素内を前記輪郭が通る代表的な位置を表す代表通過点と、該輪郭画素内における前記輪郭の傾きを表す勾配値とが関連付けて記録されており、前記印刷データ中の前記ラスターデータを構成する各画素を高解像度化すると共に、該ラスターデータ中の前記輪郭画素については、該輪郭画素の画素値と、該輪郭画素に関連付けられた前記代表通過点および前記勾配値と、に基づき、該輪郭画素に含まれる複数の高解像度後の画素のそれぞれについて前記輪郭を再現するための画素値を決定する解像度変換部と、前記高解像度化されたラスターデータが表す画像の印刷を行う印刷部と、を備える印刷装置。 Application Example 9 A printing apparatus that performs printing by acquiring print data including raster data composed of pixel values of a plurality of pixels, and the raster data includes a plurality of pixels that constitute the raster data. Among them, for each contour pixel constituting the contour of the line drawing in the document represented by the print data, a representative passing point representing a representative position where the contour passes through the contour pixel, and the contour in the contour pixel Are recorded in association with each other, the resolution of each pixel constituting the raster data in the print data is increased, and the contour pixels in the raster data are Based on the pixel value and the representative passing point and the gradient value associated with the contour pixel, the circle for each of a plurality of high-resolution pixels included in the contour pixel Printing apparatus comprising: a resolution converting unit for determining the pixel values for reproducing, and a printing unit that performs printing of the high resolution raster data represents an image.

本発明は、上述した印刷システムや印刷データ生成装置、印刷装置としての構成のほか、印刷データの生成方法や印刷方法、これらの方法を実現するためのコンピュータプログラムとしても構成することができる。かかるコンピュータプログラムは、コンピュータが読取可能な記録媒体に記録されていてもよい。記録媒体としては、例えば、フレキシブルディスクやCD−ROM、DVD−ROM、光磁気ディスク、メモリーカード、ハードディスク等の種々の媒体を利用することができる。   The present invention can be configured as a print system, a print data generation apparatus, a print apparatus, a print data generation method, a print method, and a computer program for realizing these methods. Such a computer program may be recorded on a computer-readable recording medium. As the recording medium, various media such as a flexible disk, a CD-ROM, a DVD-ROM, a magneto-optical disk, a memory card, and a hard disk can be used.

本発明の実施例としての印刷システムの概略構成を示す説明図である。1 is an explanatory diagram showing a schematic configuration of a printing system as an embodiment of the present invention. 印刷データの概要を示す説明図である。It is explanatory drawing which shows the outline | summary of print data. 印刷データ生成処理のフローチャートである。5 is a flowchart of print data generation processing. 勾配値の特定方法を示す説明図である。It is explanatory drawing which shows the identification method of gradient value. 代表通過点の特定方法を示す説明図である。It is explanatory drawing which shows the identification method of a representative passing point. 輪郭情報の具体例を示す説明図である。It is explanatory drawing which shows the specific example of outline information. 印刷データのデータ形式を示す説明図である。It is explanatory drawing which shows the data format of print data. ラスターデータの具体例を示す説明図である。It is explanatory drawing which shows the specific example of raster data. 印刷処理のフローチャートである。It is a flowchart of a printing process. 解像度変換処理の詳細なフローチャートである。It is a detailed flowchart of a resolution conversion process. 実施例の効果を示す図である。It is a figure which shows the effect of an Example. バンド毎に分割された印刷データのデータ形式の一例を示す説明図である。It is explanatory drawing which shows an example of the data format of the print data divided | segmented for every band. 線分の傾きや切片の値をそのまま画素情報に付加する例を示す図である。It is a figure which shows the example which adds the inclination and intercept value of a line segment to pixel information as it is. 印刷装置が自己の出力解像度に応じて解像度変換を行う概要を示す説明図である。It is explanatory drawing which shows the outline | summary in which a printing apparatus performs resolution conversion according to its output resolution. 印刷装置の出力解像度に応じて勾配値と代表通過点の付与方法を変更する概念を示す説明図である。It is explanatory drawing which shows the concept which changes the provision method of a gradient value and a representative passage point according to the output resolution of a printing apparatus. 代表通過点の他の割り当て方法を示す図である。It is a figure which shows the other allocation method of a representative passing point.

以下、本発明の実施の形態を実施例に基づき次の順序で説明する。
A.印刷システムの概略構成:
B.印刷データ生成処理:
C.印刷処理:
D.変形例:
Hereinafter, embodiments of the present invention will be described in the following order based on examples.
A. General configuration of the printing system:
B. Print data generation processing:
C. Printing process:
D. Variations:

A.印刷システムの概略構成:
図1は、本発明の一実施例としての印刷システム10の概略構成を示す説明図である。本実施例の印刷システム10は、印刷データ生成装置100と印刷装置200とによって構成されている。印刷データ生成装置100と印刷装置200とは、ネットワーク12を介して接続されている。印刷データ生成装置100からは、このネットワーク12を介して、印刷データが印刷装置200に転送される。なお、印刷データ生成装置100と印刷装置200とは、ネットワーク12以外にも、USBインターフェースやパラレルインターフェース等によって接続されていても良い。
A. General configuration of the printing system:
FIG. 1 is an explanatory diagram showing a schematic configuration of a printing system 10 as an embodiment of the present invention. The printing system 10 according to the present exemplary embodiment includes a print data generation apparatus 100 and a printing apparatus 200. The print data generation apparatus 100 and the printing apparatus 200 are connected via the network 12. Print data is transferred from the print data generation apparatus 100 to the printing apparatus 200 via the network 12. Note that the print data generation apparatus 100 and the printing apparatus 200 may be connected by a USB interface, a parallel interface, or the like in addition to the network 12.

図2は、印刷データ生成装置100によって生成される印刷データの概要を示す説明図である。図2(a)に示すように、本実施例では、印刷データ生成装置100は、PDL(ページ記述言語)で記述された文書データを印刷データに変換する。文書データには、例えば、ベクトル形式の線画(文字や図形を含む)やビットマップ形式の画像が含まれる。印刷データ生成装置100は、まず、印刷データの生成にあたり、この文書データを、図2(b)に示すように、ラスターデータに変換する処理を行う。図2(b)には、図2(a)中に示した文字「C」の一部をラスターデータに変換した様子を示している。このラスターデータは、例えば、600dpi×600dpiの解像度を有する。印刷データ生成装置100は、文書データ中の描画命令に基づき、このラスターデータから、文字や図形などの線画の輪郭部分に存在する画素(以下、「輪郭画素」という)を判別する。そして、図2(c)に示すように、輪郭画素を印刷装置200によって、例えば、2400dpi×2400dpiに高解像度化することが可能な情報(以下、「輪郭情報」という)をラスターデータに付加する。本実施例では、こうして、ラスターデータと輪郭情報とを含むデータが、印刷データとして生成される。   FIG. 2 is an explanatory diagram showing an outline of print data generated by the print data generation apparatus 100. As shown in FIG. 2A, in this embodiment, the print data generation apparatus 100 converts document data described in PDL (page description language) into print data. The document data includes, for example, vector format line drawings (including characters and graphics) and bitmap format images. The print data generation apparatus 100 first performs processing for converting the document data into raster data as shown in FIG. 2B when generating the print data. FIG. 2B shows a state where a part of the character “C” shown in FIG. 2A is converted into raster data. This raster data has, for example, a resolution of 600 dpi × 600 dpi. The print data generation apparatus 100 determines pixels (hereinafter referred to as “contour pixels”) present in the outline portion of a line drawing such as a character or a graphic from the raster data based on a drawing command in the document data. Then, as shown in FIG. 2C, information (hereinafter referred to as “contour information”) that can increase the resolution of the contour pixel to 2400 dpi × 2400 dpi by the printing apparatus 200 is added to the raster data. . In the present embodiment, data including raster data and contour information is thus generated as print data.

図1に示すように、印刷データ生成装置100は、CPU110、メモリー150、ハードディスク160、ネットワークインターフェース170、I/O制御部180が、所定の内部バスによって接続されたコンピュータとして構成されている。I/O制御部180には、図示していないキーボードやマウス、ディスプレイ等が接続される。   As shown in FIG. 1, the print data generation apparatus 100 is configured as a computer in which a CPU 110, a memory 150, a hard disk 160, a network interface 170, and an I / O control unit 180 are connected by a predetermined internal bus. The I / O control unit 180 is connected to a keyboard, mouse, display, etc., not shown.

CPU110は、メモリー150を作業領域としてアプリケーションプログラム112とプリンタードライバー114とを所定のオペレーティングシステムの下で実行する。本実施例のアプリケーションプログラム112は、PDL(ページ記述言語)で記述された文書データを印刷する機能を備えている。アプリケーションプログラム112によって文書データの印刷機能が呼び出されると、アプリケーションプログラム112からプリンタードライバー114に文書データが引き渡され、プリンタードライバー114によって、文書データが印刷データに変換される。この印刷データは、ネットワークインターフェース170を介して印刷装置200に送信される。   The CPU 110 executes the application program 112 and the printer driver 114 under a predetermined operating system using the memory 150 as a work area. The application program 112 of this embodiment has a function of printing document data described in PDL (page description language). When the print function of the document data is called by the application program 112, the document data is delivered from the application program 112 to the printer driver 114, and the document data is converted into print data by the printer driver 114. This print data is transmitted to the printing apparatus 200 via the network interface 170.

プリンタードライバー114は、その機能部として、文書データ取得部120と、PDL変換部122と、ラスター変換部124と、輪郭画素特定部126と、輪郭情報生成部128と、印刷データ生成部130と、印刷データ送信部132と、を備えている。   The printer driver 114 includes, as its functional units, a document data acquisition unit 120, a PDL conversion unit 122, a raster conversion unit 124, a contour pixel specifying unit 126, a contour information generation unit 128, a print data generation unit 130, A print data transmission unit 132.

文書データ取得部120は、アプリケーションプログラム112から、PDLで記述された文書データを取得する。   The document data acquisition unit 120 acquires document data described in PDL from the application program 112.

PDL変換部122は、文書データに含まれる描画命令を、より低級な描画命令に変換する。具体的には、図形や文字を描画する命令を、すべて、線分を描画する命令(以下、「線分描画命令」という)に変換する処理を行う。この変換処理により、文書データ中の文字や図形は、複数の線分描画命令による線分によってその輪郭が描画されることになる。   The PDL conversion unit 122 converts the drawing command included in the document data into a lower drawing command. Specifically, processing for converting all commands for drawing graphics and characters into commands for drawing line segments (hereinafter referred to as “line segment drawing commands”) is performed. As a result of this conversion processing, the outlines of characters and graphics in the document data are drawn by line segments according to a plurality of line segment drawing commands.

ラスター変換部124は、PDL変換部122によって低級な命令に変換された文書データを、複数の画素から構成されるラスターデータに変換する。ラスターデータには、各画素の画素値がRGB形式で記録される。本実施例では、このラスターデータは、600dpi×600dpiの解像度を有するものとする。なお、本実施例では、画素値をRGB形式で記録することとするが、CMYK形式で記録することとしてもよい。この場合、後述する印刷装置200側の印刷処理では、色変換処理を省略することが可能である。   The raster conversion unit 124 converts the document data converted into a lower instruction by the PDL conversion unit 122 into raster data composed of a plurality of pixels. In the raster data, pixel values of each pixel are recorded in RGB format. In this embodiment, it is assumed that the raster data has a resolution of 600 dpi × 600 dpi. In this embodiment, the pixel values are recorded in the RGB format, but may be recorded in the CMYK format. In this case, the color conversion process can be omitted in the printing process on the printing apparatus 200 side described later.

輪郭画素特定部126は、線分描画命令が表す太さゼロの理想的な線分の描画位置に基づいて、ラスターデータを構成する画素のうち、この線分が内部を通る画素を「輪郭画素」として特定する。   Based on the ideal drawing position of the zero-thick line segment represented by the line drawing command, the outline pixel specifying unit 126 determines the pixel in which the line segment passes through the inside of the pixels constituting the raster data as “contour pixel”. ".

輪郭情報生成部128は、前述した線分描画命令によって表される線分の始点と終点とに基づき、輪郭画素内をこの線分が通る代表的な位置を表す代表通過点を求め、更に、この線分の傾きを表す勾配値を求める。輪郭情報生成部128は、こうして求めた代表通過点と勾配値とに基づき、「輪郭情報」を生成する。輪郭情報のデータ形式については後述する。   The contour information generation unit 128 obtains a representative passing point representing a representative position where the line segment passes through the contour pixel based on the start point and the end point of the line segment represented by the above-described line segment drawing command. A slope value representing the slope of this line segment is obtained. The contour information generation unit 128 generates “contour information” based on the representative passing point and the gradient value thus obtained. The data format of the contour information will be described later.

印刷データ生成部130は、ラスター変換部124によって得られたラスターデータ中の各画素に対して上述した輪郭情報を属性情報として関連付けることで、印刷データを生成する。なお、本実施例において印刷データとは、文書データの印刷のために、印刷データ生成装置100から印刷装置200に転送されるデータのことをいう。   The print data generation unit 130 generates print data by associating the above-described contour information as attribute information with each pixel in the raster data obtained by the raster conversion unit 124. In the present embodiment, the print data refers to data transferred from the print data generation apparatus 100 to the printing apparatus 200 for printing document data.

印刷データ送信部132は、印刷データ生成部130によって生成された印刷データを、ネットワークインターフェース170を制御して印刷装置200に送信する。   The print data transmission unit 132 controls the network interface 170 to transmit the print data generated by the print data generation unit 130 to the printing apparatus 200.

印刷装置200は、制御回路210と、プリンターエンジン240と、イメージスキャナー250と、ユーザからの各種操作を受け付ける操作部260と、ユーザーインターフェース等を表示する表示部270と、ネットワークインターフェース280とを備えている。プリンターエンジン240は、印刷用紙の給紙や、印字ヘッドの走査、インクの吐出など、印刷用紙に実際に印刷を行う機能を有する機構部分である。   The printing apparatus 200 includes a control circuit 210, a printer engine 240, an image scanner 250, an operation unit 260 that receives various operations from a user, a display unit 270 that displays a user interface and the like, and a network interface 280. Yes. The printer engine 240 is a mechanism portion that has a function of actually printing on the printing paper, such as feeding the printing paper, scanning the print head, and ejecting ink.

制御回路210は、メモリー212とCPU214とを備えている。CPU214は、メモリー212に記憶された制御プログラムを実行することで、印刷データ受信部220、解像度変換部222、色変換部224、ハーフトーン処理部226、データ並べ替え部228、として機能する。   The control circuit 210 includes a memory 212 and a CPU 214. The CPU 214 functions as a print data receiving unit 220, a resolution conversion unit 222, a color conversion unit 224, a halftone processing unit 226, and a data rearrangement unit 228 by executing a control program stored in the memory 212.

印刷データ受信部220は、ネットワークインターフェース280を制御して、印刷データ生成装置100から印刷データを受信する。   The print data receiving unit 220 controls the network interface 280 to receive print data from the print data generation apparatus 100.

解像度変換部222は、印刷データ生成装置100から受信した印刷データに含まれるラスターデータを高解像度化する。ラスターデータ中の輪郭画素については、その輪郭情報(代表通過点および勾配値)に基づき、輪郭の高解像度化を行う。高解像度化を行うための具体的な処理内容は後述する。   The resolution conversion unit 222 increases the resolution of raster data included in the print data received from the print data generation apparatus 100. For the contour pixels in the raster data, the resolution of the contour is increased based on the contour information (representative passing points and gradient values). Specific processing contents for increasing the resolution will be described later.

色変換部224は、解像度変換部222によって高解像度化されたラスターデータの画素値を、RGB形式からCMYK形式に変換する。   The color conversion unit 224 converts the pixel value of the raster data whose resolution has been increased by the resolution conversion unit 222 from the RGB format to the CMYK format.

ハーフトーン処理部226は、色変換されたラスターデータの各色(C,M,Y,K)それぞれについて2値化あるいは多値化を行い、網点パターンを生成する。混色の色調は、網点パターンの重ね合わせによって表現される。   The halftone processing unit 226 binarizes or multivalues each color (C, M, Y, K) of the color-converted raster data to generate a halftone dot pattern. The color tone of the mixed color is expressed by superposition of halftone dot patterns.

データ並び替え部228は、ハーフトーン処理部226によって得られた網点パターンのデータの並びを、プリンターエンジン240が備える印字ヘッドのノズルの配列に従って並び替える。データ並び替え部228によって並び替えられたデータは、プリンターエンジン240に出力され、印刷用紙へのドットの形成に用いられる。   The data rearrangement unit 228 rearranges the data pattern of the halftone dot pattern obtained by the halftone processing unit 226 in accordance with the nozzle arrangement of the print head provided in the printer engine 240. The data rearranged by the data rearrangement unit 228 is output to the printer engine 240 and used for forming dots on the printing paper.

B.印刷データ生成処理:
図3は、印刷データ生成装置100のプリンタードライバー114によって実行される印刷データ生成処理のフローチャートである。この印刷データ生成処理は、アプリケーションプログラム112の印刷機能によってプリンタードライバー114が呼び出された際に実行される処理である。この印刷データ生成処理が実行されると、まず、プリンタードライバー114の文書データ取得部120が、アプリケーションプログラム112から印刷対象の文書データ(PDLデータ)を取得する(ステップS100)。
B. Print data generation processing:
FIG. 3 is a flowchart of print data generation processing executed by the printer driver 114 of the print data generation apparatus 100. This print data generation process is a process executed when the printer driver 114 is called by the print function of the application program 112. When the print data generation process is executed, first, the document data acquisition unit 120 of the printer driver 114 acquires document data (PDL data) to be printed from the application program 112 (step S100).

文書データが取得されると、プリンタードライバー114のPDL変換部122が、文書データに含まれる描画命令を低級な描画命令に変換し、メモリー150に記録する(ステップS105)。この変換により、文書データ中の曲線描画命令や文字描画命令は、線分描画命令に置き換えられる。つまり、文書データ中の線画部分が、すべて、線分によって表されることになる。なお、例えば、文書中にビットマップ画像を配置する命令や、図形の線種や色を指定する命令などは、線分描画命令には変換されない。   When the document data is acquired, the PDL conversion unit 122 of the printer driver 114 converts the drawing command included in the document data into a lower drawing command and records it in the memory 150 (step S105). By this conversion, the curve drawing command and the character drawing command in the document data are replaced with the line segment drawing command. That is, all line drawing parts in the document data are represented by line segments. Note that, for example, an instruction to place a bitmap image in a document, an instruction to specify a line type or color of a graphic, and the like are not converted into a line segment drawing instruction.

文書データ中の描画命令の低級な描画命令への変換が行われると、プリンタードライバー114のラスター変換部124が、メモリー150に記録された描画命令を1つずつ取得し(ステップS110)、その描画命令が表す図形を所定の解像度(本実施例では、600dpi×600dpi)でラスターデータに変換する(ステップS115)。   When the drawing command in the document data is converted into a lower drawing command, the raster conversion unit 124 of the printer driver 114 acquires the drawing commands recorded in the memory 150 one by one (step S110), and the drawing is performed. The figure represented by the command is converted into raster data at a predetermined resolution (in this embodiment, 600 dpi × 600 dpi) (step S115).

続いて、プリンタードライバー114の輪郭画素特定部126が、ラスターデータへの変換対象となった描画命令が、背景に対して線分を描画する線分描画命令であるかを判断する(ステップS120)。線分描画命令は、例えば、「LineTo(X1,Y1,X2,Y2)」といった形式によって表される。この命令において、(X1,Y1)は線分の始点の座標を表し、(X2,Y2)は線分の終点の座標を表している。この線分描画命令で描画される線分の色は、予め、色指定命令によって指定される。なお、「背景」とは、その部分に文字や図形、画像が何も配置されていない部分のことをいう。輪郭画素特定部126は、対象となる描画命令の実行前に、同一部分にラスターデータが既に配置されていなければ、その描画命令は、背景に対して描画を行う命令であると判断することができる。   Subsequently, the contour pixel specifying unit 126 of the printer driver 114 determines whether the drawing command to be converted into raster data is a line drawing command for drawing a line segment on the background (step S120). . The line segment drawing command is represented by a format such as “LineTo (X1, Y1, X2, Y2)”, for example. In this command, (X1, Y1) represents the coordinates of the start point of the line segment, and (X2, Y2) represents the coordinates of the end point of the line segment. The color of the line segment drawn by this line segment drawing command is designated in advance by the color designation command. Note that “background” refers to a portion where no characters, graphics, or images are arranged in the portion. If the raster data is not already arranged in the same portion before the execution of the target drawing command, the contour pixel specifying unit 126 can determine that the drawing command is a command for drawing the background. it can.

ラスターデータに変換された描画命令が、背景に対して線分を描画する線分描画命令であれば、輪郭画素特定部126は、その線分描画命令が表す太さゼロの理想的な線分の描画位置に基づいて、この線分が内部を通る画素を、それぞれ輪郭画素として特定する(ステップS125)。輪郭画素が特定されると、プリンタードライバー114の輪郭情報生成部128が、線分描画命令に含まれる始点と終点とに基づき、各輪郭画素について、その輪郭画素内を通る線分の傾きを求め、更に、その輪郭画素の中心を原点とした直交座標系を考えた場合における線分のx切片(線分とx軸との交点)とy切片(線分とy軸との交点)とを求める(ステップS130)。線分の傾きやx切片、y切片は周知の公式に基づき求めることができる。輪郭情報生成部128は、線分の傾きを求める際には、線分の右側が塗りつぶし部分となるように傾きの方向を決定する。こうして線分の傾き、x切片およびy切片を求めると、輪郭情報生成部128は、これらの値に基づき、各輪郭画素について、勾配値と代表通過点とを特定する(ステップS135)。   If the drawing command converted into the raster data is a line drawing command for drawing a line segment with respect to the background, the contour pixel specifying unit 126 has an ideal line segment with a zero thickness represented by the line drawing command. Based on the drawing position, each pixel through which the line segment passes is specified as a contour pixel (step S125). When the contour pixel is specified, the contour information generation unit 128 of the printer driver 114 obtains the slope of the line segment passing through the contour pixel for each contour pixel based on the start point and the end point included in the line segment drawing command. Further, the x-intercept (intersection of the line segment and the x-axis) and the y-intercept (intersection of the line segment and the y-axis) in the case of an orthogonal coordinate system with the center of the contour pixel as the origin are considered. Obtained (step S130). The slope, x-intercept, and y-intercept of the line segment can be obtained based on a well-known formula. When obtaining the slope of the line segment, the contour information generation unit 128 determines the direction of the slope so that the right side of the line segment is a filled portion. When the inclination, x-intercept and y-intercept are thus obtained, the contour information generation unit 128 identifies the gradient value and the representative passing point for each contour pixel based on these values (step S135).

図4は、勾配値の特定方法を示す説明図である。本実施例において、勾配値は、輪郭画素を印刷装置200の出力解像度に応じて高解像度化したと想定した場合において、輪郭画素の中心から輪郭画素の外周上の各格子点を向く方向にそれぞれ割り当てられた番号(本実施例では0〜15)によって表される。輪郭情報生成部128は、ステップS130で求めた傾きを、図4に示す16方向のいずれかの傾きに近似し、こうして近似した傾きに割り振られた番号を勾配値として特定する。このように、本実施例では、勾配値は10進数で0から15までの数値(16進数では、0からF)であるため、4ビットのデータによって表すことができる。   FIG. 4 is an explanatory diagram showing a method for specifying a gradient value. In the present embodiment, the gradient value is set in a direction from the center of the contour pixel to each lattice point on the outer periphery of the contour pixel, assuming that the contour pixel is increased in resolution according to the output resolution of the printing apparatus 200. It is represented by an assigned number (0 to 15 in this embodiment). The contour information generation unit 128 approximates the inclination obtained in step S130 to any inclination in the 16 directions shown in FIG. 4, and specifies the number assigned to the approximate inclination in this way as the gradient value. As described above, in this embodiment, the gradient value is a numerical value from 0 to 15 in decimal (0 to F in hexadecimal), and therefore can be represented by 4-bit data.

図5は、代表通過点の特定方法を示す説明図である。本実施例において、代表通過点は、輪郭画素を印刷装置200の出力解像度に応じて高解像度化したと想定した場合において、輪郭画素の中心を原点とした直交座標系のx軸、y軸上の格子点にそれぞれ割り当てられた番号(本実施例では、0〜8)によって表される。輪郭情報生成部128は、ステップS130で求めたx切片、y切片のうち、いずれか格子点に近い方の切片をその格子点上に近似し、その近似された格子点に割り当てられた番号を代表通過点として特定する。本実施例では、代表通過点は10進数で0から8までの数値(16進数でも、0から8)であるため、4ビットのデータによって表すことができる。   FIG. 5 is an explanatory diagram showing a method for specifying a representative passing point. In this embodiment, the representative passing point is on the x-axis and y-axis of the orthogonal coordinate system with the origin of the center of the contour pixel as the origin when it is assumed that the contour pixel is increased in resolution according to the output resolution of the printing apparatus 200. This is represented by numbers (0 to 8 in this embodiment) assigned to the respective grid points. The contour information generation unit 128 approximates one of the x-intercept and y-intercept obtained in step S130, which is closer to the lattice point, on the lattice point, and obtains the number assigned to the approximated lattice point. Identified as a representative passing point. In this embodiment, the representative passing point is a numerical value from 0 to 8 in decimal (0 to 8 in hexadecimal) and can be represented by 4-bit data.

上記ステップS135によって、勾配値および代表通過点が特定されると、プリンタードライバー114の印刷データ生成部130は、特定された勾配値および代表通過点を、輪郭画素に輪郭情報として付与する(ステップS140)。本実施例においてラスターデータを構成する各画素は、それぞれ、画素値と属性情報とを含んでおり、その形式は、「(R,G,B,x)」である。以下では、画素値と属性情報とをまとめて「画素情報」という。「R」、「G」、「B」は、それぞれ、RGB形式における画素値を8ビットデータによって表しており、「x」の部分は属性情報を表している。上記ステップS140では、この属性情報の部分に輪郭情報が記録される。輪郭情報は、4ビットの勾配値と4ビットの代表通過点とによって構成され、例えば、16進数で、「0x53」のように表される。この中で、「5」の部分が図4に示した勾配値を表し、「3」の部分が図5に示した代表通過点を表している。以上のように、本実施例では、ラスターデータは、1つの画素情報につき、R,G,B,xで、計32ビットのデータを有している。   When the gradient value and the representative passing point are specified in step S135, the print data generating unit 130 of the printer driver 114 assigns the specified gradient value and the representative passing point to the contour pixel as contour information (step S140). ). In this embodiment, each pixel constituting raster data includes a pixel value and attribute information, and the format is “(R, G, B, x)”. Hereinafter, the pixel value and the attribute information are collectively referred to as “pixel information”. “R”, “G”, and “B” respectively represent pixel values in RGB format by 8-bit data, and the “x” portion represents attribute information. In step S140, contour information is recorded in the attribute information portion. The contour information is composed of a 4-bit gradient value and a 4-bit representative passing point, and is expressed as, for example, “0x53” in hexadecimal. Among these, the portion “5” represents the gradient value shown in FIG. 4, and the portion “3” represents the representative passing point shown in FIG. 5. As described above, in this embodiment, the raster data has a total of 32 bits of data of R, G, B, and x for each piece of pixel information.

図6は、輪郭情報(x値)の具体例を示す説明図である。図6には、「C」という文字の一部分を構成するラスターデータを5画素×4画素分、示している。ここでは、説明の便宜上、5画素×4画素のラスターデータの最も左上の座標を、(0,0)とし、最も右下の座標を(4,3)とする。図6に示した例では、線分描画命令によって、線分が、座標(0,1)、座標(1,1)、座標(2,2)、および、座標(3,2)の画素に亘って描画されている。そのため、これらの座標の画素が輪郭画素に該当する。このとき、例えば、座標(0,1)の輪郭画素の勾配値と代表通過点とは、図4および図5を参照すると、それぞれ、「5」、「1」となる。よって、この輪郭画素についての、x値、すなわち、輪郭情報は、16進数で「0x51」となる。また、例えば、座標(1,1)の輪郭画素の勾配値と代表通過点とは、それぞれ、「5」、「3」となり、輪郭情報は、16進数で、「0x53」となる。   FIG. 6 is an explanatory diagram showing a specific example of contour information (x value). FIG. 6 shows the raster data constituting a part of the character “C” for 5 pixels × 4 pixels. Here, for convenience of explanation, the upper left coordinate of the raster data of 5 pixels × 4 pixels is (0, 0), and the lower right coordinate is (4, 3). In the example shown in FIG. 6, the line segment is applied to the pixels at coordinates (0, 1), coordinates (1, 1), coordinates (2, 2), and coordinates (3, 2) by the line drawing command. It is drawn over. Therefore, the pixel of these coordinates corresponds to a contour pixel. At this time, for example, the gradient value of the contour pixel at the coordinates (0, 1) and the representative passing point are “5” and “1”, respectively, with reference to FIGS. 4 and 5. Therefore, the x value, that is, the contour information for this contour pixel is “0x51” in hexadecimal. Further, for example, the gradient value and the representative passing point of the contour pixel at the coordinates (1, 1) are “5” and “3”, respectively, and the contour information is “0x53” in hexadecimal.

上記ステップS120において、ラスターデータへの変換対象となった描画命令が、背景に対して線分を描画する線分描画命令ではないと判断された場合には、印刷データ生成部130は、ステップS115によってラスターデータに変換された画素に、属性情報として空情報を付与する(ステップS145)。本実施例では、空情報として、16進数で「0x00」の値を付与する。なお、図4,5を参照すると、勾配値が「0」、代表通過点が「0」の場合も、輪郭情報が「0x00」となり得るが、勾配値が「0」、代表通過点が「0」となる線分は、勾配値が「0」、代表通過点が「1」〜「4」となる線分と等価な線分である。そこで、輪郭情報生成部128は、勾配値が「0」、代表通過点が「0」となる線分については、その輪郭情報を、「0x01」〜「0x04」のいずれかの輪郭情報に置き換える処理を行う。こうすることで、空情報が「0x00」という値であっても、空情報と輪郭情報とを正確に区別することが可能になる。このように、本実施例では、空情報を「0x00」としたが、空情報は、例えば、「0xFF」としてもよい。本実施例では、代表通過点は、0から8の値で表されるため、「0xFF」という値が「輪郭情報」として特定されることがない。そのため、輪郭情報を「0xFF」のようにすれば、輪郭情報を他の値へ置き換えることなく、空情報と輪郭情報とを正確に区別することが可能になる。   If it is determined in step S120 that the drawing command to be converted into raster data is not a line drawing command for drawing a line segment on the background, the print data generating unit 130 performs step S115. In step S145, empty information is assigned as attribute information to the pixels converted into raster data by the above. In the present embodiment, a value of “0x00” is assigned as hexadecimal information in hexadecimal. 4 and 5, when the gradient value is “0” and the representative passing point is “0”, the contour information can be “0x00”, but the gradient value is “0” and the representative passing point is “0”. The line segment that is “0” is a line segment that is equivalent to the line segment that has the gradient value “0” and the representative passing points “1” to “4”. Therefore, the contour information generation unit 128 replaces the contour information with any one of the contour information from “0x01” to “0x04” for the line segment with the gradient value “0” and the representative passing point “0”. Process. By doing so, even if the empty information has a value of “0x00”, the empty information and the contour information can be accurately distinguished. Thus, in this embodiment, the empty information is “0x00”, but the empty information may be “0xFF”, for example. In the present embodiment, since the representative passing point is represented by a value from 0 to 8, the value “0xFF” is not specified as “contour information”. Therefore, if the contour information is set to “0xFF”, it is possible to accurately distinguish the empty information and the contour information without replacing the contour information with another value.

上記ステップS140あるいはステップS145によってラスターデータの各画素に属性情報(x値)が付与されると、プリンタードライバー114は、メモリーに記憶されたすべての描画命令について上述した一連の処理を実行したかを判断する(ステップS150)。すべての描画命令についての処理が完了していなければ、処理を上記ステップS110に戻して、上述した一連の処理を繰り返す。一方、すべての描画命令についての処理が完了していれば、プリンタードライバー114は、ラスターデータにヘッダ情報を付加して印刷データを生成し(ステップS155)、当該印刷データ生成処理を終了する。生成された印刷データは、プリンタードライバー114の印刷データ送信部132によって、印刷装置200に送信される。   When the attribute information (x value) is given to each pixel of the raster data in step S140 or step S145, the printer driver 114 determines whether the above-described series of processing has been executed for all the drawing commands stored in the memory. Judgment is made (step S150). If the processing for all the drawing commands has not been completed, the processing returns to step S110 and the above-described series of processing is repeated. On the other hand, if the processing for all the drawing commands has been completed, the printer driver 114 generates print data by adding header information to the raster data (step S155), and ends the print data generation processing. The generated print data is transmitted to the printing apparatus 200 by the print data transmission unit 132 of the printer driver 114.

図7は、上述した印刷データ生成処理によって生成される印刷データのデータ形式を示す説明図である。図7に示すように、印刷データは、ヘッダ情報と、画素値に属性情報が付加されたラスターデータとを有している。ヘッダ情報には、ラスターデータのサイズ(画素数)や解像度、画素値のビット数などが記録される。   FIG. 7 is an explanatory diagram showing the data format of the print data generated by the print data generation process described above. As shown in FIG. 7, the print data includes header information and raster data in which attribute information is added to pixel values. The header information records raster data size (number of pixels), resolution, number of bits of pixel value, and the like.

図8は、印刷データに含まれるラスターデータの具体例を示す説明図である。図8には、図6と同様のラスターデータを示している。この中で、例えば、y座標が「2」の行のラスターデータは、左から4つ分の画素の色は、黒((R,G,B)=(0,0,0))であり、右端の画素の色は、白((R,G,B)=(0xFF,0xFF,0xFF))である。この中で、左から2つ分の画素と、右から1つ分の画素は、これらの画素中に線分が通過しないため、輪郭画素には該当しない。そのため、これらの画素には、属性情報として、空情報(0x00)が付加される。また、左から3番目の画素と4番目の画素は輪郭画素に該当するため、属性情報として「0x51」、「0x53」という輪郭情報がそれぞれ付加されている。   FIG. 8 is an explanatory diagram illustrating a specific example of raster data included in print data. FIG. 8 shows raster data similar to FIG. Among them, for example, in the raster data of the row whose y coordinate is “2”, the color of four pixels from the left is black ((R, G, B) = (0, 0, 0)). The color of the rightmost pixel is white ((R, G, B) = (0xFF, 0xFF, 0xFF)). Among these pixels, two pixels from the left and one pixel from the right do not correspond to the contour pixels because the line segment does not pass through these pixels. Therefore, empty information (0x00) is added to these pixels as attribute information. Further, since the third pixel and the fourth pixel from the left correspond to contour pixels, contour information “0x51” and “0x53” are added as attribute information, respectively.

以上、印刷データ生成装置100において実行される印刷データ生成処理について説明した。続いて、印刷装置200によって実行される印刷処理について説明する。   The print data generation process executed in the print data generation apparatus 100 has been described above. Subsequently, a printing process executed by the printing apparatus 200 will be described.

C.印刷処理:
図9は、印刷装置200の制御回路210が実行する印刷処理のフローチャートである。この印刷処理は、制御回路210の印刷データ受信部220が、印刷データ生成装置100から印刷データを受信することで開始される(ステップS200)。印刷データ受信部220は、受信した印刷データをメモリー212に記録する。印刷データがメモリー212に記録されると、制御回路210の解像度変換部222が、印刷データに含まれるラスターデータを高解像度化する解像度変換処理を実行する(ステップS205)。
C. Printing process:
FIG. 9 is a flowchart of print processing executed by the control circuit 210 of the printing apparatus 200. This print processing is started when the print data receiving unit 220 of the control circuit 210 receives print data from the print data generating apparatus 100 (step S200). The print data receiving unit 220 records the received print data in the memory 212. When the print data is recorded in the memory 212, the resolution conversion unit 222 of the control circuit 210 executes resolution conversion processing for increasing the resolution of raster data included in the print data (step S205).

図10は、解像度変換処理の詳細なフローチャートである。この解像度変換処理が実行されると、まず、解像度変換部222は、ラスターデータ中において解像度を変換する対象の画素を特定する(ステップS300)。対象画素の初期位置は、ラスターデータの原点(座標(0,0))の位置にある画素である。この対象画素の位置は、ステップS300の処理が実行されるたびに、ラスターデータ中の画素情報の並びに従って移動する。   FIG. 10 is a detailed flowchart of the resolution conversion process. When this resolution conversion process is executed, first, the resolution conversion unit 222 identifies a pixel whose resolution is to be converted in the raster data (step S300). The initial position of the target pixel is a pixel at the position of the origin (coordinates (0, 0)) of the raster data. The position of the target pixel moves according to the arrangement of the pixel information in the raster data every time the process of step S300 is executed.

対象画素が特定されると、解像度変換部222は、その対象画素の画素情報(画素値および属性情報)をメモリー212から読み込む(ステップS305)。そして、対象画素の属性情報(x値)を抽出し、抽出された属性情報が、空情報(0x00)であるかを判断する(ステップS310)。   When the target pixel is specified, the resolution conversion unit 222 reads pixel information (pixel value and attribute information) of the target pixel from the memory 212 (step S305). Then, the attribute information (x value) of the target pixel is extracted, and it is determined whether the extracted attribute information is empty information (0x00) (step S310).

対象画素の属性情報が空情報であれば、解像度変換部222は、対象画素の解像度を印刷装置200の出力解像度まで単純に高解像度化する(ステップS315)。本実施例では、600dpi×600dpiの解像度を、2400dpi×2400dpiにまで高解像度化する。従って、本実施例では、1つの対象画素を、4個×4個の画素に分割し、分割後の16個の各画素の画素値を、分割前の対象画素と同じ値とする。   If the attribute information of the target pixel is empty information, the resolution conversion unit 222 simply increases the resolution of the target pixel to the output resolution of the printing apparatus 200 (step S315). In this embodiment, the resolution of 600 dpi × 600 dpi is increased to 2400 dpi × 2400 dpi. Therefore, in this embodiment, one target pixel is divided into 4 × 4 pixels, and the pixel values of the 16 pixels after the division are set to the same values as the target pixels before the division.

ステップS310において、対象画素の属性情報が空情報ではないと判断されれば、属性情報は輪郭情報を表すことになる。そこで、解像度変換部222は、対象画素の画素値と、輪郭情報に含まれる勾配値および代表通過点とに基づいて、高解像度化した輪郭を生成する(ステップS320)。具体的には、解像度変換部222は、まず、600dpi×600dpiの対象画素を、上記のように、4個×4個の画素に分割することで、2400dpi×2400dpiにまで高解像度化する。そして、勾配値によって表される傾きを有し、代表通過点に対応する高解像度後の座標を通る直線を特定する。そして、この直線から右側に存在する高解像度後の画素を、高解像度化前の対象画素の画素値で塗りつぶし、反対側の画素を背景色で塗りつぶす。こうすることで、解像度変換部222は、画素値と輪郭情報とに基づいて、高解像度化した輪郭を生成することができる。なお、勾配値と傾きとの関係や、代表通過点と高解像度化後の画素の座標との関係は、予め、メモリー212にテーブルとして記憶させておくことができる。   If it is determined in step S310 that the attribute information of the target pixel is not empty information, the attribute information represents contour information. Therefore, the resolution conversion unit 222 generates a high-resolution outline based on the pixel value of the target pixel, the gradient value included in the outline information, and the representative passing point (step S320). Specifically, the resolution conversion unit 222 first increases the resolution to 2400 dpi × 2400 dpi by dividing the target pixel of 600 dpi × 600 dpi into 4 × 4 pixels as described above. Then, a straight line having an inclination represented by the gradient value and passing through the high-resolution coordinates corresponding to the representative passing point is specified. Then, the pixel after the high resolution existing on the right side of the straight line is painted with the pixel value of the target pixel before the resolution is increased, and the pixel on the opposite side is painted with the background color. In this way, the resolution conversion unit 222 can generate a high-resolution outline based on the pixel value and the outline information. The relationship between the gradient value and the gradient, and the relationship between the representative passing point and the coordinates of the pixel after high resolution can be stored in advance in the memory 212 as a table.

ステップS315やステップS320において、輪郭画素やその他の画素について高解像度化が行われると、解像度変換部222は、高解像度後の各画素の画素値をメモリー212に記録する(ステップS325)。このとき、解像度変換部222は、対象画素から取得した属性情報は廃棄し、メモリー212への記録は行わない。メモリー212に画素値を記録すると、解像度変換部222は、ラスターデータに含まれる全ての画素について高解像度化が終了したかを判断し(ステップS330)、終了していなければ、処理をステップS300に戻す。一方、終了していれば、当該解像度変換処理を終了する。   In step S315 and step S320, when the resolution of the contour pixel and other pixels is increased, the resolution conversion unit 222 records the pixel value of each pixel after the resolution in the memory 212 (step S325). At this time, the resolution conversion unit 222 discards the attribute information acquired from the target pixel and does not record it in the memory 212. When the pixel value is recorded in the memory 212, the resolution conversion unit 222 determines whether or not the resolution enhancement has been completed for all the pixels included in the raster data (step S330), and if not, the process proceeds to step S300. return. On the other hand, if completed, the resolution conversion process is terminated.

以上のようにして解像度変換処理が終了すると、制御回路210の色変換部224は、高解像度化された画素情報をメモリー212から読み出し、色変換処理を実行する(図9のステップS210)。この色変換処理では、RGB形式の画素値が、印刷装置200の備えるインクの色に合わせて、CMYK形式の画素値に変換される。色変換後、制御回路210は、ハーフトーン処理部226によって、CMYK形式の画素値を網点パターンに変換するハーフトーン処理を実行する(ステップS215)。そして、網点パターンを表すデータをデータ並び替え部228によって並べ替え(ステップS220)、プリンターエンジン240によって、印刷用紙へのドットの記録を行う(ステップS225)。以上で説明した一連の処理により、印刷処理は終了する。   When the resolution conversion process is completed as described above, the color conversion unit 224 of the control circuit 210 reads out the pixel information whose resolution has been increased from the memory 212 and executes the color conversion process (step S210 in FIG. 9). In this color conversion process, pixel values in the RGB format are converted into pixel values in the CMYK format in accordance with the color of ink provided in the printing apparatus 200. After the color conversion, the control circuit 210 uses the halftone processing unit 226 to execute halftone processing for converting CMYK format pixel values into a halftone pattern (step S215). Then, the data representing the halftone dot pattern is rearranged by the data rearrangement unit 228 (step S220), and the printer engine 240 records dots on the printing paper (step S225). The printing process is completed by the series of processes described above.

以上で説明した本実施例の印刷システム10では、PDLによって記述された文書データの印刷を行う際に、文書データ中の描画命令に基づいて、ラスターデータ中において文字や図形の輪郭を表す輪郭画素を特定する。そして、その輪郭画素内における輪郭の傾きを表す勾配値と、その輪郭が輪郭画素内を通る代表的な位置である代表通過点とを求め、これらを輪郭情報として輪郭画素に対して関連付ける。このような輪郭情報を有するラスターデータを受信した印刷装置200は、ラスターデータを構成する各画素を高解像度化するとともに、輪郭画素については、その輪郭情報に含まれる勾配値と代表通過点とに基づいて、高解像度化した輪郭を再現する。そのため、本実施例によれば、文書データ中の図形や文字の輪郭部分のジャギーやがたつきを抑え、輪郭部分を滑らかに表現することが可能になる。図11は、このような効果を示す説明図である。図11(a)には、高解像度化前の画像の一例を示し、図11(b)には、高解像度化後の画像の一例を示している。   In the printing system 10 of the present embodiment described above, when printing document data described in PDL, contour pixels that represent the contours of characters and figures in raster data based on a drawing command in the document data Is identified. Then, a gradient value representing the inclination of the contour in the contour pixel and a representative passing point that is a representative position where the contour passes through the contour pixel are obtained, and these are associated with the contour pixel as contour information. The printing apparatus 200 that has received raster data having such contour information increases the resolution of each pixel constituting the raster data, and for the contour pixel, the gradient value and the representative passing point included in the contour information are used. Based on this, the contour with high resolution is reproduced. Therefore, according to the present embodiment, it is possible to suppress the jaggy and shakiness of the contour portions of graphics and characters in the document data, and to express the contour portions smoothly. FIG. 11 is an explanatory view showing such an effect. FIG. 11A shows an example of an image before resolution enhancement, and FIG. 11B shows an example of an image after resolution enhancement.

また、本実施例では、印刷データ生成装置100から印刷装置200に送信されるラスターデータ自体の高解像度化を行うことなく、8ビットで表される輪郭情報を輪郭画素の画素値に付加するだけで、文書データ中の輪郭部分について高解像度化を行うことができる。そのため、印刷データ生成装置100側で予めラスターデータ全体を高解像度化するよりも、印刷データのデータ容量を大幅に削減することが可能になる。また、印刷の見栄えに強く関わる文書中の輪郭部分については、その部分を高解像度化可能な情報を輪郭情報として付加する。そのため、印刷データのデータ容量を削減しつつも、印刷品質を向上させることが可能になる。また、このような輪郭情報に含まれる勾配値と代表通過点とは、一種のベクトルデータということができるため、印刷装置側で高解像度化を行ったとしても、高解像度化のための情報量が不足することがない。また、輪郭画素以外の画素については、単純に、画素を分割する処理を行うことで高解像度化を行うことができるため、印刷処理の高速化を図ることが可能になる。   In the present embodiment, the raster data itself transmitted from the print data generation apparatus 100 to the printing apparatus 200 is not increased in resolution, and only the contour information represented by 8 bits is added to the pixel value of the contour pixel. Thus, it is possible to increase the resolution of the outline portion in the document data. For this reason, it is possible to significantly reduce the data capacity of the print data, rather than increasing the resolution of the entire raster data in advance on the print data generation apparatus 100 side. In addition, for a contour portion in a document strongly related to the appearance of printing, information capable of increasing the resolution of the portion is added as contour information. Therefore, it is possible to improve the print quality while reducing the data capacity of the print data. In addition, since the gradient value and the representative passing point included in such contour information can be referred to as a kind of vector data, even if the resolution is increased on the printing apparatus side, the amount of information for increasing the resolution There is no shortage. Further, with respect to pixels other than the contour pixels, it is possible to increase the resolution by simply performing a process of dividing the pixels, so that it is possible to increase the speed of the printing process.

また、本実施例では、輪郭情報を構成する勾配値と代表通過点とをどちらも4ビットで表し、計8ビットの情報とした。そのため、R(8ビット),G(8ビット),B(8ビット)の各画素のデータと合わせても、1画素当たり32ビットのデータとなる。よって、コンピュータが扱いやすい印刷データを生成することが可能になる。   In the present embodiment, the gradient value and the representative passing point constituting the contour information are both represented by 4 bits, and the information is 8 bits in total. Therefore, even when combined with the data of each pixel of R (8 bits), G (8 bits), and B (8 bits), the data is 32 bits per pixel. Therefore, it is possible to generate print data that can be easily handled by a computer.

また、本実施例では、文書データに含まれる曲線や文字を描画する命令を、すべて、線分を描画する命令に置き換える。そのため、輪郭画素内を通る輪郭線の傾きや切片を容易に求めることが可能になる。   In this embodiment, all the commands for drawing curves and characters included in the document data are replaced with commands for drawing line segments. Therefore, it is possible to easily obtain the inclination and intercept of the contour line passing through the contour pixel.

また、本実施例で生成される印刷データ中のラスターデータは、通常のRGB値に対して、属性情報が付加されているだけである。そのため、輪郭画素の高解像度化機能を有さない印刷装置は、この属性情報を無視するだけで、従来通り、画像を印刷することができる。よって、印刷装置の互換性を向上させることができる。   Further, raster data in the print data generated in the present embodiment is simply attribute information added to normal RGB values. For this reason, a printing apparatus that does not have a function for increasing the resolution of contour pixels can print an image as usual by simply ignoring the attribute information. Therefore, the compatibility of the printing apparatus can be improved.

また、本実施例では、背景に対して描画される線分の輪郭部分の高解像度化を行うこととし、他の図形等に重畳されて描画される輪郭部分の高解像度化については行わないことした。これは、他の図形等に重畳される輪郭部分よりも、背景に対して描画される輪郭部分のジャギーやがたつきが印刷画質に与える影響が強いためである。そのため、本実施例では、他の図形等に重畳する輪郭を高解像度化する処理を省略することができ、高速に印刷処理を実行することが可能になる。本実施例では、このように、背景に対して描画される輪郭部分についてのみ高解像度化することとしたが、もちろん、他の図形等に重畳されて描画される輪郭部分についても高解像度化することとしてもよい。   Also, in this embodiment, the resolution of the outline portion of the line segment drawn with respect to the background is increased, and the resolution of the contour portion drawn by being superimposed on other figures is not increased. did. This is because the jaggy or shakiness of the contour portion drawn with respect to the background has a greater influence on the print image quality than the contour portion superimposed on other graphics or the like. For this reason, in this embodiment, it is possible to omit the process of increasing the resolution of the outline superimposed on other graphics and the like, and it is possible to execute the printing process at high speed. In this embodiment, as described above, the resolution is increased only for the contour portion drawn against the background. Of course, the resolution is also increased for the contour portion drawn by being superimposed on another figure or the like. It is good as well.

D.変形例:
以上、本発明の一実施例について説明したが、本発明はこのような実施例に限定されず、その趣旨を逸脱しない範囲で種々の構成を採ることができる。例えば、上記実施例では、印刷データ生成装置100が生成するラスターデータの解像度が600dpi×600dpiであり、印刷装置200の出力解像度が2400dpi×2400dpiであることとしたが、適宜、他の解像度を採用することとしてもよい。また、ソフトウェアによって実現した機能は、ハードウェアによって実現するものとしてもよい。そのほか、以下のような変形が可能である。
D. Variations:
As mentioned above, although one Example of this invention was described, this invention is not limited to such an Example, A various structure can be taken in the range which does not deviate from the meaning. For example, in the above embodiment, the resolution of the raster data generated by the print data generation apparatus 100 is 600 dpi × 600 dpi and the output resolution of the printing apparatus 200 is 2400 dpi × 2400 dpi, but other resolutions are adopted as appropriate. It is good to do. Further, the function realized by software may be realized by hardware. In addition, the following modifications are possible.

(D1)変形例1:
上記実施例では、印刷データ全体をまとめて印刷データ生成装置100から印刷装置200に転送している。これに対して、印刷データを所定のバンド幅に分割して転送してもよい。バンド幅は、ネットワーク12のデータ転送帯域を超えない幅であると、効率的にデータの転送を行うことができる。
(D1) Modification 1:
In the above embodiment, the entire print data is collectively transferred from the print data generation apparatus 100 to the printing apparatus 200. On the other hand, the print data may be divided and transferred into a predetermined bandwidth. If the bandwidth is a width that does not exceed the data transfer bandwidth of the network 12, data can be transferred efficiently.

図12は、バンド毎に分割された印刷データのデータ形式の一例を示す説明図である。図12に示すように、本変形例では、印刷データ全体のヘッダ情報にバンド幅を記録し、各バンド毎のヘッダ情報に、そのバンドが含まれる文書のページ番号やバンド番号、バンドの開始位置、終了位置を記録することができる。これらの情報を付加することで、印刷装置200は、印刷データ生成装置100から転送されたバンドが印刷データ中のどの位置に該当するかを容易に判別することができる。   FIG. 12 is an explanatory diagram showing an example of the data format of the print data divided for each band. As shown in FIG. 12, in this modification, the bandwidth is recorded in the header information of the entire print data, and the page number and band number of the document including the band are included in the header information for each band, and the start position of the band. The end position can be recorded. By adding these pieces of information, the printing apparatus 200 can easily determine which position in the print data the band transferred from the print data generation apparatus 100 corresponds to.

このように、本変形例では、印刷データをバンド単位で転送する例を説明したが、PDLデータからラスターデータへの変換についてもバンド単位で行うこととしてもよい。   As described above, in this modification, the example in which print data is transferred in band units has been described. However, conversion from PDL data to raster data may also be performed in band units.

(D2)変形例2:
上記実施例では、ラスターデータ中の画素値に対して、輪郭情報として、4ビットの勾配値と、4ビットの代表通過点とを画素値に付加している。しかし、図13に示すように、印刷データ生成処理のステップS130で求めた線分の傾きや切片の値を、そのまま、輪郭情報として付加することとしてもよい。こうすることで、印刷装置200は、図形や文字の輪郭をより正確に表すことが可能になる。
(D2) Modification 2:
In the above embodiment, a 4-bit gradient value and a 4-bit representative passing point are added to the pixel value as contour information for the pixel value in the raster data. However, as shown in FIG. 13, the slope and intercept values of the line segment obtained in step S130 of the print data generation process may be added as contour information as they are. By doing so, the printing apparatus 200 can more accurately represent the contours of graphics and characters.

(D3)変形例3:
上記実施例では、印刷データ生成装置100が生成するラスターデータの解像度が600dpi×600dpiであり、印刷装置200の出力解像度が2400dpi×2400dpiである例を説明した。これに対して、例えば、印刷装置200は、自己の出力解像度に応じて、印刷データ生成装置100から受信した印刷データの解像度変換を行うこととしてもよい。
(D3) Modification 3:
In the above embodiment, an example has been described in which the resolution of raster data generated by the print data generation apparatus 100 is 600 dpi × 600 dpi and the output resolution of the printing apparatus 200 is 2400 dpi × 2400 dpi. On the other hand, for example, the printing apparatus 200 may perform resolution conversion of print data received from the print data generation apparatus 100 according to its own output resolution.

図14は、印刷装置200が自己の出力解像度に応じて解像度変換を行う概要を示す説明図である。例えば、印刷装置200の出力解像度(600dpi×600dpi)が印刷データ中のラスターデータと同じ解像度(600dpi×600dpi)であれば、印刷装置200は、輪郭画素やその他の画素を問わず、すべての画素を高解像度化することなく印刷を行う。つまり、この場合には、印刷装置200は、印刷データ中の輪郭情報を用いることなく印刷を行うことができる。自己の出力解像度がラスターデータの解像度と同一であるか否かは、印刷データ中のヘッダ情報に記録された解像度情報(図7参照)を参照することで判断することができる。また、例えば、印刷装置200の出力解像度がラスターデータの解像度(600dpi×600dpi)の2倍の解像度(1200dpi×1200dpi)であれば、印刷データ中に含まれる輪郭画素やその他の画素をそれぞれ上記実施例(2400dpi×2400dpi)の1/2の分解能で高解像度化して印刷を行う。このように、印刷装置200が、自己の出力解像度に応じて、印刷データ生成装置100から受信した印刷データの解像度変換を行えば、印刷データ中の輪郭情報を有効に活用して、各印刷装置200が最適な解像度変換を行うことが可能になる。   FIG. 14 is an explanatory diagram illustrating an outline in which the printing apparatus 200 performs resolution conversion according to its output resolution. For example, if the output resolution (600 dpi × 600 dpi) of the printing apparatus 200 is the same resolution (600 dpi × 600 dpi) as the raster data in the print data, the printing apparatus 200 does not use any pixels, regardless of the contour pixels or other pixels. Print without increasing the resolution. That is, in this case, the printing apparatus 200 can perform printing without using the contour information in the print data. Whether or not the output resolution of the apparatus is the same as the resolution of the raster data can be determined by referring to the resolution information (see FIG. 7) recorded in the header information in the print data. Further, for example, if the output resolution of the printing apparatus 200 is twice the resolution of the raster data (600 dpi × 600 dpi) (1200 dpi × 1200 dpi), the contour pixels and other pixels included in the print data are each implemented as described above. Printing is performed at a resolution higher than half of the example (2400 dpi × 2400 dpi). In this way, if the printing apparatus 200 performs resolution conversion of the print data received from the print data generation apparatus 100 according to its own output resolution, each printing apparatus can effectively utilize the contour information in the print data. 200 enables optimal resolution conversion.

(D4)変形例4:
上記変形例3では、印刷装置200側が、自己の出力解像度に応じて印刷データの解像度変換を行うこととした。これに対して、例えば、印刷データ生成装置100側が、印刷装置200側の出力解像度に応じて、勾配値と代表通過点の付与方法を変更することとしてもよい。
(D4) Modification 4:
In the third modification, the printing apparatus 200 side performs resolution conversion of print data according to its own output resolution. On the other hand, for example, the printing data generation apparatus 100 side may change the method of assigning the gradient value and the representative passing point according to the output resolution of the printing apparatus 200 side.

図15は、印刷装置200の出力解像度に応じて勾配値と代表通過点の付与方法を変更する概念を示す説明図である。上記実施例では、印刷データ中のラスターデータの解像度が600dpi×600dpiであり、印刷装置200の出力解像度が2400dpi×2400dpiであったため、縦横それぞれ4倍の解像度変換が必要であった。そのため、上記実施例では、高解像度化後の輪郭画素の外周上の16個の格子点を向く方向にそれぞれ割り当てた0から15までの番号によって勾配値を表し(図4参照)、高解像度化後の輪郭画素のx軸、y軸をそれぞれ4分割する9個の格子点を表す番号によって代表通過点を表した(図5参照)。これに対して、例えば、ラスターデータの解像度が600dpi×600dpiであり、印刷装置200の出力解像度が1200dpi×1200dpiであれば、縦横それぞれ2倍の解像度変換でよい。そのため、この場合には、高解像度化後の輪郭画素の外周上の8個の格子点を向く方向にそれぞれ割り当てた0から7までの番号によって勾配値を表すことができ、また、高解像度化後の輪郭画素のx軸、y軸をそれぞれ2分割する5個の格子点を表す番号によって代表通過点を表すことができる。また、ラスターデータの解像度と印刷装置200の出力解像度とが同一であれば、解像度変換処理を行う必要がないため、勾配値や代表通過点の印刷データへの付加は不要となる。このように、印刷装置200の出力解像度に応じて勾配値と代表通過点との付与方法を変更すれば、印刷装置200の出力解像度に応じて、属性情報のデータ量を削減することが可能になる。   FIG. 15 is an explanatory diagram illustrating a concept of changing the gradient value and the representative passing point assignment method in accordance with the output resolution of the printing apparatus 200. In the above embodiment, since the resolution of the raster data in the print data is 600 dpi × 600 dpi and the output resolution of the printing apparatus 200 is 2400 dpi × 2400 dpi, it is necessary to convert the resolution four times in the vertical and horizontal directions. Therefore, in the above embodiment, the gradient values are represented by numbers 0 to 15 assigned in the direction toward the 16 grid points on the outer periphery of the contour pixel after high resolution (see FIG. 4). The representative passing points are represented by numbers representing nine lattice points that divide each of the x-axis and y-axis of the subsequent contour pixel into four (see FIG. 5). On the other hand, for example, if the resolution of raster data is 600 dpi × 600 dpi and the output resolution of the printing apparatus 200 is 1200 dpi × 1200 dpi, the resolution conversion may be doubled in both the vertical and horizontal directions. Therefore, in this case, the gradient value can be represented by numbers 0 to 7 assigned in the direction toward the eight grid points on the outer periphery of the contour pixel after the resolution enhancement, and the resolution enhancement The representative passing point can be represented by a number representing five grid points each dividing the x-axis and y-axis of the subsequent contour pixel into two. If the resolution of the raster data and the output resolution of the printing apparatus 200 are the same, it is not necessary to perform resolution conversion processing, so that it is not necessary to add gradient values or representative passage points to the print data. As described above, if the method of assigning the gradient value and the representative passing point is changed according to the output resolution of the printing apparatus 200, the data amount of the attribute information can be reduced according to the output resolution of the printing apparatus 200. Become.

(D5)変形例5:
上記実施例では、代表通過点は、輪郭画素の中心を原点とした直交座標系において、輪郭画素を高解像度化した場合におけるx軸、y軸上の格子点にそれぞれ割り当てられた0から8までの番号によって表されることとした。しかし、代表通過点は、線分が輪郭画素内のどの位置を通るかを判別可能であれば、適宜、他の形式を採用することが可能である。例えば、図16に示すように、輪郭画素の中心を原点とした直交座標系において、輪郭画素を高解像度化した場合における輪郭画素の外周上の格子点に代表通過点がそれぞれ割り当てられていてもよい。このような代表通過点の割り当て方法によっても、輪郭画素内を通る線分の位置を特定することが可能となる。
(D5) Modification 5:
In the above embodiment, the representative passing points are 0 to 8 respectively assigned to the grid points on the x-axis and the y-axis when the resolution of the contour pixel is increased in the orthogonal coordinate system with the center of the contour pixel as the origin. It was decided to be represented by the number. However, as long as it is possible to determine which position in the outline pixel the line segment passes through, the representative passing point can adopt another form as appropriate. For example, as shown in FIG. 16, in a rectangular coordinate system with the center of the contour pixel as the origin, a representative passing point may be assigned to each grid point on the outer periphery of the contour pixel when the resolution of the contour pixel is increased. Good. Also by such a representative passing point assignment method, the position of a line segment passing through the contour pixel can be specified.

(D6)変形例6:
上記実施例では、線分の傾きを求める際には、線分の右側が塗りつぶし部分となるように傾きの方向を定めることとした。これに対して、線分の法線方向を示す勾配値を輪郭情報に付加することとし、この法線方向が塗りつぶしを行う方向を示すこととしても良い。
(D6) Modification 6:
In the above embodiment, when the inclination of the line segment is obtained, the direction of the inclination is determined so that the right side of the line segment is a filled portion. On the other hand, a gradient value indicating the normal direction of the line segment may be added to the contour information, and the normal direction may indicate the direction in which the line is filled.

(D7)変形例7:
上記実施例の印刷システム10では、印刷データ生成装置100と印刷装置200とをそれぞれ分離した構成としている。これに対して、例えば、印刷データ生成装置100が備える機能と、印刷装置200が備える機能とを、いわゆる複合機のような単体の装置が備えることとしてもよい。また、印刷データ生成装置100は、コンピュータとしての構成のほか、各種携帯端末や携帯電話などとしても構成することができる。また、印刷装置200は、インクジェットプリンターや、レーザープリンター、デジタル複写機などとして構成することが可能である。
(D7) Modification 7:
In the printing system 10 of the above-described embodiment, the print data generation apparatus 100 and the printing apparatus 200 are separated from each other. On the other hand, for example, a function provided in the print data generation apparatus 100 and a function provided in the printing apparatus 200 may be provided in a single apparatus such as a so-called multifunction machine. Further, the print data generating apparatus 100 can be configured as various mobile terminals, mobile phones, etc. in addition to the configuration as a computer. The printing apparatus 200 can be configured as an ink jet printer, a laser printer, a digital copying machine, or the like.

10…印刷システム
12…ネットワーク
100…印刷データ生成装置
110…CPU
112…アプリケーションプログラム
114…プリンタードライバー
120…文書データ取得部
122…PDL変換部
124…ラスター変換部
126…輪郭画素特定部
128…輪郭情報生成部
130…印刷データ生成部
132…印刷データ送信部
150…メモリー
160…ハードディスク
170…ネットワークインターフェース
180…I/O制御部
190…内部バス
200…印刷装置
210…制御回路
212…メモリー
214…CPU
220…印刷データ受信部
222…解像度変換部
224…色変換部
226…ハーフトーン処理部
228…データ並び替え部
240…プリンターエンジン
250…イメージスキャナー
260…操作部
270…表示部
280…ネットワークインターフェース
DESCRIPTION OF SYMBOLS 10 ... Printing system 12 ... Network 100 ... Print data generation apparatus 110 ... CPU
DESCRIPTION OF SYMBOLS 112 ... Application program 114 ... Printer driver 120 ... Document data acquisition part 122 ... PDL conversion part 124 ... Raster conversion part 126 ... Contour pixel specification part 128 ... Contour information generation part 130 ... Print data generation part 132 ... Print data transmission part 150 ... Memory 160 ... Hard disk 170 ... Network interface 180 ... I / O control unit 190 ... Internal bus 200 ... Printer 210 ... Control circuit 212 ... Memory 214 ... CPU
220: Print data reception unit 222 ... Resolution conversion unit 224 ... Color conversion unit 226 ... Halftone processing unit 228 ... Data rearrangement unit 240 ... Printer engine 250 ... Image scanner 260 ... Operation unit 270 ... Display unit 280 ... Network interface

Claims (9)

印刷データ生成装置と印刷装置とを備える印刷システムであって、
前記印刷データ生成装置は、
線画を描画するための線画描画命令を含む所定の言語によって文書の内容が記述された文書データを取得する文書データ取得部と、
前記言語を解析して、前記文書データを、複数の画素の画素値によって構成されるラスターデータに変換するラスター変換部と、
前記線画描画命令が表す線画の描画位置に基づき、前記ラスターデータを構成する複数の画素のうち、前記線画の輪郭を構成する輪郭画素を特定する輪郭画素特定部と、
前記輪郭画素のそれぞれについて、該輪郭画素内を前記輪郭が通る代表的な位置を表す代表通過点と、該輪郭画素内における前記輪郭の傾きを表す勾配値とを求める輪郭情報生成部と、
前記ラスターデータ中の前記輪郭画素に対して前記代表通過点と前記勾配値とを関連付けた印刷データを生成する印刷データ生成部と、を備え、
前記印刷装置は、
前記印刷データ生成装置から前記印刷データを取得する印刷データ取得部と、
前記印刷データ中の前記ラスターデータを構成する各画素を高解像度化すると共に、該ラスターデータ中の前記輪郭画素については、該輪郭画素の画素値と、該輪郭画素に関連付けられた前記代表通過点および前記勾配値と、に基づき、該輪郭画素に含まれる複数の高解像度後の画素のそれぞれについて前記輪郭を再現するための画素値を決定する解像度変換部と、
前記高解像度化されたラスターデータが表す画像の印刷を行う印刷部と、を備える、
印刷システム。
A printing system comprising a print data generation device and a printing device,
The print data generation device includes:
A document data acquisition unit for acquiring document data in which a document content is described in a predetermined language including a line drawing drawing command for drawing a line drawing;
A raster conversion unit that analyzes the language and converts the document data into raster data composed of pixel values of a plurality of pixels;
Based on the drawing position of the line drawing represented by the line drawing drawing command, an outline pixel specifying unit for specifying an outline pixel constituting the outline of the line drawing among a plurality of pixels constituting the raster data;
For each of the contour pixels, a contour information generation unit that obtains a representative passing point that represents a representative position where the contour passes through the contour pixel, and a gradient value that represents the inclination of the contour in the contour pixel;
A print data generation unit that generates print data in which the representative passing point and the gradient value are associated with the contour pixel in the raster data;
The printing apparatus includes:
A print data acquisition unit that acquires the print data from the print data generation device;
The resolution of each pixel constituting the raster data in the print data is increased, and for the contour pixel in the raster data, the pixel value of the contour pixel and the representative passing point associated with the contour pixel And a resolution conversion unit that determines a pixel value for reproducing the contour for each of a plurality of high-resolution pixels included in the contour pixel based on the gradient value, and
A printing unit that prints an image represented by the high-resolution raster data.
Printing system.
請求項1に記載の印刷システムであって、
前記印刷データ生成装置は、更に、前記線画描画命令を、線分を描画する1つ以上の線分描画命令に変換する命令変換部を備え、
前記輪郭情報生成部は、前記各線分描画命令に含まれる前記線分の始点と終点と基づいて、前記代表通過点と前記勾配値とを求める、印刷システム。
The printing system according to claim 1,
The print data generation apparatus further includes a command conversion unit that converts the line drawing drawing command into one or more line drawing commands for drawing a line segment,
The outline information generation unit obtains the representative passing point and the gradient value based on the start point and end point of the line segment included in each line segment drawing command.
請求項1または請求項2に記載の印刷システムであって、
前記勾配値は、前記輪郭の傾きとともに、該輪郭を境界とした前記輪郭画素内の塗りつぶし方向を表し、
前記解像度変換部は、前記高解像度化された前記輪郭画素について、前記勾配値と前記代表通過点とによって表される輪郭を境界として、前記勾配値が表す塗りつぶし方向側の塗りつぶしを行う、印刷システム。
The printing system according to claim 1 or 2, wherein
The gradient value represents, along with the inclination of the contour, a filling direction in the contour pixel with the contour as a boundary,
The resolution conversion unit is configured to perform filling on the filling direction side represented by the gradient value with the outline represented by the gradient value and the representative passing point as a boundary for the high-resolution outline pixel .
請求項1ないし請求項3のいずれか一項に記載の印刷システムであって、
前記輪郭情報生成部は、前記輪郭の傾きを、予め決められた複数種類の傾きのいずれかに近似し、該予め決められた複数種類の傾きに対してそれぞれ一意に付与された番号によって前記勾配値を表す、印刷システム。
A printing system according to any one of claims 1 to 3,
The contour information generation unit approximates the inclination of the contour to any of a plurality of predetermined inclinations, and the gradient is assigned by a number uniquely assigned to the predetermined plurality of inclinations. A printing system that represents a value.
請求項1ないし請求項4のいずれか一項に記載の印刷システムであって、
前記輪郭情報生成部は、前記代表通過点として、前記輪郭画素の中心を原点とする直交座標系における前記輪郭と前記直交座標のx軸またはy軸との交点を求める、印刷システム。
The printing system according to any one of claims 1 to 4, wherein:
The contour information generation unit obtains, as the representative passing point, an intersection between the contour and an x-axis or a y-axis of the orthogonal coordinate in an orthogonal coordinate system having the origin of the center of the contour pixel.
請求項5に記載の印刷システムであって、
前記輪郭情報生成部は、前記直交座標系におけるx軸上およびy軸上の予め決められた複数の座標のいずれかに前記交点の位置を近似し、該近似された位置に予め付与された一意の番号によって前記代表通過点を表す、印刷システム。
The printing system according to claim 5, wherein
The contour information generation unit approximates the position of the intersection point to any of a plurality of predetermined coordinates on the x-axis and the y-axis in the orthogonal coordinate system, and the unique information given in advance to the approximated position A printing system that represents the representative passing point by a number.
請求項1ないし請求項6のいずれか一項に記載の印刷システムであって、
前記解像度変換部は、前記印刷装置の印刷解像度に応じて、前記高解像度化の倍率を調整する、印刷システム。
A printing system according to any one of claims 1 to 6,
The resolution conversion unit is a printing system that adjusts a magnification for the resolution enhancement in accordance with a printing resolution of the printing apparatus.
印刷データ生成装置であって、
線画を描画するための線画描画命令を含む所定の言語によって文書の内容が記述された文書データを取得する文書データ取得部と、
前記言語を解析して、前記文書データを、複数の画素の画素値によって構成されるラスターデータに変換するラスター変換部と、
前記線画描画命令が表す線画の描画位置に基づき、前記ラスターデータを構成する複数の画素のうち、前記線画の輪郭を構成する輪郭画素を特定する輪郭画素特定部と、
前記輪郭画素のそれぞれについて、該輪郭画素内を前記輪郭が通る代表的な位置を表す代表通過点と、該輪郭画素内における前記輪郭の傾きを表す勾配値とを求める輪郭情報生成部と、
前記ラスターデータ中の前記輪郭画素に対して前記代表通過点と前記勾配値とを関連付けた印刷データを生成する印刷データ生成部と、
を備える印刷データ生成装置。
A print data generation device,
A document data acquisition unit for acquiring document data in which a document content is described in a predetermined language including a line drawing drawing command for drawing a line drawing;
A raster conversion unit that analyzes the language and converts the document data into raster data composed of pixel values of a plurality of pixels;
Based on the drawing position of the line drawing represented by the line drawing drawing command, an outline pixel specifying unit for specifying an outline pixel constituting the outline of the line drawing among a plurality of pixels constituting the raster data;
For each of the contour pixels, a contour information generation unit that obtains a representative passing point that represents a representative position where the contour passes through the contour pixel, and a gradient value that represents the inclination of the contour in the contour pixel;
A print data generation unit that generates print data in which the representative passing point and the gradient value are associated with the contour pixel in the raster data;
A print data generation apparatus.
複数の画素の画素値によって構成されるラスターデータを含む印刷データを取得して印刷を行う印刷装置であって、
前記ラスターデータには、該ラスターデータを構成する複数の画素のうち、前記印刷データが表す文書内の線画の輪郭を構成する各輪郭画素に対して、該輪郭画素内を前記輪郭が通る代表的な位置を表す代表通過点と、該輪郭画素内における前記輪郭の傾きを表す勾配値とが関連付けて記録されており、
前記印刷データ中の前記ラスターデータを構成する各画素を高解像度化すると共に、該ラスターデータ中の前記輪郭画素については、該輪郭画素の画素値と、該輪郭画素に関連付けられた前記代表通過点および前記勾配値と、に基づき、該輪郭画素に含まれる複数の高解像度後の画素のそれぞれについて前記輪郭を再現するための画素値を決定する解像度変換部と、
前記高解像度化されたラスターデータが表す画像の印刷を行う印刷部と、
を備える印刷装置。
A printing apparatus that performs printing by acquiring print data including raster data composed of pixel values of a plurality of pixels,
The raster data includes a representative of the outline passing through the outline pixel for each outline pixel constituting the outline of the line drawing in the document represented by the print data among the plurality of pixels constituting the raster data. A representative passing point representing a correct position and a gradient value representing the inclination of the contour in the contour pixel are recorded in association with each other,
The resolution of each pixel constituting the raster data in the print data is increased, and for the contour pixel in the raster data, the pixel value of the contour pixel and the representative passing point associated with the contour pixel And a resolution conversion unit that determines a pixel value for reproducing the contour for each of a plurality of high-resolution pixels included in the contour pixel based on the gradient value, and
A printing unit that prints an image represented by the high-resolution raster data;
A printing apparatus comprising:
JP2009278492A 2009-12-08 2009-12-08 Printing system, print data generation device, and printer Pending JP2011124636A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2009278492A JP2011124636A (en) 2009-12-08 2009-12-08 Printing system, print data generation device, and printer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2009278492A JP2011124636A (en) 2009-12-08 2009-12-08 Printing system, print data generation device, and printer

Publications (1)

Publication Number Publication Date
JP2011124636A true JP2011124636A (en) 2011-06-23

Family

ID=44288136

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2009278492A Pending JP2011124636A (en) 2009-12-08 2009-12-08 Printing system, print data generation device, and printer

Country Status (1)

Country Link
JP (1) JP2011124636A (en)

Similar Documents

Publication Publication Date Title
JP2004320448A (en) Image processor, image processing system, and program running on computer
AU2011224147B2 (en) Image processing system and image processing method
JP4574457B2 (en) Image processing apparatus and method
JP6127877B2 (en) Image processing apparatus and computer program
JPH11252366A (en) Printer controller, printer and printing system
JP4428743B2 (en) Image processing method and apparatus, printer, image processing system, and storage medium
JP4564986B2 (en) Image processing apparatus, image processing method, and image processing program
JPH1166327A (en) Method and device for processing image and recording medium
KR100959608B1 (en) Image processing apparatus, printer, and image processing method
JP2011124637A (en) Printing system, print data generation device, and printer
JP4109785B2 (en) Image processing apparatus and method, and computer-readable memory
JP2011124636A (en) Printing system, print data generation device, and printer
JP4514168B2 (en) Image processing system and image processing method
JP5012871B2 (en) Image processing apparatus, image forming apparatus, and image processing program
JP4630082B2 (en) Image processing apparatus, image forming apparatus, drawing command information generation method, drawing command information generation program, and recording medium recorded with drawing command information generation program
JP4217332B2 (en) Image processing apparatus and method, and computer-readable memory
JP2019121870A (en) Image processing apparatus, control method of the same, and program
JP2009066926A (en) Image processing device and image forming system
US20150055152A1 (en) Image Processing Apparatus
JP2005038084A (en) Method and device for converting drawing data
JP2007140953A (en) Information processor, image forming system, and data generating method
JP5732864B2 (en) Information processing apparatus, program, and printing method
JP2006350802A (en) Printer and printing control method
JP2000141810A (en) Imaging apparatus, imaging method, and computer readable memory
JP2010211559A (en) Image processor, image processing method, and computer program for image processing