JPS593693A - Figure drawing control system of printer - Google Patents

Figure drawing control system of printer

Info

Publication number
JPS593693A
JPS593693A JP57113575A JP11357582A JPS593693A JP S593693 A JPS593693 A JP S593693A JP 57113575 A JP57113575 A JP 57113575A JP 11357582 A JP11357582 A JP 11357582A JP S593693 A JPS593693 A JP S593693A
Authority
JP
Japan
Prior art keywords
graphic
data
coordinate
memory
small
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.)
Granted
Application number
JP57113575A
Other languages
Japanese (ja)
Other versions
JPH049338B2 (en
Inventor
Yuichi Goto
裕一 後藤
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.)
Fujitsu Ltd
Original Assignee
Fujitsu Ltd
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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP57113575A priority Critical patent/JPS593693A/en
Publication of JPS593693A publication Critical patent/JPS593693A/en
Publication of JPH049338B2 publication Critical patent/JPH049338B2/ja
Granted legal-status Critical Current

Links

Abstract

PURPOSE:To print even a complicate figure at a high speed with a small-capacity figure memory by providing a region checking means which selects and processes only figure data whose regions are in a small writing region. CONSTITUTION:When figure data on one figure is read out of the figure buffer 1, the 1st region checking circuit 2 discriminates whether the figure is a linear figure or a circular figure from figure kind information. When it is the circular figure, maximum and minimum Y coordinates are found from center coordinate data and radius data; and only circular figure whose minimum Y coordinate value is less than the minimum Y coordinate value of the small region DP of writing or circular figure whose maximum Y coordinate value is greater than the minimum coordinate value of the small region DP is selected. When the figure is the linear figure, only a vector line (vectors a and c) which is present in the small region DP at least partially is selected.

Description

【発明の詳細な説明】 (1)  発明の技術分野 本発明は大画面の図形データをプリントする図形プリン
タに係シ、特に図形メモリヲ圧縮するとともに図形描画
時間を全体として短縮するよデにした図形描画制御方式
に関する。
[Detailed Description of the Invention] (1) Technical Field of the Invention The present invention relates to a graphic printer that prints graphic data on a large screen, and in particular to a graphic printer that compresses the graphic memory and shortens the overall graphic drawing time. Concerning drawing control method.

(2ン 従来技術と問題点 図形を記録する方法としては、例えばX−Yレコーダを
使用して図形を記録する方法がよく知られているつじか
しこのX−Yレコーダを使用するものは全体の装置が複
雑で、制御も容易でないために、通常の文字プリンタと
同じ方式によシ図形を描くことができる図形プリンタが
注目されるようになってきた。
(2) Prior art and problems As a method of recording figures, for example, a method of recording figures using an X-Y recorder is well known. Because the device is complex and difficult to control, graphic printers that can draw graphics in the same manner as regular character printers have been attracting attention.

図形プリンタは、文字プリンタと同様に、垂直方向に移
動する記録紙に対して記録部を水平方向に走査しながら
図形を描画させる方式であるが、この方式には、[有]
1頁分の全画面に1個の図形メモリに記憶させ、これを
順次読出してプリントする方式、■全画面全複数個の小
領域に分割し1小領域分の図形メモリ全2個用意して一
方の図形メモリを読出してプリントしている間に他方の
図形メモリに次の小領域の図形の書込みを行う操作を繰
返すことにより1頁分の全画面のプリントケ行う方式が
ある。
Similar to character printers, graphic printers draw figures while horizontally scanning the recording section on recording paper that moves vertically.
A method in which the entire screen of one page is stored in one graphic memory, which is sequentially read out and printed. ■The entire screen is divided into multiple small areas and two graphic memories for each small area are prepared. There is a method of printing the entire screen of one page by repeating the operation of writing the next small area of graphics into the other graphics memory while reading and printing one graphics memory.

[有]の方式は1頁分の全画面が図形メモリに書込まれ
た後に読出してプリントが行われるので、図形が複雑に
なっても図形処理速度がプリント速度に追いつかなくな
るという心配はなく、高速プリントが可能になる。し、
かじながら図形メモリ容量が大きいものとなるため大型
化し高価になるという難点がある。
With the [Yes] method, the entire screen for one page is written to the graphics memory and then read out and printed, so even if the graphics become complex, there is no worry that the graphics processing speed will not be able to catch up with the printing speed. Enables high-speed printing. death,
However, since the graphic memory capacity is large, it has the disadvantage of being large and expensive.

■の方式は図形メモリの容量は小さくてすむというメリ
ットはあるが、図形が複雑になると演算時間が長くなり
、一方の図形メモリによるプリントが終rしても他方の
図形メモリに対する書込みが終了していないことが生ず
る。このため他方の図形メモリの書込み終了を待ってプ
リントが開始されることになるので、結局プリント速度
が遅くなるという難点があるうこれは図形メモリヲ小さ
い領域にすればする程この欠点が顕著になる。それ故、
最近のようにプリント速度が高速化しているときこれは
大きな問題となろう 図形処理をして図形メモリに書込む操作はプリント操作
より一般に高速であり、また図形のないとき、また図形
の少ないときは、書込み時間はプリント時間よりも一般
に短かい。したがって複雑な図形を會む場合でも平均す
ると図形メモリへの書込み時間はプリント時間よりも短
かくなる。
Method (2) has the advantage that the capacity of the figure memory is small, but as the figure becomes more complex, the calculation time becomes longer, and even when printing in one figure memory is finished, writing to the other figure memory is finished. Things that aren't happening happen. For this reason, printing has to start after waiting for the writing in the other figure memory to finish, which has the disadvantage of slowing down the printing speed.This disadvantage becomes more pronounced as the area of the figure memory becomes smaller. . Therefore,
This will become a big problem when printing speeds are increasing as they are these days.The operation of processing graphics and writing it to the graphics memory is generally faster than the printing operation, and also when there are no graphics or only a small number of graphics. The write time is generally shorter than the print time. Therefore, even when a complex figure is created, the writing time to the figure memory is shorter than the printing time on average.

そこで前記[有]方式でも各図形メモリの容量を大きく
すれは暮込み時間をプリント時間よりも小さくすること
ができる。しかしながら図形メモリの容量を太きくする
ことは小容量の図形メモリでプリントf、r行うという
■方式の本来の目的に反することになりその特徴が失わ
れることになる。
Therefore, even with the above-mentioned method, if the capacity of each graphic memory is increased, the dead time can be made smaller than the printing time. However, increasing the capacity of the graphic memory would go against the original purpose of the method (2), which is to perform printing f and r with a small capacity graphic memory, and its features would be lost.

(3)  発明の目的 本発明の目的は前記[有]方式の問題点を改善した、小
容量の図形メモリ全使用して、複雑な図形の場合でも高
速でプリントすることのできるプリンタにおける図形描
画制御方式を提供するものである。
(3) Object of the Invention The object of the present invention is to improve the problems of the above-mentioned method, and to provide a graphic drawing in a printer that can print even complex shapes at high speed by using all of the small-capacity graphic memory. This provides a control method.

(4)  発明の構成 この目的全達成するために本発明のプリンタにおける図
形描画制御方式では、画面全複数の小領域に分割し、こ
れら小領域の図形データを図形メモリに書込み読出し金
行って図形?プリントするプリンタにおいて、図形デー
タの範囲が再込みを行う小領域内にあるものだけを選択
して処理を行わせる範囲チェック手段を設けたこと全特
徴とする。
(4) Structure of the Invention In order to achieve all of these objects, the graphic drawing control method in the printer of the present invention divides the entire screen into a plurality of small areas, writes the graphic data of these small areas into the graphic memory, reads it out, and then draws the graphic. ? The present invention is characterized in that a printer for printing is provided with a range check means for selecting and processing only the graphic data whose range is within a small area to be reloaded.

(5)発明の実施例 本発明の一実施例全第1図〜第3図にもとづき詳述する
(5) Embodiment of the Invention An embodiment of the invention will be described in detail with reference to FIGS. 1 to 3.

第1図は本発明の一実施例構成図、第2図及び第3図は
その動作説明図である。
FIG. 1 is a configuration diagram of an embodiment of the present invention, and FIGS. 2 and 3 are diagrams explaining its operation.

図中、1は図形バッファ、2は第1範囲チェック回路、
3は図形演算部、4は第2範囲チェック回路、5は図形
描画回路、6は図形メモリ、7はプリント制御部、8は
プリンタである。
In the figure, 1 is a graphic buffer, 2 is a first range check circuit,
Reference numeral 3 designates a graphic calculation unit, 4 a second range check circuit, 5 a graphic drawing circuit, 6 a graphic memory, 7 a print control unit, and 8 a printer.

以下第1図に示す各部の動作を順次説明する。The operation of each part shown in FIG. 1 will be explained in sequence below.

■ 図形バッファ1 図形バッファ1には工頁分の全画面の図形データが格納
される。この図形は多角形図形等の線図形と曲線図形に
分類されるが、曲線図形は円図形と円図形以外の曲線図
形に分けられること、円図形以外の曲線図形は例えば折
線図形による線図形により近似表示できること、各線図
形は座標データとベクトル情報により与えられ、円図形
は中心座標データと半径データ(円弧の場合はさらにス
タート点と角度)にょシ与えられることはいずれも既知
のことである。
■Graphic Buffer 1 Graphical buffer 1 stores graphical data for the entire screen corresponding to one page. This figure is classified into line figures such as polygon figures and curve figures, but curve figures can be divided into circular figures and curve figures other than circular figures. It is well known that approximate representations can be made, and that each line figure is given by coordinate data and vector information, and that circular figures are given by center coordinate data and radius data (in addition, in the case of circular arcs, the starting point and angle).

例えば第2図において、四辺形ABCDは、A、B、C
,Dの各点の座標データと、A点からB点に向かうベク
トルa、B点から6点に向かうベクトルb、C点からD
点に向かうベクトルc、D点からA点に向かうベクトル
diそれぞれ引くことを指示するベクトル情報により表
わされ、三角形EFGはE、F、Gの各点の座標データ
と、e、f、gのベクトル情報からなる。また円CI 
、 C2は中心点C1とC2の座標データと半径データ
r、 、 r2で与えられる。
For example, in Figure 2, the quadrilateral ABCD is A, B, C
, D, vector a from point A to point B, vector b from point B to point 6, and vector from point C to D.
It is represented by vector information instructing to draw a vector c toward a point, and a vector di toward a point D from a point A. The triangle EFG is expressed by the coordinate data of each point E, F, and G, and the coordinate data of e, f, and g. Consists of vector information. Also yen CI
, C2 are given by coordinate data of center points C1 and C2 and radius data r, , r2.

図形バッファ1に格納される図形データは図形が円図形
か線図形かを示す図形種別情報と、それらの図形に塗り
つぶし部分があるかを示す面塗り情報と、円図形の場合
は中心座標データと半径データ、線図形の場合は各点の
座標データと各点からのベクトル情報等によりなるもの
である。
The figure data stored in figure buffer 1 includes figure type information indicating whether the figure is a circle figure or a line figure, fill information indicating whether the figure has a filled part, and center coordinate data in the case of a circle figure. In the case of radius data and line figures, it consists of coordinate data of each point, vector information from each point, etc.

■ 第1範囲チェック回路 まず、第2図によシ1頁分の全画面全n個の小領域に分
割し、2個の図形メモ’、lTh使用して簀込みと読出
しを行う操作について説明する、第2図は1頁分の全画
面Pに描画される全図形(線図形としては四辺形ABC
Dと三角形EFGが、また円図形として円C1,C2が
示される〕を示すものである。
■ First range check circuit First, as shown in Figure 2, we will explain the operation of dividing the entire screen of one page into n small areas and storing and reading them using two graphic memos ' and lTh. Figure 2 shows all the figures drawn on the entire screen P for one page (as line figures, the quadrilateral ABC
D and triangle EFG, and circles C1 and C2 are shown as circular figures].

いま企画rMP=iY方向にn等分し、形成されたn 
aの小領域全Y方向に順番にDI 、 D2 、・・・
Dp、・・・Dnとする。図形メモリはこれらの小領域
(D+ −Dn )の1個分の図形データの書込みと読
出しを行うが各小領域とそれの書込みと読出しを行う図
形メモリとは相対応するので、第2図により同時に図形
メモリを表わすことにする、すなわち小領域DIの書込
み、読出しを行う図形メモ+) (i−Ms 、小領域
Dpの書込み、読出しを行う図形メモリtMp・・・と
する。
Now planning rMP=i Divide into n equal parts in the Y direction and form n
DI, D2,...
Let Dp, . . . Dn. The graphic memory writes and reads graphic data for one of these small areas (D+ -Dn), but since each small area and the graphic memory that writes and reads it correspond to each other, as shown in FIG. At the same time, we will represent a graphic memory, that is, a graphic memory tMp that writes and reads from the small area DI (i-Ms), a graphic memory tMp that writes and reads from the small area DI.

ただし実際の小領域の書込みと読出しは2個の図形メモ
リ(■lli 、 1112’ただし図示省略)、で行
われる。すなわち小領域、DI f記憶している図形メ
モリn】tから小領域DIの図形データ金読出している
ときには同時に図形メモリm2に次の小領域D2の図形
データの書込みが行われる。図形メモlJm1からの読
出しが終了すると次の図形メモリm2から小領域D2の
図形データの読出しが行われ、同時に図形メモリm1に
次の小領域D3の図形データの書込みが行われる、以下
この操作が繰返されて2個の図形メモリm12m2で小
領域Dnにいたる全小領域の書込みと読出しが行われる
ことになる、しかし説明の便宜上、着目している小領域
(例えばDp )の書込み、読出しを行っている図形メ
モリには、その小領域(Dp)と同じサフィックス(p
)e付して説明する(すなわち図形メモリMp )。
However, actual writing and reading of the small area is performed in two graphic memories (1112', 1112', not shown). That is, when the graphic data of the small area DI is being read from the graphic memory n]t storing the small area, DI f, the graphic data of the next small area D2 is simultaneously written into the graphic memory m2. When the reading from the graphic memory lJm1 is completed, the graphic data of the small area D2 is read from the next graphic memory m2, and at the same time, the graphic data of the next small area D3 is written to the graphic memory m1. Writing and reading of all the small areas up to the small area Dn will be repeatedly performed in the two graphic memories m12m2. However, for convenience of explanation, only the writing and reading of the small area of interest (for example, Dp) will be performed. The figure memory in the area has the same suffix (p) as the small area (Dp).
)e (that is, figure memory Mp).

ところで全画面Pを1個の図形メモリの中に格納する場
合(明細書冒頭に説明した■方式)は、全ての図形の座
標データを計算して書込み金行うととが必要であるが、
第2図のように小領域に分割し、対応する図形メモリに
書込むときは、全ての゛図形の座標データ?計算するこ
とは必要でない。
By the way, when storing the entire screen P in one figure memory (method 2 explained at the beginning of the specification), it is necessary to calculate the coordinate data of all the figures and write the data.
When dividing into small areas as shown in Figure 2 and writing them to the corresponding figure memory, all ``coordinate data of figures?'' It is not necessary to calculate.

すなわち、いま小領域Dpの図形データを図形メモリM
pに書込むときは、小領域Dpに存在する図形すなわち
四辺形ABCDと円CI以外の図形、円C2と三角形E
FGに関する座標データを計算することは、それらの座
標データは同等図形メモIJ Dp中に書込まれないの
で全く必要でない。さらに四辺形ABCDについてみれ
ば、小領域Dp中に存在しないベクトル線すとd上鏝座
標データの計算も、それらの座標データが図形メモリD
p中に書込まれないことからこれまた不必要である。
That is, the graphic data of the small area Dp is now stored in the graphic memory M.
When writing to p, the figures existing in the small area Dp, that is, figures other than the quadrilateral ABCD and the circle CI, the circle C2 and the triangle E
Calculating coordinate data for FG is not necessary at all since these coordinate data are not written in the equivalent figure memo IJDp. Furthermore, if we look at the quadrilateral ABCD, the calculation of the coordinate data on the vector line d that does not exist in the small area Dp is also possible because those coordinate data are stored in the figure memory D.
This is also unnecessary since it is not written into p.

このように書込みを行う小領域中に存在しない円図形と
線図形、およびこの小領域を含む領域中に存在する線図
形でもこの小領域中に存在しないベクトル線部分の座標
データを計算することは必要でない。
In this way, it is not possible to calculate the coordinate data of circular figures and line figures that do not exist in the small area to be written, and of vector line parts that do not exist in this small area even if the line figures exist in the area that includes this small area. Not necessary.

また円図形は図形の一部が書込みを行う74%領域中に
存在すれば円周に関する全座標データが計算される。小
領域中だけの座標データを計算しようとするならばかえ
ってそのためのソフトウェアが複雑になり演算に時間が
かかる。
Further, in the case of a circular figure, if a part of the figure exists within the 74% area where writing is performed, all coordinate data regarding the circumference is calculated. If you try to calculate coordinate data only in a small area, the software for that purpose will become more complicated and the calculation will take more time.

このように不要な図形及びベクトル線分の座標データの
計算全省略すれば、小領域Dpの図形データの書込みは
、四辺形ABCDに関してはベクトル線aとC上の座標
データと、円C1の円周上の座標データだけ全計算する
ことによって行われるので、その書込みに要する時間は
他の図形及びベクトル線分の座標データの計算奮も行っ
ていた従来の方式に比較して大幅に減少され、したがっ
て書込み速度が大幅に向上することになる。
In this way, if all calculations of unnecessary figures and coordinate data of vector line segments are omitted, the figure data of the small area Dp can be written using the coordinate data on the vector lines a and C and the circle of the circle C1 for the quadrilateral ABCD. Since this is done by fully calculating only the coordinate data on the circumference, the time required to write it is greatly reduced compared to the conventional method, which also requires calculating the coordinate data of other figures and vector line segments. Therefore, the writing speed will be significantly improved.

第1範囲チェック回路2は、このような座標データの計
算が不要な図形及び線図形のベクトル線分の範囲をチェ
ックするものである。
The first range check circuit 2 checks the range of vector line segments of figures and line figures that do not require calculation of such coordinate data.

図形バッファ1から1つの図形に関する図形データが読
出されると、第1範囲チェック回路2はまず図形種別情
報により図形が線図形か円図形かを判別する。(面塗り
情報の処理については後記■で説明する) 図形が円図形の場合には、中心座標データと半径データ
からY座標の最大値と最小値(Y座標はこの説明では第
2図に示す如く下向きを正方向とするので、下側程Y座
標値は犬となる)を求め、その最小Y座標値が書込みを
行う小領域k Dpとして小領域Dpの最大Y座標値よ
りも小さい円図形又は円図形の最大Y座標値が小領域D
pの最小Y座標値よりも大きい円図形(第2図では円C
1)のみを選択し、その他の円図形(円C2)全排除す
る、 図2形が線図形である場合には、各点の座標データとベ
クトル情報が順次読出されるので、これらのデータから
ベクトル線分の少なくとも一部分が小領域Dp中に存在
するベクトル線(ベクトルaとC)のみを選択し、その
他のベクトル線分は全て排除するっこれにより三角形E
FGは全て排除され、四辺形ABCDにおいてもベクト
ル線分すとdが排除される。
When graphic data regarding one graphic is read from the graphic buffer 1, the first range check circuit 2 first determines whether the graphic is a line graphic or a circular graphic based on graphic type information. (Processing of fill information will be explained later in section ■.) If the figure is a circle, the maximum and minimum values of the Y coordinate are calculated from the center coordinate data and radius data (the Y coordinate is shown in Figure 2 in this explanation). As the downward direction is the positive direction, the lower the Y coordinate value becomes a dog), and the minimum Y coordinate value is smaller than the maximum Y coordinate value of the small area Dp as the small area k Dp to be written. Or the maximum Y coordinate value of the circular shape is small area D
A circular figure larger than the minimum Y coordinate value of p (in Figure 2, circle C
Select only 1) and exclude all other circle shapes (circle C2). If the figure 2 shape is a line shape, the coordinate data and vector information of each point are read out sequentially, so from these data Select only the vector lines (vectors a and C) for which at least a portion of the vector line segment exists in the small region Dp, and exclude all other vector line segments.This results in triangle E.
FG is all eliminated, and even in quadrilateral ABCD, when the vector line is segmented, d is eliminated.

このようにして選択さitた円図形C1と四辺形ABC
Dのベクトル線分a、Cの図形データだけが図形演算部
3に送出される。
Circle figure C1 and quadrilateral ABC selected in this way
Only vector line segment a of D and graphic data of C are sent to the graphic calculation unit 3.

■ 図形演算部3 図形演算部3は円図形C1の円周上及びベクトル線分す
、c上のXY座標を計算する。X、Y座標は、小頭域D
pすなわち図形メモ1.l’を構成する全面素の分解能
と同じステップで計算される。
(2) Graphic calculation unit 3 The graphic calculation unit 3 calculates the XY coordinates on the circumference of the circular figure C1 and on the vector line segment c. X, Y coordinates are microcephalic area D
p, that is, figure memo 1. It is calculated in the same step as the resolution of the entire surface element composing l'.

線図形のベクトル線分は、例えば左端にあるベクトル線
分から順番にその座標データ全計算する。すなわち第2
図の場合は、ベクトル線aの次にベクトル線Cの座標デ
ータを計算する。
For vector line segments of a line figure, for example, all coordinate data of the vector line segment at the left end is calculated in order. That is, the second
In the case of the figure, the coordinate data of vector line C is calculated next to vector line a.

円図形の場合には、例えば最初に左半力次に右半分の座
標データを計算する、 また座標データの計算は線図形の場合も円図形の場合も
、Y座標全パラメータにしてそれに対するX座標を計算
する、このように計算全行うと、次に説明するようにそ
の後の処理を高速かつ容易に行うことができる。
In the case of a circular figure, for example, first calculate the coordinate data of the left half, then the right half, and in both the case of a line figure and a circular figure, the coordinate data is calculated using all Y coordinate parameters and the corresponding X By calculating the coordinates in this way, subsequent processing can be performed quickly and easily, as described below.

このようにして図形演算部3は、まずベクトル線aの座
標データがY座標をパラメータにして出力され、次にベ
クトル線すの座標データが同様に出力され、それから円
C1の左手分の座標データが同じく出力され、最後に円
C1の右半分の座標データがこれまた同じくY座標をパ
ラメータにして出力されて、第2範囲チェック回路4に
供給される。
In this way, the graphic calculation unit 3 first outputs the coordinate data of the vector line a using the Y coordinate as a parameter, then similarly outputs the coordinate data of the vector line a, and then outputs the coordinate data of the left hand of the circle C1. is similarly output, and finally the coordinate data of the right half of the circle C1 is also output using the Y coordinate as a parameter and is supplied to the second range check circuit 4.

■ 第2範囲チェック回路4 第2範囲チェック回路4は小領域Dp内にある図形の座
標データのチェックと而塗り情報処理を行う。線図形の
場合も円図形の場合も同様であるので、円図形を例にと
って第3図によりこれらの処理について説明する。
(2) Second Range Check Circuit 4 The second range check circuit 4 checks the coordinate data of figures within the small region Dp and processes the painting information. Since the process is the same for line figures and circle figures, these processes will be explained using FIG. 3, taking a circle figure as an example.

■−1小領域内にある図形の座標データのチェック円C
】の円周上の座標点(R,+ −R,t3. R,+’
〜RI3’)についてみると、小領域Dp内の座標点(
)14〜几101R4’〜R1o’)だけが図形メモリ
Mpに格納されるのであるから、それ以外の座標点(l
(、+〜R3゜R+’〜1113’、R11−Rl3 
+ R11’〜RI3’ )の座標データは不要である
。したがって、これら不要な座標データの処理を排除す
ることによシ、図形メモリMpへの座標データの格納が
容易にかつ速やかに行われることになる。
■-1 Check circle C for coordinate data of figures in small area
] Coordinate point on the circumference (R, + -R, t3. R, +'
~RI3'), the coordinate point (
)14~几101R4'~R1o') are stored in the figure memory Mp, so the other coordinate points (l
(, +~R3゜R+'~1113', R11-Rl3
+R11' to RI3') coordinate data is unnecessary. Therefore, by eliminating the processing of these unnecessary coordinate data, the coordinate data can be easily and quickly stored in the graphic memory Mp.

第2範囲チェック回路4には前記の如く座標点(几1〜
l(、+s 、凡11〜几131)の座4票データがY
座標をパラメータにして供給される。この第2範囲チェ
ック回路4Fi、各座標点のY座標と小領域Dpの最小
Y座標Ym i nおよび最大Y座標Ymaxとを比較
し、 Ymin<座標点のY座標<  Ymaxの条件を充足
する座標点(R4−R10,几4゛〜RIOりだけを選
択して次の図形描画回路5に供給する。
As mentioned above, the second range check circuit 4 has coordinate points (from 几1 to
The 4-vote data for l (, +s, 11 to 131) is Y
Supplied with coordinates as parameters. This second range check circuit 4Fi compares the Y coordinate of each coordinate point with the minimum Y coordinate Ymin and maximum Y coordinate Ymax of the small area Dp, and determines the coordinate that satisfies the condition Ymin<Y coordinate of the coordinate point<Ymax. Only the points (R4-R10, 几4゛~RIO) are selected and supplied to the next graphic drawing circuit 5.

図形描画回路5は各座標点のX、Y座標を対応する図形
メモリMpのX、Yアドレスに変換して書込みを行う。
The graphic drawing circuit 5 converts the X and Y coordinates of each coordinate point into the corresponding X and Y addresses of the graphic memory Mp and writes the data.

■−2面塗シ 情報処理 面塗りとは図形の内部全体を塗9つぶすことでろって、
その処理は円図形の場合も線図形の場合も同様であるの
で、円図形の場合金側にとって第3図で説明する。
■-Double-sided painting Information processing side-painting means filling in the entire interior of a figure.
The process is the same for both circular and line shapes, so in the case of a circle, the gold side will be explained with reference to FIG.

プリンタで面塗υを行う場合は、X方向に主走査金しな
からY方向に副走査1〜つつ面塗りを行うので、円C1
2面塗りするときには、R1−R1′間、R2〜R2’
間・・・R13〜、Fjts’間の各X座標点を黒くプ
リントすることにより面塗りが行われる。
When performing surface painting υ with a printer, the surface painting is performed by performing main scanning in the X direction and then sub-scanning 1 to 1 in the Y direction, so circle C1
When painting on two sides, between R1 and R1', and between R2 and R2'
Area painting is performed by printing each X coordinate point between R13 and Fjts' in black.

したがって面塗りをするときは、円C1の円周上の点(
R+〜RI3 、 R+ ’ −I−t+a’ )の他
に(R+〜R1’間)〜(RI3〜l(、+3’間)の
各座標点のデータも図形メモリに格納することが必要と
なる7しかしこの場合も(R+−R+“間)〜(R13
〜R13′間)及び(Ro〜R111間)〜(R13〜
R131間)の座標データは、小領域Dpの図形メモリ
Mpには格納されないので不必要になる。
Therefore, when performing area painting, a point on the circumference of circle C1 (
In addition to R+~RI3, R+'-I-t+a'), it is also necessary to store data at each coordinate point (between R+~R1')~(RI3~l(, +3') in the figure memory. 7 However, in this case too, between (R+-R+“) and (R13
~R13') and (Ro~R111)~(R13~
The coordinate data between R131) is not stored in the graphic memory Mp of the small area Dp, and therefore becomes unnecessary.

第2範囲チェック回路4は、面塗り情報が検出された図
形について、まず前記■−1と同じ方法により小領域D
p内にある座標点(R4−R10゜R4°〜R+o’)
全選択する、 次にその図形の左側の線分の各座標点(R4〜RIO)
には面塗り始点符号を付与し、右側の線分の各座標点(
R4′〜R1o’ )には面塗り終点符号を付与して次
の図形描画回路5に供給する。
The second range check circuit 4 first checks the small area D of the figure for which the fill information has been detected using the same method as in (1) above.
Coordinate points within p (R4-R10°R4°~R+o')
Select all, then each coordinate point (R4 to RIO) of the line segment on the left side of the shape
is given a filling start point sign, and each coordinate point of the right line segment (
R4' to R1o') are given a fill end point code and supplied to the next graphic drawing circuit 5.

このように小領域Dp内にある図形部分の面塗り情報だ
けが次の図形描画回路5に送出される、■ 図形描画回
路5と図形メモリ6 図形メモリ6は小領域Dp内の全画素の座標データを格
納できる容量をもった2個のメモリによって構成され、
1個に書込み?行っているとき他の1個から読出しが行
われてプリント制御部7に送られるが、この操作は従来
の文字プリンタと同様である、 図形描画回路5は、而塗りが行われない図形の場合は、
図形の各座標点のX、Y座標全図形メモリMpの対応す
るX、Y座標アドレスにそれぞれ変換して書込みを行う
。これにより第2図の小領域Dp内にある図形と同じ図
形パターンが図形メモリMp内に格納される。
In this way, only the fill information of the figure part in the small area Dp is sent to the next figure drawing circuit 5. 2.Figure drawing circuit 5 and figure memory 6 The figure memory 6 stores the coordinates of all pixels in the small area Dp. Consists of two memories with a capacity to store data,
Write on one? While this is being done, data is read from the other one and sent to the print control unit 7, but this operation is similar to that of a conventional character printer. teeth,
The X and Y coordinates of each coordinate point of the figure are converted into the corresponding X and Y coordinate addresses of the entire figure memory Mp and written. As a result, the same graphic pattern as the graphic in the small area Dp of FIG. 2 is stored in the graphic memory Mp.

面塗りがある図形の場合は、さらに而塗り始点から面塗
り終点の間のメモリビットにも書込みを行うようにする
、これにより第3図の小領域Dp内にある図形と同じく
面塗りのある図形パターンが図形メモリMp内に格納さ
れることにな■ プリント制御部7とプリンタ8 グリッド制御部7は図形メモリから読出した図形データ
によりプリンタ8を制御して、従来の文字プリンタと同
様の方法により記録紙をスキャンしながら図形のプリン
トに行う。
In the case of a figure with fill-in, the memory bit between the start point of fill-in and the end point of fill-in is also written.This allows the figure to have fill-in like the figure in the small area Dp in Figure 3. The graphic pattern is stored in the graphic memory Mp. Print Control Unit 7 and Printer 8 The grid control unit 7 controls the printer 8 using the graphic data read from the graphic memory, using the same method as a conventional character printer. The figure is printed while scanning the recording paper.

なお前記説明では単一図形について説明したが、本発明
はこれに限定されるものではなく、1つの座標点に複数
のベクトル情報が付与される図形、例えば第2図の四辺
形ABCDにおいて座標点Aからベクトルbの他に他の
座標点Cにいたるベクトル線ACがあるような図形の描
画にも適用できる。
Although the above description has been made regarding a single figure, the present invention is not limited to this, and may be applied to a figure in which a plurality of vector information is assigned to one coordinate point, such as a coordinate point in quadrilateral ABCD in FIG. It can also be applied to drawing a figure in which there is a vector line AC from A to another coordinate point C in addition to vector b.

また図形メモリ6に従来の文字プリンタと同様に文字デ
ータを書込むことにより文字と図形を含む場合にも適用
できる。
It can also be applied to cases where characters and graphics are included by writing character data into the graphics memory 6 in the same way as in conventional character printers.

(6)発明の効果 本発明によれば分割した小領域以外の領域にある図形デ
ータの処理が行われないので、図形データの処理時間が
大幅に少くなり、複雑な図形でも高速図形描画が可能と
なる。またシ゛リント速度全低下させることなく図形メ
モリの小形止金実現することができるっ
(6) Effects of the Invention According to the present invention, graphic data in areas other than the divided small areas is not processed, so the processing time for graphic data is significantly reduced, and even complex figures can be drawn at high speed. becomes. In addition, it is possible to realize a small holder for the figure memory without reducing the printing speed.

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

例 第1図は本発明の一実施、應成図、第2図は第1範囲チ
ェック回路の動作音中ノしにした本発明の動作説明図、
第3図は第2範囲チェック回路の動作を中心にしだ面塗
り処理の説明図である。 図中、■は図形バッファ、2は第1範囲チェック回路、
3は図形演鏝1部、4は第2範囲チェック回路、5は図
形描画回路、6は図形メモリ、7はプリント制御部、8
はプリンタである。 特許出願人  富士通株式会社 代理人弁理士  山 谷 晧 榮
Example FIG. 1 is a schematic diagram of one implementation of the present invention, and FIG. 2 is an explanatory diagram of the operation of the present invention with the operation sound of the first range check circuit suppressed.
FIG. 3 is an explanatory diagram of the edge painting process, focusing on the operation of the second range check circuit. In the figure, ■ is a graphic buffer, 2 is a first range check circuit,
3 is a graphic drawing trowel 1 part, 4 is a second range check circuit, 5 is a graphic drawing circuit, 6 is a graphic memory, 7 is a print control unit, 8
is a printer. Patent applicant Fujitsu Ltd. Representative Patent Attorney Akira Yamatani

Claims (1)

【特許請求の範囲】[Claims] α)画面を複数の小領域に分割し2、これら小領域の図
形データ全図形メモリに書込み読出し金行って図形をプ
リントするプリンタにおいて、図形データの範囲が書込
みを行う小領域内にあるものだけを選択して処理を行わ
せる範囲チェック手段全役けたことを特徴とするプリン
タにおける図形描画制御方式。
α) In a printer that divides the screen into multiple small areas, 2 writes and reads all the graphic data of these small areas to the graphic memory, and then prints the figures, only the range of graphic data is within the small area to be written. A graphic drawing control method for a printer, characterized in that a range checking means for selecting and performing processing is fully utilized.
JP57113575A 1982-06-30 1982-06-30 Figure drawing control system of printer Granted JPS593693A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP57113575A JPS593693A (en) 1982-06-30 1982-06-30 Figure drawing control system of printer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP57113575A JPS593693A (en) 1982-06-30 1982-06-30 Figure drawing control system of printer

Publications (2)

Publication Number Publication Date
JPS593693A true JPS593693A (en) 1984-01-10
JPH049338B2 JPH049338B2 (en) 1992-02-19

Family

ID=14615711

Family Applications (1)

Application Number Title Priority Date Filing Date
JP57113575A Granted JPS593693A (en) 1982-06-30 1982-06-30 Figure drawing control system of printer

Country Status (1)

Country Link
JP (1) JPS593693A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS60179262A (en) * 1984-02-28 1985-09-13 Fujitsu Ltd Vector development system
JPS6179674A (en) * 1984-09-28 1986-04-23 Usac Electronics Ind Co Ltd Image/character overlapping printing control system of printer
JPS6235856A (en) * 1985-08-09 1987-02-16 Canon Inc Output apparatus

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5866181U (en) * 1981-10-29 1983-05-06 東洋電装株式会社 Distributor of ignition system for internal combustion engine

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5866181U (en) * 1981-10-29 1983-05-06 東洋電装株式会社 Distributor of ignition system for internal combustion engine

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS60179262A (en) * 1984-02-28 1985-09-13 Fujitsu Ltd Vector development system
JPS6179674A (en) * 1984-09-28 1986-04-23 Usac Electronics Ind Co Ltd Image/character overlapping printing control system of printer
JPS6235856A (en) * 1985-08-09 1987-02-16 Canon Inc Output apparatus

Also Published As

Publication number Publication date
JPH049338B2 (en) 1992-02-19

Similar Documents

Publication Publication Date Title
US5111194A (en) Artificial halftone processing apparatus
JP3375638B2 (en) Anti-aliasing device and method for automatic high-speed alignment of horizontal and vertical edges to target grid
JPS61249175A (en) Graphic processor
JP4271808B2 (en) How to rotate a highly addressable image
US7663642B2 (en) Systems and methods for rendering a polygon in an image to be displayed
US5898439A (en) Method and apparatus for drawing characters which draws curved segments based on approximate points
JP3740193B2 (en) Image processing method, image processing apparatus, and computer control apparatus
JPH07288705A (en) Device and method for processing color image
JP2752439B2 (en) Image output method
JPS593693A (en) Figure drawing control system of printer
JP2002519793A (en) Method and system for rendering graphic elements
JP3085175B2 (en) Drawing equipment
JP3493745B2 (en) Drawing device
JPH07120427B2 (en) Graphic processing system
JP3285604B2 (en) Image quality improvement device in image forming apparatus
JP3089906B2 (en) Drawing equipment
JP3249096B2 (en) Figure filling device
JPH06175639A (en) Method and device for character generation
JPH0750512B2 (en) Image processing device
JPH06274637A (en) Image plotter
JP2885856B2 (en) Printing equipment
JPH0661960B2 (en) Dot interpolation control device
KR900004948B1 (en) Under/side line pattern generating device
JP2835056B2 (en) High quality character pattern generation method
JPH08328539A (en) Image display method and device