JP2017060070A - Image forming apparatus, control method for image forming apparatus, and program - Google Patents

Image forming apparatus, control method for image forming apparatus, and program Download PDF

Info

Publication number
JP2017060070A
JP2017060070A JP2015184656A JP2015184656A JP2017060070A JP 2017060070 A JP2017060070 A JP 2017060070A JP 2015184656 A JP2015184656 A JP 2015184656A JP 2015184656 A JP2015184656 A JP 2015184656A JP 2017060070 A JP2017060070 A JP 2017060070A
Authority
JP
Japan
Prior art keywords
rule
forming apparatus
image forming
drawing object
pixel
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
JP2015184656A
Other languages
Japanese (ja)
Inventor
克俊 園木
Katsutoshi Sonoki
克俊 園木
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 JP2015184656A priority Critical patent/JP2017060070A/en
Publication of JP2017060070A publication Critical patent/JP2017060070A/en
Pending legal-status Critical Current

Links

Images

Abstract

PROBLEM TO BE SOLVED: To provide an image forming apparatus, a control method for an image forming apparatus, and a program with which printing can be performed as intended by a user even when pixels are thinned according to a painting rule for a drawing object in rotating the page of page description language (PDL) data.SOLUTION: There is provided an image forming apparatus comprising moving means that, when rotation of a page is determined to be required, specifies a drawing command under analysis with a post script (PS) rule as a painting rule, and when a drawing object is on the coordinates of an integer value, moves the position of coordinates of the drawing object by one pixel according to the coordinates of an integer value in the page rotation direction.SELECTED DRAWING: Figure 6

Description

本発明はページ技術言語(以下、PDL)を解析後に回転処理するときの塗りルールに関する。   The present invention relates to a painting rule when a page technology language (hereinafter referred to as PDL) is rotated after being analyzed.

近年、ローエンドの画像形成装置はレンダリング後のビットマップデータを画像回転するハードウェアが存在しない場合、PDLの解析処理で紙搬送方向にページを回転させてからレンダリングしている。例えば、紙搬送方向がA4の縦送りである画像形成装置は、入力されたPDLデータが横方向の用紙向きの印刷データを縦方向に回転している。   In recent years, low-end image forming apparatuses render rendered bitmap data after rotating the page in the paper transport direction in PDL analysis processing when there is no hardware for image rotation. For example, in an image forming apparatus in which the paper transport direction is A4 vertical feed, the input PDL data rotates the print data for the paper in the horizontal direction in the vertical direction.

また、画像形成装置はPDL毎にPixel Placementルール(以下「塗りルール」)を持っている。塗りルールはPDL種別によってデータの属性値(グラフィックやイメージ、フォントなど)に対して異なるルールをそれぞれ用意している。画像形成装置は、入力されたPDLデータに対して指定された塗りルールでピクセル単位の領域に色を塗るかどうかを判定している。   Further, the image forming apparatus has a Pixel Placement rule (hereinafter “painting rule”) for each PDL. Different paint rules are prepared for data attribute values (graphics, images, fonts, etc.) depending on the PDL type. The image forming apparatus determines whether or not to color a region in units of pixels according to a painting rule specified for input PDL data.

このとき、PDLの塗りルールによっては画像を1ピクセル単位で印字方向に色を太らせるどうかの判定がページを回転前後で異なる現象が発生する。先行技術である特許文献1ではバーコードなど矩形のグラフィックを描画する際に、ページ回転後のグラフィックの座標位置が回転処理の演算誤差を整数値から小数値にすることで、印字結果が変わるという現象を回避している。   At this time, depending on the PDL painting rule, a phenomenon may occur in which whether or not the image is thickened in the printing direction in units of one pixel differs before and after the page is rotated. According to Patent Document 1 as a prior art, when a rectangular graphic such as a barcode is drawn, the coordinate position of the graphic after page rotation changes the calculation error of the rotation process from an integer value to a decimal value, and the print result changes. The phenomenon is avoided.

特開2014-50991号公報JP-A-2014-50991

しかしながら、先行技術の方法ではページ回転後も矩形データの座標位置が整数値であるときにピクセルを太らせる方向が回転前と変更される問題がある。PDLデータが全て同じ塗りルールであれば同じ方向へ画像を太らせるため印字結果に差が生じないが、複数の塗りルールが混載していると隣接するオブジェクトごとに隙間が生じる。以下に、図1と図2を用いてこの現象を説明する。   However, the prior art method has a problem that the direction in which the pixels are thickened is changed from that before the rotation when the coordinate position of the rectangular data is an integer value even after the page rotation. If all the PDL data has the same paint rule, the image is thickened in the same direction, so that there is no difference in the print result. However, when a plurality of paint rules are mixed, a gap is created between adjacent objects. Hereinafter, this phenomenon will be described with reference to FIGS.

図1(A)、図1(B)は画像形成装置が描画処理前のPDLデータをページ回転する処理を示している。図1(A)は回転前の横方向に印字するときの原稿用紙101と物理ページの座標原点102と論理ページの座標原点103をそれぞれ示している。画像形成装置はPDLデータを解析して現行座標上に描画オブジェクトの開始点を横方向の原稿用紙101上に算出する。   1A and 1B show a process in which the image forming apparatus performs page rotation of PDL data before drawing processing. FIG. 1A shows the original paper 101, the physical page coordinate origin 102, and the logical page coordinate origin 103 when printing in the horizontal direction before rotation. The image forming apparatus analyzes the PDL data and calculates the starting point of the drawing object on the current coordinates on the document sheet 101 in the horizontal direction.

画像形成装置はPDLで回転が必要であれば、横向き方向の原稿用紙101を図1(B)のように縦方向の原稿用紙104の向きへ論理ページの座標原点106を中心に座標変換行列演算を用いて描画オブジェクトの座標を回転する。このとき、画像形成装置が物理ページの座標原点105を原点に画像の座標位置を算出する。画像形成装置は、ページ回転後に物理ページの座標原点105からX方向、Y方向に描画処理を開始する。そのため、PDLデータはページ回転前と回転後では描画の開始方向が変更される。   If the image forming apparatus needs to be rotated in the PDL, the coordinate conversion matrix calculation is performed on the original paper 101 in the horizontal direction in the direction of the original paper sheet 104 in the vertical direction as shown in FIG. Use to rotate the coordinates of the drawing object. At this time, the image forming apparatus calculates the coordinate position of the image with the coordinate origin 105 of the physical page as the origin. The image forming apparatus starts drawing processing in the X direction and the Y direction from the coordinate origin 105 of the physical page after the page rotation. Therefore, the drawing start direction of the PDL data is changed before and after the page rotation.

次に、図2(A)、図2(B)は画像形成装置がページ回転前と後の描画オブジェクトの座標位置と塗りルールでピクセルを太らせる方向を説明する。図2(A)は回転前の横方向の原稿用紙101にグラフィック201とイメージ203を示し、4つの座標点はそれぞれ整数値である。また、図2(A)のグラフィック201の塗りルールはAdobe PostScript(以下「PS」)ルールで、イメージ203の塗りルールはWindows(登録商標) Graphics Device Interface(以下「GDI」)ルールで指定されているとする。   Next, FIGS. 2A and 2B illustrate the direction in which the image forming apparatus thickens the pixels based on the coordinate position of the drawing object before and after the page rotation and the painting rule. FIG. 2A shows a graphic 201 and an image 203 on the original document 101 in the horizontal direction before rotation, and the four coordinate points are integer values. Also, the painting rule for the graphic 201 in FIG. 2A is specified by the Adobe PostScript (hereinafter “PS”) rule, and the painting rule for the image 203 is specified by the Windows (registered trademark) Graphics Device Interface (hereinafter “GDI”) rule. Suppose that

それぞれの塗りルールは、PSルールはグラフィック201の終端座標205が整数値であれば、開始座標202からX及びYの描画方向にそれぞれ1ピクセル太らせる。図2(A)のX、Y方向のそれぞれの終端座標から1ピクセル分塗られた領域が矢印204で示した方向である。一方、イメージ203のGDIルールでは終端座標が整数値であっても座標の内側を印字するため1ピクセル分の太らせが発生しない。   As for each paint rule, if the end coordinate 205 of the graphic 201 is an integer value, the PS rule thickens one pixel from the start coordinate 202 in the X and Y drawing directions. The area painted by one pixel from the respective end coordinates in the X and Y directions in FIG. On the other hand, according to the GDI rule of the image 203, even if the end coordinate is an integer value, the inside of the coordinate is printed, so that one pixel is not thickened.

次に、図2(A)を縦方向に原稿用紙104へページ回転処理したときの結果を図2(B)に示す。図2(B)ではページ回転により物理ページの座標原点105からX、Y方向の開始位置が変更されることでグラフィック207の整数値の開始座標206と終端座標208が回転前と異なる。グラフィック207は回転後のX、Y方向に1ピクセル太らせる方向209が変更されるため、回転前の図2(A)では塗りつぶされた箇所が図2(B)では塗りつぶされずにイメージ210と1ピクセル分の隙間が発生する。これにより、PDLデータをページ回転処理するときに描画オブジェクトの塗りルールによって描画がおかしくなりユーザの意図した描画結果が得られない。   Next, FIG. 2B shows the result when the page rotation processing is performed on the document sheet 104 in the vertical direction in FIG. In FIG. 2B, the start position 206 and the end coordinates 208 of the integer value of the graphic 207 are different from those before the rotation by changing the start position in the X and Y directions from the coordinate origin 105 of the physical page by the page rotation. In the graphic 207, the direction 209 in which the pixel is thickened in the X and Y directions after the rotation is changed. Therefore, the painted area in FIG. 2A before the rotation is not filled in FIG. A gap of pixels is generated. As a result, when the PDL data is subjected to page rotation processing, drawing is strange due to the drawing rule of the drawing object, and the drawing result intended by the user cannot be obtained.

本発明の目的は、PDLデータをページ回転するときに描画オブジェクトの塗りルールによってピクセルを太らせる場合でも、ユーザの意図したとおり印字することができる方法を提供することである。   An object of the present invention is to provide a method capable of printing as intended by a user even when pixels are fattened by a drawing rule of a drawing object when PDL data is rotated on a page.

本発明は、プリンタ部を有し、入力された印刷データを印刷する画像形成装置であって、入力された印刷データの用紙方向とプリンタ部の用紙の搬送方向に基づき、ページ回転処理の必要かどうかを判定する第1の判定手段と、前記第1の判定手段で、ページ回転が必要であると判定された場合に、描画オブジェクトの塗りルールがPSルールで指定され、かつ回転後の描画オブジェクトの座標位置が整数値であるかどうかを判定する第2の判定手段と、前記第2の判定手段で、描画オブジェクトの塗りルールがPSルールで、かつ座標位置が整数値の座標上であると判定された場合に、描画オブジェクトの座標位置をページ回転方向に整数値の座標に合わせて1ピクセル移動する移動手段と、前記移動された描画オブジェクトをX及びYの描画方向にそれぞれ1ピクセル太らせる描画手段と、を有することを特徴とする。   The present invention is an image forming apparatus that has a printer unit and prints input print data, and whether page rotation processing is necessary based on the paper direction of the input print data and the paper transport direction of the printer unit. When it is determined by the first determination means that determines whether or not page rotation is necessary, the painting rule of the drawing object is specified by the PS rule, and the rotated drawing object A second determination unit that determines whether or not the coordinate position of the drawing object is an integer value; and the second determination unit, wherein the painting rule of the drawing object is a PS rule and the coordinate position is on an integer value coordinate If it is determined, a moving means for moving the coordinate position of the drawing object by one pixel in accordance with the integer value coordinate in the page rotation direction; And a drawing unit that thickens one pixel in the drawing direction.

本発明は、上記の構成をとることによりPDLデータをページ回転するときに描画オブジェクトの塗りルールによってピクセルを太らせる場合でも、ユーザの意図したとおり印字することができる。   According to the present invention, the PDL data can be printed as intended by the user even when the pixels are fattened by the drawing rule of the drawing object when the page is rotated by adopting the above configuration.

ページ回転前後の原稿用紙の物理ページ、論理ページの座標を示す図。The figure which shows the coordinate of the physical page of a manuscript paper before and after page rotation, and a logical page. 従来技術におけるページ回転前後の描画オブジェクトの座標位置と塗りルールによる太らせる方向の例Example of coordinate position of drawing object before and after page rotation and direction of fattening by paint rule in the prior art 本発明のプリンタの構成を示すブロック図1 is a block diagram showing the configuration of a printer of the present invention. 本発明のプリンタ制御部の構成を示すブロック図1 is a block diagram showing the configuration of a printer control unit of the present invention 画像描画ジョブの制御全体のシーケンス図Sequence diagram of overall image drawing job control 本発明の実施例における描画オブジェクトの移動処理フローDrawing Object Movement Processing Flow in an Example of the Present Invention グラフィックの移動と塗りルールによる印字結果を示す図Graphic showing the results of printing by moving graphics and painting rules 本発明の他の実施例における描画処理フローDrawing processing flow in another embodiment of the present invention 他の実施例による印字結果を示す図The figure which shows the printing result by another Example

以下、本発明を実施するための形態について図面を用いて説明する。  Hereinafter, embodiments for carrying out the present invention will be described with reference to the drawings.

<システム構成>
図3は本実施例に係る画像形成装置の構成を示すブロック図である。この画像形成装置300は、制御部301、操作部302、受信部303、プリンタ部304、LAN305から構成されている。操作部302は電源スイッチや操作パネルなどで構成されている。受信部303は、LAN305の任意の回線から印刷コマンドを受信することができるハードウェアとなっており、公知の通信インターフェースにより構成されている。
<System configuration>
FIG. 3 is a block diagram illustrating the configuration of the image forming apparatus according to the present embodiment. The image forming apparatus 300 includes a control unit 301, an operation unit 302, a receiving unit 303, a printer unit 304, and a LAN 305. The operation unit 302 includes a power switch and an operation panel. The receiving unit 303 is hardware capable of receiving a print command from an arbitrary line of the LAN 305, and is configured by a known communication interface.

制御部301はCPU(Central Processing Unit)、RAM(Randam Access Memory)、ROM(Read Only Memory)、不揮発性のメモリ(例えばHDD、Flash ROM等)から構成されている。この制御部301は、図6、図8の処理を実行することができる。これは、ROMに図6、図8の処理を行うためのプログラムが含まれているためである。CPUがこのプログラムを適宜、RAMにロードして実行することにより、図6、図8の処理は実行される。プリンタ部304は、公知の印刷エンジンである。インクを利用するものであっても、トナーを利用するものであっても良い。その他、シートに画像を形成することができればどのようなエンジンであっても構わない。   The control unit 301 includes a CPU (Central Processing Unit), a RAM (Randam Access Memory), a ROM (Read Only Memory), and a nonvolatile memory (for example, HDD, Flash ROM, etc.). The control unit 301 can execute the processes of FIGS. This is because the ROM includes a program for performing the processes of FIGS. When the CPU loads this program into the RAM as appropriate and executes it, the processing of FIGS. 6 and 8 is executed. The printer unit 304 is a known print engine. The ink may be used or the toner may be used. In addition, any engine that can form an image on a sheet may be used.

図4は制御部301の構成を示すブロック図である。制御部301は、印刷制御部401、PDL解析部402、画像描画部403から構成され、印刷制御部401は、印刷データを受信したあとのジョブ全体を制御する。   FIG. 4 is a block diagram showing the configuration of the control unit 301. The control unit 301 includes a print control unit 401, a PDL analysis unit 402, and an image drawing unit 403. The print control unit 401 controls the entire job after receiving print data.

図5は、ジョブ全体の制御シーケンスを示すものである。
<シーケンス図>
(1) 印刷制御部401は受信部303から入力されたPDLデータをPDL解析部402へ送る。
(2) PDL解析部402は、印刷データのPDLコマンドを解析して中間データを生成する。
(3) PDL解析部402がPDLデータの用紙向きの情報を印刷制御部401に送信する。
(4) ページ回転が必要かどうかの指示を印刷制御部401から受信する。
(5) PDL解析部402はページ回転が必要であれば用紙方向をプリンタ部の用紙の搬送方向に合わせて回転処理した中間データを生成する。
(6) PDL解析部402はPDLデータのページ回転処理が終了したあとに画像描画部403へ中間データを送る。
(7) 画像描画部403は、中間データを元にビットマップデータを生成する。
(8) 生成されたビットマップデータをプリンタ部304へ送信する。
FIG. 5 shows a control sequence of the entire job.
<Sequence diagram>
(1) The print control unit 401 sends the PDL data input from the reception unit 303 to the PDL analysis unit 402.
(2) The PDL analysis unit 402 analyzes the PDL command of the print data and generates intermediate data.
(3) The PDL analysis unit 402 transmits information on the paper orientation of the PDL data to the print control unit 401.
(4) Receives an instruction from the print control unit 401 as to whether or not page rotation is necessary.
(5) If page rotation is necessary, the PDL analysis unit 402 generates intermediate data obtained by rotating the sheet direction in accordance with the sheet conveyance direction of the printer unit.
(6) The PDL analysis unit 402 sends intermediate data to the image drawing unit 403 after the page rotation processing of the PDL data is completed.
(7) The image drawing unit 403 generates bitmap data based on the intermediate data.
(8) The generated bitmap data is transmitted to the printer unit 304.

〈ページ回転処理時の描画オブジェクトの塗りルールに合わせた座標位置の移動処理フロー〉
図6は本発明でページ回転処理時の描画オブジェクトの塗りルールに合わせた座標位置の移動方法を示すフローチャート図である。
[S600] ステップS600において、PDL解析部402はページ回転処理が必要かどうかを判定する。PDL解析部402はPDLデータ内部で指定される用紙サイズや印刷制御部401から取得するプリンタ部の用紙の搬送方向に合わせて回転処理が必要であるか判定する。
-(Yes) PDL解析部402は回転が必要と判定された場合、S601へ移行する。
-(No) 一方、S600によって回転が必要ないと判定されたら、S605へ移行する。
<Coordinate position move processing flow that matches drawing rule for drawing objects during page rotation processing>
FIG. 6 is a flowchart showing a method of moving the coordinate position according to the drawing rule of the drawing object at the time of page rotation processing according to the present invention.
[S600] In step S600, the PDL analysis unit 402 determines whether page rotation processing is necessary. The PDL analysis unit 402 determines whether rotation processing is necessary according to the paper size specified in the PDL data and the paper conveyance direction of the printer unit acquired from the print control unit 401.
-(Yes) If the PDL analysis unit 402 determines that rotation is necessary, the PDL analysis unit 402 proceeds to S601.
-(No) On the other hand, if it is determined in S600 that rotation is not necessary, the process proceeds to S605.

[S601] ステップS601において、PDL解析部402はPDLデータの描画コマンドを解析する。ここで、PDL解析部402が解析するPDLデータの種別は特に限定しない。また、各PDLの種類に合わせてPDLデータ内部の描画オブジェクトを解析するため複数のPDL解析部402を有していてもよい。PDL解析部402は、図2(A)のグラフィック201やイメージ203などの解析後の描画オブジェクトに関する原稿用紙上の座標位置情報や塗りルールなどの描画オブジェクトの情報を、制御部301のRAMに保持する。 [S601] In step S601, the PDL analysis unit 402 analyzes a PDL data drawing command. Here, the type of PDL data analyzed by the PDL analysis unit 402 is not particularly limited. In addition, a plurality of PDL analysis units 402 may be provided to analyze the drawing object in the PDL data in accordance with the type of each PDL. The PDL analysis unit 402 stores, in the RAM of the control unit 301, drawing object information such as coordinate position information on the original paper and paint rules regarding the drawing object after analysis such as the graphic 201 and the image 203 in FIG. To do.

[S602] ステップS602において、PDL解析部402はS601で解析した描画コマンドの塗りルールがPSルール、かつページ回転後の終端座標が整数値であるのかを判定する。
-(Yes) PDL解析部402はS601描画オブジェクトの解析結果によりS602の条件であると判定した場合、処理はS603へ移行する。
-(No) 一方、S602によって描画オブジェクトが条件をみたしていないと判定した場合、処理はS604へ移行する。
[S602] In step S602, the PDL analysis unit 402 determines whether the paint command paint rule analyzed in S601 is a PS rule and the end coordinates after page rotation are integer values.
-(Yes) If the PDL analysis unit 402 determines that the condition of S602 is satisfied based on the analysis result of the S601 drawing object, the process proceeds to S603.
-(No) On the other hand, if it is determined in S602 that the drawing object does not satisfy the condition, the process proceeds to S604.

[S603] ステップS603において、PDL解析部402は回転方向に合わせて描画オブジェクトの座標位置を整数値の座標に1ピクセル移動させる。図7は、S603においてPDL解析部402が図2(B)のグラフィック207をページ回転方向に合わせて座標位置を1ピクセル移動した結果を示す。図6、7を用いて、S603におけるPDL解析部402が座標位置を移動する処理を説明する。 [S603] In step S603, the PDL analysis unit 402 moves the coordinate position of the drawing object by one pixel to the coordinate of the integer value in accordance with the rotation direction. FIG. 7 shows the result of the PDL analysis unit 402 shifting the coordinate position by one pixel in step S603 by aligning the graphic 207 of FIG. 2B with the page rotation direction. A process in which the PDL analysis unit 402 moves the coordinate position in S603 will be described with reference to FIGS.

ステップS602 において、PDL解析部402は、グラフィック207の塗りルールがPSデータであり、かつ回転後の終端座標208が整数値の座標上であるかが判定された。
PDL解析部402は、グラフィック207の開始座標206を含む4つの座標位置をページ回転方向が横方向から90°回転のためY方向の-1ピクセル移動する。
ここで、図7は回転方向が90°であるが回転方向の角度が180°、270°の方向であってもよい。PDL解析部402は、回転方向に合わせて180°であればX、Y方向の-1ピクセル、270°であればX方向に-1ピクセルとグラフィック207の座標点を移動させる。
PDL解析部402はグラフィック207の開始位置を702の座標に終端座標を703の座標へ移動することで、画像描画部403がグラフィック207とイメージ210を描画するときにオブジェクトの間隔が開くことなく印字することができる。
In step S602, the PDL analysis unit 402 determines whether the painting rule of the graphic 207 is PS data and the terminal coordinates 208 after rotation are on integer-valued coordinates.
The PDL analysis unit 402 moves the four coordinate positions including the start coordinates 206 of the graphic 207 by −1 pixel in the Y direction because the page rotation direction is rotated by 90 ° from the horizontal direction.
In FIG. 7, the rotation direction is 90 °, but the rotation direction angle may be 180 ° or 270 °. The PDL analysis unit 402 moves the coordinate point of the graphic 207 to -1 pixel in the X and Y directions if 180 ° in accordance with the rotation direction, and -1 pixel in the X direction if 270 °.
The PDL analysis unit 402 moves the start position of the graphic 207 to the coordinate of 702 and the end coordinate to the coordinate of 703, so that the image drawing unit 403 can print without opening the object interval when drawing the graphic 207 and the image 210. can do.

[S604] ステップS604において、PDL解析部402は解析中のPDLデータのページ内の描画コマンド全て終えたか判定する。
-(Yes) PDL解析部402は描画コマンドが残っていなければ解析を終了する。
-(No) 一方、S604において、PDL解析部402は描画コマンドがまだ残っている場合、PDL解析部402はS601へ処理を移行する。
[S605] PDL解析部402はページ回転処理が必要ないと判定すれば、ステップS605において、通常どおり描画コマンドを解析してページ分の中間データを生成する。
以上の手順により、実施例1においてPDL解析部402が図6のフローにより描画オブジェクトの塗りルールに基づいてページ回転前後で描画オブジェクトの座標位置を移動し、塗りルールに従って描画方向に1ピクセル太らせた画像を形成する。
こうすることにより、印字結果が所期の画像と異なるのを解決することができる。
[S604] In step S604, the PDL analysis unit 402 determines whether all drawing commands in the page of the PDL data being analyzed have been completed.
-(Yes) The PDL analysis unit 402 ends the analysis if no drawing command remains.
-(No) On the other hand, in S604, when the PDL analysis unit 402 still has a drawing command, the PDL analysis unit 402 proceeds to S601.
[S605] If the PDL analysis unit 402 determines that the page rotation processing is not necessary, in step S605, the PDL analysis unit 402 analyzes the drawing command as usual to generate intermediate data for the page.
According to the above procedure, in the first embodiment, the PDL analysis unit 402 moves the coordinate position of the drawing object before and after the page rotation based on the drawing object fill rule according to the flow of FIG. Form the image.
By doing so, it is possible to solve the difference between the print result and the intended image.

実施例1では、PDL解析部402が、描画コマンドを解析する過程で、PSルールの描画オブジェクトの座標点を移動することにより回転後において正しく印字できるようにする処理方法について説明した。
実施例2では、画像描画部403がPSルールの描画オブジェクトに対して、ピクセルの太らせる方向を変更することで回転後において正しく印字できるようにする方法を示す。
図8は、本実施例における画像描画部403が描画オブジェクトのPSルールとページ回転方向に合わせて太らせる方向を変更するフローチャート図である。
In the first embodiment, the processing method has been described in which the PDL analysis unit 402 moves the coordinate point of the PS rule drawing object in the process of analyzing the drawing command so that printing can be performed correctly after rotation.
The second embodiment shows a method in which the image drawing unit 403 can correctly print after rotation by changing the direction in which the pixels are thickened with respect to the PS rule drawing object.
FIG. 8 is a flowchart for changing the direction in which the image drawing unit 403 in the present embodiment thickens in accordance with the PS rule of the drawing object and the page rotation direction.

〈画像描画部403におけるページ回転処理時の描画オブジェクトの塗りルールに合わせた描画処理フロー〉
[S800] ステップS800において、画像描画部403はPDL解析部402からページ回転方向の情報(0°、90°、180°、270°など)を取得する。回転方向の情報は画像形成装置300のプリンタ部304の用紙の搬送方向の情報とPDLデータの用紙サイズの方向などの情報によって印刷制御部401が決定する。
<Drawing Process Flow Matching Drawing Object Filling Rules during Page Rotation Processing in Image Drawing Unit 403>
[S800] In step S800, the image drawing unit 403 obtains information about the page rotation direction (0 °, 90 °, 180 °, 270 °, etc.) from the PDL analysis unit 402. Information about the rotation direction is determined by the print control unit 401 based on information on the paper conveyance direction of the printer unit 304 of the image forming apparatus 300 and information on the paper size direction of the PDL data.

[S801] ステップS801において、画像描画部403はPDL回転方向に合わせてPSルールの描画オブジェクトの太らせる方向を決定する。図9は画像描画部403が図2(B)のグラフィック207を描画するときに太らせる方向を変更したときの結果を示している。画像描画部403はグラフィック207がPSルールであれば開始座標206からY方向に-1のピクセル領域を塗りつぶし、X方向については、太らせる方向は変更されず、1のピクセル領域を塗りつぶすことでイメージ210との隙間を埋めることができる。 [S801] In step S801, the image drawing unit 403 determines the direction in which the drawing object of the PS rule is thickened in accordance with the PDL rotation direction. FIG. 9 shows a result when the image drawing unit 403 changes the fat direction when drawing the graphic 207 of FIG. If the graphic 207 is a PS rule, the image drawing unit 403 fills a pixel area of -1 in the Y direction from the start coordinate 206, and the X direction does not change the direction of fattening, and the image is drawn by filling one pixel area. Can fill the gap with 210.

[S802] ステップS802において、画像描画部403はPDL解析部402から取得した中間データから描画を開始する。画像描画部403はS802においてS801で決定した太らせる方向に合わせてPSルールの描画オブジェクトのビットマップデータを生成する。
ここで、図9は回転方向が90°であるが回転方向の角度が180°、270°の方向であってもよい。画像描画部403は、画像回転方向が180°であればX、Y方向に-1ピクセル、270°であればX方向に-1ピクセル、Y方向については、太らせる方向は変更されないよう決定し、実行する。
本実施例では、実施例1のようにPDL解析部402がグラフィック207の座標点を移動することなく、PDL解析部402からの回転方向の情報を元に、画像描画部403が、塗りつぶす方向を決定する。
これによって、ユーザの意図した描画結果と異なることが回避できる。
[S802] In step S802, the image drawing unit 403 starts drawing from the intermediate data acquired from the PDL analysis unit 402. In step S802, the image drawing unit 403 generates bitmap data of the PS rule drawing object in accordance with the fattening direction determined in step S801.
Here, although the rotation direction is 90 ° in FIG. 9, the rotation direction angle may be 180 ° or 270 °. If the image rotation direction is 180 °, the image drawing unit 403 determines that -1 pixel in the X and Y directions, -1 pixel in the X direction if it is 270 °, and that the direction of fattening is not changed in the Y direction. ,Run.
In the present embodiment, the PDL analysis unit 402 does not move the coordinate point of the graphic 207 as in the first embodiment, and the image drawing unit 403 determines the direction to be filled based on the rotation direction information from the PDL analysis unit 402. decide.
Thereby, it is possible to avoid a difference from the drawing result intended by the user.

(その他の実施例)
本発明は、上述の実施形態の1以上の機能を実現するプログラムを、ネットワーク又は記憶媒体を介してシステム又は装置に供給し、そのシステム又は装置のコンピュータにおける1つ以上のプロセッサーがプログラムを読出し実行する処理でも実現可能である。また、1以上の機能を実現する回路(例えば、ASIC)によっても実現可能である。
なお、上述した各種データの構成及びその内容はこれに限定されるものではなく、用途や目的に応じて、様々な構成や内容で構成が可能である。
以上、一実施形態について示したが、本発明は、例えば、システム、装置、方法、プログラムもしくは記憶媒体等としての実施態様をとることが可能である。具体的には、複数の機器から構成されるシステムに適用しても良いし、また、一つの機器からなる装置に適用しても良い。たとえば、スキャナ、プリンタ、PC、複写機、複合機およびファクシミリ装置などである。
また、上記各実施例を組み合わせた構成も全て本発明に含まれるものである
(Other examples)
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.
Note that the configuration and contents of the various data described above are not limited to this, and can be configured with various configurations and contents in accordance with applications and purposes.
Although one embodiment has been described above, the present invention can take an embodiment as, for example, a system, apparatus, method, program, or storage medium. Specifically, the present invention may be applied to a system composed of a plurality of devices, or may be applied to an apparatus composed of a single device. For example, there are a scanner, a printer, a PC, a copier, a multifunction machine, a facsimile machine, and the like.
In addition, all configurations in which the above embodiments are combined are also included in the present invention.

300 画像形成装置
301 制御部
401 印刷制御部
402 PDL解析部
403 画像描画部
300 Image forming device
301 Control unit
401 Print control unit
402 PDL analyzer
403 Image drawing unit

Claims (7)

プリンタ部を有し、入力された印刷データを印刷する画像形成装置であって、
入力された印刷データの用紙方向とプリンタ部の用紙の搬送方向に基づき、ページ回転処理の必要かどうかを判定する第1の判定手段と、
前記第1の判定手段で、ページ回転が必要であると判定された場合に、描画オブジェクトの塗りルールがPSルールで指定され、かつ回転後の描画オブジェクトの座標位置が整数値であるかどうかを判定する第2の判定手段と、
前記第2の判定手段で、描画オブジェクトの塗りルールがPSルールで、かつ座標位置が整数値の座標上であると判定された場合に、描画オブジェクトの座標位置をページ回転方向に整数値の座標に合わせて1ピクセル移動する移動手段と、
前記移動された描画オブジェクトをX及びYの描画方向にそれぞれ1ピクセル太らせる描画手段と、を有することを特徴とする画像形成装置。
An image forming apparatus that has a printer unit and prints input print data,
First determination means for determining whether or not page rotation processing is necessary based on the paper direction of the input print data and the paper conveyance direction of the printer unit;
If it is determined by the first determination means that page rotation is necessary, whether or not the drawing object fill rule is specified by the PS rule and the coordinate position of the rotated drawing object is an integer value is determined. A second determination means for determining;
When the second determining means determines that the drawing rule of the drawing object is a PS rule and the coordinate position is on an integer value coordinate, the coordinate position of the drawing object is set to an integer value coordinate in the page rotation direction. A moving means that moves 1 pixel to match,
An image forming apparatus, comprising: a drawing unit that thickens the moved drawing object by one pixel in each of the X and Y drawing directions.
前記移動手段は、オブジェクトの座標位置を、画像回転方向が90°の場合は、Y方向の-1ピクセル、180°の場合は、X、Y方向の-1ピクセル、270°の場合は、X方向に-1ピクセルずつ移動することを特徴とする請求項1に記載の画像形成装置。   When the image rotation direction is 90 °, the moving means is -1 pixel in the Y direction when the image rotation direction is 90 °, X when it is 180 °, -1 pixel in the Y direction, and X when it is 270 °. The image forming apparatus according to claim 1, wherein the image forming apparatus moves by −1 pixel in the direction. プリンタ部を有し、入力された印刷データを印刷する画像形成装置であって、
入力された印刷データの用紙方向とプリンタ部の用紙の搬送方向に基づき、ページ回転処理の必要かどうかを判定する第1の判定手段と、
前記第1の判定手段で、ページ回転が必要であると判定された場合に、描画オブジェクトの塗りルールがPSルールで指定され、かつ回転後の描画オブジェクトの座標位置が整数値であるかどうかを判定する第2の判定手段と、
前記第2の判定手段で、描画オブジェクトの塗りルールがPSルールで、かつ座標位置が整数値の座標上であると判定された場合に、前記回転の方向の情報に合わせて画像描画部のPSルールにおけるピクセルの太らせる方向を決定する決定手段と、
塗りルールがPSルールで指定された描画オブジェクトを、前記決定手段の決定に基づき決定した方向に太らせたビットマップデータを生成する生成手段と、
を有することを特徴とする画像形成装置。
An image forming apparatus that has a printer unit and prints input print data,
First determination means for determining whether or not page rotation processing is necessary based on the paper direction of the input print data and the paper conveyance direction of the printer unit;
If it is determined by the first determination means that page rotation is necessary, whether or not the drawing object fill rule is specified by the PS rule and the coordinate position of the rotated drawing object is an integer value is determined. A second determination means for determining;
When it is determined by the second determination means that the drawing rule of the drawing object is the PS rule and the coordinate position is on an integer value coordinate, the PS of the image drawing unit is matched with the information on the rotation direction. A decision means for deciding the direction of pixel fatening in the rule;
Generating means for generating bitmap data in which a drawing object whose painting rule is specified by the PS rule is fattened in a direction determined based on the determination by the determination means;
An image forming apparatus comprising:
前記第3の決定手段は、画像回転方向が90°であればX方向については変更せず、Y方向の-1ピクセル、180°であればX、Y方向の-1ピクセル、270°であればX方向に-1ピクセル、Y方向については変更せず太らせるよう決定することを特徴とする請求項3に記載の画像形成装置。   The third determining means does not change the X direction when the image rotation direction is 90 °, and does not change −1 pixel in the Y direction, and if it is 180 °, it may be −1 pixel in the X, Y direction, or 270 °. 4. The image forming apparatus according to claim 3, wherein the image forming apparatus determines that the pixel is −1 pixel in the X direction and thicker without being changed in the Y direction. プリンタ部を有し、入力された印刷データを印刷する画像形成装置の制御方法であって、
入力された印刷データの用紙方向とプリンタ部の用紙の搬送方向に基づき、ページ回転処理の必要かどうかを判定する第1の判定工程と、
前記第1の判定工程で、ページ回転が必要であると判定された場合に、描画オブジェクトの塗りルールがPSルールで指定され、かつ回転後の描画オブジェクトの座標位置が整数値であるかどうかを判定する第2の判定工程と、
前記第2の判定工程で、描画オブジェクトの塗りルールがPSルールで、かつ座標位置が整数値の座標上であると判定された場合に、描画オブジェクトの座標位置をページ回転方向に整数値の座標に合わせて1ピクセル移動する移動工程と、
前記移動された描画オブジェクトをX及びYの描画方向にそれぞれ1ピクセル太らせる描画工程と、
を有することを特徴とする画像形成装置の制御方法。
A control method of an image forming apparatus that has a printer unit and prints input print data,
A first determination step of determining whether page rotation processing is necessary based on the paper direction of the input print data and the paper conveyance direction of the printer unit;
When it is determined in the first determination step that page rotation is necessary, whether or not the drawing object fill rule is specified by the PS rule and the coordinate position of the rotated drawing object is an integer value is determined. A second determination step for determining;
In the second determination step, when it is determined that the drawing rule of the drawing object is the PS rule and the coordinate position is on the integer coordinate, the coordinate position of the drawing object is set to the integer coordinate in the page rotation direction. A moving process that moves 1 pixel to match,
A drawing step of thickening the moved drawing object by one pixel in the X and Y drawing directions;
A control method for an image forming apparatus, comprising:
プリンタ部を有し、入力された印刷データを印刷する画像形成装置の制御方法であって、
入力された印刷データの用紙方向とプリンタ部の用紙の搬送方向に基づき、ページ回転処理の必要かどうかを判定する第1の判定工程と、
前記第1の判定工程で、ページ回転が必要であると判定された場合に、描画オブジェクトの塗りルールがPSルールで指定され、かつ回転後の描画オブジェクトの座標位置が整数値であるかどうかを判定する第2の判定工程と、
前記第2の判定工程で、描画オブジェクトの塗りルールがPSルールで、かつ座標位置が整数値の座標上であると判定された場合に、前記回転の方向の情報に合わせて画像描画部のPSルールにおけるピクセルの太らせる方向を決定する決定工程と、
塗りルールがPSルールで指定された描画オブジェクトを、前記決定工程の決定に基づき決定した方向に太らせたビットマップデータを生成する生成工程と、
を有することを特徴とする画像形成装置の制御方法。
A control method of an image forming apparatus that has a printer unit and prints input print data,
A first determination step of determining whether page rotation processing is necessary based on the paper direction of the input print data and the paper conveyance direction of the printer unit;
When it is determined in the first determination step that page rotation is necessary, whether or not the drawing object fill rule is specified by the PS rule and the coordinate position of the rotated drawing object is an integer value is determined. A second determination step for determining;
If it is determined in the second determination step that the drawing rule of the drawing object is a PS rule and the coordinate position is on an integer coordinate, the PS of the image drawing unit is matched with the information on the rotation direction. A decision step for determining the direction of fattening of the pixels in the rule;
A generation step of generating bitmap data in which a drawing object whose fill rule is specified by the PS rule is fattened in a direction determined based on the determination in the determination step;
A control method for an image forming apparatus, comprising:
請求項5又は6に記載の画像形成装置の制御方法をコンピュータにより実行させるためのプログラム。  A program for causing a computer to execute the control method for an image forming apparatus according to claim 5.
JP2015184656A 2015-09-18 2015-09-18 Image forming apparatus, control method for image forming apparatus, and program Pending JP2017060070A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2015184656A JP2017060070A (en) 2015-09-18 2015-09-18 Image forming apparatus, control method for image forming apparatus, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2015184656A JP2017060070A (en) 2015-09-18 2015-09-18 Image forming apparatus, control method for image forming apparatus, and program

Publications (1)

Publication Number Publication Date
JP2017060070A true JP2017060070A (en) 2017-03-23

Family

ID=58390949

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2015184656A Pending JP2017060070A (en) 2015-09-18 2015-09-18 Image forming apparatus, control method for image forming apparatus, and program

Country Status (1)

Country Link
JP (1) JP2017060070A (en)

Similar Documents

Publication Publication Date Title
US9286553B2 (en) Image forming method, non-transitory computer readable storage medium stored with program for image forming system, and image forming system
EP2093708A2 (en) Rendering apparatus, rendering method, and storage medium
US8675237B2 (en) Image forming apparatus, image forming method, and computer readable medium for comparing two types of print data
JP2017147620A (en) Image forming apparatus, method, and program
JP5741756B1 (en) Image forming apparatus and program
US9256813B2 (en) Automatic print job ticket settings based on raster images of previously printed document
JP2013026991A (en) Image processing device, image forming device, and program
JP6120824B2 (en) Image processing apparatus, image processing method, and program
US20110131483A1 (en) Page description data processing apparatus, page description data processing method, and recording medium
US8599389B2 (en) Page description data processing apparatus, page description data processing method, print producing method, and recording medium
JP2017060070A (en) Image forming apparatus, control method for image forming apparatus, and program
US10025539B2 (en) Adaptive selection of rendering intent for negative text embedded with image objects
US8804141B2 (en) Character output device, character output method and computer readable medium
US8391647B1 (en) Pixel replacement
JP2007083556A (en) Image processor and image processing method
US8941878B2 (en) Page description data processing apparatus, page description data processing method, and recording medium
US8467077B2 (en) Page description data processing apparatus, page description data processing method, and recording medium
JP2020029067A (en) Drawing processing apparatus, drawing processing method, and program
JP2016133901A (en) Print instruction apparatus, printing system, and program
JP2017024190A (en) Image processing device, image processing method of image processing device and program
JP2019211963A (en) Information processing apparatus, information processing method, and program
JP2014197349A (en) Picture processing device, information processing method, and program
JP2011155502A (en) Printing system performing color/monochrome determination, printing method, program
JP2010056931A (en) Image processor and image processing program
JP2019208164A (en) Drawing processing apparatus, drawing processing method, and 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