JP2001043390A - Image processing device and method, and recording medium recording image processing program - Google Patents

Image processing device and method, and recording medium recording image processing program

Info

Publication number
JP2001043390A
JP2001043390A JP21416099A JP21416099A JP2001043390A JP 2001043390 A JP2001043390 A JP 2001043390A JP 21416099 A JP21416099 A JP 21416099A JP 21416099 A JP21416099 A JP 21416099A JP 2001043390 A JP2001043390 A JP 2001043390A
Authority
JP
Japan
Prior art keywords
curve
color
gradation
line
drawn
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
JP21416099A
Other languages
Japanese (ja)
Inventor
Kazunobu Sugitani
和宣 杉谷
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 JP21416099A priority Critical patent/JP2001043390A/en
Publication of JP2001043390A publication Critical patent/JP2001043390A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To draw a gradation along a freely drawn curve in variable gray level or a color and also to freely set the color width of the gradation, the processing to be executed when the colors overlap each other and the direction of the gradation set to the segment of the drawn curve, i.e., the change from shade to light or vice versa. SOLUTION: The areas of both sides of a freely drawn curve 51 or one of these two areas are colored by drawing gradations on the basis of prescribed or designated colors. The normal width of the curve 51 suitable for the coloring width of the same color is decided and then the normal coordinates are decided on the curve 51 according to the decided normal width. The start and end colors are set and the color difference is decided per coloring from the start and end colors and the length and width of the curve 51. Then the gradations are drawn along the curve 51 and in the areas of both sides of the curve 51 or in one of these two areas by means of the color difference. If the drawing areas overlap each other, one of both areas where a gradation is already drawn has preference to the other and the gradation is never drawn again there.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、濃淡や色彩のグラ
デーションを描画できる画像処理装置および画像処理方
法、並びに画像処理用プログラムを記録した記録媒体に
関し、特に曲線のグラデーションを簡単に描画する技術
に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image processing apparatus and an image processing method capable of drawing gradation of light and shade and color, and a recording medium on which an image processing program is recorded, and more particularly to a technique for easily drawing gradation of a curve. .

【0002】[0002]

【従来の技術】色または濃度を連続的に変化させたもの
をグラデーションという。グラデーションは3次元CG
(コンピュータグラフィック)で球、円柱、自由曲面な
どのシェーディングを行う際にも使われている。このよ
うに、従来から、パソコン等の画像の処理で濃淡若しく
は色彩のグラデーション描画ができるものがあったが、
グラデーションの変化の方向は直線であり、曲線上にグ
ラデーションをするには、一旦直線でグラデーションを
描画したものを曲線に変形させる等の処理が必要であっ
た。
2. Description of the Related Art A gradation in which the color or density is continuously changed is called gradation. Gradation is 3D CG
It is also used when shading spheres, cylinders, free-form surfaces, etc. in (computer graphics). As described above, in the past, there was a type in which gradation drawing of shades or colors could be drawn by processing an image of a personal computer or the like.
The direction of the gradation change is a straight line, and in order to perform the gradation on the curve, it is necessary to perform processing such as once transforming a linearly drawn gradation into a curve.

【0003】[0003]

【発明が解決しようとする課題】しかし、上記のように
一旦直線でグラデーションを描画したものを曲線に変形
させる処理を必要とする従来技術は、自由に曲線を描い
てそれに沿ってグラデーションを付ける方法に比べて煩
雑で自由度が低かった。
However, as described above, the prior art which requires a process of once drawing a gradation with a straight line and transforming it into a curve is a method of freely drawing a curve and applying a gradation along the curve. And the degree of freedom was low.

【0004】本発明は、上記のような点に鑑みなされた
もので、その目的は、ユーザが自由に描いた曲線に沿っ
て濃淡でも色彩でもグラデーションを描画でき、そのグ
ラデーションの色の幅、色同士が重なった時の処理、描
いた曲線の線分に対するグラデーションの方向、即ち濃
から淡、淡から濃への変化の設定も自由にできるように
図ることにある。
[0004] The present invention has been made in view of the above points, and an object of the present invention is to draw a gradation in shades or colors along a curve freely drawn by a user, and to set the width and color of the gradation. It is intended to be able to freely perform processing when they overlap with each other, and set the direction of gradation with respect to the line segment of the drawn curve, that is, change from dark to light and light to dark.

【0005】[0005]

【課題を解決するための手段】上記目的を達成するた
め、請求項1の発明は、画像を入力する画像入力手段
と、該画像入力手段から入力した前記画像を記憶する画
像記憶手段と、該画像記憶手段により記憶された前記画
像を読み出して表示する画像表示手段と、該画像表示手
段により表示された前記画像に線を描画する線描画手段
と、該線描画手段により描画された前記線に沿って該線
の両側または片側の領域に所定の色または指定の色を基
にグラデーション描画で着色する着色手段とを有するこ
とを特徴とする。
To achieve the above object, according to the present invention, an image input means for inputting an image, an image storage means for storing the image input from the image input means, Image display means for reading and displaying the image stored by the image storage means; line drawing means for drawing a line on the image displayed by the image display means; and line drawing means for drawing a line on the image drawn by the line drawing means. Coloring means for coloring in a gradation drawing based on a predetermined color or a designated color on both sides or one side of the line along the line.

【0006】ここで、前記線は任意に描いた曲線または
曲線を含む線であることを特徴とすることができる。
Here, the line may be a curve drawn arbitrarily or a line including a curve.

【0007】また、前記着色手段は、同一色を着色する
幅に相応する前記線描画手段で描画した曲線の法線幅を
決定する手段と、決定した該法線幅に従った前記曲線の
法線座標を決定する手段と、前記グラデーションのスタ
ートカラーとエンドカラーを設定する手段と、設定した
前記スタートカラーとエンドカラーおよび前記線描画手
段で描画した曲線の長さ、および前記法線幅から着色一
回当たりの色の差分を決定する手段と、前記法線座標、
前記スタートカラー、前記色の差分を用いて前記曲線に
沿って該曲線の両側または片側の領域にグラデーション
を描画する手段とを含むことを特徴とすることができ
る。
Further, the coloring means determines a normal width of a curve drawn by the line drawing means corresponding to a width of coloring the same color, and calculates a normal of the curve according to the determined normal width. Means for determining line coordinates, means for setting the start color and end color of the gradation, coloring from the set start color and end color, the length of the curve drawn by the line drawing means, and the normal line width Means for determining a color difference per time, the normal coordinates,
Means for drawing a gradation on the both sides or one side of the curve along the curve using the start color and the color difference.

【0008】また、前記曲線の両側または片側の領域に
グラデーションを描画する手段は、描画領域が重なった
場合は既に描画した領域を優先し、描画しないことを特
徴とすることができる。
[0008] The means for drawing a gradation on both sides or one side of the curve may be characterized in that when the drawing areas overlap, the already drawn area has priority and is not drawn.

【0009】また、前記曲線の両側または片側の領域に
グラデーションを描画する手段は、描画領域が重なった
場合にも既に描画した領域の上に重ねて描画することを
特徴とすることができる。
[0009] The means for drawing a gradation on both sides or one side of the curve may be characterized in that, even when the drawing areas overlap, the gradation is drawn on the already drawn area.

【0010】また、前記グラデーションを描画する際
に、描画領域が重なった場合は既に描画した領域を優先
して描画しない場合と、描画領域が重なった場合にも既
に描画した領域の上に重ねて描画する場合とのいずれか
一方を前記曲線を描画する前に選択設定する手段を有
し、該手段での選択結果に応じた描画を前記曲線の両側
または片側の領域にグラデーションを描画する手段にお
いて遂行することを特徴とすることができる。
In addition, when the gradation is drawn, when the drawing areas overlap, the drawing is not performed with priority on the already drawn area, and when the drawing areas overlap, the drawing area is overlapped on the already drawn area. Means for selecting and setting one of the cases to be drawn before drawing the curve, and drawing a gradation according to the selection result by the means in a region on both sides or one side of the curve. Performing can be characterized.

【0011】また、前記着色手段は、前記線描画手段で
描画した曲線の中点を決定する手段を有し、前記グラデ
ーションを決定した該中点を境に対称に描画することを
特徴とすることができる。
Further, the coloring means has means for determining a middle point of the curve drawn by the line drawing means, and draws the image symmetrically around the middle point where the gradation is determined. Can be.

【0012】また、前記線描画手段と前記着色手段の代
わりに、 該画像表示手段で表示された前記画像に線を
描画しつつ、描画された前記線に沿って該線の両側また
は片側の領域に所定の色または指定の色を基にグラデー
ション描画で順次着色する線描画・着色手段を有するこ
とを特徴とすることができる。
Further, instead of the line drawing means and the coloring means, while drawing a line on the image displayed by the image display means, an area on both sides or one side of the line along the drawn line is drawn. And a line drawing / coloring means for sequentially coloring by gradation drawing based on a predetermined color or a specified color.

【0013】また、前記線描画・着色手段は、前記グラ
デーションのスタートカラーと、着色一回当たりのカラ
ー差分と、同一色を着色する幅に相応する曲線の法線幅
と、曲線の描画開始のスタート位置とを決定する決定手
段と、次に曲線の描画を行う線描画手段と、次に曲線が
一定距離進んだところで前記法線幅を基に幅のある法線
を決定し、該法線の法線幅内を、記憶手段に記憶された
前記スタートカラーのカラーコードが初期値であるカラ
ーコードに対応する色で描画をする色描画手段と、次に
前記記憶手段に記憶された前記カラーコードに前記差分
を加算する手段とを含むことを特徴とすることができ
る。
The line drawing / coloring means may include a start color of the gradation, a color difference per coloration, a normal line width of a curve corresponding to a width for coloring the same color, and a start of curve drawing. Determining means for determining a start position, line drawing means for drawing a curve next, and then determining a wide normal based on the normal width when the curve has advanced a predetermined distance, Color drawing means for drawing in the normal line width of the start color stored in the storage means with a color corresponding to the color code which is the initial value; and the color storage means stored in the storage means Means for adding the difference to a code.

【0014】また、前記グラデーションを描画する際
に、描画領域が重なった場合は既に描画した領域を優先
して描画しない場合と、描画領域が重なった場合にも既
に描画した領域の上に重ねて描画する場合とのいずれか
一方を前記曲線を描画する前に選択設定する手段を有
し、該手段での選択結果に応じた描画を前記曲線の両側
または片側の領域にグラデーションを描画する前記線描
画・着色手段において遂行することを特徴とすることが
できる。
Further, when the gradation is drawn, when the drawing areas overlap, the drawing is not performed with priority on the already drawn area, and when the drawing areas overlap, the drawing area is overlapped on the already drawn area. Means for selecting and setting either one of drawing and drawing before the curve is drawn, and drawing the gradation according to the selection result by the means on both sides or one side of the curve. It can be characterized in that it is performed by drawing / coloring means.

【0015】また、前記所定の色または前記指定の色の
着色を実行するに当たって、濃淡のグラデーションを前
記線に沿って該線の直角方向に付けることを特徴とする
ことができる。
Further, in performing the coloring of the predetermined color or the designated color, a gradation of light and shade may be provided along the line in a direction perpendicular to the line.

【0016】また、前記濃淡のグラデーションの代わり
に、色彩のグラデーションを描画することを特徴とする
ことができる。
Further, a gradation of color may be drawn instead of the gradation of light and shade.

【0017】上記目的を達成するため、請求項13の発
明は、画像を入力する画像入力ステップと、該画像入力
ステップで入力した前記画像を記憶する画像記憶ステッ
プと、該画像記憶ステップで記憶された前記画像を読み
出して表示する画像表示ステップと、該画像表示ステッ
プで表示された前記画像に線を描画する線描画ステップ
と、該線描画ステップで描画された前記線に沿って該線
の両側または片側の領域に所定の色または指定の色を基
にグラデーション描画で着色する着色ステップとを有す
ることを特徴とする。
In order to achieve the above object, a thirteenth aspect of the present invention provides an image inputting step of inputting an image, an image storing step of storing the image input in the image inputting step, and an image storing step of storing the image. An image display step of reading and displaying the image, a line drawing step of drawing a line on the image displayed in the image display step, and both sides of the line along the line drawn in the line drawing step Alternatively, there is provided a coloring step of coloring in one side area by gradation drawing based on a predetermined color or a specified color.

【0018】上記目的を達成するため、請求項25の発
明は、コンピュータによりグラデーション描画を実行さ
せる画像処理用プログラムを記録した記録媒体におい
て、該プログラムはコンピュータに対し、画像を入力さ
せ、入力した前記画像を記憶させ、記憶された前記画像
を読み出して表示させ、表示された前記画像に線を描画
させ、描画された前記線に沿って該線の両側または片側
の領域に所定の色または指定の色を基にグラデーション
描画で着色させることを特徴とする。
According to a twenty-fifth aspect of the present invention, there is provided a recording medium storing an image processing program for causing a computer to execute gradation drawing, the program causing the computer to input an image, and An image is stored, the stored image is read out and displayed, a line is drawn on the displayed image, and a predetermined color or designated area is drawn along the drawn line on an area on both sides or one side of the line. It is characterized by being colored by gradation drawing based on the color.

【0019】[0019]

【発明の実施の形態】以下、図面を参照して、本発明の
実施の形態を詳細に説明する。
Embodiments of the present invention will be described below in detail with reference to the drawings.

【0020】図1は本発明の一実施形態における画像処
理装置の構成例を示す。ここで、1は中央演算処理装置
(CPU)であり、以下に示す各種装置と、バスライン
(BL)6を通じて接続され、その制御を行う。2はキ
ーボード(KB)であり、各種制御を指示して実行させ
るためのファンクションキーおよび文字入力用キーがあ
る。3はカラーのLCD(液晶表示装置)であり、表示
用書き込み専用メモリであるVRAM(ビデオRAM)
4に書き込まれた文字・画像・図形を後述するフォント
パターン若しくはイメージ画像として表示する。
FIG. 1 shows a configuration example of an image processing apparatus according to an embodiment of the present invention. Here, reference numeral 1 denotes a central processing unit (CPU), which is connected to various devices described below through a bus line (BL) 6 and controls the device. A keyboard (KB) 2 has function keys and character input keys for instructing and executing various controls. Reference numeral 3 denotes a color LCD (liquid crystal display), which is a VRAM (video RAM) that is a write-only memory for display.
The characters, images, and graphics written in 4 are displayed as font patterns or image images described later.

【0021】5は外部記憶装置であるハードディスク
(HD)であり、文字・画像・図形を格納する。7は読
み出し専用メモリとして機能するROMであり、領域7
aに本発明に係る画像処理を実行するための図6、図
8、図10に示すような手順のプログラム(PRG)
と、領域7bに文字、記号,罫線等のフォントパターン
(FONT)を記憶している。
Reference numeral 5 denotes a hard disk (HD), which is an external storage device, and stores characters, images, and figures. Reference numeral 7 denotes a ROM that functions as a read-only memory.
a shows a program (PRG) for executing the image processing according to the present invention, which has a procedure as shown in FIGS. 6, 8, and 10;
And a font pattern (FONT) such as characters, symbols, and ruled lines is stored in the area 7b.

【0022】8は書込み可能メモリとして機能するRA
Mであり、画像情報を記憶したり、プログラム実行時の
一時的作業領域及び退避領域として使用される。RAM
8の内部は下記のように8a〜8iで示すいくつかの領
域に分割されている。
Reference numeral 8 denotes an RA functioning as a writable memory.
M, which is used for storing image information and as a temporary work area and a save area when executing a program. RAM
The inside of 8 is divided into several areas indicated by 8a to 8i as described below.

【0023】領域8aは上述したプログラムを動作させ
るために一時的にプログラムの変数データや定数データ
やその他情報を記憶させる為のワークエリア(WOR
K)である。領域8bは画像データを記憶させるイメー
ジ領域(IMG)である。領域8cは曲線の座標を記憶
するX,Y座標テーブルを格納する領域である。
The area 8a is a work area (WOR) for temporarily storing program variable data, constant data, and other information for operating the above-described program.
K). The area 8b is an image area (IMG) for storing image data. The area 8c is an area for storing an X, Y coordinate table for storing the coordinates of the curve.

【0024】また、領域8dは色コードを記憶するカラ
ーコード領域(COLOR)である。領域8eは線を描
画する際の最初の色コードを記憶するスタートカラーコ
ード(SC)を記憶する領域である。領域8fは線を描
画する際の最後の色コードを記憶するエンドカラーコー
ド(EC)を記憶する領域である。領域8gは線の長さ
(L)を記憶する領域である。領域8hはグラデーショ
ンの幅(ΔL)を記憶する領域である。領域8iは領域
8cのXY座標テーブルのポインター(XYPOI)を
格納する領域である。
The area 8d is a color code area (COLOR) for storing a color code. The area 8e is an area for storing a start color code (SC) for storing a first color code for drawing a line. The area 8f is an area for storing an end color code (EC) for storing the last color code when drawing a line. The area 8g is an area for storing the length (L) of the line. The area 8h is an area for storing a gradation width (ΔL). The area 8i is an area for storing a pointer (XYPOI) of the XY coordinate table of the area 8c.

【0025】9はテキストを印刷するプリンター(PR
T)である。
Reference numeral 9 denotes a printer for printing text (PR
T).

【0026】図2に本実施形態で使用される色コードと
XY座標テーブルの構造を示す。図2の(A)は色コー
ドの構成を示し、色コードはイエロー(Y)、マゼンタ
(M)、シアン(C)の3色が各4ビット、合計12ビ
ットから成り立っている。
FIG. 2 shows the structure of a color code and an XY coordinate table used in this embodiment. FIG. 2A shows the structure of a color code. The color code is composed of three bits of yellow (Y), magenta (M), and cyan (C), each having 4 bits, and a total of 12 bits.

【0027】図2の(B)はXY座標テーブルの構成を
示し、XY座標テーブルは先頭からX1、Y1、X2、Y
2、…とアドレス番号が付いている。
FIG. 2B shows the structure of the XY coordinate table. The XY coordinate table is composed of X 1 , Y 1 , X 2 , and Y from the top.
2. The address number is attached.

【0028】図3は本発明の一実施形態で実行される表
示画面上に曲線を描画した様子を示す。ここで、31は
スタートの地点、32はエンドポイントの地点、33は
これら地点31と32間に描画した曲線である。
FIG. 3 shows a state in which a curve is drawn on a display screen executed in an embodiment of the present invention. Here, 31 is a start point, 32 is an end point, and 33 is a curve drawn between these points 31 and 32.

【0029】図4および図5は、図3に示した描画した
曲線とその曲線と直角な方向のグラデーションの原理を
示す。
FIG. 4 and FIG. 5 show the principle of the drawn curve shown in FIG. 3 and the gradation in the direction perpendicular to the drawn curve.

【0030】図4は曲線41とその曲線上のある点
(X,Y)に直角な線42の関係を示しており、この線
42を法線という。しかし、この法線には幅がないの
で、このままではグラデーションを描画することができ
ない。
FIG. 4 shows a relationship between a curve 41 and a line 42 perpendicular to a certain point (X, Y) on the curve, and this line 42 is called a normal line. However, since the normal has no width, a gradation cannot be drawn as it is.

【0031】そこで、本発明では、図5に示すように、
法線に幅を持たせて、グラデーションの描画を可能にし
た。まず、曲線51上の座標として(X3、Y3)と(X
4、Y4)の2点を取り、この2点を一本の直線で結んだ
線分の長さ56が、59の位置を中心とする法線の幅に
当たるΔLである。この直線に直角に各々平行となる線
(以下、平行線という)52、53を引き、これらの線
52、53間の帯状の領域、つまり幅を持った法線の内
側に、グラデーションによる着色をする。
Therefore, in the present invention, as shown in FIG.
Gradient drawing is enabled by giving the normal lines a width. First, (X 3 , Y 3 ) and (X 3
4 , Y 4 ), and the length 56 of a line segment connecting these two points with one straight line is ΔL which corresponds to the width of the normal line centered on the position 59. Lines 52 and 53 which are respectively parallel to the straight line at right angles (hereinafter referred to as parallel lines) are drawn, and coloring by gradation is applied to a band-like region between these lines 52 and 53, that is, inside a normal line having a width. I do.

【0032】次のΔLの幅、即ち座標(X4、Y4)と座
標(X5、Y5)から伸びる帯状の領域をグラデーション
で描画する際には、曲線51の内側(屈曲側)では、前
の領域と重なる部分58が生じる。この重なる部分に対
する個々の処理に関しては後述のように2通りの方法が
あり、以下に述べる実施例で詳述する。
When a band-like region extending from the next width ΔL, that is, the coordinates (X 4 , Y 4 ) and the coordinates (X 5 , Y 5 ), is drawn by gradation, the inside of the curve 51 (bending side) is drawn. , A portion 58 overlapping the previous region is generated. There are two methods for individual processing for the overlapping portion as described later, and these will be described in detail in the following embodiments.

【0033】また、曲線51の外側は、色がこのままで
は塗られない部分57が生じる。しかし、この部分57
には。2つの法線54と55で囲まれた領域の色と同じ
色を塗れば良い。
On the outside of the curve 51, there is a portion 57 where the color is not painted as it is. However, this part 57
To The same color as the color of the area surrounded by the two normal lines 54 and 55 may be used.

【0034】[0034]

【実施例】次に、図面を参照して、本発明によるグラデ
ーション描画方法を4つの実施例に基づいて具体的に説
明する。これら実施例の概要は次の通りである。
Next, referring to the drawings, a gradation drawing method according to the present invention will be specifically described based on four embodiments. The outline of these examples is as follows.

【0035】(1)実施例1:曲線をまず描画し、法線
幅を決定し、この法線幅に従ったXY座標を決定し、ス
タートカラーとエンドカラーを設定し、色の差分を決定
してグラデーションを描画する。描画領域が重なった場
合は既に描画した領域を優先する。
(1) Embodiment 1: First, a curve is drawn, a normal line width is determined, XY coordinates according to the normal line width are determined, a start color and an end color are set, and a color difference is determined. And draw a gradient. If the drawing areas overlap, the area already drawn has priority.

【0036】(2)実施例2:曲線の中点を決定し、グ
ラデーションをその中点を境に対称に描画する。
(2) Embodiment 2: The midpoint of the curve is determined, and the gradation is drawn symmetrically around the midpoint.

【0037】(3)実施例3:グラデーション描画の際
に、既に描画した領域に重なる場合は重ねて描画する。
(3) Embodiment 3: When drawing a gradation, if it overlaps with the already drawn area, it is drawn in an overlapping manner.

【0038】(4)実施例4:予め色の差分を決定して
おき、線を描画しつつグラデーションを順次描く。上記
実施例1の様に線を全て描画した後にグラデーションを
描画するのとは異なる。
(4) Embodiment 4: A color difference is determined in advance, and gradation is sequentially drawn while drawing a line. This is different from drawing the gradation after drawing all the lines as in the first embodiment.

【0039】(実施例1)まず、本発明の実施例1にお
ける装置(図1のCPU1等)の動作を図6のフローチ
ャートを参照して説明する。
(Embodiment 1) First, the operation of the apparatus (such as the CPU 1 in FIG. 1) in Embodiment 1 of the present invention will be described with reference to the flowchart in FIG.

【0040】最初に、ユーザはLCD3の表示画面上で
曲線描画のスタート位置(図3の31)を設定し、CP
U1はその座標をRAM8のワークエリア(WORK)
8aの座標領域X1、Y1に格納する(ステップS60
1)。
First, the user sets a start position (31 in FIG. 3) for drawing a curve on the display screen of the LCD 3, and
U1 stores the coordinates in the work area (WORK) of the RAM8.
8a are stored in the coordinate areas X 1 and Y 1 (step S60).
1).

【0041】次に、ユーザはLCD3の表示画面上に自
由に曲線を描画し、CPU1はその曲線の表示制御と同
時に、その曲線の座標をその都度RAM8のワークエリ
ア(WORK)8aの座標領域Xi、Yiに順次格納する
(ステップS602)。描画の手段はマウス(図示しな
い)によりマウスカーソルを使用しても良いし、画面タ
ッチペン(図示しない)で描画しても良い。その後、ユ
ーザは曲線のエンド位置(図3の32)を設定して曲線
描画作業を終了し、CPU1はそのエンド位置の座標を
RAM8のワークエリア(WORK)8aの座標領域X
n、Ynに格納する(ステップS603)。
Next, the user freely draws a curve on the display screen of the LCD 3, and the CPU 1 controls the display of the curve and, at the same time, stores the coordinates of the curve each time in the coordinate area X of the work area (WORK) 8a of the RAM 8. i and Y i sequentially (step S602). As a drawing unit, a mouse cursor may be used with a mouse (not shown), or drawing may be performed with a screen touch pen (not shown). Thereafter, the user sets the end position of the curve (32 in FIG. 3) and ends the curve drawing work, and the CPU 1 stores the coordinates of the end position in the coordinate area X of the work area (WORK) 8a of the RAM 8.
n, and stores it in the Y n (step S603).

【0042】次に、法線の幅を決定するのであるが、法
線は図4に示すように、描画した曲線41に対して直交
する線42のことであり、この法線に幅を持たせる実際
の方法は前述した図5に示した通りである。図5の描画
した曲線51上の59は幅を持った法線を引く中心点で
あり、56はその点59を中心とする法線の幅である。
Next, the width of the normal line is determined. As shown in FIG. 4, the normal line is a line 42 orthogonal to the drawn curve 41, and the normal line has a width. The actual method of performing the operation is as shown in FIG. A reference numeral 59 on the drawn curve 51 in FIG. 5 is a center point for drawing a normal line having a width, and 56 is a width of the normal line centered on the point 59.

【0043】すなわち、CPU1は上記59の点を中心
として幅ΔLの法線幅を決定し、この値をRAM8のΔ
L領域8hに格納する(ステップS604)。
That is, the CPU 1 determines the normal width of the width ΔL centering on the above 59 points, and stores this value in the RAM 8.
It is stored in the L area 8h (step S604).

【0044】次に、CPU1は上記幅ΔLを基に法線座
標を次々と決定し、これをRAM8のXY座標領域(以
下、座標テーブルという)8cに格納する。この法線座
標とは、点59上の法線に幅ΔLを持たせた場合の法線
の両側を構成する2本の平行線52、53と曲線51と
の交点のことである。図5で説明すると、(X1、Y1
はスタート位置であるが、以下(X2、Y2)、(X3
3)……は法線座標である(ステップS606)。
Next, the CPU 1 determines the normal line coordinates one after another based on the width ΔL, and stores them in the XY coordinate area (hereinafter referred to as a coordinate table) 8c of the RAM 8. The normal coordinates are the intersections of the curve 51 and the two parallel lines 52 and 53 forming both sides of the normal when the normal on the point 59 has the width ΔL. Referring to FIG. 5, (X 1 , Y 1 )
Is the start position, but (X 2 , Y 2 ), (X 3 ,
Y 3 ) are normal coordinates (step S606).

【0045】次に、ユーザはスタートカラーとエンドカ
ラーを設定し、CPU1はこれらのカラーコードをそれ
ぞれRAM8のスタートカラードコード(SC)領域8
e、エンドカラーコード(EC)領域8fに格納する。
カラーコードは、図2の(A)に示す12ビットである
(ステップS606)。
Next, the user sets a start color and an end color, and the CPU 1 stores these color codes in the start color code (SC) area 8 of the RAM 8 respectively.
e, stored in the end color code (EC) area 8f.
The color code is 12 bits shown in FIG. 2A (step S606).

【0046】次に、CPU1は座標テーブル8c(図2
の(B)参照)のポインター(XYPOI)8iを1に
セットする。この1は最初の法線座標(X1、Y1)を指
し、同様に2は次の法線座標(X2、Y2)を指す。以
下、同様である(ステップS607)。
Next, the CPU 1 operates the coordinate table 8c (FIG. 2).
The pointer (XYPOI) 8i is set to 1. The 1 indicates the first normal coordinate (X 1 , Y 1 ), and the 2 similarly indicates the next normal coordinate (X 2 , Y 2 ). The same applies to the following (step S607).

【0047】以上で前段の各種設定処理を終了し、以下
は実際にグラデーションを描画するループ処理になる。
The above-mentioned various setting processes are completed, and the following is a loop process for actually drawing gradation.

【0048】まず、ポインター(XYPOI)8iが示
す法線座標を基に、線幅ΔLを持った法線の内側(線幅
ΔLを構成する一対の平行線間)を、RAM8の色コー
ド領域(COLOR)8dに格納されたカラーコードに
従った色で描画をする。ただし、既に描画されている領
域(図5の58)には描画しない。そのため、前回使用
した平行線(53)の位置を基に、今回描画をしようと
する領域が、既にグラデーションを描画した領域か否か
の判断処理を行い、否定判定の領域にのみ描画を遂行す
る。なお、この色コード領域(COLOR)8dの初期
値は上記スタートカラーコードであるは勿論である(ス
テップS608)。
First, based on the normal coordinates indicated by the pointer (XYPOI) 8i, the inside of the normal having a line width ΔL (between a pair of parallel lines forming the line width ΔL) is stored in the color code area ( (COLOR) 8d is drawn in a color according to the color code stored in the color code. However, drawing is not performed in the already drawn area (58 in FIG. 5). Therefore, based on the position of the previously used parallel line (53), it is determined whether or not the area to be drawn this time is an area in which the gradation has already been drawn, and the drawing is performed only in the negative determination area. . The initial value of the color code area (COLOR) 8d is, of course, the start color code (step S608).

【0049】次に、色コード領域(COLOR)8dに
記憶されている色コードを変更する。その際、SC領域
8e、EC領域8fにスタートカラーとエンドカラーが
すでにセットされているので、これらセットされたカラ
ーを基に、グラデーション描画を行う曲線の全ポイント
数で案分して色の差分を決定し、この差分をスタートカ
ラー値に対して次々と加算することで、色の更新値を決
定する。これにより、曲線のスタート位置からエンド位
置まで色が滑らかに連続的に変化する様に、描画を行う
座標位置に対応して描画する色を次々と更新することが
できる(ステップS609)。
Next, the color code stored in the color code area (COLOR) 8d is changed. At this time, since the start color and the end color have already been set in the SC area 8e and the EC area 8f, the color difference is calculated based on the set colors by dividing the total number of points of the curve for performing the gradation drawing. Is determined, and the difference is successively added to the start color value to determine a color update value. As a result, the colors to be drawn can be updated one after another corresponding to the coordinate positions where the drawing is performed so that the colors change smoothly and continuously from the start position to the end position of the curve (step S609).

【0050】次に、座標テーブルポインター(XYPO
I)8iを1だけ加算し(ステップS610)、座標テ
ーブルポインター(XYPOI)8iの値と座標テーブ
ル8cの最終座標領域とを比較することで、曲線のエン
ドポイント(図3の32)までグラデーション描画が終
了か否かを判別し(ステップS611)、それが終了し
てなければ上記ステップS608に戻って、ステップS
608からステップS611の処理を繰り返し、それが
終了していれば本グラデーションの描画処理を終了す
る。
Next, the coordinate table pointer (XYPO
I) 8i is incremented by 1 (step S610), and the value of the coordinate table pointer (XYPOI) 8i is compared with the final coordinate area of the coordinate table 8c, whereby gradation is drawn to the end point of the curve (32 in FIG. 3). Is determined (step S611), and if not completed, the process returns to step S608 and returns to step S608.
The processing from step 608 to step S611 is repeated, and if the processing is completed, the rendering processing of the gradation is completed.

【0051】なお、本実施例におけるグラデーションに
は色の変化だけでなく、濃度(濃淡)の変化も対象とな
る。また、色の変化には、色相、彩度、明度の少なくと
も一つの変化が含まれる。また、色には有彩色の他に無
彩色(白、黒、灰色)も含まれる。
The gradation in this embodiment is not limited to a change in color but also a change in density (shade). Further, the change in color includes at least one change in hue, saturation, and brightness. The colors include achromatic colors (white, black, and gray) in addition to chromatic colors.

【0052】さらに、本実施例では、ステップS602
において、ユーザが描画した曲線の座標値をWORK8
aに格納し、その後にステップS605において、法線
座標を決定し、決定した法線座標をX,Y座標領域8c
に格納しているが、本発明はこれに限定されず、例えば
表示画面に描画した曲線の座標を上記法線幅ΔLに対応
する一定の間隔(タイミング)で抜き出して、これを法
線座標としてX,Y座標領域8cに順次格納することに
よっても同様に達成できる。この場合、上記実施例と同
様に、一対の法線座標から一対の平行線の座標を演算に
より容易に求めることができる。
Further, in the present embodiment, step S602
In WORK8, the coordinate values of the curve drawn by the user
Then, in step S605, the normal coordinates are determined, and the determined normal coordinates are stored in the X, Y coordinate area 8c.
However, the present invention is not limited to this. For example, coordinates of a curve drawn on a display screen are extracted at a constant interval (timing) corresponding to the normal line width ΔL, and are extracted as normal line coordinates. The same can be achieved by sequentially storing the data in the X and Y coordinate areas 8c. In this case, similarly to the above embodiment, the coordinates of the pair of parallel lines can be easily obtained from the pair of normal coordinates by calculation.

【0053】(実施例2)上記の本発明の実施例1で
は、曲線の始点から終点まで一律にグラデーションが変
化したが、曲線の中点を境にグラデーションの変化を逆
にすることも可能である。例えば、図7に示す71は曲
線の始点、72は曲線の終点、73は曲線の中点である
が、始点71から中点73まで例えば淡い色彩から濃い
色彩に変化するグラデーションを付けて、中点73から
終点72まではその逆の濃い色彩から淡い色彩に変化す
るグラデーションを付けることができる。
(Second Embodiment) In the first embodiment of the present invention, the gradation changes uniformly from the start point to the end point of the curve. However, the change of the gradation can be reversed at the middle point of the curve. is there. For example, 71 shown in FIG. 7 is the start point of the curve, 72 is the end point of the curve, and 73 is the middle point of the curve. From the start point 71 to the middle point 73, for example, a gradation that changes from a pale color to a dark color is added. From the point 73 to the end point 72, a gradation that changes from a dark color to a light color can be applied.

【0054】なお、この場合のグラデーションの変化と
しては、上記の他に、曲線の中点を境に、暗い色から明
るい色への変化とその逆の変化、寒色から暖色への変化
とその逆の変化、黒から白色または灰色への変化とその
逆の変化、等が含まれる。
In addition to the above, the gradation change in this case includes a change from a dark color to a light color and vice versa, and a change from a cool color to a warm color and vice versa at the middle point of the curve. Change from black to white or gray and vice versa.

【0055】この描画の処理動作を図8のフローチャー
トを参照して説明する。最初の処理は図6のフローチャ
ートのステップS601からステップS606と同じ処
理、即ちスタートカラー・エンドカラー決定までは同じ
処理である。ただし、ステップS606での決定は曲線
の始点から中点までのスタートカラーとエンドカラーの
決定に対応する(ステップS800)。
The drawing operation will be described with reference to the flowchart of FIG. The first processing is the same processing as steps S601 to S606 in the flowchart of FIG. 6, that is, the same processing up to the determination of the start color / end color. However, the determination in step S606 corresponds to the determination of the start color and the end color from the start point to the middle point of the curve (step S800).

【0056】次に、法線座標の中で描画曲線の中点に近
い座標を中点と見なして、この座標をWORK8aの所
定領域に格納する(ステップS801)。
Next, the coordinates near the middle point of the drawing curve among the normal line coordinates are regarded as the middle points, and the coordinates are stored in a predetermined area of the WORK 8a (step S801).

【0057】座標テーブルのポインター(XYPOI)
8iを1にセットする(ステップS802)。
Pointer of coordinate table (XYPOI)
8i is set to 1 (step S802).

【0058】以下はループ処理になるが、まず座標テー
ブルポインター(XYPOI)8iが指示する座標テー
ブル8c上の法線座標を基に、幅を持った法線の内側を
COLOR8dに記憶された色コードに従った色で描画
する。ただし実施例1と同様に、既に描画されている領
域には描画しない(ステップS803)。
The following is a loop process. First, based on the normal coordinates on the coordinate table 8c indicated by the coordinate table pointer (XYPOI) 8i, the inside of the normal having a width is set to the color code stored in the COLOR 8d. Draw in the color according to. However, similarly to the first embodiment, the image is not drawn in the already drawn area (step S803).

【0059】次に、COLOR8dの色コードを変更す
る。ステップS606でスタートカラーとエンドカラー
が決まっているので、曲線のスタート点と曲線の中点の
座標のポイント数で案分して色の差分を決定し、この差
分を次々と加算することにより色コードを逐次更新す
る。これにより、曲線のスタート位置から中点位置まで
色が滑らかに変わる様にする(ステップS804)。
Next, the color code of COLOR 8d is changed. Since the start color and the end color have been determined in step S606, the color difference is determined by dividing the start point of the curve and the number of coordinates of the middle point of the curve, and the difference is added one after another. Update code sequentially. Thereby, the color is smoothly changed from the start position of the curve to the midpoint position (step S804).

【0060】次に、座標テーブルポインター(XYPO
I)8iを1だけ加算し(ステップS805)、座標テ
ーブルポインター8iの値が曲線の中点に対応するか否
かを判別し(ステップS806)、中点ならばステップ
S807へ進むが、中点でなければステップS803へ
戻って、ループする。
Next, the coordinate table pointer (XYPO
I) 8i is incremented by 1 (step S805), and it is determined whether or not the value of the coordinate table pointer 8i corresponds to the middle point of the curve (step S806). If the value is the middle point, the process proceeds to step S807. If not, the flow returns to step S803 to loop.

【0061】中点だった場合は、残り後半を描画するわ
けであるが、まず座標テーブルポインター(XYPO
I)8iが指示する座標テーブル8c上の法線座標を基
に、幅を持った法線の内側をCOLOR8dに記憶され
た色コードに従った色で描画する。ただし実施例1と同
様に、既に描画されている領域には描画しない(ステッ
プS807)。
In the case of the middle point, the latter half is drawn. First, the coordinate table pointer (XYPO
I) Based on the normal coordinates on the coordinate table 8c specified by 8i, the inside of the wide normal is drawn in a color according to the color code stored in the COLOR 8d. However, as in the first embodiment, the image is not drawn in the already drawn area (step S807).

【0062】次に、COLOR8dの色コードを変更す
る。今度はCOLOR8dの色コードから上記差分を引
き算する。これにより、グラデーションの変化する方向
を前回とは逆にできる(ステップS808)。
Next, the color code of COLOR 8d is changed. This time, the above difference is subtracted from the color code of COLOR 8d. Thus, the direction in which the gradation changes can be reversed from the previous direction (step S808).

【0063】次に、座標テーブルポインター(XYPO
I)8iを1だけ加算し(ステップS809)、座標テ
ーブルポインター(XYPOI)8iの値と座標テーブ
ル8cとを比較することで、曲線のエンドポイント(図
3の32)までグラデーション描画が終了か否かを判別
し(ステップS810)、それが終了してなければ上記
ステップS807に戻って、ステップS807からステ
ップS810の処理を繰り返し、それが終了していれば
本グラデーションの描画処理を終了する。
Next, the coordinate table pointer (XYPO
I) 8i is incremented by 1 (step S809), and the value of the coordinate table pointer (XYPOI) 8i is compared with the coordinate table 8c to determine whether the gradation drawing is completed up to the end point of the curve (32 in FIG. 3). (Step S810), and if not completed, the flow returns to Step S807 to repeat the processing from Step S807 to Step S810. If completed, the gradation rendering processing ends.

【0064】(実施例3)上述した本発明の実施例1、
2では、描画の際に既に描画済のところには描画しない
様にしたが、既に描画した個所にも重ねて描画すること
も可能である。例えば、図9に示した様に、91、9
2、93は各々幅を持った法線であるが、94は法線9
1と法線92の重なったところであり、95はこれに更
に法線93が重なった所である。この様に重なった所は
濃く表現される。
(Embodiment 3) Embodiment 1 of the present invention described above,
In 2, in the drawing, the drawing is not performed at the place where the drawing is already performed, but it is also possible to perform the drawing at the place where the drawing is already performed. For example, as shown in FIG.
Reference numerals 2 and 93 denote normals having a width, respectively, and 94 denotes a normal 9
1 is where the normal 92 overlaps, and 95 is where the normal 93 further overlaps. Such overlapping parts are expressed deeply.

【0065】(実施例4)上述した本発明の実施例1と
2では、曲線の描画をしてから、グラデーションを描い
たが、曲線を描画中にグラデーションを描くこともでき
る。
(Embodiment 4) In Embodiments 1 and 2 of the present invention described above, the gradation is drawn after the curve is drawn. However, the gradation can be drawn while the curve is drawn.

【0066】この場合には曲線の描画を始める前に、予
め法線幅とカラーの差分を決めておくことが必要であ
る。
In this case, it is necessary to determine the difference between the normal line width and the color in advance before drawing the curve.

【0067】図10のフローチャートは、この処理過程
を示す。即ち、最初に、操作メニューに従って、ユーザ
はスタートカラーを設定してCPU1はこれをSC領域
8eに格納し(ステップS1001)、ユーザはカラー
差分を設定してCPU1はこれをWORK8aに格納し
(ステップS1002)、ユーザは法線幅を設定してC
PU1はこれをΔL領域8hに格納し(ステップS10
03)、ユーザはスタート位置を決定してCPU1はこ
れをX,Y座標領域8cに格納する(ステップS100
4)。エンドカラーとエンド位置の設定は必要ないので
行わない。
FIG. 10 is a flowchart showing this process. First, the user sets a start color according to the operation menu, and the CPU 1 stores the start color in the SC area 8e (step S1001). The user sets a color difference and the CPU 1 stores this in the WORK 8a (step S1001). S1002), the user sets the normal line width and sets C
PU1 stores this in the ΔL area 8h (step S10).
03), the user determines a start position, and the CPU 1 stores this in the X, Y coordinate area 8c (step S100).
4). Since the setting of the end color and the end position is not necessary, it is not performed.

【0068】以後はCPU1によるループ処理に入る。
先ず、ユーザは表示画面上で曲線描画を行うが(ステッ
プS1005)、CPU1は曲線が一定距離進んだとこ
ろで上記法線幅を基に法線を決定する(ステップS10
06)。法線幅は既に決定してあるから法線の法線幅内
をCOLOR領域8dのカラーコードに応じた色で描画
をする(ステップS1007)。然る後、カラーコード
に上記差分を加算し(ステップS1008)、曲線描画
が終了か否かを判別し、続行している場合は上記ステッ
プS1005の曲線描画に戻る(ステップS100
9)。
Thereafter, the CPU 1 enters a loop process.
First, the user draws a curve on the display screen (step S1005), and the CPU 1 determines a normal line based on the normal line width when the curve advances by a certain distance (step S10).
06). Since the normal line width has already been determined, the inside of the normal line width is drawn in a color corresponding to the color code of the COLOR area 8d (step S1007). Thereafter, the difference is added to the color code (step S1008), and it is determined whether or not the curve drawing is completed. If the curve drawing is continued, the process returns to the curve drawing in step S1005 (step S100).
9).

【0069】以上の過程で曲線を描画しつつグラデーシ
ョンを描くことができる。
In the above process, gradation can be drawn while drawing a curve.

【0070】(その他の実施形態)上述した本発明の実
施例3では、描画した曲線の中点を境にグラデーション
の方向を反転させたが、中点でなくても、描画した曲線
の3分の1点でも良いし、反転箇所が複数個所でも構わ
ない。
(Other Embodiments) In the above-described third embodiment of the present invention, the direction of the gradation is reversed at the middle point of the drawn curve. Or a plurality of reversal points.

【0071】また、上述した本発明の各実施例では、色
コードの構成や差分をカラーにしたが、モノクロでも構
わない。
Further, in each of the embodiments of the present invention described above, the configuration and the difference of the color code are color, but may be monochrome.

【0072】また、本発明の適用対象の曲線は全くの自
由曲線であるから、円の様に閉じた曲線でも良いし、何
度も複雑に交差しても良い。さらに、直線と曲線の組み
合わせ、あるいは完全な直線でも本発明の適用対象とな
り得る。
Further, since the curve to which the present invention is applied is a completely free curve, it may be a closed curve like a circle or may intersect in a complicated manner many times. Further, a combination of a straight line and a curve or a perfect straight line can be applied to the present invention.

【0073】なお、本発明は、複数の機器(例えば、ホ
ストコンピュータ、インターフェース機器、リーダ、プ
リンタなど)から構成されるシステムに適用しても、1
つの機器からなる装置(例えば、複写機、ファクシミリ
装置など)に適用してもよい。
The present invention can be applied to a system including a plurality of devices (for example, a host computer, an interface device, a reader, a printer, etc.).
The present invention may be applied to a device including two devices (for example, a copying machine, a facsimile device, etc.).

【0074】また、本発明の目的は、前述した実施の形
態の機能を実現するソフトウエアのプログラムコードを
記録した記録媒体(記憶媒体)を、システムあるいは装
置に供給し、そのシステムあるいは装置のコンピュータ
(またはCPUやMPU)が記録媒体に格納されたプロ
グラムコードを読み出し、実行することによっても、達
成されることは言うまでもない。
Further, an object of the present invention is to provide a recording medium (storage medium) recording software program codes for realizing the functions of the above-described embodiments to a system or an apparatus, and to provide a computer of the system or the apparatus. Needless to say, the present invention is also achieved when the CPU (or the CPU or the MPU) reads out and executes the program code stored in the recording medium.

【0075】この場合、記録媒体から読み出されたプロ
グラムコード自体が前述した実施の形態の機能を実現す
ることになり、そのプログラムコードを記録した記録媒
体は本発明を構成することになる。
In this case, the program code itself read from the recording medium realizes the functions of the above-described embodiment, and the recording medium on which the program code is recorded constitutes the present invention.

【0076】そのプログラムコードを記録し、またテー
ブル等の変数データを記録する記録媒体としては、例え
ばフロッピディスク(FD)、ハードディスク、光ディ
スク、光磁気ディスク、CD−ROM、CD−R、磁気
テープ、不揮発性のメモリカード(ICメモリカー
ド)、ROMなどを用いことができる。
As a recording medium for recording the program code and variable data such as a table, for example, a floppy disk (FD), hard disk, optical disk, magneto-optical disk, CD-ROM, CD-R, magnetic tape, A nonvolatile memory card (IC memory card), a ROM, or the like can be used.

【0077】また、コンピュータが読み出したプログラ
ムコードを実行することにより、前述の実施の形態の機
能が実現されるだけでなく、そのプログラムコードの指
示に基づいて、コンピュータ上で稼動しているOS(オ
ペレーティングシステム)などが実際の処理の一部また
は全部を行ない、その処理によって前述した実施の形態
の機能が実現される場合も含まれることは言うまでもな
い。
Further, when the computer executes the readout program code, not only the functions of the above-described embodiment are realized, but also the OS (Operating System) running on the computer based on the instruction of the program code. It goes without saying that an operating system) may perform some or all of the actual processing, and the processing may realize the functions of the above-described embodiments.

【0078】[0078]

【発明の効果】以上説明した通り、本発明によれば、自
由に描いた曲線に沿ってグラデーションを濃淡でも色彩
でも描画でき、グラデーションの色の幅、色同士が重な
った時の処理、描いた曲線の線分上でグラデーションの
方向、即ち濃から淡、淡から濃への変化の設定もユーザ
が自由にできるという効果が得られる。
As described above, according to the present invention, gradation can be drawn in both shades and colors along freely drawn curves, and the width of gradation colors, processing when colors overlap, and drawing are performed. The effect is obtained that the user can freely set the direction of the gradation on the line segment of the curve, that is, the change from dark to light and light to dark.

【図面の簡単な説明】[Brief description of the drawings]

【図1】本発明の一実施形態の画像処理装置の構成を示
すブロック図である。
FIG. 1 is a block diagram illustrating a configuration of an image processing apparatus according to an embodiment of the present invention.

【図2】図1のメモリの構成を示すメモリマップ図であ
る。
FIG. 2 is a memory map diagram showing a configuration of a memory in FIG. 1;

【図3】本発明の一実施形態の画像処理装置における曲
線描画の画面表示例を示す模式図である。
FIG. 3 is a schematic diagram illustrating a screen display example of curve drawing in the image processing apparatus according to the embodiment of the present invention;

【図4】図3の表示画面上の描画した曲線と法線の関係
を示す概念図である。
FIG. 4 is a conceptual diagram showing a relationship between a drawn curve and a normal on the display screen of FIG. 3;

【図5】図3の表示画面上の描画した曲線に対して一定
の線幅を有する法線を次々と作成し、これら法線を基に
本発明によるグラデーションを施す方法を説明する概念
図である。
FIG. 5 is a conceptual diagram illustrating a method of sequentially creating normal lines having a constant line width with respect to a drawn curve on the display screen of FIG. 3, and applying gradation according to the present invention based on these normal lines. is there.

【図6】本発明の実施例1の処理動作を示すフローチャ
ートである。
FIG. 6 is a flowchart illustrating a processing operation according to the first embodiment of the present invention.

【図7】本発明の実施例2における画面表示例を示す模
式図である。
FIG. 7 is a schematic diagram illustrating a screen display example according to a second embodiment of the present invention.

【図8】本発明の実施例2の処理動作を示すフローチャ
ートである。
FIG. 8 is a flowchart illustrating a processing operation according to the second embodiment of the present invention.

【図9】本発明の実施例4における画面表示例を示す模
式図である。
FIG. 9 is a schematic diagram illustrating a screen display example according to a fourth embodiment of the present invention.

【図10】本発明の実施例4の処理動作を示すフローチ
ャートである。
FIG. 10 is a flowchart illustrating a processing operation according to a fourth embodiment of the present invention.

【符号の説明】[Explanation of symbols]

1 中央演算処理装置(CPU) 2 キーボード(KB) 3 液晶表示装置(LCD) 4 ビデオRAM(VRAM) 5 ハードディスク(HD) 6 バスライン(BL) 7 リードオンリメモリ(ROM) 7a プログラム(PRG) 7b フォントパターン(FONT) 8 ランダムアクセスメモリ(RAM) 8a ワークエリア(WORK) 8b イメージ領域(IMG) 8c X,Y座標領域 8d カラーコード(COLOR)領域 8e スターカラー(SC)領域 8f エンドカラー(EC)領域 8g 線の長さ(L)領域 8h グラデーションの幅(△L)領域 8i XY座標テーブルのポインタ(XY POI)領
域 9 プリンター(PRT) 31、71 曲線の始点 32、72 曲線の終点 33、41、51 曲線 42 法線 52、53、54、55 幅のある法線を構成する平行
線 57 幅のある法線群が重ならない部分 58 幅のある法線群が重なる部分 73 中点 91、92、93 幅のある法線 94 幅のある法線が一度重なる部分 95 幅のある法線が二度重なる部分
1 Central Processing Unit (CPU) 2 Keyboard (KB) 3 Liquid Crystal Display (LCD) 4 Video RAM (VRAM) 5 Hard Disk (HD) 6 Bus Line (BL) 7 Read-Only Memory (ROM) 7a Program (PRG) 7b Font pattern (FONT) 8 Random access memory (RAM) 8a Work area (WORK) 8b Image area (IMG) 8c X, Y coordinate area 8d Color code (COLOR) area 8e Star color (SC) area 8f End color (EC) Area 8g Line length (L) area 8h Gradation width (△ L) area 8i XY coordinate table pointer (XY POI) area 9 Printer (PRT) 31, 71 Curve start point 32, 72 Curve end point 33, 41 , 51 Curve 42 Normal 52, 53, 54 55, a parallel line constituting a wide normal line 57, a portion where the wide normal group does not overlap 58, a portion where the wide normal group overlaps 73, midpoint 91, 92, 93 wide normal 94 has a width Part where normal lines overlap once 95 Part where width normal lines overlap twice

Claims (36)

【特許請求の範囲】[Claims] 【請求項1】 画像を入力する画像入力手段と、 該画像入力手段から入力した前記画像を記憶する画像記
憶手段と、 該画像記憶手段により記憶された前記画像を読み出して
表示する画像表示手段と、 該画像表示手段により表示された前記画像に線を描画す
る線描画手段と、 該線描画手段により描画された前記線に沿って該線の両
側または片側の領域に所定の色または指定の色を基にグ
ラデーション描画で着色する着色手段とを有することを
特徴とする画像処理装置。
1. Image input means for inputting an image, image storage means for storing the image input from the image input means, and image display means for reading and displaying the image stored by the image storage means. Line drawing means for drawing a line on the image displayed by the image display means; and a predetermined color or a designated color in an area on both sides or one side of the line along the line drawn by the line drawing means A coloring means for coloring by gradation drawing based on the image processing apparatus.
【請求項2】 前記線は任意に描いた曲線または曲線を
含む線であることを特徴とする請求項1に記載の画像処
理装置。
2. The image processing apparatus according to claim 1, wherein the line is an arbitrarily drawn curve or a line including a curve.
【請求項3】 前記着色手段は、 同一色を着色する幅に相応する前記線描画手段で描画し
た曲線の法線幅を決定する手段と、 決定した該法線幅に従った前記曲線の法線座標を決定す
る手段と、 前記グラデーションのスタートカラーとエンドカラーを
設定する手段と、 設定した前記スタートカラーとエンドカラーおよび前記
線描画手段で描画した曲線の長さ、および前記法線幅か
ら着色一回当たりの色の差分を決定する手段と、 前記法線座標、前記スタートカラー、前記色の差分を用
いて前記曲線に沿って該曲線の両側または片側の領域に
グラデーションを描画する手段とを含むことを特徴とす
る請求項2に記載の画像処理装置。
3. The coloring means comprises: means for determining a normal width of a curve drawn by the line drawing means corresponding to a width of coloring the same color; and a method of calculating the curve according to the determined normal width. Means for determining line coordinates; means for setting the start color and end color of the gradation; coloring from the set start color and end color, the length of the curve drawn by the line drawing means, and the normal line width Means for determining a color difference per time; and means for drawing a gradation in the area on both sides or one side of the curve along the curve using the normal coordinates, the start color, and the color difference. The image processing apparatus according to claim 2, wherein the image processing apparatus includes:
【請求項4】 前記曲線の両側または片側の領域にグラ
デーションを描画する手段は、描画領域が重なった場合
は既に描画した領域を優先し、描画しないことを特徴と
する請求項3に記載の画像処理装置。
4. The image according to claim 3, wherein the means for drawing the gradation on both sides or one side of the curve gives priority to the already drawn area when the drawing areas overlap, and does not draw the image. Processing equipment.
【請求項5】 前記曲線の両側または片側の領域にグラ
デーションを描画する手段は、描画領域が重なった場合
にも既に描画した領域の上に重ねて描画することを特徴
とする請求項3に記載の画像処理装置。
5. The apparatus according to claim 3, wherein the means for drawing the gradation on both sides or one side of the curve draws the drawing on the already drawn area even when the drawing areas overlap. Image processing device.
【請求項6】 前記グラデーションを描画する際に、描
画領域が重なった場合は既に描画した領域を優先して描
画しない場合と、描画領域が重なった場合にも既に描画
した領域の上に重ねて描画する場合とのいずれか一方を
前記曲線を描画する前に選択設定する手段を有し、 該手段での選択結果に応じた描画を前記曲線の両側また
は片側の領域にグラデーションを描画する手段において
遂行することを特徴とする請求項3に記載の画像処理装
置。
6. When the gradation is drawn, when the drawing areas overlap, the drawing area is not preferentially drawn, and when the drawing areas overlap, the drawing area is overlapped on the already drawn area. Means for selecting and setting one of the cases before and after drawing the curve, wherein the drawing according to the result of the selection by the means is performed in a means for drawing gradation on both sides or one side of the curve. The image processing apparatus according to claim 3, wherein the image processing is performed.
【請求項7】 前記着色手段は、前記線描画手段で描画
した曲線の中点を決定する手段を有し、前記グラデーシ
ョンを決定した該中点を境に対称に描画することを特徴
とする請求項2ないし6のいずれかに記載の画像処理装
置。
7. The method according to claim 1, wherein the coloring means has means for determining a middle point of the curve drawn by the line drawing means, and draws the image symmetrically around the middle point for which the gradation is determined. Item 7. The image processing device according to any one of Items 2 to 6.
【請求項8】 前記線描画手段と前記着色手段の代わり
に、該画像表示手段で表示された前記画像に線を描画し
つつ、描画された前記線に沿って該線の両側または片側
の領域に所定の色または指定の色を基にグラデーション
描画で順次着色する線描画・着色手段を有することを特
徴とする請求項2に記載の画像処理装置。
8. An area on both sides or one side of the line along the drawn line while drawing a line on the image displayed by the image display means instead of the line drawing means and the coloring means. 3. The image processing apparatus according to claim 2, further comprising a line drawing / coloring unit for sequentially coloring the image based on a predetermined color or a designated color by gradation drawing.
【請求項9】 前記線描画・着色手段は、 前記グラデーションのスタートカラーと、着色一回当た
りのカラー差分と、同一色を着色する幅に相応する曲線
の法線幅と、曲線の描画開始のスタート位置とを決定す
る決定手段と、 次に曲線の描画を行う線描画手段と、 次に曲線が一定距離進んだところで前記法線幅を基に幅
のある法線を決定し、該法線の法線幅内を、記憶手段に
記憶された前記スタートカラーのカラーコードが初期値
であるカラーコードに対応する色で描画をする色描画手
段と、 次に前記記憶手段に記憶された前記カラーコードに前記
差分を加算する手段とを含むことを特徴とする請求項8
に記載の画像処理装置。
9. The line drawing / coloring means includes: a start color of the gradation, a color difference per coloring, a normal line width of a curve corresponding to a width of coloring the same color, and a start of drawing of the curve. Determining means for determining a start position; next, line drawing means for drawing a curve; and then determining a wide normal based on the normal width when the curve advances by a certain distance, Color drawing means for drawing in the normal line width of the start color stored in the storage means with a color corresponding to the color code which is the initial value; and the color stored in the storage means 9. A means for adding the difference to a code.
An image processing apparatus according to claim 1.
【請求項10】 前記グラデーションを描画する際に、
描画領域が重なった場合は既に描画した領域を優先して
描画しない場合と、描画領域が重なった場合にも既に描
画した領域の上に重ねて描画する場合とのいずれか一方
を前記曲線を描画する前に選択設定する手段を有し、 該手段での選択結果に応じた描画を前記曲線の両側また
は片側の領域にグラデーションを描画する前記線描画・
着色手段において遂行することを特徴とする請求項9に
記載の画像処理装置。
10. When rendering the gradation,
When the drawing area overlaps, the curve is drawn using either the case where the already drawn area is not given priority and the case where the drawing area is overlapped and the area where the drawing is already performed. Means for selecting and setting before performing the line drawing and drawing for drawing a gradation on both sides or one side of the curve in accordance with the selection result by the means.
The image processing apparatus according to claim 9, wherein the image processing is performed by a coloring unit.
【請求項11】 前記所定の色または前記指定の色の着
色を実行するに当たって、濃淡のグラデーションを前記
線に沿って該線の直角方向に付けることを特徴とする請
求項1ないし10のいずれかに記載の画像処理装置。
11. The method according to claim 1, wherein in performing the coloring of the predetermined color or the designated color, a gradation of light and shade is applied along the line in a direction perpendicular to the line. An image processing apparatus according to claim 1.
【請求項12】 前記濃淡のグラデーションの代わり
に、色彩のグラデーションを描画することを特徴とする
請求項11に記載の画像処理装置。
12. The image processing apparatus according to claim 11, wherein a color gradation is drawn instead of the gradation.
【請求項13】 画像を入力する画像入力ステップと、 該画像入力ステップで入力した前記画像を記憶する画像
記憶ステップと、 該画像記憶ステップで記憶された前記画像を読み出して
表示する画像表示ステップと、 該画像表示ステップで表示された前記画像に線を描画す
る線描画ステップと、 該線描画ステップで描画された前記線に沿って該線の両
側または片側の領域に所定の色または指定の色を基にグ
ラデーション描画で着色する着色ステップとを有するこ
とを特徴とする画像処理方法。
13. An image inputting step of inputting an image, an image storing step of storing the image input in the image inputting step, and an image displaying step of reading out and displaying the image stored in the image storing step. A line drawing step of drawing a line on the image displayed in the image display step; and a predetermined color or a specified color in an area on both sides or one side of the line along the line drawn in the line drawing step A coloring step for coloring by gradation drawing based on the image processing method.
【請求項14】 前記線は任意に描いた曲線または曲線
を含む線であることを特徴とする請求項13に記載の画
像処理方法。
14. The image processing method according to claim 13, wherein the line is an arbitrarily drawn curve or a line including a curve.
【請求項15】 前記着色ステップは、 同一色を着色する幅に相応する前記線描画ステップで描
画した曲線の法線幅を決定するステップと、 決定した該法線幅に従った前記曲線の法線座標を決定す
るステップと、 前記グラデーションのスタートカラーとエンドカラーを
設定するステップと、 設定した前記スタートカラーとエンドカラーおよび前記
線描画ステップで描画した曲線の長さ、および前記法線
幅から着色一回当たりの色の差分を決定するステップ
と、 前記法線座標、前記スタートカラー、前記色の差分を用
いて前記曲線に沿って該曲線の両側または片側の領域に
グラデーションを描画するステップとを含むことを特徴
とする請求項14に記載の画像処理方法。
15. The coloring step includes: determining a normal width of a curve drawn in the line drawing step corresponding to a width for coloring the same color; and determining a normal of the curve according to the determined normal width. Determining a line coordinate; setting a start color and an end color of the gradation; coloring from the set start color and end color, a length of a curve drawn in the line drawing step, and the normal line width. Determining a color difference per time, The normal coordinates, the start color, the step of drawing a gradation along the curve using the color difference in the area on both sides or one side of the curve The image processing method according to claim 14, further comprising:
【請求項16】 前記曲線の両側または片側の領域にグ
ラデーションを描画するステップでは、描画領域が重な
った場合は既に描画した領域を優先し、描画しないこと
を特徴とする請求項15に記載の画像処理方法。
16. The image according to claim 15, wherein in the step of drawing the gradation on both sides or one side of the curve, when the drawing areas overlap, the already drawn area is prioritized, and the drawing is not performed. Processing method.
【請求項17】 前記曲線の両側または片側の領域にグ
ラデーションを描画するステップでは、描画領域が重な
った場合にも既に描画した領域の上に重ねて描画するこ
とを特徴とする請求項15に記載の画像処理方法。
17. The method according to claim 15, wherein, in the step of drawing the gradation on both sides or one side of the curve, even if the drawing areas overlap, the gradation is drawn on the already drawn area. Image processing method.
【請求項18】 前記グラデーションを描画する際に、
描画領域が重なった場合は既に描画した領域を優先して
描画しない場合と、描画領域が重なった場合にも既に描
画した領域の上に重ねて描画する場合とのいずれか一方
を前記曲線を描画する前に選択設定するステップを有
し、 該ステップでの選択結果に応じた描画を前記曲線の両側
または片側の領域にグラデーションを描画するステップ
において遂行することを特徴とする請求項15に記載の
画像処理方法。
18. When rendering the gradation,
When the drawing area overlaps, the curve is drawn using either the case where the already drawn area is not given priority and the case where the drawing area is overlapped and the area where the drawing is already performed. The method according to claim 15, further comprising the step of selecting and setting before performing the drawing, wherein the drawing according to the selection result in the step is performed in the step of drawing a gradation on both sides or one side of the curve. Image processing method.
【請求項19】 前記着色ステップは、前記線描画ステ
ップで描画した曲線の中点を決定するステップを有し、
前記グラデーションを決定した該中点を境に対称に描画
することを特徴とする請求項14ないし18のいずれか
に記載の画像処理方法。
19. The coloring step includes a step of determining a midpoint of the curve drawn in the line drawing step,
19. The image processing method according to claim 14, wherein the image is drawn symmetrically around the midpoint where the gradation is determined.
【請求項20】 前記線描画ステップと前記着色ステッ
プの代わりに、該画像表示ステップで表示された前記画
像に線を描画しつつ、描画された前記線に沿って該線の
両側または片側の領域に所定の色または指定の色を基に
グラデーション描画で順次着色する線描画・着色ステッ
プを有することを特徴とする請求項14に記載の画像処
理方法。
20. Instead of the line drawing step and the coloring step, while drawing a line on the image displayed in the image display step, an area on both sides or one side of the line along the drawn line 15. The image processing method according to claim 14, further comprising a line drawing / coloring step of sequentially coloring with gradation drawing based on a predetermined color or a specified color.
【請求項21】 前記線描画・着色ステップは、 前記グラデーションのスタートカラーと、着色一回当た
りのカラー差分と、同一色を着色する幅に相応する曲線
の法線幅と、曲線の描画開始のスタート位置とを決定す
る決定ステップと、 次に曲線の描画を行う線描画ステップと、 次に曲線が一定距離進んだところで前記法線幅を基に幅
のある法線を決定し、該法線の法線幅内を、記憶手段に
記憶された前記スタートカラーのカラーコードが初期値
であるカラーコードに対応する色で描画をする色描画ス
テップと、 次に前記記憶手段に記憶された前記カラーコードに前記
差分を加算するステップと、 曲線描画が終了か否かを判別して、続行している場合は
前記線描画ステップの曲線描画に戻るステップとを含む
ことを特徴とする請求項19に記載の画像処理方法。
21. The line drawing / coloring step includes: a starting color of the gradation, a color difference per coloration, a normal line width of a curve corresponding to a width for coloring the same color, and a start of curve drawing. A determining step of determining a start position; a line drawing step of drawing a curve; and a wide normal determined based on the normal width when the curve has traveled a predetermined distance. A color drawing step of drawing a color within the normal width of the start color stored in the storage means with a color corresponding to a color code that is an initial value; and then storing the color stored in the storage means. 20. The method according to claim 19, further comprising: a step of adding the difference to a code; and a step of determining whether or not the curve drawing is completed, and returning to the curve drawing of the line drawing step if continuing. The image processing method of mounting.
【請求項22】 前記グラデーションを描画する際に、
描画領域が重なった場合は既に描画した領域を優先して
描画しない場合と、描画領域が重なった場合にも既に描
画した領域の上に重ねて描画する場合とのいずれか一方
を前記曲線を描画する前に選択設定するステップを有
し、 該ステップでの選択結果に応じた描画を前記曲線の両側
または片側の領域にグラデーションを描画する前記線描
画・着色ステップにおいて遂行することを特徴とする請
求項21に記載の画像処理方法。
22. When rendering the gradation,
When the drawing area overlaps, the curve is drawn using either the case where the already drawn area is not given priority and the case where the drawing area is overlapped and the area where the drawing is already performed. A step of selecting and setting before performing the drawing, wherein the drawing according to the selection result in the step is performed in the line drawing / coloring step of drawing a gradation on both sides or one side of the curve. Item 22. The image processing method according to Item 21.
【請求項23】 前記所定の色または前記指定の色の着
色を実行するに当たって、濃淡のグラデーションを前記
線に沿って該線の直角方向に付けることを特徴とする請
求項13ないし22のいずれかに記載の画像処理方法。
23. The method according to claim 13, wherein, in performing the coloring of the predetermined color or the specified color, a gradation of light and shade is applied along the line in a direction perpendicular to the line. The image processing method according to 1.
【請求項24】 前記濃淡のグラデーションの代わり
に、色彩のグラデーションを描画することを特徴とする
請求項23に記載の画像処理方法。
24. The image processing method according to claim 23, wherein a color gradation is drawn instead of said gradation gradation.
【請求項25】 コンピュータによりグラデーション描
画を実行させる画像処理用プログラムを記録した記録媒
体において、該プログラムはコンピュータに対し、 画像を入力させ、 入力した前記画像を記憶させ、 記憶された前記画像を読み出して表示させ、 表示された前記画像に線を描画させ、 描画された前記線に沿って該線の両側または片側の領域
に所定の色または指定の色を基にグラデーション描画で
着色させることを特徴とする画像処理用プログラムを記
録した記録媒体。
25. A recording medium storing an image processing program for causing a computer to execute gradation drawing, wherein the program causes a computer to input an image, store the input image, and read out the stored image. And drawing a line on the displayed image, and coloring both sides or one side of the line along the drawn line by gradation drawing based on a predetermined color or a specified color. Recording medium on which an image processing program is recorded.
【請求項26】 前記線は任意に描いた曲線または曲線
を含む線であることを特徴とする請求項25に記載の画
像処理用プログラムを記録した記録媒体。
26. The recording medium according to claim 25, wherein the line is an arbitrarily drawn curve or a line including a curve.
【請求項27】 前記プログラムはコンピュータに対
し、 同一色を着色する幅に相応する前記曲線の法線幅を設定
させ、 設定た該法線幅に従った前記曲線の法線座標を設定さ
せ、 前記グラデーションのスタートカラーとエンドカラーを
設定させ、 設定した前記スタートカラーとエンドカラーおよび前記
曲線の長さ、および前記法線幅から着色一回当たりの色
の差分を設定させ、 前記法線座標、前記スタートカラー、前記色の差分を用
いて前記曲線に沿って該曲線の両側または片側の領域に
グラデーションを描画させることを特徴とする請求項2
6に記載の画像処理用プログラムを記録した記録媒体。
27. The program causes a computer to set a normal width of the curve corresponding to a width for coloring the same color, and to set normal coordinates of the curve according to the set normal width. The start color and the end color of the gradation are set, and the set start color and the end color, the length of the curve, and the color difference per color from the normal line width are set, and the normal coordinates are set. 3. A gradation is drawn along the curve on both sides or one side of the curve using the start color and the color difference.
A recording medium recording the image processing program according to 6.
【請求項28】 前記プログラムはコンピュータに対
し、 前記曲線の両側または片側の領域にグラデーションを描
画させる際に、描画領域が重なった場合は既に描画した
領域を優先させて、描画させないことを特徴とする請求
項27に記載の画像処理用プログラムを記録した記録媒
体。
28. The program, when causing a computer to draw a gradation on both sides or one side of the curve, if the drawing areas overlap, give priority to the already drawn area and do not perform drawing. A recording medium on which the image processing program according to claim 27 is recorded.
【請求項29】 前記プログラムはコンピュータに対
し、 前記曲線の両側または片側の領域にグラデーションを描
画させる際に、描画領域が重なった場合にも既に描画し
た領域の上に重ねて描画させることを特徴とする請求項
27に記載の画像処理用プログラムを記録した記録媒
体。
29. The program, when causing a computer to draw a gradation on an area on both sides or one side of the curve, even when the drawing areas overlap, causes the computer to draw on the already drawn area. A recording medium recording the image processing program according to claim 27.
【請求項30】 前記プログラムはコンピュータに対
し、 前記曲線の両側または片側の領域にグラデーションを描
画させる際に、描画領域が重なった場合は既に描画した
領域を優先して描画しない場合と、描画領域が重なった
場合にも既に描画した領域の上に重ねて描画する場合と
のいずれか一方を前記曲線を描画する前に選択設定さ
せ、 該選択結果に応じた描画を前記曲線の両側または片側の
領域にグラデーションを描画させる際において遂行させ
ることを特徴とする請求項27に記載の画像処理用プロ
グラムを記録した記録媒体。
30. The program, when causing a computer to draw a gradation on both sides or one side of the curve, if the drawing areas overlap each other, the drawing area is not preferentially drawn. Is also selected before drawing the curve, and the drawing according to the selection result is performed on both sides or one side of the curve. 28. A recording medium recording the image processing program according to claim 27, wherein the recording is performed when a gradation is drawn in an area.
【請求項31】 前記プログラムはコンピュータに対
し、 前記曲線の両側または片側の領域にグラデーションを描
画させる際に、描画した曲線の中点を決定させ、決定し
た該中点を境に対称に描画させることを特徴とする請求
項26ないし30のいずれかに記載の画像処理用プログ
ラムを記録した記録媒体。
31. The program causes a computer to determine a middle point of a drawn curve when drawing a gradation on both sides or one side of the curve, and cause the computer to draw symmetrically around the determined middle point. A recording medium recording the image processing program according to any one of claims 26 to 30.
【請求項32】 前記プログラムはコンピュータに対
し、 前記曲線の両側または片側の領域にグラデーションを描
画させる際に、前記画像に線を描画させつつ、描画され
た該線に沿って該線の両側または片側の領域に所定の色
または指定の色を基にグラデーション描画で順次着色さ
せることを特徴とする請求項26に記載の画像処理用プ
ログラムを記録した記録媒体。
32. The program, when causing a computer to draw a gradation on both sides or one side of the curve, draws a line on the image, and draws a line on the both sides of the line or along the drawn line. 27. The recording medium according to claim 26, wherein the one side area is sequentially colored by gradation drawing based on a predetermined color or a designated color.
【請求項33】 前記プログラムはコンピュータに対
し、 前記曲線の両側または片側の領域にグラデーションを描
画させる際に、前記グラデーションのスタートカラー
と、着色一回当たりのカラー差分と、同一色を着色する
幅に相応する曲線の法線幅と、曲線の描画開始のスター
ト位置とを決定させ、 次に曲線の描画を行わせ、 次に曲線が一定距離進んだところで前記法線幅を基に幅
のある法線を決定させ、該法線の法線幅内を、記憶手段
に記憶された前記スタートカラーのカラーコードが初期
値であるカラーコードに対応する色で描画させ、 次に前記記憶手段に記憶された前記カラーコードに前記
差分を加算させ、曲線描画が終了か否かを判別させて、
続行している場合は前記曲線の描画処理に戻らせること
を特徴とする請求項31に記載の画像処理用プログラム
を記録した記録媒体。
33. When the program causes the computer to draw a gradation on both sides or one side of the curve, a start color of the gradation, a color difference per coloring, and a width for coloring the same color. Is determined, and the start position of the start of drawing the curve is determined.Next, the drawing of the curve is performed. Next, when the curve advances a predetermined distance, the width is determined based on the normal width. The normal is determined, and the normal line width of the normal is drawn in a color corresponding to the color code of which the color code of the start color stored in the storage is an initial value, and then stored in the storage. By adding the difference to the color code that has been made, to determine whether the curve drawing is completed,
32. The recording medium according to claim 31, wherein the process is returned to the curve drawing process when continuing.
【請求項34】 前記プログラムはコンピュータに対
し、 前記曲線の両側または片側の領域にグラデーションを描
画させる際に、描画領域が重なった場合は既に描画した
領域を優先して描画しない場合と、描画領域が重なった
場合にも既に描画した領域の上に重ねて描画する場合と
のいずれか一方を前記曲線を描画する前に選択設定さ
せ、 該選択結果に応じた描画を、前記曲線の両側または片側
の領域にグラデーションを描画させる際に遂行させるこ
とを特徴とする請求項33に記載の画像処理用プログラ
ムを記録した記録媒体
34. The program, when causing a computer to draw a gradation on both sides or one side of the curve, if the drawing areas overlap each other, do not give priority to the already drawn area. Is selected before drawing the curve, and the drawing according to the selection result is performed on both sides or one side of the curve. 34. A recording medium storing the image processing program according to claim 33, wherein the recording is performed when a gradation is drawn in an area.
【請求項35】 前記プログラムはコンピュータに対
し、 前記所定の色または前記指定の色の着色を実行させるに
当たって、濃淡のグラデーションを前記線に沿って該線
の直角方向に付けさせることを特徴とする請求項25な
いし34のいずれかに記載の画像処理用プログラムを記
録した記録媒体。
35. The program, when causing the computer to execute the coloring of the predetermined color or the specified color, causes a gradation of light and shade to be applied along the line in a direction perpendicular to the line. A recording medium on which the image processing program according to any one of claims 25 to 34 is recorded.
【請求項36】 前記プログラムはコンピュータに対
し、 前記濃淡のグラデーションの代わりに、色彩のグラデー
ションを描画させることを特徴とする請求項25に記載
の画像処理用プログラムを記録した記録媒体。
36. The recording medium according to claim 25, wherein the program causes the computer to draw a color gradation instead of the gradation.
JP21416099A 1999-07-28 1999-07-28 Image processing device and method, and recording medium recording image processing program Pending JP2001043390A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP21416099A JP2001043390A (en) 1999-07-28 1999-07-28 Image processing device and method, and recording medium recording image processing program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP21416099A JP2001043390A (en) 1999-07-28 1999-07-28 Image processing device and method, and recording medium recording image processing program

Publications (1)

Publication Number Publication Date
JP2001043390A true JP2001043390A (en) 2001-02-16

Family

ID=16651238

Family Applications (1)

Application Number Title Priority Date Filing Date
JP21416099A Pending JP2001043390A (en) 1999-07-28 1999-07-28 Image processing device and method, and recording medium recording image processing program

Country Status (1)

Country Link
JP (1) JP2001043390A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008003825A (en) * 2006-06-22 2008-01-10 Konami Digital Entertainment:Kk Line shape processing device, line shape processing method, and program
JP2009508239A (en) * 2005-09-23 2009-02-26 キヤノン株式会社 Vectorization of color gradient

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009508239A (en) * 2005-09-23 2009-02-26 キヤノン株式会社 Vectorization of color gradient
JP4726257B2 (en) * 2005-09-23 2011-07-20 キヤノン株式会社 Image processing method and apparatus
JP2008003825A (en) * 2006-06-22 2008-01-10 Konami Digital Entertainment:Kk Line shape processing device, line shape processing method, and program
US8244073B2 (en) 2006-06-22 2012-08-14 Konami Digital Entertainment Co. Ltd. Line shape processing device, line shape processing method, information recording medium, and program

Similar Documents

Publication Publication Date Title
US5850232A (en) Method and system for flipping images in a window using overlays
JPS62256092A (en) Computer graphic apparatus and method for painting complicated polygon
JPS6240580A (en) Graphic drawing method
KR100376196B1 (en) Outline smoothing method and system
KR930000998B1 (en) Method and apparatus for processing image and/or character in computer graphics
US6057825A (en) Image processing apparatus with paint-in of outline interiors
US5920324A (en) Character pattern producing apparatus capable of producing character pattern having connected character elements
JP2001043390A (en) Image processing device and method, and recording medium recording image processing program
JP2005326756A (en) Character image generation device and its method, display controller, character image generating program and display control program
JPH0640259B2 (en) Data processing device
JPH06176122A (en) Graphic editing device
JP2845380B2 (en) Printing apparatus and control method thereof
JP3964219B2 (en) Image processing apparatus, image processing method, image processing program, and recording medium
JP3872056B2 (en) Drawing method
JP3129717B2 (en) Image processing apparatus and image processing method
JPH09190538A (en) Picture processor and its processing method
JP3679484B2 (en) Graphic processing apparatus and method
US6901172B1 (en) Method and apparatus for drawing likeness
JP2002132245A (en) Character drawing apparatus
JP3089740B2 (en) Line drawing device
JPH09259291A (en) Area separately painting device
JPS62131378A (en) Control system for continuous color painting out
JPH04239984A (en) Graphic display device
JPS636594A (en) Character pattern processor
JP2000215320A (en) Image forming device and method for generating gradation pattern