CN110187810B - Drawing method and terminal equipment - Google Patents
Drawing method and terminal equipment Download PDFInfo
- Publication number
- CN110187810B CN110187810B CN201910446626.8A CN201910446626A CN110187810B CN 110187810 B CN110187810 B CN 110187810B CN 201910446626 A CN201910446626 A CN 201910446626A CN 110187810 B CN110187810 B CN 110187810B
- Authority
- CN
- China
- Prior art keywords
- color
- pressure value
- fingerprint information
- fingerprint
- input
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0481—Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
- G06F3/0482—Interaction with lists of selectable items, e.g. menus
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0484—Interaction 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/04845—Interaction 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
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0487—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
- G06F3/0488—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T11/00—2D [Two Dimensional] image generation
- G06T11/001—Texturing; Colouring; Generation of texture or colour
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T11/00—2D [Two Dimensional] image generation
- G06T11/20—Drawing from basic elements, e.g. lines or circles
- G06T11/203—Drawing of straight lines or curves
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V40/00—Recognition of biometric, human-related or animal-related patterns in image or video data
- G06V40/10—Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
- G06V40/12—Fingerprints or palmprints
- G06V40/1365—Matching; Classification
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Human Computer Interaction (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The invention provides a drawing method and terminal equipment, wherein the method comprises the following steps: receiving a first input of a user on a screen; identifying first fingerprint information and second fingerprint information included by the first input; tracking the running track of the first input under the condition that a first painting brush control bound with the first fingerprint information is preset and under the condition that a second painting brush control bound with the second fingerprint information is preset, and drawing in a first color and a second color; the first color is a color corresponding to the first brush control, and the second color is a color corresponding to the second brush control. Therefore, the drawing pen control is bound through the fingerprint information, the running track of the first input is tracked, drawing is carried out in the first color and the second color, and therefore operation of a user is simplified in the drawing process.
Description
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a drawing method and a terminal device.
Background
With the rapid development of terminal technology, terminal equipment has become an essential tool in people's life, and brings great convenience to various aspects of user's life. Many drawing-type applications may exist on the terminal device, and the user may draw some graphics using the drawing-type applications. The user may need to use a brush to a certain color during the drawing of the graphics. At this time, the user needs to select a certain color brush first to draw with the color brush.
Therefore, in the prior art, the operation of the user in the process of drawing by using the terminal device is complicated.
Disclosure of Invention
The embodiment of the invention provides a drawing method and terminal equipment, and aims to solve the problem that the operation of a user is complex in the process of drawing by using the terminal equipment.
In a first aspect, an embodiment of the present invention provides a drawing method, including:
receiving a first input of a user on a screen;
identifying first fingerprint information and second fingerprint information included by the first input;
tracking the running track of the first input under the condition that a first painting brush control bound with the first fingerprint information is preset and under the condition that a second painting brush control bound with the second fingerprint information is preset, and drawing in a first color and a second color;
the first color is a color corresponding to the first brush control, and the second color is a color corresponding to the second brush control.
In a second aspect, an embodiment of the present invention further provides a terminal device, including:
the receiving module is used for receiving a first input of a user on a screen;
the identification module is used for identifying first fingerprint information and second fingerprint information included by the first input;
the drawing module is used for tracking the running track of the first input under the condition that a first painting brush control bound with the first fingerprint information is preset and under the condition that a second painting brush control bound with the second fingerprint information is preset, and drawing in a first color and a second color;
the first color is a color corresponding to the first brush control, and the second color is a color corresponding to the second brush control.
In a third aspect, an embodiment of the present invention further provides a terminal device, including a processor, a memory, and a computer program stored on the memory and operable on the processor, where the computer program, when executed by the processor, implements the steps of the above-mentioned drawing method.
In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the above-mentioned drawing method are implemented.
In the embodiment of the invention, a first input of a user on a screen is received; identifying first fingerprint information and second fingerprint information included by the first input; tracking the running track of the first input under the condition that a first painting brush control bound with the first fingerprint information is preset and under the condition that a second painting brush control bound with the second fingerprint information is preset, and drawing in a first color and a second color; the first color is a color corresponding to the first brush control, and the second color is a color corresponding to the second brush control. Therefore, the drawing pen control is bound through the fingerprint information, the running track of the first input is tracked, drawing is carried out in the first color and the second color, and therefore operation of a user is simplified in the drawing process.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments of the present invention will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without inventive exercise.
FIG. 1 is a flow chart of a mapping method according to an embodiment of the present invention;
fig. 2 is one of display diagrams of a terminal device according to an embodiment of the present invention;
fig. 3 is a second schematic display diagram of the terminal device according to the embodiment of the present invention;
fig. 4 is a third schematic display diagram of a terminal device according to an embodiment of the present invention;
fig. 5 is a fourth schematic display diagram of a terminal device according to an embodiment of the present invention;
fig. 6 is a fifth schematic display diagram of a terminal device according to an embodiment of the present invention;
fig. 7 is a sixth schematic display diagram of a terminal device according to an embodiment of the present invention;
fig. 8 is a seventh schematic display diagram of a terminal device provided in the embodiment of the present invention;
FIG. 9 is a second flowchart of a drawing method according to an embodiment of the present invention;
fig. 10 is an eighth schematic display diagram of a terminal device according to an embodiment of the present invention;
fig. 11 is a ninth view of a display diagram of a terminal device according to an embodiment of the present invention;
fig. 12 is a tenth illustrative view of a display of a terminal device according to an embodiment of the present invention;
fig. 13 is an eleventh view of a display diagram of a terminal device according to an embodiment of the present invention;
fig. 14 is a twelve schematic display diagram of a terminal device according to an embodiment of the present invention;
fig. 15 is a thirteen schematic display diagram of the terminal device according to the embodiment of the present invention;
fig. 16 is one of the structural diagrams of the terminal device provided by the embodiment of the present invention;
fig. 17 is a structural diagram of a drawing module of a terminal device according to an embodiment of the present invention;
fig. 18 is a second structural diagram of a terminal device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, fig. 1 is a flowchart of a drawing method according to an embodiment of the present invention, as shown in fig. 1, including the following steps:
In this embodiment, the first input may be a one-click input, or a one-slide input. And, receiving the first input of the user on the screen may be receiving the first input of the user on a drawing pad of the screen.
In this embodiment, the first input is input by a user using two fingers. Thus, two fingerprint information, i.e., the above-mentioned first fingerprint information and the above-mentioned second fingerprint information, may be generated after the first input.
103, tracking the running track of the first input under the condition that a first brush control bound with the first fingerprint information is preset and under the condition that a second brush control bound with the second fingerprint information is preset, and drawing with a first color and a second color; the first color is a color corresponding to the first brush control, and the second color is a color corresponding to the second brush control.
In this embodiment, set up first fingerprint information and bind with first painting brush control, the in-process that second fingerprint information and second painting brush control bound, different painting brush controls need bind by different fingerprint information, but the same painting brush control can bind two at least different fingerprint information.
For example: the fingerprint information of the index finger can be bound with a red painting brush control, and the fingerprint information of the middle finger can be bound with a blue painting brush control; or the fingerprint information of the index finger can be bound with a red brush control, and the fingerprint information of the middle finger and the ring finger can be bound with a blue brush control.
In this embodiment, the tracing the moving track of the first input and drawing with the first color and the second color may be performed by separating the first color and the second color, or by mixing the first color and the second color.
In this embodiment, in order to better understand the process of setting the binding between the fingerprint information and the brush control in advance, reference may be made to fig. 2 to 4, and fig. 2 to 4 are display schematic diagrams of the terminal device provided by the embodiment of the present invention.
First, as shown in FIG. 2, the option to bind multiple fingerprints may appear after the user has long pressed a certain brush control. Clicking on this option may present a fingerprint entry area, at which point the user may press a number of different fingers to the corresponding fingerprint area, as shown in fig. 3. After entering the fingerprint, the entered fingerprint may be displayed around the corresponding brush control, which may be as shown in fig. 4.
In this way, the user can draw by using the first brush control bound by the first fingerprint information and the second brush control bound by the second fingerprint information. And when a certain color of brush control is needed, the user can also directly use the corresponding finger to draw on the drawing board. The first painting brush control bound by the first fingerprint information and the second painting brush control bound by the second fingerprint information are used for drawing, so that the process that a user selects a painting brush is omitted, and the user can draw more conveniently in the process of using the terminal equipment.
Optionally, a third color bound to the first fingerprint information or the second fingerprint information is preset, and drawing with the first color and the second color includes:
and drawing by using a mixed color, wherein the mixed color is obtained by mixing the first color, the second color and the third color, and the proportion of the third color in the mixed color is in positive correlation with the pressure value of the first input.
In this embodiment, the third color may be bound to the first fingerprint information, or may be bound to the second fingerprint information. When the third color is bound to the first fingerprint information, the pressure value of the first input may be a pressure value generated by pressing of a finger that inputs the first fingerprint information; when the third color is bound to the second fingerprint information, the pressure value of the first input may be a pressure value generated by pressing a finger that inputs the second fingerprint information. Of course, the pressure value of the first input may be an average pressure value of two fingers, and so on.
For better understanding of the above process, please refer to fig. 5 to 8, and fig. 5 to 8 are schematic display diagrams of the terminal device according to the embodiment of the present invention. Pressing the button which has started the pressing mode for a long time can present a pressing color change option, and the user-defined pressing color setting is completed after the user selects the color which the user wants to need, wherein the pressing color is the third color. After the setting, the two fingers can draw by using mixed colors, the mixed colors are colors obtained by mixing the first color, the second color and the third color, and the proportion of the third color in the mixed colors is in positive correlation with the pressure value of the first input.
In this embodiment, the first fingerprint information or the second fingerprint information may further be bound with a third color, and the first input operation trajectory may be tracked, and the drawing may be performed with the mixed color, so that the color display effect is more diversified. And the proportion of the third color in the mixed color can be adjusted by directly inputting with different pressures by a user, so that the operation of the user is more convenient.
In this embodiment, the terminal Device may be a Mobile phone, a Tablet Personal Computer (Tablet Personal Computer), a Laptop Computer (Laptop Computer), a Personal Digital Assistant (PDA), a Mobile Internet Device (MID), a Wearable Device (Wearable Device), or the like.
The drawing method of the embodiment of the invention receives a first input of a user on a screen; identifying first fingerprint information and second fingerprint information included by the first input; tracking the running track of the first input under the condition that a first painting brush control bound with the first fingerprint information is preset and under the condition that a second painting brush control bound with the second fingerprint information is preset, and drawing in a first color and a second color; the first color is a color corresponding to the first brush control, and the second color is a color corresponding to the second brush control. Therefore, the drawing pen control is bound through the fingerprint information, the running track of the first input is tracked, drawing is carried out in the first color and the second color, and therefore operation of a user is simplified in the drawing process.
Referring to fig. 9, fig. 9 is a flowchart of a drawing method according to an embodiment of the present invention. The main difference between this embodiment and the previous embodiment is that in this method the drawing mode is determined according to the distance between the position of the first fingerprint and the position of the second fingerprint. As shown in fig. 9, the method includes the steps of:
In this embodiment, the first input may be a one-click input, or a one-slide input. And, receiving the first input of the user on the screen may be receiving the first input of the user on a drawing pad of the screen.
In this embodiment, the first input is input by a user using two fingers. Thus, two fingerprint information, i.e., the above-mentioned first fingerprint information and the above-mentioned second fingerprint information, may be generated after the first input.
In this embodiment, in order to better understand that when the distance between the position of the first fingerprint and the position of the second fingerprint on the screen is greater than or equal to the preset distance threshold, the first color and the second color are separately plotted, refer to fig. 10, where fig. 10 is a schematic display diagram of a terminal device according to an embodiment of the present invention.
As shown in fig. 10, different brush controls are respectively bound to the fingerprint information of two fingers, and when a distance between a position of a first fingerprint and a position of a second fingerprint on the screen is greater than or equal to a preset distance threshold, the first color and the second color are separately plotted. Of course, the first-brush control and the second-brush control may also be highlighted.
In this embodiment, in order to better understand that the first color and the second color are mixed to draw a graph under the condition that the distance between the position of the first fingerprint and the position of the second fingerprint on the screen is smaller than the preset distance threshold, refer to fig. 11 to 14, where fig. 11 to 14 are display schematic diagrams of the terminal device provided by the embodiment of the present invention.
When two fingers are combined and tightly attached to a touch screen for drawing, if the fingerprint information is respectively bound with different brush pen controls, and the brush pen mixed mode is started, effect fusion is carried out on a plurality of colors corresponding to the brush pen controls bound with the fingerprint information, so that rich brush pen effects are achieved. The mixed mode has multiple effects to select, and the user can adjust the mixed mode required by the user according to the requirement of the user. Firstly, confirming that the fingerprint information of two fingers is bound with a brush control A (a first brush control) and a brush control B (a second brush control), and then selecting a required mixed mode after opening the mixed mode.
As shown in fig. 11, if the user selects the hybrid mode, the brush corresponding to the brush control a and the brush corresponding to the brush control B are drawn in parallel along the direction of the brush stroke. As shown in fig. 12, if the user selects the inside-outside mixed mode, the brush corresponding to the brush control a will be drawn along the direction of the brush by wrapping the brush corresponding to the brush control B. As shown in fig. 13, if the user selects such a blending mode alternately, the brush corresponding to the brush control a and the brush corresponding to the brush control B are switched alternately to draw along the direction of the brush. As shown in fig. 14, if the user selects the gradient mode, the brush corresponding to the brush control a wraps the brush corresponding to the brush control B at the same time, and the middle of the brush is transited by the gradient color, and the brush is drawn along the direction of the brush touch.
Of course, when two pieces of fingerprint information are bound to the same brush control, reference may be made to fig. 15 at this time, and fig. 15 is a display schematic diagram of the terminal device according to the embodiment of the present invention. As shown in fig. 15, two fingers are combined together to draw, and the touch screen respectively identifies the fingerprint information and the corresponding brush control, which may be highlighted.
In this embodiment, operate through many fingers and provide more various drawing operation modes for the user, the user can use the fingerprint information of many fingers to bind other painting brush controlling parts, also can carry out fast switch over when letting the user want to draw with more painting brush controlling parts. In addition, a brush mixing mode is provided, so that a user can quickly and automatically fuse richer brush effects according to the set brush mixing setting.
Optionally, when a distance between a position of a first fingerprint and a position of a second fingerprint on the screen is greater than or equal to a preset distance threshold, the saturation of the first color is in a positive correlation with a first pressure value, and the brightness of the first color is in an inverse correlation with the first pressure value; the saturation of the second color is in positive correlation with a second pressure value, and the brightness of the second color is in inverse correlation with the second pressure value;
the first pressure value is a pressure value for inputting the first fingerprint information, and the second pressure value is a pressure value for inputting the second fingerprint information.
In this embodiment, the saturation of the first color is in a positive correlation with the first pressure value, which indicates that the saturation of the first color is larger as the first pressure value is larger. The brightness of the first color is in an inverse correlation relation with the first pressure value, which shows that the larger the first pressure value is, the lower the brightness of the first color is.
In this embodiment, the saturation of the second color is in a positive correlation with the second pressure value, which indicates that the saturation of the second color is larger as the second pressure value is larger. The brightness of the second color is in an inverse correlation relation with the second pressure value, which shows that the larger the second pressure value is, the lower the brightness of the second color is.
The adjustment of the saturation and brightness of the color according to the pressure may be performed for the middle portion of each color. And when the user presses the brush control bound with the fingerprint information for a long time, the pressing mode can be started. In the pressing mode, the color of the middle part of the brush control can increase in saturation and decrease in brightness on the basis that the color corresponding to the brush control is bound to the fingerprint information of the pressing finger along with the increase of the pressing force of the user. The larger the pressing force degree is, the more obvious the change is, then the color gradually changes from two sides to the middle, the touch control process looks like drawing with force, the larger the force degree is, the more obvious the effect is, and the process is suitable for the first color and the second color.
In this embodiment, the saturation of the first color is in a positive correlation with a first pressure value, and the brightness of the first color is in an inverse correlation with the first pressure value; the saturation of the second color is in positive correlation with a second pressure value, and the brightness of the second color is in inverse correlation with the second pressure value. Therefore, the process that the user selects the colors with different brightness or the colors with different saturation can be saved, and the operation of the user is more convenient.
Optionally, when a distance between the position of the first fingerprint and the position of the second fingerprint on the screen is smaller than the preset distance threshold, a proportion of the first color in the mixed color is in a positive correlation with a third pressure value, and a proportion of the second color in the mixed color is in a positive correlation with a fourth pressure value;
the mixed color is obtained by mixing the first color and the second color, the third pressure value is a pressure value of the input first fingerprint information, and the fourth pressure value is a pressure value of the input second fingerprint information.
In this embodiment, the user may determine the color ratio by controlling the pressure value of the first fingerprint information and the pressure value of the second fingerprint information. When a user needs a first color with a large proportion in the mixed color, the pressure value for inputting the first fingerprint information can be controlled to be relatively large; when the user needs a larger proportion of the second color in the mixed color, the pressure value for inputting the second fingerprint information can be controlled to be relatively larger. Therefore, the proportion of different colors in the mixed color can be quickly adjusted, the user can also dynamically adjust the mixed color in the drawing process, the mixed color can be changed more variously only by controlling the pressure values of different fingers.
Referring to fig. 16, fig. 16 is a structural diagram of a terminal device according to an embodiment of the present invention, which can implement details of the drawing method in the foregoing embodiment and achieve the same effect. As shown in fig. 16, the terminal device 1600 includes a receiving module 1601, an identifying module 1602, and a drawing module 1603, where the receiving module 1601 is connected to the identifying module 1602, and the identifying module 1602 is connected to the drawing module 1603, where:
a receiving module 1601, configured to receive a first input of a user on a screen;
an identifying module 1602, configured to identify first fingerprint information and second fingerprint information included in the first input;
a drawing module 1603, configured to track a running trajectory of the first input and draw in a first color and a second color under a condition that a first brush control bound to the first fingerprint information is preset and a second brush control bound to the second fingerprint information is preset;
the first color is a color corresponding to the first brush control, and the second color is a color corresponding to the second brush control.
Optionally, as shown in fig. 17, the drawing module 1603 includes:
a first drawing submodule 16031, configured to draw the first color and the second color separately when a distance between a position of a first fingerprint and a position of a second fingerprint on the screen is greater than or equal to a preset distance threshold;
a second drawing sub-module 16032, configured to mix the first color and the second color for drawing when a distance between a position of the first fingerprint and a position of the second fingerprint on the screen is smaller than the preset distance threshold.
Optionally, when a distance between a position of a first fingerprint and a position of a second fingerprint on the screen is greater than or equal to a preset distance threshold, the saturation of the first color is in a positive correlation with a first pressure value, and the brightness of the first color is in an inverse correlation with the first pressure value; the saturation of the second color is in positive correlation with a second pressure value, and the brightness of the second color is in inverse correlation with the second pressure value;
the first pressure value is a pressure value for inputting the first fingerprint information, and the second pressure value is a pressure value for inputting the second fingerprint information.
Optionally, when a distance between the position of the first fingerprint and the position of the second fingerprint on the screen is smaller than the preset distance threshold, a proportion of the first color in the mixed color is in a positive correlation with a third pressure value, and a proportion of the second color in the mixed color is in a positive correlation with a fourth pressure value;
the mixed color is obtained by mixing the first color and the second color, the third pressure value is a pressure value of the input first fingerprint information, and the fourth pressure value is a pressure value of the input second fingerprint information.
Optionally, a third color bound to the first fingerprint information or the second fingerprint information is preset, and the drawing module 1603 is configured to: and drawing by using a mixed color, wherein the mixed color is obtained by mixing the first color, the second color and the third color, and the proportion of the third color in the mixed color is in positive correlation with the pressure value of the first input.
The terminal device 1600 of the embodiment of the present invention includes a receiving module 1601 configured to receive a first input of a user on a screen; an identifying module 1602, configured to identify first fingerprint information and second fingerprint information included in the first input; a drawing module 1603, configured to track a running trajectory of the first input and draw in a first color and a second color under a condition that a first brush control bound to the first fingerprint information is preset and a second brush control bound to the second fingerprint information is preset; the first color is a color corresponding to the first brush control, and the second color is a color corresponding to the second brush control. Therefore, the drawing pen control is bound through the fingerprint information, the running track of the first input is tracked, drawing is carried out in the first color and the second color, and therefore operation of a user is simplified in the drawing process.
Referring to fig. 18, fig. 18 is a schematic diagram of a hardware structure of a terminal device for implementing various embodiments of the present invention, where the terminal device 1800 includes, but is not limited to: radio frequency unit 1801, network module 1802, audio output unit 1803, input unit 1804, sensors 1805, display unit 1806, user input unit 1807, interface unit 1808, memory 1809, processor 1810, and power supply 1811. Those skilled in the art will appreciate that the terminal device configuration shown in fig. 18 does not constitute a limitation of the terminal device, and that the terminal device may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components. In the embodiment of the present invention, the terminal device includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like.
The processor 1810 is configured to control the user input unit 1807 to receive a first input of a user on a screen; identifying first fingerprint information and second fingerprint information included by the first input; tracking the running track of the first input under the condition that a first painting brush control bound with the first fingerprint information is preset and under the condition that a second painting brush control bound with the second fingerprint information is preset, and drawing in a first color and a second color; the first color is a color corresponding to the first brush control, and the second color is a color corresponding to the second brush control. Therefore, the drawing pen control is bound through the fingerprint information, the running track of the first input is tracked, drawing is carried out in the first color and the second color, and therefore operation of a user is simplified in the drawing process.
Optionally, the processor 1810 is further configured to, when a distance between a position of a first fingerprint and a position of a second fingerprint on the screen is greater than or equal to a preset distance threshold, map the first color and the second color separately; and under the condition that the distance between the position of the first fingerprint and the position of the second fingerprint on the screen is smaller than the preset distance threshold, mixing the first color and the second color for drawing.
Optionally, when a distance between a position of a first fingerprint and a position of a second fingerprint on the screen is greater than or equal to a preset distance threshold, the saturation of the first color is in a positive correlation with a first pressure value, and the brightness of the first color is in an inverse correlation with the first pressure value; the saturation of the second color is in positive correlation with a second pressure value, and the brightness of the second color is in inverse correlation with the second pressure value; the first pressure value is a pressure value for inputting the first fingerprint information, and the second pressure value is a pressure value for inputting the second fingerprint information.
Optionally, when a distance between the position of the first fingerprint and the position of the second fingerprint on the screen is smaller than the preset distance threshold, a proportion of the first color in the mixed color is in a positive correlation with a third pressure value, and a proportion of the second color in the mixed color is in a positive correlation with a fourth pressure value; the mixed color is obtained by mixing the first color and the second color, the third pressure value is a pressure value of the input first fingerprint information, and the fourth pressure value is a pressure value of the input second fingerprint information.
Optionally, a third color bound to the first fingerprint information or the second fingerprint information is preset, and the processor 1810 is further configured to draw with a mixed color, where the mixed color is a color obtained by mixing the first color, the second color, and the third color, and a proportion of the third color in the mixed color is in a positive correlation with the first input pressure value.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 1801 may be used for receiving and sending signals during a message sending and receiving process or a call process, and specifically, receives downlink data from a base station and then processes the received downlink data to the processor 1810; in addition, the uplink data is transmitted to the base station. Generally, the radio frequency unit 1801 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 1801 may also communicate with a network and other devices through a wireless communication system.
The terminal device provides wireless broadband internet access to the user through the network module 1802, such as helping the user send and receive e-mails, browse web pages, and access streaming media.
The audio output unit 1803 may convert audio data received by the radio frequency unit 1801 or the network module 1802 or stored in the memory 1809 into an audio signal and output as sound. Also, the audio output unit 1803 may also provide audio output related to a specific function performed by the terminal apparatus 1800 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 1803 includes a speaker, a buzzer, a receiver, and the like.
The input unit 1804 is used to receive audio or video signals. The input Unit 1804 may include a Graphics Processing Unit (GPU) 18041 and a microphone 18042, and the Graphics processor 18041 processes image data of a still picture or video obtained by an image capturing device (e.g., a camera) in a video capture mode or an image capture mode. The processed image frames may be displayed on the display unit 1806. The image frames processed by the graphics processor 18041 may be stored in the memory 1809 (or other storage medium) or transmitted via the radio frequency unit 1801 or the network module 1802. The microphone 18042 may receive sound and may be capable of processing such sound into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 1801 in case of the phone call mode.
The terminal device 1800 further comprises at least one sensor 1805, such as light sensors, motion sensors and other sensors. Specifically, the light sensor includes an ambient light sensor that adjusts the brightness of the display panel 18061 according to the brightness of ambient light, and a proximity sensor that turns off the display panel 18061 and/or the backlight when the terminal device 1800 is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the terminal device posture (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration identification related functions (such as pedometer, tapping), and the like; the sensors 1805 may also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which are not described in detail herein.
The display unit 1806 is used to display information input by the user or information provided to the user. The Display unit 1806 may include a Display panel 18061, and the Display panel 18061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 1807 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the terminal device. Specifically, the user input unit 1807 includes a touch panel 18071 and other input devices 18072. The touch panel 18071, also referred to as a touch screen, may collect touch operations by a user on or near the touch panel 18071 (e.g., operations by a user on or near the touch panel 18071 using a finger, a stylus, or any other suitable object or attachment). The touch panel 18071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, and sends the touch point coordinates to the processor 1810, receives a command from the processor 1810, and executes the command. In addition, the touch panel 18071 may be implemented by various types, such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. The user input unit 1807 may include other input devices 18072 in addition to the touch panel 18071. Specifically, the other input devices 18072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described herein again.
Further, the touch panel 18071 may be overlaid on the display panel 18061, and when the touch panel 18071 detects a touch operation on or near the touch panel 18071, the touch operation is transmitted to the processor 1810 to determine the type of the touch event, and then the processor 1810 provides a corresponding visual output on the display panel 18061 according to the type of the touch event. Although the touch panel 18071 and the display panel 18061 are shown in fig. 18 as two separate components to implement the input and output functions of the terminal device, in some embodiments, the touch panel 18071 and the display panel 18061 may be integrated to implement the input and output functions of the terminal device, and this is not limited herein.
The interface unit 1808 is an interface for connecting an external device to the terminal apparatus 1800. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 1808 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the terminal apparatus 1800 or may be used to transmit data between the terminal apparatus 1800 and the external device.
The memory 1809 may be used to store software programs as well as various data. The memory 1809 may mainly include a program storage area and a data storage area, where the program storage area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 1809 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device.
The processor 1810 is a control center of the terminal device, connects various parts of the whole terminal device by using various interfaces and lines, and performs various functions of the terminal device and processes data by running or executing software programs and/or modules stored in the memory 1809 and calling data stored in the memory 1809, thereby performing overall monitoring of the terminal device. Processor 1810 may include one or more processing units; preferably, the processor 1810 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It is to be appreciated that the modem processor described above may not be integrated into processor 1810.
The terminal device 1800 may further include a power supply 1811 (e.g., a battery) for supplying power to various components, and preferably, the power supply 1811 may be logically connected to the processor 1810 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system.
In addition, the terminal device 1800 includes some functional modules that are not shown, and are not described in detail herein.
Preferably, an embodiment of the present invention further provides a terminal device, which includes a processor 1810, a memory 1809, and a computer program that is stored in the memory 1809 and is executable on the processor 1810, and when the computer program is executed by the processor 1810, the computer program implements each process of the above-described drawing method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not described here again.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process of the above-mentioned drawing method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.
Claims (7)
1. A method of mapping, comprising:
receiving a first input of a user on a screen;
identifying first fingerprint information and second fingerprint information included by the first input;
tracking the running track of the first input under the condition that a first painting brush control bound with the first fingerprint information is preset and under the condition that a second painting brush control bound with the second fingerprint information is preset, and drawing in a first color and a second color;
the first color is a color corresponding to the first brush control, and the second color is a color corresponding to the second brush control;
the drawing in a first color and a second color comprising:
under the condition that the distance between the position of a first fingerprint and the position of a second fingerprint on the screen is larger than or equal to a preset distance threshold, drawing the first color and the second color in an isolated mode;
mixing the first color and the second color for drawing when the distance between the position of the first fingerprint and the position of the second fingerprint on the screen is smaller than the preset distance threshold;
under the condition that the distance between the position of the first fingerprint and the position of the second fingerprint on the screen is larger than or equal to a preset distance threshold, the saturation of the first color is in positive correlation with a first pressure value, and the brightness of the first color is in inverse correlation with the first pressure value; the saturation of the second color is in positive correlation with a second pressure value, and the brightness of the second color is in inverse correlation with the second pressure value;
the first pressure value is a pressure value for inputting the first fingerprint information, and the second pressure value is a pressure value for inputting the second fingerprint information.
2. The method according to claim 1, wherein, in a case that the distance between the position of the first fingerprint and the position of the second fingerprint on the screen is smaller than the preset distance threshold, the proportion of the first color in the mixed color is in positive correlation with a third pressure value, and the proportion of the second color in the mixed color is in positive correlation with a fourth pressure value;
the mixed color is obtained by mixing the first color and the second color, the third pressure value is a pressure value of the input first fingerprint information, and the fourth pressure value is a pressure value of the input second fingerprint information.
3. The method according to claim 1, wherein a third color bound with the first fingerprint information or the second fingerprint information is preset, and the drawing in the first color and the second color comprises:
and drawing by using a mixed color, wherein the mixed color is obtained by mixing the first color, the second color and the third color, and the proportion of the third color in the mixed color is in positive correlation with the pressure value of the first input.
4. A terminal device, comprising:
the receiving module is used for receiving a first input of a user on a screen;
the identification module is used for identifying first fingerprint information and second fingerprint information included by the first input;
the drawing module is used for tracking the running track of the first input under the condition that a first painting brush control bound with the first fingerprint information is preset and under the condition that a second painting brush control bound with the second fingerprint information is preset, and drawing in a first color and a second color;
the first color is a color corresponding to the first brush control, and the second color is a color corresponding to the second brush control;
the drawing module comprises:
the first drawing submodule is used for drawing the first color and the second color in an isolated mode under the condition that the distance between the position of the first fingerprint and the position of the second fingerprint on the screen is larger than or equal to a preset distance threshold;
the second drawing submodule is used for mixing the first color and the second color for drawing under the condition that the distance between the position of the first fingerprint and the position of the second fingerprint on the screen is smaller than the preset distance threshold;
under the condition that the distance between the position of the first fingerprint and the position of the second fingerprint on the screen is larger than or equal to a preset distance threshold, the saturation of the first color is in positive correlation with a first pressure value, and the brightness of the first color is in inverse correlation with the first pressure value; the saturation of the second color is in positive correlation with a second pressure value, and the brightness of the second color is in inverse correlation with the second pressure value;
the first pressure value is a pressure value for inputting the first fingerprint information, and the second pressure value is a pressure value for inputting the second fingerprint information.
5. The terminal device according to claim 4, wherein in a case where a distance between the position of the first fingerprint and the position of the second fingerprint on the screen is smaller than the preset distance threshold, a proportion of the first color in a mixed color is in a positive correlation with a third pressure value, and a proportion of the second color in the mixed color is in a positive correlation with a fourth pressure value;
the mixed color is obtained by mixing the first color and the second color, the third pressure value is a pressure value of the input first fingerprint information, and the fourth pressure value is a pressure value of the input second fingerprint information.
6. The terminal device according to claim 4, wherein a third color bound to the first fingerprint information or the second fingerprint information is preset, and the drawing module is configured to: and drawing by using a mixed color, wherein the mixed color is obtained by mixing the first color, the second color and the third color, and the proportion of the third color in the mixed color is in positive correlation with the pressure value of the first input.
7. A terminal device, characterized in that it comprises a processor, a memory and a computer program stored on said memory and executable on said processor, said computer program, when executed by said processor, implementing the steps of the drawing method according to any one of claims 1 to 3.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910446626.8A CN110187810B (en) | 2019-05-27 | 2019-05-27 | Drawing method and terminal equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910446626.8A CN110187810B (en) | 2019-05-27 | 2019-05-27 | Drawing method and terminal equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110187810A CN110187810A (en) | 2019-08-30 |
CN110187810B true CN110187810B (en) | 2020-10-16 |
Family
ID=67718016
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910446626.8A Active CN110187810B (en) | 2019-05-27 | 2019-05-27 | Drawing method and terminal equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110187810B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114816135B (en) * | 2021-09-16 | 2023-11-03 | 华为技术有限公司 | Cross-device drawing system |
Citations (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20120182271A1 (en) * | 2011-01-13 | 2012-07-19 | Fong-Gong Wu | Digital painting pen, digital painting system and manipulating method thereof |
CN103024354A (en) * | 2012-12-11 | 2013-04-03 | 华为技术有限公司 | Method and device for color matching |
CN103345364A (en) * | 2013-07-09 | 2013-10-09 | 广东欧珀移动通信有限公司 | Electronic hand drawing method and system |
CN103793174A (en) * | 2014-02-11 | 2014-05-14 | 厦门美图网科技有限公司 | Scrawling method for image |
CN103810736A (en) * | 2012-11-02 | 2014-05-21 | 纬创资通股份有限公司 | Touch system and drawing method thereof |
CN104063699A (en) * | 2014-07-03 | 2014-09-24 | 南昌欧菲生物识别技术有限公司 | Mobile terminal and method of the mobile terminal for painting through fingerprint identification |
CN104220971A (en) * | 2012-02-13 | 2014-12-17 | 三星电子株式会社 | Tablet having user interface |
CN105653184A (en) * | 2015-11-27 | 2016-06-08 | 东莞酷派软件技术有限公司 | Drawing control method, apparatus and mobile terminal |
CN106468374A (en) * | 2015-08-17 | 2017-03-01 | 霍尼韦尔国际公司 | System for valve setting |
US20180000468A1 (en) * | 2016-06-29 | 2018-01-04 | DePuy Synthes Products, Inc. | Systems and methods for manufacturing custom surgical instruments |
CN107797722A (en) * | 2016-09-07 | 2018-03-13 | 中兴通讯股份有限公司 | Touch screen icon selection method and device |
CN109375854A (en) * | 2018-09-26 | 2019-02-22 | Oppo(重庆)智能科技有限公司 | Drawing practice, device, storage medium and electronic equipment |
-
2019
- 2019-05-27 CN CN201910446626.8A patent/CN110187810B/en active Active
Patent Citations (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20120182271A1 (en) * | 2011-01-13 | 2012-07-19 | Fong-Gong Wu | Digital painting pen, digital painting system and manipulating method thereof |
CN104220971A (en) * | 2012-02-13 | 2014-12-17 | 三星电子株式会社 | Tablet having user interface |
CN103810736A (en) * | 2012-11-02 | 2014-05-21 | 纬创资通股份有限公司 | Touch system and drawing method thereof |
CN103024354A (en) * | 2012-12-11 | 2013-04-03 | 华为技术有限公司 | Method and device for color matching |
CN103345364A (en) * | 2013-07-09 | 2013-10-09 | 广东欧珀移动通信有限公司 | Electronic hand drawing method and system |
CN103793174A (en) * | 2014-02-11 | 2014-05-14 | 厦门美图网科技有限公司 | Scrawling method for image |
CN104063699A (en) * | 2014-07-03 | 2014-09-24 | 南昌欧菲生物识别技术有限公司 | Mobile terminal and method of the mobile terminal for painting through fingerprint identification |
CN106468374A (en) * | 2015-08-17 | 2017-03-01 | 霍尼韦尔国际公司 | System for valve setting |
CN105653184A (en) * | 2015-11-27 | 2016-06-08 | 东莞酷派软件技术有限公司 | Drawing control method, apparatus and mobile terminal |
US20180000468A1 (en) * | 2016-06-29 | 2018-01-04 | DePuy Synthes Products, Inc. | Systems and methods for manufacturing custom surgical instruments |
CN107797722A (en) * | 2016-09-07 | 2018-03-13 | 中兴通讯股份有限公司 | Touch screen icon selection method and device |
CN109375854A (en) * | 2018-09-26 | 2019-02-22 | Oppo(重庆)智能科技有限公司 | Drawing practice, device, storage medium and electronic equipment |
Non-Patent Citations (2)
Title |
---|
基于指尖信息的手势识别与人机交互应用研究;谈家谱;《中国优秀硕士学位论文全文数据库 信息科技辑》;20160715;全文 * |
基于颜色识别的手指多点跟踪人机交互系统;王鹏程等;《微型机与应用》;20121231;第31卷(第1期);全文 * |
Also Published As
Publication number | Publication date |
---|---|
CN110187810A (en) | 2019-08-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108182019B (en) | Suspension control display processing method and mobile terminal | |
CN107835321B (en) | Incoming call processing method and mobile terminal | |
CN107817939B (en) | Image processing method and mobile terminal | |
CN108495029B (en) | Photographing method and mobile terminal | |
CN110413168B (en) | Icon management method and terminal | |
CN109361867B (en) | Filter processing method and mobile terminal | |
CN108279948B (en) | Application program starting method and mobile terminal | |
CN108628565B (en) | Mobile terminal operation method and mobile terminal | |
CN109213407B (en) | Screenshot method and terminal equipment | |
CN107728923B (en) | Operation processing method and mobile terminal | |
CN110531915B (en) | Screen operation method and terminal equipment | |
CN110196668B (en) | Information processing method and terminal equipment | |
CN108132749B (en) | Image editing method and mobile terminal | |
CN110806832A (en) | Parameter adjusting method and electronic equipment | |
CN111240545A (en) | Application switching method and electronic equipment | |
CN109710130B (en) | Display method and terminal | |
CN111638817A (en) | Target object display method and electronic equipment | |
CN109521937B (en) | Screen display control method and mobile terminal | |
CN111522613B (en) | Screen capturing method and electronic equipment | |
CN111475066B (en) | Background switching method of application program and electronic equipment | |
CN109240575A (en) | A kind of screen control method and electronic equipment | |
CN109462727B (en) | Filter adjusting method and mobile terminal | |
CN110007821B (en) | Operation method and terminal equipment | |
CN109491964B (en) | File sharing method and terminal | |
CN111050214A (en) | Video playing method and electronic equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |