WO2012089167A1 - Drawing device and drawing method - Google Patents

Drawing device and drawing method Download PDF

Info

Publication number
WO2012089167A1
WO2012089167A1 PCT/CN2012/000008 CN2012000008W WO2012089167A1 WO 2012089167 A1 WO2012089167 A1 WO 2012089167A1 CN 2012000008 W CN2012000008 W CN 2012000008W WO 2012089167 A1 WO2012089167 A1 WO 2012089167A1
Authority
WO
WIPO (PCT)
Prior art keywords
storage module
stroke
module
pending
current
Prior art date
Application number
PCT/CN2012/000008
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 WO2012089167A1 publication Critical patent/WO2012089167A1/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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04845Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range for image manipulation, e.g. dragging, rotation, expansion or change of colour

Definitions

  • the present invention relates to a drawing device and a drawing method; the figure includes graphics, characters, letters, symbols, and Arabic numerals.
  • the action similar to the final drawing is: mouse button double click action , click on a specific button (such as: "Done” button), click on a specific area (such as: click outside the drawing area), and a timer (such as: the user does not perform any drawing action within a certain length of time, then automatically will be current All drawing results generate independent graphics, etc.; therefore, the user continuously emits drawing completion actions during the drawing process, which continuously interrupts the user's operational thinking and continuity of operations.
  • a specific button such as: "Done” button
  • click on a specific area such as: click outside the drawing area
  • a timer such as: the user does not perform any drawing action within a certain length of time, then automatically will be current All drawing results generate independent graphics, etc.; therefore, the user continuously emits drawing completion actions during the drawing process, which continuously interrupts the user's operational thinking and continuity of operations.
  • a drawing device comprising: a drawing module having positional parameters for receiving drawing to generate each pending stroke correspondingly according to each stroke, the pending stroke is a point or a line; and one for storing a stroke to be determined a storage module of the current stroke; an end command output module for accepting The person operates to issue a command to stop drawing; a control module is respectively connected to the drawing module, the storage module, and the ending command output module, and is configured to determine whether each pending stroke satisfies the joining of the storage module to form the current stroke and the identified storage module. Whether the stroke is currently an independent image.
  • each pending stroke is added to the storage module is: if the storage module is empty, the pending stroke is automatically added to the storage module; if the storage module is not empty, the smallest rectangle of the current stroke in the storage module can be accommodated and can accommodate the The minimum rectangle of the pending stroke is determined according to the relative position of the drawing module, and if the spacing is less than the preset value, the pending stroke is added to the storage module.
  • the condition for determining that the current stroke is an independent image is: The command to receive the end command output module or the pending stroke cannot be added to the storage module.
  • Step 1) drawing a pending stroke in the drawing module, which may be a point or a line;
  • Step 2) determining whether the pending stroke satisfies the condition that is added to the storage module, if yes, then proceeds to step 3), if not, proceeds to step 4);
  • Step 3) adding the to-be-determined stroke to the storage module, if the previous storage module is empty, the pending stroke becomes the current stroke; if the storage module is not empty, the current stroke in the pending stroke and the storage module is According to the relative position of the drawing module combined to form a new current stroke of the storage module; go to step 5);
  • Step 4) Identify the current stroke in the storage module as a separate image and save it for processing and empty the storage module, and add the pending stroke to the storage module to become a new current stroke; Step 5): Receiving the command to stop drawing, if yes, go to step 6); if not; then go to step 1);
  • Step 6) Identify the current stroke in the storage module as a separate image and save it for processing, clear the storage module, and end.
  • the judgment condition of step 2) is: if the storage module is empty, the pending stroke is automatically added to the storage module; if the storage module is not empty, the smallest rectangle of the current stroke in the storage module and the pending stroke can be accommodated. The minimum rectangle is determined according to the relative position of the drawing module, and if the spacing is less than the preset value, the pending stroke is added to the storage module.
  • a drawing device comprising: a drawing module having positional parameters for receiving drawing to generate each pending stroke correspondingly according to each stroke, the pending stroke is a point or a line; N storage modules, for Storing the current stroke composed of pending strokes, N is a natural number greater than 1; an end command output module for accepting a human operation to issue a command to stop drawing; a control module, and a drawing module, N storage modules, and an end command
  • the output modules are respectively connected to determine whether each of the pending strokes meets the first storage module to form the current stroke, and whether the current stroke in the previous storage module can be added to the next storage module to form the current stroke and the identified storage module. Whether the stroke is currently an independent image.
  • a method for drawing by the above drawing device comprising the following steps: Step 1): drawing a pending stroke in the drawing module, which may be a point or a line;
  • Step 2) determining whether the pending stroke meets the condition of being added to the first storage module, if yes, then going to step 4), if not, then going to step 3);
  • Step 3) Identify each of the current strokes of all the storage modules as independent images and save them for processing. Clear all the storage modules, add the pending strokes to the first storage module to form the current strokes, and go to step 6. );
  • Step 4) adding the pending stroke to the first storage module, if the first storage module is empty, the pending stroke becomes the current stroke in the first storage module; if the first storage module If not, the current stroke in the pending stroke and the first storage module is followed by the drawing mode.
  • the relative positions of the blocks are combined to form a new current stroke of the first storage module;
  • Step 5) sequentially processing the first storage module to the Nth storage module in the following manner: determining whether the current stroke in the previous storage module satisfies the condition of being added to the next storage module, if yes, Add the current stroke in the previous storage module to the next storage module and empty the previous storage module. If the previous storage module is empty, the current stroke in the previous storage module becomes the current stroke in the next storage module.
  • Step 6 If the next storage module is not empty, the current strokes in the previous storage module and the current strokes in the next storage module are combined according to the relative positions of the drawing modules to form a new current stroke of the next storage module; If not, go to step 6); Step 6): Whether to receive the command to stop drawing, if yes, go to 7); if not, go to 1); Step 7): Determine whether there is current stroke in the storage module If all does not exist, go to step 9); if yes, go to step 8);
  • the current stroke of the storage module identifies the current strokes in the corresponding storage module as separate images and saves them to be processed and empties the corresponding storage modules;
  • the condition that the pending stroke in step 2) is added to the first storage module is: if the first storage module is empty, the pending stroke is automatically added to the storage module; if the first storage module is not empty , the minimum rectangle that can accommodate the current stroke in the first storage module and the smallest rectangle that can accommodate the fixed stroke are updated according to the relative position of the drawing module, if the spacing is less than the preset value , adding the to-be-determined picture to the first storage module.
  • the condition that the current stroke in the previous storage module in step 5) is added to the next storage module is: if the next storage module is empty, the current stroke in the previous storage module is automatically added to the storage module; If the next storage module is not empty, the smallest rectangle that can accommodate the current stroke in the next storage module and the smallest rectangle that can accommodate the current stroke in the previous storage module are judged according to the relative position of the drawing module. If the pitch is less than a preset value, the pen to be determined is Add a painting to the next storage module.
  • the present invention determines whether an independent graphic is completed by setting a preset condition, and does not require the user to perform a completed operation, thereby avoiding interrupting the user's operational thinking and continuity of operation.
  • the above two devices and methods belong to a general concept.
  • the device can be caused to generate a separate image by drawing the next stroke or by actively stopping the drawing command. Therefore, in the process of drawing multiple independent images, when the next independent image is not identified, it is determined that the previous independent image is generated. .
  • the present invention sets a plurality of storage modules for storing the current strokes forming the independent images.
  • the mapping is not actively stopped, the number of the storage modules needs to be the same.
  • the next drawing is drawn or the drawing command is actively stopped to cause the device to generate multiple independent images. Therefore, in the process of drawing multiple independent images than the number of storage modules, the active image is not actively stopped. If you draw, you have to wait until you have drawn multiple independent images with the same number of memory modules before you can create a separate image.
  • the invention also specifically provides a drawing device and a drawing method for setting two storage modules:
  • a drawing device comprising: a drawing module having positional parameters for receiving drawing to generate each pending stroke correspondingly according to each stroke, the pending stroke is a point or a line; two storage modules for Storing a current stroke composed of a pending stroke; an end command output module for accepting a human operation to issue a command to stop drawing; a control module, which is respectively connected to the drawing module, the two storage modules, and the end command output module, It is used to determine whether each pending stroke can be added to the first storage module to form the current stroke, whether the current stroke in the first storage module can be added to the second storage module to form the current stroke and identify the first storage module and The current stroke in the second storage module is determined to be No as a standalone image.
  • Step 101 drawing a drawing stroke to be generated in the drawing module, which may be a point or a line;
  • Step 102) determining whether the pending stroke satisfies the condition that is added to the first storage module, if yes, then proceeds to step 104), if not, proceeds to step 103);
  • Step 103) Identify the current stroke in the first storage module as a separate image, and empty the first storage module, identify the current stroke in the second storage module as a separate image, and empty the second storage module; Adding the pending stroke to the first storage module becomes the current stroke, and proceeds to step 107);
  • Step 104) adding the pending stroke to the first storage module, if the first storage module is empty, the pending stroke becomes the current stroke in the first storage module; if the first storage module Non-empty, the current strokes in the pending stroke and the first storage module are combined according to the relative positions of the drawing module to form a new current stroke of the first storage module;
  • Step 105) determining whether the current stroke in the first storage module satisfies the condition of being added to the second storage module, if yes, to step 106), if not, then proceeds to step 107);
  • Step 108) Determine whether there is a current stroke of the storage module, if not, go to step 110), if yes, go to step 109);
  • Step 109) if the current storage module exists in the current storage module, the current pen in the corresponding storage module will be The paintings are respectively identified as independent images and saved for processing and emptying the corresponding storage modules;
  • Step 103) in the above method is replaced by a package ⁇ :
  • Step 131) determining whether the pending stroke satisfies the condition of the current stroke integral with the current stroke in the first storage module and the current stroke in the second storage module, if not, then proceeds to step 132), if satisfied Then go to step 133);
  • Step 132) Identify the current stroke in the first storage module as a separate image, and empty the first storage module, identify the current stroke in the second storage module as a separate image, and empty the second storage module; Adding a pending stroke to the first storage module to form the current stroke, go to step 107);
  • Step 133) adding the current stroke in the first storage module to the second storage module to combine with the current stroke in the second storage module according to the relative position of the drawing module to form a second storage module.
  • FIG. 1 is a schematic structural view of a drawing device according to a first embodiment
  • FIG. 2 is a schematic view showing the process of drawing "Chuan" in the first embodiment
  • FIG. 3 is a flow chart of a drawing method of Embodiment 1;
  • Figure 5 is a schematic structural view of a drawing device of the third embodiment
  • FIG. 8 is a schematic diagram of a process of drawing a "cap" in the fourth embodiment
  • Figure 9 is a flow chart of the drawing method of the fourth embodiment
  • FIG. 10 is a schematic diagram of another process of drawing the "cap" of the fourth embodiment.
  • a drawing device includes a drawing module having positional parameters for receiving a drawing to generate each pending stroke correspondingly according to each stroke, the pending stroke is a point or a line; a storage module of the current stroke composed of strokes; an end command output module for accepting a human operation to issue a command to stop drawing; a control module, which is respectively connected with the drawing module, the storage module, and the end command output module, for determining each Whether the pending strokes meet the requirements of adding the storage module to form the current stroke and whether the current stroke in the storage module is an independent image.
  • the flow of the method for drawing by using the above drawing device includes the following steps: S101: starting the action, the drawing device is initialized, and the drawing module and the storage module are empty;
  • S102 Drawing a drawing to generate a pending stroke, which may be a point or a line;
  • step S103 determining whether the pending stroke meets the conditions that are entered into the storage module, if yes, then proceeds to step S104, if not, then proceeds to step S105;
  • S105 Identify the current stroke in the storage module as a separate image and save it for processing, clear the storage module, and add the pending stroke to the storage module to become the current stroke;
  • step S106 Whether a command to stop drawing is received, if yes, go to step S107; if not, then turn Go to step S102;
  • the determining condition of step S103 is: if the storage module is empty, the pending stroke is automatically added to the storage module; if the storage module is not empty, the minimum rectangle of the current stroke in the storage module can be accommodated.
  • the minimum rectangle capable of accommodating the to-be-determined stroke is determined according to the relative position of the drawing module, and if the spacing is less than the preset value, the pending stroke is added to the storage module.
  • the upper left corner of the drawing module is the origin
  • the horizontal direction is the X-axis positive direction
  • the vertical direction is the y-axis positive direction.
  • the minimum rectangle of the pending stroke is:
  • the pending stroke is composed of many points with coordinate parameters (X, y), and the smallest X value and the smallest y value of the coordinate parameters of these points constitute the coordinates of the upper left corner of the smallest rectangle (Xmin_d) , Ymin.d ), the smallest x value and the largest y value of the coordinate parameters of these points constitute the coordinates of the lower left corner of the smallest rectangle (Xmin-d, Ymax-d ), and the largest x value of the coordinate parameters of these points
  • the minimum y value constitutes the coordinates (Xmax-d, Ymin_d) of the upper right corner of the smallest rectangle.
  • the largest X value and the largest y value of the coordinate parameters of these points constitute the coordinates of the upper right corner of the smallest rectangle (Xmax-d, Ymax_d)
  • the four corners that define the smallest rectangle of the pending stroke naturally define the smallest rectangle of the stroke to be determined.
  • the minimum rectangle of a stroke is:
  • the current stroke is composed of many points with coordinate parameters (X, y), and the smallest X value and the smallest y value of the coordinate parameters of these points constitute the coordinates of the upper left corner of the smallest rectangle (Xmin_m , Ymin_m ), the smallest x value and the largest y value of the coordinate parameters of these points constitute the coordinates of the lower left corner of the smallest rectangle (Xmin_m, Ymax-tn), and the largest x value among the coordinate parameters of these points And the minimum y value constitutes the coordinates (Xmax-m, Ymin_m) of the upper right corner of the smallest rectangle.
  • the largest X value and the largest y value of the coordinate parameters of these points constitute the coordinates of the upper right corner of the smallest rectangle (Xmax_m, Ymax-m ), the four corners that define the smallest rectangle of the current stroke naturally define the smallest rectangle of the current stroke.
  • a minimum rectangle A is specifically: upper left corner ( RECTI 01.x, RECTI 01.y ), lower left corner ( RECTI 02. ⁇ RECTI 02.y ), upper right corner ( RECT103.X, RECT103.y ), lower right corner ( RECTI 04.x, RECTI 04.y), the other smallest rectangle B is: upper left corner ( RECT201.X, RECT201.y ), lower left corner ( RECT202.X, RECT202.y ), upper right corner ( RECT203.X, RECT203 .y ), lower right corner ( RECT204.X, RECT204.y ); If the smallest rectangle A is above and the smallest rectangle B is arranged below, the upper and lower spacing of the two smallest rectangles is compared with the preset value, and the spacing between the two is I RECT201 .y- RECT102.y I; If the smallest rectangle A is on the left and the smallest rectangle B is on the right, the left and right spacing of the two smallest rectangles are compared
  • the arrangement of the smallest rectangle A and the minimum rectangle B, the overlapping point and the arranging relationship can be automatically determined by the software related judgment algorithm.
  • This judgment algorithm is not the invention of the present invention, and is not cumbersome here.
  • the preset value may be a fixed value, or may vary depending on the size of the drawing device, the display resolution, etc., or a variable value that is flexibly adjusted by the software according to the thickness of the input stroke.
  • step S204 to step S205 because of poor drawing, can accommodate the spacing of the smallest rectangle of the current stroke ", and the smallest rectangle that can accommodate the pending stroke "I".
  • the preset value is greater than the preset value. Therefore, in this embodiment, S204: At this time, the output module is not pressed according to the end command, and the drawing is continued on the drawing module to generate a pending stroke. The control module determines whether the pending stroke "I" can be added to the storage module. At this time, the storage module has the current stroke "".
  • the control module pairs the smallest rectangle C3 that can accommodate the current stroke "", and the smallest rectangle C4 that can accommodate the pending stroke "1", and determines the spacing according to the relative position of the drawing module.
  • the spacing H2 which is greater than the preset value, will be stored.
  • the current stroke "JI" in the module is recognized as a separate image and saved for processing, the storage module is emptied, and the pending stroke "! is added to the storage module to become the new current stroke "f";
  • an apparatus for drawing a graphic includes a drawing module having positional parameters for receiving a drawing to generate each pending stroke correspondingly according to each stroke, the pending stroke is a point or a line; a module for storing a current stroke composed of a stroke to be determined; an end command output module for accepting a human operation to issue a command to stop drawing; a control module respectively corresponding to the drawing module, the two storage modules, and the end command output module
  • the connection is used to determine whether each of the pending strokes can be added to the first storage module to form the current stroke, whether the current stroke in the first storage module can be added to the second storage module to form the current stroke and identify the first storage module. And whether the current stroke in the second storage module is a separate image.
  • the flow of drawing using the above drawing device includes the following steps:
  • S302 Drawing a drawing to generate a pending stroke, which may be a point or a line;
  • S303 determining whether the pending stroke meets the condition of being added to the first storage module; if yes, proceeding to step S305, if not, proceeding to step S304;
  • S305 Add the pending stroke to the first storage module. If the first storage module is empty, the pending stroke becomes the current stroke in the first storage module; if the first storage module is not empty And combining the current strokes of the pending stroke and the first storage module according to the relative positions of the drawing module to form a new current stroke of the first storage module;
  • step S306 determining whether the current stroke in the first storage module meets the condition of being added to the second storage module, if yes, proceeding to step S307, if not, proceeding to step S308;
  • S307 adding the current stroke in the first storage module to the second storage module and emptying the first storage module. If the second storage module is empty before, the current stroke in the first storage module becomes the first The current stroke in the two storage modules; if the second storage module is not empty, combining the current strokes in the first storage module and the current strokes in the second storage module according to the relative positions of the drawing modules The new current stroke that constitutes the second storage module;
  • step S308 Whether to receive the command to stop drawing, if yes, go to step 309; if not, go to step S302;
  • step S309 determining whether the second storage module is empty, if not, proceeding to step S310; if yes, proceeding to step S310;
  • step S311 determining whether the first storage module is empty, if not, proceeding to step S312; if yes, Go to step S313;
  • S312 Identify the current stroke in the first storage module as a separate image and save it for processing and clear the storage module, and clear the drawing module;
  • the determining condition of step S303 is: if the first storage module is empty, the pending stroke is automatically added to the storage module; if the first storage module is not empty, it will be able to accommodate the first storage module. At present, the minimum rectangle of the stroke and the smallest rectangle capable of accommodating the to-be-determined stroke are determined according to the relative position of the drawing module, and if the spacing is less than the preset value, the pending stroke is added to the first storage module. .
  • the determining condition in step S306 is: if the second storage module is empty, the current stroke in the first storage module is automatically added to the storage module; if the second storage module is not empty, it will be able to accommodate the first
  • the minimum rectangle of the current stroke in the two storage modules and the smallest rectangle capable of accommodating the current stroke in the first storage module are determined according to the relative position of the drawing module, and if the spacing is less than the preset value, The pending stroke is added to the second storage module.
  • S401 starts the drawing device, initializes, the two storage modules are empty, the drawing module is empty, and the drawing starts:
  • the control module determines whether the current stroke "one" in the first storage module can be added to the second storage module. Since the second storage module is empty at this time, the stroke "one" is added to the second storage. Storing the module to form the current stroke "one" in the second storage module and emptying the first storage module;
  • the control module determines whether the current stroke leaf in the first storage module can be added to the second storage module. At this time, the second storage module has a current stroke "one", and the control module can accommodate the current stroke "one".
  • the minimum rectangle C401 and the smallest rectangle C402 capable of accommodating the current stroke "I” are judged according to the relative position of the drawing module. Assuming that the spacing H401 is smaller than the preset value, the control module adds the current stroke "one" to the second storage module and Emptying the first storage module, combining the current stroke "one” and the current stroke "! according to the relative positions of the drawing modules to form a new current stroke "ten" of the second storage module;
  • the control module determines whether the current stroke "one" in the first storage module can be added to the second storage module. Since the second storage module has the current stroke "ten", the control module pair can accommodate the current stroke "one The minimum rectangle C404 and the smallest rectangle C403 that can accommodate the current stroke "ten” are judged by the relative position of the fe in the drawing module. Assuming that the spacing H402 is greater than the preset value, the current stroke "1" in the first storage module Cannot join the second storage module;
  • the output module is not pressed according to the end command, 'continue to draw "one” on the drawing module to generate a pending stroke "one", and the control module determines whether the pending stroke "one" can be added to the first storage module. Since the current storage module has the current stroke "one” at this time, the control module has a minimum rectangle C404 capable of accommodating the current stroke "one” and a minimum rectangle C405 capable of accommodating the pending stroke "one” according to the relative position of the drawing module. Judging, assuming that the spacing is greater than the preset value, the pending stroke "one" cannot be added to the first storage module temporarily;
  • the control module determines whether the current stroke "one" in the first storage module can be added to the second storage module. Since the second storage module is empty at this time, the stroke "one" is added to the second storage module. Forming the current stroke "one" in the second storage module and emptying the first storage module;
  • the present invention further modifies the method in the third embodiment, and the body is a modification step S304, and the modified step S304 includes:
  • step S341 Determine whether the pending stroke satisfies the condition of the current stroke which is integral with the current stroke in the first storage module and the current stroke in the second storage module. (ie, determine whether the pending stroke meets the condition of the union of the first storage module and the second storage module?) If not, then go to step S342, if yes, go to step S343;
  • S342 Identify the current stroke in the first storage module as a separate image, and empty the first storage module, identify the current stroke in the second storage module as a separate image, and empty the second storage module; The stroke is added to the first storage module to form the current stroke, and the process goes to step S308;
  • S343 adding the current stroke in the first storage module to the second storage module to combine with the current stroke in the second storage module according to the relative position of the drawing module to form the current current in the second storage module. Stroke and empty the first storage module; add the pending stroke to the first storage module to form the current stroke, and go to step S308.
  • the determining condition of step S341 is that the smallest rectangle accommodating the pending stroke and the smallest rectangle accommodating the current stroke in the first storage module and the current stroke in the second storage module are spaced according to the relative position of the drawing module. It is judged that if the pitch is smaller than the preset value, it is satisfied.

Abstract

The present invention relates to an image-drawing device, comprising: a drawing module having location parameters, for use in receiving drawing and, according to each input pen stroke, correspondingly generating each stroke to be determined, the stroke to be determined being a point or a line; a storage module for storing current strokes formed of strokes to be determined; an END command output module, used to receive a user operation to send a command to stop drawing; a control module, connected to the drawing module, the storage module and the END command output module respectively, and used to determine whether each stroke to be determined can be added to the storage module to form the current strokes and determine whether the current strokes of the storage module form an independent image. The present invention determines, by setting a preset condition, whether an independent figure is completed. The user does not need to perform any operation for completion, thereby avoiding any interruption to user thought processes and operation continuity.

Description

一种绘图装置及绘图方法  Drawing device and drawing method
【技术领域】 本发明涉及一种绘图装置及绘图方法; 该图包括图形、 文字、 字母、 符号及 阿拉伯数字。 TECHNICAL FIELD The present invention relates to a drawing device and a drawing method; the figure includes graphics, characters, letters, symbols, and Arabic numerals.
【背景技术】 目前存在一些绘图装置或写字装置, 人们在使用这些软件时会存在一种问 题, 例如, 当绘制多个独立的图形 "绘"、 "图"、 "装" 及 "置" 时, 需要在绘 制完 "绘" 后发出绘制完成动作, 再开始绘制 "图", 依此往下绘制, 每绘制完 一个字都要点击绘制完成动作, 类似终 绘制的动作有: 鼠标按键双击动作, 点击特定的按钮 (如: "完成"按钮), 点击特定的区域(如: 点击到绘图区域 之外), 以及定时器(如: 用户在一定时长内不进行任何绘制动作, 则自动将当 前所有绘制结果生成独立图形), 等; 因此, 使用者在绘制过程中不停地发出绘 制完成动作, 这会不停地打断使用者的操作思维及操作的连续性。 BACKGROUND OF THE INVENTION There are currently some drawing devices or writing devices, and people have problems when using these softwares, for example, when drawing multiple independent graphics "painting", "drawing", "loading", and "setting" You need to draw the drawing completion after drawing "painting", then start drawing the "picture", and then draw down accordingly. Every time you draw a word, you must click the drawing to complete the action. The action similar to the final drawing is: mouse button double click action , click on a specific button (such as: "Done" button), click on a specific area (such as: click outside the drawing area), and a timer (such as: the user does not perform any drawing action within a certain length of time, then automatically will be current All drawing results generate independent graphics, etc.; therefore, the user continuously emits drawing completion actions during the drawing process, which continuously interrupts the user's operational thinking and continuity of operations.
【发明内容】 本发明的目的是提供一种绘图装置及绘图方法, 自动判断独立图形的完成, 不会打断使用者的操作思维及操作的连续性。 SUMMARY OF THE INVENTION It is an object of the present invention to provide a drawing device and a drawing method that automatically determine the completion of an independent graphic without interrupting the user's operational thinking and continuity of operation.
上述目的可通过以下两种技术方案实现:  The above objectives can be achieved by the following two technical solutions:
第一种技术方案:  The first technical solution:
一种绘图装置, 其特征在于, 包括一具有位置参数的绘制模块, 用于接收 绘制以根据每一笔画相应地生成每个待定笔画, 该待定笔画是点或线; 一用于 存储由待定笔画构成的目前笔画的存储模块; 一结束命令输出模块, 用于接受 人员操作以发出停止绘制的命令; 一控制模块, 其与绘制模块、 存储模块、 结 束命令输出模块分别连接, 用于判断每个待定笔画是否满足加入存储模块以构 成目前笔画及认定存储模块中的目前笔画是否为独立图象。 A drawing device, comprising: a drawing module having positional parameters for receiving drawing to generate each pending stroke correspondingly according to each stroke, the pending stroke is a point or a line; and one for storing a stroke to be determined a storage module of the current stroke; an end command output module for accepting The person operates to issue a command to stop drawing; a control module is respectively connected to the drawing module, the storage module, and the ending command output module, and is configured to determine whether each pending stroke satisfies the joining of the storage module to form the current stroke and the identified storage module. Whether the stroke is currently an independent image.
每个待定笔画加入存储模块的条件为: 若存储模块为空, 所述待定笔画自 动添加到存储模块; 若存储模块非空, 则将能容纳存储模块内目前笔画的最小 矩形与能容纳所述待定笔画的最小矩形按照在所述绘制模块的相对位置进行间 距判断, 如果所述间距小于预设值, 则将所述待定笔画添加到存储模块。  The condition that each pending stroke is added to the storage module is: if the storage module is empty, the pending stroke is automatically added to the storage module; if the storage module is not empty, the smallest rectangle of the current stroke in the storage module can be accommodated and can accommodate the The minimum rectangle of the pending stroke is determined according to the relative position of the drawing module, and if the spacing is less than the preset value, the pending stroke is added to the storage module.
认定目前笔画为独立图象的条件为: 接收到结束命令输出模块的命令或待 定笔画不能加入存储模块。  The condition for determining that the current stroke is an independent image is: The command to receive the end command output module or the pending stroke cannot be added to the storage module.
一种使用上述绘图装置进行绘图的方法, 其特征在于, 包括以下步骤: 步骤 1 ): 在绘制模块绘制生成一个待定笔画, 可以是点或线;  A method for drawing using the above-mentioned drawing device, comprising the following steps: Step 1): drawing a pending stroke in the drawing module, which may be a point or a line;
步骤 2 ): 判断所述待定笔画是否满足被加入到存储模块的条件, 如果满足 则转到步骤 3 ), 如果不满足则转到步骤 4 );  Step 2): determining whether the pending stroke satisfies the condition that is added to the storage module, if yes, then proceeds to step 3), if not, proceeds to step 4);
步骤 3 ): 将所述待定笔画添加到存储模块中, 若之前存储模块为空, 则所 述待定笔画成为目前笔画; 若存储模块非空, 则将所述待定笔画和存储模块中 的目前笔画按照在所述绘制模块的相对位置组合以构成存储模块的新的目前笔 画; 转到步骤 5 );  Step 3): adding the to-be-determined stroke to the storage module, if the previous storage module is empty, the pending stroke becomes the current stroke; if the storage module is not empty, the current stroke in the pending stroke and the storage module is According to the relative position of the drawing module combined to form a new current stroke of the storage module; go to step 5);
步骤 4 ): 将存储模块内目前笔画认定为独立图像并将其另存以待处理及将 所述存储模块清空, 将所述待定笔画添加到存储模块中成为新的目前笔画; 步骤 5 ): 是否接收到停止绘制的命令, 若是, 则转到步骤 6 ); 若非; 则转 到步驟 1 );  Step 4): Identify the current stroke in the storage module as a separate image and save it for processing and empty the storage module, and add the pending stroke to the storage module to become a new current stroke; Step 5): Receiving the command to stop drawing, if yes, go to step 6); if not; then go to step 1);
步骤 6 ): 将存储模块内目前笔画认定为独立图像并将其另存以待处理, 将 存储模块清空, 结束。 步骤 2 )的判断条件为: 若存储模块为空, 所述待定笔画自动添加到存储模 块; 若存储模块非空, 则将能容纳存储模块内目前笔画的最小矩形与能容纳所 述待定笔画的最小矩形按照在所述绘制模块的相对位置进行间距判断, 如果所 述间距小于预设值, 则将所述待定笔画添加到存储模块。 Step 6): Identify the current stroke in the storage module as a separate image and save it for processing, clear the storage module, and end. The judgment condition of step 2) is: if the storage module is empty, the pending stroke is automatically added to the storage module; if the storage module is not empty, the smallest rectangle of the current stroke in the storage module and the pending stroke can be accommodated. The minimum rectangle is determined according to the relative position of the drawing module, and if the spacing is less than the preset value, the pending stroke is added to the storage module.
第二种技术方案:  The second technical solution:
一种绘图装置, 其特征在于, 包括一具有位置参数的绘制模块, 用于接收 绘制以根据每一笔画相应地生成每个待定笔画, 该待定笔画是点或线; N个存 储模块, 用于存储由待定笔画构成的目前笔画, N为大于 1的自然数; 一结束命 令输出模块, 用于接受人员操作以发出停止绘制的命令; 一控制模块, 其与绘 制模块、 N个存储模块、 结束命令输出模块分别连接, 用于判断每个待定笔画是 否满足加入第一个存储模块以构成目前笔画、 上一个存储模块中的目前笔画是 否能加入下一个存储模块以构成目前笔画及认定存储模块中的目前笔画是否为 独立图像。  A drawing device, comprising: a drawing module having positional parameters for receiving drawing to generate each pending stroke correspondingly according to each stroke, the pending stroke is a point or a line; N storage modules, for Storing the current stroke composed of pending strokes, N is a natural number greater than 1; an end command output module for accepting a human operation to issue a command to stop drawing; a control module, and a drawing module, N storage modules, and an end command The output modules are respectively connected to determine whether each of the pending strokes meets the first storage module to form the current stroke, and whether the current stroke in the previous storage module can be added to the next storage module to form the current stroke and the identified storage module. Whether the stroke is currently an independent image.
一种上述绘图装置进行绘图的方法, 其特征在于, 包括以下步骤: 步骤 1 ): 在绘制模块绘制生成一个待定笔画, 可以是点或线;  A method for drawing by the above drawing device, comprising the following steps: Step 1): drawing a pending stroke in the drawing module, which may be a point or a line;
步骤 2 ): 判断所述待定笔画是否满足被加入到第一个存储模块的条件, 如 果满足则转到步骤 4 ), 如果不满足则转到步骤 3 );  Step 2): determining whether the pending stroke meets the condition of being added to the first storage module, if yes, then going to step 4), if not, then going to step 3);
步骤 3 ): 将所有存储模块的各自目前笔画都各自认定为独立图象并都另存 以待处理, 清空所有存储模块, 将待定笔画加入到第一个存储模块以构成目前 笔画, 转到步骤 6 );  Step 3): Identify each of the current strokes of all the storage modules as independent images and save them for processing. Clear all the storage modules, add the pending strokes to the first storage module to form the current strokes, and go to step 6. );
步骤 4 ): 将所述待定笔画添加到第一个存储模块中, 若之前第一个存储模 块为空, 则所述待定笔画成为第一个存储模块中的目前笔画; 若第一个存储模 块非空, 则将所述待定笔画和第一个存储模块中的目前笔画按照在所述绘制模 块的相对位置组合以构成第一个存储模块的新的目前笔画; Step 4): adding the pending stroke to the first storage module, if the first storage module is empty, the pending stroke becomes the current stroke in the first storage module; if the first storage module If not, the current stroke in the pending stroke and the first storage module is followed by the drawing mode. The relative positions of the blocks are combined to form a new current stroke of the first storage module;
步骤 5 ):按以下方法沿着第一个存储模块到第 N个存储模块依次往下处理: 判断上一个存储模块中的目前笔画是否满足被加入到下一个存储模块的条件, 如果满足, 则将上一个存储模块中的目前笔画添加到下一个存储模块中并清空 上一个存储模块, 若之前下一个存储模块为空, 则上一个存储模块中的目前笔 画成为下一个存储模块中的目前笔画, 若下一个存储模块非空, 则将上一个存 储模块中的目前笔画和下一个存储模块中的目前笔画按照在所述绘制模块的相 对位置组合以构成下一个存储模块的新的目前笔画;如果不满足则转到步骤 6 ); 步骤 6 ): 是否接收到停止绘制的命令, 若是, 则转到 7 ); 若非, 则转到 1 ); 步骤 7 ): 判断是否有存储模块存在目前笔画, 若全部不存在, 则转到步骤 9 ); 若有, 转到步骤 8 );  Step 5): sequentially processing the first storage module to the Nth storage module in the following manner: determining whether the current stroke in the previous storage module satisfies the condition of being added to the next storage module, if yes, Add the current stroke in the previous storage module to the next storage module and empty the previous storage module. If the previous storage module is empty, the current stroke in the previous storage module becomes the current stroke in the next storage module. If the next storage module is not empty, the current strokes in the previous storage module and the current strokes in the next storage module are combined according to the relative positions of the drawing modules to form a new current stroke of the next storage module; If not, go to step 6); Step 6): Whether to receive the command to stop drawing, if yes, go to 7); if not, go to 1); Step 7): Determine whether there is current stroke in the storage module If all does not exist, go to step 9); if yes, go to step 8);
存储模块存在目前笔画则将相应存储模块中的目前笔画分别认定为独立图 像并另存以待处理及清空相应的存储模块;  The current stroke of the storage module identifies the current strokes in the corresponding storage module as separate images and saves them to be processed and empties the corresponding storage modules;
步骤 9 ): 结束。  Step 9): End.
步骤 2 )中所述待定笔画满足被加入到第一个存储模块的条件为: 若第一个 存储模块为空, 所述待定笔画自动添加到所述存储模块; 若第一个存储模块非 空, 则将能容纳第一个存储模块中的目前笔画的最小矩形与能容纳所述持定笔 画的最小矩形按照在所述绘制模块的相对位置进行间距判新, 如果所述间距小 于预设值, 则将所述待定^画添加到第一个存储模块。  The condition that the pending stroke in step 2) is added to the first storage module is: if the first storage module is empty, the pending stroke is automatically added to the storage module; if the first storage module is not empty , the minimum rectangle that can accommodate the current stroke in the first storage module and the smallest rectangle that can accommodate the fixed stroke are updated according to the relative position of the drawing module, if the spacing is less than the preset value , adding the to-be-determined picture to the first storage module.
步骤 5 )中的上一个存储模块中的目前笔画满足被加入到下一个存储模块的 条件为: 若下一个存储模块为空, 上一个存储模块中的目前笔画自动添加到所 述存储模块; 若下一个存储模块非空, 则将能容纳下一个存储模块中的目前笔 画的最小矩形与能容纳上一个存储模块中的目前笔画的最小矩形按照在所述绘 制模块的相对位置进行间距判断, 如果所述间距小于预设值, 则将所述待定笔 画添加到下一个存储模块。 The condition that the current stroke in the previous storage module in step 5) is added to the next storage module is: if the next storage module is empty, the current stroke in the previous storage module is automatically added to the storage module; If the next storage module is not empty, the smallest rectangle that can accommodate the current stroke in the next storage module and the smallest rectangle that can accommodate the current stroke in the previous storage module are judged according to the relative position of the drawing module. If the pitch is less than a preset value, the pen to be determined is Add a painting to the next storage module.
由以上两种技术方案可见, 本发明通过设置预设条件来判断一个独立图形 是否完成, 而不需要使用者去做一个完成的操作, 避免打断使用者的操作思维 及操作的连续性。  As can be seen from the above two technical solutions, the present invention determines whether an independent graphic is completed by setting a preset condition, and does not require the user to perform a completed operation, thereby avoiding interrupting the user's operational thinking and continuity of operation.
上述两种装置和方法属于一个总的构思, 针对第一种方案, 由于只设置一 个用于存储形成独立图像的目前笔画的存储模块, 如果操作人员按照预设条件 进行绘制, 绘制完一个独立图像时就可由绘制下一笔画或由主动停止绘制命令 来促使本装置生成一个独立图像, 因此, 在绘制多个独立图像过程中, 在没有 认定下一个独立图像时, 就已经认定生成上一个独立图像。  The above two devices and methods belong to a general concept. For the first solution, since only one storage module for storing the current strokes forming the independent image is provided, if the operator draws according to the preset conditions, an independent image is drawn. The device can be caused to generate a separate image by drawing the next stroke or by actively stopping the drawing command. Therefore, in the process of drawing multiple independent images, when the next independent image is not identified, it is determined that the previous independent image is generated. .
针对第二种方案, 本发明通过设置多个用于存储形成独立图像的目前笔画 的存储模块, 操作人员按照预设条件进行绘制时, 如果不主动停止绘制, 都是 需要绘制与存储模块数量相同的多个独立图像后,. 再由绘制下一笔画或由主动 停止绘制命令来促使本装置生成多个独立图像, 因此, 在绘制比存储模块数量 多的多个独立图像过程中, 不主动停止绘制的话, 是要等到绘制完与存储模块 数量相同的多个独立图像后再可以认定生成独立图像。  For the second solution, the present invention sets a plurality of storage modules for storing the current strokes forming the independent images. When the operator draws according to the preset conditions, if the mapping is not actively stopped, the number of the storage modules needs to be the same. After multiple independent images, the next drawing is drawn or the drawing command is actively stopped to cause the device to generate multiple independent images. Therefore, in the process of drawing multiple independent images than the number of storage modules, the active image is not actively stopped. If you draw, you have to wait until you have drawn multiple independent images with the same number of memory modules before you can create a separate image.
本发明还具体提供设置两个存储模块的绘图装置及绘图方法:  The invention also specifically provides a drawing device and a drawing method for setting two storage modules:
一种绘图装置, 其特征在于, 包括一具有位置参数的绘制模块, 用于接收 绘制以根据每一笔画相应地生成每个待定笔画, 该待定笔画是点或线; 两个存 储模块,用于存储由待定笔画构成的目前笔画; 一结束命令输出模块, 用于接受 人员操作以发出停止绘制的命令; 一控制才莫块, 其与绘制模块、 两个存储模块、 结束命令输出模块分别连接, 用于判断每个待定笔画是否能加入第一个存储模 块以构成目前笔画、 第一个存储模块中的目前笔画是否能加入第二个存 ¼模块 以构成目前笔画及认定第一个存储模块和第二个存储模块中的目前笔画认定是 否为独立图像。 A drawing device, comprising: a drawing module having positional parameters for receiving drawing to generate each pending stroke correspondingly according to each stroke, the pending stroke is a point or a line; two storage modules for Storing a current stroke composed of a pending stroke; an end command output module for accepting a human operation to issue a command to stop drawing; a control module, which is respectively connected to the drawing module, the two storage modules, and the end command output module, It is used to determine whether each pending stroke can be added to the first storage module to form the current stroke, whether the current stroke in the first storage module can be added to the second storage module to form the current stroke and identify the first storage module and The current stroke in the second storage module is determined to be No as a standalone image.
一种上述绘图装置进行绘图的方法, 其特征在于, 包括以下步骤: 步骤 101): 在绘制模块绘制生成一个待定笔画, 可以是点或线;  A method for drawing by the above drawing device, comprising the following steps: Step 101): drawing a drawing stroke to be generated in the drawing module, which may be a point or a line;
步骤 102): 判断所述待定笔画是否满足被加入到第一个存储模块的条件, 如果满足则转到步骤 104), 如果不满足则 到步骤 103);  Step 102): determining whether the pending stroke satisfies the condition that is added to the first storage module, if yes, then proceeds to step 104), if not, proceeds to step 103);
步骤 103): 将第一个存储模块中的目前笔画认定为单独图像, 并清空第一 个存储模块, 将第二个存储模块中的目前笔画认定为单独图像, 并清空第二个 存储模块; 将待定笔画加入第一个存储模块成为目前笔画, 转到步骤 107);  Step 103): Identify the current stroke in the first storage module as a separate image, and empty the first storage module, identify the current stroke in the second storage module as a separate image, and empty the second storage module; Adding the pending stroke to the first storage module becomes the current stroke, and proceeds to step 107);
步骤 104): 将所述待定笔画添加到第一个存储模块中, 若之前第一个存储 模块为空, 则所述待定笔画成为第一个存储模块中的目前笔画; 若第一个存储 模块非空, 则将所述待定笔画和第一个存储模块中的目前笔画按照在所述绘制 模块的相对位置组合以构成第一个存储模块的新的目前笔画;  Step 104): adding the pending stroke to the first storage module, if the first storage module is empty, the pending stroke becomes the current stroke in the first storage module; if the first storage module Non-empty, the current strokes in the pending stroke and the first storage module are combined according to the relative positions of the drawing module to form a new current stroke of the first storage module;
- 步骤 105): 判断第一个存储模块中的目前笔画是否满足被加入到第二个存 储模块的条件, 如果满足则 到步骤 106), 如果不满足则转到步骤 107);  - Step 105): determining whether the current stroke in the first storage module satisfies the condition of being added to the second storage module, if yes, to step 106), if not, then proceeds to step 107);
步骤 106 ): 将第一个存储模块中的目前笔画添加到第二个存储模块中并清 空第一个存储模块, 若之前第二个存储模块为空, 则第一个存储模块中的目前 笔画成为第二个存储模块中的目前笔画;'若第二个存储模块非空, 则将第一个 存储模块中的目前笔画和第二个存储模块中的目前笔画按照在所述绘制模块的 相对位置组合以构成第二个存储模块的新的目前笔画;  Step 106): adding the current stroke in the first storage module to the second storage module and emptying the first storage module. If the second storage module is empty before, the current stroke in the first storage module Become the current stroke in the second storage module; 'If the second storage module is not empty, then compare the current stroke in the first storage module with the current stroke in the second storage module according to the relative representation in the drawing module. The positions are combined to form a new current stroke of the second storage module;
步骤 107): 是否接收到停止绘制的命令, 若是, 则转到 108); 若非, 则转 到步骤 101);  Step 107): Whether to receive the command to stop drawing, if yes, go to 108); if not, go to step 101);
步骤 108): 判断是否有存储模块存在目前笔画,若没有,则转到步骤 110), 若有, 转到步骤 109);  Step 108): Determine whether there is a current stroke of the storage module, if not, go to step 110), if yes, go to step 109);
步骤 109): 将相应的存储模块存在目前笔画则将相应存储模块中的目前笔 画分别认定为独立图像并另存以待处理及清空相应的存储模块; Step 109): if the current storage module exists in the current storage module, the current pen in the corresponding storage module will be The paintings are respectively identified as independent images and saved for processing and emptying the corresponding storage modules;
步骤 110 ): 结束。  Step 110): End.
上述方法中的步骤 103 )被取代为包^:  Step 103) in the above method is replaced by a package ^:
步骤 131 ): 判断待定笔画是否满足与第一个存储模块中的目前笔画、 第二 个存储模块中的目前笔画构成一整体的目前笔画的条件, 若不满足则转到步骤 132 ), 若满足则转到步骤 133 );  Step 131): determining whether the pending stroke satisfies the condition of the current stroke integral with the current stroke in the first storage module and the current stroke in the second storage module, if not, then proceeds to step 132), if satisfied Then go to step 133);
步骤 132 ): 将第一个存储模块中的目前笔画认定为单独图像, 并清空第一 个存储模块, 将第二个存储模块中的目前笔画认定为单独图像, 并清空第二个 存储模块; 将待定笔画添加到第一个存储模块以构成目前笔画, 转到步骤 107 );  Step 132): Identify the current stroke in the first storage module as a separate image, and empty the first storage module, identify the current stroke in the second storage module as a separate image, and empty the second storage module; Adding a pending stroke to the first storage module to form the current stroke, go to step 107);
步骤 133 ): 将第一个存储模块中的目前笔画加入到第二个存储模块以和第 二个存储模块中的目前笔画按照在所述绘制模块的相对位置组合以构成第二个 存储模块中的目前笔画并清空第一个存储模块, 将待定笔画添加到第一个存储 模块以构成目前笔画, 转到步骤 107 )。  Step 133): adding the current stroke in the first storage module to the second storage module to combine with the current stroke in the second storage module according to the relative position of the drawing module to form a second storage module. The current stroke and empty the first storage module, add the pending stroke to the first storage module to form the current stroke, go to step 107).
【附图说明】 图 1为实施例一的绘图装置的结构示意图; BRIEF DESCRIPTION OF DRAWINGS FIG. 1 is a schematic structural view of a drawing device according to a first embodiment;
图 2为实施例一的绘制 "川" 的过程示意图;  2 is a schematic view showing the process of drawing "Chuan" in the first embodiment;
图 3为实施例一的绘图方法的流程图;  3 is a flow chart of a drawing method of Embodiment 1;
图 4为实施例二的绘制 "川" 的另一种过程示意图;  4 is a schematic diagram of another process of drawing "Chuan" in the second embodiment;
图 5为实施例三的绘图装置的结构示意图;  Figure 5 is a schematic structural view of a drawing device of the third embodiment;
图 6为实施例三的绘图方法的流程图;  6 is a flowchart of a drawing method of Embodiment 3;
图 7为实施例三的绘制 "十"、 "一"、 "一" 的过程示意图;  7 is a schematic diagram of a process of drawing "ten", "one", and "one" in the third embodiment;
图 8为实施例四的绘制 "帽" 的一种过程示意图; 图 9为实施例四的绘图方法的流程图;. 8 is a schematic diagram of a process of drawing a "cap" in the fourth embodiment; Figure 9 is a flow chart of the drawing method of the fourth embodiment;
图 10为实施例四的绘制 "帽" 的另一种过程示意图;。  FIG. 10 is a schematic diagram of another process of drawing the "cap" of the fourth embodiment;
【具体实施方式】 【detailed description】
【实施例一】 [Embodiment 1]
如图 1 所示, 一种绘图装置, 包括 具有位置参数的绘制模块, 用于接收 绘制以根据每一笔画相应地生成每个待定笔画, 该待定笔画是点或线; 一用于 存储由待定笔画构成的目前笔画的存储模块; 一结束命令输出模块, 用于接受 人员操作以发出停止绘制的命令; 一控制模块, 其与绘制模块、 存储模块、 结 束命令输出模块分别连接, 用于判断每个待定笔画是否满足加入存储模块以构 成目前笔画及认定存储模块中的目前笔画是否为独立图象。  As shown in FIG. 1, a drawing device includes a drawing module having positional parameters for receiving a drawing to generate each pending stroke correspondingly according to each stroke, the pending stroke is a point or a line; a storage module of the current stroke composed of strokes; an end command output module for accepting a human operation to issue a command to stop drawing; a control module, which is respectively connected with the drawing module, the storage module, and the end command output module, for determining each Whether the pending strokes meet the requirements of adding the storage module to form the current stroke and whether the current stroke in the storage module is an independent image.
如图 3所示, 使用上述绘图装置进行绘图的方法的流程, 包括以下步骤: S101 : 开始动作, 绘图装置初始化, 绘制模块和存储模块为空;  As shown in FIG. 3, the flow of the method for drawing by using the above drawing device includes the following steps: S101: starting the action, the drawing device is initialized, and the drawing module and the storage module are empty;
S102: 在绘制模块绘制生成一个待定笔画, 可以是点或线;  S102: Drawing a drawing to generate a pending stroke, which may be a point or a line;
S103: 判断所述待定笔画是否满足被 ^入到存储模块的条件, 如果满足则 转到步骤 S104 , 如果不满足则转到步骤 S105;  S103: determining whether the pending stroke meets the conditions that are entered into the storage module, if yes, then proceeds to step S104, if not, then proceeds to step S105;
S104 : 将所述待定笔画添加到存储模块中, 若之前存储模块为空, 则所述 待定笔画成为 ¾前笔画; 若存储模块非空, 则将所述待定笔画和存储模块中的 目前笔画按照在所述绘制模块的相对位置组合以构成存储模块的新的目前笔 画; 转到步骤 S106;  S104: adding the to-be-determined stroke to the storage module, if the previous storage module is empty, the pending stroke becomes a 3⁄4 front stroke; if the storage module is not empty, the current stroke in the pending stroke and the storage module is followed. Combining the relative positions of the drawing modules to form a new current stroke of the storage module; Go to step S106;
S105 : 将存储模块内目前笔画认定为独立图像并将其另存以待处理, 将所 述存储模块清空, 将所述待定笔画添加到存储模块成为目前笔画;  S105: Identify the current stroke in the storage module as a separate image and save it for processing, clear the storage module, and add the pending stroke to the storage module to become the current stroke;
S106: 是否接收到停止绘制的命令, 若是, 则转到步骤 S107; 若非, 则转 到步骤 S102; S106: Whether a command to stop drawing is received, if yes, go to step S107; if not, then turn Go to step S102;
S107: 将存储模块内目前笔画认定为独立图像并将其另存以待处理, 将存 储模块和绘制模块清空;  S107: Identify the current stroke in the storage module as a separate image and save it for processing, and clear the storage module and the drawing module;
S108: 结束。  S108: End.
其中, 步骤 S103的判断条件为: 若存储模块为空, 所述待定笔画自动添加 到所述存储模块; 若所述存储模块非空, 则将能容纳所述存储模块内目前笔画 的最小矩形与能容纳所述待定笔画的最小矩形按照在所述绘制模块的相对位置 进行间距判断, 如果所述间距小于预设值, 则将所述待定笔画添加到所述存储 模块》  The determining condition of step S103 is: if the storage module is empty, the pending stroke is automatically added to the storage module; if the storage module is not empty, the minimum rectangle of the current stroke in the storage module can be accommodated. The minimum rectangle capable of accommodating the to-be-determined stroke is determined according to the relative position of the drawing module, and if the spacing is less than the preset value, the pending stroke is added to the storage module.
例如, 绘制模块左上角为原点, 横向向右为 X轴正向, 纵向向下为 y轴正 向; 下面讲下如何定义最小矩形和如何判断两矩形之间的距离。  For example, the upper left corner of the drawing module is the origin, the horizontal direction is the X-axis positive direction, and the vertical direction is the y-axis positive direction. The following describes how to define the minimum rectangle and how to determine the distance between the two rectangles.
待定笔画的最小矩形具体为: 待定笔画是由许多具有坐标参数(X, y ) 的 点构成, 这些点的坐标参数中最小的 X值和最小的 y值构成最小矩形的左上角 的坐标(Xmin_d, Ymin.d ), 这些点的坐标参数中最小的 x值和最大的 y值构成 最小矩形的左下角的坐标(Xmin-d, Ymax-d ), 这些点的坐标参数中最大的 x值 和最小的 y值构成最小矩形的右上角的坐标(Xmax-d, Ymin_d ), 这些点的坐标 参数中最大的 X 值和最大的 y 值构成最小矩形的右上角的坐标 (Xmax-d , Ymax_d ), 定义了待定笔画的最小矩形的四个角自然就定义了待定笔画的最小矩 形。  The minimum rectangle of the pending stroke is: The pending stroke is composed of many points with coordinate parameters (X, y), and the smallest X value and the smallest y value of the coordinate parameters of these points constitute the coordinates of the upper left corner of the smallest rectangle (Xmin_d) , Ymin.d ), the smallest x value and the largest y value of the coordinate parameters of these points constitute the coordinates of the lower left corner of the smallest rectangle (Xmin-d, Ymax-d ), and the largest x value of the coordinate parameters of these points The minimum y value constitutes the coordinates (Xmax-d, Ymin_d) of the upper right corner of the smallest rectangle. The largest X value and the largest y value of the coordinate parameters of these points constitute the coordinates of the upper right corner of the smallest rectangle (Xmax-d, Ymax_d) The four corners that define the smallest rectangle of the pending stroke naturally define the smallest rectangle of the stroke to be determined.
目前笔画的最小矩形具体为: 目前笔画是由许多具有坐标参数(X, y ) 的 点构成, 这些点的坐标参数中最小的 X值和最小的 y值构成最小矩形的左上角 的坐标(Xmin_m, Ymin_m ), 这些点的坐标参数中最小的 x值和最大的 y值构成 最小矩形的左下角的坐标(Xmin— m, Ymax-tn ), 这些点的坐标参数中最大的 x值 和最小的 y值构成最小矩形的右上角的坐标(Xmax-m, Ymin_m ), 这些点的坐标 参数中最大的 X 值和最大的 y 值构成最小矩形的右上角的坐标(Xmax_m, Ymax-m ), 定义了目前笔画的最小矩形的四个角自然就定义了目前笔画的最小矩 形。 At present, the minimum rectangle of a stroke is: The current stroke is composed of many points with coordinate parameters (X, y), and the smallest X value and the smallest y value of the coordinate parameters of these points constitute the coordinates of the upper left corner of the smallest rectangle (Xmin_m , Ymin_m ), the smallest x value and the largest y value of the coordinate parameters of these points constitute the coordinates of the lower left corner of the smallest rectangle (Xmin_m, Ymax-tn), and the largest x value among the coordinate parameters of these points And the minimum y value constitutes the coordinates (Xmax-m, Ymin_m) of the upper right corner of the smallest rectangle. The largest X value and the largest y value of the coordinate parameters of these points constitute the coordinates of the upper right corner of the smallest rectangle (Xmax_m, Ymax-m ), the four corners that define the smallest rectangle of the current stroke naturally define the smallest rectangle of the current stroke.
可见, 待定笔画的最小矩形和待定笔画的最小矩形都是轴向的。  It can be seen that the minimum rectangle of the pending stroke and the smallest rectangle of the pending stroke are both axial.
一个最小矩形 A具体为: 左上角 ( RECTI 01.x, RECTI 01.y )、 左下角 ( RECTI 02.^ RECTI 02.y ), 右上角 ( RECT103.X, RECT103.y )、 右下角 ( RECTI 04.x, RECTI 04.y ),另一个 最小矩形 B具体为: 左上角 ( RECT201.X, RECT201.y )、 左下角 ( RECT202.X, RECT202.y )、 右上角 ( RECT203.X, RECT203.y )、 右下角 ( RECT204.X, RECT204.y ); 若最小矩形 A在上, 最小矩形 B在下排列, 则将两个最小矩形的上下间距与预设值比较,两者间距 为 I RECT201.y- RECT102.y I; 若最小矩形 A在左, 最小矩形 B在右排列, 则将两个 最小矩形的左右间距与预设值比较,两者间距为 I RECT201.X - RECT103.X I; 若最小 矩形 A与最小矩形 B存在重叠点, 则认为两者间距为零; 若若最小矩形 A嚢括 或内置于最小矩形 B, 则认为两者间距为零。 最小矩形 A与最小矩形 B的排列结 构、 重叠点及嚢括关系可由软件的相关判断算法自动判断, 此判断算法不是本 发明的发明点, 在此不再累赘。 而且, 该预设值可以是一个定值, 或因绘制设 备的尺寸、 显示分辨率等而有所不同, 或是一个由软件根据输入笔画的粗细进 而灵活调整的变值。 一  A minimum rectangle A is specifically: upper left corner ( RECTI 01.x, RECTI 01.y ), lower left corner ( RECTI 02.^ RECTI 02.y ), upper right corner ( RECT103.X, RECT103.y ), lower right corner ( RECTI 04.x, RECTI 04.y), the other smallest rectangle B is: upper left corner ( RECT201.X, RECT201.y ), lower left corner ( RECT202.X, RECT202.y ), upper right corner ( RECT203.X, RECT203 .y ), lower right corner ( RECT204.X, RECT204.y ); If the smallest rectangle A is above and the smallest rectangle B is arranged below, the upper and lower spacing of the two smallest rectangles is compared with the preset value, and the spacing between the two is I RECT201 .y- RECT102.y I; If the smallest rectangle A is on the left and the smallest rectangle B is on the right, the left and right spacing of the two smallest rectangles are compared with the preset values, and the spacing between the two is I RECT201.X - RECT103.XI; If there is an overlap point between the smallest rectangle A and the smallest rectangle B, the spacing between the two is considered to be zero; if the minimum rectangle A is included or built in the minimum rectangle B, the spacing between the two is considered to be zero. The arrangement of the smallest rectangle A and the minimum rectangle B, the overlapping point and the arranging relationship can be automatically determined by the software related judgment algorithm. This judgment algorithm is not the invention of the present invention, and is not cumbersome here. Moreover, the preset value may be a fixed value, or may vary depending on the size of the drawing device, the display resolution, etc., or a variable value that is flexibly adjusted by the software according to the thickness of the input stroke. One
如图 2 所示, 以绘制 "川" 字为例, 在绘制过程中我们会在绘制模块上先 后绘制生成三个待定笔画;  As shown in Figure 2, taking the word "chuan" as an example, we will draw and generate three pending strokes on the drawing module during the drawing process.
S201: 开启绘图装置, 初始化, 绘制模块和存储模块为空;  S201: Turn on the drawing device, initialize, draw the module and the storage module is empty;
S202: 在绘制模块上绘制生成一个待定笔画 "尸,, 控制模块判断待定笔画 "尸 是否能加入存储模块, 由于存储模块此时为空, 待定笔画 "尸 被加入存 储模块以构成目前笔画; S202: Draw on the drawing module to generate a pending stroke "corpse, the control module determines whether the pending stroke" can be added to the storage module, because the storage module is empty at this time, the pending stroke "the corpse is added Storing modules to form current strokes;
S203: 此时不按结束命令输出模块, 继续在绘制模块上绘制待定笔画 "1", 控制模块判断待定笔画 "!,, 是否能加入存 模块, 此时存储模块存在目前笔画 ",,, 控制模块对能容纳目前笔画 "尸, 的最小矩形 C1与能容纳待定笔画 "1" 的最小矩形 C2按照在绘制模块的相对位置进行间距判断, 假设该间距 HI小于 预设值, 控制模块将待定笔画 "1"加入存储模块并将待定笔画 "〗" 和存储模块 中的目前笔画 " ) " 按照在所述绘制模块的相对位置组合以构成存储模块的新 的目前笔画 ";1";  S203: At this time, the output module is not pressed according to the end command, and the pending stroke "1" is continuously drawn on the drawing module, and the control module determines whether the pending stroke "!, can be added to the storage module, and the current stroke of the storage module exists", The module determines the spacing between the minimum rectangle C1 of the current stroke "corpse" and the smallest rectangle C2 that can accommodate the pending stroke "1" according to the relative position of the drawing module. Assuming that the spacing HI is smaller than the preset value, the control module will determine the strokes to be determined. "1" is added to the storage module and the pending stroke "" and the current stroke ") in the storage module are combined according to the relative positions of the drawing module to constitute a new current stroke of the storage module "; 1";
S204: 此时不按结束命令输出模块, 继续在绘制模块上绘制待定笔画 "1 ", 控制模块判断待定笔画 "1 "是否能加入存储模块, 此时存储模块存在目前笔画 " 1" , 控制模块对能容纳目前笔画 ";1" 的最小矩形 C3与能容纳待定笔画 "] " 的最小矩形 C4按照在绘制模块的相对位置进行间距判断, 假设该间距 H2小于 预设值, 则控制模块将待定笔画 "I " 加入存储模块, 并将待定笔画 "I " 和存 储模块中的目前笔画 'υι" 按照在所述绘制模块的相对位置组合以构成存储模 块的新的目前笔画 "川,,;  S204: At this time, the output module is not pressed according to the end command, and the pending stroke "1" is continuously drawn on the drawing module, and the control module determines whether the pending stroke "1" can be added to the storage module. At this time, the current stroke "1" exists in the storage module, and the control module The minimum rectangle C3 capable of accommodating the current stroke ";1" and the minimum rectangle C4 capable of accommodating the pending stroke "]" are judged according to the relative position of the drawing module. Assuming that the spacing H2 is smaller than the preset value, the control module will be determined. The stroke "I" is added to the storage module, and the pending stroke "I" and the current stroke 'υι" in the storage module are combined according to the relative positions of the drawing modules to constitute a new current stroke of the storage module.
S205: 人员按结束命令输出模块, 控制模块接收到停止绘制命令, 此时控 制模块判断存储模块存在目前笔画, 并将目前笔画 "川" 认定为独立图像 "川" 另存处理并清空存储模块和绘制模块;  S205: The personnel presses the end command output module, and the control module receives the stop drawing command. At this time, the control module determines that the current stroke of the storage module exists, and identifies the current stroke "Chuan" as an independent image "Chuan", saves the processing and clears the storage module and draws Module
S206: 绘制结束; 最终得出独立图像 "川"。  S206: End of drawing; finally, the independent image "Chuan" is obtained.
【实施例二】 [Embodiment 2]
如图 4所示, 本实施例与实施例一不同的是, 步骤 S204到步骤 S205, 由于 绘制不好, 能容纳目前笔画 " , 的最小矩形与能容纳待定笔画 " I " 的最小矩 形的间距按照在绘制模块的相对位置大于预设值。 因此, 在本实施例中, S204: 此时不按结束命令输出模块, 继续在绘制模块上绘制 ' " 以生成一 个待定笔画 "卜, 控制模块判断待定笔画 " I " 是否能加入存储模块, 此时存储 模块存在目前笔画 " ", 控制模块对能容纳目前笔画 " " 的最小矩形 C3, 与 能容纳待定笔画 "1 "的最小矩形 C4, 按照在绘制模块的相对位置进行间距判断, 该间距 H2, 大于预设值, 将存储模块内目前笔画 "JI" 认定为独立图像并将其 另存以待处理, 将存储模块清空, 再将待定笔画 "!" 添加到存储模块中成为新 的目前笔画 " f "; As shown in FIG. 4, the difference between the embodiment and the first embodiment is that step S204 to step S205, because of poor drawing, can accommodate the spacing of the smallest rectangle of the current stroke ", and the smallest rectangle that can accommodate the pending stroke "I". According to the relative position of the drawing module, the preset value is greater than the preset value. Therefore, in this embodiment, S204: At this time, the output module is not pressed according to the end command, and the drawing is continued on the drawing module to generate a pending stroke. The control module determines whether the pending stroke "I" can be added to the storage module. At this time, the storage module has the current stroke "". The control module pairs the smallest rectangle C3 that can accommodate the current stroke "", and the smallest rectangle C4 that can accommodate the pending stroke "1", and determines the spacing according to the relative position of the drawing module. The spacing H2, which is greater than the preset value, will be stored. The current stroke "JI" in the module is recognized as a separate image and saved for processing, the storage module is emptied, and the pending stroke "!" is added to the storage module to become the new current stroke "f";
S205: 人员按结束命令输出模块, 控制模块接收到停止绘制命令, 此时控 制模块判断存储模块存在目前笔画, 并将目前笔画 " 1 " 认定为独立图像 " I " 另存处理并清空存储模块和绘制模块;  S205: The personnel presses the end command output module, and the control module receives the stop drawing command. At this time, the control module determines that the current stroke exists in the storage module, and identifies the current stroke "1" as an independent image "I", saves the processing, and clears the storage module and draws Module
S206: 绘制结束。  S206: End of drawing.
【实施例三】 [Embodiment 3]
如图 5所示, 一种绘制图形的装置, 包括一具有位置参数的绘制模块, 用 于接收绘制以根据每一笔画相应地生成每个待定笔画, 该待定笔画是点或线; 两个存储模块,用于存储由待定笔画构成的目前笔画; 一结束命令输出模块, 用 于接受人员操作以发出停止绘制的命令; 一控制模块, 其与绘制模块、 两个存 储模块、 结束命令输出模块分别连接, 用于判断每个待定笔画是否能加入第一 个存储模块以构成目前笔画、 第一个存储模块中的目前笔画是否能加入第二个 存储模块以构成目前笔画及认定第一个存储模块和第二个存储模块中的目前笔 画是否为独立图像。  As shown in FIG. 5, an apparatus for drawing a graphic includes a drawing module having positional parameters for receiving a drawing to generate each pending stroke correspondingly according to each stroke, the pending stroke is a point or a line; a module for storing a current stroke composed of a stroke to be determined; an end command output module for accepting a human operation to issue a command to stop drawing; a control module respectively corresponding to the drawing module, the two storage modules, and the end command output module The connection is used to determine whether each of the pending strokes can be added to the first storage module to form the current stroke, whether the current stroke in the first storage module can be added to the second storage module to form the current stroke and identify the first storage module. And whether the current stroke in the second storage module is a separate image.
如图 6所示, 使用上述绘图装置进行绘图的流程, 包括以下步骤:  As shown in FIG. 6, the flow of drawing using the above drawing device includes the following steps:
S301: 开始动作, 绘图装置初始化, 绘制模块和存储模块为空;  S301: Start the action, the drawing device is initialized, and the drawing module and the storage module are empty;
S302: 在绘制模块绘制生成一个待定笔画, 可以是点或线; S303: 判断所述待定笔画是否满足被加入到第一个存储模块的条件; 如果 满足则转到步骤 S305, 如果不满足则转到步骤 S304; S302: Drawing a drawing to generate a pending stroke, which may be a point or a line; S303: determining whether the pending stroke meets the condition of being added to the first storage module; if yes, proceeding to step S305, if not, proceeding to step S304;
S304: 将第一个存储模块中的目前笔画认定为单独图像, 并清空第一个存 储模块, 将第二个存储模块中的目前笔画认定为单独图像, 并清空第二个存储 模块; 将待定笔画添加到第一个存储模块以构成目前笔画; 转动步骤 S308;  S304: Identify the current stroke in the first storage module as a separate image, and empty the first storage module, identify the current stroke in the second storage module as a separate image, and empty the second storage module; Adding a stroke to the first storage module to form the current stroke; rotating step S308;
S305: 将所述待定笔画添加到第一个存储模块中, 若之前第一个存储模块 为空, 则所述待定笔画成为第一个存储模块中的目前笔画; 若第一个存储模块 非空, 则将所述待定笔画和第一个存储模块中的目前笔画按照在所述绘 ^模块 的相对位置组合以构成第一个存储模块的新的目前笔画;  S305: Add the pending stroke to the first storage module. If the first storage module is empty, the pending stroke becomes the current stroke in the first storage module; if the first storage module is not empty And combining the current strokes of the pending stroke and the first storage module according to the relative positions of the drawing module to form a new current stroke of the first storage module;
S306: 判断第一个存储模块中的目前笔画是否满足被加入到第二个存储模 块的条件, 如果满足则转到步骤 S307 , 如果不满足则转到步骤 S308;  S306: determining whether the current stroke in the first storage module meets the condition of being added to the second storage module, if yes, proceeding to step S307, if not, proceeding to step S308;
S307: 将第一个存储模块中的目前笔画添加到第二个存储模块中并清空第 一个存储模块, 若之前第二个存储模块为空, 则第一个存储模块中的目前笔画 成为第二个存储模块中的目前笔画; 若第二个存储模块非空, 则将第一个存储 模块中的目前笔画和第二个存储模块中的目前笔画按照在所述绘制模块的相对 位置组合以构成第二个存储模块的新的目前笔画;  S307: adding the current stroke in the first storage module to the second storage module and emptying the first storage module. If the second storage module is empty before, the current stroke in the first storage module becomes the first The current stroke in the two storage modules; if the second storage module is not empty, combining the current strokes in the first storage module and the current strokes in the second storage module according to the relative positions of the drawing modules The new current stroke that constitutes the second storage module;
S308: 是否接收到停止绘制的命令, 若是, 则转到步骤 309; 若非, 则转到 步驟 S302;  S308: Whether to receive the command to stop drawing, if yes, go to step 309; if not, go to step S302;
S309: 判断第二个存储模块是否为空, 若非, 则转到步骤 S310; 若是, 则 转到步骤 S310;  S309: determining whether the second storage module is empty, if not, proceeding to step S310; if yes, proceeding to step S310;
S310: 则将第二个存储模块中的目前笔画认定为独立图像并将其另存以待 处理并清空该存储模块;  S310: Identifying the current stroke in the second storage module as a separate image and saving it to be processed and emptying the storage module;
S311: 判断第一个存储模块是否为空, 若非, 则转到步驟 S312; 若是, 则 转到步骤 S313; S311: determining whether the first storage module is empty, if not, proceeding to step S312; if yes, Go to step S313;
S312: 将第一个存储模块中的目前笔画认定为独立图像并将其另存以待处 理并清空该存储模块, 清空绘制模块;  S312: Identify the current stroke in the first storage module as a separate image and save it for processing and clear the storage module, and clear the drawing module;
S313: 结束。  S313: End.
其中, 步骤 S303的判断条件为: 若第一个存储模块为空, 所述待定笔画自 动添加到所述存储模块; 若第一个存储模块非空, 则将能容纳第一个存储模块 中的目前笔画的最小矩形与能容纳所述待定笔画的最小矩形按照在所述绘制模 块的相对位置进行间距判断, 如果所述间距小于预设值, 则将所述待定笔画添 加到第一个存储模块。  The determining condition of step S303 is: if the first storage module is empty, the pending stroke is automatically added to the storage module; if the first storage module is not empty, it will be able to accommodate the first storage module. At present, the minimum rectangle of the stroke and the smallest rectangle capable of accommodating the to-be-determined stroke are determined according to the relative position of the drawing module, and if the spacing is less than the preset value, the pending stroke is added to the first storage module. .
其中, 步骤 S306中的判断条件为: 若第二个存储模块为空, 第一个存储模 块中的目前笔画自动添加到所述存储模块; 若第二个存储模块非空, 则将能容 纳第二个存储模块中的目前笔画的最小矩形与能容纳第一个存储模块中的目前 笔画的最小矩形按照在所述绘制模块的相对位置进行间距判断, 如果所述间距 小于预设值, 则将所述待定笔画添加到第二个存储模块。  The determining condition in step S306 is: if the second storage module is empty, the current stroke in the first storage module is automatically added to the storage module; if the second storage module is not empty, it will be able to accommodate the first The minimum rectangle of the current stroke in the two storage modules and the smallest rectangle capable of accommodating the current stroke in the first storage module are determined according to the relative position of the drawing module, and if the spacing is less than the preset value, The pending stroke is added to the second storage module.
如图 7 所示, 以绘制 "十"、 "一"、 "一" 三个独立图形, 我们会在绘制模 块上先后绘制生成四个待定笔画:  As shown in Figure 7, to draw three independent graphs of "ten", "one", and "one", we will draw and generate four pending strokes on the drawing module:
S401开启绘图装置, 初始化, 两个存储模块为空, 绘制模块为空, 开始绘 制:  S401 starts the drawing device, initializes, the two storage modules are empty, the drawing module is empty, and the drawing starts:
S402: 在绘制模块上绘制 "一" 以生成一个待定笔画 "一", 控制模块判断 待定笔画 "一" 是否能加入第一个存储模块, 由于第一个存储模块此时为空, 待定笔画 "一" 被加入第一个存储模块以构成目前笔画 "一";  S402: drawing "one" on the drawing module to generate a pending stroke "one", the control module determines whether the pending stroke "one" can be added to the first storage module, because the first storage module is empty at this time, the pending stroke is " "is added to the first storage module to form the current stroke "one";
S403: 控制模块判断第一个存储模块中的目前笔画 "一" 是否能加入第二 个存储模块, 由于第二个存储模块此时为空, 目前笔画 "一" 被加入第二个存 储模块以构成第二个存储模块中的目前笔画 "一" 并清空第一个存储模块; ,S403: The control module determines whether the current stroke "one" in the first storage module can be added to the second storage module. Since the second storage module is empty at this time, the stroke "one" is added to the second storage. Storing the module to form the current stroke "one" in the second storage module and emptying the first storage module;
S404: 此时不按结束命令输出模块, 继续在绘制模块上绘制 "!" 以生成一 个待定笔画 "ί", 控制模块判断待定笔画 叶, 是否能加入第一个存储模块, 由 于第一个存储模块此时为空, 由于第一个存储模块此时为空, 待定笔画 "1" 被 加入第一个存储模块以构成目前笔画 ",,; S404: At this time, the output module is not pressed according to the end command, and the "!" is continuously drawn on the drawing module to generate a pending stroke "ί", and the control module determines whether the pending stroke leaf can be added to the first storage module, because the first storage The module is empty at this time. Since the first storage module is empty at this time, the pending stroke "1" is added to the first storage module to form the current stroke ",;
S405: 控制模块判断第一个存储模块中的目前笔画 叶, 是否能加入第二个 存储模块, 此时第二个存储模块存在目前笔画 "一", 控制模块对能容纳目前笔 画 "一" 的最小矩形 C401与能容纳目前笔画 "I" 的最小矩形 C402按照在绘制 模块的相对位置进行间距判断, 假设该间距 H401小于预设值, 控制模块将目前 笔画 "一" 加入第二个存储模块并清空第一个存储模块, 将目前笔画 "一" 和 目前笔画 "!" 按照在所述绘制模块的相对位置组合以构成第二存储模块的新的 目前笔画 "十";  S405: The control module determines whether the current stroke leaf in the first storage module can be added to the second storage module. At this time, the second storage module has a current stroke "one", and the control module can accommodate the current stroke "one". The minimum rectangle C401 and the smallest rectangle C402 capable of accommodating the current stroke "I" are judged according to the relative position of the drawing module. Assuming that the spacing H401 is smaller than the preset value, the control module adds the current stroke "one" to the second storage module and Emptying the first storage module, combining the current stroke "one" and the current stroke "!" according to the relative positions of the drawing modules to form a new current stroke "ten" of the second storage module;
S406: 此时不按结束命令输出模块, 继续在绘制模块上绘制 "一" 以生成 一个待定笔画 "一",控制模块判断待定笔画 "一"是否能加入第一个存储模块, 由于第一个存储模块此时为空, 待定笔画 "一" 被加入第一个存储模块以构成 目前笔画 "一,,;  S406: At this time, the output module is not pressed according to the end command, and the "one" is continuously drawn on the drawing module to generate a pending stroke "one", and the control module determines whether the pending stroke "one" can be added to the first storage module, because the first one The storage module is empty at this time, and the pending stroke "one" is added to the first storage module to form the current stroke "one,,;
S407: 控制模块判断第一个存储模块中的目前笔画 "一" 是否能加入第二 个存储模块, 由于此时第二个存储模块存在目前笔画 "十", 控制模块对能容纳 目前笔画 "一" 的最小矩形 C404与能容纳目前笔画 "十" 的最小矩形 C403按 fe在绘制模块的相对位置进行间距判断, 假设该间距 H402大于预设值, 第一个 存储模块中的目前笔画 "一" 不能加入第二个存储模块;  S407: The control module determines whether the current stroke "one" in the first storage module can be added to the second storage module. Since the second storage module has the current stroke "ten", the control module pair can accommodate the current stroke "one The minimum rectangle C404 and the smallest rectangle C403 that can accommodate the current stroke "ten" are judged by the relative position of the fe in the drawing module. Assuming that the spacing H402 is greater than the preset value, the current stroke "1" in the first storage module Cannot join the second storage module;
S408: 此时不按结束命令输出模块,'继续在绘制模块上绘制 "一" 以生成 一个待定笔画 "一",控制模块判断待定笔画 "一"是否能加入第一个存储模块, 由于此时第一个存储模块存在目前笔画 "一",控制模块对能容纳目前笔画 "一" 的最小矩形 C404与能容纳待定笔画 "一" 的最小矩形 C405按照在绘制模块的 相对位置进行间距判断, 假设该间距大于预设值, 待定笔画 "一" 暂时不能加 入第一个存储模块; S408: At this time, the output module is not pressed according to the end command, 'continue to draw "one" on the drawing module to generate a pending stroke "one", and the control module determines whether the pending stroke "one" can be added to the first storage module. Since the current storage module has the current stroke "one" at this time, the control module has a minimum rectangle C404 capable of accommodating the current stroke "one" and a minimum rectangle C405 capable of accommodating the pending stroke "one" according to the relative position of the drawing module. Judging, assuming that the spacing is greater than the preset value, the pending stroke "one" cannot be added to the first storage module temporarily;
S409: 将第一个存储模块中的目前笔画 "一" 认定为单独图像 "一" 以另 存处理并清空第一个存储模块, 将第二个存储模块中的目前笔画 "十" 认定为 单独图像 "十" 以另存处理并清空第二个存储模块; 待定笔画 "一" 被加入第 一个存储模块以构成目前笔画 "一";  S409: Identify the current stroke "one" in the first storage module as a separate image "one" to save and empty the first storage module, and identify the current stroke "ten" in the second storage module as a separate image. "10" to save and empty the second storage module; the pending stroke "one" is added to the first storage module to form the current stroke "one";
S410: 控制模块判断第一个存储模块中的目前笔画 "一" 是否能加入第二 个存储模块, 由于第二个存储模块此时为空, 目前笔画 "一" 被加入第二个存 储模块以构成第二个存储模块中的目前笔画 "一" 并清空第一个存储模块;  S410: The control module determines whether the current stroke "one" in the first storage module can be added to the second storage module. Since the second storage module is empty at this time, the stroke "one" is added to the second storage module. Forming the current stroke "one" in the second storage module and emptying the first storage module;
S411: 此时人员按结束命令输出模块, 控制模块接收到停止绘制命令, 此 时控制模块判断到第二个存储模块存在目前笔画 "一", 将第二个存储模块中的 目前笔画 "一" 认定为单独图像 "一" 以另存处理并清空第 '二个存储模块, 清 空绘制模块;  S411: At this time, the personnel presses the end command output module, and the control module receives the stop drawing command. At this time, the control module determines that the current storage module has the current stroke "one", and the current stroke in the second storage module is "one". It is recognized as a separate image "one" to save and clear the second two storage modules, and clear the drawing module;
S412: 绘制结束, 最终得出独立图像 "十"、 "一"、 "一"。  S412: The drawing ends, and finally the independent images "ten", "one", "one" are obtained.
【实施例四】 [Embodiment 4]
因为按照实施例三的方法, 有时会出现以下问题, 如图 8 所示, 例如要绘 制一个独立图像 "帽",  Because according to the method of the third embodiment, the following problems sometimes occur, as shown in FIG. 8, for example, to draw a separate image "cap",
S501: 经过几笔绘制和判断后, 在绘制模块先绘制 "巾", 在第二个存储模 块形成目前笔画 "巾";  S501: After a few strokes and judgments, the drawing module first draws a "tapple", and the second storage module forms a current stroke "towel";
S502: 当绘制了 "曰" 的第一笔以生成待定笔画 叶,, 经判断, 容纳待定笔 画 "1" 的最小矩形 C502与能容纳待定笔画' "巾" 的最小矩形 C501这两者的间 距 H501按照在绘制模块的相对位置是大于预设值, 就在第一个存储模块形成目 前笔画 '屮,; S502: When the first stroke of "曰" is drawn to generate a pending stroke leaf, after judging, the pending pen is accommodated The distance H501 between the smallest rectangle C502 of "1" and the smallest rectangle C501 capable of accommodating the pending stroke "" towel is larger than the preset value according to the relative position of the drawing module, and the current stroke is formed in the first storage module. '屮,;
S503: 在第一个存储模块形成目前笔画 "曰", 在第二个存储模块形成目前 笔画 "巾,,;  S503: forming a current stroke "曰" in the first storage module, and forming a current stroke in the second storage module.
S504: 当绘制了 "目" 的第一笔以生成待定笔画 "1", 经判断, 容纳待定笔 画 "I" 的最小矩形 C504与能容纳待定笔画 "曰" 的最小矩形 C503这两者的间 距 H502按照在绘制模块的相对位置是大于预设值, 则先会生成独立图像 f "巾" 和 "曰,,; S504: When the first stroke of the "mesh" is drawn to generate the pending stroke "1", it is judged that the spacing between the smallest rectangle C504 that accommodates the pending stroke "I" and the smallest rectangle C503 that can accommodate the pending stroke "曰" H502 according to the relative position of the drawing module is greater than the preset value, then the independent image f "cloth" and "曰,,;
S505: 当在绘制模块绘制完 "帽" 后, 会在第二个存储模块形成目前笔画 "目", 人工操作结束命令输出模块输入停止绘制命令, 第二个存储模块中的目 前笔画 "目" 被认为独立图像 "目" 进行另存处理, 清空第二个存储模块。  S505: When the drawing module finishes drawing the "cap", the current stroke "mesh" is formed in the second storage module, and the manual operation end command output module inputs the stop drawing command, and the current stroke "head" in the second storage module It is considered that the independent image "mesh" is saved and the second storage module is emptied.
由上述可见, 当使用者将 "帽" 的 "巾"、 "曰" 和 "目" 这三部分写得开 些, 使得三部分各自形成独立图像而没生成独立图像 "帽"。  It can be seen from the above that when the user writes the three parts of "mask", "曰" and "mesh" of the "cap", the three parts each form an independent image without generating a separate image "cap".
如图 9 所示, 为此, 本发明对实施例三中的方法进行进一步修改, *体是 修改步骤 S304, 修改后的步骤 S304包括:  As shown in FIG. 9, the present invention further modifies the method in the third embodiment, and the body is a modification step S304, and the modified step S304 includes:
S341 : 判断待定笔画是否满足与第一个存储模块中的目前笔画、 第二个存 储模块中的目前笔画构成一整体的目前笔画的条件? (即判断待定笔画是否满 足属于第一个存储模块和第二个存储模块的并集的条件? )若不满足则转到步 骤 S342, 若满足则转到步骤 S343;  S341: Determine whether the pending stroke satisfies the condition of the current stroke which is integral with the current stroke in the first storage module and the current stroke in the second storage module. (ie, determine whether the pending stroke meets the condition of the union of the first storage module and the second storage module?) If not, then go to step S342, if yes, go to step S343;
S342: 将第一个存储模块中的目前笔画认定为单独图像, 并清空第一个存 储模块, 将第二个存储模块中的目前笔画认定为单独图像, 并清空第二个存储 模块; 将待定笔画添加到第一个存储模块以构成目前笔画, 转到步骤 S308; S343: 将第一个存储模块中的目前笔画加入到第二个存储模块以和第二个 存储模块中的目前笔画按照在所述绘制模块的相对位置组合以构成第二个存储 模块中的目前笔画并清空第一个存储模块; 将待定笔画添加到第一个存储模块 以构成目前笔画, 转到步骤 S308。 S342: Identify the current stroke in the first storage module as a separate image, and empty the first storage module, identify the current stroke in the second storage module as a separate image, and empty the second storage module; The stroke is added to the first storage module to form the current stroke, and the process goes to step S308; S343: adding the current stroke in the first storage module to the second storage module to combine with the current stroke in the second storage module according to the relative position of the drawing module to form the current current in the second storage module. Stroke and empty the first storage module; add the pending stroke to the first storage module to form the current stroke, and go to step S308.
其中, 步骤 S341的判断条件是, 容纳待定笔画的最小矩形与容纳第一个 存储模块中的目前笔画和第二个存储模块中的目前笔画的最小矩形按照在所述 绘制模块的相对位置进行间距判断, 如果该间距小于预设值, 则满足。  The determining condition of step S341 is that the smallest rectangle accommodating the pending stroke and the smallest rectangle accommodating the current stroke in the first storage module and the current stroke in the second storage module are spaced according to the relative position of the drawing module. It is judged that if the pitch is smaller than the preset value, it is satisfied.
如图 10所示, 在这以绘制一个独立图像 "帽" 为例;  As shown in Figure 10, here is an example of drawing a separate image "cap";
S601: 经过几笔绘制和判断后, 在绘制模块先绘制 "巾 ", 在第二个存储模 块形成目前笔画 "巾";  S601: After a few strokes and judgments, the drawing module first draws a "tapple", and the second storage module forms a current stroke "towel";
S602: 当绘制了 "曰" 的第一笔以生成待定笔画 '屮,, 经判断, 容纳待定笔 画 叶, 的最小矩形 C602与能容纳待定笔画 "巾" 的最小矩形 C601这两者的间 距 H601按照在绘制模块的相对位置是大于预设值, 就在第一个存储模块形成目 前笔画 "〗,,;  S602: When the first stroke of "曰" is drawn to generate a pending stroke '屮, the distance between the smallest rectangle C602 that is judged to accommodate the pending stroke leaf, and the smallest rectangle C601 that can accommodate the pending stroke "towel" is H601 According to the relative position of the drawing module is greater than the preset value, the current stroke is formed in the first storage module ",";
S603: 在第一个存储模块形成目前笔画 "曰", 在第二个存储模块形成目前 笔画 "巾";  S603: forming a current stroke "曰" in the first storage module, and forming a current stroke "towel" in the second storage module;
S604: 当绘制了 "目" 的第一笔以生成待定笔画 "1" , 经判断, 容纳待定笔 画 "1" 的最小矩形 C604与能容纳待定笔画 "曰" 的最小矩形 C603这两者的间 距 H602按照在绘制模块的相对位置是大于预设值,待定笔画 "!"不满足加入笫  S604: When the first stroke of the "mesh" is drawn to generate the pending stroke "1", it is judged that the distance between the smallest rectangle C604 accommodating the pending stroke "1" and the smallest rectangle C603 capable of accommodating the pending stroke "曰" H602 is larger than the preset value according to the relative position of the drawing module, and the pending stroke "!" is not satisfied.
S605: 经判断, 容纳目前笔画 "巾" 和目前笔画 "曰" 的最小矩形 C605与 容纳待定笔画 叶, 的最小矩形 C604这两者的间距 H603按照在绘制模块的相对 位置是小于预设值,将目前笔画 "曰,,加入第二个存储模块以形成目前笔画 并清空第一个存储模块, 再将待定笔画 "1" 加入第一个存储模块;S605: It is judged that the distance H603 between the smallest rectangle C605 accommodating the current stroke "canvas" and the current stroke "曰" and the smallest rectangle C60 4 accommodating the strokes to be determined is smaller than the preset value according to the relative position of the drawing module. , the current stroke "曰,, added to the second storage module to form the current strokes And emptying the first storage module, and then adding the pending stroke "1" to the first storage module;
S606: 当在绘制区域绘制完 "帽" 后, 会在第二个存储模块形成目前笔画 "帽", 人工操作结束命令输出模块输入停止绘制命令, 第二个存储模块中的目 前笔画 "帽" 被认为独立图像 "帽" 进行另存处理, 清空第二个存储模块。 S606: When the "cap" is drawn in the drawing area, the current stroke "cap" is formed in the second storage module, and the manual operation end command output module inputs the stop drawing command, and the current stroke "cap" in the second storage module It is considered that the independent image "cap" is saved and the second storage module is emptied.
以上这个进一步的修改是基于类似 "帽" 这种字具有左部分、 右上部分和 右下部分结构的特点, 因为右下部分基本都会落入容纳左部分和右上部分的矩 形内。 本发明不局限于上述实施例, 基于上述实施例的、 未做出创造性劳动的简 单替换, 应当属于本发明揭露的范围。  This further modification is based on the fact that the word "cap" has the characteristics of the left part, the upper right part and the lower right part because the lower right part basically falls into the rectangle that accommodates the left part and the upper right part. The present invention is not limited to the above embodiments, and simple replacement based on the above-described embodiments without creative labor should fall within the scope of the present invention.

Claims

1、 一种绘图装置, 其特征在于, 包括一具有位置参数的绘制模块, 用于接 收绘制以根据每一笔画相应地生成每个待定笔画, 该待定笔画是点或线; 一用 于存储由待定笔画构成的目前笔画的存储^莫块; 一结束命令输出模块, 用于接 受人员操作以发出停止绘制的命令; 一控制模块, 其与绘制模块、 存储模块、 结束命令输出模块分别连接, 用于判断每个待定笔画是否满足加入存储模块以 构成目前笔画及认定存储模块中的目前笔画是否为独立图象。 A drawing device, comprising: a drawing module having positional parameters for receiving drawing to generate each pending stroke correspondingly according to each stroke, the pending stroke is a point or a line; The current stroke of the pending stroke is stored; an end command output module is configured to accept a human operation to issue a command to stop drawing; a control module, which is respectively connected to the drawing module, the storage module, and the end command output module, It is determined whether each pending stroke satisfies the joining of the storage module to form the current stroke and whether the current stroke in the storage module is an independent image.
2、 一种使用权利要求 1所述的绘图装置进行绘图的方法, 其特征在于, 包 括以下步骤:  2. A method of drawing using the drawing device of claim 1 comprising the steps of:
步骤 1 ): 在绘制模块绘制生成一个待定笔画, 可以是点或线;  Step 1): Draw a module to draw a pending stroke, which can be a point or a line;
步骤 2 ): 判断所述待定笔画是否满足被加入到存储模块的条件, 如果满足 则转到步骤 3 ), 如果不满足则转到步骤 4 );  Step 2): determining whether the pending stroke satisfies the condition that is added to the storage module, if yes, then proceeds to step 3), if not, proceeds to step 4);
步骤 3 ): 将所述待定笔画添加到存储模块中, 若之前存储模块为空, 则所 述待定笔画成为目前笔画; 若存储模块非空, 则将所述待定笔画和存储模块中 的目前笔画按照在所述绘制模块的相对位置组合以构成存储模块的新的目前笔 画; 转到步骤 5 );  Step 3): adding the to-be-determined stroke to the storage module, if the previous storage module is empty, the pending stroke becomes the current stroke; if the storage module is not empty, the current stroke in the pending stroke and the storage module is According to the relative position of the drawing module combined to form a new current stroke of the storage module; go to step 5);
步骤 4 ): 将存储模块内目前笔画认定为独立图像并将其另存以待处理及将 所述存储模块清空, 将所述待定笔画添加到存储模块中成为新的目前笔画; 步骤 5 ): 是否接收到停止绘制的命令, 若是, 则转到步骤 6 ); 若非, 则转 到步骤 1 );  Step 4): Identify the current stroke in the storage module as a separate image and save it for processing and empty the storage module, and add the pending stroke to the storage module to become a new current stroke; Step 5): Receiving a command to stop drawing, if yes, go to step 6); if not, go to step 1);
步骤 6 ): 将存储模块内目前笔画认定为独立图像并将其另存以待处理, 将 存储模块清空, 结束。  Step 6): Identify the current stroke in the storage module as a separate image and save it for processing. Clear the storage module and end.
3、 根据权利要求 2所述的方法, 其特征在于, 步骤 2 )的判断条件为: 若 存储模块为空, 所述待定笔画自动添加到存储模块; 若存储模块非空, 则将能 容纳存储模块内目前笔画的最小矩形与能容纳所述待定笔画的最小矩形按照在 所述绘制模块的相对位置进行间距判断,.如果所述间距小于预设值, 则将所述 待定笔画添加到存储模块。 The method according to claim 2, wherein the determining condition of step 2) is: if the storage module is empty, the pending stroke is automatically added to the storage module; if the storage module is not empty, the storage module is capable of accommodating storage The smallest rectangle of the current stroke in the module and the smallest rectangle that can accommodate the pending stroke The relative position of the drawing module is determined by the spacing. If the spacing is less than the preset value, the pending stroke is added to the storage module.
4、 一种绘图装置, 其特征在于, 包括一具有位置参数的绘制模块, 用于接 收绘制以根据每一笔画相应地生成每个待定笔画, 该待定笔画是点或线; N个存 储模块, 用于存储由待定笔画构成的目前笔画, N为大于 1的自然数; 一结束命 令输出模块, 用于接受人员操作以发出停止绘制的命令; 一控制模块, 其与绘 制模块、 N个存储模块、 结束命令输出模块分别连接, 用于判断每个待定笔画是 否满足加入第一个存储模块以构成目前笔画、 上一个存储模块中的目前笔画是 否能加入下一个存储模块以构成目前笔画及认定存储模块中的目前笔画是否为 独立图像。  4. A drawing device, comprising: a drawing module having positional parameters for receiving drawing to generate each pending stroke correspondingly according to each stroke, the pending stroke is a point or a line; N storage modules, For storing the current stroke composed of pending strokes, N is a natural number greater than 1; an end command output module for accepting a human operation to issue a command to stop drawing; a control module, and a drawing module, N storage modules, The end command output modules are respectively connected to determine whether each pending stroke is satisfied to be added to the first storage module to form the current stroke, and whether the current stroke in the previous storage module can be added to the next storage module to form the current stroke and the identified storage module. Whether the current stroke in the picture is an independent image.
5、 一种使用权利要求4所述的绘图装置进行绘图的方法, 其特征在于, 包 括以下步骤:  A method of drawing using the drawing device of claim 4, comprising the steps of:
步骤 1 ): 在绘制模块绘制生成一个待定笔画, 可以是点或线;  Step 1): Draw a module to draw a pending stroke, which can be a point or a line;
步骤 2 ): 判断所述待定笔画是否满足被加入到第一个存储模块的条件, 如 果满足则转到步驟 4 ), 如果不满足则转到步骤 3 );  Step 2): determining whether the pending stroke meets the condition of being added to the first storage module, if yes, then going to step 4), if not, then going to step 3);
步骤 3 ): 将所有存储模块的各自目箭笔画都各自认定为独立图.象并都另存 以待处理, 清空所有存储模块, 将待定笔画加入到第一个存储模块以构成目前 笔画, 转到步骤 6 );  Step 3): Identify each of the storage module's respective eye strokes as separate images. The icons are saved for processing, all the storage modules are cleared, and the pending strokes are added to the first storage module to form the current strokes. Step 6);
步骤 4 ): 将所述待定笔画添加到第一个存储模块中, 若之前第一个存储模 块为空, 则所述待定笔画成为第一个存储模块中的目前笔画; 若第一个存储模 块非空, 则将所述待定笔画和第一个存储模块中的目前笔画按照在所述绘制模 块的相对位置组合以构成第一个存储模块的新的目前笔画;  Step 4): adding the pending stroke to the first storage module, if the first storage module is empty, the pending stroke becomes the current stroke in the first storage module; if the first storage module Non-empty, the current strokes in the pending stroke and the first storage module are combined according to the relative positions of the drawing module to form a new current stroke of the first storage module;
步骤 5 ):按以下方法沿着第一个存储模块到第 N个存储模块依次往下处理: 判断上一个存储模块中的目前笔画是否满足被加入到下一个存储模块的条件, 如果满足, 则将上一个存储模块中的目前笔画添加到下一个存储模块中并清空 上一个存储模块, 若之前下一个存储模块为空, 则上一个存储模块中的目前笔 画成为下一个存储模块中的目前笔画, 若下一个存储模块非空, 则将上 ^个存 储模块中的目前笔画和下一个存储模块中的目前笔画按照在所述绘制模块的相 对位置组合以构成下一个存储模块的新的目前笔画;如果不满足则转到步骤 6 ); 步骤 6 ): 是否接收到停止绘制的命令, 若是, 则转到 7 ); 若非, 则转到 1 ); 步骤 7 ): 判断是否有存储模块存在 前笔画, 若全部不存在, 则转到步骤 9 ); 若有, 转到步骤 8 ); Step 5): sequentially processing the first storage module to the Nth storage module in the following manner: determining whether the current stroke in the previous storage module satisfies the condition of being added to the next storage module, If yes, add the current stroke in the previous storage module to the next storage module and empty the previous storage module. If the previous storage module is empty, the current stroke in the previous storage module becomes the next storage module. In the current stroke, if the next storage module is not empty, the current strokes in the upper storage module and the current strokes in the next storage module are combined according to the relative positions of the drawing modules to form the next storage module. New current stroke; if not, go to step 6); Step 6): Whether to receive the command to stop drawing, if yes, go to 7); If not, go to 1); Step 7): Determine if there is The storage module has a previous stroke, if all does not exist, go to step 9); if yes, go to step 8);
存储模块存在目前笔画则将相应存储模块中的目前笔画分别认定为独立图 像并另存以待处理及清空相应的存储模块;  The current stroke of the storage module identifies the current strokes in the corresponding storage module as separate images and saves them to be processed and empties the corresponding storage modules;
步骤 9 ): 结束。  Step 9): End.
6、 根据权利要求 4所述的方法, 其特征在于, 步骤 2 ) 中所述待定笔画满 足被加入到第一个存储模块的条件为: 若第一个存储模块为空, 所述待定笔画 自动添加到所述存储模块; 若第一个存储模块非空, 则将能容纳第一个存储模 块中的目前笔画的最小矩形与能容纳所述待定笔画的最小矩形按照在所述绘制 模块的相对位置进行间距判断, 如果所述 距小于预设值, 则将所述待定笔画 添加到第一个存储椟块。  The method according to claim 4, wherein the condition that the pending stroke in step 2) is added to the first storage module is: if the first storage module is empty, the pending stroke is automatically Adding to the storage module; if the first storage module is not empty, the smallest rectangle that can accommodate the current stroke in the first storage module and the smallest rectangle that can accommodate the pending stroke are in accordance with the drawing module The position is determined by the spacing, and if the distance is less than the preset value, the pending stroke is added to the first storage block.
7、 根据权利要求 4所述的方法, 其特征在于, 步骤 5 ) 中的上一个存储模 块中的目前笔画满足被加入到下一个存储模块的条件为: 若下一个存储模块为 空, 上一个存储模块中的目前笔画自动添加到所述存储模块; 若下一个存储模 块非空, 则将能容纳下一个存储模块中的目前笔画的最小矩形与能容纳上一个 存储模块中的目前笔画的最小矩形按照在所述绘制模块的相对位置进行间距判 断, 如果所述间距小于预设值, 则将所述待定笔画添加到下一个存储模块。  The method according to claim 4, wherein the condition that the current stroke in the previous storage module in step 5) satisfies being added to the next storage module is: if the next storage module is empty, the previous one The current stroke in the storage module is automatically added to the storage module; if the next storage module is not empty, it will be able to accommodate the smallest rectangle of the current stroke in the next storage module and the minimum of the current stroke in the previous storage module. The rectangle is determined according to the relative position of the drawing module, and if the spacing is smaller than the preset value, the pending stroke is added to the next storage module.
8、 一种绘图装置, 其特征在于, 包括一具有位置参数的绘制模块, 用于接 收绘制以根据每一笔画相应地生成每个待定笔画, 该待定笔画是点或线; 两个 存储模块,用于存储由待定笔画构成的目前笔画; 一结束命令输出模块, 用于接 受人员操作以发出停止绘制的命令; 一控制模块, 其与绘制模块、 两个存储模 块、 结束命令输出模块分别连接, 用于判断每个待定笔画是否能加入第一个存 储模块以构成目前笔画、 第一个存储模块中的目前笔画是否能加入第二个存储 模块以构成目前笔画及认定第一个存储模块和第二个存储模块中的目前笔画认 定是否为独立图像。 8. A drawing device, comprising: a drawing module having positional parameters for receiving Drawing is performed to generate each pending stroke correspondingly according to each stroke, the pending stroke is a point or a line; two storage modules for storing the current stroke composed of the pending strokes; and an ending command output module for accepting personnel operations To issue a command to stop drawing; a control module, which is respectively connected with the drawing module, the two storage modules, and the ending command output module, for determining whether each pending stroke can be added to the first storage module to form the current stroke, first Whether the current stroke in the storage module can be added to the second storage module to constitute the current stroke and whether the current stroke in the first storage module and the second storage module is determined to be an independent image.
9、 一种使用权利要求 8所述的绘图装置进行绘图的方法, 其特征在于, 包 括以下步骤:  9. A method of drawing using the drawing device of claim 8, comprising the steps of:
步骤 101 ): 在绘制模块绘制生成一个待定笔画, 可以是点或线;  Step 101): Draw a module to draw a pending stroke, which may be a point or a line;
步骤 102 ): 判断所述待定笔画是否满足被加入到第一个存储模块的条件, 如果满足则转到步骤 104 ), 如果不满足则转到步驟 103 );  Step 102): determining whether the pending stroke meets the condition of being added to the first storage module, if yes, then proceeds to step 104), if not, then proceeds to step 103);
步骤 103 ): 将第一个存储模块中的目前笔画认定为单独图像, 并清空第一 个存储模块, 将第二个存储模块中的目前笔画认定为单独图像, 并清空第二个 存储模块; 将待定笔画加入第一个存储模块成为目前笔画, 转到步骤 107 );  Step 103): Identify the current stroke in the first storage module as a separate image, and clear the first storage module, identify the current stroke in the second storage module as a separate image, and empty the second storage module; Adding the pending stroke to the first storage module becomes the current stroke, and proceeds to step 107);
步骤 104 ): 将所述待定笔画添加到第一个存储模块中, 若之前第一个存储 模块为空, 则所述待定笔画成为第一个存储模块中的目前笔画; 若第一个存储 模块非空, 则将所述待定笔画和第一个存储模块中的目前笔画按照在所述绘制 模块的相对位置组合以构成第一个存储 块的新的目前笔画;  Step 104): adding the pending stroke to the first storage module, if the first storage module is empty, the pending stroke becomes the current stroke in the first storage module; if the first storage module Non-empty, the current strokes in the pending stroke and the first storage module are combined according to the relative positions of the drawing module to form a new current stroke of the first storage block;
步骤 105 ): 判断第一个存储模块中的目前笔画是否满足被加入到第二个存 储模块的条件, 如果满足则转到步骤 106 ), 如果不满足则转到步骤 107 );  Step 105): determining whether the current stroke in the first storage module satisfies the condition of being added to the second storage module, if yes, proceeding to step 106), if not, proceeding to step 107);
步骤 106 ): 将第一个存储模块中的目前笔画添加到第二个存储模块中并清 空第一个存储模块, 若之前第二个存储模块为空, 则第一个存储模块中的目前 笔画成为第二个存储模块中的目前笔画; 若第二个存储模块非空, 则将笫一个 存储模块中的目前笔画和第二个存储模块中的目前笔画按照在所述绘制模块的 相对位置组合以构成第二个存储模块的新的目前笔画; Step 106): adding the current stroke in the first storage module to the second storage module and emptying the first storage module. If the second storage module is empty before, the current stroke in the first storage module Become the current stroke in the second storage module; if the second storage module is not empty, it will be one The current stroke in the storage module and the current stroke in the second storage module are combined according to the relative positions of the drawing module to form a new current stroke of the second storage module;
步骤 107 ): 是否接收到停止绘制的命令, 若是, 则转到 108 ); 若非, 则转 到步骤 101 );  Step 107): Whether to receive the command to stop drawing, if yes, go to 108); if not, go to step 101);
步骤 108 ): 判断是否有存储模块存在目前笔画,若没有,则转到步骤 110 ), 若有, 转到步骤 109 );  Step 108): Determine whether there is a current stroke of the storage module, if not, go to step 110), if yes, go to step 109);
步骤 109 ): 将相应的存储模块存在目前笔画则将相应存储模块中的 前笔 画分别认定为独立图像并另存以待处理及清空相应的存储模块;  Step 109): when the current storage module exists in the current stroke, the front strokes in the corresponding storage module are respectively identified as independent images and saved to be processed and the corresponding storage module is cleared;
步骤 110 ): 结束。  Step 110): End.
10、 根据权利要求 9所述的方法, 其特征在于, 步骤 103 )被取代为包括: 步骤 131 ): 判断待定笔画是否满足与第一个存储模块中的目前笔画、 第二 个存储模块中的目前笔画构成一整体的目前笔画的条件, 若不满足则转到步骤 132 ), 若满足则转到步骤 133 );  The method according to claim 9, wherein the step 103) is replaced by: step 131): determining whether the pending stroke is satisfied with the current stroke in the first storage module, in the second storage module At present, the stroke constitutes an overall condition of the current stroke, if not, then proceeds to step 132), if yes, proceeds to step 133);
步骤 132 ): 将第一个存储模块中的目前笔画认定为单独图像, 并清空第一 个存储模块, 将第二个存储模块中的目前笔画认定为单独图像, 并清空第二个 存储模块; 将待定笔画添加到第一个存储模块以构成目前笔画, 转到步骤 107 );  Step 132): Identify the current stroke in the first storage module as a separate image, and empty the first storage module, identify the current stroke in the second storage module as a separate image, and empty the second storage module; Adding a pending stroke to the first storage module to form the current stroke, go to step 107);
步骤 133 ): 将第一个存储模块中的目前笔画加入到第二个存储模块以和第 二个存储模块中的目前笔画按照在所述绘制模块的相对位置组合以构成第二个 存储模块中的目前笔画并清空第一个存储模块, 将待定笔画添加到第一个存储 模块以构成目前笔画, 转到步骤 107 )。  Step 133): adding the current stroke in the first storage module to the second storage module to combine with the current stroke in the second storage module according to the relative position of the drawing module to form a second storage module. The current stroke and empty the first storage module, add the pending stroke to the first storage module to form the current stroke, go to step 107).
PCT/CN2012/000008 2010-12-31 2012-01-04 Drawing device and drawing method WO2012089167A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201010620345.9A CN102141884B (en) 2010-12-31 2010-12-31 Drawing device and method
CN201010620345.9 2010-12-31

Publications (1)

Publication Number Publication Date
WO2012089167A1 true WO2012089167A1 (en) 2012-07-05

Family

ID=44409436

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2012/000008 WO2012089167A1 (en) 2010-12-31 2012-01-04 Drawing device and drawing method

Country Status (2)

Country Link
CN (1) CN102141884B (en)
WO (1) WO2012089167A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102141884B (en) * 2010-12-31 2014-01-01 珠海金山办公软件有限公司 Drawing device and method
CN106095294B (en) * 2016-06-08 2019-03-05 福建天泉教育科技有限公司 The method and its system of synchronous stroke between different platform

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101021950A (en) * 2007-03-19 2007-08-22 朱桂永 Convenient mouse drawing method
CN101576783A (en) * 2008-05-09 2009-11-11 诺基亚公司 User interface, equipment and method for hand input
CN101620501A (en) * 2009-07-28 2010-01-06 上海合合信息科技发展有限公司 Handwriting input system, handwriting input method and electronic equipment
CN102141884A (en) * 2010-12-31 2011-08-03 珠海金山办公软件有限公司 Drawing device and method

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4611031B2 (en) * 2003-01-30 2011-01-12 富士通株式会社 Handwriting input device and method
CN101470549A (en) * 2007-12-27 2009-07-01 汉王科技股份有限公司 Handwriting processing method and system used for information processing terminal
CN101414224B (en) * 2008-11-18 2011-02-16 圆展科技股份有限公司 Apparatus and method for defining writing position
CN101424991B (en) * 2008-11-19 2012-06-27 圆展科技股份有限公司 Device and method for auto-arranging hand-writing strings
CN101930299B (en) * 2010-08-25 2014-04-02 华南理工大学 Method for intelligently generating Chinese character without character library

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101021950A (en) * 2007-03-19 2007-08-22 朱桂永 Convenient mouse drawing method
CN101576783A (en) * 2008-05-09 2009-11-11 诺基亚公司 User interface, equipment and method for hand input
CN101620501A (en) * 2009-07-28 2010-01-06 上海合合信息科技发展有限公司 Handwriting input system, handwriting input method and electronic equipment
CN102141884A (en) * 2010-12-31 2011-08-03 珠海金山办公软件有限公司 Drawing device and method

Also Published As

Publication number Publication date
CN102141884B (en) 2014-01-01
CN102141884A (en) 2011-08-03

Similar Documents

Publication Publication Date Title
US10887546B2 (en) Display apparatus and control methods thereof
JP4389090B2 (en) Information display device
US20140009415A1 (en) Display device and control method therefor
JP2011258143A (en) Touch panel device
JPS5994174A (en) Display controlling device
CN102006379B (en) Image forming apparatus and image forming method
JPH10269022A (en) Portable information processor with communication function
WO2016167213A1 (en) Program for improving operability of user input, electronic device, and method
WO2016173013A1 (en) Method for implementing control of display of highlighted area on display
CN105807999B (en) Method for inputting handwritten information to display device through handwriting device
CN107656792A (en) Method for displaying user interface, device and terminal
CN103455292A (en) Business data display and processing method and device and user equipment
US9471150B1 (en) Optimized gestures for zoom functionality on touch-based device
US8643679B2 (en) Storage medium storing image conversion program and image conversion apparatus
WO2012089167A1 (en) Drawing device and drawing method
CN104516654B (en) operation processing method and device
US20170255374A1 (en) Multi-screen display position exchange method, information processing apparatus, and control method and control program of information processing apparatus
JP2002091676A (en) Input device
TW201915710A (en) Display device and image display method thereof based on Android platform
JP6579905B2 (en) Information processing apparatus, display control method for information processing apparatus, and program
JP2010271855A (en) Drawing device, drawing method, program and recording medium
JP6199639B2 (en) Table type input display device
JP6487506B2 (en) Input display device
JP2009103942A (en) Display
WO2018045685A1 (en) Picture display method and device

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

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

Country of ref document: EP

Kind code of ref document: A1