JPH0473687A - Graphic pattern processor - Google Patents

Graphic pattern processor

Info

Publication number
JPH0473687A
JPH0473687A JP15266390A JP15266390A JPH0473687A JP H0473687 A JPH0473687 A JP H0473687A JP 15266390 A JP15266390 A JP 15266390A JP 15266390 A JP15266390 A JP 15266390A JP H0473687 A JPH0473687 A JP H0473687A
Authority
JP
Japan
Prior art keywords
pattern
graphic pattern
character
mirror image
row
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
Application number
JP15266390A
Other languages
Japanese (ja)
Inventor
Noboru Yokoyama
登 横山
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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP15266390A priority Critical patent/JPH0473687A/en
Publication of JPH0473687A publication Critical patent/JPH0473687A/en
Priority to US08/100,347 priority patent/US5381163A/en
Pending legal-status Critical Current

Links

Landscapes

  • Image Processing (AREA)

Abstract

PURPOSE:To efficiently obtain the rotation and the mirror image, etc., of a graphic pattern at a high speed by deciding a method for rearranging a graphic pattern outputted from a storing part by a row address in accordance with the instruction of an instructing means and rearranging it. CONSTITUTION:The row address of the storing means 2 is generated by a row address generating part 22 based on the instruction of the instructing means for instructing to perform the rotation and the mirror image of the graphic pattern from the storing means 2 in which each row of the graphic pattern, namely, a dot and matrix type graphic pattern is stored in the state that each row is rearranged in a different way and instructing to read out from the storing means 2. And by deciding the method for rearranging the graphic pattern read out from the storing means 2 by specifying the row address in accordance with the instruction of the instructing means and rearranging the graphic pattern by a rearranging means, the graphic pattern which has been processed for the rotation or the mirror image is outputted. Thus, the rotation and the mirror image, etc., of the graphic pattern are efficiently obtained at high speed.

Description

【発明の詳細な説明】[Detailed description of the invention]

[産業上の利用分野] 本発明は情報処理装置に関するもので、特に、例えば、
図形パターン処理装置に関するものである。 E従来の技術] 図形パターン処理装置は、例えば文字パターンをイメー
ジ情報としてメモリに書き込み、あるいは表示させるた
めにフレーム・メモリに書き込むとき、文字パターン記
憶部から文字パターンを読み出してこれらのメモリに書
き込むようにしている。従来、図形パターン処理装置の
文字パターン記憶部140は第14図のような構成をも
ち、文字コードと行(ラスタ)を指定すると、その文字
コードに対応した文字パターンのその行の部分が出力さ
れる。従って、このような文字パターン記憶部140を
用いてパターン展開した文字パターンをメモリに書き込
む場合、第16図のフローチャートで示された処理を行
なう。 例えば、第15図に示す文字パターン150が8x8ド
ツトの文字“R”のパターンを読み出してメモリに書き
込むときを考える。先ず、文字コードと行指定(RA2
.RAI、RAO)=(0,0,0)を文字パターン記
憶部140に指定すれば、記憶部140の#7の出力Q
7からは、第15図に示す文字“R”の1行目の左端の
ドツトが、又#6の出力Q6からは文字”R”の1行目
の左から2番目のドツトが、#5の出力Q5からは文字
“R”の1行目の左から3番目のドツトが、以下同様に
して#0の出力QOからは、文字“R“の1行目の右の
ドツトがそれぞれ得られ、文字比カバターン141は、
(07,06,05,04゜03.02,01,00 
) = (0,1,1,1,1,0,0,0)となる0
次に、(RA2.RAI、RAO)= (0,0゜1)
と指定すれば、(07,06,05,04,03,02
゜0!、00 ) = (0,1,0,0,0,1,0
,0)が出力され。 これら文字″R”の2行目のパターンがレジスタを経由
して、メモリの次の部分に書き込まれる。 このようにして、行指定(RA2.RAI、RAO) 
= (o、o、o )〜(1,1,1)を出力して、各
出力文字パターン141を順次メモリに書き込むことに
より、文字“R”の8行分のパターンが読み出されて、
書き込まれる。 次に5第15図に示した文字“R”のパターンを回転さ
せた、例えば、第17図のような文字パターン170を
メモリに書き込む場合について考える。従来では、大別
して2通りの方法があり、1つはソフトウェアによる方
法で、もう1つは専用ハードウェアを設ける方法であっ
た。 まず、ソフトウェアによる方法を第18図(A)のフロ
ーチャートを用いて説明する。最初に、文字パターン記
憶部140に文字コード、行指定i (i=o〜7)を
指定しく5202)、例として第15図の文字パターン
150を1行分読み出し、レジスタiに記憶する(S2
03)。これを8回繰り返すことにより、レジスタ0〜
7には第15図の全文字パターンが記憶される(S 2
02〜5205)、次に、レジスタ0を左に1ビツトシ
フトさせ、パターンの左端のビットをレジスタC(1ビ
ツトのレジスタ)に入れ(S208)、このレジスタC
の値をレジスタ8の最上位ビット(MSB)(b、)に
シフトインさせるように、第18図(B)に示すように
レジスタCとレジスタ8とを含めて1ビツト右側にシフ
トさせる(S209)、同様にして、次にレジスタlを
左へ1ビツトシフトさせ、続けて、レジスタ8を右へ1
ビツトシフトさせると、レジスタ1に記憶されたパター
ンデータの左端のビットがレジスタ8のMSBにシフト
インされる。これをレジスタ7まで繰り返すと、結果と
してレジスタ8には、レジスタ0〜7に記憶された各パ
ターンの左端のビット(MSB)を並べたものが記録さ
れ、かつレジスタ0〜7の内容は全て左へ1ビツトシフ
トされた状態になっている。この時のレジスタ8の内容
をメモリに書き込むと、第17図のパターン170の1
行目をメモリに書き込んだことになる(S212)、更
に、同様にして8208〜5211でレジスタO〜7及
びレジスタ8のシフト動作を8回行うことにより、ステ
ップ5212ではメモリには第17図に示すパターンデ
ータ170が書き込まれる。このようにして、第15図
の文字パターン150を右90°回転したパターンデー
タがメモリに形成されたことになる。 一方、専用ハードウェアを設ける場合、その回路構成は
第19図のような構成になり、第21図に書き込み・読
み出し制御部による回転処理のフローチャートを示す。 このハードウェアはパターン回転器190で、パターン
の右90’回転したものを得るものである。先ず、前述
した文字パターン記憶部140から行指定i (i=o
〜7)を行ってパターンを読み出しくS 302〜53
03)、その内容をパターン回転器のレジスタ・ブロッ
ク#lに書き込むための、書き込み制御信号WR,をア
クティブにすることで、そのレジスタ・ブロック#iに
1行分のパターンデータな書き込む(S304)、各レ
ジスタ・ブロック192は第20図に示す通りで、8ビ
ツトのレジスタ200を有するものである。書き込み制
御信号WR+(i=o〜7)をアクティブにして、文字
パターンをすべてレジスタ・ブロック191に書き込ん
だ後、読み出し制御信号RD、をアクティブにして、こ
れらレジスタ・ブロック191に記録されているデータ
を読み出す、この時、RD。 をアクティブにすると、各レジスタ・ブロックのレジス
タ200のビット7(最上位ビット)の内容(8ビツト
)が各レジスタ・ブロックより出力されてデータ・バス
193に送られるので、第17図に示す回転した文字の
1行目のパターンが得られる。同様に、読み出し制御信
号RD、をアクティブにしてデータを読み出せば、第1
7図の回転した文字パターンの2行目が得られる。この
ように読み出し制御信号RD、〜RDyを順次アクティ
ブにして読み出したデータをメモリに書き込めば回転操
作は完了しく5307〜5311)、最終的に第17図
に示す文字パターン170が得られる。 [発明が解決しようする課題] しかしながら、上記従来例では次のような欠点があった
。回転・鏡像の文字(前述の例では右90’回転)のパ
ターンを得るには、ソフトウェアの処理か、ハードウェ
アの処理が必要で、前者ではバス・マスク(例えばCP
U)の負担が太き(なり、処理速度が元の文字のパター
ン得るのに比べて著しく遅くなる。また、後者ではハー
ドウェア(パターン回転器190)の構成が複雑になり
、特に文字パターンサイズが大きくなると、レジスタの
ビット数、レジスタ・ブロック内のセレクタ回路、書き
込み・読み出し制御部回路構成が増大する。この時でも
、パターン回転器に書き込み及び読み出しする分だけ、
元の文字の処理速度に比べ、やや遅くなる。また、パタ
ーン回転器のハードウェアの規模を小さくするために、
文字パターンサイズより小さいビット数のパターン回転
器を複数用いた場合は、1つの文字パターンない(つか
に分割して扱わなければならず、処理時間が増大してし
まう。 また、回転・鏡像の文字を別の文字コードで登録し、文
字記憶部に記憶させることは、記憶容量の激増につなが
り実際的でない。 本発明は上記従来例に鑑みてなされたもので、簡単な構
成で高速かつ効率よ(図形パターンの、例えば、回転・
鏡像などを得ることができる図形パターン処理装置を提
供することを目的とする。 [課題を解決するための手段] 上記目的を達成するために本発明の図形パターン処理装
置は以下のような構成からなる。即ち、図形文字パター
ン記憶部を有する図形パターン処理装置であって、ドッ
ト・マトリックス形式の図形パターンを各行異なる並べ
換えをした形で記憶する記憶手段と、前記図形パターン
の回転及び、あるいは鏡像を行って、前記記憶手段より
読み出しするように指示する指示手段と、前記指示手段
の指示に従って、前記記憶手段の行アドレスを発生する
行アドレス生成部と、前記行アドレスにより前記記憶部
から出力される図形パターンを前記指示手段の指示に従
って、並べ換え方法を決め、並べ換える並べ換え手段と
を有することを特徴とする図形パターン処理装置を備え
る。
[Industrial Application Field] The present invention relates to an information processing device, and in particular, for example,
The present invention relates to a graphic pattern processing device. E. Prior Art] For example, when writing a character pattern into a memory as image information or into a frame memory for display, a graphic pattern processing device reads the character pattern from a character pattern storage section and writes it into these memories. I have to. Conventionally, the character pattern storage unit 140 of a graphic pattern processing device has a configuration as shown in FIG. 14, and when a character code and a line (raster) are specified, the part of that line of the character pattern corresponding to the character code is output. Ru. Therefore, when writing a character pattern expanded into a memory using such a character pattern storage section 140, the process shown in the flowchart of FIG. 16 is performed. For example, consider the case where the character pattern 150 shown in FIG. 15 is an 8x8 dot character "R" and is read out and written into the memory. First, specify the character code and line (RA2
.. If RAI, RAO) = (0, 0, 0) is specified in the character pattern storage unit 140, the output Q of #7 in the storage unit 140
From output Q6 of #6, the dot at the left end of the first line of the letter "R" shown in FIG. The third dot from the left of the first line of the letter "R" is obtained from the output Q5 of #0, and the right dot of the first line of the letter "R" is obtained in the same way from the output QO of #0. , character ratio cover turn 141 is,
(07,06,05,04゜03.02,01,00
) = 0 such that (0,1,1,1,1,0,0,0)
Next, (RA2.RAI, RAO) = (0,0°1)
If you specify (07, 06, 05, 04, 03, 02
゜0! ,00) = (0,1,0,0,0,1,0
, 0) is output. The second line pattern of these letters "R" is written to the next portion of memory via the register. In this way, line specification (RA2.RAI, RAO)
By outputting = (o, o, o) to (1, 1, 1) and sequentially writing each output character pattern 141 to the memory, eight lines of patterns of the character "R" are read out.
written. Next, let us consider the case where, for example, a character pattern 170 as shown in FIG. 17, which is obtained by rotating the pattern of the letter "R" shown in FIG. 5, is written into the memory. Conventionally, there are two main methods: one is a software method, and the other is a method that uses dedicated hardware. First, the software method will be explained using the flowchart of FIG. 18(A). First, a character code and a line designation i (i=o to 7) are specified in the character pattern storage unit 140 (5202), and one line of the character pattern 150 shown in FIG. 15 is read out as an example, and stored in the register i (S2
03). By repeating this eight times, registers 0 to
7 stores all character patterns shown in FIG. 15 (S 2
02 to 5205), then shift register 0 to the left by 1 bit, put the leftmost bit of the pattern in register C (1-bit register) (S208), and
As shown in FIG. 18(B), register C and register 8 are shifted one bit to the right so that the value of is shifted into the most significant bit (MSB) (b, ) of register 8 (S209 ), similarly, next shift register l to the left by 1 bit, and then shift register 8 to the right by 1 bit.
When bit shifted, the leftmost bit of the pattern data stored in register 1 is shifted into the MSB of register 8. If this is repeated up to register 7, as a result, register 8 will record the leftmost bit (MSB) of each pattern stored in registers 0 to 7, and the contents of registers 0 to 7 will all be on the left. It is in a state where it is shifted by 1 bit to . When the contents of register 8 at this time are written to memory, 1 of pattern 170 in FIG.
This means that the row 1 has been written to the memory (S212). Furthermore, by performing the shift operation of registers O to 7 and register 8 eight times in steps 8208 to 5211, in step 5212, the memory is written as shown in FIG. The pattern data 170 shown is written. In this way, pattern data obtained by rotating the character pattern 150 in FIG. 15 by 90 degrees to the right is formed in the memory. On the other hand, if dedicated hardware is provided, its circuit configuration will be as shown in FIG. 19, and FIG. 21 shows a flowchart of rotation processing by the write/read control section. This hardware is a pattern rotator 190 that rotates the pattern 90' to the right. First, line designation i (i=o
-7) and read out the pattern S302-53
03) By activating the write control signal WR to write the contents to the register block #l of the pattern rotator, one line of pattern data is written to the register block #i (S304). , each register block 192 is as shown in FIG. 20, and has an 8-bit register 200. After activating the write control signal WR+ (i=o~7) and writing all the character patterns into the register blocks 191, the read control signal RD is activated to write the data recorded in these register blocks 191. At this time, RD is read. When activated, the contents (8 bits) of bit 7 (most significant bit) of register 200 of each register block are output from each register block and sent to data bus 193, resulting in the rotation shown in FIG. The pattern for the first line of characters is obtained. Similarly, if the read control signal RD is activated and data is read, the first
The second line of the rotated character pattern in Figure 7 is obtained. In this way, by sequentially activating the read control signals RD and -RDy and writing the read data into the memory, the rotation operation is completed (5307 to 5311), and finally the character pattern 170 shown in FIG. 17 is obtained. [Problems to be Solved by the Invention] However, the above conventional example has the following drawbacks. Obtaining a pattern of rotated/mirrored characters (rotated 90' to the right in the above example) requires either software processing or hardware processing; the former requires a bus mask (e.g. CP
U) becomes thick (and the processing speed becomes significantly slower than obtaining the original character pattern.In addition, in the latter case, the configuration of the hardware (pattern rotator 190) becomes complicated, especially when the character pattern size As the number of bits increases, the number of bits in the register, the selector circuit in the register block, and the circuit configuration of the write/read control section increase.
The processing speed is slightly slower than the original character processing speed. Also, in order to reduce the hardware scale of the pattern rotator,
If multiple pattern rotators with a bit number smaller than the character pattern size are used, there is no single character pattern (it must be divided into several parts, increasing processing time. It is impractical to register a character code with a different character code and store it in the character storage unit, as it would lead to a drastic increase in storage capacity. (For example, rotation/
An object of the present invention is to provide a graphic pattern processing device that can obtain a mirror image or the like. [Means for Solving the Problems] In order to achieve the above object, a graphic pattern processing device of the present invention has the following configuration. That is, it is a graphic pattern processing device having a graphic character pattern storage section, a storage means for storing a graphic pattern in a dot matrix format in a form in which each row is rearranged differently, and a graphic pattern processing device that rotates and/or mirrors the graphic pattern. , an instruction means for instructing to read from the storage means, a row address generation section for generating a row address of the storage means according to the instruction of the instruction means, and a graphic pattern output from the storage section according to the row address. A graphic pattern processing device characterized in that it has a rearranging means for determining a rearranging method and rearranging the shapes according to an instruction from the instruction means.

【作用】[Effect]

以上の構成により、本発明は、ドット・マトリックス形
式の図形パターンを、前記図形パターンの各行が異なる
並べ換えをした形で記憶されている記憶手段から、前記
図形パターンの回転及び、あるいは鏡像を行って、前記
記憶手段より読み出しするように指示する指示手段から
の指示に基づき、行アドレス生成部が前記記憶手段の行
アドレスを発生し、前記行アドレスの指定により前記記
憶手段から読み出される前記図形パターンを前記指示手
段の指示に従って並べ換え方法を決定し、並べ換え手段
において前記図形パターンを並べ換え、回転及び、ある
いは鏡像の処理が施された図形パターンを出力するよう
動作する。 [実施例] 以下添付図面を参照して本発明の好適な実施例を詳細に
説明する。 第1図は情報処理装置の例で、同図において、lはCP
U、グラフィック・コントローラ、及びDMAコントロ
ーラ等のバスを占有するバス・マスク、2は文字のパタ
ーンを記憶する文字パターン記憶部、3は文字パターン
記憶部2と各バスの間を仲介する文字パターン記憶部イ
ンタフェース(1/F)部、4は文字パターン記憶部2
から読み出された文字パターンや画像データなどのイメ
ージ情報を記憶するイメージ・メモリ部で、例えば、ビ
ットマツプ・デイスプレィのフレーム・メモリやスキャ
ナで読み取った情報を記憶したりプリンタ出力情報を記
憶したりするイメージ・バッファなど、501はコント
ロールバス、502はアドレスバス、503はデータバ
スである。 この実施例では、バスマスタ1が回転・鏡像の文字パタ
ーンを読み出す場合を考える。行指定、文字コードはア
ドレスバス502に出力するアドレスで指定し、回転・
鏡像の指定はデータバス503に出力されるデータに基
づくレジスタ設定によるものとすると、文字パターン記
憶部I/F部3は第2図に示す構成となる。先ず、バス
・マスタ1は回転・鏡像の指定を回転・鏡像指定レジス
タ33に設定するために、そのレジスタのアドレスをア
ドレスバス502に、書き込むデータをデータバス50
3にそれぞれ送出する。デコーダ&制御部32ではアド
レス・バッファ31を経由したアドレスをデコードし、
それが回転・鏡像指定レジスタ33に対応するものであ
れば、コントロールバス501の信号(例えば、アドレ
ス・ストローブなと)に合わせてレジスタ33に対して
ラッチ信号をラッチ信号ライン504を通して発行し、
そのときのデータバス503の内容をラッチし、文字パ
ターン記憶部2へ送る。次に、バス・マスタ1は文字パ
ターン記憶部2から文字パターンを読み出すために文字
コード、行指定に対応したアドレスを発行する。文字パ
ターンI/F部3ではアドレスのうち、文字コードに対
応する部分、行指定に対応する部分をそれぞれ文字パタ
ーン記憶部2へ出力する。デコーダ&制御部32では、
バス・マスタ1より文字パターン記憶部2に対応した読
み出しアドレスを入力すると、データ・バッファ34に
イネーブル信号をイネーブル信号ライン505を通して
送り、文字パターン記憶部2からの文字パターンをデー
タバス503に送出する。バス・マスタ1はそのデータ
バス503の内容を受は取り、その文字パターンの内容
をイメージ・メモリ部4にそのままあるいは修正して書
き込む。ここで書き込まれる文字パターンは回転・鏡像
の指定に従って処理が施されたものとなっている。 次に、このような文字パターンの回転・鏡像パターンを
発生する文字パターン記憶部2の構成を詳細に述べる。 文字パターンが8x8ドツトの場合の構成例を第3図に
示す、同図において、21は文字のパターンを記憶する
ROMで構成される記憶部、22は行指定と回転・鏡像
指定から、記憶部21に対する行アドレス24を生成す
る行アドレス生成部、23は行指定と回転・鏡像指定か
ら、記憶部21の出力25の並べ換え方を決定する並べ
換え部である。前述した従来例と比較して異なる部分は
、記憶部21における文字パターンの記憶の仕方と行ア
ドレス生成部22、並べ換え部23の存在である。 第15図のように従来は、文字パターンをそのままの形
で記憶しており、例えば、第14図の記憶部140#7
では文字パターンの各行の第1列目の情報だけを記憶し
、#6は第2列目というように記憶されていたが、本実
施例では記憶部21は文字のパターンを各行それぞれ並
べ換えた形で記憶している。並べ換え方法は種々の方法
が適用できるが、例として第4図(A)のように並べ換
えて記憶する場合を考える。ここです、〜b0は文字パ
ターン各行のドツトを表している。この並べ換え方法は
次の通りである。各行に対して、行指定信号RA2=1
である行は左側4ビツトと右側4ビツトを入れ換え、R
A2=0の行はその入れ換えを行なわない、更に、RA
 1 = 1である行は、左から見て1〜2番目のビッ
トと3〜4番目のビットおよび5〜6番目のビットと7
〜8番目のビットのそれぞれ2個ずつを入れ換え、RA
1=0の行はその入れ換えを行なわない。更に、RAO
=1である行は、左から見て1番目のビットと2番目の
ビット、3番目のビットと4番目のビット、5番目のビ
ットと6番目のビット、7番目のビットと8番目のビッ
トをそれぞれ入れ換え、RAO=0の行はその入れ換え
を行なわない。従って、元の文字パターンの1行目はR
A2〜RAOはすべて0となるので並べ換えが行なわれ
ず、又8行目はRA2〜RAOがすべて1なので、結果
として左右が逆となる。説明の都合上、各行の並べ換え
(但し1つは全く並べ換えられていないが)に対して、
以下のように、swap SI S253(SI S2
 S3はそれぞれ0もしくは1の値が入る)と名前をつ
ける。 swapooo : (b7.bG、b5.b4.b3
.b2.bl、bO)→(b7.bG、b5.b4.b
3.b2.bl、bO)swapool : (b7.
bG、b5.b4.b3.b2.bl、bO)−(bG
、b7.b4. b5.b2.b3. bo、 bl)
swapolo  :   (b7.bG、b5.b4
.b3.b2.bl、bG)→(b5.b4.b7.b
G、bl、bO,b3.b2)swapoll : (
b7.bG、b5.b4.b3.b2.bl、bO)→
(b4.b5.be、b7.bo、bl、b2.b3)
swaploo : (b7.bG、b5.b4.b3
.b2.bl、bO)→(b3.b2.bl、bO,h
7.bG、b5.b4)swaplol : (b7.
bG、b5.b4.b3.b2.bl、bO)→(b2
.b3.bO,bl、bG、b7.b4.b5swap
Ho  :  (b7.bG、b5.b4.b3.b2
.bl、bO→(bl、bo、b3.b2.b5.b4
.b7.b6swapHl  :  (b7.bG、b
5.b4.b3.b2.bl、bD→(bo、bl、b
2.b3.b4.b5.bG、b7このように並べ換え
た形で、記憶部21#7〜#0では並べ換えた1行目の
パターンを行アドレス24 (A2.Al、AO)= 
(0,0,0)で記憶し、2行目のパターンは(A2.
AI、AO)=(0,0,1)で記憶する。以下、第4
図(A)の通りである。第4図(B)は文字“R”のパ
ターンを例にとって考えている。つまり(A2.Al。 AO) = (0,0,0)〜(1,1,1)と変化さ
せることにより記憶部21の出力25から第4図(B)
右側に示すパターン400が得られ、この結果を並べ換
え部23で各行を並べ換え直すことで、実際の文字パタ
ーン150が得られる。 第6図と第7図(A)はそれぞれ第4図の並べ換え方法
に対応した行アドレス生成部22と並べ換え部23の構
成例を示す図である。(RA2゜RA 1 、RAO)
は行指定で、(0,0,0)〜(1,1,1)で第1行
〜第8行を指定する。回転・鏡像指定の信号(mode
2.ll1odel、modeO)により、第5図(A
)のような指定ができる。第5図(B)は文字“R”を
例にとり、回転・鏡像指定の信号に基づき、実際の回転
・鏡像がどのように行われるかを具体例で示す図である
。 第7図のピットスワツパ70はin7〜inOの入力2
5をswap S2 SI Soで指定された入れ換え
た方法で並べ換えたものをout7〜□utOの出カフ
1に出力するもので、実際の入れ換え方法は先に定義し
たswaps2 SI SOである。第7図(B)に示
した論理式から分かる通り、このピットスワツパ70は
8−1(8個の入力データから1個を選択することを示
す)データセレクタを8個含んだ構成である。 0°指定(回転なし) ・鏡像無しの場合を考える。こ
の時(mode2.model、+nodeO) = 
(0,0,0)であるから行指定RA2、RAI、RA
Oに対して、行アドレス生成部22の出力24は第8図
(A)のようになる。これは第6図から全ての(A2.
Al、AO)= (RA2.RAl。 RAO)となることから分かる。従って、行指定に対し
て記憶部21の出力25は第8図(B)の400で示す
パターン(文字“R”の例)のようになる0回転・鏡像
指定の信号の1つa+odeOはmodeo= 0なの
で、第7図(A)のピットスワツパ入力(S2.Sl、
SO) = (RA2. RA 1 、 RAO)とな
るので、行指定に対する並べ換え方法は第8図(B)8
01で示すようになり、並べ換え部23の出カフ1から
得られる文字パターンは、第8図(B)の401で示す
ようになる。またO0指定、鏡像の場合では、回転・鏡
像指定の信号の1つll1odeOがmodeO= 1
となるだけなので、第8図(B)の802で示すように
並べ換え部23での並べ換え方法だけが変わり、結果と
して第8図(B)の402に示すような鏡像が得られる
。 次に、左90″指定の場合を考える。鏡像なしでは、(
mode2.model、modeo ) = (0,
1,1)でこの時、行アドレス生成部22の出力24は
各記憶部21#7〜#0に対して異なり、第9図(A)
のようになる。従って、行指定RA2〜RAOに対して
記憶部21の出力25は第9図(B)の901で示すよ
うになる。modeO= 1であるから、(32,Sl
、5o)= (RA2.RAI、RAO)なので、第9
図(B)の903で示すように並べ換え部23で並べ換
えられた文字パターンが出力される。鏡像ありでは、m
odeOが1から0に変わるだけなので、第9図(B)
の904で示すように並べ換え方法だけが変わり、文字
パターン905が得られる。 180°回転、左270’回転も同様で、第10図(A
)、第10図(B)、第11図(A)、第11図(B)
にそれぞれ説明図を示す。 以上のように、回転・鏡像の文字のパターンを読み出す
場合でも、オリジナルの文字パターンを読み出す場合と
全く同じ様にして、バス・マスタlは回転・鏡像指定レ
ジスタ33を設定した後。 文字パターン記憶部2に対して、8回の読み出し動作(
文字パターンが8x8ドツトの場合)を行うことにより
、所望の文字パターンが得られる。 もちろん、特別なソフトウェアによる処理は必要としな
い。 [他の実施例] 文字パターンを記憶部21に記憶する時の並べ換えは各
記憶部21の#7〜#Oのそれぞれに対して、各行がす
べて異なる列のパターンを記憶するような方法ならば本
発明が適用できる0例えば、第12図(A)に示すよう
に1行目はそのまま、2行目は右へ1ビツト回転、3行
目は右へ2ビツト回転、以下同様にして8行目は右へ7
ビツト回転させて記憶させても良い、第12図(A)の
並べ換えパターンに従うと、文字“R”は第12図(B
)が示すように並べ換えられる。この場合、この並べ方
に対応するように、行アドレス生成部22、並べ換え部
23は変更が必要である。 また、前述の実施例では回転・鏡像指定レジスタ33を
設けたが、バス・マスタ1のアドレス空間が許せば、回
転・鏡像の指定を文字コード、行指定と同じように、ア
ドレスの一部に割り付けることができる。その時の文字
パターン記憶部IZF部3は第13図のようになる。こ
の場合、文字パターンの読み出し動作に先立つ回転・鏡
像の指定は必要なく、結果として処理速度の向上につな
がり、3ビツトのレジスタも不要となる。 以上説明したように、本実施例によれば、回転・鏡像の
パターンをイメージ情報として扱う際の処理速度が従来
のオリジナルのパターンを扱うのと同じにできる効果が
ある。 なお、本実施例では、文字パターンの回転・鏡像を求め
る場合で説明したが、本発明はこれに限定されるもので
はなく、例えば、多様なドツトパターンをもつ図形デー
タの回転や鏡像の場合にも適用できる。 [発明の効果] 以上説明したように、本発明によれば、簡単な構成で高
速かつ効率よ(図形パターンの、例えば、回転・鏡像な
どを得ることができる効果がある。
With the above configuration, the present invention rotates and/or mirrors a graphic pattern in a dot matrix format from a storage means in which each row of the graphic pattern is stored in a differently rearranged form. , a row address generating section generates a row address of the storage means based on an instruction from the instruction means to read from the storage means, and generates the graphic pattern to be read from the storage means according to the designation of the row address. A sorting method is determined in accordance with instructions from the instruction means, and the sorting means operates to rearrange the graphic patterns and output graphic patterns subjected to rotation and/or mirror image processing. [Embodiments] Hereinafter, preferred embodiments of the present invention will be described in detail with reference to the accompanying drawings. FIG. 1 shows an example of an information processing device, in which l is CP
U, a bus mask that occupies the buses of the graphic controller, DMA controller, etc., 2, a character pattern storage unit that stores character patterns, and 3, a character pattern storage that mediates between the character pattern storage unit 2 and each bus. part interface (1/F) part, 4 is character pattern storage part 2
An image memory unit that stores image information such as character patterns and image data read from a computer, such as the frame memory of a bitmap display, information read by a scanner, or printer output information. 501 is a control bus, 502 is an address bus, and 503 is a data bus, such as an image buffer. In this embodiment, a case will be considered in which the bus master 1 reads out a rotated/mirror image character pattern. The line specification and character code are specified by the address output to the address bus 502, and the rotation and
Assuming that the mirror image is designated by register settings based on data output to the data bus 503, the character pattern storage I/F section 3 has the configuration shown in FIG. First, in order to set the rotation/mirror image specification in the rotation/mirror image specification register 33, the bus master 1 sends the address of the register to the address bus 502 and the data to be written to the data bus 50.
3 respectively. The decoder & control unit 32 decodes the address via the address buffer 31,
If it corresponds to the rotation/mirror image specification register 33, a latch signal is issued to the register 33 through the latch signal line 504 in accordance with the signal on the control bus 501 (for example, address strobe),
The contents of the data bus 503 at that time are latched and sent to the character pattern storage section 2. Next, the bus master 1 issues an address corresponding to the character code and line designation in order to read the character pattern from the character pattern storage section 2. The character pattern I/F section 3 outputs a portion of the address corresponding to the character code and a portion corresponding to the line designation to the character pattern storage section 2, respectively. In the decoder & control section 32,
When the read address corresponding to the character pattern storage section 2 is input from the bus master 1, an enable signal is sent to the data buffer 34 through the enable signal line 505, and the character pattern from the character pattern storage section 2 is sent to the data bus 503. . The bus master 1 receives the contents of the data bus 503 and writes the contents of the character pattern into the image memory section 4 as is or with modification. The character pattern written here is processed according to the rotation/mirror image specification. Next, the structure of the character pattern storage section 2 that generates such a rotated/mirror image pattern of a character pattern will be described in detail. An example of the configuration when the character pattern is 8x8 dots is shown in FIG. A row address generation unit 23 generates a row address 24 for 21, and a rearrangement unit 23 determines how to rearrange the outputs 25 of the storage unit 21 from the row designation and rotation/mirror image designation. The differences from the conventional example described above are the way character patterns are stored in the storage section 21 and the presence of the line address generation section 22 and rearrangement section 23. Conventionally, as shown in FIG. 15, character patterns are stored as they are; for example, the storage unit 140#7 in FIG.
In this example, only the information in the first column of each row of the character pattern is stored, #6 is stored in the second column, and so on, but in this embodiment, the storage unit 21 stores the information in the form in which the character pattern is rearranged for each row. I remember that. Various rearrangement methods can be applied, but as an example, let us consider a case where the data are rearranged and stored as shown in FIG. 4(A). Here, ~b0 represents the dots in each line of the character pattern. This sorting method is as follows. For each row, row designation signal RA2=1
The row with 4 bits on the left side and 4 bits on the right side are swapped, and R
The row with A2=0 does not perform the swap, and furthermore, the row with RA
In the row where 1 = 1, the 1st to 2nd bits, the 3rd to 4th bits, the 5th to 6th bits, and the 7th bit from the left
~ Swap two of each of the 8th bits and write RA
The row where 1=0 does not perform the swapping. Furthermore, R.A.O.
The row where =1 is the 1st bit and the 2nd bit, the 3rd bit and the 4th bit, the 5th bit and the 6th bit, and the 7th bit and the 8th bit when viewed from the left. The rows with RAO=0 are not replaced. Therefore, the first line of the original character pattern is R
Since A2 to RAO are all 0, no rearrangement is performed, and since RA2 to RAO are all 1 in the 8th row, the left and right sides are reversed as a result. For convenience of explanation, for each row sorting (however, one is not sorted at all),
swap SI S253 (SI S2
Each S3 is given a value of 0 or 1). swapoo: (b7.bG, b5.b4.b3
.. b2. bl, bO) → (b7.bG, b5.b4.b
3. b2. bl, bO) swapool: (b7.
bG, b5. b4. b3. b2. bl, bO)-(bG
, b7. b4. b5. b2. b3. bo, bl)
swapolo: (b7.bG, b5.b4
.. b3. b2. bl, bG) → (b5.b4.b7.b
G, bl, bO, b3. b2) swapoll: (
b7. bG, b5. b4. b3. b2. bl, bO)→
(b4.b5.be, b7.bo, bl, b2.b3)
swaploo: (b7.bG, b5.b4.b3
.. b2. bl, bO) → (b3.b2.bl, bO, h
7. bG, b5. b4) swaplol: (b7.
bG, b5. b4. b3. b2. bl, bO) → (b2
.. b3. bO, bl, bG, b7. b4. b5swap
Ho: (b7.bG, b5.b4.b3.b2
.. bl, bO → (bl, bo, b3.b2.b5.b4
.. b7. b6swapHl: (b7.bG, b
5. b4. b3. b2. bl, bD → (bo, bl, b
2. b3. b4. b5. bG, b7 With this rearrangement, the rearranged first row pattern is stored in the storage units 21 #7 to #0 at the row address 24 (A2.Al, AO) =
(0, 0, 0), and the second line pattern is (A2.
Store as AI, AO) = (0, 0, 1). Below, the fourth
As shown in Figure (A). FIG. 4(B) considers the pattern of the letter "R" as an example. In other words, by changing (A2.Al. AO) = (0, 0, 0) to (1, 1, 1), the output 25 of the storage section 21 is changed to Fig. 4 (B).
A pattern 400 shown on the right side is obtained, and the actual character pattern 150 is obtained by rearranging each line in the rearranging unit 23. FIG. 6 and FIG. 7(A) are diagrams showing configuration examples of the row address generation section 22 and rearrangement section 23, respectively, corresponding to the rearrangement method of FIG. 4. (RA2°RA 1, RAO)
is a row specification, and (0, 0, 0) to (1, 1, 1) specify the 1st to 8th rows. Rotation/mirror image specification signal (mode
2. ll1odel, modeO), Figure 5 (A
) can be specified. FIG. 5(B) is a diagram showing a specific example of how actual rotation/mirror image is performed based on a rotation/mirror image designation signal, taking the letter "R" as an example. The pit swapper 70 in FIG. 7 is input 2 from in7 to inO.
5 in the swapping method specified by swap S2 SI So and output to output cuff 1 of out7 to □utO, and the actual swapping method is swaps2 SI SO defined earlier. As can be seen from the logical expression shown in FIG. 7(B), this pit swapper 70 has a configuration including eight data selectors 8-1 (indicating that one data is selected from eight input data). 0° specification (no rotation) - Consider the case without mirror image. At this time (mode2.model, +nodeO) =
Since it is (0, 0, 0), line specification RA2, RAI, RA
For O, the output 24 of the row address generator 22 is as shown in FIG. 8(A). This applies to all (A2.
This can be seen from the fact that Al, AO) = (RA2.RA1. RAO). Therefore, for row designation, the output 25 of the storage unit 21 is as shown in the pattern 400 in FIG. = 0, so the pit swapper input (S2.Sl,
SO) = (RA2. RA 1 , RAO), so the sorting method for the row specification is shown in Figure 8 (B) 8
01, and the character pattern obtained from output cuff 1 of the sorting unit 23 is as shown by 401 in FIG. 8(B). In addition, in the case of O0 specification and mirror image, one of the rotation/mirror image specification signals, ll1modeO, is modeO = 1.
Therefore, only the sorting method in the sorting unit 23 is changed, as shown at 802 in FIG. 8(B), and as a result, a mirror image as shown at 402 in FIG. 8(B) is obtained. Next, consider the case of specifying 90" on the left. Without mirror image, (
mode2. model, mode) = (0,
1, 1), at this time, the output 24 of the row address generation unit 22 is different for each storage unit 21 #7 to #0, and as shown in FIG.
become that way. Therefore, the output 25 of the storage unit 21 for the row designations RA2 to RAO becomes as shown by 901 in FIG. 9(B). Since modeO=1, (32, Sl
, 5o) = (RA2.RAI, RAO), so the 9th
The character pattern rearranged by the rearrangement unit 23 is output as shown by 903 in FIG. 3(B). With mirror image, m
Since odeO only changes from 1 to 0, Figure 9 (B)
As shown in 904, only the rearrangement method is changed, and a character pattern 905 is obtained. The same goes for 180° rotation and 270' left rotation, as shown in Figure 10 (A
), Figure 10 (B), Figure 11 (A), Figure 11 (B)
An explanatory diagram is shown in each. As described above, even when reading a rotated/mirror image character pattern, the bus master l sets the rotation/mirror image specification register 33 in exactly the same way as when reading an original character pattern. The character pattern storage unit 2 is read out 8 times (
When the character pattern is 8x8 dots), the desired character pattern can be obtained. Of course, no special software processing is required. [Other Embodiments] When character patterns are stored in the storage unit 21, the rearrangement may be performed by storing patterns of different columns in each row for each of #7 to #O of each storage unit 21. For example, as shown in FIG. 12(A), the first line is left as is, the second line is rotated by 1 bit to the right, the third line is rotated by 2 bits to the right, and the following 8 lines are rotated in the same manner. eyes to the right7
According to the rearrangement pattern of FIG. 12(A), which may be stored by rotating the bits, the letter "R" is
) are sorted as shown. In this case, the row address generation section 22 and rearrangement section 23 need to be modified to accommodate this arrangement. In addition, although the rotation/mirror image specification register 33 was provided in the above-mentioned embodiment, if the address space of the bus master 1 allows, rotation/mirror image specification can be made as part of the address in the same way as character code and line specification. Can be assigned. At that time, the character pattern storage section IZF section 3 becomes as shown in FIG. In this case, there is no need to designate rotation or mirror image prior to the character pattern readout operation, which results in improved processing speed and eliminates the need for a 3-bit register. As described above, according to this embodiment, the processing speed when handling a rotated/mirror image pattern as image information can be made the same as when handling a conventional original pattern. Although this embodiment has been described with reference to the case of obtaining the rotation and mirror image of a character pattern, the present invention is not limited to this. can also be applied. [Effects of the Invention] As explained above, according to the present invention, there is an effect that it is possible to obtain, for example, a rotation or a mirror image of a graphic pattern, with a simple configuration and at high speed and efficiency.

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

第1図は本実施例の情報処理装置の構成図、第2図は文
字パターン記憶部I/F部のブロック構成図、 第3図は文字パターン記憶部のブロック構成図。 第4図(A)は文字パターンの記憶の仕方の説明図、 第4図(B)は第4図(A)の文字並べ換えパターンに
従った文字“R”の並べ換え例を示す図、 第5図(A)は回転・鏡像の指定の説明図、第5図(B
)は文字” R”を例とした文字パターンの回転・鏡像
の具体例を示す図、第6図は行アドレス生成部の回路図
、 第7図(A)は並べ換え部のブロック図、第7図(B)
は並べ換え方法に対応する論理式第8図〜第11図は文
字パターン記憶部の動作記憶部の動作の説明図、 第12図(A)は他の実施例の文字パターンの記憶の仕
方の説明図、 第12図(B)は第12図(A)の文字並べ換えパター
ンに従った文字“R”の並べ換え例を示す図、 第13図は他の実施例の文字パターン記憶部I/F部の
ブロック図、そして、 第14図〜第21図は従来例の説明図である。 図中、1・・・バスマスク、2・・・文字パターン記憶
部、3・・・文字パターン記憶部I/F部、4・・・イ
メージ・メモリ部、21・・・記憶部、22・・・行ア
ドレス生成部、23・・・並べ換え部、33・・・回転
・鏡像指定レジスタである。 特許出願人     キャノン株式会社代理人弁理士 
   大塚康徳(他1名)g;−シ 紀礫邦巳力 並へ− \ wap wap SWa! swaIl: wap wap wap wap 酋へ#頌部出力 丈7パターン 第 12図(A) 第14図 第 15図 第 7図 第 6図 第18図(B)
FIG. 1 is a block diagram of the information processing apparatus of this embodiment, FIG. 2 is a block diagram of the character pattern storage I/F section, and FIG. 3 is a block diagram of the character pattern storage. FIG. 4(A) is an explanatory diagram of how to store character patterns; FIG. 4(B) is a diagram showing an example of rearranging the letter "R" according to the character rearranging pattern of FIG. 4(A); Figure (A) is an explanatory diagram of specifying rotation/mirror image, and Figure 5 (B)
) is a diagram showing a specific example of rotating and mirroring a character pattern using the letter "R" as an example, Figure 6 is a circuit diagram of the row address generation section, Figure 7 (A) is a block diagram of the rearrangement section, and Figure 7 Diagram (B)
are logical formulas corresponding to the rearrangement method. FIGS. 8 to 11 are explanatory diagrams of the operation of the character pattern storage unit. FIG. 12 (A) is an explanation of how to store character patterns in another embodiment. Figure 12 (B) is a diagram showing an example of rearranging the character "R" according to the character rearrangement pattern of Figure 12 (A), Figure 13 is a character pattern storage I/F section of another embodiment. 14 to 21 are explanatory diagrams of the conventional example. In the figure, 1... Bus mask, 2... Character pattern storage section, 3... Character pattern storage I/F section, 4... Image memory section, 21... Storage section, 22. . . . row address generation unit, 23 . . . rearrangement unit, 33 . . . rotation/mirror image specification register. Patent applicant Canon Co., Ltd. agent patent attorney
Yasunori Otsuka (and 1 other person) g; - To Shikireki Kunimi Riki-nami - \ wap wap SWa! swaIl: wap wap wap wap To the armpit # 7 patterns of chimney output length Fig. 12 (A) Fig. 14 Fig. 15 Fig. 7 Fig. 6 Fig. 18 (B)

Claims (1)

【特許請求の範囲】 図形文字パターン記憶部を有する図形パターン処理装置
であつて、 ドット・マトリックス形式の図形パターンを各行異なる
並べ換えをした形で記憶する記憶手段と、 前記図形パターンの回転及び、あるいは鏡像を行って、
前記記憶手段より読み出しするように指示する指示手段
と、 前記指示手段の指示に従って、前記記憶手段の行アドレ
スを発生する行アドレス生成部と、前記行アドレスによ
り前記記憶部から出力される図形パターンを前記指示手
段の指示に従って、並べ換え方法を決め、並べ換える並
べ換え手段とを有することを特徴とする図形パターン処
理装置。
[Scope of Claims] A graphic pattern processing device having a graphic character pattern storage section, comprising: a storage means for storing graphic patterns in a dot matrix format in a form in which each row is rearranged differently; and a rotation of the graphic pattern and/or Do a mirror image,
an instruction means for instructing to read data from the storage means; a row address generation section for generating a row address of the storage means according to the instruction from the instruction means; and a graphic pattern output from the storage section based on the row address. A graphic pattern processing apparatus comprising a rearrangement means for determining a rearrangement method and rearranging the rearrangement according to an instruction from the instruction means.
JP15266390A 1990-06-13 1990-06-13 Graphic pattern processor Pending JPH0473687A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP15266390A JPH0473687A (en) 1990-06-13 1990-06-13 Graphic pattern processor
US08/100,347 US5381163A (en) 1990-06-13 1993-08-02 Image processing apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP15266390A JPH0473687A (en) 1990-06-13 1990-06-13 Graphic pattern processor

Publications (1)

Publication Number Publication Date
JPH0473687A true JPH0473687A (en) 1992-03-09

Family

ID=15545368

Family Applications (1)

Application Number Title Priority Date Filing Date
JP15266390A Pending JPH0473687A (en) 1990-06-13 1990-06-13 Graphic pattern processor

Country Status (1)

Country Link
JP (1) JPH0473687A (en)

Similar Documents

Publication Publication Date Title
JPH10505935A (en) Improved memory architecture and devices, systems and methods utilizing the same
JPH077260B2 (en) Image data rotation processing apparatus and method thereof
JPS60153088A (en) Memory data shifter
JPH01283676A (en) Read-out processing system for window image data
JPH0473687A (en) Graphic pattern processor
JP2502530B2 (en) Printer
JPH01137490A (en) Semiconductor memory
JPS62239193A (en) Character pattern generator
JP3427586B2 (en) Data processing device and storage device
JP3016372B2 (en) Image processing device
JPH061449B2 (en) Image memory for image editing
JPH07320053A (en) Image rotation processor
JPH0736772A (en) Device and method for fast bit map access control
JP2839768B2 (en) Image rotation circuit
JPH023196B2 (en)
JP2884862B2 (en) Data processing device
JP2901631B2 (en) Image processing device
JPS6230053A (en) Dot type face enlargement and reduction system
JPH04282778A (en) Image processor
JPS63292347A (en) Memory access system
JPH0863595A (en) Method and device for rotation processing of image
JPS5981686A (en) Magnified character pattern correction system
JPH0478549A (en) Printer
JPH04205678A (en) Image information processor
JPH02201641A (en) Memory access controller for display