JP2005246701A - Outline image forming apparatus, method and program, and storage medium - Google Patents

Outline image forming apparatus, method and program, and storage medium Download PDF

Info

Publication number
JP2005246701A
JP2005246701A JP2004057962A JP2004057962A JP2005246701A JP 2005246701 A JP2005246701 A JP 2005246701A JP 2004057962 A JP2004057962 A JP 2004057962A JP 2004057962 A JP2004057962 A JP 2004057962A JP 2005246701 A JP2005246701 A JP 2005246701A
Authority
JP
Japan
Prior art keywords
image
line
adjustment
outer frame
leader
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.)
Granted
Application number
JP2004057962A
Other languages
Japanese (ja)
Other versions
JP4400256B2 (en
Inventor
Seiji Tanaka
静治 田中
Akinori Tsuji
晃紀 辻
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.)
Seiko Epson Corp
Original Assignee
Seiko Epson 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 Seiko Epson Corp filed Critical Seiko Epson Corp
Priority to JP2004057962A priority Critical patent/JP4400256B2/en
Priority to KR1020050004934A priority patent/KR100634150B1/en
Priority to TW094102172A priority patent/TWI272546B/en
Priority to CNB2005100029316A priority patent/CN100343047C/en
Priority to US11/049,515 priority patent/US7869080B2/en
Publication of JP2005246701A publication Critical patent/JP2005246701A/en
Application granted granted Critical
Publication of JP4400256B2 publication Critical patent/JP4400256B2/en
Priority to US12/961,423 priority patent/US8102562B2/en
Priority to US13/335,739 priority patent/US8451491B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Printers Characterized By Their Purpose (AREA)
  • Record Information Processing For Printing (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide an outline image forming apparatus capable of forming an outline image of arbitrary height and width with good appearance by smoothing the seam between the leading line and the ruled line of preceding and following character images, and to provide outline image forming method and program and a storage medium. <P>SOLUTION: In the outline image forming method for forming an outline image by connecting between the upper and lower leading lines of a preceding character image and the upper and lower leading lines of a following character image using upper and lower rules lines, outline regulation for eliminating the level difference is carried out for a regulation object seam, i.e. at least one of the seam of upper leading line and ruled line of the preceding character image, the seam of lower leading line and ruled line of the preceding character image, the seam of upper leading line and ruled line of the following character image, and the seam of lower leading line and ruled line of the following character image. <P>COPYRIGHT: (C)2005,JPO&NCIPI

Description

本発明は、前キャラクタ画像と後キャラクタ画像とその間を繋ぐ上下の罫線とから成る外枠画像を作成する外枠画像作成装置、外枠画像作成方法、プログラムおよび記憶媒体に関する。   The present invention relates to an outer frame image creating apparatus, an outer frame image creating method, a program, and a storage medium that create an outer frame image composed of a front character image, a rear character image, and upper and lower ruled lines connecting them.

例えば印章画像等を作成する場合に、前後一対の括弧状画像をキャラクタ画像(前キャラクタ画像と後キャラクタ画像)として配置しておき、その間を罫線で結ぶことにより、外枠画像を作成する方法が知られている(例えば特許文献1の図35および段落[0145]〜[0147]等参照)。
特開平9−234848号公報
For example, when creating a seal image or the like, there is a method of creating an outer frame image by arranging a pair of front and rear bracket-like images as character images (front character image and rear character image) and connecting them with ruled lines. It is known (see, for example, FIG. 35 and paragraphs [0145] to [0147] of Patent Document 1).
JP-A-9-234848

この種の外枠画像を作成するための前キャラクタ画像や後キャラクタ画像として、装飾用のいわゆる絵柄を施したものがあり(図9〜図10参照)、これらを用いた外枠画像を作成する場合、その長手方向のサイズは罫線の長さで調整するにしても、幅方向のサイズは、外枠の幅となるキャラクタ画像の高さ方向のサイズであり、具体的には罫線接続用の上引出線F60U〜F80U(またはR60U〜R80U)等の上縁と下引出線F60D〜F80D(またはR60D〜R80D)等の下縁との間のサイズ(例えば図11のn[ドット]参照:以下「高さ」)で決定するので、各種の高さのキャラクタ画像を用意して配置する必要がある。   As a front character image and a rear character image for creating this type of outer frame image, there are those provided with so-called decorative patterns (see FIGS. 9 to 10), and an outer frame image using these is created. In this case, even if the size in the longitudinal direction is adjusted by the length of the ruled line, the size in the width direction is the size in the height direction of the character image that becomes the width of the outer frame, specifically for ruled line connection. Size between upper edges of upper leader lines F60U to F80U (or R60U to R80U) and lower edges of lower leader lines F60D to F80D (or R60D to R80D) (see, for example, n [dot] in FIG. 11: Therefore, it is necessary to prepare and arrange character images of various heights.

このような場合、キャラクタ画像を、各種の高さ毎にビットマップフォントのデータで用意するのでは、膨大な記憶容量を必要とし、また、ビットマップフォントに基づいて拡大/縮小して作成するのでは、曲線部等が滑らかに成りにくく、見栄え良く作成しにくい。   In such a case, preparing a character image as bitmap font data at various heights requires enormous storage capacity, and is created by enlarging / reducing based on the bitmap font. Then, the curved portion or the like is difficult to be formed smoothly, and it is difficult to create it with a good appearance.

この点、アウトラインフォントに基づく場合、比較的自由な高さのキャラクタ画像を画像展開により見栄え良く作成できるが、画像展開の際の拡大率は、「高さ」ばかりでなく「線幅」の拡大率にもなるので、任意の高さにすれば線幅が決まってしまって任意で無くなり、引出線を任意の線幅にすることは困難である。また、拡大率によっては、計算上の丸め誤差等により、同じく罫線との繋ぎ目となる上引出線F60U等の線幅と下引出線F60D等の線幅とが、ドット単位で異なる(丸め誤差により1ドット異なる)など、アンバランスな形状となることがあり、また、拡大後の引出線の線幅が、規定の罫線の幅に合わず、罫線との繋ぎ目が合わない(段になる)などの問題があった。   In this regard, when based on outline fonts, a character image with a relatively free height can be created by image development, but the enlargement ratio for image expansion is not only “height” but also “line width”. Therefore, if the height is set to an arbitrary height, the line width is determined and is arbitrarily lost, and it is difficult to make the leader line have an arbitrary line width. Also, depending on the enlargement ratio, the line width of the upper leader line F60U and the like of the lower leader line F60D, which are also connected to the ruled line, differ from dot to line due to calculation rounding error or the like (1 due to rounding error). May have an unbalanced shape (such as different dots), and the line width of the expanded leader line does not match the width of the specified ruled line, and the joint with the ruled line does not match (becomes a step) There was a problem.

本発明は、前後キャラクタ画像の引出線と罫線との間の繋ぎ目を円滑にして、任意の高さ且つ任意の線幅の外枠画像を見栄え良く作成できる外枠画像作成装置、外枠画像作成方法、プログラムおよび記憶媒体を提供することを目的とする。   The present invention provides an outer frame image creating apparatus and outer frame image that can smoothly create an outer frame image having an arbitrary height and an arbitrary line width by smoothing a joint between a leader line and a ruled line of the front and rear character images. An object is to provide a creation method, a program, and a storage medium.

本発明の外枠画像作成装置は、外枠前端部となる前キャラクタ画像の上引出線および下引出線と外枠後端部となる後キャラクタ画像の上引出線および下引出線との間を上罫線および下罫線を用いて結線することにより外枠画像を作成する外枠画像作成装置であって、前記外枠画像を配置する外枠画像領域上に前記前キャラクタ画像を配置する前キャラクタ画像配置手段と、前記外枠画像領域上に前記後キャラクタ画像を配置する後キャラクタ画像配置手段と、前記前キャラクタ画像の前記上引出線と前記後キャラクタ画像の前記上引出線との間を結ぶ前記上罫線を配置する上罫線配置手段と、前記前キャラクタ画像の前記下引出線と前記後キャラクタ画像の前記下引出線との間を結ぶ前記下罫線を配置する下罫線配置手段と、前記前キャラクタ画像の上引出線と前記上罫線との繋ぎ目、前記前キャラクタ画像の下引出線と前記下罫線との繋ぎ目、前記後キャラクタ画像の上引出線と前記上罫線との繋ぎ目、および、前記後キャラクタ画像の下引出線と前記下罫線との繋ぎ目、の少なくとも1の繋ぎ目を調整対象繋ぎ目として、前記上罫線および前記下罫線の少なくとも中央部の線幅を維持した状態で、前記調整対象繋ぎ目を構成する調整引出線と調整罫線との輪郭を段差なくするための輪郭調整を行う輪郭調整手段を備えたことを特徴とする。   The outer frame image creating apparatus according to the present invention provides a space between the upper and lower leader lines of the front character image serving as the front edge of the outer frame and the upper and lower leader lines of the rear character image serving as the rear edge of the outer frame. An outer frame image creation device that creates an outer frame image by connecting the upper ruled line and the lower ruled line, and the previous character image in which the previous character image is arranged on the outer frame image area in which the outer frame image is arranged Arrangement means, rear character image arrangement means for arranging the rear character image on the outer frame image area, and the upper leader line of the previous character image and the upper leader line of the rear character image are connected to each other. Upper ruled line arranging means for arranging an upper ruled line, lower ruled line arranging means for arranging the lower ruled line connecting the lower leader line of the previous character image and the lower leader line of the subsequent character image, and the front character A joint between the upper leader line of the image and the upper ruled line, a joint between the lower leader line of the previous character image and the lower ruled line, a joint between the upper leader line of the subsequent character image and the upper ruled line, and While maintaining at least the center width of the upper ruled line and the lower ruled line as an adjustment target joint of at least one joint of the lower leader line of the rear character image and the lower ruled line, It is characterized by further comprising contour adjusting means for performing contour adjustment for eliminating a step between the contour of the adjustment leader line and the adjustment ruled line constituting the adjustment target joint.

また、本発明の外枠画像作成方法は、外枠前端部となる前キャラクタ画像の上引出線および下引出線と外枠後端部となる後キャラクタ画像の上引出線および下引出線との間を上罫線および下罫線を用いて結線することにより外枠画像を作成する外枠画像作成方法であって、前記前キャラクタ画像の上引出線と前記上罫線との繋ぎ目、前記前キャラクタ画像の下引出線と前記下罫線との繋ぎ目、前記後キャラクタ画像の上引出線と前記上罫線との繋ぎ目、および、前記後キャラクタ画像の下引出線と前記下罫線との繋ぎ目の少なくとも1の繋ぎ目を調整対象繋ぎ目として、前記上罫線および前記下罫線の少なくとも中央部の線幅を維持した状態で、前記調整対象繋ぎ目を構成する調整引出線と調整罫線との輪郭を段差なくするための輪郭調整を行うことを特徴とする。   Also, the outer frame image creation method of the present invention includes the upper and lower leader lines of the front character image serving as the front edge of the outer frame and the upper and lower leader lines of the rear character image serving as the rear edge of the outer frame. An outer frame image creation method for creating an outer frame image by connecting an upper ruled line and a lower ruled line between the upper leader line and the upper ruled line of the previous character image, and the previous character image At least a joint between the lower leader line and the lower ruled line, a joint between the upper leader line of the rear character image and the upper ruled line, and a joint between the lower leader line of the rear character image and the lower ruled line As a joint to be adjusted, a step is formed between the outline of the adjustment leader line and the adjustment ruled line constituting the adjustment target joint while maintaining at least the center width of the upper ruled line and the lower ruled line. Contour adjustment to eliminate And wherein the Ukoto.

この外枠画像作成装置および外枠画像作成方法では、外枠前端部となる前キャラクタ画像の上引出線および下引出線と外枠後端部となる後キャラクタ画像の上引出線および下引出線との間を上罫線および下罫線を用いて結線することにより外枠画像を作成するが、前後キャラクタ画像の引出線と罫線との間の繋ぎ目の少なくとも1の繋ぎ目を調整対象繋ぎ目として、罫線の少なくとも中央部の線幅を維持した状態で、調整対象繋ぎ目を構成する調整引出線と調整罫線との輪郭を段差なくするための輪郭調整を行うので、その繋ぎ目の輪郭を円滑にできる。すなわち、前後のキャラクタ画像を配置する際には、線幅に関係なく、任意の高さで配置し、罫線を配置する時には、繋ぎ目の円滑さは多少無視して例えば外縁側(外枠の外側)のみを一致させて(面一にして)配置する等により、一旦、調整前の外枠画像を作成し、その後に、繋ぎ目の円滑さを調整できるので、これにより、任意の高さ且つ任意の線幅の外枠画像を見栄え良く作成できる。   In the outer frame image creating apparatus and the outer frame image creating method, the upper and lower leader lines of the front character image serving as the front end portion of the outer frame and the upper and lower leader lines of the rear character image serving as the rear end portion of the outer frame. The outer frame image is created by connecting the upper and lower ruled lines with the upper ruled line and the lower ruled line, but at least one joint between the leader line and the ruled line of the preceding and following character images is used as the adjustment target joint. The contour of the adjustment leader line and the adjustment ruled line that make up the adjustment target seam is adjusted so that there is no level difference while maintaining the line width of at least the center of the ruled line. Can be. That is, when arranging the character images before and after, regardless of the line width, when arranging the ruled lines, ignore the smoothness of the joints somewhat, for example, on the outer edge side (outer frame side). The outer frame image before adjustment can be created once by aligning (outside) only (aligned), etc., and then the smoothness of the joint can be adjusted. In addition, an outer frame image having an arbitrary line width can be created with good appearance.

また、上述の外枠画像作成装置において、前記輪郭調整手段は、前記調整対象繋ぎ目を構成する調整引出線と調整罫線との外輪郭および内輪郭を無段差に輪郭調整するために、調整前の外枠画像に対して、前記調整対象繋ぎ目、前記調整引出線端部および前記調整罫線端部を含む画像調整領域を設定する画像調整領域設定手段と、前記画像調整領域の前記調整引出線側の端と前記調整引出線の外輪郭および内輪郭との引出線側上交点および引出線側下交点を求めると共に、前記画像調整領域の前記調整罫線側の端と前記調整罫線の外輪郭および内輪郭との罫線側上交点および罫線側下交点を求める交点規定手段と、前記引出線側上交点と前記罫線側上交点とを段差なく結ぶ上輪郭を有するとともに、前記引出線側下交点と前記罫線側下交点とを段差なく結ぶ下輪郭を有する接続画像を、前記調整前の外枠画像の前記画像調整領域内の画像の代わりに配置する接続画像配置手段と、を有することが好ましい。   In the outer frame image creation device described above, the contour adjustment unit may adjust the outer contour and inner contour of the adjustment leader line and the adjustment ruled line constituting the adjustment target joint steplessly without adjustment. Image adjustment region setting means for setting an image adjustment region including the adjustment target joint, the adjustment leader line end, and the adjustment ruled line end with respect to the outer frame image, and the adjustment leader line of the image adjustment region A leader-side upper intersection point and a leader-line lower intersection point between the side edge and the outer and inner contours of the adjustment leader line, and an outer contour of the adjustment ruler line and the edge of the adjustment ruler line in the image adjustment area; Intersection defining means for obtaining a ruled line side upper intersection and a ruled line side lower intersection with the inner contour, and an upper contour that connects the leader line side upper intersection and the ruled line side upper intersection without a step, and the leader line lower intersection The ruled line side lower intersection and The connection image having a lower profile which connects without step, it is preferred to have a connection image placement means for placing in place of the image of the image adjustment area of the unadjusted outer frame images.

この外枠画像作成装置では、調整前の外枠画像に対して、調整対象繋ぎ目を含む画像調整領域を設定し、画像調整領域の前記調整引出線側の端と調整前の上引出線または下引出線(調整引出線)の外輪郭および内輪郭との引出線側上交点および引出線側下交点を求め、画像調整領域の調整罫線側の端と上罫線または下罫線(調整罫線)の外輪郭および内輪郭との罫線側上交点および罫線側下交点を求め、接続画像として、引出線側上交点と罫線側上交点とを段差なく結ぶ上輪郭を有するとともに、引出線側下交点と罫線側下交点とを段差なく結ぶ下輪郭を有する接続画像を、調整前の外枠画像の画像調整領域内の画像の代わりに配置するので、調整対象繋ぎ目の輪郭を調整でき、このため、この線を直線または滑らかな曲線等により段差なく結ぶことにより、調整対象繋ぎ目を構成する調整引出線と調整罫線との輪郭を段差なくできる。   In this outer frame image creation device, an image adjustment area including an adjustment target joint is set for the outer frame image before adjustment, and the adjustment leader side end of the image adjustment area and the upper leader line before adjustment or Obtain the leader-side upper intersection and the leader-side lower intersection with the outer and inner contours of the lower leader (adjustment leader), and adjust the adjustment ruler-side edge and upper ruled line or lower ruled line (adjusted ruled line) of the image adjustment area. A ruled line side upper intersection point and a ruled line side lower intersection point with the outer contour and the inner contour are obtained, and the connection image has an upper contour that connects the leader line side upper intersection point and the ruled line side upper intersection point without any step, and a leader line side lower intersection point. Since the connection image having the lower contour connecting the lower intersection of the ruled line side without any step is arranged instead of the image in the image adjustment area of the outer frame image before adjustment, the contour of the adjustment target joint can be adjusted. This line is straight or smooth with no step The Bukoto, the contour of the adjusting lead wire constituting the adjusted joint and adjust borders can no step.

また、上述の各外枠画像作成装置において、前記外枠画像の幅となる前記上罫線の上縁と前記下罫線の下縁との間のサイズを、前記前キャラクタ画像および前記後キャラクタ画像の高さとし、前記上罫線および前記下罫線の線幅を外枠の線幅として、前記高さおよび前記線幅の少なくとも一方をドット単位で決定可能なサイズ決定手段をさらに備えたことが好ましい。   Further, in each of the outer frame image creation devices described above, the size between the upper edge of the upper ruled line and the lower edge of the lower ruled line, which is the width of the outer frame image, is set to the size of the front character image and the rear character image. Preferably, the apparatus further comprises size determining means that can determine the height and the line width of the lower ruled line as the line width of the outer frame, and determine at least one of the height and the line width in dot units.

この外枠画像作成装置では、高さや線幅をドット単位で直接指定できるので、所望のサイズ(高さ、線幅)の外枠画像を、見栄え良く且つ容易に作成できる。   In this outer frame image creation device, the height and line width can be directly specified in dot units, so that an outer frame image of a desired size (height, line width) can be created with good appearance and easily.

また、上述の各外枠画像作成装置において、前記輪郭調整手段は、調整前の外枠画像のうちの前記調整対象繋ぎ目を含む画像調整領域に配置可能な前記輪郭調整のための輪郭調整画像を記憶する輪郭調整画像記憶手段と、前記調整前の外枠画像に対して前記画像調整領域において前記輪郭調整画像を利用した画素対応の論理演算を施す論理演算手段と、を有することが好ましい。   Further, in each of the outer frame image creation devices described above, the contour adjustment unit is configured to perform contour adjustment for the contour adjustment that can be arranged in an image adjustment region including the adjustment target joint in the outer frame image before adjustment. It is preferable to include a contour adjustment image storage unit that stores the image and a logical operation unit that performs a pixel-based logical operation using the contour adjustment image in the image adjustment region on the outer frame image before adjustment.

この外枠画像作成装置では、調整前の外枠画像のうちの調整対象繋ぎ目を含む
画像領域を調整画像領域とし、その調整画像領域に配置可能な輪郭調整のための輪郭調整画像を記憶しておき、調整前の外枠画像に対して調整画像領域において輪郭調整画像を利用した画素対応の論理演算を施す。このため、調整対象繋ぎ目の形状、すなわち円滑さを伴わない形態として生じ得る各種の形状を想定し、それを調整可能な形状の画像を、輪郭調整画像として各種用意(記憶)しておき、それを用いた適切な論理演算を外枠画像に施すことにより、調整対象繋ぎ目を構成する調整引出線と調整罫線との輪郭を段差なく調整できる。なお、前後キャラクタ画像等をアウトラインフォントのデータで用意する場合、輪郭調整画像もアウトラインフォントのデータとして用意することが望ましく、このようにしておけば、前後キャラクタ画像等の拡大率に合わせて同様に拡大して利用でき、利用しやすい。
In this outer frame image creation device, an image area including an adjustment target joint of the outer frame images before adjustment is set as an adjustment image area, and a contour adjustment image for contour adjustment that can be arranged in the adjustment image area is stored. In addition, a logical operation corresponding to a pixel using the contour adjustment image in the adjustment image region is performed on the outer frame image before adjustment. For this reason, assuming the shape of the joint to be adjusted, that is, various shapes that can occur as a form without smoothness, various images of shapes that can be adjusted are prepared (stored) as contour adjustment images, By applying an appropriate logical operation using this to the outer frame image, it is possible to adjust the contours of the adjustment leader lines and the adjustment ruled lines constituting the adjustment target joint without any step. In addition, when preparing the front and rear character images, etc. with outline font data, it is desirable to prepare the contour adjustment image as outline font data. It can be expanded and used.

また、前記輪郭調整画像を利用する上述の外枠画像作成装置において、前記輪郭調整画像記憶手段は、前記輪郭調整画像の一種として、前記画像調整領域において前記調整対象繋ぎ目を形成する上罫線または下罫線の罫線幅に一致する長さの罫線側辺と、前記調整対象繋ぎ目を形成する上引出線または下引出線の引出線幅に一致する長さの引出線側辺と、を有し、前記罫線側辺と前記引出線側辺の両端同士を結線した単一閉曲線を輪郭線として、その輪郭線に沿った外形内を論理「1」の有効画素で塗りつぶした論理和画像を記憶する論理和画像記憶手段を有し、前記論理演算手段は、前記論理和画像の前記罫線側辺を前記罫線幅に合わせ、前記引出線側辺を前記引出線幅に合わせて、対応する論理和演算により、前記外形画像に前記論理和画像を付加する論理和演算手段を有することが好ましい。   In the outer frame image creating apparatus using the contour adjustment image, the contour adjustment image storage unit may be an upper ruled line that forms the adjustment target joint in the image adjustment region as one type of the contour adjustment image. A ruled line side having a length matching the ruled line width of the lower ruled line, and a leader line side having a length matching the leader line width of the upper leader line or the lower leader line forming the adjustment target joint A logical sum image in which a single closed curve obtained by connecting both ends of the ruled line side and the leader line side is used as an outline and the inside of the outline along the outline is filled with effective pixels of logic “1” is stored. Logical OR image storage means, wherein the logical operation means adjusts the ruled line side of the logical OR image to the ruled line width, and matches the leader line side to the leader line width, and performs a corresponding logical OR operation. The logical sum is added to the outline image by It is preferred to have a logical OR operation means for adding the image.

この外枠画像作成装置では、輪郭調整画像として、論理和画像を利用する。この論理和画像は、罫線幅に一致する長さの罫線側辺と、引出線幅に一致する長さの引出線側辺と、を有して、それらの両端同士を結線した単一閉曲線を輪郭線として、その輪郭線に沿った外形内を論理「1」の有効画素(例えば黒)で塗りつぶした、いわゆるべた塗り画像である。この場合、罫線側辺を罫線幅に合わせ、引出線側辺を引出線幅に合わせて、外枠画像に対して論理和演算をすれば、外枠画像に論理和画像を重ねる(付加する)ことになる。このため、調整対象繋ぎ目を覆うように、罫線と引出線の輪郭が円滑に繋がる。すなわち、調整対象繋ぎ目を円滑にして見栄え良くできる。   In this outer frame image creation device, a logical sum image is used as the contour adjustment image. This logical sum image has a ruled line side having a length matching the ruled line width and a leader line side having a length matching the leader line width, and a single closed curve in which both ends thereof are connected to each other. A contour image is a so-called solid image in which the inside of the contour along the contour line is painted with effective pixels of logical “1” (for example, black). In this case, if a logical sum operation is performed on the outer frame image by aligning the ruled line side with the ruled line width and the leader line side with the leader line width, the logical sum image is superimposed on (added to) the outer frame image. It will be. For this reason, the outlines of the ruled lines and the leader lines are smoothly connected so as to cover the adjustment target joint. That is, the adjustment target joint can be made smooth and attractive.

また、前記輪郭調整画像を利用する上述の各外枠画像作成装置において、前記輪郭調整画像記憶手段は、前記画像調整領域において前記調整対象繋ぎ目の前記外枠画像の外側に相当する外縁は円滑であり且つ前記外枠画像の内側に相当する内縁において前記調整対象繋ぎ目が目立つときの前記輪郭調整画像の一種として、前記上罫線と前記下罫線の前記内縁側同士間の距離に一致する長さの罫線側辺と、前記上引出線と前記下引出線の前記内縁側同士間の距離に一致する長さの引出線側辺と、を有し、前記罫線側辺と前記引出線側辺の両端同士を結線した単一閉曲線を輪郭線として、その輪郭線を含む内部が全て論理「0」の無効画素で塗りつぶされた論理積画像を記憶する論理積画像記憶手段を有し、前記論理演算手段は、前記論理積画像の前記罫線側辺を前記上罫線と前記下罫線の前記内縁側同士間に合わせ、前記引出線側辺を前記上引出線と前記下引出線の前記内縁側同士間に合わせて、対応する論理積演算により、前記外形画像から前記内縁側の凸部を削除する論理積演算手段を有することが好ましい。   In each of the above-described outer frame image creation devices that use the contour adjustment image, the contour adjustment image storage means has a smooth outer edge corresponding to the outside of the outer frame image of the adjustment target joint in the image adjustment region. And a length corresponding to the distance between the inner edge sides of the upper ruled line and the lower ruled line as a kind of the contour adjustment image when the adjustment target joint is conspicuous at the inner edge corresponding to the inner side of the outer frame image A ruled line side, and a leader line side having a length matching the distance between the inner edge sides of the upper and lower leader lines, the ruled line side and the leader line side And a logical product image storage means for storing a logical product image in which the inside including the contour line is filled with invalid pixels of logic “0”. The computing means is the logical product image. The ruled line side is aligned between the inner edge sides of the upper ruled line and the lower ruled line, the leader line side edge is aligned between the inner edge sides of the upper leader line and the lower leader line, and corresponding AND operation is performed. It is preferable that a logical product calculating means for deleting the convex portion on the inner edge side from the outer shape image is provided.

この外枠画像作成装置では、輪郭調整画像として、論理積画像を利用する。この論理積画像は、外縁側(外枠の外側)のみを一致させて(面一にして)配置する場合に適する。すなわち、外枠画像の外縁となる上引出線の上縁と上罫線の上縁とが一致するように結線し、外縁となる下引出線の下縁と下罫線の下縁とが一致するように結線すると、外縁は円滑になるので、このような場合であって、外枠画像の内側に相当する内縁において調整対象繋ぎ目が目立つときの輪郭調整画像の一種として、論理積画像を用意(記憶)しておく。この論理積画像は、外枠の内部となる上罫線と下罫線の内縁側同士間の距離に一致する長さの罫線側辺と、上引出線と下引出線の内縁側同士間の距離に一致する長さの引出線側辺と、を有して、罫線側辺と引出線側辺の両端同士を結線した単一閉曲線を輪郭線として、その輪郭線を含む内部が全て論理「0」の無効画素で塗りつぶされた、いわゆる空白画像である。すなわち、罫線側辺を罫線の内縁の間に合わせ、引出線側辺を引出線の内縁の間に合わせて、外枠画像に対して論理積演算をすれば、外枠画像のうちの論理積画像と重なる部分を削除することになる。このため、論理積画像として円滑な輪郭を有する論理積画像を用意しておけば、その輪郭に沿って外枠画像の輪郭を削って罫線と引出線の輪郭を円滑に繋げることができ、外枠画像を見栄え良く調整できる。   In this outer frame image creation device, a logical product image is used as the contour adjustment image. This logical product image is suitable for the case where only the outer edge side (outer side of the outer frame) is matched (aligned). In other words, the upper edge of the upper leader line, which is the outer edge of the outer frame image, is connected so that the upper edge of the upper ruled line matches, and the lower edge of the lower leader line, which is the outer edge, matches the lower edge of the lower ruled line. In this case, a logical product image is prepared as a kind of contour adjustment image when the adjustment target joint is conspicuous at the inner edge corresponding to the inner side of the outer frame image. Remember). This logical product image shows the distance between the ruled line side of the length that matches the distance between the inner edges of the upper and lower ruled lines inside the outer frame, and the distance between the inner edges of the upper and lower leader lines. A single closed curve having a leader line side having a matching length and connecting both ends of the ruled line side and the leader line side is defined as a contour line, and the inside including the contour line is all logical “0”. This is a so-called blank image filled with invalid pixels. That is, if the ruled line side is aligned with the inner edge of the ruled line, the leader line side is aligned between the inner edges of the leader line, and logical product operation is performed on the outer frame image, the logical product image of the outer frame image and The overlapping part will be deleted. For this reason, if a logical product image having a smooth contour is prepared as a logical product image, the contour of the outer frame image can be cut along the contour to smoothly connect the contours of the ruled line and the leader line. You can adjust the frame image nicely.

また、前記輪郭調整画像を利用する上述の各外枠画像作成装置において、前記上罫線配置手段は、前記上引出線の前記外枠画像の外縁となる前記上引出線の上縁と前記上罫線の上縁とが一致するように一定線幅で結線し、前記下罫線配置手段は、前記外縁となる前記下引出線の下縁と前記下罫線の下縁とが一致するように前記一定線幅で結線し、前記輪郭調整手段は、前記上引出線と前記下引出線とが直接の接続点を有する場合に、前記上罫線の上縁の1点と前記下罫線の下縁の1点とを結線した第1罫線側辺と前記接続点までの前記上引出線および前記下引出線から成る単一閉曲線を第1輪郭線として、その第1輪郭線に沿った外形内を論理「1」の有効画素で塗りつぶして、前記画像調整領域として準備する画像調整領域準備手段をさらに有し、前記輪郭調整画像記憶手段は、前記輪郭調整画像の一種として、前記第1罫線側辺より両端が前記一定線幅分ずつ短い第2罫線側辺を有して他の部分は前記第1輪郭線に沿った外形より前記一定線幅分だけ狭いサイズの単一閉曲線を第2輪郭線として、その第2輪郭線に沿った外形内を論理「1」の有効画素で塗りつぶした排他的論理和画像を記憶する排他的論理和画像記憶手段を有し、前記論理演算手段は、前記第2罫線側辺を前記1罫線側辺に合わせ、他は前記第1輪郭線に沿って前記一定幅分だけずらして対応する画素同士の排他的論理和演算を行うことにより、前記外形画像から前記調整対象繋ぎ目の前記内縁側への凸部を削除する排他的論理和演算手段を有することが好ましい。   Further, in each of the above-described outer frame image creation devices using the contour adjustment image, the upper ruled line arrangement unit includes an upper edge of the upper leader line and an upper ruled line that are outer edges of the outer frame image of the upper leader line. The lower ruled line arranging means connects the fixed line so that the lower edge of the lower leader line and the lower edge of the lower ruled line coincide with each other. Connected by a width, and the contour adjusting means has one point on the upper edge of the upper ruled line and one point on the lower edge of the lower ruled line when the upper leader line and the lower leader line have a direct connection point. A single closed curve composed of the first ruled line side and the upper leader line and the lower leader line to the connection point is defined as a first contour line, and the inside of the outer shape along the first contour line is logically “1”. The image adjustment area preparation means for filling the image with effective pixels and preparing it as the image adjustment area is further applied. The contour adjustment image storage means has a second ruled line side whose both ends are shorter than the first ruled line side by the predetermined line width as a kind of the contour adjusted image, and other parts are the first A single closed curve that is narrower than the outline along one contour line by the predetermined line width is used as a second contour line, and the inside of the outline along the second contour line is filled with effective pixels of logic “1”. And an exclusive OR image storage means for storing an OR image, wherein the logical operation means aligns the second ruled line side with the one ruled line side, and the others along the first contour line. It has an exclusive OR operation means for deleting a convex portion toward the inner edge side of the adjustment target joint from the outline image by performing an exclusive OR operation between corresponding pixels with a shift by a width. preferable.

この外枠画像作成装置では、輪郭調整画像として、排他的論理和画像を利用する。この排他的論理和画像も、論理積画像と同様に、外縁側(外枠の外側)のみを一致させて(面一にして)配置する場合に適する。すなわち、外縁は円滑で内縁において調整対象繋ぎ目が目立つときの輪郭調整画像の一種として、排他的論理和画像を用意(記憶)しておく。ただし、ここでは、仮に上引出線と下引出線とがその根本で繋がっている場合など、上引出線と下引出線が直接の接続点を有する場合に適用し、また、論理演算の前に、調整画像領域を準備する。この場合の調整画像領域は、上罫線の上縁の1点と下罫線の下縁の1点とを結線した第1罫線側辺と前記接続点までの前記上引出線および前記下引出線から成る単一閉曲線を第1輪郭線として、その外形内を有効画素(例えば黒)で塗りつぶした領域である。このため、この時点で、拡大後のキャラクタ画像の上引出線と下引出線の線幅が問題にならなくなる。そして、排他的論理和画像は、第1罫線側辺より両端が一定線幅分ずつ短い第2罫線側辺を有して他の部分は第1輪郭線に沿った外形より一定線幅分だけ狭いサイズの単一閉曲線を第2輪郭線として、その第2輪郭線に沿った外形内を有効画素で塗りつぶした画像である。ここで、次に、第2罫線側辺を第1罫線側辺に合わせ、他は第1輪郭線に沿って一定幅分だけずらして対応する画素同士の排他的論理和演算を行うと、調整画像領域のサイズと排他的論理和画像のサイズとのサイズ差分だけ残る。すなわち、第1輪郭線に沿って一定線幅分だけが残り、そのままの線幅(一定線幅)の上罫線や下罫線と繋がるので、罫線と引出線の輪郭を円滑に繋げることができ、外枠画像を見栄え良く調整できる。   In this outer frame image creation device, an exclusive OR image is used as the contour adjustment image. Similar to the logical product image, this exclusive logical sum image is also suitable when only the outer edge side (outer side of the outer frame) is made coincident (to be flush). That is, an exclusive OR image is prepared (stored) as a kind of contour adjustment image when the outer edge is smooth and the joint to be adjusted is conspicuous at the inner edge. However, here, it applies when the upper and lower leader lines have a direct connection point, such as when the upper and lower leader lines are connected at the root, and before the logical operation. Prepare the adjustment image area. In this case, the adjustment image area includes a first ruled line side connecting one point of the upper edge of the upper ruled line and one point of the lower edge of the lower ruled line, and the upper leader line and the lower leader line to the connection point. A single closed curve is a first contour line, and the outline is filled with effective pixels (for example, black). Therefore, at this time, the line widths of the upper and lower leader lines of the enlarged character image do not become a problem. The exclusive OR image has a second ruled line side whose both ends are shorter than the first ruled line side by a fixed line width, and the other part is a fixed line width from the outer shape along the first contour line. This is an image in which a single closed curve having a narrow size is used as a second contour line, and the outline along the second contour line is filled with effective pixels. Here, when the second ruled line side is aligned with the first ruled line side, and the other is shifted by a certain width along the first contour line, the exclusive OR operation of the corresponding pixels is performed. Only the size difference between the size of the image area and the size of the exclusive OR image remains. That is, only a certain line width remains along the first contour line and is connected to the upper ruled line and the lower ruled line as it is (constant line width), so that the outline of the ruled line and the leader line can be smoothly connected, The outer frame image can be finely adjusted.

また、本発明のプログラムは、上述のいずれかの外枠画像作成装置の各手段を機能させること、または、上述の外枠画像作成方法を実行可能なこと、を特徴とする。   In addition, the program of the present invention is characterized in that each means of any one of the above-described outer frame image creating apparatuses is allowed to function, or the above-described outer frame image creating method can be executed.

このプログラムは、プログラム処理可能な装置によって処理されることにより、前後キャラクタ画像の引出線と罫線との間の繋ぎ目を円滑にして、任意の高さ且つ任意の線幅の外枠画像を見栄え良く作成できる。   This program is processed by a program-processable device so that the joint between the leader line and ruled line of the preceding and following character images is smoothed, and the outer frame image having an arbitrary height and an arbitrary line width is displayed. Can be created well.

また、本発明の記憶媒体は、上述のプログラムを、プログラム処理可能な装置によって読出可能に記憶することを特徴とする。   The storage medium of the present invention stores the above-described program so as to be readable by a program-processable device.

プログラム処理可能な装置において、この記憶媒体に記憶されたプログラムを読み出して実行することにより、前後キャラクタ画像の引出線と罫線との間の繋ぎ目を円滑にして、任意の高さ且つ任意の線幅の外枠画像を見栄え良く作成できる。   In an apparatus capable of processing a program, the program stored in the storage medium is read and executed, thereby smoothing the joint between the leading line and the ruled line of the front and rear character images, and at an arbitrary height and an arbitrary line. It is possible to create a beautiful outer frame image.

以下、本発明の一実施形態(第1実施形態)に係るテープ印刷装置について、添付図面を参照しながら詳細に説明する。   Hereinafter, a tape printer according to an embodiment (first embodiment) of the present invention will be described in detail with reference to the accompanying drawings.

図1および図2に示すように、このテープ印刷装置1は、装置ケース(装置本体)2により外殻が形成され、装置ケース2の前部上面には各種入力キーから成るキーボード3を備えている。また、後部上面には、その左部に開閉蓋21が取り付けられ、その右部にはディスプレイ4が配設されている。また、装置ケース2の左側部には、ポケット(テープ装着部)6と装置外部とを連通するスリット状のテープ排出口22が形成され、テープ排出口22には、送りだした印刷用テープ(以下単に「テープ」)Tを切断するテープカッタ132が臨んでいる。   As shown in FIGS. 1 and 2, the tape printing apparatus 1 has an outer shell formed by an apparatus case (apparatus body) 2, and a keyboard 3 including various input keys on the upper surface of the front of the apparatus case 2. Yes. An opening / closing lid 21 is attached to the left side of the rear upper surface, and a display 4 is disposed on the right side. Further, a slit-like tape discharge port 22 that communicates the pocket (tape mounting portion) 6 with the outside of the device is formed on the left side of the device case 2. A tape cutter 132 that simply cuts “tape” T is facing.

また、制御系から見た基本的な構成として、キーボード3やディスプレイ4を有してユーザとのインタフェースを行う操作部11と、印刷ヘッド(サーマルヘッド)7やテープ送り部120を有してポケット6内に装着したテープカートリッジCのテープTに印刷を行う印刷部12と、印刷後のテープTの切断を行う切断部13と、各種センサを有して各種検出を行う検出部14と、各種ドライバを有して各部回路を駆動する駆動部15と、テープ印刷装置1内の各部を制御する制御部20と、を備えている。このため、装置ケース2の内部には、印刷部12、切断部13、検出部14などの他、図外の回路基板が収納されている。この回路基板には、電源ユニットの他、駆動部15や制御部20の各回路などが搭載され、ACアダプタ接続口や外部から着脱可能なニッカド電池等の電池(図示省略)に接続されている。   In addition, as a basic configuration viewed from the control system, an operation unit 11 having a keyboard 3 and a display 4 to interface with a user, a print head (thermal head) 7 and a tape feeding unit 120 are provided. 6, a printing unit 12 that performs printing on the tape T of the tape cartridge C that is installed in the printer 6, a cutting unit 13 that performs cutting of the tape T after printing, a detection unit 14 that includes various sensors and performs various detections, A driving unit 15 that has a driver and drives each unit circuit, and a control unit 20 that controls each unit in the tape printer 1 are provided. For this reason, a circuit board (not shown) is housed in the apparatus case 2 in addition to the printing unit 12, the cutting unit 13, the detection unit 14, and the like. In addition to the power supply unit, each circuit of the drive unit 15 and the control unit 20 is mounted on the circuit board, and is connected to an AC adapter connection port or a battery (not shown) such as a nickel-cadmium battery that can be detached from the outside. .

テープ印刷装置1では、ユーザが、ポケット6にテープカートリッジCを装着した後、ディスプレイ4により入力・編集結果を確認しながらキーボード3により所望の文字など(文字、数字、記号、簡易図形等のキャラクタ)の印刷情報を入力して、印刷を指示すると、テープ送り部120によりテープカートリッジCからテープTを繰り出して、印刷ヘッド7によりテープTに所望の印刷を行い、印刷済み部分はテープ排出口22から随時外部に送り出される。所望の印刷が完了すると、テープ送り部120は、余白分を含むテープ長さの位置までテープTの送りを行った後、その送りを停止する。   In the tape printer 1, the user installs the tape cartridge C in the pocket 6, and then checks the input / editing result on the display 4 and confirms desired characters and the like (characters such as letters, numbers, symbols, and simple figures) with the keyboard 3. ) Is input and printing is instructed, the tape T is fed from the tape cartridge C by the tape feeding unit 120, and desired printing is performed on the tape T by the print head 7. The printed portion is the tape discharge port 22 Sent out from time to time. When the desired printing is completed, the tape feeding unit 120 feeds the tape T to the position of the tape length including the margin, and then stops the feeding.

印刷部12には、開閉蓋21の内側に、テープカートリッジCを装着するためのポケット6が設けられていて、テープカートリッジCはこの開閉蓋21を開放した状態でポケット6に対して着脱される。また、テープカートリッジCの裏面には、相異なる幅等のテープTの種別を識別できるように小さな複数の孔(図示せず)が設けられ、ポケット6には、この孔の有無を検出するマイクロスイッチなどのテープ識別センサ141が設けられていて、テープTの有無(正確にはテープカートリッジCが装着されているか否か)およびテープTの種別(正確にはテープカートリッジCの種別)を検出できるようになっている。   The printing unit 12 is provided with a pocket 6 for mounting the tape cartridge C inside the opening / closing lid 21, and the tape cartridge C is attached to and detached from the pocket 6 with the opening / closing lid 21 opened. . The back surface of the tape cartridge C is provided with a plurality of small holes (not shown) so that the types of the tape T having different widths can be identified, and the pocket 6 has a micro that detects the presence or absence of these holes. A tape identification sensor 141 such as a switch is provided to detect the presence or absence of the tape T (exactly whether or not the tape cartridge C is mounted) and the type of the tape T (exactly the type of the tape cartridge C). It is like that.

テープカートリッジCには、カートリッジケース51の内部に一定の幅(4.5mm〜48mm程度)のテープTとインクリボンRとが収容されており、印刷ヘッド7が臨む貫通開口55が形成されている。テープTは、裏面に粘着面が形成され、それが剥離紙によって覆われた構成になっている。また、テープTとインクリボンRとが重なる部分には、ヘッドユニット61に内蔵された印刷ヘッド7に対応して、プラテンローラ(プラテン)56が収納されている。テープカートリッジCが装着された状態で、印刷ヘッド7が貫通開口55から露出しているインクリボンRの裏面に当たり、発熱駆動されて所望の文字などがテープTの表面に印刷される。   In the tape cartridge C, a tape T and an ink ribbon R having a certain width (about 4.5 mm to 48 mm) are accommodated in a cartridge case 51, and a through-opening 55 through which the print head 7 faces is formed. . The tape T has a configuration in which an adhesive surface is formed on the back surface and is covered with release paper. A platen roller (platen) 56 is accommodated in a portion where the tape T and the ink ribbon R overlap with each other in correspondence with the print head 7 built in the head unit 61. With the tape cartridge C mounted, the print head 7 hits the back surface of the ink ribbon R exposed from the through opening 55 and is driven to generate heat so that desired characters and the like are printed on the surface of the tape T.

テープ送り部120は、ポケット6の側方から下方に亘る空間に配設され、動力(駆動)源として送りモータ121を備えている。テープカートリッジCがポケット6に装着され、その状態で開閉蓋21が閉塞されると、送りモータ121を駆動源として、テープリール52からテープTが繰り出され、リボン繰出リール53からインクリボンRが繰り出され、貫通開口55の位置で印刷ヘッド7がテープTとインクリボンRとを挟み込んでプラテン56に当接して、テープTとインクリボンRが相互に重なり合った状態で走行し、同期して印刷ヘッド7が駆動されて印刷が行われる。その後、インクリボンRが内部でテープ巻取リール54に巻き取られるとともに、テープTのみがスリット59を介してテープカートリッジCの外部に排出され、プラテン56の回転(リボン巻取リール54も同期回転する)が所定時間続行することで、テープTのテープ送りが続行され、テープ排出口22を介して装置外部に送り出され、テープT上の所定の切断位置がテープカッタ132の位置まで送られる。   The tape feed unit 120 is disposed in a space extending from the side of the pocket 6 to the lower side, and includes a feed motor 121 as a power (drive) source. When the tape cartridge C is mounted in the pocket 6 and the opening / closing lid 21 is closed in this state, the tape T is fed out from the tape reel 52 and the ink ribbon R is fed out from the ribbon feeding reel 53 using the feed motor 121 as a drive source. Then, the print head 7 sandwiches the tape T and the ink ribbon R at the position of the through opening 55 and abuts against the platen 56 so that the tape T and the ink ribbon R run in a mutually overlapping state, and the print head is synchronized. 7 is driven to perform printing. Thereafter, the ink ribbon R is taken up on the tape take-up reel 54 and only the tape T is discharged to the outside of the tape cartridge C through the slit 59 to rotate the platen 56 (the ribbon take-up reel 54 is also rotated synchronously). ) Is continued for a predetermined time, the tape feed of the tape T is continued, the tape T is fed out of the apparatus through the tape discharge port 22, and the predetermined cutting position on the tape T is fed to the position of the tape cutter 132.

切断部13は、テープカッタ132と、これを切断動作させるカッタモータ131と、を備えている。また、モード設定によって、自動/手動を切替可能であり、任意長印刷などの場合には手動(マニュアル)のカットキーの操作で、定長印刷などの場合には自動(オート)で、カッタモータ131を駆動する。検出部14は、前述のテープ識別センサ141を備える他、装置内各部に各種のセンサ等を備えている。駆動部15は、ディスプレイドライバ151と、ヘッドドライバ152と、モータドライバ153と、を備えている。ディスプレイドライバ151は、制御部20から出力される制御信号に基づき、その指示にしたがって、操作部11のディスプレイ4を駆動する。同様に、ヘッドドライバ152は、印刷部12の印刷ヘッド7を駆動し、モータドライバ153は、印刷部12の送りモータ121や切断部13のカッタモータ131などの各モータを駆動する。   The cutting unit 13 includes a tape cutter 132 and a cutter motor 131 that performs the cutting operation. In addition, it is possible to switch between automatic and manual depending on the mode setting. The cutter motor is operated by manual (manual) cut key for arbitrary length printing, etc., and automatically (automatic) for constant length printing. 131 is driven. In addition to the tape identification sensor 141 described above, the detection unit 14 includes various sensors in each unit in the apparatus. The drive unit 15 includes a display driver 151, a head driver 152, and a motor driver 153. The display driver 151 drives the display 4 of the operation unit 11 according to the instruction based on the control signal output from the control unit 20. Similarly, the head driver 152 drives the print head 7 of the printing unit 12, and the motor driver 153 drives each motor such as the feed motor 121 of the printing unit 12 and the cutter motor 131 of the cutting unit 13.

操作部11は、キーボード3とディスプレイ4とを備えている。ディスプレイ4は、横方向(X方向)約6cm×縦方向(Y方向)12cmの長方形の形状の内側に、96ドット×128ドットの表示画像データを表示可能な表示画面41と、各種設定状況等を表示する18個のインジケータ(図示省略)とを有し、ユーザがキーボード3からデータを入力して、キャラクタ列画像データなどの印刷画像データを作成・編集したり、その結果等を視認したり、キーボード3から各種指令・選択指示等を入力したりする際などに用いられる。   The operation unit 11 includes a keyboard 3 and a display 4. The display 4 includes a display screen 41 capable of displaying display image data of 96 dots × 128 dots inside a rectangular shape of about 6 cm in the horizontal direction (X direction) × 12 cm in the vertical direction (Y direction), various setting conditions, and the like. 18 is displayed (not shown), and the user inputs data from the keyboard 3 to create and edit print image data such as character string image data, and visually check the results. It is used when inputting various commands / selection instructions from the keyboard 3.

キーボード3には、アルファベットキー群、数字キー群、平仮名や片仮名等の仮名キー群、および外字を呼び出して選択するための外字キー群等を含む文字キー群31の他、各種の動作モードなどを指定するための機能キー群32などが配列されている。   The keyboard 3 includes an alphabet key group, a numeric key group, a kana key group such as hiragana and katakana, a character key group 31 including an external character key group for calling and selecting an external character, and various operation modes. A function key group 32 and the like for designating are arranged.

機能キー群32には、電源キー、印刷動作を指示するための印刷キー、テキスト入力時のデータ確定や改行および選択画面における各種モードの選択指示のための選択キー、各種操作を取り消すための取消キー、各種処理を中止したり確定後の文字等を必要に応じて削除する削除キー、印刷のための書式その他の各種スタイル設定のためのフォームキー、前述した手動カットのためのカットキー、並びに、それぞれ上下左右の方向へのカーソル移動や表示画面41の表示範囲を移動させるための4個のカーソルキーなどが含まれる。なお、これらは、各キー入力毎に個別にキーを設けて入力しても良いし、シフトキー等と組み合わせてより少ない数のキーを用いて入力しても良い。キーボード3は、これらの各種キーにより種々の指令およびデータを制御部20に入力する。   The function key group 32 includes a power key, a print key for instructing a printing operation, a selection key for instructing data selection at the time of text input, line feed, and selection of various modes on a selection screen, and a cancellation for canceling various operations. Key, a deletion key that cancels various processes and deletes characters after confirmation, etc., a form key for formatting for printing and other various style settings, a cut key for manual cutting as described above, and Cursor movements in the vertical and horizontal directions and four cursor keys for moving the display range of the display screen 41 are included. These may be input by providing a key for each key input, or may be input using a smaller number of keys in combination with a shift key or the like. The keyboard 3 inputs various commands and data to the control unit 20 using these various keys.

制御部20は、CPU210、ROM220、RAM230、周辺制御回路(P−CON)240を備え、互いに内部バス250により接続されている。ROM220は、CPU210で処理する制御プログラムを記憶する制御プログラム領域221の他、装置内で用意している文字等(数字、記号、図形等を含む)のフォントデータや色変換テーブルや文字修飾テーブルなどを記憶する制御データ領域222を有している。RAM230は、電源オフ時のバックアップがされていて、各種フラグ・レジスタ群231、テキストデータ領域232、表示画像データ領域233、印刷画像データ領域234、描画登録画像データ領域235、外字登録画像データ領域236、文字展開バッファ、印刷バッファなどの各種バッファ領域237などの領域を有し、各種処理の作業領域として使用される。   The control unit 20 includes a CPU 210, a ROM 220, a RAM 230, and a peripheral control circuit (P-CON) 240, which are connected to each other via an internal bus 250. The ROM 220, in addition to the control program area 221 for storing the control program processed by the CPU 210, font data such as characters (including numbers, symbols, graphics, etc.) prepared in the apparatus, a color conversion table, a character modification table, etc. Has a control data area 222 for storing. The RAM 230 is backed up when the power is turned off, and includes various flag / register groups 231, a text data area 232, a display image data area 233, a print image data area 234, a drawing registration image data area 235, and an external character registration image data area 236. And various buffer areas 237 such as a character expansion buffer and a print buffer, and used as a work area for various processes.

P−CON240には、CPU210の機能を補うとともに周辺回路とのインタフェース信号を取り扱うための論理回路や種々の計時を行うタイマ等の機能回路などが、ゲートアレイやカスタムLSIなどにより構成されて組み込まれている。このため、P−CON240は、検出部14の各種センサやキーボード3と接続され、各種検出信号や各種指令や入力データなどをそのままあるいは加工して内部バス250に取り込むとともに、CPU210と連動して、CPU210等から内部バス250に出力されたデータや制御信号を、そのままあるいは加工して駆動部15に出力する。   In the P-CON 240, a logic circuit for supplementing the function of the CPU 210 and handling interface signals with peripheral circuits, a functional circuit such as a timer for performing various timings, and the like are configured by a gate array or a custom LSI. ing. For this reason, the P-CON 240 is connected to the various sensors of the detection unit 14 and the keyboard 3, loads various detection signals, various commands, input data, etc. into the internal bus 250 as they are or after processing them, and in conjunction with the CPU 210, Data or control signals output from the CPU 210 or the like to the internal bus 250 are output to the drive unit 15 as they are or after being processed.

そして、CPU210は、上記の構成により、ROM220内の制御プログラムに従って、P−CON240を介して各種検出信号、各種指令、各種データ等を入力し、ROM220やRAM230内の各種データ等を処理し、P−CON240を介して駆動部15に制御信号を出力することにより、印刷の位置制御や表示画面41の表示制御等を行うとともに、印刷ヘッド7を制御して所定の印刷条件でテープTに印刷するなど、テープ印刷装置1全体を制御している。   With the above configuration, the CPU 210 inputs various detection signals, various commands, various data, etc. via the P-CON 240 in accordance with the control program in the ROM 220, processes various data, etc. in the ROM 220 and RAM 230, and By outputting a control signal to the drive unit 15 via the CON 240, print position control, display screen 41 display control, and the like are performed, and the print head 7 is controlled to print on the tape T under predetermined printing conditions. For example, the entire tape printer 1 is controlled.

なお、テープ印刷装置1では、主な処理を割込処理により行う。このため、印刷画像作成などの準備ができていれば、ユーザが任意の時点で印刷キーを押すことにより、印刷処理割込が発生して、印刷処理が起動され、印刷画像データに基づいて印刷画像の印刷ができる。すなわち、印刷に至るまでの操作手順は、ユーザが任意に選択できる。   In the tape printer 1, main processing is performed by interrupt processing. For this reason, if the user is ready to create a print image, the user presses the print key at any point in time, a print processing interrupt occurs, the print processing is started, and printing is performed based on the print image data. Images can be printed. In other words, the user can arbitrarily select the operation procedure up to printing.

例えば図3に示すように、カーソルKまでの1行目の文字(キャラクタ)列「ABCDE」を入力後のテキスト編集画面表示の状態で(画面D10:以下、表示画面41の状態を画面Dxxとし、Dxxのみで説明および図示する。)、ユーザにより印刷キーが押されると、「印刷中」のメッセージの表示とともに(D11)、文字列「ABCDE」の文字列画像を印刷画像G00として印刷し、設定に応じてカットして、テープ幅(ラベル幅)TWで印刷長さ(=ラベル作成時のラベル長=テープ長手方向のラベル幅)LWのラベルL00を作成し(同図(b)参照)、印刷が終了すると、元のテキスト編集画面に戻る(D12:D10と同じ)。なお、テープ印刷装置1では、ユーザは、キー入力による各種指示を取消キーにより取り消すことができ、例えば上述の状態(D11)から取消キーを押すことにより、元のテキスト編集画面の表示状態(D10)に戻すことができる。   For example, as shown in FIG. 3, in the state of the text editing screen display after inputting the character string “ABCDE” on the first line up to the cursor K (screen D10: hereinafter, the state of the display screen 41 is referred to as a screen Dxx). When the print key is pressed by the user, the message “printing” is displayed (D11), and the character string image of the character string “ABCDE” is printed as the print image G00. Cut according to the setting, and create a label L00 with a tape width (label width) TW and a printing length (= label length at the time of label creation = label width in the tape longitudinal direction) LW (see (b) in the figure) When printing is completed, the original text editing screen is restored (D12: same as D10). In the tape printer 1, the user can cancel various instructions by key input using the cancel key. For example, by pressing the cancel key from the above state (D11), the display state (D10) of the original text editing screen is displayed. ).

また、例えば上述の状態で(D10)、ユーザにより機能キーのフォームキーが押されると、各種フォームの選択画面を表示し、その状態から、カーソルキーおよび選択キーの操作により選択肢の1つである「外枠付」が選択されると、各種の「外枠」の候補を選択肢として表示し、その状態から、ユーザは所望の「外枠」を選択でき、選択された後に、再度、上記のテキスト編集画面に戻った状態で(図3のD10)、印刷キーが押されると、「印刷中」のメッセージの表示とともに(D11)、例えば図4(b)に示すような「外枠」の外枠付き文字列「ABCDE」の画像を印刷画像G10として、同図(c)のように印刷して、ラベルL10を作成し、印刷が終了すると、元のテキスト編集画面に戻る(D12:D10と同じ)。   Further, for example, in the above state (D10), when the user presses the form key of the function key, a selection screen for various forms is displayed, and from this state, the cursor key and the selection key are operated to select one of the options. When “with outer frame” is selected, various “outer frame” candidates are displayed as options, and from that state, the user can select a desired “outer frame”. When the print key is pressed while returning to the text editing screen (D10 in FIG. 3), a message “Printing” is displayed (D11), for example, an “outer frame” as shown in FIG. 4B. The image of the character string “ABCDE” with the outer frame is printed as a print image G10 as shown in FIG. 10C to create a label L10. When printing is completed, the original text editing screen is restored (D12: D10). Same as).

この場合、内部処理としては、例えば図4(a)に示すように、まず、「ABCDE」の文字列画像の前後両端に、指定されたタイプの外枠の前キャラクタ画像(括弧状画像:[ )F10と、後キャラクタ画像(括弧状画像: ])R10とを配置し、その間を罫線で結んで、同図(b)に示すように指定(選択)された外枠を作成して、その後、印刷処理に移行する。   In this case, as the internal processing, for example, as shown in FIG. 4A, first, the front character images (parenthesis image: [ ) F10 and the rear character image (parenthesis image:]) R10 are arranged, and a border line is formed between them to create an outer frame designated (selected) as shown in FIG. The process proceeds to print processing.

ところで、一般に、上記のような場合、例えば括弧状画像F10等をその大きさ(サイズ:高さや線幅等)毎にビットマップフォントで用意するのでは、膨大な記憶容量となるので、比較的自由なサイズに拡大・縮小し易いアウトラインフォントを用いることが多いが、アウトラインフォントを用いるにしても、各部のサイズ毎に個別に設定することはできない。   By the way, in general, in the case described above, for example, preparing a bracketed image F10 or the like as a bitmap font for each size (size: height, line width, etc.) results in a huge storage capacity. An outline font that can be easily enlarged or reduced to a free size is often used, but even if an outline font is used, it cannot be set for each size of each part.

例えば図5(d)に示すように、外枠の幅になる括弧状画像F10の高さをn[ドット]にすることは比較的容易にできるとしても、その場合の線幅をm[ドット]とするには、高さ:線幅=n:m(あるいは線幅/高さ=m/n等)の比率を示すアウトラインフォントのデータを必要とし、これらを各種揃えるのでは、せっかくアウトラインフォントを利用しているにも関わらず、記憶容量の節約があまり期待できなくなる。   For example, as shown in FIG. 5D, although it is relatively easy to set the height of the bracket-like image F10 that becomes the width of the outer frame to n [dots], the line width in that case is set to m [dots]. ], It is necessary to use outline font data indicating a ratio of height: line width = n: m (or line width / height = m / n, etc.). Despite the use of, it is not possible to expect much savings in storage capacity.

そこで、本実施形態のテープ印刷装置1では、上述のような場合に、任意の高さ且つ任意の線幅の括弧状画像を、アウトラインフォントに基づいて見栄え良く且つ容易に作成できるようにしているので、以下に詳述する。   Therefore, in the tape printing apparatus 1 of the present embodiment, in the above-described case, a bracket-like image having an arbitrary height and an arbitrary line width can be easily created based on the outline font. This will be described in detail below.

例えば図4(a)で前述の前キャラクタ画像F10と後キャラクタ画像R10との前後一対の一方を構成する括弧状画像F10(またはR10:ここではF10の例にする)を、アウトラインフォントに基づいて指定の高さn[ドット]且つ指定の線幅m[ドット]で作成する場合、まず、図5(b)に示すように、高さ(括弧の開口幅方向のサイズ)がn[ドット]でその外形内を黒(論理「1」の有効画素)で塗りつぶした画像(第1サイズべた塗り画像)M10を、画像展開により作成する。   For example, in FIG. 4A, the bracketed image F10 (or R10, which is an example of F10 here) constituting one of the pair of front and rear of the front character image F10 and the rear character image R10 described above is based on the outline font. When creating with a specified height n [dot] and a specified line width m [dot], first, as shown in FIG. 5B, the height (size in the opening width direction of the parenthesis) is n [dot]. Then, an image (first-size solid painted image) M10 in which the outline is filled with black (effective pixel of logic “1”) is created by image development.

なお、この場合、元になるアウトラインフォントのデータ(原外形データ)としては、最低限、括弧状外形部のみの輪郭線を示すデータB10−3、あるいは括弧状外形部とその開口両端を結ぶ結線部とから成る単一閉曲線を輪郭線とするデータB10−2でも良いが、ここでは、さらに外形内が黒(有効画素)で塗りつぶされることを示す原外形データB10を用意(例えばROM220の制御データ領域222内に記憶)しておき、それに基づいて高さn[ドット]で画像展開する(図5(a)に原外形データが示す画像イメージを示す)。   In this case, as the outline font data (original outline data) as a base, at least the data B10-3 indicating the outline of only the bracket-shaped outline, or the connection connecting the bracket-shaped outline and both ends of the opening Data B10-2 having a single closed curve consisting of a contour as an outline may be used, but here, original outline data B10 indicating that the outline is filled with black (effective pixels) is prepared (for example, control data of ROM 220) (Stored in the area 222), and based on this, the image is developed at a height of n [dots] (FIG. 5A shows the image image indicated by the original outline data).

また、この場合、原外形データB10等は、アウトラインフォントのデータなので、高さn[ドット]を自由に指定しても、曲線部等も滑らかに見栄え良く作成できる。一方、外形の輪郭線のみを描く場合(例えば図5(d)の括弧状画像F10を直接、アウトラインフォントに基づいて画像展開して作成する場合)、上記の高さn[ドット]を決定したときの拡大率によって、輪郭線の線幅m[ドット]も一律に決定され、任意には(指定)できないが、図5(b)の画像M10では、その内部が黒で塗りつぶされるので、輪郭線の線幅は問題にならない。   In this case, since the original outline data B10 and the like are outline font data, even if the height n [dot] is freely specified, a curved portion or the like can be created smoothly and with good appearance. On the other hand, when only the outline of the outline is drawn (for example, when the parenthesis image F10 of FIG. 5D is directly developed based on the outline font), the above height n [dot] is determined. The line width m [dot] of the contour line is also uniformly determined depending on the enlargement factor at the time, and cannot be arbitrarily specified (specified). However, in the image M10 in FIG. Line width doesn't matter.

次に、同図(c)に示すように、同様の方法で、画像M10より括弧状外形部に沿って指定の線幅m[ドット]分だけ小さい(すなわち高さが(n−2m)[ドット]の)第2サイズの画像(第2サイズべた塗り画像)S10を作成する。この場合も、原外形データB10等(アウトラインフォント)に基づくので、曲線部等も滑らかに見栄え良く作成でき、また、内部が塗りつぶされるので、輪郭線の線幅が問題にならない。   Next, as shown in FIG. 6C, in the same manner, the image M10 is smaller than the image M10 by a specified line width m [dots] along the parenthesis-shaped outer portion (that is, the height is (n-2m) [ Dot)] (second size solid image) S10 is created. Also in this case, since it is based on the original outline data B10 and the like (outline font), the curved portion and the like can be created smoothly and with good appearance, and the inside is filled, so the line width of the outline does not matter.

そして、次に、画像M10と画像S10とを括弧状外形部に沿って線幅m[ドット]分だけずらして対応する画素同士の排他的論理和演算を行うと、同図(d)に示すように、両画像のサイズ差分(同図(c)に図示の点線部分)だけ残る。すなわち、括弧状外形部に沿って指定の線幅m[ドット]分だけが残る。言い換えると、指定高さn[ドット]且つ指定の線幅m[ドット]の括弧状外形部のみが残り、所望の括弧状画像F10となる。   Then, when the image M10 and the image S10 are shifted by the line width m [dot] along the parenthesis-shaped outer portion and the corresponding OR operation is performed between the corresponding pixels, the result is shown in FIG. Thus, only the size difference between the two images (the dotted line portion shown in FIG. 5C) remains. That is, only the specified line width m [dot] remains along the bracket-shaped outer shape. In other words, only the bracket-shaped outer shape having the specified height n [dot] and the specified line width m [dot] remains, and a desired bracket-shaped image F10 is obtained.

したがって、以上の方法によれば、高さn[ドット]と線幅m[ドット]を指定して、任意の高さn[ドット]且つ任意の線幅m[ドット]の括弧状画像F10等を、一部に円弧等の曲線部を含むものであっても、アウトラインフォントの原外形データB10等に基づいて見栄え良く且つ容易に作成できる。   Therefore, according to the above method, the height n [dot] and the line width m [dot] are designated, and the bracket-like image F10 having an arbitrary height n [dot] and an arbitrary line width m [dot], etc. Can be created with good appearance and easily based on the original outline data B10 of the outline font.

また、上記の場合、原外形データB10は、原外形(輪郭線)だけでなく、その外形内が黒(有効画素)で塗りつぶされることを示すデータなので、画像(第1サイズべた塗り画像)M10や画像(第2サイズべた塗り画像)S10を作成する場合に、それらの外形(輪郭線)内を走査して、その結果に応じて内部を塗りつぶす処理を、処理フローとして改めて用意(挿入して追加)しなくても、原外形データB10に基づいて画像展開するだけで、内部が塗りつぶされた(べた塗りの)画像を容易に作成できる。   In the above case, the original outline data B10 is not only the original outline (contour line) but also data indicating that the outline is filled with black (effective pixels), and therefore the image (first size solid painted image) M10. Or image (second-size solid-filled image) S10, a process for scanning the outline (contour line) and painting the inside according to the result is prepared (inserted) as a processing flow. Even if the image is not added, only by developing the image based on the original outline data B10, it is possible to easily create a solid-filled image.

なお、上記の場合、ユーザにより所望の「外枠」が選択された直後に、テキスト編集画面に戻すものとしたが、その前に、その「外枠」の幅(あるいはそれに相当する括弧状画像F10等の「高さ」)や、その線幅等を、数値により直接指定できるようにしても良い。この場合、例えば数値入力を促すメッセージや入力箇所を示すカーソルKを画面表示するなどができる。また、数値入力の単位としては、一般的な長さの単位(例えばインチやセンチメートルなど)のほか、上述の例と同様にドット単位で入力できるようにしても良いし、これらを選択できるようにしても良い。また、入力した文字列画像等の文字サイズや、装着したテープTのテープ幅TW等に基づいて、外枠の幅等(あるいは括弧状画像の高さ)や線幅を、自動的に(テーブル等を参照して)決定して、それらを上記の指定値とすることもできる。   In the above case, immediately after the desired “outer frame” is selected by the user, the screen is returned to the text editing screen. Before that, the width of the “outer frame” (or an equivalent parenthesis image) The “height” of F10, etc.), the line width, etc. may be directly specified by numerical values. In this case, for example, a message for prompting numerical input or a cursor K indicating the input location can be displayed on the screen. As a unit for inputting numerical values, in addition to general length units (for example, inches and centimeters), it is possible to input in dot units as in the above example, or to select these units. Anyway. In addition, the width of the outer frame (or the height of the parenthesis image) and the line width are automatically (table-based) based on the character size of the input character string image or the like, the tape width TW of the tape T mounted, etc. Etc.) and make them the above specified values.

また、例えば図6に示すように、図5で上述の括弧状画像F10の内側に、同じ原外形データB10に基づいて、例えば画像F10の内側(画像S10のサイズ)より括弧状外形部に沿ってさらに線幅m[ドット]分だけ小さく、高さ(n−4m)[ドット]で画像展開して画像M20を作成し(図6(a)参照)、さらに同様に、画像M20より括弧状外形部に沿って線幅m[ドット]分だけ小さく、高さ(n−6m)[ドット]の画像S20を作成して、同様にずらして対応する画素同士の排他的論理和演算を行うことにより、内部に括弧状画像F20を作成して、全体として2重線の外枠用の括弧状画像F30を作成できる。もちろん、3重線以上の多重線も同様の繰り返しで、1種の原外形データに基づいて容易に作成でき、アウトラインフォントなので、曲線部等も滑らかに見栄え良く作成できる。   Further, as shown in FIG. 6, for example, inside the parenthesis image F10 described above in FIG. 5, based on the same original outline data B10, for example, along the parenthesis outline from the inside of the image F10 (size of the image S10). Then, the image M20 is created by developing the image with a line width m [dot] smaller and height (n-4m) [dot] (see FIG. 6A). Create an image S20 having a line width m [dot] that is smaller by the line width m [dots] along the outline and having a height (n−6 m) [dots], and perform an exclusive OR operation between corresponding pixels by shifting in the same manner. Thus, a parenthesis image F20 can be created inside and a parenthesis image F30 for a double line outer frame can be created as a whole. Of course, multiple lines of three or more lines can be easily created based on one type of original outline data by repeating the same, and since it is an outline font, a curved portion and the like can be created smoothly and nicely.

また、図5や図6で上述の[ のタイプの括弧状画像ばかりでなく、例えば図7に示すように、{ などの他のタイプの括弧状画像F50等についても、(第1サイズべた塗り外形)画像M50や(第2サイズべた塗り外形)画像S50を、アウトラインフォントの原外形データB50等に基づいて画像展開により作成して排他的論理和演算を行うことにより、曲線部等も滑らかに見栄え良く且つ容易に作成できる。   5 and FIG. 6, not only the above-mentioned type of bracket-like image but also other types of bracket-like images F50 such as { Outline) Image M50 and (second size solid outline) image S50 are created by image expansion based on the original outline data B50 of the outline font and the exclusive OR operation is performed, so that the curved portion and the like can be smoothened. Good looking and easy to create.

また、上述の他、例えば図8に示すような各種の括弧状画像F51〜F53についても、同様に、第1サイズや第2サイズのべた塗り画像を、アウトラインフォントの原外形データ等に基づいて画像展開により作成して排他的論理和演算を行うことにより、曲線部等も滑らかに見栄え良く且つ容易に作成できる。   In addition to the above, for the various bracket-like images F51 to F53 as shown in FIG. 8, for example, the first size and the second size of the solid fill image are also based on the original outline data of the outline font and the like. By creating by image expansion and performing an exclusive OR operation, a curved portion and the like can be created smoothly and easily.

ところで、上述の第1実施形態では、外枠の前後一対の括弧状画像を罫線で結んで形成する外枠画像の例を示し、このため、前キャラクタ画像も後キャラクタ画像も比較的単純な括弧状画像であったが、外枠画像には、上記の種の他、より複雑な装飾、例えば何らかの見栄えの良いキャラクタ等の画像、などを用いたいわば装飾用の外枠画像もある。   By the way, in the first embodiment described above, an example of an outer frame image formed by connecting a pair of front and rear parenthesis images of the outer frame with ruled lines is shown. For this reason, both the front character image and the rear character image are relatively simple parentheses. In addition to the above-mentioned types, the outer frame image includes a more complicated decoration, for example, an image of a character that looks good, or the like.

例えば図9および図10に示すように、この種の外枠画像の場合も、例えば「ABCDE」の文字列画像の前後両端に、指定されたタイプの前キャラクタ画像F60〜F80等のいずれかと、対応する後キャラクタ画像R60〜R80等と、を配置して、その間を罫線で結んで作成し、全体で外枠付の印刷画像G60〜G80等として作成して、その後、印刷処理に移行する。   For example, as shown in FIGS. 9 and 10, even in the case of this type of outer frame image, for example, at the front and rear ends of the character string image of “ABCDE”, any one of the designated type of previous character images F60 to F80, Corresponding rear character images R60 to R80, etc. are arranged and created by connecting them with ruled lines, and are created as print images G60 to G80 with an outer frame as a whole, and then the process proceeds to printing processing.

この場合、各キャラクタ画像F60〜F80、R60〜R80等(以下代表して「F70等」)は、それぞれ、キャラクタ本体画像F60M〜F80M、R60M〜R80M(以下代表して「F70M等」)に加えて、上側の罫線(上罫線)と接続するための(上罫線の接続相手となる)上引出線F60U〜F80U、R60U〜R80U(以下代表して「F70U等」)と、下側の罫線(下罫線)の接続相手となる下引出線F60D〜F80D、R60D〜R80D(以下代表して「F70D等」)とを有している。   In this case, each of the character images F60 to F80, R60 to R80, etc. (hereinafter, representatively “F70, etc.”) is added to the character main body images F60M to F80M, R60M to R80M (hereinafter, representatively “F70M, etc.”). The upper leader lines F60U to F80U and R60U to R80U (representatively referred to as “F70U etc.” hereinafter) for connecting to the upper ruled line (upper ruled line) (to which the upper ruled line is connected), Lower leader lines F60D to F80D and R60D to R80D (hereinafter, “F70D etc.”).

また、このため、各キャラクタ画像F70等のサイズn[ドット]は、上引出線F70等の上縁と下引出線F70D等の下縁との間のサイズ(例えば図11のn[ドット]参照:以下「高さ」)で指定・決定される。   For this reason, the size n [dot] of each character image F70 and the like is the size between the upper edge of the upper leader line F70 and the lower edge of the lower leader line F70D (see, for example, n [dot] in FIG. 11). : “Height” below)

なお、これらの場合の外枠画像についても、前述の括弧状画像によるものと同様に、その「外枠」の幅(あるいはそれに相当する各キャラクタ画像F70等の「高さ」)や、その線幅等を、数値により直接指定して、所望のサイズ(高さ、線幅)の外枠画像を、見栄え良く且つ容易に作成できるようにしても良く、一般的な長さの単位のほか、同様にドット単位で入力できるようにしても良いし、これらを選択できるようにしても良い。また、文字列画像等の文字サイズや、装着したテープ幅TW等に基づいて、「高さ」や「線幅」を、自動的にテーブル等を参照して決定して上記の指定値とすることもできる。   Note that the outer frame images in these cases also have the width of the “outer frame” (or the corresponding “height” of each character image F70, etc.) You can specify the width, etc. directly by numerical values so that you can create an outer frame image of the desired size (height, line width) that looks nice and easy. Similarly, input may be performed in dot units, or these may be selected. Further, based on the character size of the character string image or the like, the attached tape width TW, etc., the “height” or “line width” is automatically determined with reference to a table or the like to be the above-mentioned designated value. You can also.

ところで、上述の装飾用の各キャラクタ画像(以下適宜「装飾画像」という)による外枠画像作成の場合も、比較的自由なサイズに拡大・縮小ができ、且つ滑らかにできるアウトラインフォントを用いるのが望ましいが、それでも、第1実施形態で上述した各種の括弧状画像と同様に、キャラクタ画像が任意の高さで且つその引出線が任意の線幅とすることは困難である。   By the way, in the case of creating an outer frame image using the above-described character images for decoration (hereinafter referred to as “decoration images” as appropriate), it is possible to use an outline font that can be enlarged / reduced to a relatively free size and smoothed. Although desirable, it is still difficult for the character image to have an arbitrary height and its leader line to have an arbitrary line width, as in the case of the various bracket-like images described in the first embodiment.

また、拡大率によっては、計算上の丸め誤差等により、同じく罫線との繋ぎ目となる上引出線F70U等の線幅と下引出線F70D等の線幅とが、ドット単位で異なる(丸め誤差により1ドット異なる)など、アンバランスな形状となることがあり、また、拡大後の引出線の線幅が、規定の罫線の幅に合わず、罫線との繋ぎ目が段になって輪郭が円滑にならない、などの問題が生じる。   Depending on the enlargement ratio, the line width of the upper leader line F70U and the like of the lower leader line F70D, which are also connected to the ruled line, differ from dot to line due to calculation rounding errors or the like (1 due to rounding error). The line width of the expanded leader line does not match the specified ruled line width, and the border between the ruled lines is stepped and the contour is smooth. The problem of not becoming.

そこで、テープ印刷装置1では、上述のような場合に、前後キャラクタ画像の引出線と罫線との間の繋ぎ目を円滑にして、任意の高さ且つ任意の線幅の外枠画像を見栄え良く作成できるようにしているので、以下に第2実施形態として詳述する。   Therefore, in the case described above, in the tape printer 1, the joint between the leader line and the ruled line of the preceding and following character images is smoothed, and the outer frame image having an arbitrary height and an arbitrary line width can be viewed nicely. Since it can be created, the second embodiment will be described in detail below.

本実施形態のテープ印刷装置1では、基本的に、前キャラクタ画像が有する上引出線および下引出線と後キャラクタ画像が有する上引出線および下引出線との間を上罫線および下罫線を用いて結線することにより、外枠画像を作成するが、繋ぎ目の円滑さを確保するため、繋ぎ目近傍の外枠画像の輪郭の調整を行う。   In the tape printer 1 of the present embodiment, basically, the upper ruled line and the lower leader line are used between the upper leader line and the lower leader line of the previous character image and the upper leader line and the lower leader line of the rear character image. Thus, the outer frame image is created by connecting them, but the outline of the outer frame image near the joint is adjusted in order to ensure the smoothness of the joint.

例えば図11(a)に示すように、調整前の外枠画像において、指定された高さn[ドット」の前キャラクタ画像F70の上引出線F70Uや下引出線F70Dの先端(繋ぎ目)が、指定された線幅m[ドット]の上罫線LU70や下罫線LD70より細い(線幅が小さい)場合、まず、調整前の外枠画像のうちの調整対象繋ぎ目を含む画像領域を画像調整領域とする。   For example, as shown in FIG. 11A, in the outer frame image before adjustment, the leading ends (joints) of the upper leader line F70U and the lower leader line F70D of the previous character image F70 having the designated height n [dot] are shown. When the specified line width m [dot] is thinner (the line width is smaller) than the upper ruled line LU70 and the lower ruled line LD70, first, image adjustment is performed on the image area including the adjustment target joint in the outer frame image before adjustment. This is an area.

図示の場合、上引出線F70Uや下引出線F70Dが高さ方向に線幅m[ドット]となる位置から先端までの微少長さdtを横幅とする横dt[ドット]×縦n[ドット]の領域とする。ここで、同図(b)に示す横dt[ドット]×縦m[ドット]の輪郭調整画像(論理和画像)E70Tを用意し(アウトラインフォントのデータに基づいて画像展開により作成して記憶し)、これを繋ぎ目に配置して論理和演算を行うことにより、輪郭を円滑に調整する(同図(c)参照)。   In the case of the figure, horizontal dt [dot] × vertical n [dot] having a horizontal width of a minute length dt from the position where the upper leader line F70U and the lower leader line F70D have a line width m [dot] in the height direction to the tip. The area is Here, a horizontal dt [dot] × vertical m [dot] contour adjustment image (logical sum image) E70T shown in FIG. 5B is prepared (created by image expansion based on the outline font data and stored. ), The contour is smoothly adjusted by arranging this at the joint and performing the logical sum operation (see FIG. 4C).

すなわち、図11で上述の例では、輪郭調整画像として、論理和画像E70Tを利用する。なお、上述の場合、高さ方向が線幅m[ドット]となる位置が、上引出線F70Uと下引出線F70Dとで一致した例であるが、一致しない場合、画像調整領域を個別に(上側と下側で個別に)設けても良い。また、いずれかの引出線の高さ方向が線幅m[ドット]となることがない場合や、その位置に上述のようないわば長方形の論理和画像E70Tを配置したのでは違和感が生じる(不自然な)場合には、同図(b)に示すように、傾斜を有する(台形状の)論理和画像E70T−2、E70T−3等や、あるいは傾斜の代わりに曲線を有するものでも良い。   That is, in the above-described example in FIG. 11, the logical sum image E70T is used as the contour adjustment image. In the case described above, the position where the height direction is the line width m [dot] is an example in which the upper leader line F70U and the lower leader line F70D coincide with each other. It may be provided separately on the upper side and the lower side. Also, when the height direction of any leader line does not become the line width m [dot], or when the so-called rectangular logical sum image E70T as described above is arranged at that position, a sense of incongruity occurs (discomfort). In the case of (natural), as shown in FIG. 5B, the logical sum images E70T-2, E70T-3, etc. having an inclination (trapezoidal shape), or having a curve instead of the inclination may be used.

これらの場合の論理和画像E70T等は、共通して、罫線幅m[ドット]に一致する長さの罫線側辺と、引出線幅mtに一致する長さの引出線側辺と、を有して、それらの両端同士を結線した単一閉曲線を輪郭線として、その輪郭線に沿った外形内を黒(論理「1」の有効画素)で塗りつぶした、いわゆるべた塗り画像である。この場合、上述のように、罫線側辺を罫線幅に合わせ、引出線側辺を引出線幅に合わせて、外枠画像に対して論理和演算をすれば、外枠画像に論理和画像を重ねる(付加する)ことになり、調整対象繋ぎ目を覆うように、罫線と引出線の輪郭が円滑に繋がり、外枠画像の輪郭を円滑にして見栄え良くできる。   The logical sum image E70T in these cases has a ruled line side having a length matching the ruled line width m [dot] and a leader line side having a length matching the leader line width mt. Then, a so-called solid image in which a single closed curve connecting both ends thereof is used as an outline, and the inside of the outline along the outline is filled with black (effective pixel of logic “1”). In this case, as described above, if the ruled line side is matched with the ruled line width, the leader line side is matched with the leader line width, and the logical sum operation is performed on the outer frame image, the logical sum image is displayed on the outer frame image. The outlines of the ruled line and the leader line are smoothly connected so as to cover the adjustment target joint, and the outline of the outer frame image can be smoothly and visually enhanced.

次に、例えば図12(a)に示すように、調整前の外枠画像において、指定された高さn[ドット」の前キャラクタ画像F70の上引出線F70Uや下引出線F70Dの先端が、指定された線幅m[ドット]より太い(線幅が大きい)場合、同様に画像調整領域を想定(設定)するが、この場合には、高さ方向のサイズが線幅m[ドット]になるまで上引出線F70Uや下引出線F70Dを削っても輪郭(曲線等)が不自然とならない位置から先端までの微少長さdfを横幅とする横df[ドット]×縦n[ドット]の領域とする。   Next, for example, as shown in FIG. 12A, in the outer frame image before adjustment, the leading ends of the upper leader line F70U and the lower leader line F70D of the previous character image F70 having the designated height n [dot] are When the line width is larger than the specified line width m [dot] (the line width is larger), the image adjustment area is assumed (set) in the same manner. In this case, the size in the height direction is set to the line width m [dot]. Even if the upper leader line F70U and the lower leader line F70D are scraped until the width becomes a horizontal df [dot] × vertical n [dot] with a minute width df from the position where the contour (curve etc.) does not become unnatural to the tip. This is an area.

ここで、同図(b)に示す横df[ドット]×縦(n−2m)[ドット]で輪郭線を含む内部が全て白(論理「0」の無効画素)で塗りつぶされた、いわゆる空白画像の輪郭調整画像(論理積画像)E70Fを、アウトラインフォントのデータに基づいて画像展開により作成して用意(記憶)し、これを繋ぎ目に配置して論理積演算を行うことにより、輪郭を円滑に調整する(同図(c)参照)。   Here, a so-called blank in which the inside including the outline is filled with white (invalid pixel of logic “0”) in the horizontal df [dot] × vertical (n−2m) [dot] shown in FIG. An image contour adjustment image (logical product image) E70F is created and prepared (stored) by image development based on the outline font data, and this is arranged at a joint to perform a logical product operation. Adjust smoothly (see (c) in the figure).

すなわち、図12で上述の例では、輪郭調整画像として、論理積画像E70Fを利用する。なお、図11で上述と同様に、画像調整領域を上側と下側で個別に設けても良い。また、いずれかの引出線の輪郭が不自然で違和感が生じる場合には、上辺や下辺に傾斜を設けたり曲線等にするなども可能である。   That is, in the above-described example in FIG. 12, the logical product image E70F is used as the contour adjustment image. Note that the image adjustment regions may be provided separately on the upper side and the lower side in the same manner as described above in FIG. In addition, when the outline of one of the leader lines is unnatural and uncomfortable, it is possible to provide an inclination or a curve on the upper side or the lower side.

これらの場合の論理積画像E70F等は、共通して、外縁側(外枠の外側)のみを一致させて(面一にして)配置する場合に適する。すなわち、外枠画像の外縁となる上引出線F70Uの上縁と上罫線LU70の上縁とが一致するように結線し、外縁となる下引出線F70Dの下縁と下罫線LD70の下縁とが一致するように結線すると、図示のように、外縁は円滑になるので、繋ぎ目が目立つのは内縁となり、それに適した輪郭調整画像として、論理積画像E70F等を用意(記憶)する。   The logical product images E70F and the like in these cases are commonly used when only the outer edge side (outside of the outer frame) is made coincident (to be flush). That is, the upper edge of the upper lead line F70U serving as the outer edge of the outer frame image is connected so that the upper edge of the upper ruled line LU70 coincides with the lower edge of the lower leader line F70D serving as the outer edge and the lower edge of the lower ruled line LD70. As shown in the figure, since the outer edge becomes smooth as shown in the figure, the joint is conspicuous on the inner edge, and a logical product image E70F or the like is prepared (stored) as a suitable contour adjustment image.

この場合の論理積画像E70F等は、外枠の内部となる上罫線LU70と下罫線LD70の内縁側同士間の距離に一致する長さ(すなわち(n−2m)[ドット])の罫線側辺と、上引出線F70Uと下引出線F70Dの内縁側同士間の距離に一致する長さの引出線側辺と、を有して、罫線側辺と引出線側辺の両端同士を結線した単一閉曲線を輪郭線として、その輪郭線を含む内部が全て白(無効画素)の空白画像である。   In this case, the logical product image E70F or the like has a length (that is, (n-2m) [dots]) that corresponds to the distance between the inner edge sides of the upper ruled line LU70 and the lower ruled line LD70 inside the outer frame. A leader line side having a length matching the distance between the inner edges of the upper leader line F70U and the lower leader line F70D, and connecting both ends of the ruled line side and the leader line side to each other. A blank image in which a closed curve is a contour line and the inside including the contour line is all white (invalid pixels).

すなわち、罫線側辺を罫線の内縁の間に合わせ、引出線側辺を引出線の内縁の間に合わせて、外枠画像に対して論理積演算をすれば、外枠画像のうちの論理積画像E70F等と重なる部分を削除することになる。このため、論理積画像E70F等として円滑な輪郭を有する論理積画像を用意しておけば、その輪郭に沿って外枠画像の輪郭を削って罫線と引出線の輪郭を円滑に繋げることができ、外枠画像を見栄え良く調整できる。   That is, if the logical line operation is performed on the outer frame image by aligning the ruled line side between the inner edges of the ruled line and aligning the leader line side between the inner edges of the leader line, the logical product image E70F of the outer frame images The part which overlaps etc. will be deleted. For this reason, if a logical product image having a smooth contour is prepared as the logical product image E70F or the like, the contour of the outer frame image can be sharpened along the contour to smoothly connect the contours of the ruled line and the leader line. The outer frame image can be adjusted with good appearance.

なお、図11と図12で上述の例では、画像調整領域をキャラクタ画像F70等の引出線側に想定したが、例えば図11に対応して図13(a)、図12に対応して図13(b)に示すように、画像調整領域を罫線側に想定し、例えば図11(a)の例に対しては、図13(a)に示す傾斜を有する論理積画像E70F−2によって罫線(図示では上罫線LU70)に対して論理積演算を行うことにより、内縁側の段差を削って円滑な輪郭とし、例えば図12(a)の例に対しては、図13(b)に示す傾斜を有する論理和画像E70T−3を罫線(図示では上罫線LU70)上に重ねて論理和演算を行うことにより、傾斜を付加して円滑な輪郭とすることができ、これらのより、罫線と引出線の輪郭を円滑に繋げて、外枠画像を見栄え良く調整できる。   11 and 12, the image adjustment area is assumed to be on the leader line side of the character image F70 or the like. For example, FIG. 11A corresponds to FIG. 11 and FIG. 12 corresponds to FIG. As shown in FIG. 13 (b), the image adjustment area is assumed on the ruled line side. For example, for the example of FIG. 11 (a), the ruled line is drawn by the logical product image E70F-2 having the inclination shown in FIG. 13 (a). By performing a logical product operation on the upper ruled line LU70 (shown in the figure), the step on the inner edge side is cut to obtain a smooth contour. For example, FIG. 13B shows the example of FIG. By performing a logical sum operation by superimposing the logical OR image E70T-3 having an inclination on a ruled line (upper ruled line LU70 in the figure), it is possible to add an inclination to obtain a smooth outline. Smoothly connect the outline of the leader line to enhance the appearance of the outer frame image It can be an integer.

また、例えば図12(a)と同じ状態から、図14(a)に示すように、画像調整領域内を黒で塗りつぶした状態としておけば、輪郭調整画像として前述(同図(b))の論理積画像E70Fを用意して論理積演算を行う代わりに、同サイズで内部が黒の同図(c)の排他的論理和画像E71Fを輪郭調整画像として利用でき、これを用意して排他的論理和演算を行うようにしても良い。また、前述の論理積画像E70Fの代わりに、同図(d)に示すように、輪郭が曲線のためさらに円滑化し易い形状の論理積画像E72Fを利用しても良い。   For example, if the image adjustment area is filled with black as shown in FIG. 14A from the same state as FIG. 12A, the contour adjustment image described above (FIG. 12B) is used. Instead of preparing the logical product image E70F and performing the logical product operation, the exclusive OR image E71F of the same size and black inside (c) in FIG. An OR operation may be performed. Further, instead of the above-mentioned logical product image E70F, as shown in FIG. 4D, a logical product image E72F having a shape that can be more easily smoothed due to a curved outline may be used.

また、図14で上述の方法をさらに進めて、上引出線F70Uと下引出線F70Dとが上述の例のようにその根本で繋がっている場合など、上引出線F70Uと下引出線F70Dが直接の接続点を有する場合に、例えば図15に示すように、上罫線LU70の上縁の1点(図示の例では繋ぎ目の上側の1点)と下罫線LD70の下縁の1点(図示の例では繋ぎ目の下側の1点)とを結線したn[ドット]の長さの第1罫線側辺と、接続点までの上引出線および下引出線から成る単一閉曲線を第1輪郭線として、その外形内を黒(有効画素)で塗りつぶして、画像調整領域としても良い。   Further, in the case where the above-described method is further advanced in FIG. 14 and the upper leader line F70U and the lower leader line F70D are connected at the root as in the above example, the upper leader line F70U and the lower leader line F70D are directly connected. 15, for example, as shown in FIG. 15, one point on the upper edge of the upper ruled line LU70 (one point on the upper side of the joint in the example shown in the figure) and one point on the lower edge of the lower ruled line LD70 (shown in the figure). In this example, a single closed curve consisting of a first ruled line side of length n [dots] connected to the connection point and an upper leader line and a lower leader line up to the connection point is a first contour line. Then, the inside of the outer shape may be filled with black (effective pixels) to form an image adjustment area.

この場合、図15(a)に示すように、この時点で、拡大後のキャラクタ画像の上引出線F70Uや下引出線F70Dの線幅が問題にならなくなる。この場合、上記の第1罫線側辺より両端が線幅(一定線幅)m[ドット]分ずつ短い(すなわち(n−2m)[ドット]の長さの)第2罫線側辺を有して、他の部分は第1輪郭線に沿った外形より線幅m[ドット]分だけ狭いサイズの単一閉曲線を第2輪郭線として、その第2輪郭線を含めて全てを白とした空白画像の論理積画像E74F、あるいは、第2輪郭線に沿った外形内を黒(有効画素)で塗りつぶした排他的論理和画像E75Fを、輪郭調整画像として用意できる。   In this case, as shown in FIG. 15A, the line widths of the upper leader line F70U and the lower leader line F70D of the enlarged character image do not become a problem at this point. In this case, both ends have a second ruled line side shorter than the first ruled line side by a line width (constant line width) m [dot] (that is, a length of (n-2m) [dot]). In the other parts, a single closed curve whose size is narrower by the line width m [dot] than the outer shape along the first contour line is used as the second contour line, and all the white including the second contour line is white. The logical product image E74F of the image or the exclusive OR image E75F in which the inside of the outer shape along the second contour line is filled with black (effective pixel) can be prepared as the contour adjustment image.

これらの場合、ここで、次に、(n−2m)[ドット]の長さの第2罫線側辺を第1罫線側辺に(この場合中央で)合わせ、他は第1輪郭線に沿って線幅m[ドット]分だけずらして、論理積画像E74Fであれば対応する画素同士の論理積演算、排他的論理和画像E75Fであれば対応する画素同士の排他的論理和演算、を行うと、画像調整領域のサイズと輪郭調整画像(論理積画像E74Fまたは排他的論理和画像E75F)のサイズとのサイズ差分だけ残る。   In these cases, the second ruled line side of (n-2m) [dots] in length is then aligned with the first ruled line side (in the center in this case), and the others are along the first outline. Are shifted by the line width m [dot], and if the logical product image E74F, the logical product operation of corresponding pixels is performed, and if the exclusive logical sum image E75F, the exclusive logical sum operation of corresponding pixels is performed. And the size difference between the size of the image adjustment area and the size of the contour adjustment image (logical product image E74F or exclusive logical image E75F) remains.

すなわち、これらの場合、第1実施形態で前述の各種の括弧状画像と同様の作成方法となり(図5〜図8参照)、図15(d)に示すように、第1輪郭線に沿って線幅(一定線幅)m[ドット]分だけが残り、そのままの線幅(一定線幅)m[ドット]の上罫線LU75や下罫線LD75と繋がるので、罫線と引出線の輪郭を円滑に繋げることができ、外枠画像を見栄え良く調整できる。   That is, in these cases, the creation method is the same as that of the above-described various bracket images in the first embodiment (see FIGS. 5 to 8), and as shown in FIG. 15 (d), along the first contour line. Only the line width (constant line width) m [dot] remains, and the line width (constant line width) m [dot] is connected to the upper ruled line LU75 and the lower ruled line LD75 as it is, so that the outline of the ruled line and the leader line can be smoothed. It can be connected, and the outer frame image can be finely adjusted.

また、上記の場合、輪郭調整画像の輪郭の形状(曲線)を工夫すれば、上引出線F75Uや下引出線F75Dの線幅を一律とせず、先端のみ線幅m[ドット]として、元のキャラクタ画像F70の上引出線F70Uや下引出線F75Dと同様の引出線として残すこともできる。   In the above case, if the shape (curve) of the contour of the contour adjustment image is devised, the line widths of the upper leader line F75U and the lower leader line F75D are not uniform, and only the leading edge is set as the line width m [dot]. It can be left as a leader line similar to the upper leader line F70U and the lower leader line F75D of the character image F70.

また、図15で上述の方法をさらに単純化して、図16(a)に示すように、画像調整領域の形状を単純な形状とし、例えば図14で前述の論理積画像E70Fによる論理積演算で完全に調整可能(図12(c)と同様に調整可能)な領域を想定して、外形内を黒(有効画素)で塗りつぶして画像調整領域としても良い。また、この場合、前述の論理積画像E70Fによる論理積演算の代わりに、同サイズで内部が黒の排他的論理和画像E73Fによる排他的論理和演算を行うことによって、同様の結果(図16(d)参照:図12(c)と同じ)を得ることができる。   Further, the above-described method is further simplified in FIG. 15, and the shape of the image adjustment area is simplified as shown in FIG. 16A. For example, the logical product operation using the logical product image E70F described above with reference to FIG. Assuming an area that can be completely adjusted (adjustable in the same manner as in FIG. 12C), the inside of the outer shape may be filled with black (effective pixels) to form an image adjustment area. Further, in this case, instead of the logical product operation using the logical product image E70F described above, the same result (FIG. 16 (FIG. 16)) is obtained by performing the exclusive logical operation using the exclusive logical image E73F of the same size and black inside. d) See: Same as FIG. 12 (c).

また、図17に示すように、さらに単純化して、画像調整領域は図15(a)と同じ状態とし(図17(a)参照)、一部に黒が残ること(同図(d)の画像F76参照)を無視して、上述の論理積画像E70Fによる論理積演算や排他的論理和画像E73Fによる排他的論理和演算を行うこともできる。   Further, as shown in FIG. 17, the image adjustment area is further simplified as shown in FIG. 15A (see FIG. 17A), and black remains in part (see FIG. 17D). It is also possible to perform the logical product operation using the logical product image E70F and the exclusive logical product operation using the exclusive logical sum image E73F, ignoring the image F76).

上述のように、本実施形態のテープ印刷装置1では、一旦、外枠画像を作成し、それを調整前の外枠画像として、前後キャラクタ画像の引出線と罫線との間の繋ぎ目の少なくとも1の繋ぎ目を調整対象繋ぎ目として、罫線の少なくとも中央部の線幅を維持した状態で、調整対象繋ぎ目の輪郭を円滑にするための輪郭調整を行うので、その繋ぎ目の輪郭を円滑にできる。すなわち、前後のキャラクタ画像を配置する際には、線幅に関係なく、任意の高さで配置し、罫線を配置する時には、繋ぎ目の円滑さは多少無視して例えば外縁側(外枠の外側)のみを一致させて(面一にして)配置する等により、一旦、調整前の外枠画像を作成し、その後に、繋ぎ目の円滑さを調整できるので、これにより、任意の高さ且つ任意の線幅の外枠画像を見栄え良く作成できる。   As described above, in the tape printer 1 according to the present embodiment, an outer frame image is once created, and is used as an outer frame image before adjustment. At least a joint between the leader line and the ruled line of the front and rear character images is used. As the adjustment target seam, the contour adjustment for smoothing the outline of the adjustment target joint is performed while maintaining the line width of at least the center of the ruled line. Can be. That is, when arranging the character images before and after, regardless of the line width, when arranging the ruled lines, ignore the smoothness of the joints somewhat, for example, on the outer edge side (outer frame side). The outer frame image before adjustment can be created once by aligning (outside) only (aligned), etc., and then the smoothness of the joint can be adjusted. In addition, an outer frame image having an arbitrary line width can be created with good appearance.

また、より具体的には、調整前の外枠画像のうちの調整対象繋ぎ目を含む画像領域を画像調整領域とし、その画像調整領域に配置可能な輪郭調整のための輪郭調整画像を記憶しておき、調整前の外枠画像に対して画像調整領域において輪郭調整画像を利用した画素対応の論理演算を施す。このため、調整対象繋ぎ目の形状、すなわち円滑さを伴わない形態として生じ得る各種の形状を想定し、それを調整可能な形状の画像を、輪郭調整画像として各種用意(記憶)しておき、それを用いた適切な論理演算を外枠画像に施すことにより、調整対象繋ぎ目の輪郭を円滑に調整できる。   More specifically, an image area including an adjustment target joint in the outer frame image before adjustment is set as an image adjustment area, and a contour adjustment image for contour adjustment that can be arranged in the image adjustment area is stored. In addition, a pixel-related logical operation using the contour adjustment image is performed on the outer frame image before adjustment in the image adjustment region. For this reason, assuming the shape of the joint to be adjusted, that is, various shapes that can occur as a form without smoothness, various images of shapes that can be adjusted are prepared (stored) as contour adjustment images, By applying an appropriate logical operation using this to the outer frame image, the contour of the adjustment target joint can be adjusted smoothly.

なお、前または後のキャラクタ画像F70等をアウトラインフォントのデータで用意する場合、図18に示すように、前述した各輪郭調整画像E70T、E70F〜E75F等もアウトラインフォントのデータ(内部を有効画素の黒とするものはB〜、空白画像として内部を無効画素の白とするものはW〜の符号で示す)B70、W70、B71、W72、B73、W74、B75等として用意することが望ましく、このようにしておけば、前または後のキャラクタ画像等の拡大率に合わせて同様に拡大して利用でき、利用しやすい。   When the preceding or following character image F70 or the like is prepared as outline font data, as shown in FIG. 18, the outline adjustment images E70T and E70F to E75F described above are also converted to outline font data (inside the effective pixel data). It is desirable to prepare B70, W70, B71, W72, B73, W74, B75, etc. By doing so, it can be used in an enlarged manner in accordance with the enlargement ratio of the previous or subsequent character image or the like, and is easy to use.

また、上述した(第1、第2の)実施形態のテープ印刷装置1において採用された括弧状画像作成装置や外枠画像作成装置の機能あるいはそれらによる各種処理方法(括弧状画像作成方法、外枠画像作成方法など)は、テープ印刷装置1ばかりでなく、プログラム処理可能な各種の装置によって処理されるプログラムとして適用でき、その種のプログラムを記憶するための例えばCD、MD、DVD等の記憶媒体にも適用でき、この種のプログラムを記憶しておいて、あるいは記憶媒体等から読み出して、実行することにより、任意の高さ且つ任意の線幅の括弧状画像を、アウトラインフォントに基づいて見栄え良く且つ容易に作成でき、あるいは、前後キャラクタ画像の引出線と罫線との間の繋ぎ目を円滑にして、任意の高さ且つ任意の線幅の外枠画像を見栄え良く作成できる。もちろん、その他、要旨を逸脱しない範囲で、適宜変更も可能である。   In addition, the functions of the bracket-shaped image creation device and the outer frame image creation device employed in the tape printer 1 of the above-described (first and second) embodiments, and various processing methods (the bracket-shaped image creation method, the outside) The frame image creation method, etc.) can be applied as a program processed not only by the tape printer 1 but also by various devices that can process the program. For example, storage of such a program such as a CD, MD, or DVD is possible. It can also be applied to media, and this kind of program is stored or read out from the storage medium and executed, so that a bracketed image of any height and any line width can be obtained based on the outline font. It can be created nicely and easily, or the joint between the leader line and ruled line of the front and rear character images is smoothed to any height and any line You can create better-looking the outer frame image of. Of course, other modifications can be made as appropriate without departing from the scope of the invention.

実施形態に係るテープ印刷装置の開蓋状態の外観斜視図。FIG. 3 is an external perspective view of the tape printing apparatus according to the embodiment in the opened state. 図1のテープ印刷装置の制御系を示す概略ブロック図。The schematic block diagram which shows the control system of the tape printer of FIG. 印刷時の一例を示す表示画面、その表示画面上での典型的操作、並びに、その印刷による印刷結果の一例を示す説明図。FIG. 6 is an explanatory diagram showing an example of a display screen showing an example at the time of printing, a typical operation on the display screen, and a printing result by the printing. 括弧状画像、印刷画像、ラベルの一例を示す説明図。Explanatory drawing which shows an example of a bracket-like image, a printed image, and a label. 括弧状画像の作成方法の一例を示す説明図。Explanatory drawing which shows an example of the production method of a bracket-shaped image. 別の一例を示す、図5と同様の説明図。Explanatory drawing similar to FIG. 5 which shows another example. さらに別の一例を示す、図5と同様の説明図。The explanatory view similar to FIG. 5 which shows another example. 同様に作成可能な括弧状画像の各種例を示す説明図。Explanatory drawing which shows the various examples of the bracket-like image which can be created similarly. 装飾用の外枠画像を含む印刷画像の各種例を示す説明図。Explanatory drawing which shows the various examples of the printing image containing the outer frame image for a decoration. 図9で利用される前後キャラクタ画像を示す説明図。Explanatory drawing which shows the back and front character image utilized in FIG. 輪郭調整画像およびそれによる輪郭調整の一例を示す説明図。Explanatory drawing which shows an example of a contour adjustment image and the contour adjustment by it. 別の一例を示す、図11と同様の説明図。Explanatory drawing similar to FIG. 11 which shows another example. 輪郭調整画像の別の一例を示す説明図。Explanatory drawing which shows another example of an outline adjustment image. さらに別の一例を示す、図11と同様の説明図。Explanatory drawing similar to FIG. 11 which shows another example. さらに別の一例を示す、図11と同様の説明図。Explanatory drawing similar to FIG. 11 which shows another example. さらに別の一例を示す、図11と同様の説明図。Explanatory drawing similar to FIG. 11 which shows another example. さらに別の一例を示す、図11と同様の説明図。Explanatory drawing similar to FIG. 11 which shows another example. 輪郭調整画像およびその元データの各種例を示す説明図。Explanatory drawing which shows the various examples of an outline adjustment image and its original data.

符号の説明Explanation of symbols

1 テープ印刷装置 2 装置ケース
3 キーボード 4 ディスプレイ
7 印刷ヘッド 11 操作部
12 印刷部 13 切断部
14 検出部 15 駆動部
20 制御部 C テープカートリッジ
LDxx 下罫線 LUxx 上罫線
Fxx 前キャラクタ(括弧)画像
Rxx 後キャラクタ(括弧)画像
FxxD、RxxD …… 下引出線
FxxU、RxxU …… 上引出線
T テープ
DESCRIPTION OF SYMBOLS 1 Tape printer 2 Device case 3 Keyboard 4 Display 7 Print head 11 Operation part 12 Printing part 13 Cutting part 14 Detection part 15 Drive part 20 Control part C Tape cartridge LDxx Lower ruled line LUxx Upper ruled line Fxx Front character (parenthesis) image Rxx After Character (parentheses) image FxxD, RxxD ... Lower leader line FxxU, RxxU ... Upper leader line T Tape

Claims (5)

外枠前端部となる前キャラクタ画像が有する上引出線および下引出線と外枠後端部となる後キャラクタ画像が有する上引出線および下引出線との間を上罫線および下罫線を用いて結線することにより外枠画像を作成する外枠画像作成装置であって、
前記前キャラクタ画像の上引出線と前記上罫線との繋ぎ目、前記前キャラクタ画像の下引出線と前記下罫線との繋ぎ目、前記後キャラクタ画像の上引出線と前記上罫線との繋ぎ目、および、前記後キャラクタ画像の下引出線と前記下罫線との繋ぎ目、の少なくとも1の繋ぎ目を調整対象繋ぎ目とし、前記調整対象繋ぎ目を構成する調整引出線と調整罫線との外輪郭および内輪郭を無段差に輪郭調整する輪郭調整手段を備え、
前記輪郭調整手段は、
調整前の外枠画像に対して、前記調整対象繋ぎ目、前記調整引出線端部および前記調整罫線端部を含む画像調整領域を設定する画像調整領域設定手段と、
前記画像調整領域の前記調整引出線側の端と前記調整引出線の外輪郭および内輪郭との引出線側上交点および引出線側下交点を求めると共に、前記画像調整領域の前記調整罫線側の端と前記調整罫線の外輪郭および内輪郭との罫線側上交点および罫線側下交点を求める交点規定手段と、
前記引出線側上交点と前記罫線側上交点とを段差なく結ぶ上輪郭を有するとともに、前記引出線側下交点と前記罫線側下交点とを段差なく結ぶ下輪郭を有する接続画像を、前記調整前の外枠画像の前記画像調整領域内の画像の代わりに配置する接続画像配置手段と、
を有することを特徴とする外枠画像作成装置。
Using upper and lower ruled lines between the upper and lower leader lines of the front character image serving as the front edge of the outer frame and the upper and lower leader lines of the rear character image serving as the rear edge of the outer frame. An outer frame image creation device for creating an outer frame image by connecting,
A joint between the upper leader line of the previous character image and the upper ruled line, a joint between the lower leader line of the previous character image and the lower ruled line, and a joint between the upper leader line of the rear character image and the upper ruled line And at least one joint of the lower leader line of the rear character image and the lower ruled line as an adjustment target joint, and outside the adjustment leader line and the adjustment ruled line constituting the adjustment target joint. Contour adjustment means for adjusting the contour and the inner contour steplessly,
The contour adjusting means includes
Image adjustment region setting means for setting an image adjustment region including the adjustment target joint, the adjustment leader line end, and the adjustment ruled line end with respect to the outer frame image before adjustment;
Obtaining the leader-side upper intersection and the leader-line lower intersection between the adjustment leader line end of the image adjustment area and the outer and inner contours of the adjustment leader line, and the adjustment ruled line side of the image adjustment area Intersection defining means for obtaining a ruled line-side upper intersection and a ruled line-side lower intersection between the edge and the outer and inner contours of the adjustment ruled line;
A connection image having an upper contour that connects the leader line side upper intersection point and the ruled line side upper intersection point without any step, and a lower image that connects the leader line side lower intersection point and the ruled line side lower intersection point without a step. Connected image placement means for placing instead of the image in the image adjustment area of the previous outer frame image;
An outer frame image creating apparatus characterized by comprising:
前記輪郭調整手段は、前記画像調整領域に配置可能な前記輪郭調整のための輪郭調整画像を記憶する輪郭調整画像記憶手段をさらに有し、
前記接続画像配置手段は、前記調整前の外枠画像に対して前記画像調整領域において前記輪郭調整画像を利用した画素対応の論理演算を施すことにより、前記接続画像を作成する論理演算手段を有することを特徴とする、請求項1に記載の外枠画像作成装置。
The contour adjustment means further includes a contour adjustment image storage means for storing a contour adjustment image for the contour adjustment that can be arranged in the image adjustment region,
The connection image arrangement unit includes a logical operation unit that creates the connection image by performing a pixel-corresponding logical operation using the contour adjustment image in the image adjustment region for the outer frame image before adjustment. The outer frame image creation device according to claim 1, wherein
外枠前端部となる前キャラクタ画像の上引出線および下引出線と外枠後端部となる後キャラクタ画像の上引出線および下引出線との間を上罫線および下罫線を用いて結線することにより外枠画像を作成する外枠画像作成方法であって、
前記前キャラクタ画像の上引出線と前記上罫線との繋ぎ目、前記前キャラクタ画像の下引出線と前記下罫線との繋ぎ目、前記後キャラクタ画像の上引出線と前記上罫線との繋ぎ目、および、前記後キャラクタ画像の下引出線と前記下罫線との繋ぎ目の少なくとも1の繋ぎ目を調整対象繋ぎ目として、前記調整対象繋ぎ目を構成する調整引出線と調整罫線との外輪郭および内輪郭を無段差に輪郭調整することを特徴とする外枠画像作成方法。
Connect the upper and lower leader lines of the front character image at the front edge of the outer frame and the upper and lower leader lines of the rear character image at the rear edge of the outer frame using the upper and lower ruled lines. An outer frame image creation method for creating an outer frame image by
A joint between the upper leader line of the previous character image and the upper ruled line, a joint between the lower leader line of the previous character image and the lower ruled line, and a joint between the upper leader line of the rear character image and the upper ruled line And an outer contour of an adjustment leader line and an adjustment rule line constituting the adjustment target joint as at least one joint of the lower leader line of the rear character image and the lower ruled line as an adjustment target joint And an outer frame image creating method, wherein the inner contour is contour-adjusted steplessly.
請求項1および2のいずれかに記載の外枠画像作成装置の各手段を機能させること、または、請求項3に記載の外枠画像作成方法を実行可能なこと、を特徴とするプログラム。   A program that allows each means of the outer frame image creation device according to claim 1 to function or that the outer frame image creation method according to claim 3 can be executed. 請求項4に記載のプログラムを、プログラム処理可能な装置によって読出可能に記憶することを特徴とする記憶媒体。   5. A storage medium storing the program according to claim 4 in a readable manner by an apparatus capable of processing a program.
JP2004057962A 2004-03-02 2004-03-02 Outer frame image creation device, program, and storage medium Expired - Fee Related JP4400256B2 (en)

Priority Applications (7)

Application Number Priority Date Filing Date Title
JP2004057962A JP4400256B2 (en) 2004-03-02 2004-03-02 Outer frame image creation device, program, and storage medium
KR1020050004934A KR100634150B1 (en) 2004-03-02 2005-01-19 Device and method for producing bracket image, device and method for producing outer frame image, and recording medium
TW094102172A TWI272546B (en) 2004-03-02 2005-01-25 Device and method for producing bracket image, device and method for producing outer frame image, and recording medium
CNB2005100029316A CN100343047C (en) 2004-03-02 2005-01-26 Apparatus for, and method of, forming parenthesized image, apparatus for, and method of, forming externally framed image, program, and memory medium
US11/049,515 US7869080B2 (en) 2004-03-02 2005-02-02 Apparatus for, and method of, forming parenthesized image; apparatus for, and method of, forming externally framed image; program; and memory medium
US12/961,423 US8102562B2 (en) 2004-03-02 2010-12-06 Apparatus for, and method of, forming parenthesized image; apparatus for, and method of, forming externally framed image; program; and memory medium
US13/335,739 US8451491B2 (en) 2004-03-02 2011-12-22 Apparatus for and method of, forming parenthesized image; apparatus for and method of, forming externally framed image; program; and memory medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2004057962A JP4400256B2 (en) 2004-03-02 2004-03-02 Outer frame image creation device, program, and storage medium

Publications (2)

Publication Number Publication Date
JP2005246701A true JP2005246701A (en) 2005-09-15
JP4400256B2 JP4400256B2 (en) 2010-01-20

Family

ID=35027659

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2004057962A Expired - Fee Related JP4400256B2 (en) 2004-03-02 2004-03-02 Outer frame image creation device, program, and storage medium

Country Status (1)

Country Link
JP (1) JP4400256B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014063328A (en) * 2012-09-21 2014-04-10 Casio Comput Co Ltd Printer and printing method
JP2021002245A (en) * 2019-06-24 2021-01-07 ブラザー工業株式会社 Control program and information processor

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014063328A (en) * 2012-09-21 2014-04-10 Casio Comput Co Ltd Printer and printing method
JP2021002245A (en) * 2019-06-24 2021-01-07 ブラザー工業株式会社 Control program and information processor
JP7318351B2 (en) 2019-06-24 2023-08-01 ブラザー工業株式会社 Control program and information processing device

Also Published As

Publication number Publication date
JP4400256B2 (en) 2010-01-20

Similar Documents

Publication Publication Date Title
KR100634150B1 (en) Device and method for producing bracket image, device and method for producing outer frame image, and recording medium
JP3736127B2 (en) Image printing method and apparatus
US7649651B2 (en) Print data editing apparatus and print data editing program stored in computer readable medium
JP3731364B2 (en) Tape printing apparatus and control method thereof
JP4400256B2 (en) Outer frame image creation device, program, and storage medium
JP4333411B2 (en) Bracketed image creation device, bracketed image creation method and program
JP2741750B2 (en) Image processing device
JP2007034633A (en) Print image preparing device, print image preparing method and program
JPH0675952A (en) Document preparing device
JP4433554B2 (en) Image processing apparatus and recording medium
JPH07121510A (en) Document processor
JP2015185031A (en) Envelope printing program, recording medium, and data processing device
JPH04326460A (en) Character processor
JPH01281963A (en) Document processing device
JPH0422666A (en) Data output apparatus
JP3034339B2 (en) Document editing and printing system
JP2006107327A (en) Template creation method and image processor
JPH0793308A (en) Document processor
JPH04326465A (en) Character processor
JPS62282959A (en) Word processor
JPH05334288A (en) Document processor
JPH11179995A (en) Printer
JPS63179759A (en) Document preparing apparatus
JPH05151216A (en) Document processor with frame editing function
JPH05101061A (en) Document preparing device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20060313

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20090728

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20090908

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: 20091006

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

R150 Certificate of patent or registration of utility model

Ref document number: 4400256

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20091019

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

Free format text: PAYMENT UNTIL: 20121106

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20121106

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20131106

Year of fee payment: 4

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

LAPS Cancellation because of no payment of annual fees