JP5097685B2 - Image processing apparatus and image processing program - Google Patents
Image processing apparatus and image processing program Download PDFInfo
- Publication number
- JP5097685B2 JP5097685B2 JP2008304998A JP2008304998A JP5097685B2 JP 5097685 B2 JP5097685 B2 JP 5097685B2 JP 2008304998 A JP2008304998 A JP 2008304998A JP 2008304998 A JP2008304998 A JP 2008304998A JP 5097685 B2 JP5097685 B2 JP 5097685B2
- Authority
- JP
- Japan
- Prior art keywords
- gradation
- line image
- image
- processing
- image processing
- 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.)
- Expired - Fee Related
Links
Landscapes
- Image Generation (AREA)
Description
本発明は、画像処理装置および画像処理プログラムに関するものである。 The present invention relates to an image processing apparatus and an image processing program.
あるグラデーション描画処理方法では、垂直方向または水平方向のラインイメージを生成し、そのラインイメージを水平方向または垂直方向にコピーしていき、対象領域にグラデーションを描画する(例えば特許文献1参照)。 In a certain gradation drawing processing method, a line image in the vertical direction or the horizontal direction is generated, the line image is copied in the horizontal direction or the vertical direction, and the gradation is drawn in the target area (see, for example, Patent Document 1).
また、あるグラデーションパターン生成方法では、グラデーション方向が走査線方向に平行ではない場合、グラデーションの始点と終点を結ぶ直線に垂直で同一色の領域をそれぞれ帯状領域として設定し、帯状領域と走査線との交点を色の変化点として、走査線方向のグラデーションパターンを生成する(例えば特許文献2参照)。
上述の方法では、ラインイメージなどを一様に拡張して、対象領域におけるグラデーションパターンを生成している。このため、グラデーションの一部のみに透過率を設定する場合でも、透過率データがすべての画素に割り当てられる。つまり、ラインイメージにおいて透過率が設定されていない画素にも透過率ゼロの透過率データが付され、描画時にはすべての画素についてブレンド処理が実行される。 In the above-described method, a line pattern or the like is uniformly expanded to generate a gradation pattern in the target area. For this reason, even when the transmittance is set for only a part of the gradation, the transmittance data is assigned to all the pixels. In other words, transmittance data with a transmittance of zero is attached to pixels for which the transmittance is not set in the line image, and the blending process is executed for all the pixels at the time of drawing.
したがって、透過率データに必要なデータ容量が大きくなるとともに、ブレンド処理により描画処理の所要時間が長くなる。 Therefore, the data capacity required for the transmittance data is increased, and the time required for the drawing process is increased by the blending process.
本発明は、グラデーション描画処理に要求されるデータ容量を低くするとともにグラデーション描画処理を高速に実行可能な画像処理装置および画像処理プログラムを得ることを目的とする。 An object of the present invention is to obtain an image processing apparatus and an image processing program capable of reducing the data capacity required for gradation drawing processing and executing the gradation drawing processing at high speed.
上記の課題を解決するために、本発明では以下のようにした。 In order to solve the above problems, the present invention is configured as follows.
本発明に係る画像処理装置は、グラデーション描画命令を受信する受信手段と、グラデーション描画命令の色値のグラデーション方向のグラデーションラインイメージを生成するラインイメージ生成手段と、グラデーションラインイメージを、グラデーション方向と垂直な方向へ拡張して、グラデーション描画命令により指定された領域に対して描画を行うイメージ処理手段とを備える。そして、ラインイメージ生成手段は、グラデーション描画命令においてグラデーションの一部のみに透過率が設定されている場合、グラデーションラインイメージとして、透過率が設定されている区間の第1のグラデーションラインイメージと、透過率が設定されていない残りの区間の第2のグラデーションラインイメージとを作成し、イメージ処理手段は、その第1のグラデーションラインイメージとその第2のグラデーションラインイメージとを分離し、それぞれ拡張し描画を行う。 An image processing apparatus according to the present invention includes: a receiving unit that receives a gradation drawing command; a line image generating unit that generates a gradation line image in the gradation direction of the color value of the gradation drawing command; and the gradation line image that is perpendicular to the gradation direction. And an image processing means for drawing in an area designated by a gradation drawing command. The line image generation means, when the transmittance is set for only a part of the gradation in the gradation drawing command, the first gradation line image in the interval where the transmittance is set as the gradation line image, and the transmission The second gradation line image of the remaining section where the rate is not set is created, and the image processing means separates the first gradation line image and the second gradation line image, and expands and draws each. Do.
これにより、グラデーション描画の対象領域において、透過率が設定されている領域と透過率が設定されていない領域とが分離されて処理されるため、グラデーション描画処理に要求されるデータ容量を低くするとともにグラデーション描画処理を高速に実行することができる。 As a result, in the gradation drawing target area, the area for which the transmittance is set and the area for which the transmittance is not set are separated and processed, so that the data capacity required for the gradation drawing process is reduced. The gradation drawing process can be executed at high speed.
また、本発明に係る画像処理装置は、上記の画像処理装置に加え、次のようにしてもよい。この場合、第1のグラデーションラインイメージのデータは、透過率データを有し、第2のグラデーションラインイメージのデータは、透過率データを有さない。 In addition to the image processing apparatus described above, the image processing apparatus according to the present invention may be configured as follows. In this case, the data of the first gradation line image has transmittance data, and the data of the second gradation line image does not have transmittance data.
これにより、透過率が設定されていない領域については透過率データが付されないため、グラデーション描画処理に要求されるデータ容量が少なくて済む。 As a result, the transmittance data is not attached to the region where the transmittance is not set, so that the data capacity required for the gradation drawing process can be reduced.
また、本発明に係る画像処理装置は、上記の画像処理装置のいずれかに加え、次のようにしてもよい。この場合、イメージ処理手段は、第1のグラデーションラインイメージを拡張する際にはブレンド処理を行い、第2のグラデーションラインイメージを拡張する際には上書き描画処理を行う。 The image processing apparatus according to the present invention may be as follows in addition to any of the image processing apparatuses described above. In this case, the image processing means performs a blend process when expanding the first gradation line image, and performs an overwrite drawing process when expanding the second gradation line image.
これにより、透過率が設定されていない領域についてはブレンド処理が行われないため、グラデーション描画処理の所要時間が短くて済む。 Thereby, since the blending process is not performed for the area where the transmittance is not set, the time required for the gradation drawing process can be shortened.
また、本発明に係る画像処理装置は、上記の画像処理装置のいずれかに加え、次のようにしてもよい。この場合、イメージ処理手段は、第1のグラデーションラインイメージの拡張を一括して行い、第2のグラデーションラインイメージの拡張を一括して行う。 The image processing apparatus according to the present invention may be as follows in addition to any of the image processing apparatuses described above. In this case, the image processing means collectively extends the first gradation line image and collectively extends the second gradation line image.
また、本発明に係る画像処理装置は、上記の画像処理装置のいずれかに加え、次のようにしてもよい。この場合、画像処理装置は、グラデーション描画命令によるグラデーションを適用した場合に描画方向における色の変化が大きい場合には、グラデーション描画命令に使用すべき描画方法が前記グラデーションラインイメージによる描画処理であると判定し、そうでない場合には、グラデーション描画命令に使用すべき描画方法がフィル処理であると判定する判定手段と、グラデーション描画命令に使用すべき描画方法がフィル処理であると判定された場合に、グラデーション描画命令により指定された領域に対して、グラデーションの各色のフィル処理を実行するフィル処理手段とを備える。そして、ラインイメージ生成手段は、グラデーション描画命令に使用すべき描画方法が前記グラデーションラインイメージによる描画処理であると判定された場合に、グラデーション描画命令のグラデーション方向のグラデーションラインイメージを生成し、イメージ処理手段は、グラデーション描画命令に使用すべき描画方法が前記グラデーションラインイメージによる描画処理であると判定された場合に、グラデーションラインイメージを、グラデーション方向と垂直な方向へ拡張して描画を行う。 The image processing apparatus according to the present invention may be as follows in addition to any of the image processing apparatuses described above. In this case, the image processing apparatus determines that the drawing method to be used for the gradation drawing command is the drawing processing based on the gradation line image when the color change in the drawing direction is large when gradation by the gradation drawing command is applied. If it is determined that the drawing method to be used for the gradation drawing command is fill processing, and the drawing method to be used for the gradation drawing command is determined to be fill processing. And fill processing means for executing fill processing of each color of the gradation on the area designated by the gradation drawing command. The line image generation means generates a gradation line image in the gradation direction of the gradation drawing command when the drawing method to be used for the gradation drawing command is determined to be drawing processing by the gradation line image, and performs image processing. When it is determined that the drawing method to be used for the gradation drawing command is the drawing process using the gradation line image, the means performs drawing by extending the gradation line image in a direction perpendicular to the gradation direction.
これにより、描画方向において色の変化が少ない場合にはフィル処理により描画処理が高速に行われる。 Thereby, when there is little change in color in the drawing direction, the drawing process is performed at high speed by the fill process.
また、本発明に係る画像処理装置は、上記の画像処理装置のいずれかに加え、次のようにしてもよい。この場合、判定手段は、グラデーション描画命令により指定されているグラデーション方向並びに始点および終点での色値に基づいて、グラデーション描画命令によるグラデーションを適用した場合に描画方向における色の変化が大きいか否かを判定する。 The image processing apparatus according to the present invention may be as follows in addition to any of the image processing apparatuses described above. In this case, the determination means determines whether the color change in the drawing direction is large when gradation is applied by the gradation drawing command based on the gradation direction specified by the gradation drawing command and the color values at the start and end points. Determine.
始点の色値と終点の色値との間の差が大きいほど、詳細には隣り合うグラデーションの色の指定点の間の色の差が大きく距離が近いほど、描画方向における色の変化が大きくなり、グラデーション方向が描画方向に近づくほど描画方向における色の変化が大きくなる。したがって、グラデーション描画命令により指定されている始点の色値および終点の色値並びにグラデーション方向を考慮することで、描画方向における色の変化の度合いが特定できる。 The greater the difference between the color value at the start point and the color value at the end point, more specifically, the greater the color difference between the specified points of the adjacent gradation colors, the closer the distance, the greater the change in color in the drawing direction. Thus, the closer the gradation direction is to the drawing direction, the greater the color change in the drawing direction. Therefore, the degree of color change in the drawing direction can be specified by considering the color values of the start point and end point specified by the gradation drawing command and the gradation direction.
また、本発明に係る画像処理装置は、上記の画像処理装置のいずれかに加え、次のようにしてもよい。この場合、イメージ処理手段は、描画すべき画素ごとに、その画素についてのグラデーションラインイメージ上への投影点の色値をその画素の色値として特定する。 The image processing apparatus according to the present invention may be as follows in addition to any of the image processing apparatuses described above. In this case, for each pixel to be drawn, the image processing means specifies the color value of the projection point on the gradation line image for that pixel as the color value of that pixel.
また、本発明に係る画像処理装置は、上記の画像処理装置のいずれかに加え、次のようにしてもよい。この場合、ラインイメージ生成手段は、前記グラデーション描画命令により指定されているグラデーションの始点および/または終点が描画領域の内側にある場合には、前記始点および/または終点から外挿してグラデーションラインイメージを生成する。 The image processing apparatus according to the present invention may be as follows in addition to any of the image processing apparatuses described above. In this case, the line image generation means extrapolates the gradation line image by extrapolating from the start point and / or end point when the start point and / or end point of the gradation specified by the gradation drawing command is inside the drawing area. Generate.
本発明に係る画像処理プログラムは、コンピュータを、グラデーション描画命令を受信する受信手段、グラデーション描画命令の色値のグラデーション方向のグラデーションラインイメージを生成するラインイメージ生成手段、およびグラデーションラインイメージを、グラデーション方向と垂直な方向へ拡張して、グラデーション描画命令により指定された領域に対して描画を行うイメージ処理手段として機能させる。そして、ラインイメージ生成手段は、グラデーション描画命令においてグラデーションの一部のみに透過率が設定されている場合、グラデーションラインイメージとして、透過率が設定されている区間の第1のグラデーションラインイメージと、透過率が設定されていない残りの区間の第2のグラデーションラインイメージとを作成し、イメージ処理手段は、その第1のグラデーションラインイメージとその第2のグラデーションラインイメージとを分離し、それぞれ拡張し描画を行う。
An image processing program according to the present invention includes a computer for receiving a gradation drawing command, a line image generating unit for generating a gradation line image in the gradation direction of the color value of the gradation drawing command, and a gradation line image. The image processing means functions as an image processing means for performing drawing on an area designated by a gradation drawing command. The line image generation means, when the transmittance is set for only a part of the gradation in the gradation drawing command, the first gradation line image in the interval where the transmittance is set as the gradation line image, and the transmission The second gradation line image of the remaining section where the rate is not set is created, and the image processing means separates the first gradation line image and the second gradation line image, and expands and draws each. Do.
これにより、グラデーション描画の対象領域において、透過率が設定されている領域と透過率が設定されていない領域とが分離されて処理されるため、グラデーション描画処理に要求されるデータ容量を低くするとともにグラデーション描画処理を高速に実行することができる。 As a result, in the gradation drawing target area, the area for which the transmittance is set and the area for which the transmittance is not set are separated and processed, so that the data capacity required for the gradation drawing process is reduced. The gradation drawing process can be executed at high speed.
また、本発明に係る画像処理プログラムは、上記の画像処理プログラムに加え、次のようにしてもよい。コンピュータを、さらに、グラデーション描画命令によるグラデーションを適用した場合に描画方向における色の変化が大きい場合には、グラデーション描画命令に使用すべき描画方法が前記グラデーションラインイメージによる描画処理であると判定し、そうでない場合には、グラデーション描画命令に使用すべき描画方法がフィル処理であると判定する判定手段、およびグラデーション描画命令に使用すべき描画方法がフィル処理であると判定された場合に、グラデーション描画命令により指定された領域に対して、グラデーションの各色のフィル処理を実行するフィル処理手段として機能させる。そして、ラインイメージ生成手段は、グラデーション描画命令に使用すべき描画方法が前記グラデーションラインイメージによる描画処理であると判定された場合に、グラデーション描画命令のグラデーション方向のグラデーションラインイメージを生成し、イメージ処理手段は、グラデーション描画命令に使用すべき描画方法が前記グラデーションラインイメージによる描画処理であると判定された場合に、グラデーションラインイメージを、グラデーション方向と垂直な方向へ拡張して描画を行う。 In addition to the above-described image processing program, the image processing program according to the present invention may be as follows. If the computer further applies a gradation by the gradation drawing command and the color change in the drawing direction is large, it is determined that the drawing method to be used for the gradation drawing command is the drawing process by the gradation line image, Otherwise, the determination means for determining that the drawing method to be used for the gradation drawing command is fill processing, and the gradation drawing when the drawing method to be used for the gradation drawing command is determined to be fill processing. The area designated by the command is made to function as a fill processing means for executing fill processing of each color of gradation. The line image generation means generates a gradation line image in the gradation direction of the gradation drawing command when the drawing method to be used for the gradation drawing command is determined to be drawing processing by the gradation line image, and performs image processing. When it is determined that the drawing method to be used for the gradation drawing command is the drawing process using the gradation line image, the means performs drawing by extending the gradation line image in a direction perpendicular to the gradation direction.
これにより、描画方向において色の変化が少ない場合にはフィル処理により描画処理が高速に行われる。 Thereby, when there is little change in color in the drawing direction, the drawing process is performed at high speed by the fill process.
本発明によれば、グラデーション描画処理に要求されるデータ容量を低くするとともにグラデーション描画処理を高速に実行可能な画像処理装置および画像処理プログラムを得ることができる。 According to the present invention, it is possible to obtain an image processing apparatus and an image processing program capable of reducing the data volume required for gradation drawing processing and executing the gradation drawing processing at high speed.
以下、図に基づいて本発明の実施の形態を説明する。 Hereinafter, embodiments of the present invention will be described with reference to the drawings.
図1は、本発明の実施の形態に係る画像処理装置の構成を示すブロック図である。 FIG. 1 is a block diagram showing a configuration of an image processing apparatus according to an embodiment of the present invention.
図1において、演算処理装置1は、プログラムに従って処理を実行するコンピュータである。データ格納装置2は、プログラム、データなどが記録された記録媒体を有する装置である。データ格納装置2には、画像処理プログラム21が格納されている。このように装置としては、フラッシュメモリ、ハードディスク駆動装置、コンパクトディスクなどの可搬性記録媒体およびその駆動装置などが使用される。通信インタフェース3は、他の装置との間でデータ通信を行う装置である。通信インタフェース3としては、周辺機器インタフェース、ネットワークインタフェースなどが使用される。出力装置4は、プリンタ、ディスプレイなどといった、画像を出力する装置である。 In FIG. 1, an arithmetic processing unit 1 is a computer that executes processing according to a program. The data storage device 2 is a device having a recording medium on which programs, data, and the like are recorded. The data storage device 2 stores an image processing program 21. As described above, a portable recording medium such as a flash memory, a hard disk drive, and a compact disk, and a drive device thereof are used as the device. The communication interface 3 is a device that performs data communication with other devices. As the communication interface 3, a peripheral device interface, a network interface, or the like is used. The output device 4 is a device that outputs an image, such as a printer or a display.
演算処理装置1は、バスやコントローラを介して互いにデータ通信可能な、CPU(Central Processing Unit)11、ROM(Read Only Memory)12、RAM(Random Access Memory)13、VRAM(Video RAM)14、およびインタフェース15〜17を有する。 The arithmetic processing unit 1 includes a CPU (Central Processing Unit) 11, a ROM (Read Only Memory) 12, a RAM (Random Access Memory) 13, a VRAM (Video RAM) 14, and a data communication with each other via a bus or a controller. Interfaces 15 to 17 are provided.
CPU11は、データ格納装置2またはROM12に格納されているプログラムをRAM13にロードして実行し、プログラムに記述された処理を実行する演算処理装置である。また、ROM12は、プログラムおよびデータを予め記憶した不揮発性のメモリである。また、RAM13は、プログラムを実行する際にそのプログラムおよびデータを一時的に記憶するメモリである。 The CPU 11 is an arithmetic processing unit that loads a program stored in the data storage device 2 or the ROM 12 to the RAM 13 and executes the program, and executes processing described in the program. The ROM 12 is a nonvolatile memory that stores programs and data in advance. The RAM 13 is a memory that temporarily stores the program and data when the program is executed.
VRAM14は、出力装置4に対応する描画領域における各画素の色値を格納するメモリである。 The VRAM 14 is a memory that stores the color value of each pixel in the drawing area corresponding to the output device 4.
また、インタフェース15は、データ格納装置2を接続可能なインタフェース回路である。インタフェース16は、通信インタフェース3を接続可能なインタフェース回路である。インタフェース17は、出力装置4を接続可能なインタフェース回路である。 The interface 15 is an interface circuit to which the data storage device 2 can be connected. The interface 16 is an interface circuit to which the communication interface 3 can be connected. The interface 17 is an interface circuit to which the output device 4 can be connected.
演算処理装置1により画像処理プログラム21が実行されると、各種処理部が実現される。図2は、図1の装置において、画像処理プログラム21により実現される処理部の構成を示すブロック図である。 When the image processing program 21 is executed by the arithmetic processing device 1, various processing units are realized. FIG. 2 is a block diagram showing a configuration of a processing unit realized by the image processing program 21 in the apparatus of FIG.
図2において、データ受信部31は、通信インタフェース3を介して、ホストコンピュータなどの装置との間でデータ通信を行う処理部である。 In FIG. 2, a data receiving unit 31 is a processing unit that performs data communication with a device such as a host computer via the communication interface 3.
また、データ解析部32は、受信されたデータを解析し描画命令などを抽出する処理部である。 The data analysis unit 32 is a processing unit that analyzes received data and extracts drawing commands and the like.
また、描画データ処理部33は、データ解析部32により抽出された描画命令に対応する描画処理を描画部34に実行させる処理部である。描画データ処理部33は、描画環境管理部41、イメージ処理部42、ベクタ処理部43、文字処理部44、クリップ処理部45およびディスプレイリスト作成部46を有する。 The drawing data processing unit 33 is a processing unit that causes the drawing unit 34 to execute a drawing process corresponding to the drawing command extracted by the data analysis unit 32. The drawing data processing unit 33 includes a drawing environment management unit 41, an image processing unit 42, a vector processing unit 43, a character processing unit 44, a clip processing unit 45, and a display list creation unit 46.
描画環境管理部41は、設定情報を管理する処理部である。設定情報としては、拡大・縮小のための変換行列、現在有効なスクリーンの情報などがある。 The drawing environment management unit 41 is a processing unit that manages setting information. The setting information includes a conversion matrix for enlargement / reduction, information on a currently valid screen, and the like.
ベクタ処理部43は、ベクタデータに基づく描画処理を実行する処理部である。図3は、図2におけるベクタ処理部43の構成を示すブロック図である。ベクタ処理部43は、グラデーション処理方法判定部51、グラデーションイメージ作成部52、およびフィル処理部53を有する。 The vector processing unit 43 is a processing unit that executes a drawing process based on vector data. FIG. 3 is a block diagram showing the configuration of the vector processing unit 43 in FIG. The vector processing unit 43 includes a gradation processing method determination unit 51, a gradation image creation unit 52, and a fill processing unit 53.
グラデーション処理方法判定部51は、描画命令がグラデーション描画命令である場合、グラデーション描画命令に使用すべき描画方法がグラデーションラインイメージによる描画処理であるかフィル処理であるかを判定する処理部である。グラデーション処理方法判定部51は、グラデーション描画命令によるグラデーションを適用した場合に描画方向における色の変化が大きい場合には、グラデーション描画命令に使用すべき描画方法がグラデーションラインイメージによる描画処理であると判定し、そうでない場合には、グラデーション描画命令に使用すべき描画方法がフィル処理であると判定する。グラデーション処理方法判定部51は、グラデーション描画命令により指定されているグラデーション方向並びに始点および終点での色値に基づいて、グラデーション描画命令によるグラデーションを適用した場合に描画方向における色の変化が大きいか否かを判定する。 The gradation processing method determination unit 51 is a processing unit that determines whether a drawing method to be used for a gradation drawing command is a drawing process using a gradation line image or a fill process when the drawing command is a gradation drawing command. The gradation processing method determination unit 51 determines that the drawing method to be used for the gradation drawing command is the drawing processing based on the gradation line image when the color change in the drawing direction is large when the gradation by the gradation drawing command is applied. If not, it is determined that the drawing method to be used for the gradation drawing command is fill processing. Based on the gradation direction specified by the gradation drawing command and the color values at the start point and the end point, the gradation processing method determination unit 51 determines whether the color change in the drawing direction is large when gradation is applied by the gradation drawing command. Determine whether.
グラデーションイメージ作成部52は、グラデーション描画命令のグラデーション方向のグラデーションラインイメージを生成する処理部である。グラデーションイメージ作成部52は、グラデーション描画命令に使用すべき描画方法がグラデーションラインイメージによる描画処理であると判定された場合に、グラデーションラインイメージを生成する。 The gradation image creation unit 52 is a processing unit that generates a gradation line image in the gradation direction of the gradation drawing command. The gradation image creating unit 52 generates a gradation line image when it is determined that the drawing method to be used for the gradation drawing command is the drawing process using the gradation line image.
フィル処理部53は、グラデーション描画命令に使用すべき描画方法がフィル処理であると判定された場合に、グラデーション描画命令により指定された領域に対して、グラデーションの各色のフィル処理を実行する処理部である。フィル処理では、パスで領域が指定され、その領域が1つの色で塗りつぶされる。 When it is determined that the drawing method to be used for the gradation drawing command is the fill processing, the fill processing unit 53 executes the fill processing of each color of the gradation on the area specified by the gradation drawing command. It is. In the fill process, an area is specified by a path, and the area is filled with one color.
図2に戻り、イメージ処理部42は、イメージデータの描画処理を実行する処理部である。また、イメージ処理部42は、グラデーションラインイメージを、グラデーション方向と垂直な方向へ拡張して、グラデーション描画命令により指定された領域に対して描画を行う処理部である。イメージ処理部42は、グラデーション描画命令に使用すべき描画方法がグラデーションラインイメージによる描画処理であると判定された場合に、指定されたパスを、グラデーションラインイメージ作成部52により作成されたグラデーションラインイメージで描画する。 Returning to FIG. 2, the image processing unit 42 is a processing unit that executes drawing processing of image data. The image processing unit 42 is a processing unit that expands the gradation line image in a direction perpendicular to the gradation direction and performs drawing on the region designated by the gradation drawing command. When it is determined that the drawing method to be used for the gradation drawing command is the drawing process using the gradation line image, the image processing unit 42 uses the gradation line image created by the gradation line image creating unit 52 for the designated path. Draw with.
描画データ処理部33における文字処理部44は、文字データの描画処理を実行する処理部である。クリップ処理部45は、クリップ処理を実行する処理部である。ディスプレイリスト作成部46は、イメージ処理部42、ベクタ処理部43、文字処理部44およびクリップ処理部45による処理結果に基づいてディスプレイリストを生成する処理部である。 The character processing unit 44 in the drawing data processing unit 33 is a processing unit that executes drawing processing of character data. The clip processing unit 45 is a processing unit that performs clip processing. The display list creation unit 46 is a processing unit that generates a display list based on the processing results of the image processing unit 42, the vector processing unit 43, the character processing unit 44, and the clip processing unit 45.
また、描画部34は、描画データ処理部33の処理部46により生成されたディスプレイリストに基づくビットマップをVRAM14に書き込む処理部である。 The drawing unit 34 is a processing unit that writes a bitmap based on the display list generated by the processing unit 46 of the drawing data processing unit 33 to the VRAM 14.
また、メモリ管理部35は、演算処理装置1内のメモリを管理する処理部である。システム制御部36は、演算処理装置1内の各部の制御を行う処理部である。 The memory management unit 35 is a processing unit that manages the memory in the arithmetic processing device 1. The system control unit 36 is a processing unit that controls each unit in the arithmetic processing device 1.
ここで、グラデーションの描画処理について説明する。 Here, the gradation drawing process will be described.
グラデーション描画命令では、グラデーションの始点および終点が指定され、さらに、始点の色値および終点の色値が指定される。始点および終点は、それぞれ座標値で指定される。これにより、始点から終点へ向かう方向がグラデーション方向となる。そして、始点および終点を通る直線が複数の区間に分割され、各区間の色値が、始点の色値および終点の色値、始点および/または終点からその区間までの距離に基づいて計算され、各区間から垂直方向に延びる領域には同一色が指定される。 In the gradation drawing command, the start point and end point of the gradation are specified, and further, the color value of the start point and the color value of the end point are specified. The start point and the end point are each specified by coordinate values. Thereby, the direction from the start point to the end point becomes the gradation direction. Then, the straight line passing through the start point and the end point is divided into a plurality of sections, and the color value of each section is calculated based on the color value of the start point and the color value of the end point, the start point and / or the end point to the section, The same color is designated for the area extending vertically from each section.
また、グラデーション描画命令では、始点から終点までの区間の全部または一部のみに透過率を設定することができる。したがって、グラデーションパターンを他の画像にブレンドさせることが可能である。 In the gradation drawing command, the transmittance can be set for all or only a part of the section from the start point to the end point. Therefore, the gradation pattern can be blended with other images.
図4は、描画画像の一例を示す図である。図5は、グラデーションパターンの一例を示す図である。図6は、図4に示す画像と図5に示すグラデーションパターンとを一定の透過率でブレンド処理した画像を示す図である。例えば、図4に示す画像と図5に示すグラデーションパターンとを一定の透過率で図6に示すようにブレンドさせることが可能である。 FIG. 4 is a diagram illustrating an example of a drawn image. FIG. 5 is a diagram illustrating an example of a gradation pattern. FIG. 6 is a diagram showing an image obtained by blending the image shown in FIG. 4 and the gradation pattern shown in FIG. 5 with a constant transmittance. For example, the image shown in FIG. 4 and the gradation pattern shown in FIG. 5 can be blended with a constant transmittance as shown in FIG.
また、グラデーションの一部のみに透過率が設定されている場合には、透過率が設定されている領域のみにおいて、図4に示す画像が透けて見える。図7は、図4に示す画像と、一部のみに透過率が設定されているグラデーションパターンとを重畳した画像を示す図である。 Further, when the transmittance is set for only a part of the gradation, the image shown in FIG. 4 is seen through only in the region where the transmittance is set. FIG. 7 is a diagram showing an image obtained by superimposing the image shown in FIG. 4 and the gradation pattern in which the transmittance is set only on a part thereof.
この装置では、1頁分の描画領域を複数のバンドに分割し、各バンドについて描画処理を実行する。図8は、1頁分の描画領域を分割したバンドの一例を示す図である。図8に示すように、描画領域は、描画方向(描画画素の連続方向)がバンドの長辺となるように、描画方向の垂直方向において分割される。 In this apparatus, a drawing area for one page is divided into a plurality of bands, and a drawing process is executed for each band. FIG. 8 is a diagram illustrating an example of a band obtained by dividing a drawing area for one page. As shown in FIG. 8, the drawing area is divided in the direction perpendicular to the drawing direction so that the drawing direction (the continuous direction of the drawing pixels) is the long side of the band.
次に、上記装置の動作について説明する。図9は、図1の装置の動作を説明するフローチャートである。 Next, the operation of the above apparatus will be described. FIG. 9 is a flowchart for explaining the operation of the apparatus shown in FIG.
データ受信部31によりグラデーション描画命令を含むデータが受信され、データ解析部32から描画データ処理部33へグラデーション描画命令が供給される(ステップS1)。 Data including a gradation drawing command is received by the data receiving unit 31, and the gradation drawing command is supplied from the data analysis unit 32 to the drawing data processing unit 33 (step S1).
そのグラデーション描画命令は、描画データ処理部33のベクタ処理部43に割り振られる。ベクタ処理部43のグラデーション処理方法判定部51は、そのグラデーション描画命令により指定される描画処理を、フィル処理部53で行うか、グラデーションイメージ作成部52およびイメージ処理部42で行うかを判定する(ステップS2)。 The gradation drawing command is assigned to the vector processing unit 43 of the drawing data processing unit 33. The gradation processing method determination unit 51 of the vector processing unit 43 determines whether the drawing processing specified by the gradation drawing command is performed by the fill processing unit 53 or the gradation image creation unit 52 and the image processing unit 42 ( Step S2).
このとき、判定部51は、バンド方向における色変化が大きいか否かを判定する。判定部51は、バンド方向における色変化が大きい場合には、描画処理をグラデーションイメージ作成部52およびイメージ処理部42で行うとを判定し、そうでない場合には、描画処理をフィル処理部53で行うと判定する。 At this time, the determination unit 51 determines whether or not the color change in the band direction is large. When the color change in the band direction is large, the determination unit 51 determines that the drawing processing is performed by the gradation image creation unit 52 and the image processing unit 42, and otherwise, the drawing processing is performed by the fill processing unit 53. Determine to do.
例えば、判定部51は、グラデーション描画命令により指定されているグラデーション方向並びに始点および終点での色値に基づいて、グラデーション描画命令によるグラデーションを適用した場合に描画方向における色の変化が大きいか否かを判定する。 For example, the determination unit 51 determines whether or not the color change in the drawing direction is large when the gradation according to the gradation drawing command is applied based on the gradation direction specified by the gradation drawing command and the color values at the start and end points. Determine.
バンド方向における色変化が大きいと判定された場合、グラデーションイメージ作成部52は、グラデーション描画命令に基づきグラデーションラインイメージを生成する(ステップS3)。グラデーションラインイメージは、グラデーション描画命令により指定された始点および終点を通過する直線に沿った幅1画素のイメージデータである。始点および/または終点が所定の描画領域の内側に位置する場合には、垂直方向への拡張時に描画領域のすべての覆うことができる位置まで外挿してグラデーションラインイメージが生成される。例えば、外挿部分の色値は、隣接する始点または終点の色値と同一とされる。 When it is determined that the color change in the band direction is large, the gradation image creating unit 52 generates a gradation line image based on the gradation drawing command (step S3). The gradation line image is image data having a width of 1 pixel along a straight line passing through the start point and the end point specified by the gradation drawing command. When the start point and / or the end point are located inside the predetermined drawing area, the gradation line image is generated by extrapolating all the drawing areas that can be covered when extending in the vertical direction. For example, the color value of the extrapolated portion is the same as the color value of the adjacent start point or end point.
グラデーション描画命令により、グラデーションの一部のみについて透過率αが設定されている場合、グラデーションイメージ作成部52は、グラデーション描画命令に基づき、透過率が設定されている区間のグラデーションラインイメージ(第1のグラデーションラインイメージ)および透過率が設定されていない区間のグラデーションラインイメージ(第2のグラデーションラインイメージ)を生成する。このとき、第1のグラデーションラインイメージのデータには、透過率データが含まれているが、第2のグラデーションラインイメージのデータには、透過率データは含まれていない。図10は、一部に透過率が設定されているグラデーションラインイメージの一例を示す図である。図10(A)に示すグラデーションパターンは、一部が不透明となっており、図10(B)に示すラインイメージは、図10(A)に示すグラデーションパターンに対応し、不透明な部分には透過率データを有さない。 When the transmittance α is set for only a part of the gradation by the gradation drawing command, the gradation image creating unit 52 uses the gradation line image (the first line) of the section where the transmittance is set based on the gradation drawing command. (Gradation line image) and a gradation line image (second gradation line image) in a section where the transmittance is not set are generated. At this time, the transmittance data is included in the data of the first gradation line image, but the transmittance data is not included in the data of the second gradation line image. FIG. 10 is a diagram illustrating an example of a gradation line image in which the transmittance is set in part. The gradation pattern shown in FIG. 10A is partially opaque, and the line image shown in FIG. 10B corresponds to the gradation pattern shown in FIG. I don't have rate data.
グラデーションラインイメージが生成された後、イメージ処理部42は、グラデーションラインイメージを、グラデーション方向と垂直な方向へ拡張して描画領域内にグラデーションパターンの描画を行う(ステップS4)。この描画処理では、イメージ処理部42は、描画方向に沿って各画素の色値を順番に計算し、ディスプレイリスト作成部46は、その色値に対応するディスプレイリストを生成し、描画部34は、そのディスプレイリストに基づき、VRAM14へ画素値の書き込みを行う。イメージ処理部42は、対象となる描画領域の画素について、グラデーションの始点および終点を通る直線上の投影点(画素の位置からその直線への垂線とその直線との交点)の位置を特定し、その位置におけるグラデーションラインイメージの画素の色値を特定し、その色値を、対象となる描画領域の画素の色値とする。 After the gradation line image is generated, the image processing unit 42 extends the gradation line image in the direction perpendicular to the gradation direction and draws the gradation pattern in the drawing area (step S4). In this drawing process, the image processing unit 42 sequentially calculates the color value of each pixel along the drawing direction, the display list creation unit 46 generates a display list corresponding to the color value, and the drawing unit 34 Based on the display list, the pixel value is written into the VRAM 14. The image processing unit 42 specifies the position of the projection point on the straight line passing through the start point and end point of the gradation (intersection of the vertical line from the pixel position to the straight line and the straight line) for the pixel in the target drawing area, The color value of the pixel of the gradation line image at the position is specified, and the color value is set as the color value of the pixel in the target drawing area.
グラデーションラインイメージとして第1および第2のグラデーションラインイメージが生成されている場合には、イメージ処理部42は、第1のグラデーションラインイメージを、グラデーション方向と垂直な方向へ拡張して、透過率データを適用したブレンド処理でグラデーションパターンの描画を行う。このとき、イメージ処理部42は、第1のグラデーションラインイメージを拡張して描画を行う領域について、描画方向に沿って各画素の色値を順番に計算し、ディスプレイリスト作成部46は、その色値および透過率データに基づくブレンド処理を行うディスプレイリストを生成し、描画部34は、そのディスプレイリストに基づき、VRAM14へ画素値の書き込みを行う。この場合、次に、イメージ処理部42は、第2のグラデーションラインイメージを、グラデーション方向と垂直な方向へ拡張して、上書き処理でグラデーションパターンの描画を行う。このとき、イメージ処理部42は、第2のグラデーションラインイメージを拡張して描画を行う領域について、描画方向に沿って各画素の色値を順番に計算し、ディスプレイリスト作成部46は、その色値に基づく上書き処理を行うディスプレイリストを生成し、描画部34は、そのディスプレイリストに基づき、VRAM14へ画素値の書き込みを行う。なお、ブレンド処理では、2つの画像について同一位置の画素における2つの色値の、透過率によって重み付けした平均値が計算され、その画素のブレンド処理後の色値とされる。 When the first and second gradation line images are generated as the gradation line image, the image processing unit 42 expands the first gradation line image in the direction perpendicular to the gradation direction, and transmits the transmittance data. Draw a gradation pattern by blending with. At this time, the image processing unit 42 calculates the color value of each pixel in order along the drawing direction for the area in which the first gradation line image is extended and drawn, and the display list creation unit 46 A display list for performing blend processing based on the value and the transmittance data is generated, and the drawing unit 34 writes pixel values to the VRAM 14 based on the display list. In this case, next, the image processing unit 42 expands the second gradation line image in the direction perpendicular to the gradation direction, and draws the gradation pattern by the overwriting process. At this time, the image processing unit 42 sequentially calculates the color value of each pixel along the drawing direction for the area in which the second gradation line image is extended and drawn, and the display list creation unit 46 The display list for performing the overwrite process based on the value is generated, and the drawing unit 34 writes the pixel value to the VRAM 14 based on the display list. In the blending process, an average value of two color values in the pixel at the same position for two images, which is weighted by the transmittance, is calculated and used as the color value after the blending process for the pixel.
ここで、グラデーションラインイメージに基づいて描画領域における各画素をどのようにしてグラデーションラインイメージにより描画するかを説明する。 Here, how to draw each pixel in the drawing area using the gradation line image based on the gradation line image will be described.
図11は、バンド方向における色変化が大きい場合のグラデーションパターンの一例を示す図である。図11に示すグラデーションパターンのグラデーション方向は描画方向(バンド方向)に対して斜めである。図12は、図11に示すグラデーションパターンに対応するグラデーションラインイメージを示す図である。 FIG. 11 is a diagram illustrating an example of a gradation pattern when the color change in the band direction is large. The gradation direction of the gradation pattern shown in FIG. 11 is oblique to the drawing direction (band direction). FIG. 12 is a diagram showing a gradation line image corresponding to the gradation pattern shown in FIG.
図13は、描画領域内の画素とグラデーションラインイメージ内の画素との対応関係の一例を示す図である。図13に示すように、描画領域内の各画素は、グラデーションラインイメージ内のいずれかの画素に対応する。図14および図15は、グラデーションラインイメージによる描画処理において、描画される画素の順番を示す図である。図14および図15に示すように、描画方向に沿って順番に各画素の色値が上述のようにして特定されていく。 FIG. 13 is a diagram illustrating an example of a correspondence relationship between pixels in the drawing area and pixels in the gradation line image. As shown in FIG. 13, each pixel in the drawing area corresponds to one of the pixels in the gradation line image. 14 and 15 are diagrams illustrating the order of pixels to be drawn in the drawing process using the gradation line image. As shown in FIGS. 14 and 15, the color value of each pixel is specified as described above in order along the drawing direction.
このようにして、グラデーションラインイメージによる描画処理により、グラデーションパターンが描画される。 In this way, the gradation pattern is drawn by the drawing process using the gradation line image.
一方、バンド方向における色変化が大きくないと判定された場合、フィル処理部53は、グラデーション描画命令に基づき、フィル処理でグラデーションパターンの描画を行う(ステップS5)。フィル処理部53は、グラデーション描画命令に基づき、バンド内で同一色の各領域をパスで指定して、ディスプレイリスト作成部46に、その各領域にフィル処理を施すディスプレイリストを生成させる。描画部34は、そのディスプレイリストに基づき、VRAM14へ画素値の書き込みを行う。 On the other hand, when it is determined that the color change in the band direction is not large, the fill processing unit 53 draws the gradation pattern by the fill processing based on the gradation drawing command (step S5). Based on the gradation drawing command, the fill processing unit 53 designates each region of the same color within the band by a pass, and causes the display list creation unit 46 to generate a display list for performing the fill processing on each region. The drawing unit 34 writes pixel values to the VRAM 14 based on the display list.
このようにして、描画領域への描画処理が完了すると、その描画領域のデータがインタフェース17を介して出力装置4へ供給され、出力装置4は、そのデータに基づいて、画像を出力する。 Thus, when the drawing process in the drawing area is completed, the data in the drawing area is supplied to the output device 4 via the interface 17, and the output device 4 outputs an image based on the data.
以上のように、上記実施の形態によれば、データ受信部31が受信したグラデーション描画命令について、グラデーションイメージ作成部52は、グラデーション描画命令のグラデーション方向のグラデーションラインイメージを生成し、イメージ処理部42は、そのグラデーションラインイメージを、グラデーション方向と垂直な方向へ拡張して、グラデーション描画命令により指定された領域に対して描画を行う。そして、グラデーションイメージ作成部52は、グラデーション描画命令においてグラデーションの一部のみに透過率が設定されている場合、グラデーションラインイメージとして、透過率が設定されている区間の第1のグラデーションラインイメージと、透過率が設定されていない区間の第2のグラデーションラインイメージとを作成する。 As described above, according to the above-described embodiment, for the gradation drawing command received by the data receiving unit 31, the gradation image creating unit 52 generates a gradation line image in the gradation direction of the gradation drawing command, and the image processing unit 42. Expands the gradation line image in a direction perpendicular to the gradation direction, and performs drawing on the area designated by the gradation drawing command. Then, when the transmittance is set for only a part of the gradation in the gradation drawing command, the gradation image creating unit 52, as the gradation line image, the first gradation line image of the section in which the transmittance is set; A second gradation line image in a section where the transmittance is not set is created.
これにより、グラデーション描画の対象領域において、透過率が設定されている領域と透過率が設定されていない領域とが分離されて処理されるため、グラデーション描画処理に要求されるデータ容量を低くするとともにグラデーション描画処理を高速に実行することができる。 As a result, in the gradation drawing target area, the area for which the transmittance is set and the area for which the transmittance is not set are separated and processed, so that the data capacity required for the gradation drawing process is reduced. The gradation drawing process can be executed at high speed.
また、上記実施の形態によれば、第1のグラデーションラインイメージのデータは、透過率データを有し、第2のグラデーションラインイメージのデータは、透過率データを有さない。 Further, according to the above embodiment, the data of the first gradation line image has the transmittance data, and the data of the second gradation line image does not have the transmittance data.
これにより、透過率が設定されていない領域については透過率データが付されないため、グラデーション描画処理に要求されるデータ容量が少なくて済む。 As a result, the transmittance data is not attached to the region where the transmittance is not set, so that the data capacity required for the gradation drawing process can be reduced.
また、上記実施の形態によれば、イメージ処理部42は、第1のグラデーションラインイメージを拡張する際にはブレンド処理を行い、第2のグラデーションラインイメージを拡張する際には上書き描画処理を行う。 Further, according to the above embodiment, the image processing unit 42 performs blend processing when expanding the first gradation line image, and performs overwrite drawing processing when expanding the second gradation line image. .
これにより、透過率が設定されていない領域についてはブレンド処理が行われないため、グラデーション描画処理の所要時間が短くて済む。 Thereby, since the blending process is not performed for the area where the transmittance is not set, the time required for the gradation drawing process can be shortened.
また、上記実施の形態によれば、判定部51は、グラデーション描画命令によるグラデーションを適用した場合に描画方向における色の変化が大きい場合には、グラデーション描画命令に使用すべき描画方法がグラデーションラインイメージによる描画処理であると判定し、そうでない場合には、グラデーション描画命令に使用すべき描画方法がフィル処理であると判定する。そして、グラデーション描画命令に使用すべき描画方法がフィル処理であると判定された場合、フィル処理部53は、グラデーション描画命令により指定された領域に対して、グラデーションの各色のフィル処理を実行する。また、グラデーション描画命令に使用すべき描画方法がグラデーションラインイメージによる描画処理であると判定された場合、グラデーションイメージ作成部52は、グラデーション描画命令のグラデーション方向のグラデーションラインイメージを生成し、イメージ処理部42は、グラデーション描画命令に使用すべき描画方法がグラデーションラインイメージによる描画処理であると判定された場合に、グラデーションラインイメージを、グラデーション方向と垂直な方向へ拡張して描画を行う。 Further, according to the above embodiment, when the gradation by the gradation drawing command is applied and the color change in the drawing direction is large, the determination unit 51 determines the drawing method to be used for the gradation drawing command as the gradation line image. If it is not, it is determined that the drawing method to be used for the gradation drawing command is the fill process. When it is determined that the drawing method to be used for the gradation drawing command is fill processing, the fill processing unit 53 performs fill processing of each color of gradation on the area specified by the gradation drawing command. When it is determined that the drawing method to be used for the gradation drawing command is drawing processing using a gradation line image, the gradation image creating unit 52 generates a gradation line image in the gradation direction of the gradation drawing command, and the image processing unit When it is determined that the drawing method to be used for the gradation drawing command is drawing processing using a gradation line image, the drawing is performed by extending the gradation line image in a direction perpendicular to the gradation direction.
これにより、描画方向において色の変化が少ない場合にはフィル処理により描画処理が高速に行われる。 Thereby, when there is little change in color in the drawing direction, the drawing process is performed at high speed by the fill process.
また、上記実施の形態によれば、判定部51は、グラデーション描画命令により指定されているグラデーション方向並びに始点および終点での色値に基づいて、グラデーション描画命令によるグラデーションを適用した場合に描画方向における色の変化が大きいか否かを判定する。始点の色値と終点の色値との間の差が大きいほど描画方向における色の変化が大きくなり、グラデーション方向が描画方向に近づくほど描画方向における色の変化が大きくなる。したがって、グラデーション描画命令により指定されている始点の色値および終点の色値並びにグラデーション方向を考慮することで、描画方向における色の変化の度合いが特定できる。 Further, according to the above embodiment, the determination unit 51 applies the gradation in the drawing direction when the gradation by the gradation drawing command is applied based on the gradation direction specified by the gradation drawing command and the color values at the start point and the end point. It is determined whether the color change is large. The greater the difference between the start point color value and the end point color value, the greater the color change in the drawing direction, and the closer the gradation direction is to the drawing direction, the greater the color change in the drawing direction. Therefore, the degree of color change in the drawing direction can be specified by considering the color values of the start point and end point specified by the gradation drawing command and the gradation direction.
なお、上述の実施の形態は、本発明の好適な例であるが、本発明は、これらに限定されるものではなく、本発明の要旨を逸脱しない範囲において、種々の変形、変更が可能である。 The above-described embodiments are preferred examples of the present invention, but the present invention is not limited to these, and various modifications and changes can be made without departing from the scope of the present invention. is there.
例えば、上記実施の形態において、グラデーションパターン内において、透過率が設定されていない領域が2つ以上あってもよい。 For example, in the above embodiment, there may be two or more areas in which no transmittance is set in the gradation pattern.
また、上記実施の形態において、画像処理プログラム21は、ROM12に格納されていてもよい。 In the above embodiment, the image processing program 21 may be stored in the ROM 12.
また、上記実施の形態において、RAM13の一部の記憶領域をVRAM14として使用するようにしてもよい。 In the above embodiment, a part of the storage area of the RAM 13 may be used as the VRAM 14.
本発明は、例えば、印刷装置に適用可能である。 The present invention is applicable to, for example, a printing apparatus.
1 演算処理装置(コンピュータの一例)
21 画像処理プログラム
31 データ受信部(受信手段の一例)
42 イメージ処理部(イメージ処理手段の一例)
51 グラデーション処理方法判定部(判定手段の一例)
52 グラデーションイメージ作成部(ラインイメージ生成手段の一例)
53 フィル処理部(フィル処理手段の一例)
1. Arithmetic processing device (example of computer)
21 Image processing program 31 Data receiving section (an example of receiving means)
42 Image processing unit (an example of image processing means)
51 Gradation processing method determination unit (an example of determination means)
52 Gradation image creation unit (an example of line image generation means)
53 Fill processing unit (an example of fill processing means)
Claims (10)
グラデーション描画命令を受信する受信手段と、
前記グラデーション描画命令の色値のグラデーション方向のグラデーションラインイメージを生成するラインイメージ生成手段と、
前記グラデーションラインイメージを、前記グラデーション方向と垂直な方向へ拡張して、前記グラデーション描画命令により指定された領域に対して描画を行うイメージ処理手段とを備え、
前記ラインイメージ生成手段は、前記グラデーション描画命令においてグラデーションの一部のみに透過率が設定されている場合、前記グラデーションラインイメージとして、透過率が設定されている区間の第1のグラデーションラインイメージと、透過率が設定されていない残りの区間の第2のグラデーションラインイメージとを作成し、
前記イメージ処理手段は、前記第1のグラデーションラインイメージと前記第2のグラデーションラインイメージとを分離し、それぞれ拡張し前記描画を行うこと、
を特徴とする画像処理装置。 In an image processing apparatus that continuously performs drawing processing along a predetermined drawing direction,
Receiving means for receiving a gradation drawing command;
Line image generation means for generating a gradation line image in the gradation direction of the color value of the gradation drawing command;
Image processing means for extending the gradation line image in a direction perpendicular to the gradation direction and performing drawing on an area designated by the gradation drawing command;
When the transmittance is set for only a part of the gradation in the gradation drawing command, the line image generation means, as the gradation line image, a first gradation line image in a section where the transmittance is set; Create the second gradation line image of the remaining section where the transmittance is not set ,
The image processing means separates the first gradation line image and the second gradation line image, respectively expands and performs the drawing ;
An image processing apparatus.
前記グラデーション描画命令に使用すべき描画方法がフィル処理であると判定された場合に、前記グラデーション描画命令により指定された領域に対して、グラデーションの各色のフィル処理を実行するフィル処理手段とを備え、
前記ラインイメージ生成手段は、前記グラデーション描画命令に使用すべき描画方法が前記グラデーションラインイメージによる描画処理であると判定された場合に、前記グラデーション描画命令のグラデーション方向のグラデーションラインイメージを生成し、
前記イメージ処理手段は、前記グラデーション描画命令に使用すべき描画方法が前記グラデーションラインイメージによる描画処理であると判定された場合に、前記グラデーションラインイメージを、前記グラデーション方向と垂直な方向へ拡張して描画を行うこと、
を特徴とする請求項1から請求項4のうちのいずれか1項記載の画像処理装置。 When the gradation by the gradation drawing command is applied and the color change in the drawing direction is large, it is determined that the drawing method to be used for the gradation drawing command is the drawing processing by the gradation line image. Determining means for determining that the drawing method to be used for the gradation drawing command is fill processing;
Fill processing means for executing fill processing of each color of gradation on an area designated by the gradation drawing command when it is determined that the drawing method to be used for the gradation drawing command is fill processing. ,
The line image generation means generates a gradation line image in the gradation direction of the gradation drawing instruction when it is determined that a drawing method to be used for the gradation drawing instruction is drawing processing by the gradation line image;
The image processing means expands the gradation line image in a direction perpendicular to the gradation direction when it is determined that a drawing method to be used for the gradation drawing command is a drawing process using the gradation line image. Doing drawing,
The image processing apparatus according to claim 1, wherein:
前記コンピュータを、
グラデーション描画命令を受信する受信手段、
前記グラデーション描画命令の色値のグラデーション方向のグラデーションラインイメージを生成するラインイメージ生成手段、および
前記グラデーションラインイメージを、前記グラデーション方向と垂直な方向へ拡張して、前記グラデーション描画命令により指定された領域に対して描画を行うイメージ処理手段として機能させ、
前記ラインイメージ生成手段は、前記グラデーション描画命令においてグラデーションの一部のみに透過率が設定されている場合、前記グラデーションラインイメージとして、透過率が設定されている区間の第1のグラデーションラインイメージと、透過率が設定されていない残りの区間の第2のグラデーションラインイメージとを作成し、
前記イメージ処理手段は、前記第1のグラデーションラインイメージと前記第2のグラデーションラインイメージとを分離し、それぞれ拡張し前記描画を行うこと、
を特徴とする画像処理プログラム。 In an image processing program for causing a computer to perform drawing processing continuously along a predetermined drawing direction,
The computer,
Receiving means for receiving a gradation drawing command;
Line image generation means for generating a gradation line image in the gradation direction of the color value of the gradation drawing command, and an area designated by the gradation drawing command by extending the gradation line image in a direction perpendicular to the gradation direction Function as image processing means for drawing
When the transmittance is set for only a part of the gradation in the gradation drawing command, the line image generation means, as the gradation line image, a first gradation line image in a section where the transmittance is set; Create the second gradation line image of the remaining section where the transmittance is not set ,
The image processing means separates the first gradation line image and the second gradation line image, respectively expands and performs the drawing ;
An image processing program characterized by the above.
前記グラデーション描画命令によるグラデーションを適用した場合に描画方向における色の変化が大きい場合には、前記グラデーション描画命令に使用すべき描画方法が前記グラデーションラインイメージによる描画処理であると判定し、そうでない場合には、前記グラデーション描画命令に使用すべき描画方法がフィル処理であると判定する判定手段、および
前記グラデーション描画命令に使用すべき描画方法がフィル処理であると判定された場合に、前記グラデーション描画命令により指定された領域に対して、グラデーションの各色のフィル処理を実行するフィル処理手段として機能させ、
前記ラインイメージ生成手段は、前記グラデーション描画命令に使用すべき描画方法が前記グラデーションラインイメージによる描画処理であると判定された場合に、前記グラデーション描画命令のグラデーション方向のグラデーションラインイメージを生成し、
前記イメージ処理手段は、前記グラデーション描画命令に使用すべき描画方法が前記グラデーションラインイメージによる描画処理であると判定された場合に、前記グラデーションラインイメージを、前記グラデーション方向と垂直な方向へ拡張して描画を行うこと、
を特徴とする請求項9記載の画像処理プログラム。 Said computer further
When the gradation by the gradation drawing command is applied and the color change in the drawing direction is large, it is determined that the drawing method to be used for the gradation drawing command is the drawing processing by the gradation line image. Determining means for determining that a drawing method to be used for the gradation drawing command is fill processing; and, if the drawing method to be used for the gradation drawing command is determined to be fill processing, the gradation drawing For the area specified by the command, it functions as a fill processing means for executing fill processing for each color of gradation,
The line image generation means generates a gradation line image in the gradation direction of the gradation drawing instruction when it is determined that a drawing method to be used for the gradation drawing instruction is drawing processing by the gradation line image;
The image processing means expands the gradation line image in a direction perpendicular to the gradation direction when it is determined that a drawing method to be used for the gradation drawing command is a drawing process using the gradation line image. Doing drawing,
The image processing program according to claim 9.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2008304998A JP5097685B2 (en) | 2008-11-28 | 2008-11-28 | Image processing apparatus and image processing program |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2008304998A JP5097685B2 (en) | 2008-11-28 | 2008-11-28 | Image processing apparatus and image processing program |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JP2010128950A JP2010128950A (en) | 2010-06-10 |
| JP5097685B2 true JP5097685B2 (en) | 2012-12-12 |
Family
ID=42329276
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2008304998A Expired - Fee Related JP5097685B2 (en) | 2008-11-28 | 2008-11-28 | Image processing apparatus and image processing program |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP5097685B2 (en) |
Family Cites Families (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH1125282A (en) * | 1997-06-30 | 1999-01-29 | Fuji Xerox Co Ltd | Picture forming device and method for generating gradation pattern |
| JP3667173B2 (en) * | 1999-09-27 | 2005-07-06 | キヤノン株式会社 | Image processing apparatus and image processing method |
| JP4821645B2 (en) * | 2007-02-21 | 2011-11-24 | 富士ゼロックス株式会社 | Image processing system, image processing apparatus, and image processing program |
-
2008
- 2008-11-28 JP JP2008304998A patent/JP5097685B2/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| JP2010128950A (en) | 2010-06-10 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP6207618B2 (en) | Drawing device | |
| JP3008943B1 (en) | Image processing apparatus and image processing method | |
| JP6385406B2 (en) | Image processing apparatus, image processing method, and program | |
| JP4510847B2 (en) | Image processing apparatus and image processing program | |
| JP5097685B2 (en) | Image processing apparatus and image processing program | |
| JP2010028429A (en) | Image processing apparatus, image processing method, and program | |
| JP5325744B2 (en) | Image processing apparatus and image processing program | |
| JP6904717B2 (en) | Image processing equipment, its control method, and programs | |
| JP2549630B2 (en) | Image information processing device | |
| JP5112223B2 (en) | Image processing apparatus and image processing program | |
| JP5790000B2 (en) | Printing apparatus and printing method therefor | |
| JP2004334533A (en) | Image processing device and method | |
| JP4950643B2 (en) | Image forming apparatus, control method thereof, and computer program | |
| JP5720335B2 (en) | Image processing apparatus and image processing program | |
| JP4404117B2 (en) | Image processing circuit, display device and printing device | |
| JP2727667B2 (en) | Drawing equipment | |
| US20070211283A1 (en) | Image processing apparatus | |
| JP2009253604A (en) | Image processing apparatus, image processing method, and program | |
| JP6468088B2 (en) | Information processing apparatus, control method thereof, and program | |
| JP5385592B2 (en) | Image processing apparatus and control method thereof | |
| JP2017154395A (en) | Information processing device, image processing device, and information processing method | |
| JP2001307114A (en) | Image processor and image processing method | |
| JP2012195818A (en) | Image processing device, image processing method, and image processing program | |
| JP2009145979A (en) | Data processing device | |
| JP2019197327A (en) | Image processing apparatus, image processing method, and program |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20110322 |
|
| A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20120528 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20120612 |
|
| A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20120808 |
|
| TRDD | Decision of grant or rejection written | ||
| A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20120828 |
|
| A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20120924 |
|
| R150 | Certificate of patent or registration of utility model |
Ref document number: 5097685 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20150928 Year of fee payment: 3 |
|
| LAPS | Cancellation because of no payment of annual fees |