JPS6059386A - Pattern line drawing system and apparatus - Google Patents
Pattern line drawing system and apparatusInfo
- Publication number
- JPS6059386A JPS6059386A JP58167799A JP16779983A JPS6059386A JP S6059386 A JPS6059386 A JP S6059386A JP 58167799 A JP58167799 A JP 58167799A JP 16779983 A JP16779983 A JP 16779983A JP S6059386 A JPS6059386 A JP S6059386A
- Authority
- JP
- Japan
- Prior art keywords
- pattern
- line
- basic
- line width
- starting point
- 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
Links
Landscapes
- Image Generation (AREA)
- Controls And Circuits For Display Device (AREA)
Abstract
(57)【要約】本公報は電子出願前の出願データであるた
め要約のデータは記録されません。(57) [Summary] This bulletin contains application data before electronic filing, so abstract data is not recorded.
Description
【発明の詳細な説明】
本発明は輝度もしくは色のコードで定められた2次元格
子状の基本パターンを巡回的に用いた模様を有するディ
ジタル的な模様線の描画方式とその装置に関するもので
ある。DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a method and apparatus for drawing digital pattern lines having a pattern that cyclically uses a two-dimensional grid-like basic pattern defined by brightness or color codes. .
ディジタル的なベクトルをディスプレイ装置に表示した
りあるいはハードコピー装置に出力したシする場合には
、ベクトルの始点とベクトル成分からそれぞれの装置に
出力すべき点列を発生するベクトル発生手段を用いる。When displaying a digital vector on a display device or outputting it to a hard copy device, vector generating means is used to generate a sequence of points to be output to each device from the starting point and vector components of the vector.
これらの点列は基本単位の大きさと輝度もしくは色を持
つ画素の連続として各装置上で実現され、この輝度もし
くは色を規則的に変化させることにより様々の線パター
ンを有するベクトルが得られる。These dot sequences are realized on each device as a series of pixels having a basic unit size and brightness or color, and by regularly changing the brightness or color, vectors having various line patterns can be obtained.
一方、ワードプロセッサ等で文書や図面等を作成する際
には、これらのベクトルだけではなく、地図における鉄
道の線路模様あるいはまた文書中の飾り罫などの模様線
が必要とされている。第1図は本発明の対象とする模様
線の一例を示した図であり、(a)は模様線、(b)は
それぞれの基本パターンを示している。(a)の模様線
は(blの基本パターンを連続的につないで用いること
で実現されている。On the other hand, when creating documents, drawings, etc. using a word processor or the like, not only these vectors but also pattern lines such as railroad track patterns on maps or decorative lines in documents are required. FIG. 1 is a diagram showing an example of pattern lines to which the present invention is applied, in which (a) shows the pattern lines, and (b) shows the respective basic patterns. The pattern lines in (a) are realized by continuously connecting and using the basic patterns of (bl).
第2図は従来の模様線の実現方法を説明するための図で
あり、(a)は線の傾きが水平の場合、(b)は斜めに
傾いている場合を示している。基本パターンから模様線
を実現する方法で最も簡便なものは、(a)に示すよう
に矩形状の基本パターンを水平あるいは垂直に連続的に
配置する方法である。1つの基本パターンを水平、垂直
の模様線の両方に利用するには、基本パターンに対して
90° 回転したパターンを作成して用いれば尺い。こ
の方法は簡便ではあるが、模様線の伸きは水平あるいは
垂直に制限され、任意の傾きのものは実現できない欠点
がある。一方、任意の傾きの模様線は(())に示すよ
うに基本パターンから所望の傾きに対応して平行四辺形
状に変換したパターンを作成して連続的につながるよう
に配置することで実現できる。この方法によればある程
度自由な(lj′Iきの模様線が得られるが、図で明ら
かなように模様が斜めに変形しており、模様線の線幅は
見かけ上本来の線幅より狭くなるという欠点がある。さ
らに模様線を従来のベクトルと同じように全く任意の傾
きで任意の長さを持つように扱うためには非電に複雑な
処理を要するという欠点があった。FIG. 2 is a diagram for explaining a conventional method for realizing pattern lines, in which (a) shows a case where the line is horizontally inclined, and (b) shows a case where the line is obliquely inclined. The simplest method for realizing pattern lines from basic patterns is to continuously arrange rectangular basic patterns horizontally or vertically, as shown in (a). To use one basic pattern for both horizontal and vertical pattern lines, create a pattern rotated 90 degrees from the basic pattern and use it. Although this method is simple, it has the disadvantage that the extension of the pattern lines is limited to either horizontal or vertical lines, and it is not possible to create patterns with arbitrary inclinations. On the other hand, pattern lines with arbitrary inclinations can be realized by creating patterns that are converted from the basic pattern into parallelogram shapes corresponding to the desired inclinations and arranging them so that they are continuously connected, as shown in (()). . According to this method, pattern lines with a certain degree of freedom (lj'I) can be obtained, but as is clear from the figure, the pattern is deformed diagonally, and the line width of the pattern lines is apparently narrower than the original line width. Furthermore, in order to treat pattern lines as having completely arbitrary slopes and arbitrary lengths, like conventional vectors, there is a disadvantage that non-electronically complex processing is required.
本発明の目的は、上記欠点を解消し、任意の傾きで、模
様が斜めに変形したり線幅が狭くなるということのない
模様線を、ベクトルと同様に容易に描画できる、模様線
の描画方式とその装置を提供することにある。An object of the present invention is to solve the above-mentioned drawbacks, and to provide a pattern line drawing method that can easily draw pattern lines at any inclination without causing the pattern to be deformed diagonally or the line width to become narrow, just like vectors. The objective is to provide a method and its equipment.
本発明によれば、輝度もしくは色のコードで定められた
2次元格子状の基本パターンを巡回的に用いた模様を有
するディジタル的な模様線の描画方式において、X 1
1 y座標系における模様線の始点と、成分と、基本パ
ターンとが与えられたときに、模様線とX軸とのなす角
度および基本パターンの線幅からめた補正線幅と、基本
パターンでの線幅方向の位置に対応した模様の位相ずれ
量とを用いて修正パターンを作成し、この修正パターン
の行部分パターンを巡回的に用いた線パターンを有する
単位線幅のベクトルの始点を角度に応じてX軸またはX
軸に平行に単位画素分ずらしながら補正線幅本数分だけ
顔に重ねて描画する方法による模様線の描画方式が得ら
れる。According to the present invention, in a digital pattern line drawing method having a pattern using cyclically a two-dimensional grid-like basic pattern defined by a brightness or color code,
1 When the starting point of the pattern line in the y-coordinate system, the component, and the basic pattern are given, the correction line width calculated from the angle between the pattern line and the X axis and the line width of the basic pattern, and the line width of the basic pattern. A correction pattern is created using the phase shift amount of the pattern corresponding to the position in the line width direction, and the starting point of a vector of unit line width having a line pattern using the row part pattern of this correction pattern cyclically is set to an angle. X axis or
A pattern line drawing method is obtained in which pattern lines are drawn superimposed on the face by the number of corrected line widths while being shifted by a unit pixel in parallel to the axis.
さらに本発明によれば、輝度もしくは色のコードで定め
られた2次元格子状の基本パターンを巡回的に用いた模
様を有するディジタル的な模様線の描画装置において、
基本パターンPを記憶する基本パターンメモリと、x
11 )I座標系における模様線の始点x、yと成分d
x、dyと前記基本パターンP−(C1j)(i=1.
2、・・・、m、j:1.21010、n)とが与えら
れたときに、基本パターンの線幅mと模様線の成分dx
、dyを入力して補正線幅m゛を出力する補正線幅演算
部と、前記基本パターンメモリよりパターンコードC1
jを入力し、前記補正線幅m°と模様線の成分dx、
dyとを用いて修正バタ7 P’==(C’、jl (
i−1,2、・−・、ml、j=1.2、・・・、n)
に変換し出力するパターン変換部と、前記パターン変換
部の出力する修正パターンP1を一時記憶する修正パタ
ーンメモリと、前記補正線幅m1と模様線の始点x、
y、成分dx、dyを入力してm°組の始点Xi、 Y
H(i = 1.2、・・・、m゛)を出力する始点演
算部と、前記始点Xi、Yiと模様線の成分dx、dy
と前記修正パターンの行部分パターン” i””1j(
J=1.2、−・・、n)を入力して該行部分パターン
Tliを巡回的に用いた線パターンを有するベクトルを
表わす点列の座標Xiv、Yivと各点での輝度もしく
は色のコードC1v(v=1.2、・・−1MAX(d
、x、 d、y ) )を出力するベクトル発生部と、
前記点列の座標Xiv、Yivに対応するアドレスにコ
ードC1v を書込み記憶するイメージメモリと、装置
の動作を制御する制御部とから構成される模様線の描画
装置が得られる。Further, according to the present invention, in a digital pattern line drawing device having a pattern using a two-dimensional grid-like basic pattern determined by a brightness or color code in a circular manner,
a basic pattern memory that stores the basic pattern P;
11) Starting point x, y and component d of pattern line in I coordinate system
x, dy and the basic pattern P-(C1j) (i=1.
2, ..., m, j: 1.21010, n), the line width m of the basic pattern and the component dx of the pattern line
, dy and outputs a corrected line width m', and a pattern code C1 from the basic pattern memory.
j, and input the corrected line width m° and pattern line component dx,
Modified butter 7 using dy and P'==(C', jl (
i-1,2,...,ml,j=1.2,...,n)
a pattern converting unit that converts and outputs the corrected pattern P1, a corrected pattern memory that temporarily stores the corrected pattern P1 outputted by the pattern converting unit, the corrected line width m1 and the starting point x of the pattern line,
Input y, components dx and dy to find the starting point of m° group Xi, Y
A starting point calculation unit that outputs H (i = 1.2, ..., m゛), and the starting points Xi, Yi and pattern line components dx, dy.
and the row partial pattern “i””1j(
J=1.2, -..., n), and calculate the coordinates Xiv, Yiv of a point sequence representing a vector having a line pattern using the row partial pattern Tli cyclically, and the brightness or color at each point. Code C1v (v=1.2,...-1MAX(d
, x, d, y ));
A pattern line drawing device is obtained which includes an image memory for writing and storing the code C1v at addresses corresponding to the coordinates Xiv and Yiv of the point sequence, and a control section for controlling the operation of the device.
以下本発明について実施例を示す図面を参照して説明す
るが、44体溌朔つ彷橘■つ栖(セ用ヰ44−まず本発
明の方式について説明する。The present invention will be described below with reference to drawings showing embodiments. First, the system of the present invention will be described.
第3図は本発明の詳細な説明するための概念図であシ、
第3図(a)は模様線の基本パターン、(b)は修正パ
ターン、(C)は部分パターン、第4図(a)はX・y
平面上でX軸と角度θをなす模様線、第4図(b)は模
様線の一部の拡大図をそれぞれ示している。FIG. 3 is a conceptual diagram for explaining the present invention in detail;
Figure 3 (a) is the basic pattern of pattern lines, (b) is the modified pattern, (C) is the partial pattern, and Figure 4 (a) is the X/y pattern.
The pattern line forms an angle θ with the X axis on a plane, and FIG. 4(b) shows an enlarged view of a part of the pattern line.
同図(a)に示す基本パターンは線方向にn、線幅方向
にmに区分された格子状をなし、ある小区割の輝度もし
くは色のコードをC1j とするときP−(CIJ)(
i=1.2s 3+ ”’* mi J=1+ 2.3
、・・・、n)で表わされる。同図(b)に示す修正パ
ターンは同様にして、 P ’−(C’+ J ) (
+ =1−2.3、・・1ml、j=1.2,3、ハn
)で表わされ、同図(C)に示す修正パターンの1行分
の部分パターンをTl1−(釦・ )(j=1.2.3
.・・・、n)で表わす。第1」
4図(a)において、 ABとEFとで囲まれる平行四
辺形ABFBが線幅mの模様線を表わしており、実際に
は単位線幅を有するベクトルAB、・・・、CD。The basic pattern shown in Figure (a) has a grid shape divided into n sections in the line direction and m sections in the line width direction, and when the brightness or color code of a certain subdivision is C1j, P-(CIJ)(
i=1.2s 3+ ”'* mi J=1+ 2.3
,...,n). Similarly, the modification pattern shown in FIG.
+ =1-2.3,...1ml, j=1.2,3, Han
), and the partial pattern for one line of the modified pattern shown in FIG.
.. ..., n). 1. In Figure 4(a), a parallelogram ABFB surrounded by AB and EF represents a pattern line with a line width m, and in reality, vectors AB, . . . , CD have unit line width.
、EFがm’本平行に重ねられている0 本発明ではそ
れぞれのベクトルの始点A1・・・ICI・・・、Eは
角度θによシO0≦θ〈45°または315°≦θ〈3
60゜の場合にはAEがy軸止方向と平行に定め、45
°≦θ〈135°の場合にはAEがX軸負方向と平行に
定め、135°≦θ〈225°の場合にはlがy軸負方
向と平行に定め、225°≦θく315゜の場合にはA
EがX軸止方向と平行に定める。ここでは0°≦0〈4
5°の場合を示している。, EF are superimposed in parallel 0 In the present invention, the starting point A1...ICI...,E of each vector is determined by the angle θ00≦θ〈45° or 315°≦θ〈3
In the case of 60°, AE is set parallel to the y-axis stopping direction, and 45
When °≦θ<135°, AE is set parallel to the negative direction of the X-axis, and when 135°≦θ<225°, l is set parallel to the negative direction of the y-axis, and 225°≦θ 315° A in the case of
E is set parallel to the X-axis stop direction. Here 0°≦0〈4
The case of 5° is shown.
模様線の線幅すなわち基本パターンの線幅mと単位線幅
のベクトルを重ねる本数すなわち修正パターンの線幅m
’(以後補正線幅と呼ぶ)との関係は(1)式で表わさ
れる。The line width of the pattern line, that is, the line width m of the basic pattern, and the number of overlapping vectors of unit line width, that is, the line width m of the modified pattern
' (hereinafter referred to as corrected line width) is expressed by equation (1).
m’ = (m −secθ)−−(1)(1)式中の
記号〔〕は値を例えば四捨五入等によシ整数化すること
を意味する。角度θに応じてmからm’に基本パターン
の線幅を増やすためには適当な補間操作を行なう。すな
わち、基本パターンP−(C,j)に対して線幅を補正
したパターンをP’ = (”kj)(k=1.2.3
. ・・・、ml、j=1.2゜3、・・・、n)とす
れば−例として(2)式のととくiとkとの対応を定め
れば良い。m' = (m - secθ) - (1) The symbol [ ] in the formula (1) means that the value is converted into an integer by, for example, rounding off. In order to increase the line width of the basic pattern from m to m' according to the angle θ, an appropriate interpolation operation is performed. In other words, the pattern whose line width is corrected for the basic pattern P-(C,j) is P' = ("kj) (k=1.2.3
.. . . , ml, j=1.2°3, .
C”kj−Cij−
・・・・・・(2)
(2)式によれば、線幅mの基本パターンから線幅ml
に補正したパターンP”−(C″kj )が得られる。C"kj-Cij- ...... (2) According to equation (2), from the basic pattern of line width m, line width ml
A pattern P"-(C"kj) corrected to is obtained.
一方、この補正パターンP″の行部分パターンをT’r
=(C’111 (j=1.2.3、・・・、n)とl
−だとき、このパターンT1量をこのまま巡回的に用い
た線パターンを翁するベクトルを第4図<a)のごとく
重ねた場合には、模様線の位相はOHの方向に揃うため
に模様が全体に斜めに変形する。この変形を補正するた
めにはノ祐に垂直な方向すなわちほの方向に各ベクトル
の綜パターンの位相をJjiilえれは良い。このとき
の位相ずれ量は1番目のベクトルに対して■−11に相
当するが、第4図(1))に拡大して示すように点■(
から点工までの単位画素故はf−1,Iの絶対値ではな
く、0°≦θく45°の場合にはIIJのX軸方向成分
となる。したがって1位+1+を進める場合を正とすれ
ば、この場合の位相ずれ僅Siは(3)式で表わされる
。On the other hand, the row partial pattern of this correction pattern P'' is T'r
=(C'111 (j=1.2.3,...,n) and l
-, if the vectors of line patterns using this pattern T1 amount cyclically are superimposed as shown in Figure 4<a), the pattern lines will be aligned in the OH direction, so the pattern will be Deforms diagonally throughout. In order to correct this deformation, it is better to change the phase of the helix pattern of each vector in the direction perpendicular to the direction, that is, the direction. The amount of phase shift at this time corresponds to ■-11 with respect to the first vector, but as shown in the enlarged view in Figure 4 (1)), point ■ (
Since the unit pixel from to dotting is not the absolute value of f-1,I, it becomes the X-axis direction component of IIJ when 0°≦θ and 45°. Therefore, if the case where the 1st place +1+ is advanced is positive, the phase shift amount Si in this case is expressed by equation (3).
S、二C−IHIl*cosθ〕
=[−i φSinθ@C05O〕
: C−Si n 2θ〕 ・・・・・・・・・・・・
・・・・・・・・・・・・・・・・・・・・・(3)し
たがって、各行の部分パターンTI、の位相を8゜ずら
した部分パターンTlは(4)式で与えられる。S, 2C-IHIl*cosθ] = [-i φSinθ@C05O] : C-Sin 2θ] ・・・・・・・・・・・・
・・・・・・・・・・・・・・・・・・・・・(3) Therefore, the partial pattern Tl, which is obtained by shifting the phase of the partial pattern TI in each row by 8°, is given by equation (4). .
T’i = l (シ1lJl、C1,、−C1【t=
=MOD(j−1−81、n)+1(j−1,2,3、
・・・、n)・・・・・・・・・・・・・・・・・・・
・・・・・・・・(4)1だ、この部分パターンTI、
を持つ修正パターンP゛は(5)式で表わされる。T'i = l (S1lJl, C1,, -C1[t=
=MOD(j-1-81,n)+1(j-1,2,3,
・・・, n)・・・・・・・・・・・・・・・・・・
・・・・・・・・・(4) 1, this partial pattern TI,
The correction pattern P′ having the following equation is expressed by equation (5).
P’、= l C’i j l、C1ij= C″it
t=MOD(j −1−8H1n)+1(1=1.2.
3、・・・、m’、j=l、2.3、・・・、n) ・
・・−・・・・・・・・・−・・・・・・・・・・・・
・・−・・・・・・・・・・・・・・−・・・・・・・
(5)したがって、この修正パターンP’の部分パター
ン7を線パターンとする単位線幅のベクトルをm。P', = l C'i j l, C1ij= C″it
t=MOD(j-1-8H1n)+1(1=1.2.
3,..., m', j=l, 2.3,..., n) ・
・・・-・・・・・・・・・-・・・・・・・・・・・・
・・・-・・・・・・・・・・・・・・・・・・・・・・・・
(5) Therefore, m is the vector of unit line width that uses the partial pattern 7 of this modified pattern P' as a line pattern.
本平行に重ねることによシ線幅がmで模様が線の方向に
垂直に揃った模様線が得られる。一方、他の角度におい
ても同様にして、補正線幅m°と位相ずれ量S1とが定
められ、0°≦θ〈360°について(6)式に示す。By stacking these in parallel, pattern lines with a line width of m and a pattern aligned perpendicular to the line direction can be obtained. On the other hand, the corrected line width m° and the phase shift amount S1 are similarly determined for other angles, and are expressed in equation (6) for 0°≦θ<360°.
0°≦θく45°、315°≦θく360°の場合、m
’==[m*secθ〕、Si=[−Hs+n2θ〕、
45°≦θく135° の場合
、・工〔□・C08eCθ〕、s1=〔具in2θ〕、
135°≦θく225°の場合
■ 。If 0°≦θ45°, 315°≦θ360°, m
'==[m*secθ], Si=[-Hs+n2θ],
In the case of 45°≦θ×135°, ・〔□・C08eCθ〕, s1=〔〔in2θ〕,
If 135°≦θ and 225°■.
m’ == C−m ” seeθ〕、5i=(−Hs
+n2θ)、225°≦θく315°の場合
1 。m' == C-m ”seeθ], 5i=(-Hs
+n2θ), 1 if 225°≦θ<315°.
m’==:[−m11cosccθ〕、5i=(−ps
+n2θ) −16+第5図(a)、(bl、(cl、
(dl、(eiは本発明の方式による模様線の例を示す
図であシ、(a)は模様線、(b)は基本パターン、(
C>は線幅を補正したパターン、(d)はさらに位相ず
れも補正した修正パターン、(e)は修正パターンを用
いた模様線の描画例をそれぞれ示している。ここではm
−11、n = 8、θ=45゜の場合について例を示
す。基本パターンPから修正パターンP′を得て模様線
を描画する方式を順に説明する。補正線幅は(6)式よ
シm’二〔11・cosec45°〕=15であり、線
幅を補正したパターンP”は(7)式のごとくなる。m'==:[-m11cosccθ], 5i=(-ps
+n2θ) -16+Figure 5 (a), (bl, (cl,
(dl, (ei) are diagrams showing examples of pattern lines according to the method of the present invention, (a) is a pattern line, (b) is a basic pattern, (
C> shows a pattern in which the line width is corrected, (d) shows a corrected pattern in which the phase shift is also corrected, and (e) shows an example of pattern line drawing using the corrected pattern. Here m
An example will be shown for the case where -11, n = 8, and θ = 45°. A method of obtaining a modified pattern P' from a basic pattern P and drawing pattern lines will be explained in order. The corrected line width is m′2 [11·cosec45°]=15 according to equation (6), and the pattern P” whose line width is corrected is as shown in equation (7).
P”= l C”3i )、 C″kj −C1j (
j−1、2、3、・・・、n)
k二1.2.3.4.5.6.7.8.9.101]、
12.1314.15i = 1.2.3.3.4.5
.6.6.7.8.9.9.10.11.11 ・・・
(7)これは、i二3.6.9.11行の部分パターン
が重複して用いられることを意味しておシ、補正の結果
第5図(C)が得られる。さらに、i = 1.2.3
、・・・、15に対する位相ずれ量は(6)式よりSi
二〇、1.1.2.2.3.3.4.4.5.5.6.
6.7.7となり、例えば部分パターンT”4−10.
0.1、Olo、■、0、O) (0は白、1は黒を意
味する)は5i−2だけずらしてTl4−(0,0,0
,0,1,0,0、■)と変換される。全体について位
相ずれを補正して第5図(d)に示す修正パターンP′
が得られる。さらに、修正パターンP°の部分パターン
T’ +−(1,1゜1、Olo、1.1.1)、Tl
2−(1,1,1,1,0,0、]、T1)、・・−1
T’ts= t 1.1.1.1.1.0.0.11
を各々巡回的に用いた線パターンを有するベクトルをX
軸貴方向に平行にずらして重ねることにより第5図(e
)に示すごとく線幅11、角度45°の模様線が得られ
る。P"=l C"3i), C"kj -C1j (
j-1, 2, 3, ..., n) k21.2.3.4.5.6.7.8.9.101],
12.1314.15i = 1.2.3.3.4.5
.. 6.6.7.8.9.9.10.11.11...
(7) This means that the partial patterns in rows i2, 3, 6, 9, and 11 are used overlappingly, and the result of correction is as shown in FIG. 5(C). Furthermore, i = 1.2.3
,...,15, the amount of phase shift for Si
20, 1.1.2.2.3.3.4.4.5.5.6.
6.7.7, for example, partial pattern T"4-10.
0.1, Olo, ■, 0, O) (0 means white, 1 means black) is shifted by 5i-2 and becomes Tl4-(0,0,0
, 0, 1, 0, 0, ■). The correction pattern P′ shown in FIG. 5(d) after correcting the phase shift for the whole
is obtained. Furthermore, the partial pattern T' +-(1,1°1, Olo, 1.1.1) of the modified pattern P°, Tl
2-(1,1,1,1,0,0,],T1),...-1
T'ts=t 1.1.1.1.1.0.0.11
A vector having a line pattern using each cyclically is
Figure 5 (e
), pattern lines with a line width of 11 and an angle of 45° are obtained.
以上述べたように、本発明の模様線の描画方式によれば
、任意の傾きで、模様が斜めに変形した9幅が狭くなる
ということのない模様線をゝクトルと同様に容易に描画
することができる。As described above, according to the pattern line drawing method of the present invention, it is possible to easily draw pattern lines with arbitrary inclinations, in which the pattern is obliquely deformed and the width does not become narrow, just like vectors. be able to.
第6図は本発明の模様線の描画方式を実現した装置の一
実施例を示したブロック図である。図中2は補正線幅演
算部であシ、基本パターンの線幅mと模様線の成分dx
、dyを入力して補正線幅m′を出力する。3は基本パ
ターンメモリであり、特定の基本パターンP=i Cr
jl (i=1.2.3.−・・、m、j=1.2,3
、・・・、n)を記憶している。4はパターン変換部で
6D、基本パターンメモリ3.72より輝度もしくは色
のコードCiJを順に入力し、補正線幅m1と模様線の
成分dx、dyとを用いて修正パターンP’=(C’i
、 l (t=i、2.3、・・・、mo、j−1,2
,3、・・・、n)に変換する。5は修正パターンメモ
リであり、パターン変換部4の出力−J−る修正パター
ンを一時記憶する。6は始点演算部であり、補正線幅I
n’と模様線の成分dx、dyと模様線の始点x、yを
入力してm’組の始点Xi、Yi(l=1.2.3、・
・・、m’)を出力する。7はベクトル発生部であり、
始点Xi、、Yiど、模様線の成分dx、dyと修正パ
ターンの部分パターンT’i(i = l、2.3.・
・・、m’)を入力してベクトルを表わす点列の座標X
iv、Y1vと各点に対応するコードC1v(V:l、
2.3、・・・、 MAX(dx−dy))を出力する
。8はイメージメモリであり、ベクトル発生部から順次
送られて来る点列の座標Xiv、Yiv に対応するア
ドレスにコードC1vを書込み記憶する。1は装置の動
作を制御する制御部である。FIG. 6 is a block diagram showing an embodiment of an apparatus implementing the pattern line drawing method of the present invention. 2 in the figure is a correction line width calculation unit, which includes the line width m of the basic pattern and the component dx of the pattern line.
, dy are input, and the corrected line width m' is output. 3 is a basic pattern memory, in which a specific basic pattern P=i Cr
jl (i=1.2.3.-..., m, j=1.2,3
,...,n) are stored. 4 is a pattern conversion unit which inputs the luminance or color code CiJ from 6D and basic pattern memory 3.72 in order, and uses the correction line width m1 and pattern line components dx and dy to create a correction pattern P'=(C' i
, l (t=i, 2.3,..., mo, j-1,2
, 3, ..., n). A modified pattern memory 5 temporarily stores the modified pattern output from the pattern converter 4. 6 is a starting point calculation unit, which calculates the corrected line width I
Input n', the components dx and dy of the pattern line, and the starting points x and y of the pattern line to find the starting points Xi and Yi of m' group (l=1.2.3, .
..., m') is output. 7 is a vector generation part,
The starting points Xi, Yi, etc., the components dx and dy of the pattern line, and the partial pattern T'i of the correction pattern (i = l, 2.3.
..., m') and input the coordinates X of the point sequence representing the vector.
iv, Y1v and the code C1v (V:l,
2.3,..., MAX(dx-dy)) is output. Reference numeral 8 denotes an image memory in which a code C1v is written and stored at the address corresponding to the coordinates Xiv, Yiv of the point sequence sequentially sent from the vector generation section. Reference numeral 1 denotes a control unit that controls the operation of the device.
第6図を用いて始点x、y、成分dx、dy、基本パタ
ーンPを有する模様数を描画する際の動作を説明する。The operation when drawing a number of patterns having starting points x, y, components dx, dy, and basic pattern P will be explained using FIG.
基本パターンPはあらがじめ基本パターンメモリ3に記
憶されているものとする。補正線幅演算部2は基本パタ
ーンの線幅m、dx= dyを入力し、(6)式で示し
た演算を行ない補正線幅m’を出力する。ただし、以後
の説明においてθ=a r c t 3n (”’ )
、(01θく360°)とする。パタx
−ン変換部4は補正線幅m°、dx、dyを入力し、基
本パターンメモリ3からパターンのコードC1jを順に
入力し、(2)、(5)、(6)式に従った演算操作に
より修正パターンP゛のコードc l 1J に変換し
て出力し、修正パターンメモリ5に一時記憶させる。It is assumed that the basic pattern P is stored in the basic pattern memory 3 in advance. The corrected line width calculating section 2 inputs the basic pattern line width m, dx=dy, performs the calculation shown in equation (6), and outputs the corrected line width m'. However, in the following explanation, θ=a r c t 3n (”')
, (01θ×360°). The pattern conversion unit 4 inputs the corrected line widths m°, dx, and dy, sequentially inputs the pattern code C1j from the basic pattern memory 3, and converts the data according to equations (2), (5), and (6). It is converted into a code c l 1J of the correction pattern P′ by arithmetic operations, output, and temporarily stored in the correction pattern memory 5.
この変換の演算操作は、例えば次のように行なうことが
できる。まず(2)式に従い、基本パターンメモリ3か
ら順にコードC1jを入力しnl’を用いて線幅を補正
したパターン変換部I C”kJl (k= 1.2、
・・・、mo、J−1,2、・・・、n)をパターン変
換部4の内部メモリー(図示せず)に一時記憶する。This conversion operation can be performed, for example, as follows. First, according to equation (2), the code C1j is input in order from the basic pattern memory 3, and the line width is corrected using nl'.
. . , mo, J-1, 2, . . . , n) are temporarily stored in an internal memory (not shown) of the pattern conversion unit 4.
次に(6)式に示す演算により模様の位相ずれ量5I(
i=1.2、・・・、ml)をめ、さらに(5)式で示
す操作により所望の修正パターンコードC′Ij が得
られる。また、(6)式の操作は巡回的なn段のシフト
レジスタを用いて行うこともできる。始点演算部6はm
’、x、y、 dx、 dyを入力し、本発明の詳細な
説明で示したようにm′組の始点Xi、Yi(i =
1.2、・・・、m’)を出力する。その−例を(8)
式%式%(8
ただし、i二1.2、・・・、m“、o0≦θ<45°
または正パターンメモリ5に一時記憶されている修正パ
ターンP1の部分パターンT’1=IC’1jl(j=
x、2、・・・、n)と前記始点座標Xi、Yiおよび
dx、ctyは、制御部1の制御のもとにi = l、
2、・・・、moの順にrn’回にわたりベクトル発生
部7に送られる。ベクトル発生部7は各回毎に、部分パ
ターンT I 、を巡回的に用いた線パターンを有する
単位線幅のベクトルを表わす点列の座標XIV、Yiv
とコードC1v(v二1.2、・・・、MAX ((l
X、 d y )を発生し、イメージメモリ80対応
するアドレス位置にC1vを書込むように動作する。し
たがって、m’本のベクトルがイメージメモリ8に記憶
されることになる。ディスプレイ装置あるいはノ・−ト
コピー装置(いずれも図示せず)d、イメージメモリ8
に記憶されたデータを読み出し視覚化するものであり、
本発明の実施例においては本質的ではないので説明を省
略する。Next, the amount of phase shift of the pattern 5I(
i=1.2, . Further, the operation of equation (6) can also be performed using a cyclic n-stage shift register. The starting point calculation unit 6 is m
', x, y, dx, dy, and as shown in the detailed description of the present invention, start points Xi, Yi (i =
1.2, ..., m') is output. -Example (8)
Formula % Formula % (8 However, i21.2, ..., m", o0≦θ<45°
Or partial pattern T'1=IC'1jl(j=
x, 2, .
2, . . . , mo are sent to the vector generator 7 rn' times in this order. Each time, the vector generator 7 generates coordinates XIV, Yiv of a point sequence representing a vector of unit line width having a line pattern using the partial pattern T I cyclically.
and code C1v(v21.2,..., MAX ((l
X, d y ) and writes C1v to the corresponding address position in the image memory 80. Therefore, m' vectors are stored in the image memory 8. Display device or notebook copy device (none of which is shown) d, image memory 8
It reads and visualizes data stored in
Since this is not essential to the embodiment of the present invention, its explanation will be omitted.
以上述べたように、本発明の模様線の描画装置によれば
模様線の始点と成分と基本パターンが与えられて、成分
で定められる任意の傾きで、模様が斜めに変形したシ幅
が狭くなるということのな゛い模様線をベクトルと同様
に容易に描画することができる。As described above, according to the pattern line drawing device of the present invention, the starting point, component, and basic pattern of the pattern line are given, and the width of the pattern deformed diagonally is narrowed by the arbitrary inclination determined by the component. It is possible to easily draw pattern lines that are not completely drawn in the same way as vectors.
上述の本発明の幅のあるベクトルの発生方式および幅の
あるベクトルの発生装置の説明において、(6)式に示
すようにsecθ、cosecθ、5in2θ(θ=演
算によりm“ S、をめており、この演算は関数演算器
あるいはマイクロプロセッサ等により容易VC実行f
% ;b。ココf (1,s =MIN (I dx
l、1ay+)、d ]=MAX(l dx 1−dy
I )−01−テする。一方、0°≦θく360°に
おいて、θとθ1との関係は(9)式で表わされる。In the above description of the width vector generation method and width vector generation device of the present invention, as shown in equation (6), secθ, cosecθ, 5in2θ (θ = m” S, is calculated by calculation). , this operation can be easily executed by VC using a functional calculator or microprocessor, etc.
%; b. Here f (1, s = MIN (I dx
l, 1ay+), d]=MAX(l dx 1-dy
I)-01-te. On the other hand, at 0°≦θ and 360°, the relationship between θ and θ1 is expressed by equation (9).
θ=θ1 (0°≦θ<45°)
−900−01(45°≦θく 90°)二 90°+
01(90°≦θく135°)=180°−01(13
5°≦θ<180°)=180°+01(180°≦θ
<225°)=270°−01(225°≦θり270
°)=2700+01(270°≦θ<315°)=3
60°−01(315°≦θ<360°) ・・・(9
)ここで5i1==[−>5tn2θ1〕として(9)
式を用いて(61式を書きかえると(14式を得る。θ=θ1 (0°≦θ<45°) −900−01 (45°≦θ 90°)2 90°+
01(90°≦θ×135°)=180°−01(13
5°≦θ<180°)=180°+01(180°≦θ
<225°)=270°−01(225°≦θri270
°)=2700+01(270°≦θ<315°)=3
60°-01 (315°≦θ<360°) ... (9
) where 5i1==[->5tn2θ1] (9)
Using the formula (61) is rewritten to obtain (14).
m’−(mesecθ1〕 (0°≦θ< 360 ’
)Si” 5it(0°≦θく45°、90°≦θく1
80c。m'-(mesecθ1) (0°≦θ<360'
)Si” 5it (0°≦θ×45°, 90°≦θ×1
80c.
225°≦θく270°)
=S口(45°≦θり90°、180°≦θり225°
、270°≦θく360°) ・・・・・・・・・・−
・(1嶋(10)式に示すθの条件はdx、dyの正、
負および大小により容易に表現できる。したがって、−
のJ
値に対してOから1の間で適当な区間(例えばゾ32単
位)Kよシあらかじめ(m−5ec(arctanの値
で2次元のテーブルを作っておくととにより、moとS
iの値を高速にめることができ、装置の動作速度を速め
、また構成を簡単にできる。225° ≦ θ 270°) = S mouth (45° ≦ θ 90°, 180° ≦ θ 225°
, 270°≦θ×360°) ・・・・・・・・・・−
・(1shima) The conditions for θ shown in equation (10) are that dx and dy are positive,
It can be easily expressed by negative and magnitude. Therefore, −
For the J value of
The value of i can be set quickly, the operating speed of the device can be increased, and the configuration can be simplified.
また、上述の実施例の説明において補正始点座標Xi、
Yiを(8)式で与えたが、この方法に限定するもので
(dなく、他の一例としてd=[m’/2)とすれば、
X1=x+q @ (d −i + 1 )、頌=y−
I−re(d−i+1)
により模様線の始点において紅!唱方向の中心を(x、
y)に位置させることができる。In addition, in the description of the above embodiment, the correction starting point coordinates Xi,
Although Yi is given by formula (8), it is limited to this method (not d, but as another example, d = [m'/2), then X1 = x + q @ (d - i + 1), ode=y-
Red at the starting point of the pattern line by I-re(d-i+1)! Set the center of the chanting direction (x,
y).
第1図は模様線の一例を示した図であり、(a)は模様
線、(b)は基本パターンを示す。第2図(a)、(b
)は従来の模様線の実現方法を説明するだめの図である
。第3図(a)、(1))、(C)および第4図(a)
、(b)1は本発明の模様線の描画方式を説明するだめ
の図である。第5図(a)、(bl、(C)、(dl、
(e)は本発明の方式による模様線の例を示した図であ
る。第6図は本発明の模様線の描画方式を実現した装置
の一実施例を示したブロック図である。
図において、1は制御部、2は補正線幅演算部、3は基
本パターンメモリ、4はパターン変換部、5は修正パタ
ーンメモリ、6は始点演算部、7はベクトル発生部、8
はイメージメモリをそれぞれ示している。
オ 1 図
一+→+H升
(a)
(b)
第2図 ′
第3図
(b)
第4図
第5図
(b) (c)
(d)FIG. 1 is a diagram showing an example of a pattern line, in which (a) shows the pattern line and (b) shows the basic pattern. Figure 2 (a), (b)
) is a diagram for explaining the conventional method of realizing pattern lines. Figure 3 (a), (1)), (C) and Figure 4 (a)
, (b) 1 are diagrams for explaining the pattern line drawing method of the present invention. Figure 5 (a), (bl, (C), (dl,
(e) is a diagram showing an example of pattern lines according to the method of the present invention. FIG. 6 is a block diagram showing an embodiment of an apparatus implementing the pattern line drawing method of the present invention. In the figure, 1 is a control section, 2 is a correction line width calculation section, 3 is a basic pattern memory, 4 is a pattern conversion section, 5 is a correction pattern memory, 6 is a starting point calculation section, 7 is a vector generation section, 8
indicate image memory, respectively. E 1 Figure 1 +→+H square (a) (b) Figure 2 ' Figure 3 (b) Figure 4 Figure 5 (b) (c) (d)
Claims (1)
の基本パターンを巡回的に用いた模様を有するディジタ
ル的な模様線の描画方式において、x−y座標系におけ
る模様線の始点と、その成分と1.基本パターンP =
l C1Jl (i二1.2、・・・、m、j二1.2
、・・・、n、)とが与えられたときに、前記模様線と
X軸とのなす角度をθ(θ°≦θく360°)とすれば
、前記基本パターンの線幅mと前記角度θとからめた補
正線幅m゛、および基本パターンでの線幅方向の位置1
(i=1.2、・・・、m’)と前記角度θとからめた
模様の位相ずれ量8iとを用いて修正パターン””IC
i j l(i=1.2、・・・、mo、j=1.2、
・・・、n)を作成し、該修正パターンの行部分パター
ン’I”1=fcij 1(j=1.2、・・・、n)
を巡回的に用いた線パターンを有する単位線幅のベクト
ルの始点を前記角度θに応じてy@tたはX軸に平行に
単位画素分ずらしながら前記補正線幅m1本数分重ねて
描画することを特徴とする模様線の描画方式。 2 輝度もしくは色のコードで定められた2次元格子状
の基本パターンを巡回的に用いた模様を有するディジタ
ル的な模様線の描画装置において、基本パターンPを記
憶する基本パターンメモリと、X−y座標系における模
様線の始点Xyとその成分dx、dy と前記基本パタ
ーンP(Cijt(i=1.2、・・・、m、j二1.
2、・・・、n)とが与えられたときに、基本パターン
の線幅mと模様線の成分dx、dyを入力して補正線幅
□“を出力する補正線幅演算部と、前記基本パターンメ
モリよシバターンコードCi’j を入力し、前記補正
線幅m’と模様線の成分dx、dy とを用いて修正パ
ターンP’:lC’ii )(i=1.2、・・・、n
]’、1−1.2、・・・、n)に変換し出力するパタ
ーン変換部と、前記パターン変換部の出力する修正パタ
ーンP°を一時記憶する修正パターンメモリと、前記補
正線幅m′と模様線の始点X、y、成分dx、dyを入
力してm′組の始点X1、yiに:i、2、・・・、m
’) を出力する始点演算部と、前記始点X2、Yiと
模様線の成分dx、dyと前記修正パターンの行部分パ
ターンIll l 。 =C1ij(j−1,2、・・・、n)を入力して該行
部分パターンTI、を巡回的に用いた線パターンを有す
るベクトルを表わす点列の座標XiV、Yivと各点で
の輝度もしくは色のコードC1y(v=1.2、・・・
、MAX (dx、 dy ) )を出力するベクトル
発生部と、前記点列の座標Xiv、Y1vに対応するア
ドレスにコードCrvを書込み記憶するイメージメモリ
と、装置の動作を制御する制御部とから構成されること
を特徴とする模様線の描画装置。[Claims] 1. In a digital pattern line drawing method having a pattern that uses a two-dimensional grid-like basic pattern determined by a brightness or color code cyclically, the pattern in an x-y coordinate system. The starting point of the line, its components, and 1. Basic pattern P =
l C1Jl (i21.2,..., m, j21.2
, ..., n, ), and if the angle between the pattern line and the Corrected line width m゛ associated with angle θ and position 1 in the line width direction in the basic pattern
(i=1.2,...,m') and the phase shift amount 8i of the pattern intertwined with the angle θ,
i j l(i=1.2,..., mo, j=1.2,
..., n), and create a row partial pattern 'I"1=fcij 1 (j=1.2,..., n) of the modified pattern.
The starting point of a vector with a unit line width having a line pattern using cyclically is shifted by a unit pixel in parallel to y@t or the X axis according to the angle θ, and the correction line width m1 is overlapped. A pattern line drawing method characterized by: 2. In a digital pattern line drawing device having a pattern using a two-dimensional lattice-like basic pattern cyclically defined by a brightness or color code, a basic pattern memory that stores the basic pattern P, and an X-y The starting point Xy of the pattern line in the coordinate system, its components dx, dy, and the basic pattern P(Cijt(i=1.2, . . . , m, j21.
2, . Input the Shiba turn code Ci'j into the basic pattern memory and use the corrected line width m' and pattern line components dx, dy to create a modified pattern P':lC'ii) (i=1.2,...・,n
]', 1-1.2, . ', the starting point X, y of the pattern line, and the components dx, dy are input to the starting point X1, yi of m' group: i, 2, ..., m
'); the starting point X2, Yi, the pattern line components dx, dy, and the row partial pattern Ill of the modified pattern. = C1ij (j-1, 2,..., n) is input and the row partial pattern TI is used cyclically to obtain the coordinates XiV, Yiv of a point sequence representing a vector having a line pattern, and the coordinates XiV, Yiv at each point. Brightness or color code C1y (v=1.2,...
, MAX (dx, dy)); an image memory that writes and stores the code Crv at the address corresponding to the coordinates Xiv, Y1v of the point sequence; and a control unit that controls the operation of the device. A pattern line drawing device characterized by:
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP58167799A JPS6059386A (en) | 1983-09-12 | 1983-09-12 | Pattern line drawing system and apparatus |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP58167799A JPS6059386A (en) | 1983-09-12 | 1983-09-12 | Pattern line drawing system and apparatus |
Publications (1)
Publication Number | Publication Date |
---|---|
JPS6059386A true JPS6059386A (en) | 1985-04-05 |
Family
ID=15856318
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP58167799A Pending JPS6059386A (en) | 1983-09-12 | 1983-09-12 | Pattern line drawing system and apparatus |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPS6059386A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH0198074A (en) * | 1987-10-09 | 1989-04-17 | Sanyo Electric Co Ltd | Image plotting/erasing method |
JPH02165389A (en) * | 1988-12-20 | 1990-06-26 | Ricoh Co Ltd | Information processor |
JP2003263654A (en) * | 2003-02-07 | 2003-09-19 | Namco Ltd | Image generating apparatus and information storage medium |
JP2007310909A (en) * | 2007-08-20 | 2007-11-29 | Namco Bandai Games Inc | Image generator and information storage medium |
-
1983
- 1983-09-12 JP JP58167799A patent/JPS6059386A/en active Pending
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH0198074A (en) * | 1987-10-09 | 1989-04-17 | Sanyo Electric Co Ltd | Image plotting/erasing method |
JPH02165389A (en) * | 1988-12-20 | 1990-06-26 | Ricoh Co Ltd | Information processor |
JP2003263654A (en) * | 2003-02-07 | 2003-09-19 | Namco Ltd | Image generating apparatus and information storage medium |
JP2007310909A (en) * | 2007-08-20 | 2007-11-29 | Namco Bandai Games Inc | Image generator and information storage medium |
JP4560532B2 (en) * | 2007-08-20 | 2010-10-13 | 株式会社バンダイナムコゲームス | Image generating apparatus and information storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JPH10319898A (en) | Resolution converting method and display control device using it | |
GB2285377A (en) | Method for generating a subpixel mask for anti-aliasing in a computer graphics system and apparatus thereof | |
JP2919428B2 (en) | Image transformation device | |
JP2019120749A (en) | Display controller, image projection system, control method and program | |
JPH01124077A (en) | Pixel generation method and system | |
JPS6059386A (en) | Pattern line drawing system and apparatus | |
CN101114378A (en) | Apparatus and method to rotate a bitmap image | |
JP4728744B2 (en) | Image processing device | |
US20100231786A1 (en) | Image special effect apparatus and image special effect method | |
JPH06303515A (en) | Picture converter | |
JPS6232519B2 (en) | ||
JP2000224405A (en) | Image processing method | |
CN105872306B (en) | Apparatus and method for image scaling | |
CN110363715A (en) | A Photo Angle Correction Method Based on Digital Image Processing | |
JP6326914B2 (en) | Interpolation apparatus and interpolation method | |
JPS6272078A (en) | Circle filling drawing device | |
JPS59136784A (en) | System and apparatus for generating vector with width | |
CN101266692A (en) | Image processing device, image processing method | |
US8934736B2 (en) | Image processing apparatus, image processing system, and method for having computer process image | |
JPS628275A (en) | Vector drawing system | |
JPH11203498A (en) | Method and device for generating texture coordinate by using normal vector | |
JP2998689B2 (en) | How to map image data | |
JPH0445491A (en) | Digital special effect device | |
JPS5929293A (en) | System and apparatus for generation of broad vector | |
JP2699342B2 (en) | Image conversion method |