JP2903514B2 - High-speed drawing method - Google Patents

High-speed drawing method

Info

Publication number
JP2903514B2
JP2903514B2 JP62027956A JP2795687A JP2903514B2 JP 2903514 B2 JP2903514 B2 JP 2903514B2 JP 62027956 A JP62027956 A JP 62027956A JP 2795687 A JP2795687 A JP 2795687A JP 2903514 B2 JP2903514 B2 JP 2903514B2
Authority
JP
Japan
Prior art keywords
pattern
memory
data
display
straight line
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Lifetime
Application number
JP62027956A
Other languages
Japanese (ja)
Other versions
JPS63195696A (en
Inventor
清一郎 岩瀬
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.)
Sony Corp
Original Assignee
Sony Corp
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 Sony Corp filed Critical Sony Corp
Priority to JP62027956A priority Critical patent/JP2903514B2/en
Publication of JPS63195696A publication Critical patent/JPS63195696A/en
Application granted granted Critical
Publication of JP2903514B2 publication Critical patent/JP2903514B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Digital Computer Display Output (AREA)
  • Controls And Circuits For Display Device (AREA)

Description

【発明の詳細な説明】 〔産業上の利用分野〕 この発明は高速描画方法に関する。 〔発明の概要〕 本発明は、パターン用のメモリから単位描画パターン
のデータを所定の順序で、表示用のメモリにビットブロ
ック転送することにより、簡単な構成で高速描画を可能
としたものである。 〔従来の技術〕 コンピュータグラフィックスやCAD(Computer Aided
Design)などにおいて、図形などを表示する場合、一般
にビットマップディスプレイシステムが採用されている
が、このシステムにおいてはラスタスキャン型のCRTデ
ィスプレイと、表示図形に対応したビットパターンのデ
ータをそのCRTディスプレイに供給する表示用のメモリ
(メレームバッファ)とが使用される。 そして、このようなシステムにおいて、直線を高速に
描画する方法としてDDA(Digital Differential Analyz
er)方式が広く使用されている。 第6図に示すような従来のDDA方式の描画装置におい
て、第7図に示すように、縦・横それぞれ2L個の画素か
らなる画面に、例えば直線を描く場合、グラフィック・
プロセッサ(1)から、その直線の始点S及び終点Fの
座標(XS,YS)及び(Xf,Yf)がDDA回路(2)に与え
られると、このDDA回路(2)では、例えばブレセンハ
ム(Bresenham)のアルゴリズムによって、直線▲
▼を表わす式をそのまま演算して、第8図に示すよう
に、描画用のデータを書き込むためのアドレスが算出さ
れて、フレームバッファメモリ(3)に供給される。 〔発明が解決しようとする問題点〕 前述のように、DDA方式では、始点から終点まで順次
演算を行なうため、描画点と同数の演算サイクルが必要
となり、描画速度を大幅に向上させることが困難である
という問題があった。 なお、DDA方式で並列演算を行なうこともできるが、
この場合は回路構成が複雑になるという問題が生ずる。 かかる点に鑑み、本発明の目的は、簡単な構成で描画
速度を大幅に向上させることのできる高速描画方法を提
供するところにある。 〔問題点を解決するための手段〕 本発明は、描画のためのデータを表示用メモリに記憶
し、この表示用メモリからデータを読み出して、表示画
面上に高速描画する高速描画方法において、この表示用
メモリの各ブロックと同一サイズのブロックでなる複数
の描画パターンのデータがそれぞれ所定のアドレスに記
憶された第1のメモリーと、この複数の描画パターンの
配列順序を示す複数のパターンリストが記憶された第2
のメモリーとを有し、表示画面上に描画するデータに対
応するパターンリストをこの第2のメモリに記憶されて
いる複数のパターンリストから選択し、この選択された
パターンリストの描画パターンの配列順序に従ってこの
第1のメモリの複数の描画パターンの中から対応する描
画パターンのデータを読み出し、この読み出された描画
パターンのデータをこの表示用メモリに転送し、この表
示用メモリからデータを読み出して、このパターンリス
トの配列順序に対応する描画を前記表示画面上に対して
行うようにした高速描画方法である。 〔作用〕 かかる本発明によれば、演算サイクル数が低減され
て、描画速度が大幅に向上する。 〔実施例〕 以下、第1図〜第5図を参照しながら、本発明による
高速描画方法の一実施例について説明する。 本発明の一実施例の構成を第1表に示す。この第1図
において、第6図に対応する部分に同一の符号を付け
る。 第1図において、(11)は傾斜メモリであって、第2
図に示すような画面において、原点を始点とし、画面右
端の2L(例えば28)個の画素をそれぞれ終点とする2L
の直線の傾斜が記憶される。なお、画面上端の各画素を
終点とする急傾斜群の各直線は、原点を通る対角線に関
して、画面右端の各画素を終点とする緩傾斜群の各直線
と対称であるから、終点のX座標とY座標とを入れ替え
ることによって緩傾斜群の各直線で代表されることがで
きる。 パターンリストメモリ(12)には、第3図に示すよう
に、上述の2L本の直線にそれぞれ対応するパターンリス
トA,B,C,…が記憶される。 パターンメモリ(13)には、例えば第4図に示すよう
に、4×4個の画素から成る単位描画ブロックに4個の
描画点(丸印で示す)により形成された8種類の単位描
画パターンのデータが、ビットブロック毎にそれぞれ記
憶される。各単位描画パターンには〔000〕〜〔111〕の
パターンコードがそれぞれ与えられる。 なお、傾斜の緩・急の場合と同様に、パターンコード
〔111〕の単位描画パターンに関して、パターンコード
〔000〕〜〔110〕に対称な単位描画パターンも考えられ
るが、前述のように、急傾斜群の直線はX,Y座標の入替
によって緩傾斜群の直線で代表させることができるの
で、4×4画素の単位描画ブロックの場合、直線の描画
には、第4図に示した単位描画パターンで足りる。 次に、本実施例による直線描画動作について説明す
る。 前出第7図に示すように、画面上に直線の始点S及び
終点Fが任意に指定されると、第1図のグラフィックプ
ロセッサ(1)により、両者のX座標及びY座標の差、
ΔX=Xf−XS及びΔY=Yf−YSが求められ、これらが傾
斜メモリ(11)に供給されて、所要の傾斜値が得られ
る。 本実施例においては、第2図に示すように、画面の原
点にある画素を直線の始点とし、画面上の任意の1画素
を終点とした場合、本来、2L×2L本であるべき直線を、
画面右端の2L個の画素をそれぞれ終点とする2L本の緩傾
斜群の直線の2倍の数の直線で近似している。なお、短
かい直線では、その終点までで描画を止めればよい。こ
れにより、傾斜メモリ(11)の入力は2Lビット、出力は
傾斜数を2Mとして、Mビットとなる。 傾斜メモリ(11)から所望の直線の傾斜値がパターン
リストメモリ(12)に供給されると、2M個のパターンリ
ストの中からこの傾斜値に対応する特定のパターンリス
ト、例えばBが選択される。 そして、この選択されたパターンリストBの各パター
ンコードBA,BB,BC,…が順次読み出される。 1つのパターンリスト当りの最大ブロック数を2Pとす
ると、本実施例では、画面の1辺の画素数が2Lであり、
単位描画ブロックの1辺野画素数が4=22であるから、
P=L−2となり、パターンコードを順次読み出すため
に、Pビットのアドレスデータがカウンタから供給され
る。従って、パターンリストメモリ(12)のワード数は
2M+Pとなる。また、このパターンリストメモリ(12)の
出力は、単位描画パターンの数を2Nとして、Nビットで
ある。 このNビット(本実施例では3ビット)のパターンコ
ードがブロックアドレス信号として順次供給されて、パ
ターンメモリ(13)からは、第4図に示すような単位描
画パターンのデータが順次読み出されて、フレームバッ
ファメモリ(3)にビットブロック転送される。なお、
Jは単位描画ブロックの画素数である。 例えば、第5図に示すように、傾斜が13/16の直線A
の場合、画面では、パターンコード〔110〕,〔111〕,
〔011〕,〔010〕,…の単位描画パターンが順次接続さ
れる。また、傾斜が10/16の直線Bの場合、2つのパタ
ーンコード〔101〕及び〔010〕の単位描画パターンが交
互に接続される。更に、傾斜が5/16の直線Cの場合、パ
ターンコード〔010〕,〔100〕,〔000〕,〔001〕,…
の単位描画パターンが順次接続される。 上述のように、本実施例では、少ない種類の単位描画
パターンを所定の順序で接続することにより、所望の直
線を描くようにしたので、主要部をメモリだけで簡単に
構成することができる。また、DDA方式に比べて、演算
サイクル数を大幅に低減することができて、目的とする
直線の描画速度を大幅に向上することができる。 なお、上述の実施例では、現在容易に入手し得る半導
体メモリを念頭において、画面を28×28個の画素の大き
さとしたが、これを超える描画が必要な場合は、それぞ
れが28×28以内となるように、複数の描画範囲に分割す
ればよい。 また、第5図に見られるように、各単位描画ブロック
が整列していないため、表示用のメモリの複数のブロッ
クにまたがる場合は、本出願人による特願昭61−314921
号の明細書及び図面並びに同一出願人及び同一代理人に
よる昭和62年1月22日付特許願(7)の明細書及び図面
に記載されたような描画方法を併用すればよい。 更に、上述の実施例では直線描画について説明した
が、本発明は円や、多角型塗りつぶしパターンの描画に
ついても同様に適用することができる。 〔発明の効果〕 以上詳述のように、本発明によれば、表示用メモリの
各ブロックと同一サイズのブロックでなる描画パターン
データの複数が、表示画面上に描画するデータに対応し
たパターンリストに基づく描画パターン配列順に従って
読み出され、この読み出された描画パターンデータがこ
の読み出された順に表示用メモリにブロック転送される
ので、簡単な構成で、描画の速度を大幅に向上すること
ができる。
Description: TECHNICAL FIELD The present invention relates to a high-speed drawing method. [Summary of the Invention] The present invention enables high-speed drawing with a simple configuration by transferring bit block data in a predetermined order from a pattern memory to a display memory in a predetermined order. . [Prior art] Computer graphics and CAD (Computer Aided)
In general, a bitmap display system is used to display figures and the like in Design, etc. In this system, a raster scan type CRT display and bit pattern data corresponding to the displayed figure are displayed on the CRT display. The supplied display memory (meme buffer) is used. And in such a system, DDA (Digital Differential Analyz
er) method is widely used. In a conventional DDA type drawing apparatus as shown in FIG. 6, when a straight line is drawn on a screen composed of 2 L pixels in each of vertical and horizontal directions as shown in FIG.
When the coordinates (X S , Y S ) and (X f , Y f ) of the start point S and the end point F of the straight line are given from the processor (1) to the DDA circuit (2), the DDA circuit (2) For example, using the Bresenham algorithm, a straight line ▲
By directly calculating the expression representing ▼, an address for writing the drawing data is calculated as shown in FIG. 8 and supplied to the frame buffer memory (3). [Problems to be Solved by the Invention] As described above, in the DDA method, since the operation is sequentially performed from the start point to the end point, the same number of operation cycles as the number of drawing points is required, and it is difficult to greatly improve the drawing speed. There was a problem that is. In addition, although parallel operation can be performed by the DDA method,
In this case, there is a problem that the circuit configuration becomes complicated. In view of the above, an object of the present invention is to provide a high-speed drawing method capable of greatly improving a drawing speed with a simple configuration. [Means for Solving the Problems] The present invention relates to a high-speed drawing method for storing data for drawing in a display memory, reading data from the display memory, and performing high-speed drawing on a display screen. A first memory in which data of a plurality of drawing patterns each having the same size as each block of the display memory is stored at a predetermined address, and a plurality of pattern lists indicating an arrangement order of the plurality of drawing patterns are stored. The second
And a pattern list corresponding to data to be drawn on the display screen is selected from a plurality of pattern lists stored in the second memory, and the arrangement order of drawing patterns of the selected pattern list is selected. The data of the corresponding drawing pattern is read out from the plurality of drawing patterns of the first memory in accordance with the following, the data of the read drawing pattern is transferred to the display memory, and the data is read out from the display memory. This is a high-speed drawing method in which drawing corresponding to the arrangement order of the pattern list is performed on the display screen. [Operation] According to the present invention, the number of operation cycles is reduced, and the drawing speed is greatly improved. Embodiment An embodiment of a high-speed drawing method according to the present invention will be described below with reference to FIGS. Table 1 shows the structure of one embodiment of the present invention. In FIG. 1, parts corresponding to those in FIG. 6 are denoted by the same reference numerals. In FIG. 1, (11) is a gradient memory,
In the screen shown in the figure, the start point at the origin, 2 L (e.g. 28) pixels inclination 2 L of the straight lines respectively and the end point of the right edge of the screen is stored. Note that the straight line of the steeply inclined group having each pixel at the upper end of the screen as the end point is symmetric with respect to the diagonal line passing through the origin with each of the straight lines of the gentlely inclined group having each pixel at the right end of the screen as the end point. And the Y coordinate can be replaced by each straight line in the gentle slope group. As shown in FIG. 3, the pattern list memory (12) stores pattern lists A, B, C,... Respectively corresponding to the above 2 L straight lines. As shown in FIG. 4, for example, as shown in FIG. 4, eight types of unit drawing patterns formed by four drawing points (indicated by circles) in a unit drawing block composed of 4 × 4 pixels are stored in the pattern memory (13). Are stored for each bit block. Each unit drawing pattern is given a pattern code of [000] to [111]. As in the case of the gentle and steep slope, the unit drawing pattern of the pattern code [111] may be a unit drawing pattern symmetrical to the pattern codes [000] to [110]. Since the straight line of the inclined group can be represented by the straight line of the gentle inclined group by exchanging the X and Y coordinates, in the case of a unit drawing block of 4 × 4 pixels, the unit drawing shown in FIG. A pattern is enough. Next, a straight line drawing operation according to the present embodiment will be described. As shown in FIG. 7, when the start point S and the end point F of the straight line are arbitrarily specified on the screen, the graphic processor (1) shown in FIG.
ΔX = X f -X S and ΔY = Y f -Y S is found, it is fed to the inclined memory (11), a required slope value is obtained. In this embodiment, as shown in FIG. 2, when the pixel at the origin of the screen is set as the starting point of the straight line and any one pixel on the screen is set as the ending point, it should be 2 L × 2 L lines. A straight line,
It approximates the 2 L pixels in the right edge of the screen in a straight line of twice the number of straight lines of gentle slope group 2 L of the each be an end point. In the case of a short straight line, drawing may be stopped up to the end point. As a result, the input of the gradient memory (11) is 2L bits, and the output is M bits, where the gradient number is 2M . When a desired straight line inclination value is supplied from the inclination memory (11) to the pattern list memory (12), a specific pattern list corresponding to this inclination value, for example, B, is selected from the 2M pattern lists. You. Then, the respective pattern codes BA, BB, BC,... Of the selected pattern list B are sequentially read. Assuming that the maximum number of blocks per one pattern list is 2 P , in this embodiment, the number of pixels on one side of the screen is 2 L ,
Since 1 Hen'no number of pixels of the unit drawing block is 4 = 2 2,
P = L−2, and P-bit address data is supplied from the counter to sequentially read out the pattern codes. Therefore, the number of words in the pattern list memory (12) is
2 M + P. The output of this pattern list memory (12), the number of unit plotting pattern as 2 N, an N-bit. The N-bit (3 bits in this embodiment) pattern code is sequentially supplied as a block address signal, and unit drawing pattern data as shown in FIG. 4 is sequentially read from the pattern memory (13). , Are transferred to the frame buffer memory (3) in bit blocks. In addition,
J is the number of pixels in the unit drawing block. For example, as shown in FIG. 5, a straight line A having a slope of 13/16
, The pattern codes [110], [111],
The unit drawing patterns [011], [010],... Are sequentially connected. In the case of a straight line B having a slope of 10/16, unit drawing patterns of two pattern codes [101] and [010] are connected alternately. Further, in the case of a straight line C having a slope of 5/16, the pattern codes [010], [100], [000], [001],.
Are sequentially connected. As described above, in this embodiment, a desired straight line is drawn by connecting a small number of types of unit drawing patterns in a predetermined order, so that the main part can be simply configured with only the memory. Further, compared with the DDA method, the number of operation cycles can be greatly reduced, and the drawing speed of a target straight line can be greatly improved. In the above embodiment, in mind semiconductor memory capable of readily available now, but the size of 2 8 × 2 8 pixels a screen, when the drawing is required in excess of this, each 2 8 × 2 8 so that within, may be divided into a plurality of drawing range. In addition, as shown in FIG. 5, since the unit drawing blocks are not aligned, if the drawing spans a plurality of blocks of the display memory, the applicant of the present invention has a Japanese Patent Application No. 61-314921.
The drawing method described in the specification and drawings of the above-mentioned application and the specification and drawings of Patent Application (7) filed January 22, 1987 by the same applicant and the same agent may be used in combination. Further, in the above-described embodiment, the straight line drawing has been described. However, the present invention can be similarly applied to the drawing of a circle or a polygon fill pattern. [Effects of the Invention] As described above in detail, according to the present invention, a plurality of drawing pattern data consisting of blocks of the same size as each block of the display memory is stored in a pattern list The drawing pattern data is read out in accordance with the drawing pattern arrangement order, and the read drawing pattern data is transferred to the display memory in the read order in the form of a block, so that the drawing speed can be greatly improved with a simple configuration. Can be.

【図面の簡単な説明】 第1図は本発明による高速描画方法の一実施例の構成を
示すブロック図、第2図〜第5図は第1図の実施例の説
明のための概念図、第6図は従来の高速描画方法の構成
例を示すブロック図、第7図及び第8図は従来例の説明
のための概念図である。 (3)はフレームバッファメモリ、(11)は傾斜メモ
リ、(12)はパターンリストメモリ、(13)はパターン
メモリである。
BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 is a block diagram showing a configuration of an embodiment of a high-speed drawing method according to the present invention; FIGS. 2 to 5 are conceptual views for explaining the embodiment of FIG. FIG. 6 is a block diagram showing a configuration example of a conventional high-speed drawing method, and FIGS. 7 and 8 are conceptual diagrams for explaining the conventional example. (3) is a frame buffer memory, (11) is a tilt memory, (12) is a pattern list memory, and (13) is a pattern memory.

Claims (1)

(57)【特許請求の範囲】 1.描画のためのデータを表示用メモリに記憶し、この
表示用メモリからデータを読み出して、表示画面上に高
速描画する高速描画方法において、 前記表示用メモリの各ブロックと同一サイズのブロック
でなる複数の描画パターンのデータがそれぞれ所定のア
ドレスに記憶された第1のメモリーと、 前記複数の描画パターンの配列順序を示す複数のパター
ンリストが記憶された第2のメモリーとを有し、 表示画面上に描画するデータに対応するパターンリスト
を前記第2のメモリに記憶されている複数のパターンリ
ストから選択し、 この選択されたパターンリストの描画パターンの配列順
序に従って前記第1のメモリの複数の描画パターンの中
から対応する描画パターンのデータを読み出し、 この読み出された描画パターンのデータを前記表示用メ
モリに転送し、 前記表示用メモリからデータを読み出して、前記パター
ンリストの配列順序に対応する描画を前記表示画面上に
対して行うようにしたことを特徴とする高速描画方法。
(57) [Claims] In a high-speed drawing method for storing data for drawing in a display memory, reading data from the display memory, and performing high-speed drawing on a display screen, a plurality of blocks each having the same size as each block of the display memory are provided. And a second memory storing a plurality of pattern lists indicating the arrangement order of the plurality of drawing patterns. A pattern list corresponding to data to be drawn is selected from a plurality of pattern lists stored in the second memory, and a plurality of drawing patterns in the first memory are arranged in accordance with the arrangement order of drawing patterns of the selected pattern list. The data of the corresponding drawing pattern is read from the pattern, and the read data of the drawing pattern is stored in the table. Fast drawing method was transferred to use the memory, reads data from the display memory, characterized in that the drawing corresponding to the arrangement order of the pattern list was performed as to the display screen.
JP62027956A 1987-02-09 1987-02-09 High-speed drawing method Expired - Lifetime JP2903514B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62027956A JP2903514B2 (en) 1987-02-09 1987-02-09 High-speed drawing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62027956A JP2903514B2 (en) 1987-02-09 1987-02-09 High-speed drawing method

Publications (2)

Publication Number Publication Date
JPS63195696A JPS63195696A (en) 1988-08-12
JP2903514B2 true JP2903514B2 (en) 1999-06-07

Family

ID=12235340

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62027956A Expired - Lifetime JP2903514B2 (en) 1987-02-09 1987-02-09 High-speed drawing method

Country Status (1)

Country Link
JP (1) JP2903514B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05282199A (en) * 1992-03-30 1993-10-29 Sony Corp Image memory

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS57204084A (en) * 1981-06-10 1982-12-14 Tokyo Shibaura Electric Co Pattern generator
JPS61240289A (en) * 1985-03-25 1986-10-25 三菱電機株式会社 Pick processor for graphic display unit

Also Published As

Publication number Publication date
JPS63195696A (en) 1988-08-12

Similar Documents

Publication Publication Date Title
JPS60239796A (en) Circuit and apparatus for altering data in display memory
EP0827114B1 (en) Method and apparatus for texture data
US6215501B1 (en) Method and filling a polygon and recording medium
JPH0660173A (en) Method and apparatus for reducing picture
JP2903514B2 (en) High-speed drawing method
EP0062669A1 (en) Graphic and textual image generator for a raster scan display.
JPS63137378A (en) Graphics processing system
JP2899838B2 (en) Storage device
JP2913635B2 (en) Drawing method in bitmap display system
JP2630843B2 (en) Straight line drawing method and apparatus
JP4320604B2 (en) Image processing method and image processing apparatus
JP4596678B2 (en) Line drawing device
JPS6242280A (en) Graphic display device
JPS63292378A (en) Image producing device
JPS6242279A (en) Graphic display device
JPH0315193B2 (en)
JPH03296097A (en) Graphic display device
JPS59188761A (en) Write system of picture memory
JP2647073B2 (en) Graphic display device
JPH10261095A (en) Device and method for processing image
JPS63192089A (en) Lithography for bit map display system
JPS607477A (en) Image display
JPS61267096A (en) Smear drawing display unit for polygonal graphic
JPS6167889A (en) Frame memory
JPH02118780A (en) Rectangular area arithmetic unit for raster picture

Legal Events

Date Code Title Description
EXPY Cancellation because of completion of term