Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP3769972B2 - Drawing processing apparatus, drawing processing method, and recording medium - Google Patents
[go: Go Back, main page]

JP3769972B2 - Drawing processing apparatus, drawing processing method, and recording medium - Google Patents

Drawing processing apparatus, drawing processing method, and recording medium Download PDF

Info

Publication number
JP3769972B2
JP3769972B2 JP07275299A JP7275299A JP3769972B2 JP 3769972 B2 JP3769972 B2 JP 3769972B2 JP 07275299 A JP07275299 A JP 07275299A JP 7275299 A JP7275299 A JP 7275299A JP 3769972 B2 JP3769972 B2 JP 3769972B2
Authority
JP
Japan
Prior art keywords
coordinate
correction
conversion
drawing processing
data
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 - Fee Related
Application number
JP07275299A
Other languages
Japanese (ja)
Other versions
JP2000270201A (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.)
Fujifilm Business Innovation Corp
Original Assignee
Fuji Xerox Co Ltd
Fujifilm Business Innovation 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 Fuji Xerox Co Ltd, Fujifilm Business Innovation Corp filed Critical Fuji Xerox Co Ltd
Priority to JP07275299A priority Critical patent/JP3769972B2/en
Publication of JP2000270201A publication Critical patent/JP2000270201A/en
Application granted granted Critical
Publication of JP3769972B2 publication Critical patent/JP3769972B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Record Information Processing For Printing (AREA)
  • Image Processing (AREA)
  • Editing Of Facsimile Originals (AREA)

Description

【0001】
【発明の属する技術分野】
本発明は、PDLを用いて作成された直線分データの入力側と出力側との座標系をアファイン変換により変換する描画処理装置及び方法に関する。
【0002】
【従来の技術】
PDL(Printing Discription Languege)プリンタは、データ供給源であるホストコンピュータから、PDLで作成された描画データ等を与えられ、その描画データに基づき印刷処理を行うものである。
ここで、描画データの入力側であるホストコンピュータと出力側であるプリンタとは、それぞれ固有のデバイス空間を有しており、描画データが示す図形(ここでは、直線分とする)を、それぞれのデバイス空間上で把握している。そして、描画データが入力側から出力側へ与えられるときに、いわゆるアファイン変換により、入力側のデバイス空間が出力側のデバイス空間に変換される。
【0003】
【発明が解決しようとする課題】
図10に上記入力側のデバイス空間の座標系と出力側のデバイス空間の座標系とを示す。
同図に示すように、入力側の座標系の縦軸(y軸)の正方向は下向きとなっているが、出力側の座標系の縦軸(y軸)の正方向は上向きとなっている点が、異なっている。
ここで、1ピクセルの幅を有する直線分を描画する場合を想定する。入力側のユーザインターフェース(例えばディスプレイ装置)や出力側の描画出力媒体(例えば記録紙)に表示されるピクセルは、入力される座標を(x、y)として、
【0004】
【数1】

Figure 0003769972
【0005】
で指定される点(x’、y’)の集合として定義される。
この式に従って、入力側のユーザインターフェース(例えばディスプレイ装置)や出力側の描画出力媒体(例えば記録紙)に表示されるピクセルを図示すると図10に示すようになる。
同図のように、実際に表示されるピクセルは、入力側と出力側とでは1ピクセル分ずれている。これは、入力側と出力側とで縦軸の正方向が反対向きであることに起因する。
【0006】
さらに同様の現象が、入力側に表示される図形を右90度回転して出力側に表する場合にも発生する。図11に、入力側に表示される直線分を右90度回転して出力側に表示した場合を図示する。
同図のように、本来出力されるべき描画ピクセルと実際に描画される描画ピクセルとは、縦軸方向に1ピクセル分及び横軸方向に1ピクセル分ずれる。
【0007】
また、直線分が縦軸及び横軸のいずれにも平行でない場合(以下、このような直線分を斜線と呼ぶ)を、図12に図示する。
同図に示すように、直線分の始点部分の終点部分において、ピクセルが不正に描画される。
【0008】
本発明は、上述した事情に鑑みてなされたものであり、座標系の座標変換前後において、表示される直線分の描画ピクセルがずれないようにする描画処理装置、描画処理方法及び記録媒体を提供することを目的とする。
【0009】
【課題を解決するための手段】
上述した課題を解決するため、本発明は、描画データ入力装置における座標系を、描画データ出力装置における座標系に変換する処理を行う描画処理装置において、前記変換処理の種類毎に描画ピクセル位置座標の座標変換前後のズレに基づいて定められる、描画データの位置座標の補正量を記憶する補正量記憶手段と、前記補正量記憶手段によって記憶されている前記補正量を用いて、前記描画データの位置座標を補正する座標補正手段とを具備することを特徴とする描画処理装置を提供する。
【0010】
記変換処理の種類を判定する変換種類判定手段を具備し、前記補正量記憶手段は、前記変換種類判定手段によって判定された前記変換種類毎に定められる前記補正量を記憶するようにしてもよい。
【0011】
記変換種類判定手段は、前記入力側から与えられる所定の条件に基づいて前記変換種類を判定するようにしてもよい。
【0012】
記変換種類判定手段は、前記入力側から与えられる座標変換マトリクスに基づいて前記変換種類を判定するようにしてもよい。
【0013】
記座標補正手段は、前記変換処理の前に、前記直線分の位置座標の補正を行うようにしてもよい。
【0014】
記補正手段は、前記変換処理の後に、前記直線分の位置座標の補正を行ようにしてもよい。
【0015】
記直線分が、描画データ入力における座標系が有する複数の座標軸の何れかに平行であるか否かを判定する判定手段を具備し、前記補正手段は、前記判定手段が前記直線分が前記複数の座標軸の何れかに平行ではないと判定したときには、前記補正量に一定数値を乗じて得られる補正量を用いて、前記補正を行うようにしてもよい。
【0016】
前記描画データが示す線が、前記出力装置が出力することが可能な最小出力単位の線より太い線であるか否かを判定する判定手段を具備し、前記補正手段は、前記線の太さを判定する判定手段が前記描画データが示す線が前記最小出力単位の線より太い線であると判定したときには、前記描画データの位置座標の補正を行わないようにしてもよい。
【0017】
また、本発明は、描画データ入力装置における座標系を、描画データ出力装置における座標系に変換する過程と、前記変換過程の種類毎に描画ピクセル位置座標の座標変換前後のズレに基づいて定められる、描画データの位置座標の補正量を用いて、前記描画データの位置座標を補正する座標補正過程とを具備することを特徴とする描画処理方法を提供するものである。また、本発明は、描画データ入力装置における座標系を、描画データ出力装置における座標系に変換する種類毎に描画ピクセル位置座標の座標変換前後のズレに基づいて定められる、描画データの位置座標の補正量を用いて、前記描画データの位置座標を補正する座標補正過程と、前記座標補正過程に対応した座標系に変換する過程と
を具備することを特徴とする描画処理方法を提供するものである。
【0018】
記変換処理の種類を判定する変換種類判定過程を具備し、前記座標補正過程は、前記変換種類判定過程によって判定された変換処理の種類に応じて座標変換を行うようにしてもよい。
【0019】
記変換種類判定過程は、前記入力装置から与えられる座標変換マトリクスに基づいて前記変換種類を判定するようにしてもよい。
【0020】
記変換種類判定過程は、前記入力側から与えられる記録紙のサイズに関するデータ、及び、前記出力装置が描画出力する記録紙のサイズに関する情報とを用いて前記変換種類を判定するようにしてもよい。
【0023】
記描画データが直線分を示すデータであり、前記直線分が、前記入力装置における座標系が有する複数の座標軸の何れかに平行であるか否かを判定する判定過程を具備し、前記座標補正過程は、前記平行であるか否かを判定する過程により前記直線分が前記複数の座標軸の何れにも平行ではないと判定されたときには、前記変換種類毎に定められている前記補正量に一定数値を乗じて得られる値を補正量として用いて前記補正を行うようにしてもよい。
【0024】
記描画データが示す線が、前記出力装置が出力することが可能な最小出力単位の線より太い線であるか否かを判定する判定過程を具備し、前記補正過程は、前記線の太さを判定する判定過程により前記描画データが示す線が前記最小出力単位の線より太い線であると判定されたときには、前記描画データの位置座標の補正を行わないようにしてもよい。
【0025】
また、本発明は上記の描画出力方法を実行させるためのプログラムを記録したコンピュータ読み取り可能な記録媒体を提供するものである。
【0026】
【発明の実施の形態】
[構成]
図1は、本発明の一実施形態である描画処理装置100の構成を示すブロック図である。
この描画処理装置100は、CPU110、RAM120、ROM130、入力インターフェース140、プリンタエンジンインターフェース150等から構成されており、これらはシステムバス160により互いに接続されている。
【0027】
入力インタフェース140は、ネットワーク200を介して、データ供給源となるホストコンピュータ(図示せず)に接続されており、このホストコンピュータから各種データが与えられる。
例えば、入力インターフェース140は、ホストコンピュータから、PDLで作成された描画データを与えられる。この描画データは、例えば、描画の対象となる直線分の始点と終点の位置座標等からなるデータ(以下、このデータを直線分データと呼ぶ)である。
また、この入力インターフェース140は、ホストコンピュータから、PDLで作成された座標変換マトリクスデータが与えられる。この座標変換マトリクスデータとは、ホストコンピュータ側の座標系を描画処理装置100側の座標系に変換するための、3×3のマトリクスを示すデータである。また、この3×3のマトリクスを用いて、次式のようなアファイン変換が定義される。
【0028】
【数2】
Figure 0003769972
【0029】
なお、ホストコンピュータによりPDLを用いて作成され、入力インターフェース140に与えられるこれらのデータを総称して、以下、PDLデータと呼ぶ。
【0030】
CPU110は、ROM130に格納される制御プログラム131に従い、この描画処理装置100全体を制御する。このCPU110には、入力インターフェース140に与えられた直線分データの位置座標を座標変換マトリクスデータに従って座標変換する座標変換部111や、直線分データに補正を加える座標補正部112や、直線分データをラスタライズする直線描画処理部113等を有する。
【0031】
RAM120は、CPU110が描画処理の際に必要とするワークメモリ121や、CPU110が作成したラスタデータを記憶するフレームバッファ122等を有する。
このワークメモリ121には、座標補正部112が直線分データの補正を行うために用いる補正テーブル123等が格納されている。CPU110の座標補正部112は、この補正テーブル123、及び、ホストコンピュータから与えられる座標変換マトリクスを参照して、与えられた直線分データについて補正が必要か否かを判定し、必要であればその直線分データを補正する。この補正テーブル123の構成は後述する。
フレームバッファ122には、直線描画処理部113が作成した、直線分のラスタデータが記憶される。
【0032】
プリンタエンジンインターフェース150は、CPU110の制御の下、フレームバッファ122に記憶されているラスタデータを、プリンタエンジン300に出力する。
【0033】
プリンタエンジン300は、例えば、ラスタデータを記録紙に印刷する電子写真方式又はインクジェット方式等の種々のプリンタ、或いは、CRT等の種々のディスプレイ装置である。
【0034】
[動作]
図2は、描画処理装置100の直線分描画処理の流れを示すフローチャート図である。
【0035】
ステップSP11では、ホストコンピュータから、入力インターフェース140にPDLデータが入力される。このPDLデータには、上述したように直線分データ及び座標変換マトリクスデータ等が含まれており、CPU110は、それらのPDLデータをワークメモリ121にいったん保存する。
【0036】
ステップSP13では、CPU110の座標変換部111は、入力された座標変換マトリクスデータに従い、直線分データの始点及び終点の位置座標を座標変換する。
【0037】
次に、ステップSP15では、CPU110の座標補正部112は、座標変換マトリクスデータを用いて、その座標変換により、ホストコンピュータ側(入力側)の座標系上の直線分が、描画処理装置側(出力側)の座標系上へ、平行移動したのか、回転移動したのかを判定する平行/回転移動判定処理を行う。
【0038】
ここで、図3に、平行/回転移動判定処理の具体的な処理流れを示すフロチャート図を示す。なお、本実施例においては、入力側の座標系が出力側の座標系へ変換される際の変換種類は、右90度回転、左90度回転、180度回転、y軸平行移動の4種類のみであり、その他の変換種類は想定していない。
【0039】
まず、ステップSP31では、座標補正部112は、座標変換により直線分が右90度回転又は左90度回転するのか否かを判定する。このような回転移動の場合というのは、座標変換マトリクスを構成する構成要素(即ち、a、b、d、e、tx、ty)のうち、bが正又は負の値をとり、かつ、dが負の値をとるというケースである(なお、本来は、a、e等の値も考慮する必要があるが、上述したように変換種類を所定の4種類に限定しているので、ここではこの条件のみ考慮すればよい)。
従って、そのようなケースを条件Aとして、条件Aに合致するのであれば、ステップSP32に進み、条件Aに合致しなければ、ステップSP33の進む。
【0040】
ステップSP32では、座標補正部112は、座標変換により直線分が右回転するのか左回転するのかを判定する。右回転の場合には座標変換マトリクスのbが負の値をとり、左回転の場合には座標変換マトリクスのbが正の値をとるので、bの値の正負により右回転なのか左回転なのかを判定する。即ち、bの値が負の値であれば(イエスの場合であれば)右90度回転と判定し、bの値が正でなければ(ノーであれば)左90度と判定する。
【0041】
ステップSP33では、座標補正部112は、座標変換により直線分がy軸方向に平行移動するのか否かを判定する。y軸方向に平行移動する場合には、座標変換マトリクスのtyがある定数以上の値をとるので、そのような条件を条件Cとして、条件Cに合致すればy軸方向に平行移動すると判定し、条件Cに合致しなければステップSP34に進む。
【0042】
ステップSP34では、座標補正部112は、座標変換により直線分が180度回転するのか否かを判定する。180度回転の場合には座標変換マトリクスのaが負の値をとり、かつ、eの値が正の値をとるので、そのような条件を条件Dとして条件Dに合致するか否かにより、180度回転するのか否かを判定する。即ち、条件Dの合致すれば180度回転と判定し、条件Dに合致しなければ181度回転ではないと判定する。
【0043】
以上の平行/回転移動判定処理が終了すると、図2のステップSP17に進む。ステップSP17では、座標補正部112は、ワークメモリ121に格納されている補正テーブル123、及び、回転/平行移動判定処理の結果に基づき、補正が必要か否かを判定する。
【0044】
図4に、ワークメモリ121に格納されている補正テーブル123の構成を示す。
同図(A)に示すように、右回転の場合には、座標変換により位置座標がx軸方向に「+1」及びy軸方向に「+1」ずれるので、そのズレをもとの位置に戻すため補正量をx軸方向に「−1」及びy軸方向に「−1」とする。また、左回転の場合には、座標変換により位置座標がずれることはないので補正の必要はない。また、y軸方向への平行移動の場合には、座標変換により位置座標がy軸方向に「+1」ずれるので、補正量をy軸方向に「+1」とする。また、180度回転の場合には、座標変換により位置座標がずれることはないので補正の必要はない。さらに、その他の移動の場合には、補正処理を行わないこととする。
【0045】
座標補正部112は、この補正テーブル123を参照して、補正の要否を判定して、補正が不要であるならば、ステップSP19に進み、補正が必要であるならば、ステップSP21で補正テーブル123の補正量に従って位置座標を補正してから、ステップSP19に進む。
【0046】
ステップSP19では、直線描画処理部113は、座標変換後の位置座標(補正したときは補正後の位置座標)に基づき、直線分のラスタデータを作成する。
【0047】
そして、ステップSP23では、CPU110は作成したラスタデータをフレームバッファ122に保存する。
その後、フレームバッファに保存されたラスタデータが少なくとも1ページ分蓄積されると、そのラスタデータがプリンタエンジンインターフェース150を介してプリンタエンジン300に送信される。そして、プリンタエンジン300は、そのラスタデータを所定の方法で出力する。
【0048】
以上の処理により、座標変換前後において描画ピクセルのズレが解消されることになるが、以下にその例を示す。
図5は、y軸方向の平行移動に係る、入力側の座標系における座標変換前の直線分及び描画ピクセルを示す模式図と、出力側の座標系における、補正処理を行わない直線分及び描画ピクセルと、補正処理を行った直線分及び描画ピクセルを示す模式図である。また、図6は、右90度回転に係る、入力側の座標系における座標変換前の直線分及び描画ピクセルを示す模式図と、出力側の座標系における、補正処理を行わない直線分及び描画ピクセルと、補正処理を行った直線分及び描画ピクセルを示す模式図である。
図5及び図6に示すように、上述の補正処理により、座標変換による描画ピクセルのズレが解消されている。
【0049】
[変形例]
[第一変形例]
上述の説明においては、座標変換処理を行った後に補正処理の要否を判定して、必要な場合には補正処理を行うものであるが、そうではなくて、座標変換処理の前に、補正処理を行ってもよい。
【0050】
図7は、第二実施例における描画処理の流れを示すフローチャート図である。
まず、ステップSP41では、ホストコンピュータから、入力インターフェース140にPDLデータが入力される。このPDLデータには、直線分データ及び座標変換マトリクスデータが含まれており、CPU110は、それらのPDLデータをワークメモリ121に保存する。
【0051】
ステップSP43では、座標補正部112は、入力された座標マトリクスデータに基づき、その座標変換により変換前の直線分が平行移動するのか、回転移動するのかを判定する平行/回転移動判定処理を行う。具体的な判定処理の流れは、上述の図3における処理の流れと同様である。
【0052】
次に、SP45では、座標補正部112は、補正テーブル123、及び、平行/回転移動判定処理の結果に基づき、補正が必要か否かを判定する。
【0053】
この判定においては、図4(B)に示す補正テーブル123を用いる。
同図(B)に示すように、右回転の場合には、座標変換により位置座標がx軸方向に「+1」及びy軸方向に「+1」ずれるので、そのズレを考慮して座標変換前の位置座標に加える補正量をx軸方向に「+1」及びy軸方向に「+1」とする。また、左回転の場合には、座標変換により位置座標はずれないので補正の必要はない。また、y軸方向への平行移動の場合には、座標変換により位置座標がy軸方向に「+1」ずれるので、そのズレを考慮して座標変換前の位置座標に加える補正量をx軸方向に「+1」とする。また、180度回転の場合には、座標変換により位置座標がずれることはないので補正の必要はない。さらに、その他の移動の場合には、補正処理を行わないこととする。
【0054】
図3に戻り、座標補正部112は、この補正テーブル123を参照して、補正の要否を判定して、補正が不要であるならば、ステップSP47に進み、補正が必要であるならば、ステップSP49で補正テーブル123の補正量に従って座標変換前の位置座標を補正してから、ステップSP47に進む。
【0055】
ステップSP47では、座標変換部111は、座標変換マトリクスデータに従い、直線分データの始点及び終点の位置座標(補正が必要であった直線分データについては補正後の位置座標)を座標変換する。
【0056】
ステップSP49では、直線描画処理部113は、座標変換後の位置座標に基づき、直線分を描画するためのラスタデータを作成する。
【0057】
ステップSP51では、CPU110は、作成したラスタデータをフレームバッファ122に保存する。
その後、フレームバッファに保存されたラスタデータが少なくとも1ページ分蓄積されると、そのラスタデータがプリンタエンジンインターフェース150を介してプリンタエンジン300に送信される。そして、プリンタエンジン300は、そのラスタデータを所定の方法で出力する。
【0058】
以上の処理により、座標変換による描画ピクセルのズレが解消されることになる。
【0059】
[第二変形例]
上述の説明においては、x軸又はy軸に平行な直線分の座標変換に関する補正について説明した。次に、斜線(つまり、x軸又はy軸の何れにも平行でない直線分)の座標変換に関する補正について説明する。
【0060】
図8(A)は、斜線を座標変換した場合、上記第一実施例又は第二実施例で説明した補正処理を行ったとき(即ち、図4(A)又は(B)の補正テーブル123を用いて補正処理を行ったとき)の座標変換前後の斜線の直線分データ及び描画ピクセルを示す模式図である。
同図(A)に示すように、図4(A)又は図4(B)に示す補正テーブル123の補正量を用いて、斜線の補正を行うと、直線分の一部の描画ピクセルの位置がずれてしまう。
そこで、x軸又はy軸に平行な直線分の場合の補正量より少ない補正量を用いて補正を行うと、図4(B)に示すような描画ピクセルとなる。このx軸又はy軸に平行な直線分の場合の補正量より少ない補正量というのは、図4(A)に示す座標変換後の補正にあっては、「−1」より大きく「0」より小さい値であれば何でもよい。また、図4(B)に示す座標変換前の補正にあっては「0」より大きく「1」より小さい値であれば何でもよい。
【0061】
従って、本実施例の処理においては、直線分が斜線であるか否かを判定する過程を設け、その結果に従って補正量を調節すればよい。
図9に、斜線判定過程を含む平行/回転移動判定処理の処理流れを示すフロチャート図を示す。
ステップSP61では、直線分が斜線であるか否かの判定を行う。具体的には、その直線分の始点及び終点の位置座標のうち、x座標同士又はy座標同士が等しいときには、直線分はy軸又はx軸に平行な直線分であると判定し、それ以外の場合は、斜線であると判定する。
【0062】
そして、その判定の結果、斜線であると判定された場合には、ステップSP62に進み、直線分データの所定の場所に斜線であることを示す斜線フラグを立てる。
【0063】
ステップSP63以下の処理は上述の説明と同様である。そして、直線分データの補正処理時には、斜線フラグの有無により補正量が定められるのである。
【0064】
[その他]
なお、上述の直線分データは、1ピクセルの幅を有する直線分データであるものとして説明した。しかし、数ピクセル以上の太い直線分(以下、太線と呼ぶ)が描画される場合もある。このような場合は、上記補正は必要ない。なぜなら、太線が描画処理される場合にあっては、描画処理装置100にはその直線分の輪郭である矩形を示すデータが与えられ、その矩形内部を塗りつぶす処理が行われるからである。
従って、描画処理装置100に太線を示すデータが与えられたときには、CPU110は、上述の補正処理を行わないようにするような実施形態をとってもよい。
【0065】
【発明の効果】
上述したように本発明によれば、入力側と出力側との座標変換前後で、描画ピクセルがずれることのない描画処理装置及び描画処理方法及び記録媒体を提供することが可能となる。
【図面の簡単な説明】
【図1】本発明の一実施形態である描画処理装置の構成を示すブロック図である。
【図2】描画処理装置100の直線分描画処理を示すフローチャート図である。
【図3】平行/回転移動判定処理を示すフローチャート図である。
【図4】(A)は座標変換後に補正処理を行う場合における、ワークメモリ121に記憶される補正テーブルの構成を示す図であり、(B)は座標変換前に補正処理を行う場合における、ワークメモリ121に記憶される補正テーブルの構成を示す図である。
【図5】y軸方向の平行移動に係る、座標変換前の直線分及び描画ピクセルと、補正処理を行わない座標変換後の直線分及び描画ピクセルと、補正処理を行った座標変換後の直線分及び描画ピクセルとを示す模式図である。
【図6】右回転移動に係る、座標変換前の直線分及び描画ピクセルと、補正処理を行わない座標変換後の直線分及び描画ピクセルと、補正処理を行った座標変換後の直線分及び描画ピクセルとを示す模式図である。
【図7】第二実施例における処理を示すフローチャート図である。
【図8】(A)は、図4に示す補正テーブルを用いて補正処理を行ったときの座標変換前後の斜線の直線分及び描画ピクセルを示す模式図である。(B)は、図4に示す補正量より少ない補正量を用いて補正を行ったときの座標変換前後の斜線の直線分及び描画ピクセルを示す模式図である。
【図9】斜線判定を含む平行/回転移動判定処理の処理流れを示すフローチャート図である。
【図10】平行移動にかかる、座標変換前後の直線分及び描画ピクセルを示す模式図である。
【図11】回転移動にかかる、座標変換前後の直線分及び描画ピクセルを示す模式図である。
【図12】平行移動にかかる、座標変換前後の斜線の直線分及び描画ピクセルを示す模式図である。
【符号の説明】
100・・・描画処理装置、110・・・CPU、111・・・座標変換部、
112・・・座標補正部、113・・・直線描画処理部、120・・・RAM
121・・・ワークメモリ、122・・・フレームバッファ、
123・・・補正テーブル、130・・・ROM、131・・・制御プログラム、
140・・・入力インターフェース、
150・・・プリンタエンジンインタフェース、160・・システムバス、
200・・・ネットワーク、300・・・プリンタエンジン[0001]
BACKGROUND OF THE INVENTION
The present invention relates to a drawing processing apparatus and method for converting a coordinate system between an input side and an output side of straight line segment data created using PDL by affine transformation.
[0002]
[Prior art]
A PDL (Printing Discription Languege) printer is provided with drawing data created by PDL from a host computer which is a data supply source, and performs printing processing based on the drawing data.
Here, the host computer which is the drawing data input side and the printer which is the output side each have a unique device space, and the figure (here, a straight line segment) indicated by the drawing data is represented by each. We grasp on device space. When drawing data is given from the input side to the output side, the device space on the input side is converted to the device space on the output side by so-called affine transformation.
[0003]
[Problems to be solved by the invention]
FIG. 10 shows the coordinate system of the device space on the input side and the coordinate system of the device space on the output side.
As shown in the figure, the positive direction of the vertical axis (y axis) of the input side coordinate system is downward, but the positive direction of the vertical axis (y axis) of the output side coordinate system is upward. Is different.
Here, it is assumed that a straight line having a width of 1 pixel is drawn. Pixels displayed on an input-side user interface (for example, a display device) or an output-side drawing output medium (for example, recording paper) are represented by (x, y) as input coordinates.
[0004]
[Expression 1]
Figure 0003769972
[0005]
Defined as a set of points (x ′, y ′) specified by.
FIG. 10 shows pixels displayed on an input-side user interface (for example, a display device) and an output-side drawing output medium (for example, recording paper) according to this equation.
As shown in the figure, the pixels actually displayed are shifted by one pixel between the input side and the output side. This is because the positive direction of the vertical axis is opposite between the input side and the output side.
[0006]
A similar phenomenon occurs when a figure displayed on the input side is rotated 90 degrees to the right and displayed on the output side. FIG. 11 illustrates the case where the straight line displayed on the input side is rotated 90 degrees to the right and displayed on the output side.
As shown in the figure, the drawing pixel to be output originally and the drawing pixel actually drawn are shifted by one pixel in the vertical axis direction and by one pixel in the horizontal axis direction.
[0007]
FIG. 12 shows a case where the straight line segment is not parallel to either the vertical axis or the horizontal axis (hereinafter, such a straight line segment is referred to as a diagonal line).
As shown in the figure, pixels are drawn illegally at the end point of the start point of the straight line.
[0008]
The present invention has been made in view of the above-described circumstances, and provides a drawing processing device, a drawing processing method, and a recording medium that prevent drawing pixels for a straight line to be displayed before and after coordinate conversion of a coordinate system. The purpose is to do.
[0009]
[Means for Solving the Problems]
To solve the problems described above, the present invention provides a coordinate system in the drawing data input device, the drawing processing unit performs processing for converting the coordinate system of drawing image data output device, the drawing pixel location for each type of the conversion process Using the correction amount storage means for storing the correction amount of the position coordinates of the drawing data, which is determined based on the deviation before and after the coordinate conversion of the coordinates, and the correction amount stored in the correction amount storage means, the drawing data And a coordinate correction means for correcting the position coordinates.
[0010]
Comprising a conversion type determination means determines the type of pre-Symbol conversion process, the correction amount storage means be configured to store the correction amount determined for each of the conversion type is determined by the conversion type determining means Good.
[0011]
Before Symbol conversion type determination means may for determining said transformation type based on a predetermined condition given from the input side.
[0012]
Before Symbol conversion type determination means may for determining said transformation type based on the coordinate transformation matrix given from the input side.
[0013]
Before SL coordinate correction means, prior to the transformation process may be performed to correct the positional coordinates of the straight line segments.
[0014]
Before SL correcting means, after the conversion processing, the correction of the position coordinates of the straight line segment may be a row so.
[0015]
Before SL linear content, comprising a judgment means for judging whether or not parallel to the one of the plurality of coordinate axes coordinate system has the drawing data input, said correcting means, said determining means is the straight line segment is the When it is determined that it is not parallel to any of a plurality of coordinate axes, the correction may be performed using a correction amount obtained by multiplying the correction amount by a fixed value .
[0016]
And determining means for determining whether or not the line indicated by the drawing data is thicker than a line of a minimum output unit that can be output by the output device, and the correcting means includes a thickness of the line. When the determination means for determining whether the line indicated by the drawing data is thicker than the line of the minimum output unit, the position coordinates of the drawing data may not be corrected.
[0017]
Further, the present invention is determined based on the process of converting the coordinate system in the drawing data input apparatus to the coordinate system in the drawing data output apparatus, and the shift before and after the coordinate conversion of the drawing pixel position coordinates for each type of the conversion process. And a coordinate correction process for correcting the position coordinates of the drawing data using a correction amount of the position coordinates of the drawing data. Further, the present invention relates to the position coordinates of the drawing data determined based on the shift before and after the coordinate conversion of the drawing pixel position coordinates for each type of converting the coordinate system in the drawing data input apparatus to the coordinate system in the drawing data output apparatus. Using a correction amount, a coordinate correction process for correcting the position coordinates of the drawing data, and a process for converting into a coordinate system corresponding to the coordinate correction process;
The present invention provides a drawing processing method characterized by comprising:
[0018]
Comprising determining conversion type determination process the type of pre-Symbol conversion processing, the coordinate correction process may be carried out coordinate transformation according to the transformation type determining the type of conversion process which is determined by the process.
[0019]
Before Symbol conversion type determination process may be for determining said transformation type based on the coordinate transformation matrix given from the input device.
[0020]
Before Symbol conversion type determination process, data relating to the size of the recording paper given from the input side, and, even in the so determining said transformation type by using the information about the size of the recording paper that the output device is an output rendering Good.
[0023]
Is data indicating a linear component before Symbol drawing data, the straight line segments is provided with a determination process whether or not parallel to any of a plurality of coordinate axes coordinate system having in the input device, the coordinates In the correction process, when it is determined that the straight line segment is not parallel to any of the plurality of coordinate axes in the process of determining whether or not they are parallel, the correction amount determined for each conversion type is set. You may make it perform the said correction | amendment using the value obtained by multiplying a fixed numerical value as a correction amount .
[0024]
Before Symbol line indicating the drawing data, the output device comprises a determining process whether the thicker line than the line of minimum output unit capable of outputting the correction process, the thickness of the wire When it is determined that the line indicated by the drawing data is thicker than the line of the minimum output unit in the determination process for determining the thickness, the position coordinates of the drawing data may not be corrected .
[0025]
The present invention also provides a computer-readable recording medium in which a program for executing the drawing output method is recorded.
[0026]
DETAILED DESCRIPTION OF THE INVENTION
[Constitution]
FIG. 1 is a block diagram showing a configuration of a drawing processing apparatus 100 according to an embodiment of the present invention.
The drawing processing apparatus 100 includes a CPU 110, a RAM 120, a ROM 130, an input interface 140, a printer engine interface 150, and the like, which are connected to each other via a system bus 160.
[0027]
The input interface 140 is connected to a host computer (not shown) as a data supply source via the network 200, and various data are given from the host computer.
For example, the input interface 140 is supplied with drawing data created by PDL from a host computer. The drawing data is, for example, data including the start point and end point position coordinates of a straight line to be drawn (hereinafter, this data is referred to as straight line data).
The input interface 140 is given coordinate transformation matrix data created by PDL from the host computer. The coordinate conversion matrix data is data indicating a 3 × 3 matrix for converting the coordinate system on the host computer side into the coordinate system on the drawing processing apparatus 100 side. Also, using this 3 × 3 matrix, an affine transformation such as the following equation is defined.
[0028]
[Expression 2]
Figure 0003769972
[0029]
The data created by the host computer using the PDL and given to the input interface 140 will be collectively referred to as PDL data hereinafter.
[0030]
The CPU 110 controls the entire drawing processing apparatus 100 in accordance with a control program 131 stored in the ROM 130. The CPU 110 includes a coordinate conversion unit 111 that converts the position coordinates of the line segment data given to the input interface 140 according to the coordinate conversion matrix data, a coordinate correction unit 112 that corrects the line segment data, and line segment data. A line drawing processing unit 113 for rasterizing is included.
[0031]
The RAM 120 includes a work memory 121 required by the CPU 110 for drawing processing, a frame buffer 122 that stores raster data created by the CPU 110, and the like.
The work memory 121 stores a correction table 123 and the like used by the coordinate correction unit 112 to correct straight line data. The coordinate correction unit 112 of the CPU 110 refers to the correction table 123 and the coordinate conversion matrix given from the host computer to determine whether or not the given straight line segment data needs to be corrected. Correct the straight line data. The configuration of the correction table 123 will be described later.
The frame buffer 122 stores raster data for a straight line created by the straight line drawing processing unit 113.
[0032]
The printer engine interface 150 outputs raster data stored in the frame buffer 122 to the printer engine 300 under the control of the CPU 110.
[0033]
The printer engine 300 is, for example, various printers such as an electrophotographic system or an inkjet system that prints raster data on recording paper, or various display devices such as a CRT.
[0034]
[Operation]
FIG. 2 is a flowchart showing the flow of the straight line drawing process of the drawing processing apparatus 100.
[0035]
In step SP11, PDL data is input to the input interface 140 from the host computer. As described above, the PDL data includes line segment data, coordinate conversion matrix data, and the like, and the CPU 110 temporarily stores the PDL data in the work memory 121.
[0036]
In step SP13, the coordinate conversion unit 111 of the CPU 110 converts the position coordinates of the start point and end point of the line segment data according to the input coordinate conversion matrix data.
[0037]
Next, in step SP15, the coordinate correction unit 112 of the CPU 110 uses the coordinate conversion matrix data to convert the straight line on the coordinate system on the host computer side (input side) into the drawing processing device side (output). The parallel / rotational movement determination process is performed to determine whether the coordinate system has been translated or rotated.
[0038]
FIG. 3 is a flowchart showing a specific processing flow of the parallel / rotational movement determination processing. In the present embodiment, there are four types of conversion when the input side coordinate system is converted to the output side coordinate system: right 90 ° rotation, left 90 ° rotation, 180 ° rotation, and y-axis translation. However, other conversion types are not assumed.
[0039]
First, in step SP31, the coordinate correction unit 112 determines whether or not the straight line portion is rotated 90 degrees right or 90 degrees left by coordinate conversion. In the case of such rotational movement, among the components (ie, a, b, d, e, tx, ty) constituting the coordinate transformation matrix, b takes a positive or negative value, and d Takes a negative value (note that, originally, it is necessary to consider the values of a, e, etc., but since the conversion types are limited to the predetermined four types as described above, here, Only this condition needs to be considered).
Accordingly, assuming that such a case is the condition A, if the condition A is met, the process proceeds to step SP32, and if the condition A is not met, the process proceeds to step SP33.
[0040]
In step SP32, the coordinate correction unit 112 determines whether the straight line portion is rotated clockwise or counterclockwise by coordinate conversion. In the case of right rotation, b of the coordinate transformation matrix takes a negative value, and in the case of left rotation, b of the coordinate transformation matrix takes a positive value. Therefore, whether the rotation is right or left depending on whether the value of b is positive or negative. It is determined whether. That is, if the value of b is negative (if yes), it is determined to rotate 90 degrees to the right, and if the value of b is not positive (if no), it is determined to be 90 degrees to the left.
[0041]
In step SP33, the coordinate correction unit 112 determines whether or not the straight line segment is translated in the y-axis direction by coordinate conversion. When translating in the y-axis direction, ty of the coordinate transformation matrix takes a value greater than a certain constant. Therefore, such a condition is defined as condition C, and if the condition C is met, it is determined that the translation is performed in the y-axis direction. If the condition C is not met, the process proceeds to step SP34.
[0042]
In step SP34, the coordinate correction unit 112 determines whether or not the straight line portion is rotated 180 degrees by the coordinate conversion. In the case of 180 degree rotation, the coordinate transformation matrix a takes a negative value and the value e takes a positive value. Therefore, depending on whether such a condition is a condition D and whether the condition D is met, It is determined whether or not to rotate 180 degrees. That is, if the condition D is met, it is determined that the rotation is 180 degrees, and if the condition D is not met, it is determined that the rotation is not 181 degrees.
[0043]
When the above parallel / rotational movement determination process ends, the process proceeds to step SP17 in FIG. In step SP17, the coordinate correction unit 112 determines whether correction is necessary based on the correction table 123 stored in the work memory 121 and the result of the rotation / parallel movement determination process.
[0044]
FIG. 4 shows the configuration of the correction table 123 stored in the work memory 121.
As shown in FIG. 6A, in the case of right rotation, the position coordinate is shifted by “+1” in the x-axis direction and “+1” in the y-axis direction by coordinate conversion, so that the shift is returned to the original position. Therefore, the correction amount is “−1” in the x-axis direction and “−1” in the y-axis direction. Further, in the case of left rotation, there is no need for correction because the position coordinates are not shifted by coordinate conversion. Further, in the case of parallel movement in the y-axis direction, the position coordinate is shifted by “+1” in the y-axis direction due to the coordinate conversion, so the correction amount is set to “+1” in the y-axis direction. Further, in the case of 180 ° rotation, the position coordinates are not shifted by coordinate conversion, so that correction is not necessary. Further, correction processing is not performed in the case of other movements.
[0045]
The coordinate correction unit 112 refers to the correction table 123 to determine whether correction is necessary. If correction is not necessary, the process proceeds to step SP19. If correction is necessary, the correction table is determined in step SP21. After correcting the position coordinates in accordance with the correction amount 123, the process proceeds to step SP19.
[0046]
In step SP19, the line drawing processing unit 113 creates raster data for a straight line based on the position coordinates after coordinate conversion (position coordinates after correction when corrected).
[0047]
In step SP23, the CPU 110 stores the created raster data in the frame buffer 122.
Thereafter, when at least one page of raster data stored in the frame buffer is accumulated, the raster data is transmitted to the printer engine 300 via the printer engine interface 150. Then, the printer engine 300 outputs the raster data by a predetermined method.
[0048]
With the above processing, the drawing pixel shift before and after the coordinate conversion is eliminated. An example is shown below.
FIG. 5 is a schematic diagram showing a straight line segment and drawing pixels before coordinate conversion in the input-side coordinate system, and a straight line segment and drawing for which correction processing is not performed in the output-side coordinate system. It is a schematic diagram which shows a pixel, the straight line part which performed the correction process, and the drawing pixel. FIG. 6 is a schematic diagram showing a straight line segment and drawing pixels before coordinate conversion in the input-side coordinate system, and a straight line segment and drawing in the output-side coordinate system that are not subjected to correction processing, according to the 90 ° rotation to the right. It is a schematic diagram which shows a pixel, the straight line part which performed the correction process, and the drawing pixel.
As shown in FIGS. 5 and 6, the drawing pixel shift due to the coordinate conversion is eliminated by the above-described correction processing.
[0049]
[Modification]
[First modification]
In the above description, the necessity of the correction process is determined after the coordinate conversion process is performed, and the correction process is performed if necessary. However, the correction process is performed before the coordinate conversion process. Processing may be performed.
[0050]
FIG. 7 is a flowchart showing the flow of the drawing process in the second embodiment.
First, in step SP41, PDL data is input to the input interface 140 from the host computer. The PDL data includes straight line segment data and coordinate transformation matrix data, and the CPU 110 stores the PDL data in the work memory 121.
[0051]
In step SP43, the coordinate correction unit 112 performs a parallel / rotational movement determination process for determining whether the straight line before conversion is translated or rotated by coordinate conversion based on the input coordinate matrix data. The specific flow of determination processing is the same as the flow of processing in FIG.
[0052]
Next, in SP45, the coordinate correction unit 112 determines whether correction is necessary based on the correction table 123 and the result of the parallel / rotational movement determination process.
[0053]
In this determination, a correction table 123 shown in FIG.
As shown in FIG. 4B, in the case of right rotation, the position coordinates are shifted by “+1” in the x-axis direction and “+1” in the y-axis direction by coordinate conversion. The correction amount to be added to the position coordinates is “+1” in the x-axis direction and “+1” in the y-axis direction. Further, in the case of left rotation, there is no need for correction because the position coordinates are not shifted by coordinate conversion. Further, in the case of parallel movement in the y-axis direction, the position coordinate is shifted by “+1” in the y-axis direction due to the coordinate conversion. Therefore, the correction amount to be added to the position coordinate before the coordinate conversion in consideration of the deviation “+1”. Further, in the case of 180 ° rotation, the position coordinates are not shifted by coordinate conversion, so that correction is not necessary. Further, correction processing is not performed in the case of other movements.
[0054]
Returning to FIG. 3, the coordinate correction unit 112 refers to the correction table 123 to determine whether correction is necessary. If correction is not necessary, the process proceeds to step SP47. In step SP49, the position coordinates before coordinate conversion are corrected according to the correction amount of the correction table 123, and then the process proceeds to step SP47.
[0055]
In step SP47, the coordinate conversion unit 111 performs coordinate conversion of the position coordinates of the start point and end point of the line segment data (position coordinates after correction for the line segment data that had to be corrected) according to the coordinate conversion matrix data.
[0056]
In step SP49, the straight line drawing processing unit 113 creates raster data for drawing a straight line based on the position coordinates after coordinate conversion.
[0057]
In step SP51, the CPU 110 stores the created raster data in the frame buffer 122.
Thereafter, when at least one page of raster data stored in the frame buffer is accumulated, the raster data is transmitted to the printer engine 300 via the printer engine interface 150. Then, the printer engine 300 outputs the raster data by a predetermined method.
[0058]
By the above processing, the drawing pixel shift due to the coordinate conversion is eliminated.
[0059]
[Second modification]
In the above description, correction related to coordinate conversion of a straight line parallel to the x-axis or y-axis has been described. Next, correction relating to coordinate conversion of oblique lines (that is, a straight line segment that is not parallel to either the x-axis or the y-axis) will be described.
[0060]
FIG. 8A shows the case where the correction processing described in the first embodiment or the second embodiment is performed when the oblique line is coordinate-transformed (that is, the correction table 123 shown in FIG. 4A or FIG. 4B is used). It is a schematic diagram which shows the straight line segment data and drawing pixel of the oblique line before and after coordinate conversion (when correction processing is performed using).
As shown in FIG. 4A, when the oblique line is corrected using the correction amount of the correction table 123 shown in FIG. 4A or FIG. Will shift.
Therefore, when correction is performed using a correction amount smaller than the correction amount in the case of a straight line parallel to the x-axis or y-axis, a drawing pixel as shown in FIG. 4B is obtained. The correction amount smaller than the correction amount in the case of the straight line parallel to the x-axis or y-axis is larger than “−1” and “0” in the correction after the coordinate conversion shown in FIG. Any smaller value is acceptable. Further, the correction before the coordinate conversion shown in FIG. 4B may be anything as long as it is a value larger than “0” and smaller than “1”.
[0061]
Therefore, in the processing of this embodiment, a process for determining whether or not the straight line portion is a diagonal line is provided, and the correction amount may be adjusted according to the result.
FIG. 9 is a flowchart showing a processing flow of the parallel / rotational movement determination process including the oblique line determination process.
In step SP61, it is determined whether or not the straight line is a diagonal line. Specifically, when the x coordinates or the y coordinates are equal among the position coordinates of the start point and the end point of the straight line, the straight line is determined to be a straight line parallel to the y axis or the x axis, and otherwise In the case of, it is determined that it is a diagonal line.
[0062]
As a result of the determination, if it is determined that the line is a diagonal line, the process proceeds to step SP62, and a diagonal line flag indicating a diagonal line is set at a predetermined location of the line segment data.
[0063]
The processing after step SP63 is the same as described above. When the straight line data is corrected, the correction amount is determined depending on the presence or absence of the hatched flag.
[0064]
[Other]
The above-described line segment data has been described as being line segment data having a width of one pixel. However, a thick straight line portion (hereinafter referred to as a bold line) of several pixels or more may be drawn. In such a case, the above correction is not necessary. This is because, when a thick line is drawn, the drawing processing apparatus 100 is given data indicating a rectangle that is the outline of the straight line, and a process of filling the inside of the rectangle is performed.
Therefore, when data indicating a thick line is given to the drawing processing apparatus 100, the CPU 110 may take an embodiment in which the above correction processing is not performed.
[0065]
【The invention's effect】
As described above, according to the present invention, it is possible to provide a drawing processing device, a drawing processing method, and a recording medium in which drawing pixels do not shift before and after coordinate conversion between the input side and the output side.
[Brief description of the drawings]
FIG. 1 is a block diagram illustrating a configuration of a drawing processing apparatus according to an embodiment of the present invention.
FIG. 2 is a flowchart showing straight line drawing processing of the drawing processing apparatus 100;
FIG. 3 is a flowchart showing parallel / rotational movement determination processing;
4A is a diagram showing a configuration of a correction table stored in the work memory 121 when correction processing is performed after coordinate conversion, and FIG. 4B is a diagram when correction processing is performed before coordinate conversion; It is a figure which shows the structure of the correction table memorize | stored in the work memory.
FIG. 5 shows a straight line and a drawing pixel before coordinate conversion, a straight line and a drawing pixel after coordinate conversion not subjected to correction processing, and a straight line after coordinate conversion after correction processing related to the translation in the y-axis direction; It is a schematic diagram which shows a minute and a drawing pixel.
FIG. 6 shows a straight line and a drawing pixel before coordinate conversion, a straight line and a drawing pixel after coordinate conversion not subjected to correction processing, and a straight line and drawing after coordinate conversion after correction processing according to a right rotation movement; It is a schematic diagram which shows a pixel.
FIG. 7 is a flowchart showing processing in the second embodiment.
8A is a schematic diagram showing diagonal lines and drawing pixels before and after coordinate conversion when correction processing is performed using the correction table shown in FIG. 4; FIG. FIG. 5B is a schematic diagram illustrating diagonal lines and drawing pixels before and after coordinate conversion when correction is performed using a correction amount smaller than the correction amount illustrated in FIG. 4.
FIG. 9 is a flowchart showing the flow of parallel / rotational movement determination processing including oblique line determination.
FIG. 10 is a schematic diagram illustrating a straight line segment and a drawing pixel before and after coordinate conversion in parallel movement.
FIG. 11 is a schematic diagram showing a straight line segment and a drawing pixel before and after coordinate conversion in relation to rotational movement.
FIG. 12 is a schematic diagram showing a diagonal line segment and a drawing pixel before and after coordinate conversion in parallel movement.
[Explanation of symbols]
100 ... Drawing processor, 110 ... CPU, 111 ... Coordinate converter,
112 ... Coordinate correction unit, 113 ... Linear drawing processing unit, 120 ... RAM
121 ... Work memory, 122 ... Frame buffer,
123 ... Correction table, 130 ... ROM, 131 ... Control program,
140 ... input interface,
150... Printer engine interface, 160 .. system bus,
200 ... Network, 300 ... Printer engine

Claims (14)

描画データ入力装置における座標系を、描画データ出力装置における座標系に変換する処理を行う描画処理装置において、
前記変換処理の種類毎に描画ピクセル位置座標の座標変換前後のズレに基づいて定められる、描画データの位置座標の補正量を記憶する補正量記憶手段と、
前記補正量記憶手段によって記憶されている前記補正量を用いて、前記描画データの位置座標を補正する座標補正手段と
を具備することを特徴とする描画処理装置。
The coordinate system in the drawing data input device, the drawing processing unit performs processing for converting the coordinate system of drawing image data output device,
Correction amount storage means for storing a correction amount of the position coordinates of the drawing data, which is determined based on a shift before and after the coordinate conversion of the drawing pixel position coordinates for each type of the conversion process ;
A drawing processing apparatus comprising: a coordinate correction unit that corrects a position coordinate of the drawing data using the correction amount stored in the correction amount storage unit.
請求項1記載の描画処理装置において、
前記変換処理の種類を判定する変換種類判定手段を具備し、
前記補正量記憶手段は、前記変換種類判定手段によって判定された前記変換種類毎に定められる前記補正量を記憶することを特徴とする描画処理装置。
The drawing processing apparatus according to claim 1,
Comprising conversion type determination means for determining the type of the conversion process;
The drawing processing apparatus, wherein the correction amount storage unit stores the correction amount determined for each conversion type determined by the conversion type determination unit .
請求項記載の描画処理装置において、
前記変換種類判定手段は、前記入力装置から与えられる座標変換マトリクスに基づいて前記変換種類を判定することを特徴とする描画処理装置。
The drawing processing apparatus according to claim 2 ,
The drawing processing apparatus, wherein the conversion type determination means determines the conversion type based on a coordinate conversion matrix given from the input device.
請求項1記載の描画処理装置において、
前記座標補正手段は、前記座標系変換処理の前に、前記描画データの位置座標の補正を行うことを特徴とする描画処理装置。
The drawing processing apparatus according to claim 1,
The drawing processing apparatus, wherein the coordinate correction unit corrects the position coordinates of the drawing data before the coordinate system conversion process.
請求項1記載の描画処理装置において、
前記座標補正手段は、前記座標系変換処理の後に、前記描画データの位置座標の補正を行うことを特徴とする描画処理装置。
The drawing processing apparatus according to claim 1,
The drawing processing apparatus, wherein the coordinate correcting unit corrects the position coordinates of the drawing data after the coordinate system conversion process.
請求項1記載の描画処理装置において、前記描画データが直線分を示すデータであり、
前記直線分が、前記入力装置における座標系が有する複数の座標軸の何れかに平行であるか否かを判定する判定手段を具備し、
前記座標補正手段は、前記判定手段が前記直線分が前記複数の座標軸の何れにも平行ではないと判定したときには、前記補正量記憶手段より記憶されている前記補正量に一定数値を乗じて得られる値を補正量として用いて前記補正を行うことを特徴とする描画処理装置。
The drawing processing apparatus according to claim 1, wherein the drawing data is data indicating a straight line segment,
Determining means for determining whether or not the straight line segment is parallel to any of a plurality of coordinate axes of a coordinate system in the input device;
The coordinate correction means is obtained by multiplying the correction amount stored in the correction amount storage means by a constant value when the determination means determines that the straight line segment is not parallel to any of the plurality of coordinate axes. The drawing processing apparatus, wherein the correction is performed using a value obtained as a correction amount.
請求項1記載の描画処理装置において、
前記描画データが示す線が、前記出力装置が出力することが可能な最小出力単位の線より太い線であるか否かを判定する判定手段を具備し、
前記補正手段は、前記線の太さを判定する判定手段が前記描画データが示す線が前記最小出力単位の線より太い線であると判定したときには、前記描画データの位置座標の補正を行わないことを特徴とする描画処理装置。
The drawing processing apparatus according to claim 1,
Determining means for determining whether a line indicated by the drawing data is a line thicker than a line of a minimum output unit that can be output by the output device;
The correction means does not correct the position coordinates of the drawing data when the determination means for determining the thickness of the line determines that the line indicated by the drawing data is thicker than the line of the minimum output unit. A drawing processing apparatus characterized by that.
描画データ入力装置における座標系を、描画データ出力装置における座標系に変換する過程と、
前記変換過程の種類毎に描画ピクセル位置座標の座標変換前後のズレに基づいて定められる、描画データの位置座標の補正量を用いて、前記描画データの位置座標を補正する座標補正過程と
を具備することを特徴とする描画処理方法。
The coordinate system in the drawing data input device, a process of converting the coordinate system of drawing image data output device,
A coordinate correction process for correcting the position coordinates of the drawing data using a correction amount of the position coordinates of the drawing data, which is determined on the basis of a shift before and after the coordinate conversion of the drawing pixel position coordinates for each type of the conversion process. A drawing processing method characterized by:
描画データ入力装置における座標系を、描画データ出力装置における座標系に変換する種類毎に描画ピクセル位置座標の座標変換前後のズレに基づいて定められる、描画データの位置座標の補正量を用いて、前記描画データの位置座標を補正する座標補正過程と、Using the amount of correction of the position coordinates of the drawing data determined based on the shift before and after the coordinate conversion of the drawing pixel position coordinates for each type of conversion to the coordinate system in the drawing data input apparatus, A coordinate correction process for correcting the position coordinates of the drawing data;
前記座標補正過程に対応した座標系に変換する過程とA process of converting to a coordinate system corresponding to the coordinate correction process;
を具備することを特徴とする描画処理方法。The drawing processing method characterized by comprising.
請求項8又は9記載の描画処理方法において、
前記変換処理の種類を判定する変換種類判定過程を具備し、
前記座標補正過程は、前記変換種類判定過程によって判定された変換処理の種類に応じ て座標変換を行うことを特徴とする描画処理方法。
The drawing processing method according to claim 8 or 9,
A conversion type determination process for determining the type of the conversion process;
The drawing processing method characterized in that the coordinate correction process performs coordinate conversion according to the type of conversion process determined by the conversion type determination process .
請求項10記載の描画処理方法において、
前記変換種類判定過程は、前記入力装置から与えられる座標変換マトリクスに基づいて前記変換種類を判定することを特徴とする描画処理方法。
The drawing processing method according to claim 10 , wherein
The drawing processing method characterized in that the conversion type determination step determines the conversion type based on a coordinate conversion matrix given from the input device.
請求項8又は9記載の描画処理方法において、
前記描画データが直線分を示すデータであり、
前記直線分が、前記入力装置における座標系が有する複数の座標軸の何れかに平行であるか否かを判定する判定過程を具備し、
前記座標補正過程は、前記平行であるか否かを判定する過程により前記直線分が前記複数の座標軸の何れにも平行ではないと判定されたときには、前記変換種類毎に定められている前記補正量に一定数値を乗じて得られる値を補正量として用いて前記補正を行うことを特徴とする描画処理方法。
The drawing processing method according to claim 8 or 9,
The drawing data is data indicating a straight line;
A determination step of determining whether or not the straight line segment is parallel to any of a plurality of coordinate axes of a coordinate system in the input device;
In the coordinate correction process, when the straight line segment is determined not to be parallel to any of the plurality of coordinate axes in the process of determining whether or not they are parallel, the correction determined for each conversion type A drawing processing method, wherein the correction is performed using a value obtained by multiplying a quantity by a constant value as a correction amount.
請求項8又は9記載の描画処理方法において、
前記描画データが示す線が、前記出力装置が出力することが可能な最小出力単位の線より太い線であるか否かを判定する判定過程を具備し、
前記補正過程は、前記線の太さを判定する判定過程により前記描画データが示す線が前記最小出力単位の線より太い線であると判定されたときには、前記描画データの位置座標の補正を行わないことを特徴とする描画処理方法。
The drawing processing method according to claim 8 or 9,
Determining whether the line indicated by the drawing data is a line thicker than the line of the minimum output unit that can be output by the output device;
The correction process corrects the position coordinates of the drawing data when the line indicated by the drawing data is determined to be thicker than the line of the minimum output unit by the determination process of determining the thickness of the line. There is no drawing processing method.
請求項8〜13のいずれか1項に記載の描画出力方法を実行させるためのプログラムを記録したコンピュータ読み取り可能な記録媒体。A computer-readable recording medium storing a program for executing a rendering output method according to any one of claims 8-13.
JP07275299A 1999-03-17 1999-03-17 Drawing processing apparatus, drawing processing method, and recording medium Expired - Fee Related JP3769972B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP07275299A JP3769972B2 (en) 1999-03-17 1999-03-17 Drawing processing apparatus, drawing processing method, and recording medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP07275299A JP3769972B2 (en) 1999-03-17 1999-03-17 Drawing processing apparatus, drawing processing method, and recording medium

Publications (2)

Publication Number Publication Date
JP2000270201A JP2000270201A (en) 2000-09-29
JP3769972B2 true JP3769972B2 (en) 2006-04-26

Family

ID=13498411

Family Applications (1)

Application Number Title Priority Date Filing Date
JP07275299A Expired - Fee Related JP3769972B2 (en) 1999-03-17 1999-03-17 Drawing processing apparatus, drawing processing method, and recording medium

Country Status (1)

Country Link
JP (1) JP3769972B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1286256A3 (en) * 2001-07-31 2005-08-17 Ricoh Company, Ltd. Method and apparatus for image data processing capable of performing a high speed processing using a risc and an AGP
JP6131660B2 (en) * 2013-03-21 2017-05-24 カシオ計算機株式会社 Pattern division piece manufacturing apparatus and manufacturing method thereof

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0627929A (en) * 1992-07-09 1994-02-04 Oki Electric Ind Co Ltd Outline font coordinate transforming method
JPH06118935A (en) * 1992-10-08 1994-04-28 Tokyo Electric Co Ltd Character data generator

Also Published As

Publication number Publication date
JP2000270201A (en) 2000-09-29

Similar Documents

Publication Publication Date Title
JP2685548B2 (en) Method and apparatus for rotating digital image data
JP4656623B2 (en) Drawing method, image processing apparatus, and recording medium
US7330196B2 (en) Apparatus and method for image processing capable of accelerating image overlay process
JP3769972B2 (en) Drawing processing apparatus, drawing processing method, and recording medium
JP2634851B2 (en) Image processing device
JP3817473B2 (en) Image output apparatus and image processing method
US5291308A (en) Image processing apparatus using tonal degree conversion
JP3024479B2 (en) Data converter
JP3005014B2 (en) Printing equipment
JP2021093612A (en) Image processing apparatus, method for controlling image processing apparatus, and program
JP3211591B2 (en) Image processing device
JP3209359B2 (en) Image output device
JP2009237660A (en) Image processor, printer, image processing method and program for image processing
JPH11170675A (en) Printer system
JP2005275671A (en) Printing controller, printing control method and printing control program-recorded medium
JP3099556B2 (en) Data converter
JP2715475B2 (en) Graphic output device
JP2000181420A (en) Print image display apparatus and method
JP3514895B2 (en) Image expansion processing method and apparatus
JP2017054470A (en) Image processing device and image processing method
JPH06175637A (en) Method for generating character
JP2002236917A (en) Image data processor
JP2007249403A (en) Image data processing system and method
JPH07221977A (en) Binary image data smoothing enlargement processing device
JPH0930068A (en) Output device and method

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20050922

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20051018

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20051219

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20060117

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20060130

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100217

Year of fee payment: 4

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110217

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120217

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130217

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130217

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20140217

Year of fee payment: 8

LAPS Cancellation because of no payment of annual fees