JPH0426152B2 - - Google Patents
Info
- Publication number
- JPH0426152B2 JPH0426152B2 JP58136515A JP13651583A JPH0426152B2 JP H0426152 B2 JPH0426152 B2 JP H0426152B2 JP 58136515 A JP58136515 A JP 58136515A JP 13651583 A JP13651583 A JP 13651583A JP H0426152 B2 JPH0426152 B2 JP H0426152B2
- Authority
- JP
- Japan
- Prior art keywords
- data
- coordinate
- output
- output device
- graphic
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T3/00—Geometric image transformations in the plane of the image
- G06T3/20—Linear translation of whole images or parts thereof, e.g. panning
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Controls And Circuits For Display Device (AREA)
- Image Generation (AREA)
Description
【発明の詳細な説明】
(a) 発明の技術分野
本発明は、情報処理システムにおいて図形デー
タを印刷または表示出力する図形出力装置に関す
る。DETAILED DESCRIPTION OF THE INVENTION (a) Technical Field of the Invention The present invention relates to a graphic output device that prints or displays graphic data in an information processing system.
(b) 従来技術と問題点
情報処理システムにおいて、処理された図形を
出力する方法としては、例えば直線図形の場合、
2次元座標X−Yを設定し、2点A及びBのそれ
ぞれの座標(xa,ya)及び(xb,yb)と書込指令
とを出力装置に与えることにより、直線を出力で
きる。しかし出力装置には多種類の方式(レーザ
プリンタ、ドツトプリンタ他)が採用されている
ので、同一の図形データを、異なる出力装置から
出力した場合、第1図に示すように、形は相似で
はあるが、大きさが異なつたり、或いは出力装置
によつては、縦横の比が異なるので、複雑な図形
では、視覚的に相似性が損なわれる欠点があつ
た。(b) Prior Art and Problems In an information processing system, methods for outputting processed figures include, for example, in the case of straight line figures;
By setting the two-dimensional coordinates X-Y and giving the respective coordinates (x a , y a ) and (x b , y b ) of two points A and B and a write command to the output device, a straight line can be output. can. However, since many types of output devices are used (laser printers, dot printers, etc.), when the same graphic data is output from different output devices, the shapes are similar, as shown in Figure 1. However, because the sizes are different or the aspect ratio is different depending on the output device, there is a drawback that visual similarity is impaired in complicated figures.
(c) 発明の目的
本発明は上記の欠点を解決するためになされた
もので、異方式の出力装置においても、均一な図
形、即ち大きさが等しく縦横の比も等しい図形の
出力を容易とする図形出力装置の提供を目的とす
る。(c) Purpose of the Invention The present invention has been made in order to solve the above-mentioned drawbacks, and it is possible to easily output uniform figures, that is, figures with the same size and the same aspect ratio, even with different types of output devices. The purpose of this invention is to provide a graphic output device.
(d) 発明の構成
本発明は、処理装置で処理された第1の座標デ
ータと、該処理時に意識した水平及び垂直方向そ
れぞれの単位長出力に要する座標データ値を表す
第1の座標係数データとで構成される第1の図形
データを出力装置へ供給することにより図形を出
力するシステムにおいて、出力すべき出力装置の
種別を指定する手段と、該出力装置の種別ごとの
水平及び垂直軸方向それぞれの単位長出力に要す
る座標データ値を表す第2の座標係数データを記
憶しておく手段と、該第2の座標係数データと前
記第1の座標係数データとの比を前記第1の座標
データに乗ずることにより第2の座標データを算
出する手段とを備え、前記処理装置は、前記処理
された第1の図形データにより前記出力装置に図
形を出力する際、前記第1の図形データ中の第1
の座標係数データと、指定された出力装置の種別
に対応する座標係数とに基づいて算出された第2
の座標データを前記指定された出力装置に供給す
ることによつて図形を出力せしめることを特徴と
する図形出力装置である。(d) Structure of the Invention The present invention provides first coordinate data processed by a processing device and first coordinate coefficient data representing the coordinate data values required for outputting a unit length in each of the horizontal and vertical directions during the processing. In a system that outputs a figure by supplying first figure data to an output device, the system includes means for specifying the type of output device to be outputted, and horizontal and vertical axis directions for each type of output device. means for storing second coordinate coefficient data representing a coordinate data value required for each unit length output; and a means for storing second coordinate coefficient data representing a coordinate data value required for each unit length output; and means for calculating second coordinate data by multiplying the data, and when the processing device outputs a graphic to the output device using the processed first graphic data, the processing device calculates second coordinate data by multiplying the first graphic data. the first of
The second coordinate coefficient data calculated based on the coordinate coefficient data of and the coordinate coefficient corresponding to the specified type of output device.
The figure output device is characterized in that it outputs a figure by supplying coordinate data of the figure to the designated output device.
出力装置例えばプリンタには、レーザプリンタ
やドツトプリンタなど、多数の方式が存在する。
処理装置から座標データをプリンタに与えて図形
出力する場合、同一座標データであるにも関わら
ずプリンタによつて出力図形の大きさが異なると
いうことが生ずる。例えば、プリンタの縦横比は
機種によつて異なつたり、座標の単位長を出力す
るに要する座標データ値(単位長さ当たりのドツ
ト数)が異なる場合が多い。 There are many types of output devices, such as printers, such as laser printers and dot printers.
When coordinate data is supplied from a processing device to a printer to output a figure, the size of the output figure may differ depending on the printer, even though the coordinate data is the same. For example, the aspect ratio of printers varies depending on the model, and the coordinate data value (number of dots per unit length) required to output a unit length of coordinates often differs.
本発明では、このような出力座標を決定するパ
ラメタとして座標係数(座標の単位長を出力する
に要する座標データ値)を導入している。そし
て、各プリンタの種類に対応して座標係数を設定
しておく、本発明は、この座標係数を用いて、処
理装置から出力される第1の座標データX,Y及
びその処理時の座標係数から、出力装置に与える
第2の座標データX′,Y′を算出する手段を備え
たものである。 In the present invention, coordinate coefficients (coordinate data values required to output a unit length of coordinates) are introduced as parameters for determining such output coordinates. Then, coordinate coefficients are set in accordance with the type of each printer.The present invention uses these coordinate coefficients to calculate the first coordinate data X, Y output from the processing device and the coordinate coefficients at the time of processing. The apparatus is provided with means for calculating second coordinate data X', Y' to be given to the output device from the above.
例えば、処理装置において図形(座標)データ
が作成された時点に意図した座標係数をGX,Yと
し、出力装置の座標係数をOX,OYとし、また座
標データ作成時点に意図したX軸方向の座標係数
GX=24、Y軸方向の座標係数GY=30とし、図形
出力する出力装置のX軸方向の座標係数OX=16、
Y軸方向の座標係数OY=28であるとする。 For example, the coordinate coefficients intended at the time the figure ( coordinate ) data is created in the processing device are G Coordinate coefficient of direction
G X = 24, Y axis direction coordinate coefficient G Y = 30, X axis direction coordinate coefficient O
Assume that the coordinate coefficient O Y in the Y-axis direction is 28.
図形出力する出力装置の座標係数と座標データ
作成時点に意図した座標係数の比をRX,RYとす
れば、
RX=OX/GX=16/24
RY=OY/GY=28/30
となる。従つて、処理装置で処理された座標デー
タを(Xm,Ym)(m=1,2,3、…)とする
と、出力装置へ供給する出力座標データ(Xm′,
Ym′)(m=1,2,3、…)は、
Xm′=(Xm・RX
Ym′=Ym・RY
この出力すべき出力装置の座標係数と処理時に
意識した座標係数の比(RXRY)を、以下レシオ
係数と呼ぶことにする。 If the ratio of the coordinate coefficients of the output device that outputs the figure and the coordinate coefficients intended at the time of creating the coordinate data is R =28/30. Therefore, if the coordinate data processed by the processing device is (Xm, Ym) (m=1, 2, 3, ...), then the output coordinate data (Xm',
Ym′) (m=1,2,3,…) is Xm′=( Xm・R R X R Y ) will hereinafter be referred to as the ratio coefficient.
処理装置で処理された座標データXm,Ymは、
座標係数GXGYを意図して作成されたものであり、
座標係数が(GXGY)の出力装置によつて例えば
X軸方向に100単位(例えば100×0.1インチ)の
長さを出力するためのX座標データXmは100GX
=2400である。この座標データを用いて座標係数
OX=16のプリンタで印刷出力しようとする場合、
そのまま与えれば、2400/16=150単位という長
さになり、意図した100単位長にはならない。本
発明によれば、プリンタに供給する出力座標デー
タは、
2400・(16/24)=1600
となり、このプリンタによつて、出力される座標
長は(1600/16)=100単位となり、処理時に期待
したとおりの長さとなる。 The coordinate data Xm, Ym processed by the processing device is
It was created with the intention of coordinate coefficients G X G Y ,
For example, the X coordinate data Xm for outputting a length of 100 units (for example, 100 x 0.1 inch) in the X-axis direction by an output device with a coordinate coefficient of (G X G Y ) is 100G X
=2400. Using this coordinate data, coordinate coefficient
When trying to print out using a printer with O X = 16,
If given as is, the length will be 2400/16 = 150 units, which is not the intended length of 100 units. According to the present invention, the output coordinate data supplied to the printer is 2400・(16/24)=1600, and the coordinate length output by this printer is (1600/16)=100 units. The length is as expected.
同様にY軸方向についても、例えば50単位の長
さを出力するためのY座標データYmは50GY=
1500である。このY軸座標データを座標係数OY
=28のプリンタにそのまま与えれば、1500/28=
53.6単位の長さになり、意図した50単位の長さに
はならず、前記のX軸座標データと組み合わせれ
ば、意図した縦横比にならない。本発明によれ
ば、プリンタに供給する出力Y座標データは、
1500・(28/30)=1400
となり、このプリンタによつて出力される座標長
は(1400/28)=50単位となり、処理時に意図し
たとおりの長さである。 Similarly, regarding the Y-axis direction, for example, the Y coordinate data Ym to output a length of 50 units is 50G Y =
It is 1500. This Y-axis coordinate data is the coordinate coefficient O Y
= 1500/28 = if you feed it as is to 28 printers
The length becomes 53.6 units, which is not the intended length of 50 units, and when combined with the X-axis coordinate data above, the intended aspect ratio is not achieved. According to the present invention, the output Y coordinate data to be supplied to the printer is 1500・(28/30)=1400, and the coordinate length output by this printer is (1400/28)=50 units. It's the intended length.
このようにして本発明よれば、異なるプリンタ
からも、同一サイズ、同一縦横比の均一な図形出
力を行うことが可能となる。 In this manner, according to the present invention, it is possible to output uniform figures of the same size and aspect ratio even from different printers.
(e) 発明の実施例
以下、本発明を図面によつて説明する。第2図
は本発明の一実施例を説明するブロツク図であ
る。第2図における制御部1には、2種類のプリ
ンタP及びQが結ばれている。オペレータは予
め、使用するプリンタ(例えばP)を指定する。
従つて、オペレータにより入力部2から入力され
たプリンタ種別データpは、主メモリ3内の制御
テーブルTに設定される。処理部4が処理プログ
ラム5を実行することにより、フアイル装置6の
原始データDを処理する。そして得られた処理デ
ータD′はメモリ7に格納される。処理データ
D′は非図形データD1,D2と、図形データGとで
構成され、図形データGは第3図に示す構成を有
する。第3図aに示す如く図形データGは、制御
情報GC、図形データ作成時の座標係数GX,GY及
びベクトルデータVDで構成される。制御情報
GCは、ベクトルを指定する情報であり、またベ
クトルデータVDは第3図bに示す如く、座標デ
ータx1,y1,x2,y2…で構成される。(e) Examples of the invention The present invention will be explained below with reference to the drawings. FIG. 2 is a block diagram illustrating one embodiment of the present invention. Two types of printers P and Q are connected to the control unit 1 in FIG. The operator specifies in advance the printer (for example, P) to be used.
Therefore, the printer type data p input by the operator from the input unit 2 is set in the control table T in the main memory 3. The processing unit 4 processes the original data D of the file device 6 by executing the processing program 5. The obtained processed data D' is then stored in the memory 7. processing data
D' is composed of non-graphic data D 1 and D 2 and graphic data G, and the graphic data G has the configuration shown in FIG. As shown in FIG. 3a, the graphic data G is composed of control information GC, coordinate coefficients G X and G Y at the time of graphic data creation, and vector data VD. control information
GC is information specifying a vector, and vector data VD is composed of coordinate data x 1 , y 1 , x 2 , y 2 . . . as shown in FIG. 3b.
第2図において、処理部8は、メモリ3内のラ
イタプログラム(WRITER)9を実行すること
により、メモリ7内にある処理データD′をプリ
ントアウトさせる処理を行う。 In FIG. 2, the processing unit 8 prints out the processed data D' in the memory 7 by executing a writer program (WRITER) 9 in the memory 3.
第4図は、この処理の内容を示すフローチヤー
トである。 FIG. 4 is a flowchart showing the contents of this process.
最初のステツプで、メモリ7から処理データ
D′を順次読み出す。 In the first step, processing data is stored from memory 7.
Read D′ sequentially.
次に、ステツプにおいて、読み出したデータ
が図形データGであるかどうかを判断する。非図
形データD1,D2であれば、そのままプリンタP
へ送出する。一方図形データGの場合には、ステ
ツプに進む。 Next, in step, it is determined whether the read data is graphic data G or not. If it is non-graphic data D 1 , D 2 , it can be sent directly to the printer P.
Send to. On the other hand, in the case of graphic data G, the process advances to step.
ステツプでは、第2図に示す指定されたプリ
ンタPの座標係数が処理時の座標に等しいかどう
かを判断する。等しければ、ステツプへ進み、
等しくなければステツプへ進む。 In this step, it is determined whether the coordinate coefficients of the designated printer P shown in FIG. 2 are equal to the coordinates at the time of processing. If they are equal, proceed to step
If not equal, proceed to step.
ステツプでは、ベクトルデータの印刷を指令
する。処理データD′が終了となれば処理を終了
し、未終了ならばステツプへ戻る。 In the step, printing of vector data is commanded. If the processed data D' has been completed, the processing is terminated, and if not completed, the process returns to step.
ステツプでは、ベクトルデータVDから一つ
を取り出し、最初にm=1とおく。 In the step, one is taken out from the vector data VD and first set m=1.
ステツプでは、各ベクトルデータごとに、次
の処理を行う。 In this step, the following processing is performed for each vector data.
Xm′=Xm・RX
Ym′=Ym・RY
ここでXm、Ymは処理された座標データであ
り、RX,RYは指定されたプリンタPのレシオ係
数であつて、上式の演算処理により、プリンタP
へ供給すべき座標データXm′,Ym′が得られる。
次いで、m=m+1を行い、ここでベクトルデー
タが終了かを判断する。終了ならばステツプへ
進み、未了ならばステツプへ戻る。 Xm′=Xm・R X Ym′=Ym・R Y where Xm and Ym are the processed coordinate data, R Due to processing, printer P
The coordinate data Xm′ and Ym′ to be supplied to the
Next, m=m+1 is performed, and it is determined whether the vector data is finished. If completed, proceed to step; if not completed, return to step.
このようにして、ステツプによつて、すべて
のベクトルデータについての座標データXm′,
Ym′が第2図に示すプリントバツフア10に蓄え
られた後プリントアウトされる。 In this way, the coordinate data Xm',
Ym' is stored in the print buffer 10 shown in FIG. 2 and then printed out.
(f) 発明の効果
以上説明のように本発明は、異なる方式の異な
る特性を有する出力装置でも、常に一定の図形を
出力しうるという効果がある。(f) Effects of the Invention As explained above, the present invention has the effect that even output devices of different systems and having different characteristics can always output a constant figure.
第1図は従来方式の出力例、第2図は本発明の
一実施例を説明するブロツク図、第3図は本発明
の一実施例を説明するデータ構成図、第4図は本
発明の一実施例を説明するフローチヤートであ
る。図中で用いた符号は次の通りである。
1は制御部、2は入力部、3は主メモリ、4,
8は処理部、5は処理プログラム、6はフアイル
装置、7はメモリ、9はライタプログラム、10
はプリントバツフア、A,B,Cは出力された三
角図形の頂点、Dは原始データ、D′は処理デー
タ、D1,D2は非図形データ、Gは図形データ、
GCは制御情報、GX,GYは図形データ作成時の座
標係数、P,Qはプリンタ、RX,RYはレシオ係
数、Tは制御テーブル、VDはベクトルデータ、
Xm,Ymは処理された座標データ、Xm′,
Ym′は出力装置へ送出される座標データ、pはプ
リンタ種別データ、x1,y1,x2,y2は座標データ
を示す。
Fig. 1 is an example of the output of the conventional method, Fig. 2 is a block diagram illustrating an embodiment of the present invention, Fig. 3 is a data configuration diagram illustrating an embodiment of the present invention, and Fig. 4 is a block diagram illustrating an embodiment of the present invention. 1 is a flowchart illustrating one embodiment. The symbols used in the figure are as follows. 1 is a control unit, 2 is an input unit, 3 is a main memory, 4,
8 is a processing unit, 5 is a processing program, 6 is a file device, 7 is a memory, 9 is a writer program, 10
is the print buffer, A, B, C are the vertices of the output triangular figure, D is the original data, D' is the processed data, D1 , D2 are the non-graphic data, G is the graphic data,
GC is control information , G
Xm, Ym are processed coordinate data, Xm′,
Ym' is coordinate data sent to the output device, p is printer type data, and x 1 , y 1 , x 2 , y 2 are coordinate data.
Claims (1)
該処理時に意識した水平及び垂直軸方向それぞれ
の単位長出力に要する座標データ値を表す第1の
座標係数データとで構成される第1の図形データ
を出力装置へ供給することにより図形を出力する
システムにおいて、 出力すべき出力装置の種別を指定する手段と、
該出力装置の種別ごとの水平及び垂直軸方向それ
ぞれの単位長出力に要する座標データ値を表す第
2の座標係数データを記憶しておく手段と、 該第2の座標係数データと前記第1の座標係数
データとの比を前記第1の座標データに乗ずるこ
とにより第2の座標データを算出する手段とを備
え、 前記処理装置は、前記処理された第1の図形デ
ータにより前記出力装置に図形を出力する際、該
第1の図形データ中の第1の座標係数データと、
指定された前記出力装置の種別に対応する前記第
2の座標係数データとに基づき算出された第2の
座標データを前記指定された出力装置に供給する
ことによつて図形を出力せしめることを特徴とす
る図形出力装置。[Claims] 1. First coordinate data processed by a processing device;
A figure is output by supplying first figure data constituted by first coordinate coefficient data representing coordinate data values required for unit length output in each of the horizontal and vertical axes directions considered during the processing to an output device. In the system, means for specifying the type of output device to be output;
means for storing second coordinate coefficient data representing coordinate data values required for unit length output in each of the horizontal and vertical axis directions for each type of output device; and means for calculating second coordinate data by multiplying the first coordinate data by a ratio with coordinate coefficient data, the processing device outputting a graphic to the output device using the processed first graphic data. When outputting, the first coordinate coefficient data in the first figure data,
The figure is output by supplying second coordinate data calculated based on the second coordinate coefficient data corresponding to the specified type of the output device to the specified output device. Graphic output device.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP58136515A JPS6027987A (en) | 1983-07-26 | 1983-07-26 | Graphic output system |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP58136515A JPS6027987A (en) | 1983-07-26 | 1983-07-26 | Graphic output system |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS6027987A JPS6027987A (en) | 1985-02-13 |
| JPH0426152B2 true JPH0426152B2 (en) | 1992-05-06 |
Family
ID=15176975
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP58136515A Granted JPS6027987A (en) | 1983-07-26 | 1983-07-26 | Graphic output system |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS6027987A (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH0752338B2 (en) * | 1985-07-19 | 1995-06-05 | 富士通株式会社 | Graph output control method |
Family Cites Families (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS54148436A (en) * | 1978-05-15 | 1979-11-20 | Fujitsu Ltd | Dot pattern conversion system |
| JPS57147786A (en) * | 1981-03-09 | 1982-09-11 | Toshiba Corp | Pattern enlarging device |
| JPS58105339A (en) * | 1981-12-17 | 1983-06-23 | Fujitsu Ltd | Displaying and printing system of graphic form |
-
1983
- 1983-07-26 JP JP58136515A patent/JPS6027987A/en active Granted
Also Published As
| Publication number | Publication date |
|---|---|
| JPS6027987A (en) | 1985-02-13 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US5519412A (en) | Pattern processing method | |
| JPH0426152B2 (en) | ||
| WO1992007720A1 (en) | Printing method in page printer | |
| EP0420575B1 (en) | Printer apparatus | |
| CA1226083A (en) | Word processing system based on a data stream having integrated alphanumeric and graphic data | |
| JP2650324B2 (en) | Multi-value character font generation system | |
| US5977949A (en) | Character forming apparatus | |
| JPH01303489A (en) | Character output system | |
| JP2711860B2 (en) | Output control method and device | |
| JP3118310B2 (en) | Print processing method of page printer | |
| JP2833654B2 (en) | Graphic processing unit | |
| JPH03288197A (en) | Character processor | |
| JP2626769B2 (en) | Output control device and method | |
| JP3089014B2 (en) | Output control method and device | |
| JPH0421592B2 (en) | ||
| JPH05188910A (en) | Character pattern display controller | |
| JP2782752B2 (en) | Character pattern output device | |
| JPH06243261A (en) | Picture processor | |
| JP3214722B2 (en) | Stroke character generator | |
| JPH05265428A (en) | Outline data converting device | |
| JPH02226491A (en) | Data conversion method | |
| JP2833921B2 (en) | Vector font transformation processing method | |
| JP2990157B1 (en) | Character generation device and character generation method | |
| JPS61290526A (en) | output device | |
| JPH0589107A (en) | Data processing device |