WO2010102550A1 - Method and device for inverse printing - Google Patents

Method and device for inverse printing Download PDF

Info

Publication number
WO2010102550A1
WO2010102550A1 PCT/CN2010/070918 CN2010070918W WO2010102550A1 WO 2010102550 A1 WO2010102550 A1 WO 2010102550A1 CN 2010070918 W CN2010070918 W CN 2010070918W WO 2010102550 A1 WO2010102550 A1 WO 2010102550A1
Authority
WO
WIPO (PCT)
Prior art keywords
data
sub
printing
area
dot
Prior art date
Application number
PCT/CN2010/070918
Other languages
French (fr)
Chinese (zh)
Inventor
许加波
徐伟伟
丁进峰
杨现刚
张新平
Original Assignee
山东新北洋信息技术股份有限公司
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 山东新北洋信息技术股份有限公司 filed Critical 山东新北洋信息技术股份有限公司
Publication of WO2010102550A1 publication Critical patent/WO2010102550A1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/12Digital output to print unit, e.g. line printer, chain printer
    • G06F3/1201Dedicated interfaces to print systems
    • G06F3/1223Dedicated interfaces to print systems specifically adapted to use a particular technique
    • G06F3/1237Print job management
    • G06F3/125Page layout or assigning input pages onto output media, e.g. imposition
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/12Digital output to print unit, e.g. line printer, chain printer
    • G06F3/1201Dedicated interfaces to print systems
    • G06F3/1202Dedicated interfaces to print systems specifically adapted to achieve a particular effect
    • G06F3/1218Reducing or saving of used resources, e.g. avoiding waste of consumables or improving usage of hardware resources
    • G06F3/122Reducing or saving of used resources, e.g. avoiding waste of consumables or improving usage of hardware resources with regard to computing resources, e.g. memory, CPU

Abstract

The present invention belongs to the field of printing technology and provides a method and device for inverse printing, so as to solve the problem in the prior art that the inverse printing is inefficient. The method includes: receiving character data; dividing the character data into a plurality of subranges; implementing the inverse printing successively for the subranges in a sequence opposite to the receiving sequence. The beneficial effect of the present invention is that the efficiency of the inverse printing can be improved and the memory overhead can be saved.

Description

一种倒置打印方法^ ^置 技术领域 本发明涉及打印技术领域, 具体的讲是一种倒置打印方法及装置。 背景技术 打印机接收的数据一般可分为 2类:文本格式的字符数据与图形格式的 打印数据。 图形格式的打印数据可以直接打印, 不需要打印机进行转换, 但 数据量大、 传输时间长且要求大容量存储器; 文本格式的字符数据不能直接 打印, 必须在打印机内进行从文本格式到打印格式的数据转换, 但该数据量 小、 传输时间短、 需要緩存也比较小。 办公用打印机釆用图形格式打印的比 较多, 而小型打印机, 如超市、 餐厅中使用的 POS机釆用文本格式的居多。 根据打印头打印方式的不同, 小型打印机包括: 按行打印的行模式打印机, 如热敏打印机、 热转印打印机等; 按列打印的列式打印机, 如单列 4十式打印 机等。 多数情况下, 打印机按照接收数据的顺序打印, 且打印字符的方向与介 质前进方向一致, 如图 la所示。 在有些特殊应用场合如在厨房中, 为节省空 间把打印机挂在墙上使用时, 为了方便用户查看打印内容, 需要把字符以与 介质前进方向相反的方式打印, 且先接收的信息后打印、 后接收的信息先打 印, 如图 lb所示, 即所谓的倒置打印。 一般情况下, 文本格式的字符数据进行倒置打印时, 一次性对所有字符 行的字符数据进行格式转换, 然后对转换完的字符数据倒置打印, 该处理方 法简单易行, 在字符行数比较少的情况下还能较好的工作; 当字符行数比较 多时, 由于所生成的字符数据量很大, 因而其所需内存很大, 且处理所有字 符行所需时间较长, 大大降低打印机的性能, 特别是当字符行数很多时、 所 生成的字符数据量超过其存储容量时, 打印机甚至不能正常工作。 发明内容 本发明的目的在于提供一种倒置打印方法及装置,实现文本格式下多行 数据的倒置打印, 它需要较小的内存, 并且处理速度快, 特别适合成本比较 低的 POS打印机, 用于解决现有技术中倒置打印速度慢, 内存耗费大, 效率 低的问题。 为了解决上述技术问题, 本发明实施例提供了一种倒置打印方法, 该方 法包括: 接收字符数据; 将所述字符数据分为复数个子区域; 按接收相反顺序依次对所述子区域进行倒置打印。 才艮据本发明实施例方法的一个进一步的方面,将所述字符数据分为复数 个子区域可以包括: 确定所述字符数据总的字符行数 n, 其中 n为自然数; 以所述字符行为单位, 把所述字符数据划分成 n个子区域。 才艮据本发明实施例方法的再一个进一步的方面,在倒置打印所述子区域 中内容之前, 还包括: 将所述子区域中的字符数据转换为点阵数据。 才艮据本发明实施例方法的另一个进一步的方面,对所述子区域进行倒置 打印可以包括: a)对所述点阵数据以点行 /列为单位分为 m点行 /列并排序; b)逆序打印所述子区域中一点行 /列的逆序点数据; c)判断 m行 /列是否打印完, 如果打印完成则结束, 否则返回步骤 b)。 才艮据本发明实施例方法的另一个进一步的方面,对所述子区域进行倒置 打印还包括: 对所述点阵数据进行 180度旋转; 打印所述旋转后点阵数据。 才艮据本发明实施例方法的另一个进一步的方面, 对所述点阵数据进行 180度旋转的方法可以包括: 对所述点阵数据以点行 /列为单位分为 m点行 /列并排序; 颠倒子区域中所有点行 /列间的点行 /列数据; 颠倒子区域中所有点行 /列内的点数据。 为了解决上述技术问题, 本发明实施例还提供了一种倒置打印装置, 该 装置包括: 通信接口, 用于接收从主机发送过来的字符数据; 全区域数据处理单元, 用于将所述字符数据分为复数个子区域并排序; 子区域格式处理单元, 逆序将所述子区域中的字符数据转换为点阵数 据; 子区域倒置处理单元, 对所述子区域中的点阵数据进行倒置处理; 打印单元, 根据所述倒置后的点阵数据进行打印。 本发明的实施例的有益效果在于, 本方法可以明显提高内存的利用率、 节省打印等待时间。 通常处理中, 一次性转换整个区域内的全部数据即 n个 子区域数据, 假如每个子区域生成的字符数据为 m字节, 则整个打印区域的 字符数据占用内存空间为 n*m字节; 而釆用本发明的方案, 支如一次只处理 一个子区域, 其占用的内存空间为 m 字节, 则本控制方法可节省空间约为 (n- l)*m个字节。 如转换一个子区域的需要 x毫秒, 则现有技术一次性转换 所有子区域的数据需要 n * X毫秒, 本发明方法可减少 (n-1) * X毫秒的等待 时间。 由此可见, 倒置打印区域的字符行越多, 则本控制方法节省的内存越 多、 打印等待时间也越短。 附图说明 此处所说明的附图用来提供对本发明的进一步理解,构成本申请的一部 分, 并不构成对本发明的限定。 在附图中: 图 la所示为现有技术中正序打印示意图; 图 lb所示为现有技术中倒置打印示意图; 图 2所示为本发明倒置打印方法第一实施例流程图; 图 3所示为本发明倒置打印方法第二实施例流程图; 图 4所示为本发明行倒置打印方法实施例流程图; 图 5所示为本发明倒置打印中 180度行旋转倒置打印方法的实施例流程 图; 图 6所示为本发明倒置打印方法第三实施例流程图; 图 7所示为本发明倒置打印中列倒置打印方法实施例流程图; 图 8所示为本发明倒置打印中 180度列旋转倒置打印方法实施例流程 图; 图 9a所示为本实施例中行模式正序打印时子区域点阵数据示意图; 图 9b所示为本实施例中行倒置打印时子区域点阵数据示意图; 图 9c所示为本实施例中行模式 180度行倒置打印时子区域点阵数据示 意图; 图 10a所示为本实施例中正序打印时子区域点阵数据的示意图; 图 10b所示为本实施例中列倒置打印时子区域点阵数据示意图; 图 10c所示为本实施例中 180度列倒置打印时子区域点阵数据示意图; 图 11所示为全区域数据处理示意图; 图 12所示为子区域数据处理示意图; 图 13所示为本发明倒置打印装置实施例结构图。 具体实施方式 为使本发明的目的、技术方案和优点更加清楚明白, 下面结合实施方式 和附图, 对本发明做进一步详细说明。 在此, 本发明的示意性实施方式及其 说明用于解释本发明, 但并不作为对本发明的限定。 本发明实施例提供一种倒置打印方法及装置。以下结合附图对本发明进 行详细说明。 如图 2所示为本发明倒置打印方法第一实施例流程图。 根据本发明第一实施例的倒置打印方法可以包括以下步骤: 步骤 201 , 接收字符数据。 步骤 202 , 将所述字符数据分为复数个子区域, 将所述复数个子区域进 行排序; 步骤 203 , 按接收的相反顺序对所述子区域进行倒置打印。 作为本发明的一个实施例,在所述步骤 202之前还包括一个判断用户是 否发出倒置打印的指令, 如果收到倒置打印指令则进入步骤 202 , 否则进行 常规的正序打印, 即根据数据接收的先后顺序打印出接收到的数据。 由于正 序打印方法属于公知技术, 此处不再赞述。 同时结合图 3、 图 11和图 12 , 说明第二实施例倒置打印方法的处理步 骤, 本实施例适用于行式打印头的打印装置。 才艮据本发明第二实施例的倒置打印方法可以包括以下步骤: 步骤 301 , 接收文本格式的字符数据。 步骤 302 , 打印区域划分, 对接收数据緩冲区 111中的所有数据进行处 理, 按照数据的接收顺序 1105 , 艮据行宽、 换行指令等确定文本数据的字符 行数 n, 其中 n为自然数, 并按照从 1到 n排序, 把打印緩冲区 111分为子 区域 1101、 1102、 1103、 1104等。 步骤 303 , 记录子区域属性, 按照从 1到 n的顺序记录每个子区域中字 符数据在接收緩冲区中的首地址、 尾地址, 即地址属性; 记录行高、 字符放 大倍数等行属性, 地址属性和行属性均属于打印属性。 步骤 304 , 将所述子区域中的字符数据转换为点阵数据。 作为本发明的一个实施例, 逆序对子区域数据进行格式转换, 从第 n 个子区 i或 1104开始, 按照从 n至 1的顺序逐个对子区 i或 1104、 1103、 1102、BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to the field of printing technology, and in particular to an inverted printing method and apparatus. BACKGROUND OF THE INVENTION Data received by printers can generally be classified into two categories: character data in text format and print data in graphic format. Print data in graphic format can be printed directly, without the need for printer conversion, but the amount of data is large, the transmission time is long and large-capacity memory is required; the character data in text format cannot be directly printed, and must be in the printer from text format to print format. Data conversion, but the amount of data is small, the transmission time is short, and the cache is required to be small. Office printers use a graphic format to print more, while small printers, such as supermarkets and restaurants, use POS files in most text formats. Depending on how the printhead is printed, small printers include: Line-printed printers that print in rows, such as thermal printers, thermal transfer printers, etc.; column printers that print in columns, such as single-column 40-type printers. In most cases, the printer prints in the order in which it was received, and the direction in which the characters are printed coincides with the direction in which the media advances, as shown in Figure la. In some special applications, such as in the kitchen, when saving the space and hanging the printer on the wall, in order to facilitate the user to view the printed content, it is necessary to print the characters in the opposite direction to the media, and the information received first is printed. The information received later is printed first, as shown in Figure lb, the so-called inverted print. In general, when the character data of the text format is inverted, the character data of all the character lines is formatted at one time, and then the converted character data is inverted and printed. The processing method is simple and easy, and the number of character lines is relatively small. In the case of a better work; when the number of character lines is relatively large, because the amount of generated character data is large, so the required memory is large, and it takes a long time to process all the character lines, greatly reducing the printer's Performance, especially when the number of character lines is large and the amount of character data generated exceeds its storage capacity, the printer does not even work properly. SUMMARY OF THE INVENTION An object of the present invention is to provide an inverted printing method and apparatus for implementing inverted printing of multi-line data in a text format, which requires less memory and has a faster processing speed, and is particularly suitable for a low-cost POS printer for Solving the reverse printing speed in the prior art, the memory consumption is large, and the efficiency is Low problem. In order to solve the above technical problem, an embodiment of the present invention provides an inverted printing method, the method comprising: receiving character data; dividing the character data into a plurality of sub-regions; and sequentially inverting the sub-regions in reverse order of receiving . According to a further aspect of the method of the embodiment of the present invention, dividing the character data into a plurality of sub-regions may include: determining a total number of character lines n of the character data, wherein n is a natural number; , dividing the character data into n sub-regions. According to still another aspect of the method of the embodiment of the present invention, before the content in the sub-area is inverted, the method further includes: converting character data in the sub-area into dot matrix data. According to another further aspect of the method of the embodiments of the present invention, performing the inversion printing on the sub-areas may include: a) sorting the dot matrix data into m dot rows/columns in units of dot rows/columns and sorting b) Reversely print the reverse order data of a row/column in the sub-area; c) Determine whether the m-row/column is printed, and if the printing is completed, end, otherwise return to step b). According to still another aspect of the method of the embodiment of the present invention, performing the inverse printing on the sub-area further comprises: performing 180-degree rotation on the lattice data; and printing the rotated lattice data. According to still another aspect of the method of the embodiment of the present invention, the method for performing 180 degree rotation on the dot matrix data may include: dividing the dot matrix data into m dot rows/columns in units of dot rows/columns And sort; reverse dot row/column data between all point rows/columns in the subregion; Reverses point data in all point rows/columns in a subregion. In order to solve the above technical problem, an embodiment of the present invention further provides an inverted printing apparatus, the apparatus comprising: a communication interface, configured to receive character data sent from a host; and a full area data processing unit, configured to: Dividing into a plurality of sub-regions and sorting; sub-region format processing unit, converting character data in the sub-region into lattice data in reverse order; sub-region inversion processing unit, inverting lattice data in the sub-region; The printing unit performs printing according to the inverted dot matrix data. The beneficial effects of the embodiments of the present invention are that the method can significantly improve memory utilization and save printing waiting time. Generally, in the process, all data in the entire area, that is, n sub-area data, is converted at one time. If the character data generated by each sub-area is m bytes, the character data of the entire print area occupies a memory space of n*m bytes; With the solution of the present invention, if only one sub-area is processed at a time, and the occupied memory space is m bytes, the control method can save space by about (n-l)*m bytes. If it takes x milliseconds to convert a sub-area, the prior art requires n*X milliseconds to convert all sub-area data at a time, and the method of the present invention can reduce the waiting time of (n-1)*X milliseconds. It can be seen that the more character lines in the inverted print area, the more memory saved by the control method and the shorter the print waiting time. BRIEF DESCRIPTION OF THE DRAWINGS The accompanying drawings, which are incorporated in and in FIG In the drawings: Figure la is a schematic diagram of a positive sequence printing in the prior art; Figure lb is a schematic diagram of an inverted printing in the prior art; Figure 2 is a flow chart of a first embodiment of the inverted printing method of the present invention; A flow chart of a second embodiment of the inverted printing method of the present invention is shown; 4 is a flow chart of an embodiment of a method for printing an inverted printing according to the present invention; FIG. 5 is a flow chart showing an embodiment of a method for printing a 180 degree line of inverted printing in an inverted printing according to the present invention; FIG. 7 is a flow chart of an embodiment of a method for printing an inverted column in reverse printing according to the present invention; FIG. 8 is a flow chart showing an embodiment of a method for printing a 180 degree column inversion in reverse printing according to the present invention; FIG. 9b is a schematic diagram of the dot matrix data of the sub-area in the row inversion printing in the embodiment; FIG. 9c is a schematic diagram of the dot matrix data in the row in the embodiment; FIG. FIG. 10a is a schematic diagram of the dot matrix data of the sub-area in the positive sequence printing in the embodiment; FIG. 10b is a schematic diagram of the dot matrix data of the sub-area in the column inversion printing in the embodiment; FIG. 10c is a schematic diagram showing the dot matrix data of the sub-region when the 180-degree column is inverted and printed in the embodiment; FIG. 11 is a schematic diagram of data processing of the whole region; FIG. 12 is a data processing of the sub-region. It is intended; FIG. 13 is a configuration diagram of an inverted embodiment of the printing apparatus according to the invention. DETAILED DESCRIPTION OF THE INVENTION In order to make the objects, technical solutions and advantages of the present invention more comprehensible, the present invention will be further described in detail below with reference to the embodiments and drawings. The illustrative embodiments of the present invention and the description thereof are intended to explain the present invention, but are not intended to limit the invention. Embodiments of the present invention provide an inverted printing method and apparatus. The invention will be described in detail below with reference to the accompanying drawings. 2 is a flow chart of a first embodiment of an inverted printing method according to the present invention. The inverted printing method according to the first embodiment of the present invention may include the following steps: Step 201: Receive character data. Step 202: Divide the character data into a plurality of sub-regions, and sort the plurality of sub-regions. Step 203: Invert the sub-regions in reverse order of receiving. As an embodiment of the present invention, before the step 202, an instruction for determining whether the user issues an inverted print is received. If an inverted print command is received, the process proceeds to step 202, otherwise, the normal positive sequence printing is performed, that is, according to the data reception. The received data is printed in sequence. Since the positive sequence printing method is a well-known technique, it is not mentioned here. The processing steps of the inverted printing method of the second embodiment will be described with reference to Figs. 3, 11, and 12. This embodiment is applicable to a printing apparatus for a line head. The inverted printing method according to the second embodiment of the present invention may include the following steps: Step 301: Receive character data in a text format. Step 302: Print area division, and process all the data in the received data buffer 111. According to the data receiving order 1105, determine the number of character lines n of the text data according to the line width, the line feed instruction, etc., where n is a natural number. And sorting from 1 to n, the print buffer 111 is divided into sub-regions 1101, 1102, 1103, 1104 and the like. Step 303: Record the sub-area attribute, record the first address and the tail address of the character data in the receiving buffer in each sub-area in the order from 1 to n, that is, the address attribute; record line attributes such as line height and character magnification, Both address attributes and line attributes are print attributes. Step 304: Convert character data in the sub-area into dot matrix data. As an embodiment of the present invention, the sub-area data is format-converted in reverse order, starting from the n-th sub-area i or 1104, sub-area i or 1104, 1103, 1102 in order from n to 1.
1101中的字符数据进行处理, 根据该子区域字符数据在接收緩冲区中的首地 址、 尾地址等地址属性, 搜索到该子区域的字符数据; 根据该子区域的行高、 行宽、 字符放大倍数等行属性确定子区域点阵数据量大小; 对子区域中的字 符数据进行字符数据到点阵数据的格式转换, 转换完的点阵数据存储在子区 域打印緩冲区中, 由于每个子区域的字符行与行的高度不一定相同, 每个子 区域生成的点阵数据量大小也不一定相同, 例如因为字符行的高度不同, 第 n个子区域 1104生成的点阵数据 1206比第 n- 1个子区域 1103生成的点阵数 据 1207多。 作为本发明的一个实施例, 每次转换的子区域数据个数, 可以根据打印 机緩存的容量调整, 如 1个、 2个等, 由于点阵数据量比较大, 最节省内存 的情况下每次只转换一个子区域, 即每转换一个子区域字符数据就倒置打印 该子区域的点阵数据, 然后再对下一个子区域进行格式转换, 依次循环; 当 需要减少打印等待时间时, 要使用多个点阵数据緩冲区, 每次可以转换多个 子区域字符数据。 步骤 305 , 选择用户的子区域倒置打印方式, 可以根据需要, 选择适合 的打印方式: 行倒置打印或 180度行旋转倒置打印。 如果选择行倒置打印, 则进入步 4聚 306; 如果选择 180度行旋转倒置打印, 则进入步 4聚 307。 步骤 306 , 对所述子区域打印緩冲区内的点阵数据进行倒置打印。 步骤 307 , 对所述子区域打印緩冲区内的点阵数据进行 180度行旋转倒 置打印。 步骤 308 , 判断所有子区域是否都打印完, 如果没有打印完成则返回步 304 , 继续下一个子区域的处理, 否则结束。 子区域的处理过程如图 12 所示, 按照 1210 的方向, 先倒置打印第 n 个子区域的点阵数据 1206 , 然后倒置打印第 n- 1个子区域的点阵数据 1207 , 依次打印, 直到打印第 1个子区域的点阵数据 1209 , 最终的打印结果如 122 所示, 实现了全区域接收数据 111的倒置打印。 如图 4所示为本发明行倒置打印方法实施例流程图。 该实施例的方法包括以下步 4聚: 步骤 401 , 以打印单元每次可打印的点行数据为单位划分子区域点阵数 据, 按照从上到下的顺序对点行数据排列。 其中, 每个字符行点阵数据都由 若千点行组成。 下面结合图 9a、 图 9b说明子区域点行划分及数据的发送顺序。 图 9a 所示为本实施例中正序打印时子区域点阵数据示意图, 图 9b 所示为本实施 例中行倒置打印时子区域点阵数据示意图。 以打印单元每行可打印 k个点为 例, 在图 9a中打印緩冲区 90中存储 m点行、 每行 k个点的点阵数据, 打印 緩冲区内行间数据的发送顺序如 901所示;行内数据的发送顺序为 902所示。 要实现打印緩冲区内字符数据的倒置打印, 首先要上下颠倒緩冲区内行间数 据的发送顺序, 从第 1至 m行变为从第 m至 1行, 如图 9b的 903所示; 然 后, 再颠倒行内数据的发送顺序, 从第 1至 k点变为从第 k至 1点, 如图 9b 的 904所示。 步骤 402 , 逆序读取一点行数据。 即如图 9b中 903的方向, 按照第 m 至 1行的顺序, 从第 m行开始, 每次读取一点行数据。 步骤 403 , 将点行内的点数据逆序发送给打印单元。 如图 9b中 904所 示的方向, 按照从第 k至 1点的顺序, 依次发送该点行内的点数据 步骤 404 , 打印该点行数据。 步骤 405 , 判断所有行是否打印完, 如果打印完成则结束, 否则返回步 骤 402。 如图 5所示为本发明倒置打印中 180度行旋转倒置打印方法的实施例流 程图。 该实施例的方法包括以下步 4聚: 步骤 501 , 以点行为单位划分子区域点阵数据, 按照从上到下的顺序对 点行数据排序。 其中, 每个字符行的点阵数据都由若千点行组成。 步骤 502 , 上下颠倒子区域中所有点行数据。 步骤 503 , 左右颠倒子区域中所有点行的行内点数据。 图 9a所示为本实施例中行模式正序打印时子区域点阵数据示意图, 图 9c所示为本实施例中行模式 180度行倒置打印时子区域点阵数据示意图。 把 图 9a中打印緩冲区 90内的 m行 * k点的数据进行 180度旋转, 转换成图 9c中打印緩冲区 92中的 m行 * k点的数据, 即实现緩冲区内行间数据的上 下颠倒、 行内数据的左右颠倒。 步骤 504 , 按照图 9c中 905的方向, 按照第 1至 m行的顺序 (实际点 行数据的第 m行至 1行), 从第 1行开始, 逐行读取一点行数据。 步骤 505 , 按照图 9c中 906的方向, 按照第 1至 k点的顺序 (实际数 据的第 k点至 1点的顺序), 依次发送该点行数据。 步骤 506 , 打印该点行数据。 步骤 507 , 判断所有点行是否打印完, 如果打印完成则结束, 否则返回 步骤 504。 如图 6所示为本发明倒置打印方法第三实施例流程图。 本实施例适用于列式打印头的打印装置,和第二实施例的主要步骤基本 相同, 区别在于实施子区域数据倒置打印时的具体实施方式不同。 本发明倒置打印方法的第三实施例可以包括以下步骤: 步骤 601 , 接收文本格式的字符数据。 步骤 602 , 打印区域划分, 对接收数据緩冲区中的所有数据进行处理, 按照数据的接收顺序, 根据行宽、 换行指令等确定文本数据的字符行数 n, 其中 n为自然数, 并按照从 1到 η ·ίφ序。 步骤 603 , 记录子区域属性, 按照从 1到 η的顺序记录每个子区域中字 符数据在接收緩冲区中的首地址、 尾地址, 即地址属性; 记录行高、 字符放 大倍数等行属性, 地址属性和行属性均属于打印属性。 步骤 604 , 逆序对子区域数据进行格式转换, 从第 η个子区域开始, 按 照从 η至 1的顺序逐个对子区域字符数据进行处理, 居该子区域字符数据 在接收緩冲区中的首地址、尾地址等地址属性,搜索到该子区域的字符数据; 根据该子区域的行高、 行宽、 字符放大倍数等行属性确定子区域点阵数据量 大小; 对子区域中的字符数据进行字符数据到点阵数据的格式转换, 转换完 的点阵数据存储在子区域打印緩冲区中, 由于每个子区域的字符行与行的高 度不一定相同, 每个子区域生成的点阵数据量大小也不一定相同。 步骤 605 , 选择用户的子区域倒置打印方式, 可以根据需要, 选择适合 的打印方式: 列倒置打印或 180度列旋转倒置打印。 如果选择列倒置打印, 则进入步骤 606; 如果选择 180度列旋转打印, 则进入步骤 607。 步骤 606 , 对所述子区域打印緩冲区内的点阵数据进行列倒置打印。 步骤 607 , 对所述子区域打印緩冲区内的点阵数据进行 180度列旋转倒 置打印。 步骤 608 , 判断所有子区域是否都打印完, 如果没有打印完成则返回步 l 604 , 否则结束。 如图 7所示为本发明倒置打印中列倒置打印方法实施例流程图。 本发明倒置打印中列倒置打印方法实施例可以包括以下步骤: 步骤 701 , 以打印单元每次可打印的点列数据为单位划分子区域点阵数 据, 按照从左到右的顺序对点列数据排序。 下面结合图 10a、图 10b说明子区域点列划分及数据的发送顺序。图 10a 所示为本实施例中正序打印时子区域点阵数据的示意图, 图 10b所示为本实 施例中列倒置打印时子区域点阵数据示意图。 以打印单元每列可打印 m个点 为例, 在图 10a中打印緩冲区 100中存储 k点列、 每列 m点的点阵数据, 打 印緩冲区内列间数据的发送顺序如 1001所示; 列内数据的发送顺序为 1002 所示。 要实现打印緩冲区内字符数据的倒置打印, 首先要左右颠倒緩冲区内 列间数据的发送顺序, 从第 1至 k列变为从第 k至 1列, 如图 10b的 1003 所示; 然后, 颠倒列内数据的发送顺序, 从第 1至 m点变为从第 m至 1点, ^口图 10b的 1004所示。 步骤 702 , 逆序读取一点列数据。 即如图 10b中 1003的方向, 按照第 k 至 1列的顺序, 从第 k列开始, 每次读取一点列数据。 步骤 703 , 将所述点列的点数据逆序发送给打印单元。 如图 10b中 1004 所示的方向, 按照从第 m至 1点的顺序, 依次发送该点列数据 步骤 704 , 打印该点列数据。 步骤 705 , 判断所有点列是否打印完, 如果打印完成则结束, 否则返回 步骤 702。 如图 8所示为本发明倒置打印中 180度列旋转倒置打印方法实施例流程 图。 本发明倒置打印中 180 度列旋转倒置打印方法实施例可以包括以下步 骤: 步骤 801 , 以点列为单位划分子区域点阵数据, 按照从左到右的顺序对 点列数据排序。 步骤 802 , 左右颠倒子区域中所有点列数据。 步骤 803 , 上下颠倒子区域中所有点列内的点数据。 图 10a所示为本实施例中正序打印时子区域点阵数据示意图, 图 10c所 示为本实施例中 180度列倒置打印时子区域点阵数据示意图。 把图 10a中打 印緩冲区 100内的 k列 * m点的点阵数据进行 180度旋转,转换成图 10c中 打印緩冲区 102中的 k列 * m点的点阵数据, 即实现緩冲区内点列数据的左 右颠倒、 列内点数据的上下颠倒。 步骤 804 , 按照图 10c中 1005的方向, 按照第 1至 k列的顺序 (实际 数据的第 k至 1列), 从第 1列开始, 依次读取一点列数据。 步骤 805 , 按照图 10c中 1006的方向, 按照第 1至 m点的顺序 (实际 数据的第 m至 1点)发送一点列数据。 步骤 806 , 打印该点列字符数据。 步 4聚 807 , 判断所有点列是否打印完, 如果打印完成则结束, 否则返回 步骤 804。 如图 13所示为本发明倒置打印装置实施例结构图。 本发明的倒置打印装置可以包括: 通信接口 1301 , 处理单元和打印单 元 1306。 通信接口 1301 , 用于接收从主机发送过来的字符数据。 处理单元, 用 于将所述字符数据分为复数个子区域。 打印单元 1306 , 用于按接收相反顺序 依次对所述子区域进行倒置打印。 其中, 处理单元可以包括: 全区域数据处理单元 1303 , 子区域格式处 理单元 1304 , 子区域倒置处理单元 1305。 在该实施例中, 倒置打印装置可 以包括: 通信接口 1301 , 接收緩冲区 1302 , 全区 i或数据处理单元 1303 , 子 区 i或格式处理单元 1304 , 子区 i或倒置处理单元 1305 , 打印单元 1306。 通信接口 1301 , 用于接收从主机发送过来的文本格式的字符数据并把 字符数据存储在接收緩冲区 1302中。 接收緩冲区 1302 , 用于存储所述字符数据。 全区域数据处理单元 1303 , 用于将所述字符数据分为复数个子区域, 将所述复数个子区域进行排序。 对接收的字符数据进行检测 ,每接收一行字符数据则生成该行数据的各 种属性并记录该属性: 确定该行字符数据在整个接收緩冲区内的首地址、 尾 地址, 即地址属性; 根据接收的行高等生成该行字符数据的行属性, 存储该 行字符数据的地址属性及行属性。 子区域格式处理单元 1304 , 以字符行为单位划分接收字符数据为 n个 子区域并进行从 1至 n的排序, 按照从 n至 1的顺序, 对每行字符数据进行 格式转换: 根据子区域字符数据的地址属性, 搜索到该子区域的字符数据; 根据该子区域的行属性对子区域中的文本格式数据进行字符数据到点阵数据 的转换, 转换完的点阵数据存储在子区域打印緩冲区中。 子区域倒置处理单元 1305 , 对存储在子区域緩冲区中的点阵数据进行 倒置处理并 ί巴处理过的点阵数据按行 /列发送给打印单元。 打印单元 1306 , 按行 /列打印所述点阵数据。 作为本发明的一个实施例, 所述子区域倒置处理单元 1305 , 可以按照 每处理一行 /列点阵数据就将该行 /列点阵数据传送给打印单元 1306 , 进行打 印处理: 按点行 /列方式划分打印緩冲区中的点阵数据, 逆序读取一行 /列点 阵数据, 逆序发送该点行 /列的点数据, 打印该点行 /列数据; 然后再逆序读 取下一点行 /列数据, 将点行 /列中的点数据逆序发送给打印单元 1306 , 进行 打印处理, 直至打印緩冲区中的所有点行 /列数据全部打印完。 作为本发明的一个实施例, 所述子区域倒置处理单元 1305 , 按照点行 / 列的方式划分点阵数据, 然后一次性对打印緩冲区中的所有行 /列点阵数据进 行 180旋转, 再逐行 /列读取每一点行 /列数据, 发送该点行 /列的点数据并打 印该点行 /列数据, 直至打印緩冲区中的所有点行 /列数据全部打印完。 180旋 转点阵数据的方法为: 当打印单元 1306 按照点行来打印数据时, 按点行划 分点阵数据, 先上下颠倒子区域中所有点行间的点行数据, 再左右颠倒所有 点行内的点数据; 当打印单元 1306 按照点列来打印数据时, 按点列划分点 阵数据, 先左右颠倒子区域中所有点列间的点列数据, 再上下颠倒所有点列 内的点数据。 本发明的实施例的有益效果在于, 本方法可以明显提高内存的利用率、 节省打印等待时间。 现有技术中, 一次性转换整个区域内的全部字符数据即 n个子区域字符数据, 假如每个子区域生成的字符数据为 m字节, 则整个打 印区域的字符数据占用内存空间为 n*m字节; 而釆用本发明的方案, ^ _如一 次只处理一个子区域, 其占用的内存空间为 m字节, 则本控制方法可节省空 间约为 (n- l)*m个字节。 如转换一个子区域的字符数据需要 X毫秒, 则现有 技术一次性转换所有子区域的字符数据需要 n * X毫秒, 本发明方法可减少 (n- 1) * X毫秒的等待时间。 由此可见, 倒置打印区域的字符行越多, 则本控 制方法节省的内存越多、 打印等待时间也越短。 以上所述的具体实施方式, 对本发明的目的、技术方案和有益效果进行 了进一步详细说明, 所应理解的是, 以上所述仅为本发明的具体实施方式而 已, 并不用于限定本发明的保护范围, 凡在本发明的精神和原则之内, 所做 的任何修改、 等同替换、 改进等, 均应包含在本发明的保护范围之内。 The character data in 1101 is processed, and the character data of the sub-area is searched according to the address attribute such as the first address and the tail address of the sub-region character data in the receiving buffer; according to the row height and the line width of the sub-area, The line attribute such as the character magnification is used to determine the size of the dot matrix data amount in the sub-area; the character data to the dot matrix data is converted in the character data in the sub-area, and the converted dot matrix data is stored in the sub-area In the domain print buffer, since the height of the character lines and the rows of each sub-area are not necessarily the same, the amount of lattice data generated by each sub-area is not necessarily the same, for example, because the height of the character lines is different, the n-th sub-area 1104 The generated dot matrix data 1206 is larger than the dot matrix data 1207 generated by the n-1th sub-region 1103. As an embodiment of the present invention, the number of sub-area data converted each time can be adjusted according to the capacity of the printer buffer, such as one, two, etc., because the amount of bitmap data is relatively large, the most memory-saving case Convert only one sub-area, that is, invert the dot matrix data of the sub-region every time the sub-region character data is converted, and then perform the format conversion on the next sub-region, and sequentially cycle; when it is necessary to reduce the print waiting time, use more A dot matrix data buffer that can convert multiple sub-region character data at a time. Step 305: Select a sub-area inversion printing mode of the user, and select an appropriate printing mode according to requirements: line inversion printing or 180 degree line rotation inversion printing. If line inversion printing is selected, then step 4 is gathered 306; if 180 degree line rotation inversion printing is selected, then step 4 is gathered 307. Step 306: Perform inverted printing on the dot matrix data in the sub-region print buffer. Step 307: Perform 180-degree rotation inversion printing on the dot matrix data in the sub-region print buffer. Step 308: Determine whether all sub-areas are printed. If no printing is completed, return to step 304 to continue the processing of the next sub-area, otherwise, the process ends. The processing of the sub-area is as shown in Fig. 12. In the direction of 1210, the dot matrix data 1206 of the nth sub-area is printed first, and then the dot matrix data 1207 of the n-th sub-area is printed upside down, and the printing is sequentially performed until the printing is performed. The dot matrix data 1209 of one sub-area, the final print result is as shown at 122, and the inverted printing of the full-area received data 111 is realized. FIG. 4 is a flow chart of an embodiment of a line inversion printing method according to the present invention. The method of this embodiment includes the following steps: Step 401: Sub-region dot matrix data is divided into units of dot line data that can be printed by the printing unit, and the dot row data is arranged in order from top to bottom. Among them, each character row dot matrix data is composed of thousands of dots. The sub-area dot row division and the data transmission order will be described below with reference to FIGS. 9a and 9b. Figure 9a The figure shows the sub-area dot matrix data in the positive sequence printing in the embodiment, and FIG. 9b shows the sub-area dot matrix data in the row inversion printing in the embodiment. For example, in the printing unit, k points can be printed in each line. In the print buffer 90 in FIG. 9a, dot matrix data of m dots and k dots per row are stored, and the order of sending data between rows in the print buffer is as follows: As shown; the order in which the inline data is sent is 902. To achieve inverted printing of character data in the print buffer, firstly, the order of sending data between lines in the buffer is reversed, from 1st to mth to mth to 1st, as shown by 903 in FIG. 9b; Then, the order of transmission of the in-row data is reversed, from the 1st to the kth to the kth to the 1st, as shown by 904 in FIG. 9b. Step 402: Read a row of data in reverse order. That is, as shown in the direction of 903 in Fig. 9b, in the order of the mth to the first line, starting from the mth line, one line of data is read at a time. Step 403: Send the point data in the dot row to the printing unit in reverse order. In the direction shown by 904 in Fig. 9b, the dot data step 404 in the dot row is sequentially transmitted in the order from the kth to the 1st dot, and the dot row data is printed. Step 405: Determine whether all the lines are printed, and if the printing is completed, the process ends, otherwise return to step 402. FIG. 5 is a flow chart showing an embodiment of a 180 degree line rotation inversion printing method in an inverted printing according to the present invention. The method of this embodiment includes the following steps: Step 501: Divide the sub-area dot matrix data in a dot row unit, and sort the dot row data in order from top to bottom. Among them, the dot matrix data of each character line is composed of thousands of dots. Step 502: Upside down all point data in the sub-area. Step 503: Invert the in-row point data of all the dot rows in the sub-area left and right. FIG. 9a is a schematic diagram of the sub-area dot matrix data in the row mode positive sequence printing in the embodiment, and FIG. 9c is a schematic diagram of the sub-region dot matrix data in the row mode 180-degree line inversion printing in the embodiment. The data of m rows * k points in the print buffer 90 in FIG. 9a is rotated by 180 degrees, and converted into data of m rows * k dots in the print buffer 92 of FIG. 9c, that is, between rows in the buffer. The data is upside down and the data in the row is reversed. Step 504, according to the direction of 905 in Fig. 9c, in the order of the 1st to mth rows (the mth row to the 1st row of the actual dot row data), starting from the 1st row, one line of data is read line by line. Step 505, in accordance with the direction of 906 in Fig. 9c, sequentially transmit the dot row data in the order of points 1 to k (the order of the kth point to the 1st point of the actual data). Step 506, printing the dot row data. Step 507, it is judged whether all the dot lines are printed, and if the printing is completed, the process ends, otherwise the process returns to step 504. FIG. 6 is a flow chart showing a third embodiment of the inverted printing method of the present invention. The printing device of the present embodiment is applicable to the printing device of the column print head, and is basically the same as the main steps of the second embodiment, with the difference that the specific embodiment when performing sub-area data inversion printing is different. The third embodiment of the inverted printing method of the present invention may include the following steps: Step 601: Receive character data in a text format. Step 602: Print area division, and process all data in the received data buffer. According to the data receiving order, determine the number of character lines n of the text data according to the line width, the line feed instruction, etc., where n is a natural number, and according to the 1 to η · ίφ order. Step 603, recording sub-area attributes, recording the first address and the tail address of the character data in the receiving buffer in each sub-area in the order from 1 to η, that is, the address attribute; recording line attributes such as line height and character magnification, Both address attributes and line attributes are print attributes. Step 604, performing format conversion on the sub-area data in reverse order, starting from the n-th sub-area, processing the sub-area character data one by one in the order from η to 1, and ranking the first address of the sub-area character data in the receiving buffer And the address attribute such as the tail address, searching for the character data of the sub-area; determining the size of the sub-area dot matrix data according to the row attribute of the sub-area such as the row height, the line width, and the character magnification; and performing the character data in the sub-area The format conversion of character data to dot matrix data, the converted dot matrix data is stored in the sub-region print buffer, since the height of the character row and the row of each sub-region is not necessarily the same, the amount of lattice data generated by each sub-region The size is not necessarily the same. Step 605: Select a sub-area inversion printing mode of the user, and select an appropriate printing mode according to requirements: column inversion printing or 180 degree column rotation inversion printing. If you select column inversion printing, Then, proceed to step 606; if 180 degree column rotation printing is selected, then step 607 is entered. Step 606: Perform column inversion printing on the dot matrix data in the sub-region print buffer. Step 607: Perform 180-degree column rotation inversion printing on the dot matrix data in the sub-region print buffer. Step 608: Determine whether all sub-areas are printed. If no printing is completed, return to step l 604, otherwise end. FIG. 7 is a flow chart showing an embodiment of a method for printing an inverted column in an inverted printing according to the present invention. The embodiment of the method for inverting printing in the inverted printing of the present invention may include the following steps: Step 701: Divide the sub-area dot matrix data in units of dot-column data that can be printed by the printing unit, and sort the data according to the order from left to right. Sort. The sub-area point column division and the data transmission order will be described below with reference to Figs. 10a and 10b. FIG. 10a is a schematic diagram showing the dot matrix data of the sub-area in the positive sequence printing in the embodiment, and FIG. 10b is a schematic diagram showing the dot matrix data of the sub-area in the column inversion printing in the embodiment. For example, in the printing unit 100, the dot matrix data of the k dot column and the m dot of each column is stored in the print buffer 100 in FIG. 10a, and the order of sending the data between the columns in the print buffer is 1001. As shown; the order in which the data in the column is sent is 1002. To achieve inverted printing of character data in the print buffer, first reverse the order of sending data between columns in the buffer, from column 1 to column k to column k to column 1, as shown in 1003 of Figure 10b. Then, the order in which the data in the column is reversed is changed from the 1st to the mth point to the mth to the 1st point, and the mouth is shown as 1004 in Fig. 10b. Step 702: Read a column of data in reverse order. That is, as shown in the direction of 1003 in Fig. 10b, in the order of the kth to the 1st column, starting from the kth column, one column of data is read at a time. Step 703: Send the point data of the dot column to the printing unit in reverse order. In the direction shown by 1004 in Fig. 10b, the dot column data step 704 is sequentially transmitted in the order from the mth to the 1st point, and the dot column data is printed. Step 705: Determine whether all the dot columns are printed, and if the printing is completed, the process ends, otherwise return to step 702. FIG. 8 is a flowchart of an embodiment of a 180 degree column rotation inverted printing method in an inverted printing according to the present invention. Figure. The embodiment of the 180 degree column rotation inversion printing method in the inverted printing of the present invention may include the following steps: Step 801: Sub-area dot matrix data is divided into units of dot columns, and the dot column data is sorted in order from left to right. In step 802, the data of all the points in the sub-area is reversed. Step 803: Upside down the point data in all the point columns in the sub-area. FIG. 10a is a schematic diagram of the dot matrix data of the sub-area in the positive sequence printing in the embodiment, and FIG. 10c is a schematic diagram of the dot matrix data in the sub-area of the 180 degree column inversion printing in the embodiment. The dot matrix data of the k column * m points in the print buffer 100 in FIG. 10a is rotated by 180 degrees, and converted into dot matrix data of k columns * m points in the print buffer 102 in FIG. 10c, that is, the buffer data is realized. The data in the column is reversed left and right, and the data in the column is upside down. Step 804, in accordance with the direction of 1005 in Fig. 10c, in the order of the first to kth columns (the kth to the 1st column of the actual data), starting from the first column, sequentially reading a column of data. Step 805: According to the direction of 1006 in Fig. 10c, a bit of column data is transmitted in the order of points 1 to m (the mth to the 1st point of the actual data). Step 806: Print the dot column character data. Step 4 gathers 807, judges whether all the dot columns are printed, and ends if the printing is completed, otherwise returns to step 804. FIG. 13 is a structural diagram of an embodiment of an inverted printing apparatus according to the present invention. The inverted printing apparatus of the present invention may include: a communication interface 1301, a processing unit, and a printing unit 1306. The communication interface 1301 is configured to receive character data sent from the host. And a processing unit, configured to divide the character data into a plurality of sub-regions. The printing unit 1306 is configured to perform inversion printing on the sub-areas in the reverse order of receiving. The processing unit may include: a full-area data processing unit 1303, where the sub-region format The unit 1304, the sub-area inversion processing unit 1305. In this embodiment, the inverted printing device may include: a communication interface 1301, a receiving buffer 1302, a full area i or a data processing unit 1303, a sub-area i or a format processing unit 1304, a sub-area i or an inversion processing unit 1305, printing Unit 1306. The communication interface 1301 is configured to receive character data in a text format sent from the host and store the character data in the receiving buffer 1302. A receive buffer 1302 is configured to store the character data. The full area data processing unit 1303 is configured to divide the character data into a plurality of sub-areas, and sort the plurality of sub-areas. The received character data is detected, and each line of character data is received to generate various attributes of the line data and the attribute is recorded: determining a first address and a tail address of the line character data in the entire receiving buffer, that is, an address attribute; The row attribute of the line character data is generated according to the received line height, and the address attribute and the line attribute of the line character data are stored. The sub-area format processing unit 1304 divides the received character data into n sub-areas in a character line unit and performs sorting from 1 to n, and performs format conversion on each line of character data in order from n to 1: based on sub-region character data The address attribute searches for the character data of the sub-area; converts the character data to the dot matrix data according to the line attribute of the sub-area, and converts the converted dot matrix data to be stored in the sub-area. In the rushing area. The sub-area inversion processing unit 1305 performs inversion processing on the dot matrix data stored in the sub-region buffer and transmits the processed lattice data to the printing unit in rows/columns. The printing unit 1306 prints the dot matrix data in rows/columns. As an embodiment of the present invention, the sub-area inversion processing unit 1305 can transmit the row/column dot matrix data to the printing unit 1306 for processing one row/column matrix data, and perform printing processing: The column mode divides the dot matrix data in the print buffer, reads the row/column dot matrix data in reverse order, sends the dot data of the dot row/column in reverse order, prints the dot row/column data; and then reads the next row in reverse order. /column data, the dot data in the dot row/column is sent to the printing unit 1306 in reverse order, and the printing process is performed until all the dot row/column data in the print buffer is completely printed. As an embodiment of the present invention, the sub-area inversion processing unit 1305 divides the dot matrix data according to the dot row/column manner, and then performs 180 rotations on all the row/column dot matrix data in the print buffer at one time. Then read each row/column data row by row/column, send the point data of the point row/column and hit Print the dot row/column data until all dot row/column data in the print buffer has been printed. The method for rotating the dot matrix data is as follows: When the printing unit 1306 prints the data according to the dot row, the dot matrix data is divided by the dot row, and the dot row data between all the dot rows in the subregion is inverted upside down, and then all the dot rows are reversed left and right. When the printing unit 1306 prints data according to the dot column, the dot matrix data is divided by the dot column, and the dot column data between all the dot columns in the sub-area is inverted first and right, and the dot data in all the dot columns is reversed. The beneficial effects of the embodiments of the present invention are that the method can significantly improve memory utilization and save printing waiting time. In the prior art, all character data in the entire area, that is, n sub-region character data, is converted at one time. If the character data generated by each sub-area is m bytes, the character data of the entire print area occupies a memory space of n*m words. In the scheme of the present invention, if __ only processes one sub-area at a time, and the occupied memory space is m bytes, the control method can save space by about (n-l)*m bytes. If it takes X milliseconds to convert the character data of one sub-area, the prior art requires n * X milliseconds to convert the character data of all sub-areas at a time, and the method of the present invention can reduce the waiting time of (n-1) * X milliseconds. It can be seen that the more character lines in the inverted print area, the more memory saved by the control method and the shorter the print waiting time. The specific embodiments of the present invention have been described in detail with reference to the preferred embodiments of the present invention. The scope of the protection, any modifications, equivalents, improvements, etc., made within the spirit and scope of the invention are intended to be included within the scope of the invention.

Claims

权 利 要 求 书 Claim
1. 一种倒置打印方法, 其特征在于该方法包括: An inverted printing method, characterized in that the method comprises:
接收字符数据;  Receiving character data;
将所述字符数据分为复数个子区域;  Dividing the character data into a plurality of sub-regions;
按接收相反顺序依次对所述子区域进行倒置打印。  The sub-areas are in reverse printed in the reverse order of reception.
2. 根据权利要求 1 所述的方法, 其特征在于, 将所述字符数据分为复数 个子区域包括: 2. The method according to claim 1, wherein dividing the character data into a plurality of sub-areas comprises:
确定所述字符数据总的字符行数 n, 其中 n为自然数; 以所述字 符行为单位, 把所述字符数据划分成 n个子区域。 Determining the total number of character lines n of the character data, where n is a natural number; dividing the character data into n sub-regions in the character row unit.
3. 根据权利要求 1 所述的方法, 其特征在于, 在对所述子区域进行倒置 打印之前, 还包括: 将所述子区域中的字符数据转换为点阵数据。 3. The method according to claim 1, wherein before performing the inverse printing on the sub-area, the method further comprises: converting character data in the sub-area into dot matrix data.
4. 根据权利要求 3 所述的方法, 其特征在于, 对所述子区域进行倒置打 印包括: 4. The method according to claim 3, wherein the inverting printing of the sub-area comprises:
a)对所述点阵数据以点行 /列为单位分为 m点行 /列并排序; b)逆序打印所述子区域中一点行 /列的逆序点数据; c)判断 m行 /列是否打印完, 如果打印完成则结束, 否则返回步 骤 b)。  a) dividing the dot matrix data into m dot rows/columns in units of dot rows/columns and sorting; b) printing reverse order data of one row/column in the subregion in reverse order; c) judging m rows/columns Whether it is printed, if the printing is completed, it ends, otherwise it returns to step b).
5. 根据权利要求 3 所述的方法, 其特征在于, 对所述子区域进行倒置打 印还包括: 5. The method according to claim 3, wherein the inverting printing the sub-area further comprises:
对所述点阵数据进行 180度旋转;  Performing a 180 degree rotation on the lattice data;
打印所述旋转后点阵数据。  The rotated dot matrix data is printed.
6. 根据权利要求 5 所述的方法, 其特征在于, 对所述点阵数据进行 180 度旋转的方法包括: 6. The method according to claim 5, wherein the method of performing 180 degree rotation on the lattice data comprises:
对所述点阵数据以点行 /列为单位分为 m点行 /列并排序; 颠倒所述子区域中所有点行 /列间的点行 /列数据; 颠倒所述子区域中所有点行 /列内的点数据。 一种倒置打印装置, 其特征在于该装置包括: Sorting the dot matrix data into m dot rows/columns in units of dot rows/columns and sorting; inverting dot row/column data between all dot rows/columns in the subregion; Reverses point data in all point rows/columns in the sub-area. An inverted printing device, characterized in that the device comprises:
通信接口, 用于接收从主机发送过来的字符数据; 处理单元, 用于将所述字符数据分为复数个子区域;  a communication interface, configured to receive character data sent from the host; and a processing unit, configured to divide the character data into a plurality of sub-areas;
打印单元, 用于按接收相反顺序依次对所述子区域进行倒置打 印。 根据权利要求 7所述的装置, 其特征在于, 所述处理单元包括:  a printing unit, configured to invert the sub-areas in turn in the reverse order of receiving. The apparatus according to claim 7, wherein the processing unit comprises:
全区域数据处理单元, 用于将所述字符数据分为复数个子区域并 排序;  a full area data processing unit, configured to divide the character data into a plurality of sub-areas and sort them;
子区域格式处理单元, 逆序将所述子区域中的字符数据转换为点 阵数据;  a sub-region format processing unit that converts character data in the sub-region into bitmap data in reverse order;
子区域倒置处理单元, 对所述子区域中的点阵数据进行倒置处 理;  The sub-area inversion processing unit performs inversion processing on the lattice data in the sub-area;
其中, 所述打印单元根据所述倒置后的点阵数据进行打印。  The printing unit performs printing according to the inverted dot matrix data.
PCT/CN2010/070918 2009-03-11 2010-03-08 Method and device for inverse printing WO2010102550A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN200910118992.7 2009-03-11
CN200910118992A CN101833425A (en) 2009-03-11 2009-03-11 Inversely printing method and device

Publications (1)

Publication Number Publication Date
WO2010102550A1 true WO2010102550A1 (en) 2010-09-16

Family

ID=42717508

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2010/070918 WO2010102550A1 (en) 2009-03-11 2010-03-08 Method and device for inverse printing

Country Status (2)

Country Link
CN (1) CN101833425A (en)
WO (1) WO2010102550A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103182862B (en) * 2011-12-30 2016-03-23 山东新北洋信息技术股份有限公司 Print control program and device
CN112181322A (en) * 2020-08-31 2021-01-05 北京三快在线科技有限公司 Online printing method and device and electronic equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1221908A (en) * 1997-12-27 1999-07-07 三星电子株式会社 Image printing system and partitioned printing method therein
CN1460943A (en) * 2002-04-24 2003-12-10 夏普公司 Image processing equipment
US6671062B1 (en) * 1998-12-18 2003-12-30 Sharp Laboratories Of America, Inc. Journaling technique for reverse order printing

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1221908A (en) * 1997-12-27 1999-07-07 三星电子株式会社 Image printing system and partitioned printing method therein
US6671062B1 (en) * 1998-12-18 2003-12-30 Sharp Laboratories Of America, Inc. Journaling technique for reverse order printing
CN1460943A (en) * 2002-04-24 2003-12-10 夏普公司 Image processing equipment

Also Published As

Publication number Publication date
CN101833425A (en) 2010-09-15

Similar Documents

Publication Publication Date Title
JPH0477336B2 (en)
WO2012019475A1 (en) Access control method and device for reduced latency dynamic random access memory with separate input/output (rldram sio)
CN101923522B (en) Storage controller and processing method of data operation commands
CN102279802A (en) Method and device for increasing reading operation efficiency of synchronous dynamic random storage controller
WO2010102550A1 (en) Method and device for inverse printing
CN1292568C (en) Device and method for group continuous transfer of multi-team data
TW466408B (en) Signal processing device
CN102103472A (en) Device and method for printing primary image and mirror image of image during ink-jet printing
CN206975631U (en) A kind of universal input output timing processor
CN110855894B (en) Image data acquisition method and device
CN1121206A (en) Input buffer device for a printer using an fifo and data input method
CN1192303C (en) Printer, printing method and information recording medium
JP2006127110A (en) Dram memory access control technique and means
JPS63123765A (en) Recording device
JPS6244352B2 (en)
JP2004234461A (en) Information processing device and method, and program
EP1163640A1 (en) Bit string conversion device
JPS6048774B2 (en) Data file management method
JPS6264562A (en) Pattern conversion device
JPH0596811A (en) Printing method
JPS60254319A (en) Buffering method of page type data
JPH05313995A (en) Memory control method
JPS62297153A (en) Controller of page printer
JPS6112364A (en) Data printing control system
JPH0729449B2 (en) Printer controller

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 10750346

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 10750346

Country of ref document: EP

Kind code of ref document: A1