JPH0444309B2 - - Google Patents

Info

Publication number
JPH0444309B2
JPH0444309B2 JP5742286A JP5742286A JPH0444309B2 JP H0444309 B2 JPH0444309 B2 JP H0444309B2 JP 5742286 A JP5742286 A JP 5742286A JP 5742286 A JP5742286 A JP 5742286A JP H0444309 B2 JPH0444309 B2 JP H0444309B2
Authority
JP
Japan
Prior art keywords
pixel
movement
pixels
rectangular
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
JP5742286A
Other languages
Japanese (ja)
Other versions
JPS62212889A (en
Inventor
Koji Kusumoto
Hirokazu Imazeki
Ryoko Maruyama
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 JP5742286A priority Critical patent/JPS62212889A/en
Publication of JPS62212889A publication Critical patent/JPS62212889A/en
Publication of JPH0444309B2 publication Critical patent/JPH0444309B2/ja
Granted legal-status Critical Current

Links

Landscapes

  • Image Generation (AREA)

Description

【発明の詳細な説明】 〔概要〕 線図形を描画する制御方式であつて、複数画点
で構成される長方形画素の移動軌跡で線図形を描
画する場合、画素の移動方向が縦あるいは横方向
の時は長方形描画処理部で、斜め方向の時はかぎ
型描画処理部で描画するとによつて画素の複数描
画をなくし、高速描画を可能にする。
[Detailed Description of the Invention] [Summary] This is a control method for drawing a line figure, and when drawing a line figure with a moving locus of rectangular pixels consisting of multiple pixels, the moving direction of the pixels is vertical or horizontal. The rectangular drawing processing unit performs drawing in the case of , and the hook-shaped drawing processing unit performs drawing in the diagonal direction. This eliminates the need to draw multiple pixels and enables high-speed drawing.

〔産業上の利用分野〕[Industrial application field]

本発明は画像表示装置の線図形描画を画素の軌
跡によつて描画する方式に関するものである。
The present invention relates to a method for drawing line figures in an image display device using pixel trajectories.

画像表示装置は表示する画像をその画像を構成
する画点で表示するが、線図形を形成するのに、
画点のアドレスを逐一指定して描画する方法では
処理時間がかかるので、画点群で1つの小図形を
構成した画素を移動させ、その軌跡を表示画点と
して線図形画像を形成する方式が行われている。
Image display devices display images using pixel points that make up the image, but to form a line figure,
The method of drawing by specifying the addresses of pixel points one by one takes processing time, so there is a method of moving the pixels that make up one small figure in a group of pixel points and forming a line figure image using the locus as the display pixel. It is being done.

第4図はその方式を示し、長方形画素Aが
A′に移動した軌跡で描画する。
Figure 4 shows the method, where rectangular pixel A is
Draw with the trajectory moved to A′.

しかし、更に能率良く高速に描画する方法が要
望されている。
However, there is a need for a more efficient and faster drawing method.

〔従来の技術〕[Conventional technology]

第5図の従来例の構成ブロツク図に示すよう
に、ホスト計算機から描画コマンドが描画指示部
1に入力すると、描画指示部1は画素管理部2に
画素コマンドを分離して送出し、画素管理部2は
画素を構成(例えば第6図の長方形)する。
As shown in the configuration block diagram of the conventional example in FIG. 5, when a drawing command is input from the host computer to the drawing instruction section 1, the drawing instruction section 1 separates the pixel command and sends it to the pixel management section 2, and the pixel management section The portion 2 constitutes a pixel (for example, a rectangle in FIG. 6).

描画指示部1は移動コマンドを分離して、移動
処理部3はフレームメモリ4の画素が移動した新
しい移動位置に画素管理部2の指示する画素を書
き込み、表示部5で表示する。
The drawing instruction section 1 separates the movement command, and the movement processing section 3 writes the pixel specified by the pixel management section 2 to the new movement position to which the pixel in the frame memory 4 has been moved, and displays it on the display section 5.

第6図のように、鎖線内領域を画点とする斜線
図形を描画する場合、例えば画素を画点4×5個
の長方形とし、この長方形の画素が図示の移動方
向に移動すると、画素が1画点距離を移動する毎
に新しい位置の長方形画素の全画点が新しい画像
として描画される。
As shown in Figure 6, when drawing a diagonal figure whose pixels are in the area within the chain line, for example, if the pixels are a rectangle with 4 x 5 pixels, and the pixels of this rectangle move in the moving direction shown, the pixels will change. Every time the distance of one pixel is moved, all the pixel points of the rectangular pixels at the new position are drawn as a new image.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

この従来の方式では、1画点距離の移動ごとに
画素を塗り潰しながらずらせて描画する。
In this conventional method, each pixel is filled in and shifted each time the pixel moves by one pixel distance.

即ち、常に新しい画素を描画していくが、移動
前後の画素は大部分が重複しているために、画点
の重複部分は2重に処理され、無駄な時間が消費
されている。
That is, new pixels are always drawn, but since most of the pixels before and after the movement overlap, the overlapping parts of the pixels are processed twice, resulting in wasted time.

本発明はこのような点に鑑みて創作されたもの
であつて、重複部分の描画を省いて描画時間を短
縮する方式を提供することを目的としている。
The present invention was created in view of these points, and an object of the present invention is to provide a method that reduces drawing time by omitting drawing of overlapping portions.

〔問題点を解決するための手段〕[Means for solving problems]

本発明は上記問題点を解決するために、長方形
画素の軌跡で描画する画像表示装置において、 縦横複数画点で構成された長方形の画素位置が
移動する方向をホスト計算機からの描画コマンド
によつて画素が縦または横の一方向の移動が設定
された時は、画素の横幅で縦方向移動長、または
縦幅で横移動長の長方形輪郭内を閉領域塗り潰し
手段で塗り潰して、縦線または横線図形を描画す
る。
In order to solve the above-mentioned problems, the present invention provides an image display device that draws on the trajectory of rectangular pixels. When a pixel is set to move in one direction vertically or horizontally, the inside of the rectangle whose width is the length of the vertical movement or the width of the pixel is the length of the horizontal movement is filled with a closed area filling method to create a vertical or horizontal line. Draw shapes.

画素が斜め画転位置方向の移動が設定された時
は、移動する方向に当面する前記画素の1辺と該
辺に直交する他の1辺を新画点として描画する。
When a pixel is set to move in the direction of the diagonal image rotation position, one side of the pixel facing the direction of movement and the other side perpendicular to the side are drawn as new pixel points.

〔作用〕[Effect]

縦線または横線を描画する長方形描画処理部は
画素が縦または横に移動して描画する始点と終点
とで構成する長方形領域内をすでに開発された輪
郭塗り潰し手段によつて一挙に塗り潰す。
A rectangular drawing processing unit that draws a vertical line or horizontal line fills in the rectangular area formed by the starting point and ending point of the drawing by moving pixels vertically or horizontally all at once using an already developed outline filling means.

画素が斜め方向に移動する場合には、かぎ型描
画処理部が画素の移動方向に当面する画素の辺が
構成するかぎ型の画点図形が画素が1画点位置移
動する毎に描画する。
When a pixel moves in a diagonal direction, a hook-shaped drawing processing section draws a hook-shaped pixel figure constituted by the sides of the pixel facing the pixel movement direction every time the pixel moves by one pixel position.

この長方形描画処理部と、かぎ型描画処理部と
を画素の移動方向によつて使い分け、重複描画を
省いて迅速に曲線部分を含む線図形を描画するこ
とができる。
The rectangular drawing processing section and the hook-shaped drawing processing section are selectively used depending on the moving direction of the pixels, and it is possible to quickly draw a line figure including a curved portion without repeating drawing.

〔実施例〕〔Example〕

以下図面を参照して本発明の線図形描画制御方
式を詳細に説明する。
The line figure drawing control system of the present invention will be explained in detail below with reference to the drawings.

第1図は本発明の実施例の構成ブロツク図、第
2図は画素の移動説明図、第3図は描画点の移動
説明図である。なお、全図を通じて同一符号は同
一対象物を示す。
FIG. 1 is a block diagram of the configuration of an embodiment of the present invention, FIG. 2 is an explanatory diagram of pixel movement, and FIG. 3 is an explanatory diagram of drawing point movement. Note that the same reference numerals indicate the same objects throughout the figures.

第1図において、描画指示部1は、ホスト計算
機が送出する描画コマンドを画素コマンドと移動
コマンドに分離し、画素コマンドを画素管理部2
に送出する。
In FIG. 1, a drawing instruction unit 1 separates a drawing command sent by a host computer into a pixel command and a movement command, and transfers the pixel command to a pixel management unit 2.
Send to.

この画素コマンドによつて、画素管理部2は画
素を設定するが、上記と同じ第2図のような、横
(X軸)方向と縦(Y軸)方向に4個と5個の画
点で構成される長方形を描画する。
Based on this pixel command, the pixel management unit 2 sets pixels, but as shown in Figure 2, which is the same as above, 4 and 5 pixel points are set in the horizontal (X-axis) direction and vertical (Y-axis) direction. Draw a rectangle consisting of.

そして、移動表現を簡単にするために、例えば
この長方形画素の下辺左端画点を描画点Pとして
この画素移動を表す。
In order to simplify movement expression, this pixel movement is expressed by using, for example, the lower left end pixel of this rectangular pixel as a drawing point P.

一方、移動コマンドは移動方向設定部6に入力
して、画素の移動方向が設定される。
On the other hand, the movement command is input to the movement direction setting section 6, and the movement direction of the pixel is set.

即ち、第3図のように、描画点P(△)が次に
移動する点は移動前の点を原点にすると、1画点
距離にあるX、Y座標で示す画点位置になる。
That is, as shown in FIG. 3, the point to which the drawing point P(Δ) moves next becomes the pixel position indicated by the X and Y coordinates which is one pixel distance away from the point before movement as the origin.

移動方向設定部6が、例えば描画点のX軸方向
移動を設定した場合、その始点をP、同方向移動
の終点をP′とすると、長方形描画処理部7は画素
管理部2の画素データ、即ち、画素の領域を含め
たLL′M′Mの画素の軌跡である長方形の領域内を
塗り潰し、高さ5画点、長さLL′の横線図形デー
タがフレームメモリ4に格納され、表示部5で表
示される。
When the movement direction setting section 6 sets the drawing point to move in the X-axis direction, for example, and the starting point is P and the end point of the movement in the same direction is P', the rectangle drawing processing section 7 sets the pixel data of the pixel management section 2, That is, the rectangular area that is the pixel locus of LL'M'M, including the pixel area, is filled in, and the horizontal line figure data with a height of 5 pixels and length LL' is stored in the frame memory 4, and displayed on the display section. Displayed as 5.

また、描画点がY軸方向に移動する場合は、図
のような幅4画点、長さMNの縦線図形が描画さ
れる。
When the drawing point moves in the Y-axis direction, a vertical line figure with a width of 4 pixels and a length MN as shown in the figure is drawn.

移動方向設定部6が描画点の移動方向を斜め方
向に移動を設定する場合、かぎ型描画処理部8が
一画点移動ごとに新画点を描画する。
When the moving direction setting section 6 sets the moving direction of the drawing point to move in an oblique direction, the hook-shaped drawing processing section 8 draws a new drawing point every time one point moves.

例えば、描画P(△)が(1,1)に移動する
場合は、第2図bのように画素の右辺と上辺で構
成するかぎ型(逆L字型)の図形を設定し、この
2辺の画点で構成される点線○印の画点を生成
し、フレームメモリ4に書き込む。
For example, if the drawing P(△) moves to (1, 1), set a hook-shaped (inverted L-shaped) figure consisting of the right side and the upper side of the pixel as shown in Figure 2b, and Pixel points marked with a dotted line ◯ made up of the pixel points on the sides are generated and written into the frame memory 4.

このように画素の斜め方向の移動は、かぎ型図
形が移動画点位置ごとに生成し、第2図bの鎖線
内で示す斜め線図形が描画されて行く。
In this way, when a pixel moves in the diagonal direction, a hook-shaped figure is generated for each moving pixel position, and the diagonal line figure shown within the chain line in FIG. 2b is drawn.

〔発明の効果〕〔Effect of the invention〕

以上述べてきたように、本発明によれば、画素
描画の重複を避けることによつて高速に描画する
ことができ、実用的には極めて有用である。
As described above, according to the present invention, it is possible to perform high-speed drawing by avoiding duplication of pixel drawing, which is extremely useful in practice.

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

第1図は本発明の画素輪郭線による描画処理方
式の実施例の構成ブロツク図、第2図は画素の移
動説明図、第3図は描画点の移動説明図、第4図
は画素による描画説明図、第5図は従来例の構成
ブロツク図、第6図は従来の描画説明図である。 図において、6は移動方向設定部、7は長方形
描画処理部、8はかぎ型描画処理部である。
Fig. 1 is a block diagram of the configuration of an embodiment of the drawing processing method using pixel outlines of the present invention, Fig. 2 is an explanatory diagram of movement of pixels, Fig. 3 is an illustration of movement of drawing points, and Fig. 4 is drawing by pixels. FIG. 5 is a configuration block diagram of a conventional example, and FIG. 6 is an explanatory diagram of a conventional drawing. In the figure, 6 is a movement direction setting section, 7 is a rectangle drawing processing section, and 8 is a hook-shaped drawing processing section.

Claims (1)

【特許請求の範囲】 1 表示する画点位置が縦横等間隔に配置された
画面に、縦横複数個の画点で構成する長方形画素
の移動軌跡で線図形を描画する画像表示装置にお
いて、 該画素位置が移動する方向を設定する画素移動
方向設定部6と、 該画素移動方向設定部6が前記画素の縦または
横の一方向の移動を設定した時は、前記画素の横
幅で縦方向移動長、または前記画素の縦幅で横移
動長の長方形輪郭内を、閉領域塗り潰し手段によ
つて画点として描画する長方形描画処理部7と、 前記画素移動方向設定部6が前記画素の斜め画
点位置方向の移動を設定した時は、移動する方向
に当面する前記画素の1辺と該辺に直交する他の
1辺を1画点位置移動するごとに新画点として描
画するかぎ型描画処理部8とを備えてなることを
特徴とする線図形描画制御方式。
[Scope of Claims] 1. In an image display device that draws a line figure on a screen in which pixel positions to be displayed are arranged at equal intervals vertically and horizontally, using a movement locus of rectangular pixels composed of a plurality of vertical and horizontal pixels, the pixels A pixel movement direction setting unit 6 that sets the direction in which the position moves, and when the pixel movement direction setting unit 6 sets the pixel to move in one direction vertically or horizontally, the length of the vertical movement is determined by the horizontal width of the pixel. , or a rectangular drawing processing unit 7 that draws a rectangular outline having a vertical width and a horizontal movement length of the pixel as a pixel using a closed area filling means; When movement in the positional direction is set, a key-shaped drawing process is performed in which one side of the pixel that is currently facing in the moving direction and the other side orthogonal to that side are drawn as a new pixel each time the position moves by one pixel. A line figure drawing control system characterized by comprising: a section 8.
JP5742286A 1986-03-14 1986-03-14 Linear graphic drawing control system Granted JPS62212889A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5742286A JPS62212889A (en) 1986-03-14 1986-03-14 Linear graphic drawing control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5742286A JPS62212889A (en) 1986-03-14 1986-03-14 Linear graphic drawing control system

Publications (2)

Publication Number Publication Date
JPS62212889A JPS62212889A (en) 1987-09-18
JPH0444309B2 true JPH0444309B2 (en) 1992-07-21

Family

ID=13055213

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5742286A Granted JPS62212889A (en) 1986-03-14 1986-03-14 Linear graphic drawing control system

Country Status (1)

Country Link
JP (1) JPS62212889A (en)

Also Published As

Publication number Publication date
JPS62212889A (en) 1987-09-18

Similar Documents

Publication Publication Date Title
KR100281949B1 (en) Video drawing device
JPH0426477B2 (en)
JPH0444309B2 (en)
JPS62212890A (en) Drawing processing system based on picture element contour line
JP2690507B2 (en) Image data processing device
JP2597102B2 (en) Screen clipping method and device
JPH021634Y2 (en)
JPH0789269B2 (en) Hard copy control method
JP2529121B2 (en) Zoom Rome control system
JP2002258827A (en) Image display device
JP4123651B2 (en) Image drawing system and image drawing system control method
JPS63120331A (en) Control system for set-up of window
JPH0550031B2 (en)
JP2975054B2 (en) Partial moving device for still images
JPS63261418A (en) Window display control system
JPS62140171A (en) Editing system for document layout
JPS63250688A (en) Display adaptor
JPH0296220A (en) Overlap drawing controller
JP2000098996A (en) Image display device
JPS63141182A (en) Deciding system for graphic passing through specified area
JPS6362079A (en) Graphic display
JPS63240682A (en) Clipping processing system for graphic display
JPH04194985A (en) Method and device for displaying graphic cursor
JPH0236485A (en) Electronic computer
JPS62223787A (en) Display controller