[go: up one dir, main page]

CN113362410A - Drawing method, drawing device, electronic apparatus, and medium - Google Patents

Drawing method, drawing device, electronic apparatus, and medium Download PDF

Info

Publication number
CN113362410A
CN113362410A CN202110604008.9A CN202110604008A CN113362410A CN 113362410 A CN113362410 A CN 113362410A CN 202110604008 A CN202110604008 A CN 202110604008A CN 113362410 A CN113362410 A CN 113362410A
Authority
CN
China
Prior art keywords
color
electronic device
input
target
user
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202110604008.9A
Other languages
Chinese (zh)
Other versions
CN113362410B (en
Inventor
彭业
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Hangzhou Co Ltd
Original Assignee
Vivo Mobile Communication Hangzhou Co Ltd
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 Vivo Mobile Communication Hangzhou Co Ltd filed Critical Vivo Mobile Communication Hangzhou Co Ltd
Priority to CN202110604008.9A priority Critical patent/CN113362410B/en
Publication of CN113362410A publication Critical patent/CN113362410A/en
Application granted granted Critical
Publication of CN113362410B publication Critical patent/CN113362410B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/001Texturing; Colouring; Generation of texture or colour
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/60Editing figures and text; Combining figures or text
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/80Creating or modifying a manually drawn or painted image using a manual input device, e.g. mouse, light pen, direction keys on keyboard

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The application discloses a drawing method, a drawing device, electronic equipment and a drawing medium, and belongs to the technical field of communication. The method comprises the following steps: under the condition that the first electronic equipment and the second electronic equipment are in a connected state, receiving first indication information sent by the second electronic equipment; and acquiring a target color according to the first indication information, wherein the target color is a color adopted by the first electronic equipment for drawing the pattern.

Description

Drawing method, drawing device, electronic apparatus, and medium
Technical Field
The application belongs to the technical field of communication, and particularly relates to a drawing method, a drawing device, electronic equipment and a medium.
Background
With the development of electronic devices, functions of the electronic devices are increasing, for example, the electronic devices have a drawing function, and a user can draw pictures (such as drawing pictures or writing characters) on the electronic devices through the drawing function.
In the process of drawing by the user through the electronic equipment, the user can select colors of drawing lines, characters and the like. Specifically, when the user wants to select a color, the user may first click on the color trigger button, then the electronic device may display the color wheel, and finally, the user may select the desired color in the color wheel.
However, when the user changes the color, the user needs to frequently trigger the electronic device to display the color wheel and then select the color, which makes the overall operation complicated. Meanwhile, frequent operation not only interrupts the user from drawing pictures or writing characters, but also shields the pictures or characters by the displayed color wheel.
Disclosure of Invention
An object of the embodiments of the present application is to provide a drawing method, an apparatus, an electronic device, and a medium, which can solve the problem of complicated operations in the drawing process of the electronic device.
In a first aspect, an embodiment of the present application provides a drawing method, including: under the condition that the first electronic equipment and the second electronic equipment are in a connected state, receiving first indication information sent by the second electronic equipment; and acquiring a target color according to the first indication information, wherein the target color is a color adopted by the first electronic equipment for drawing the pattern.
In a second aspect, an embodiment of the present application provides another drawing method, including: receiving a third input of a user to a target color identifier in M third color identifiers under the condition that the first electronic device and the second electronic device are in a connection state and the second electronic device displays M third color identifiers, wherein M is a positive integer; responding to the third input, determining that the color corresponding to the target color identification is the target color, and sending first indication information to the first electronic equipment; the first indication information is used for indicating a target color, and the target color is a color adopted by the first electronic device for drawing the pattern.
In a third aspect, an embodiment of the present application provides a drawing device, including: the device comprises a receiving module, an obtaining module and an executing module; the receiving module is used for receiving first indication information sent by second electronic equipment under the condition that the first electronic equipment and the second electronic equipment are in a connected state; and the obtaining module is used for obtaining a target color according to the first indication information received by the receiving module, wherein the target color is a color adopted by the first electronic equipment for drawing the pattern.
In a fourth aspect, an embodiment of the present application provides an image drawing device, including: : the device comprises a receiving module, a determining module and a sending module; the receiving module is used for receiving a third input of a user to a target color identifier in M third color identifiers under the condition that the first electronic device and the second electronic device are in a connection state and the second electronic device displays M third color identifiers, wherein M is a positive integer; a determining module, configured to determine, in response to the third input received by the receiving module, that a color corresponding to the target color identifier is a target color; the sending module is used for sending first indication information to the first electronic equipment; the first indication information is used for indicating a target color, and the target color is a color adopted by the first electronic device for drawing the pattern.
In a fifth aspect, the present application provides an electronic device, which includes a processor, a memory, and a program or instructions stored on the memory and executable on the processor, and when executed by the processor, the program or instructions implement the steps of the method according to the first aspect or the second aspect.
In a sixth aspect, embodiments of the present application provide a readable storage medium, on which a program or instructions are stored, which when executed by a processor implement the steps of the method according to the first or second aspect.
In a seventh aspect, an embodiment of the present application provides a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and the processor is configured to execute a program or instructions to implement the method according to the first aspect or the second aspect.
In this embodiment of the application, when the first electronic device and the second electronic device are in a connected state, after receiving the first indication information sent by the second electronic device, the first electronic device may obtain a target color according to the first indication information, where the target color is a color adopted by the first electronic device to draw a pattern. Through the scheme, under the condition that a user draws a pattern (such as drawing a picture or writing characters) through the first electronic device, compared with a scheme that the user needs to trigger the color disc displayed on the first electronic device and then select colors in the related art, the first electronic device in the application can directly draw the pattern by adopting the target color indicated by the second electronic device, and the user does not need to frequently trigger the first electronic device to display the color disc to select colors. Therefore, the operation steps of the color changing process of the first electronic equipment can be simplified, the operation of the drawing process of the first electronic equipment is simple and convenient and efficient, the phenomenon that the first electronic equipment is frequently triggered by a user to display a color wheel, the user is interrupted to draw pictures or write characters due to the fact that the pictures or the characters are drawn can be avoided, and the situation that the color wheel displayed by the first electronic equipment shields the pictures or the characters can be avoided.
Drawings
Fig. 1 is a schematic flow chart of a drawing method according to an embodiment of the present disclosure;
fig. 2 is a schematic diagram of an application of a drawing method according to an embodiment of the present disclosure;
fig. 3 is a second schematic diagram of an application of a drawing method according to an embodiment of the present application;
fig. 4 is a third schematic diagram illustrating an application of a drawing method according to an embodiment of the present application;
fig. 5 is a fourth schematic diagram of an application of a drawing method according to an embodiment of the present application;
fig. 6 is a fifth schematic view of an application of a drawing method according to an embodiment of the present application;
fig. 7 is a sixth schematic view of an application of a drawing method according to an embodiment of the present application;
fig. 8 is a seventh schematic diagram applied to a drawing method according to an embodiment of the present application;
fig. 9 is a schematic structural diagram of a drawing device according to an embodiment of the present disclosure;
fig. 10 is a schematic structural diagram of another drawing device according to an embodiment of the present disclosure;
fig. 11 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure;
fig. 12 is a second schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described clearly below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments that can be derived by one of ordinary skill in the art from the embodiments given herein are intended to be within the scope of the present disclosure.
The terms first, second and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the application are capable of operation in sequences other than those illustrated or described herein. The objects distinguished by "first", "second", and the like are usually a class, and the number of the objects is not limited, and for example, the first object may be one or a plurality of objects. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/" generally means that a preceding and succeeding related objects are in an "or" relationship.
The drawing method provided by the embodiment of the present application is described in detail below with reference to the accompanying drawings through specific embodiments and application scenarios thereof.
Fig. 1 is a schematic flowchart of a drawing method provided in an embodiment of the present application, where the method is applied to a first electronic device and a second electronic device, and includes steps 201 and 202:
step 201: and under the condition that the first electronic equipment and the second electronic equipment are in a connected state and the second electronic equipment displays M third color identifiers, the second electronic equipment receives third input of a user to a target color identifier in the M third color identifiers.
Wherein, one color mark corresponds to one color, and M is a positive integer.
In this embodiment of the application, the state that the first electronic device and the second electronic device are connected refers to: the first electronic device and the second electronic device may exchange data in real time. For example, the first electronic device and the second electronic device both log in to the same account, and the cloud synchronization function is started.
Illustratively, the first electronic device and the second electronic device may be connected via bluetooth or wireless communication technology (Wi-Fi), or the like.
For example, taking the first electronic device as a tablet and the second device as a mobile phone as an example, when the tablet initiates a dock pairing mode to the mobile phone, as shown in fig. 2, 2 keys, namely a key 11 and a key 12, are displayed on a screen of the tablet, where the text "i is a master device" is displayed in the key 11, and the text "i is a dock device" is displayed in the key 12. The screen of the mobile phone displays 2 keys, namely a key 21 and a key 22, wherein the key 21 displays the text "i is a main device", and the key 22 displays the text "i is a dock device". Then, if the user wants to select a color through a tablet drawing by a mobile phone, the user can click the key 11 and the key 22. At this time, the tablet and the mobile phone are paired, as shown in fig. 3, the tablet automatically returns to the desktop, and the screen of the mobile phone can display the prompt text "please start using dock mode".
In an embodiment of the present application, the M third color indicators may include at least one of: the color identification in the local storage area of the second electronic device, the color identification acquired by the second electronic device from the first electronic device, the color identification downloaded by the second electronic device, and the color identification acquired by the second electronic device by identifying the following target image.
For example, the marks in the embodiments of the present application are used to indicate words, symbols, images, and the like of information, and a control or other container may be used as a carrier for displaying information, including but not limited to a word mark, a symbol mark, and an image mark.
In an embodiment of the present application, the third input may be: the click input of the target color identifier by the user, or the voice instruction input by the user, or the specific gesture input by the user may be specifically determined according to the actual use requirement, which is not limited in the embodiment of the present application.
The specific gesture in the embodiment of the application can be any one of a single-click gesture, a sliding gesture, a dragging gesture, a pressure identification gesture, a long-press gesture, an area change gesture, a double-press gesture and a double-click gesture; the click input in the embodiment of the application can be click input, double-click input, click input of any number of times and the like, and can also be long-time press input or short-time press input.
Step 202: and responding to the third input, the second electronic equipment determines the color corresponding to the target color identification as the target color, and sends first indication information to the first electronic equipment.
Step 203: under the condition that the first electronic device and the second electronic device are in a connected state, the first electronic device receives first indication information sent by the second electronic device.
Step 204: and the first electronic equipment acquires the target color according to the first indication information.
The first indication information is used for indicating the target color, and the target color is a color adopted by the first electronic device for drawing the pattern. For example, the first indication information may include a color value corresponding to the target color, and thus, after the first electronic device receives the first indication information, the color value of the target color may be obtained from the first indication information, so that the target color may be obtained through the color value of the target color.
For example, as shown in fig. 4, the mobile phone displays 8 color cards (i.e., the above-mentioned M third color identifiers) on the screen of the mobile phone, which are color 1 to color 8. When the user wants to select color 2, the user can click on the color 2 color card 23 to select the color card, and at this time, the mobile phone can send indication information including color value #456fff of color 2 corresponding to the color 2 color card to the tablet. When the tablet receives the indication, the tablet may obtain color 2 through the color value #456fff, and then the tablet may draw a picture using the color 2.
It is to be understood that the first electronic device may draw the pattern with the target color after acquiring the target color.
In the embodiment of the present application, the pattern may be a stroke of a character, a drawing, or the like, which is not limited in the embodiment of the present application.
Optionally, in this embodiment of the application, the user may trigger the second electronic device to enter the color-mixing mode through an input to the first electronic device.
Illustratively, the method may further include the following steps a1 to a 5:
step A1: the first electronic device receives a seventh input from the user when the first electronic device and the second electronic device are in the connected state.
In an embodiment of the present invention, the seventh input may be: the click input of the user to the screen of the first electronic device, or the click input of the user to the target application program, or the voice instruction input by the user, or the specific gesture input by the user may be determined according to the actual use requirement, which is not limited in this embodiment of the application. For example, the target application may be a drawing application (e.g., a drawing application), a document application (e.g., a note application), and the like, which is not limited in this embodiment of the application.
Step A2: in response to the seventh input, the first electronic device may display a drawing interface and instruct the second electronic device to display a mode selection interface.
Wherein, the drawing interface is used for drawing patterns. Illustratively, the drawing interface is an interface corresponding to the target application program. For example, the drawing interface may be a drawing interface of a drawing application program, or may be a drawing interface in a document application program, and the like, which is not limited in this embodiment of the application.
Wherein the mode selection interface includes at least one mode selection option. In one example, the at least one mode selection option may include a first mode selection option and a second mode selection option. The first mode selection option is used for selecting the color identifier in the local storage area of the second electronic device, and the second mode selection option is used for selecting the color identifier acquired by the identification target image of the second electronic device.
For example, the mode selection interface may be displayed at any display position of the screen of the second electronic device.
In an example, the step a2 may specifically include the following steps: in response to the seventh input, the first electronic device may display a drawing interface and send third indication information to the second electronic device.
Accordingly, when the first electronic device and the second electronic device are in a connected state, the second electronic device may receive third indication information sent by the first electronic device, and display a mode selection interface according to the third indication information.
For example, referring to fig. 3, after the tablet automatically returns to the desktop, and the screen of the mobile phone displays the prompt text "please start using dock mode", when the user wants to draw, the user may click the icon 13 of the drawing application program displayed on the desktop. At this time, as shown in fig. 5, the tablet displays the drawing board 31 of the drawing application program and sends third indication information to the mobile phone, and after receiving the third indication information, the mobile phone may display the mode selection interface 41, that is, the mobile phone enters the color matching mode. The mode selection interface 41 includes 2 options, namely a "color chip mode" option 42 and a "color recognition mode" option 43. When a user wants to use a color chip locally stored in the mobile phone, the user can click the "color chip mode" option, and at this time, as shown in fig. 6, the mobile phone displays a color chip display interface 51, and the color chip display interface 51 displays 3 color chips, namely, a color 1 color chip, a color 2 color chip, and a color 3 color chip.
In the drawing method provided by the embodiment of the application, when the first electronic device and the second electronic device are in a connected state and the second electronic device displays M third color identifiers, after the second electronic device receives a third input of a user to a target color identifier in the M third color identifiers, the color corresponding to the target color identifier may be determined to be a target color, and the first indication information is sent to the first electronic device. Then, when the first electronic device and the second electronic device are in a connected state, after receiving the first indication information sent by the second electronic device, the first electronic device may obtain a target color according to the first indication information, where the target color is a color adopted by the first electronic device to draw a pattern. Wherein one color identifier corresponds to one color. Through the scheme, when a user draws a pattern (such as drawing a picture or writing characters) through the first electronic device, compared with a scheme that the user needs to trigger the color disc displayed on the first electronic device and then selects colors in the related art, firstly, the second electronic device in the application can display M third color marks; then, the user can select a color through the second electronic device; then, the second electronic device can send the target color selected by the user to the first electronic device through the indication information, so that the first electronic device can determine the target color after receiving the first indication information, and the pattern can be directly drawn by adopting the target color without frequently triggering the first electronic device to display a color wheel to select the color by the user. Therefore, the step of the color changing process of the first electronic equipment can be simplified, the operation of the drawing process of the first electronic equipment is simple and convenient, the efficiency is high, the phenomenon that the first electronic equipment is frequently triggered by a user to display a color wheel, the user is interrupted to draw pictures or write characters due to the fact that the pictures or the characters are drawn can be avoided, and the phenomenon that the color wheel displayed by the first electronic equipment shields the pictures or the characters can be avoided.
Optionally, in this embodiment of the application, the user may trigger the second electronic device to display the color identifier through an input to the first electronic device.
Illustratively, before the step 201, the method may further include the following steps 201a and 201 b:
step 201 a: the first electronic device receives a first input of a user when the first electronic device and the second electronic device are in a connected state.
In an embodiment of the present application, the first input may be: the click input of the user to the screen of the first electronic device, or the click input of the user to the target control, or the voice instruction input by the user, or the specific gesture input by the user may be determined according to the actual use requirement, which is not limited in the embodiment of the present application. For example, the target control may be an original control or a newly added control, which is not limited in this embodiment of the application.
Step 201 b: and responding to the first input, the first electronic equipment displays N first color identifications and instructs the second electronic equipment to display X second color identifications.
Wherein, one color mark corresponds to one color, N is an integer greater than or equal to 0, and X is a positive integer.
For example, the N first color identifiers may be saved in the local storage area of the first electronic device or downloaded by the first electronic device, which is not limited in this embodiment of the application.
For example, the X second color identifiers may be saved in a local storage area of the second electronic device, downloaded by the second electronic device, or obtained by the second electronic device from the first electronic device, which is not limited in this embodiment of the application.
For example, a different first input may trigger the first electronic device to instruct the second electronic device to display a different X number of second color identifiers.
Example 1, in a case where the first input is a single-click input of the color trigger button (i.e., the target control) displayed in the first electronic device by the user, the first electronic device may display a part of color identifiers (i.e., the N first color identifiers described above) stored in the local storage area of the first electronic device, and instruct the second electronic device to display color identifiers (i.e., the X second color identifiers described above) stored in the local storage area of the first electronic device, except for the part of color identifiers displayed in the first electronic device.
Example 2, in the case where the first input is a double-click input of the user to the color trigger button displayed in the first electronic device, the first electronic device may instruct only the second electronic device to display the color identifiers saved in the local storage area of the first electronic device (i.e., the above-described X second color identifiers).
Example 3, in the case where the first input is a long-press input of the color trigger button displayed in the first electronic device by the user, the first electronic device may instruct only the second electronic device to display the color identifiers saved in the local storage area of the second electronic device (i.e., the above-mentioned X second color identifiers).
Example 4, in a case where the first input is a short-press input of the color trigger button displayed in the first electronic device by the user, the first electronic device may instruct the second electronic device to display the color identifier saved in the first electronic device local storage area and the color identifier saved in the second electronic device local storage area (i.e., the above-mentioned X second color identifiers).
Example 5, in a case where the first input is a drag input of the color trigger button displayed in the first electronic device by the user, the first electronic device may display color identifiers saved in the local storage area of the first electronic device (i.e., the above-mentioned N first color identifiers), and instruct the second electronic device to display color identifiers saved in the local storage area of the second electronic device (i.e., the above-mentioned X second color identifiers).
It can be understood that the first electronic device can display at least one color identifier without affecting the drawing of the user, and at this time, other color identifiers displayed by the second electronic device can be used as expanded color identifiers.
Illustratively, the specific implementation process of the first electronic device instructing the second electronic device to display X second color identifiers is as follows: the first electronic device may send the first sub-indication information to the second electronic device, and accordingly, the second electronic device may display the X second color identifiers after receiving the first sub-indication information.
For example, in connection with fig. 6, the drawing board 31 is displayed with a color trigger button 32, and when the user wants to adjust the color during drawing, the user can click on the color trigger button 32. At this time, as shown in fig. 7, the flat panel may display a color chip display interface 33, and 2 color chips, namely, a color 4 color chip and a color 5 color chip, are displayed on the color chip display interface 33. Meanwhile, the tablet may send indication information 1 (i.e., the first sub-indication information) to the mobile phone, and after the mobile phone receives the indication information 1, the mobile phone may additionally display 3 color cards, namely, a color 6 color card, a color 7 color card, and a color 8 color card, on the color card display interface 51.
In an example, when the second electronic device displays at least one color identifier, the instructing the second electronic device to display X second color identifiers in step 201b may specifically include the following steps: and the first electronic equipment instructs the second electronic equipment to update and display the at least one color identifier as the X second color identifiers.
For example, in connection with fig. 6, the drawing board is displayed with a color trigger button 32 that the user can drag when the user wants to adjust the color during drawing. At this time, the flat panel may display a color chip display interface, and 2 color chips, namely, a color 4 color chip and a color 5 color chip, are displayed on the color chip display interface. Meanwhile, the tablet may send indication information 1 (i.e., the first sub-indication information) to the mobile phone, and after receiving the indication information 1, the mobile phone may update and display the original 3 color cards (i.e., the color 1 color card, the color 2 color card, and the color 3 color card) to the color 6 color card, the color 7 color card, and the color 8 color card.
It should be noted that, there is no obvious precedence order between the first electronic device displaying the N first color identifiers and the second electronic device displaying the X second color identifiers, for example, the first electronic device may indicate the second electronic device to display the X second color identifiers before displaying the N first color identifiers, or may indicate the second electronic device to display the X second color identifiers after displaying the N first color identifiers, or may indicate the second electronic device to display the X second color identifiers while displaying the N first color identifiers, which is not limited in this application.
The drawing method provided by the embodiment of the application can be applied to a scene that the second electronic equipment is triggered to display the color identifiers through the input of the first electronic equipment, and a user can directly trigger the second electronic equipment to display the X second color identifiers through the input of the first electronic equipment without inputting on the second electronic equipment, so that the flexibility of triggering the color identifier display process can be improved, and the user can conveniently operate.
Optionally, in this embodiment of the application, in a case that N is a positive integer, after the first electronic device displays N first color identifiers in step 201b described above, the method may further include the following steps 201c and 201 d:
step 201 c: the first electronic device receives a second input of the target first color identification from the user.
The second input is a dragging input of dragging the target first color identifier to a position where the second electronic device is located by a user, and the target first color identifier is at least one of the N first color identifiers.
For example, the drag input may be a leftward drag, a rightward drag, an upward drag, a downward-leftward drag, an upward-rightward drag, or a downward-rightward drag, which is not limited in this embodiment of the present invention.
It should be noted that, the first electronic device may determine, by using a positioning technology, whether the user drags the target first color identifier to a location of the second electronic device. For example, the first electronic device may employ Ultra Wideband (UWB) positioning technology to determine whether the user drags the target first color indicator toward the location of the second electronic device.
Step 201 d: and responding to the second input, and the first electronic equipment instructs the second electronic equipment to increase and display the target first color identifier.
Illustratively, the specific implementation process of the first electronic device instructing the second electronic device to display the target first color identifier is as follows: the first electronic device may send the second sub-indication information to the second electronic device, and accordingly, the second electronic device may increase to display the target first color identifier after receiving the second sub-indication information.
For example, referring to fig. 7, when the user wants to convert the color card displayed on the panel to the display on the mobile phone, the user may drag the color card display interface 33 to the location of the mobile phone and send the indication information 2 (i.e., the second sub-indication information mentioned above) to the mobile phone. After the mobile phone receives the indication information 2, as shown in fig. 4, the mobile phone may display 8 color cards, which are color 1 to color 8 color cards, on the screen of the mobile phone.
In an example, if the color indicated by the color 4 color card displayed on the tablet is the same as the color indicated by the color 8 color card in the mobile phone, after the user drags the color card display interface 33 to the location of the mobile phone, the mobile phone may display 7 color cards, namely, the color 1 color card to the color 7 color card, or the color 1 color card to the color 3 color card and the color 5 color card to the color 7 color card, in the mobile phone screen, that is, the mobile phone may display any one of the color 4 color card and the color 8 color card.
It should be noted that, when a user wants to convert a color card displayed on a mobile phone to a flat panel for display, the user may drag a color 6 color card, a color 7 color card, and a color 8 color card to the position of the flat panel, and at this time, the flat panel may display 5 color cards, namely, a color 4 color card to a color 8 color card, on the flat panel screen.
The drawing method provided by the embodiment of the application can be applied to a scene of flexibly switching and displaying the color identifier, and a user can quickly trigger the second electronic device to additionally display the target first color identifier through the input of dragging the target first color identifier displayed on the first electronic device to the second electronic device.
Optionally, in this embodiment of the application, the M third color identifiers may include Y fourth color identifiers, where the Y fourth color identifiers are determined by the second electronic device according to second indication information, the second indication information is sent by the first electronic device to the second electronic device, and Y is a positive integer less than or equal to M.
Illustratively, the second indication information may include at least one of: the first sub-indication information and the second sub-indication information.
It should be noted that, there is no obvious order in which the second electronic device receives the first sub-indication information and the second sub-indication information sent by the first electronic device, for example, the second electronic device may receive the second sub-indication information before receiving the first sub-indication information, may also receive the second sub-indication information after receiving the first sub-indication information, and may also receive the second sub-indication information while receiving the first sub-indication information, which is not limited in this embodiment of the present application.
For example, the Y fourth color indicators may include the X second color indicators, or may include the N first color indicators, or may include the X second color indicators and the N first color indicators, which is not limited in this embodiment of the application.
The drawing method provided by the embodiment of the application can be applied to a scene that second electronic equipment rapidly displays the color identification, and the second electronic equipment can rapidly display Y fourth color identifications according to the indication information sent by the first electronic equipment without inputting on the second electronic equipment by a user.
Optionally, in this embodiment of the application, the second electronic device may obtain the color identifier through other approaches besides directly obtaining the local color identifier.
For example, the M third color indicators may include Z fifth color indicators, where the Z fifth color indicators are obtained by the second electronic device recognizing the target image, and Z is a positive integer smaller than or equal to M. It is understood that the Z fifth color tags are the color tags corresponding to the target image.
For example, the target image may be an image captured by the second electronic device, may also be an image saved by the second electronic device, and may also be an image downloaded by the second electronic device, which is not limited in this embodiment of the application. For example, the image acquired by the second electronic device may be a preview image or a shot image, which is not limited in this embodiment of the application.
Illustratively, the second electronic device recognizes the target image, may obtain at least one color, and then, the second electronic device may display Z fifth color marks according to the at least one color. Wherein, the Z fifth color identifiers are color identifiers corresponding to all or part of the at least one color.
In an example, the Z fifth color indicators are color indicators corresponding to colors with a ratio in the target image greater than or equal to a preset threshold value in the at least one color. For example, the ratio may be a ratio of an area occupied by any color in the target image to the total area of the target image.
In one example, the specific implementation process of the second electronic device for recognizing the target image may be as follows: the second electronic equipment divides the target image to obtain at least one sub-image, and one sub-image corresponds to one target object in the target image; the second electronic device respectively identifies at least one sub-image in the at least one sub-image to obtain at least one color.
For example, referring to fig. 5, when the user wants to copy a picture, the user may click the "color recognition mode" option 43, and at this time, the user may use the mobile phone to shoot the picture that the user wants to copy, and the mobile phone displays a preview picture of the picture that the user wants to copy. Then, the mobile phone can divide the preview picture into 5 sub-pictures, which are respectively a sub-picture including a background, a sub-picture including bread, a sub-picture including a mask, a sub-picture including a medicine bottle, and a sub-picture including a water cup. Then, the mobile phone can respectively identify the 5 sub-pictures and extract the color. If the mobile phone can identify the sub-picture including the bread, the proportion of yellow is determined to be 50%, the proportion of gray is determined to be 30%, and the proportion of other colors is determined to be 20%, at this time, the mobile phone can directly extract the first two colors, namely yellow and gray. By analogy, the mobile phone can identify other 4 sub-pictures and extract the color of the first two in each sub-picture. Finally, the mobile phone can display 10 color cards corresponding to the extracted 10 colors, so that the copying efficiency of the user can be improved.
It should be noted that the mobile phone can store the identified color identifier, which is convenient for later use.
The drawing method provided by the embodiment of the application can be applied to a scene with color identification obtained by identifying the image, and the second electronic equipment can quickly generate the corresponding color identification through identifying the target image so as to be used by a user, so that the user does not need to search in a large number of colors, and the steps of drawing through the electronic equipment are simplified.
Optionally, in this embodiment of the present application, the method may further include the following steps 205a to 205 c:
step 205 a: and under the condition that the first electronic equipment and the second electronic equipment are in a connected state, the second electronic equipment displays the target image.
Step 205 b: and the second electronic equipment receives a fourth input of the user to the target image.
In an embodiment of the present application, the fourth input may be: the click input of the user on the target image, or the voice instruction input by the user, or the specific gesture input by the user may be specifically determined according to the actual use requirement, which is not limited in the embodiment of the present application.
Step 205 c: and responding to the fourth input, and the second electronic equipment determines the target area of the target image according to the input information corresponding to the fourth input.
Wherein the input information includes any one of: inputting pressure intensity and trajectory; the area size of the target area changes with the change of the fourth input information, and the Z fifth color marks are obtained by the second electronic equipment by identifying the target area.
Illustratively, the target area may be of any shape. E.g. circular, square or rectangular, etc.
For example, the size of the target area may be increased with the increase of the input pressure, decreased with the decrease of the input pressure, or decreased with the increase of the input pressure, and increased with the decrease of the input pressure, which is not limited in the embodiment of the present application.
For example, taking the target area as a circular area and taking a contact point of a finger of a user pressing the target image as the center of the circle of the circular area as an example, when the input pressure of the user reaches a preset first-level pressure smaller than a second-level pressure, the range of the circular area is 20 to 30 pixel points (px); when the input pressure of the user reaches the preset second-level pressure which is less than the third-level pressure, the range of the circular area is 30-50 pixel points; when the input pressure of the user reaches the preset three-stage pressure which is lower than the four-stage pressure, the range of the circular area is 50-80 pixel points; when the pressure input by the user reaches the preset four-level pressure, the range of the circular area is more than 80 pixel points.
Illustratively, the region enclosed by the input trajectory is the target region. For example, a photo is displayed on the mobile phone, and a user draws a circle on the photo with a stylus pen, wherein an area enclosed by the circle is a target area.
The drawing method provided by the embodiment of the application can be applied to a scene of determining the target area according to the input information input by the user, and the second electronic equipment can determine the target area according to the input information input by the user, so that the user can input the information according to the requirement to select the area to be identified, and the determination process of the target area is more flexible.
Optionally, in this embodiment of the application, after the step 205a, the method may further include the following steps 205d and 205 e:
step 205 d: and the second electronic equipment receives a fifth input of the user to the target image.
In an embodiment of the present application, the fifth input may be: the click input of the user on the target image, or the voice instruction input by the user, or the specific gesture input by the user may be specifically determined according to the actual use requirement, which is not limited in the embodiment of the present application.
Step 205 e: and responding to the fifth input, and the second electronic equipment identifies the target image according to the input pressure corresponding to the fifth input.
Wherein the quantity Z varies with a variation of the input pressure of said fifth input.
For example, the number Z may increase with the increase of the input pressure, decrease with the decrease of the input pressure, or decrease with the increase of the input pressure, and increase with the decrease of the input pressure, which is not limited in the embodiment of the present application.
For example, as shown in fig. 8 (a), the mobile phone displays a preview image a (i.e., the target image), and when the user presses the image a with the stylus pen and the pressing pressure reaches a preset level 1 pressure, the mobile phone may display 3 color cards with the touch point of the stylus pen on the image a as the center; when the pressing pressure reaches the preset 2-level pressure (greater than 1-level pressure), as shown in (b) of fig. 8, the mobile phone may display 4 color cards in the form of a mosaic with the touch point of the stylus on the image a as the center.
The drawing method provided by the embodiment of the application can be applied to a scene of determining the number of the color identifiers according to the input pressure, and the second electronic equipment can determine the number of the color identifiers according to the input pressure input by the user, so that the user can input the color identifiers according to the requirement to determine the number of the color identifiers, and the process of determining the number of the color identifiers is more flexible.
Optionally, in this embodiment of the application, the second electronic device may recommend a color identifier for the user.
For example, in a case that the M third color identifiers may include Z fifth color identifiers, the method may further include the following steps 206 to 207:
step 206: the second electronic device receives a sixth input from the user.
For example, the sixth input may be: the click input of the user to the screen of the second electronic device, or the voice instruction input by the user, or the specific gesture input by the user may be specifically determined according to the actual use requirement, which is not limited in the embodiment of the present application.
Step 207: and responding to the sixth input, and the second electronic equipment updates and displays the Z fifth color identifications as at least one recommended color identification.
For example, after the mobile phone recognizes that the image 1 has 5 color cards, which are color card 1 to color card 5, respectively, if the user is not satisfied with the recognized colors, the user may press the mobile phone screen for a long time. At this time, the mobile phone may recommend another 5 color cards, which are color card a to color card e, to the user for selection.
In this way, when the user is not satisfied with the second electronic device to recognize that the image gets the color, the second electronic device may recommend the color to the user, thereby providing the user with more choices and simplifying the steps of drawing by the user through the electronic device.
The drawing method provided by the embodiment of the application is applied to first electronic equipment and comprises the following steps of 301 and 302:
step 301: under the condition that the first electronic device and the second electronic device are in a connected state, the first electronic device receives first indication information sent by the second electronic device.
Step 302: and the first electronic equipment acquires the target color according to the first indication information.
The target color is a color adopted by the first electronic device for drawing the pattern.
Optionally, in this embodiment of the application, before the first electronic device in step 301 receives the first indication information sent by the second electronic device, the method may further include steps 301a and 301b as follows:
step 301 a: the first electronic device receives a first input of a user when the first electronic device and the second electronic device are in a connected state.
Step 301 b: and responding to the first input, the first electronic equipment displays N first color identifications and instructs the second electronic equipment to display X second color identifications.
Wherein, one color mark corresponds to one color, N is an integer greater than or equal to 0, and X is a positive integer.
Optionally, in this embodiment of the application, after the N first color identifiers are displayed in the step 301b, the method may further include the following steps 301c and 301 d:
step 301 c: the first electronic device receives a second input of the target first color identification from the user.
The second input is a dragging input of dragging the target first color identifier to a position where the second electronic device is located by a user, and the target first color identifier is at least one of the N first color identifiers.
Step 301 d: and responding to the second input, and the first electronic equipment instructs the second electronic equipment to increase and display the target first color identifier.
For the descriptions of S301 to S302, reference may be specifically made to the descriptions of S201 to S207 in the foregoing embodiments, and details are not repeated here.
According to the drawing method provided by the embodiment of the application, under the condition that the first electronic device and the second electronic device are in a connected state, after the first electronic device receives the first indication information sent by the second electronic device, the first electronic device can obtain the target color according to the first indication information, wherein the target color is the color adopted by the first electronic device for drawing the pattern. Through the scheme, under the condition that a user draws a pattern (such as drawing a picture or writing characters) through the first electronic device, compared with a scheme that the user needs to trigger the color disc displayed on the first electronic device and then select colors in the related art, the first electronic device in the application can directly draw the pattern by adopting the target color indicated by the second electronic device, and the user does not need to frequently trigger the first electronic device to display the color disc to select colors. Therefore, the step of the color changing process of the first electronic equipment can be simplified, the operation of the drawing process of the first electronic equipment is simple and convenient, the efficiency is high, the phenomenon that the first electronic equipment is frequently triggered by a user to display a color wheel, the user is interrupted to draw pictures or write characters due to the fact that the pictures or the characters are drawn can be avoided, and the phenomenon that the color wheel displayed by the first electronic equipment shields the pictures or the characters can be avoided.
The drawing method provided by the embodiment of the application is applied to second electronic equipment and comprises the following steps of 401 and 402:
step 401: and under the condition that the first electronic device and the second electronic device are in a connected state and the second electronic device displays M third color identifiers, the second electronic device receives a third input of a user to a target color identifier in the M third color identifiers, wherein M is a positive integer.
Step 402: and responding to the third input, the second electronic equipment determines the color corresponding to the target color identification as the target color, and sends first indication information to the first electronic equipment.
The first indication information is used for indicating the target color, and the target color is a color adopted by the first electronic device for drawing the pattern.
Optionally, in this embodiment of the application, the M third color identifiers include Y fourth color identifiers, where the Y fourth color identifiers are determined by the second electronic device according to second indication information, the second indication information is sent by the first electronic device to the second electronic device, and Y is a positive integer less than or equal to M.
Optionally, in this embodiment of the application, the M third color identifiers include Z fifth color identifiers, where the Z fifth color identifiers are obtained by the second electronic device by recognizing the target image, and Z is a positive integer smaller than or equal to M.
Optionally, in this embodiment of the present application, the method may further include the following steps 403a to 403 c:
step 403 a: and the second electronic equipment displays the target image.
Step 403 b: and the second electronic equipment receives a fourth input of the user to the target image.
Step 403 c: and responding to the fourth input, and the second electronic equipment determines the target area of the target image according to the input information corresponding to the fourth input.
Wherein the input information includes any one of: inputting pressure intensity and trajectory; the area size of the target area changes with the change of the fourth input information, and the Z fifth color marks are obtained by the second electronic device by recognizing the target area.
Optionally, in this embodiment of the application, after the step 403a, the method may further include the following steps 403d and 403 e:
step 403 d: and the second electronic equipment receives a fifth input of the user to the target image.
Step 403 e: and responding to the fifth input, and identifying the target image according to the input pressure intensity corresponding to the fifth input.
Wherein the quantity Z varies with a variation of the input pressure of said fifth input.
For the descriptions of S401 to S403, reference may be specifically made to the descriptions of S201 to S207 in the foregoing embodiments, and details are not repeated here.
In the drawing method provided by the embodiment of the application, when a first electronic device and a second electronic device are in a connected state and the second electronic device displays M third color identifiers, after receiving a third input of a user to a target color identifier in the M third color identifiers, the second electronic device may determine that a color corresponding to the target color identifier is the target color, and send first indication information to the first electronic device; the first indication information is used for indicating the target color, and the target color is a color adopted by the first electronic device for drawing the pattern. Through the scheme, when a user draws a pattern (such as drawing a picture or writing characters) through the first electronic device, compared with a scheme that the user needs to trigger the color disc displayed on the first electronic device and then selects the color in the related art, firstly, the method can display M third color marks through the second electronic device; then, the user can select a color through the second electronic device; then, the second electronic device can send the target color selected by the user to the first electronic device through the indication information, so that the first electronic device can directly draw the pattern by using the target color indicated by the second electronic device, and the user does not need to frequently trigger the first electronic device to display the color wheel to select the color. Therefore, the step of the color changing process of the first electronic equipment can be simplified, the operation of the drawing process of the first electronic equipment is simple and convenient, the efficiency is high, the phenomenon that the first electronic equipment is frequently triggered by a user to display a color wheel, the user is interrupted to draw pictures or write characters due to the fact that the pictures or the characters are drawn can be avoided, and the phenomenon that the color wheel displayed by the first electronic equipment shields the pictures or the characters can be avoided.
In the drawing method provided in the embodiment of the present application, the executing body may be a drawing device, or a control module in the drawing device for executing the drawing method. The embodiment of the present application describes a drawing apparatus provided in the embodiment of the present application by taking the drawing apparatus as an example to execute a drawing method.
Fig. 9 is a schematic structural diagram of a possible drawing device according to an embodiment of the present disclosure, and as shown in fig. 9, the drawing device 500 includes: a receiving module 501 and an obtaining module 502, wherein: a receiving module 501, configured to receive first indication information sent by a second electronic device when a first electronic device and the second electronic device are in a connected state; the obtaining module 502 is configured to obtain a target color according to the first indication information received by the receiving module 501, where the target color is a color used by the first electronic device to draw a pattern.
Optionally, the drawing device 500 further comprises: a display module 503 and an execution module 504; the receiving module 501 is further configured to receive a first input of a user when the first electronic device and the second electronic device are in a connected state; a display module 503, configured to display the N first color identifiers in response to the first input received by the receiving module 501; an executing module 504, further configured to instruct, in response to the first input received by the receiving module 501, the second electronic device to display X second color identifiers; wherein, one color mark corresponds to one color, N is an integer greater than or equal to 0, and X is a positive integer.
Optionally, N is a positive integer; the receiving module 501 is further configured to receive a second input of the target first color identifier, where the second input is a dragging input of the user dragging the target first color identifier to a location of the second electronic device, and the target first color identifier is at least one of the N first color identifiers; the executing module 504 is further configured to instruct the second electronic device to increase the display of the target first color identifier in response to the second input received by the receiving module 501.
It should be noted that, as shown in fig. 9, the modules that are necessarily included in the drawing device 500 are indicated by solid line boxes, such as the receiving module 501; modules that may or may not be included in the drawing device 500 are illustrated with dashed boxes, such as execution module 504.
According to the drawing device provided by the embodiment of the application, under the condition that the first electronic device and the second electronic device are in a connected state, after receiving the first indication information sent by the second electronic device, the drawing device can obtain the target color according to the first indication information, wherein the target color is the color adopted by the first electronic device for drawing the pattern. Through the scheme, under the condition that a user draws a pattern (such as drawing a picture or writing characters) through the first electronic equipment, compared with a scheme that the user needs to trigger the color disc displayed on the first electronic equipment and then select the color in the related technology, the drawing device in the application can directly draw the pattern by adopting the target color indicated by the second electronic equipment, and the user does not need to frequently trigger the first electronic equipment to display the color disc to select the color. Therefore, the step of the color changing process of the first electronic equipment can be simplified, the operation of the drawing process of the first electronic equipment is simple and convenient, the efficiency is high, the phenomenon that the first electronic equipment is frequently triggered by a user to display a color wheel, the user is interrupted to draw pictures or write characters due to the fact that the pictures or the characters are drawn can be avoided, and the phenomenon that the color wheel displayed by the first electronic equipment shields the pictures or the characters can be avoided.
The beneficial effects of the various implementation manners in this embodiment may specifically refer to the beneficial effects of the corresponding implementation manners in the above method embodiments, and are not described herein again to avoid repetition.
Fig. 10 is a schematic structural diagram of another drawing device provided in an embodiment of the present application, and as shown in fig. 10, the drawing device 600 includes: a receiving module 601, a determining module 602 and a sending module 603; wherein: a receiving module 601, configured to receive a third input of a target color identifier in M third color identifiers from a user when a first electronic device and a second electronic device are in a connected state and the second electronic device displays M third color identifiers, where M is a positive integer; a determining module 602, configured to determine, in response to the third input received by the receiving module 601, that a color corresponding to the target color identifier is a target color; a sending module 603, configured to send first indication information to a first electronic device; the first indication information is used for indicating a target color, and the target color is a color adopted by the first electronic device for drawing the pattern.
Optionally, the M third color identifiers include Y fourth color identifiers, the Y fourth color identifiers are determined by the second electronic device according to second indication information, the second indication information is sent by the first electronic device to the second electronic device, and Y is a positive integer smaller than or equal to M.
Optionally, the M third color identifiers include Z fifth color identifiers, where the Z fifth color identifiers are obtained by the second electronic device through recognition of the target image, and Z is a positive integer smaller than or equal to M.
Optionally, the drawing device 600 further comprises: a display module 604; a display module 604 for displaying a target image; the receiving module 601 is further configured to receive a fourth input of the target image by the user; the determining module 602 is further configured to, in response to the fourth input received by the receiving module 601, determine a target area of the target image according to input information corresponding to the fourth input; wherein the input information includes any one of: inputting pressure intensity and trajectory; the area size of the target area changes with the change of the fourth input information, and the Z fifth color marks are obtained by the second electronic equipment by identifying the target area.
Optionally, the drawing device 600 further comprises: an execution module 605; the receiving module 601 is further configured to receive a fifth input of the target image by the user; an executing module 605, configured to respond to the fifth input received by the receiving module 601, and identify the target image according to an input pressure corresponding to the fifth input; wherein the quantity Z varies with a variation of the input pressure of the fifth input.
It should be noted that, as shown in fig. 10, the modules that are necessarily included in the drawing device 600 are indicated by solid line boxes, such as a receiving module 601; modules that may or may not be included in the drawing device 600 are illustrated with dashed boxes, such as the display module 604.
In the drawing apparatus provided in the embodiment of the present application, when a first electronic device and a second electronic device are in a connected state and the second electronic device displays M third color identifiers, after receiving a third input of a user to a target color identifier of the M third color identifiers, the second electronic device may determine that a color corresponding to the target color identifier is the target color, and send first indication information to the first electronic device; the first indication information is used for indicating the target color, and the target color is a color adopted by the first electronic device for drawing the pattern. Through the scheme, when a user draws a pattern (such as drawing a picture or writing characters) through the first electronic device, compared with a scheme that the user needs to trigger the color disc displayed on the first electronic device and then selects the color in the related art, firstly, the method can display M third color marks through the second electronic device; then, the user can select a color through the second electronic device; then, the second electronic device can send the target color selected by the user to the first electronic device through the indication information, so that the first electronic device can directly draw the pattern by using the target color indicated by the second electronic device, and the user does not need to frequently trigger the first electronic device to display the color wheel to select the color. Therefore, the step of the color changing process of the first electronic equipment can be simplified, the operation of the drawing process of the first electronic equipment is simple and convenient, the efficiency is high, the phenomenon that the first electronic equipment is frequently triggered by a user to display a color wheel, the user is interrupted to draw pictures or write characters due to the fact that the pictures or the characters are drawn can be avoided, and the phenomenon that the color wheel displayed by the first electronic equipment shields the pictures or the characters can be avoided.
The drawing device in the embodiment of the present application may be a device, or may be a component, an integrated circuit, or a chip in a terminal. The device can be mobile electronic equipment or non-mobile electronic equipment. By way of example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the non-mobile electronic device may be a server, a Network Attached Storage (NAS), a Personal Computer (PC), a Television (TV), a teller machine or a self-service machine, and the like, and the embodiments of the present application are not particularly limited.
The drawing device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, and embodiments of the present application are not limited specifically.
The drawing device provided in the embodiment of the present application can implement each process implemented by the method embodiments of fig. 1 to 8, and is not described here again to avoid repetition.
Optionally, as shown in fig. 11, an electronic device 700 is further provided in this embodiment of the present application, and includes a processor 701, a memory 702, and a program or an instruction stored in the memory 702 and executable on the processor 701, where the program or the instruction is executed by the processor 701 to implement each process of the above-mentioned drawing method embodiment, and can achieve the same technical effect, and no further description is provided here to avoid repetition.
It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and the non-mobile electronic devices described above.
Fig. 12 is a schematic hardware structure diagram of an electronic device implementing an embodiment of the present application.
The electronic device 100 includes, but is not limited to: a radio frequency unit 101, a network module 102, an audio output unit 103, an input unit 104, a sensor 105, a display unit 106, a user input unit 107, an interface unit 108, a memory 109, and a processor 110.
Those skilled in the art will appreciate that the electronic device 100 may further comprise a power source (e.g., a battery) for supplying power to various components, and the power source may be logically connected to the processor 110 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system. The electronic device structure shown in fig. 12 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than those shown, or combine some components, or arrange different components, and thus, the description is not repeated here.
The radio frequency unit 101 is configured to receive first indication information sent by a second electronic device when the first electronic device and the second electronic device are in a connected state; the processor 110 is configured to obtain a target color according to the first indication information received by the radio frequency unit 101, where the target color is a color used by the first electronic device to draw a pattern.
Optionally, the user input unit 107 is further configured to receive a first input of the user when the first electronic device and the second electronic device are in a connected state; a display unit 106 for displaying N first color identifiers in response to the first input received by the user input unit 107; a processor 110, further configured to instruct the second electronic device to display X second color identifiers in response to the first input received by the user input unit 107; wherein, one color mark corresponds to one color, N is an integer greater than or equal to 0, and X is a positive integer.
Optionally, N is a positive integer; the user input unit 107 is further configured to receive a second input of the target first color identifier by the user, where the second input is a drag input of the user dragging the target first color identifier to a location where the second electronic device is located, and the target first color identifier is at least one of the N first color identifiers; the processor 110 is further configured to instruct the second electronic device to increase the display of the target first color identification in response to a second input received by the user input unit 107.
The electronic equipment provided by the embodiment of the application is first electronic equipment, and compared with a scheme that a user needs to trigger the color wheel displayed on the first electronic equipment and then select colors in the related art when the user draws patterns (such as drawing pictures or writing characters) through the first electronic equipment, the first electronic equipment in the application can directly adopt the target color indicated by the second electronic equipment to draw the patterns, and the user does not need to frequently trigger the first electronic equipment to display the color wheel to select the colors. Therefore, the step of the color changing process of the first electronic equipment can be simplified, the operation of the drawing process of the first electronic equipment is simple and convenient, the efficiency is high, the phenomenon that the first electronic equipment is frequently triggered by a user to display a color wheel, the user is interrupted to draw pictures or write characters due to the fact that the pictures or the characters are drawn can be avoided, and the phenomenon that the color wheel displayed by the first electronic equipment shields the pictures or the characters can be avoided.
Or,
a user input unit 107, configured to receive a third input of a target color identifier from among M third color identifiers by a user when the first electronic device and the second electronic device are in a connected state and the second electronic device displays M third color identifiers, where M is a positive integer; a processor 110, configured to determine, in response to a third input received by the user input unit 107, that a color corresponding to the target color identifier is a target color; the radio frequency unit 101 is configured to send first indication information to a first electronic device; the first indication information is used for indicating a target color, and the target color is a color adopted by the first electronic device for drawing the pattern.
Optionally, the M third color identifiers include Y fourth color identifiers, the Y fourth color identifiers are determined by the second electronic device according to second indication information, the second indication information is sent by the first electronic device to the second electronic device, and Y is a positive integer smaller than or equal to M.
Optionally, the M third color identifiers include Z fifth color identifiers, where the Z fifth color identifiers are obtained by the second electronic device through recognition of the target image, and Z is a positive integer smaller than or equal to M.
Optionally, a display unit 106 for displaying the target image; a user input unit 107, further configured to receive a fourth input of the target image by the user; the processor 110 is further configured to, in response to a fourth input received by the user input unit 107, determine a target area of the target image according to input information corresponding to the fourth input; wherein the input information includes any one of: inputting pressure intensity and trajectory; the area size of the target area changes with the change of the fourth input information, and the Z fifth color marks are obtained by the second electronic equipment by identifying the target area.
Optionally, the user input unit 107 is further configured to receive a fifth input of the target image by the user; the processor 110 is further configured to respond to a fifth input received by the user input unit 107, and identify a target image according to an input pressure corresponding to the fifth input; wherein the quantity Z varies with a variation of the input pressure of the fifth input.
The electronic device provided by the embodiment of the application is a second electronic device, and compared with a scheme that a user needs to trigger the first electronic device to display a color disc and select colors in the related art when the user draws patterns (such as drawing pictures or writing characters) through the first electronic device, firstly, the second electronic device in the application can display M third color marks; then, the user can select a color through the second electronic device; then, the second electronic device can send the target color selected by the user to the first electronic device through the indication information, so that the first electronic device can directly draw the pattern by using the target color after receiving the first indication information, and the user does not need to frequently trigger the first electronic device to display the color wheel to select the color. Therefore, the step of the color changing process of the first electronic equipment can be simplified, the operation of the drawing process of the first electronic equipment is simple and convenient, the efficiency is high, the phenomenon that the first electronic equipment is frequently triggered by a user to display a color wheel, the user is interrupted to draw pictures or write characters due to the fact that the pictures or the characters are drawn can be avoided, and the phenomenon that the color wheel displayed by the first electronic equipment shields the pictures or the characters can be avoided.
The beneficial effects of the various implementation manners in this embodiment may specifically refer to the beneficial effects of the corresponding implementation manners in the above method embodiments, and are not described herein again to avoid repetition.
It should be understood that, in the embodiment of the present application, the input Unit 104 may include a Graphics Processing Unit (GPU) 1041 and a microphone 1042, and the Graphics Processing Unit 1041 processes image data of a still picture or a video obtained by an image capturing device (such as a camera) in a video capturing mode or an image capturing mode. The display unit 106 may include a display panel 1061, and the display panel 1061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 107 includes a touch panel 1071 and other input devices 1072. The touch panel 1071 is also referred to as a touch screen. The touch panel 1071 may include two parts of a touch detection device and a touch controller. Other input devices 1072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein. The memory 109 may be used to store software programs as well as various data including, but not limited to, application programs and an operating system. The processor 110 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 110.
The embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or the instruction is executed by a processor, the program or the instruction 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 processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and so on.
The embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to run a program or an instruction to implement each process of the above drawing method embodiment, and can achieve the same technical effect, and in order to avoid repetition, the description is omitted here.
It should be understood that the chips mentioned in the embodiments of the present application may also be referred to as system-on-chip, system-on-chip or system-on-chip, etc.
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. Further, it should be noted that the scope of the methods and apparatus of the embodiments of the present application is not limited to performing the functions in the order illustrated or discussed, but may include performing the functions in a substantially simultaneous manner or in a reverse order based on the functions involved, e.g., the methods described may be performed in an order different than that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.
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 application may be embodied in the form of a computer 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, or a network device) to execute the method according to the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (12)

1. A method of mapping, the method comprising:
under the condition that a first electronic device and a second electronic device are in a connected state, receiving first indication information sent by the second electronic device;
and acquiring a target color according to the first indication information, wherein the target color is a color adopted by the first electronic equipment for drawing a pattern.
2. The method of claim 1, wherein before receiving the first indication information sent by the second electronic device, the method further comprises:
receiving a first input of a user under the condition that the first electronic equipment and the second electronic equipment are in a connected state;
displaying N first color identifiers and instructing the second electronic device to display X second color identifiers in response to the first input;
wherein, one color mark corresponds to one color, N is an integer greater than or equal to 0, and X is a positive integer.
3. The method of claim 2, wherein N is a positive integer;
after displaying the N first color identifiers, the method further comprises:
receiving a second input of the target first color identification from the user, wherein the second input is a dragging input of the user dragging the target first color identification to the position of the second electronic equipment, and the target first color identification is at least one of the N first color identifications;
in response to the second input, instructing the second electronic device to increase display of the target first color identification.
4. A method of mapping, the method comprising:
receiving a third input of a user to a target color identifier in M third color identifiers under the condition that the first electronic device and the second electronic device are in a connection state and the second electronic device displays M third color identifiers, wherein M is a positive integer;
responding to the third input, determining that the color corresponding to the target color identification is the target color, and sending first indication information to the first electronic equipment;
the first indication information is used for indicating the target color, and the target color is a color adopted by the first electronic device for drawing a pattern.
5. The method according to claim 4, wherein the M third color identifiers comprise Y fourth color identifiers, the Y fourth color identifiers are determined by the second electronic device according to second indication information, the second indication information is sent by the first electronic device to the second electronic device, and Y is a positive integer smaller than or equal to M.
6. The method according to claim 4 or 5, wherein the M third color indicators comprise Z fifth color indicators, the Z fifth color indicators are obtained by the second electronic device by recognizing the target image, and Z is a positive integer smaller than or equal to M.
7. The method of claim 6, further comprising:
displaying the target image;
receiving a fourth input of the target image by the user;
responding to the fourth input, and determining a target area of the target image according to input information corresponding to the fourth input;
wherein the input information includes any one of: inputting pressure intensity and trajectory; the area size of the target area changes with the change of the input information of the fourth input, and the Z fifth color identifications are obtained by the second electronic equipment through identifying the target area.
8. The method of claim 7, wherein after displaying the target image, the method further comprises:
receiving a fifth input of the target image by the user;
in response to the fifth input, identifying the target image according to an input pressure corresponding to the fifth input;
wherein the quantity Z varies with a variation of an input pressure of said fifth input.
9. An image-rendering device, characterized in that the image-rendering device comprises: the device comprises a receiving module, an obtaining module and an executing module;
the receiving module is used for receiving first indication information sent by second electronic equipment under the condition that the first electronic equipment and the second electronic equipment are in a connected state;
the obtaining module is configured to obtain a target color according to the first indication information received by the receiving module, where the target color is a color adopted by the first electronic device to draw a pattern.
10. An image-rendering device, characterized in that the image-rendering device comprises: the device comprises a receiving module, a determining module and a sending module;
the receiving module is configured to receive a third input of a user to a target color identifier in M third color identifiers when the first electronic device and the second electronic device are in a connected state and the second electronic device displays M third color identifiers, where M is a positive integer;
the determining module is configured to determine, in response to the third input received by the receiving module, that the color corresponding to the target color identifier is a target color;
the sending module is used for sending first indication information to the first electronic equipment;
the first indication information is used for indicating the target color, and the target color is a color adopted by the first electronic device for drawing a pattern.
11. An electronic device comprising a processor, a memory, and a program or instructions stored on the memory and executable on the processor, the program or instructions when executed by the processor implementing the steps of the drawing method according to any one of claims 1 to 3 or 4 to 8.
12. A readable storage medium, characterized in that it stores thereon a program or instructions which, when executed by a processor, implement the steps of the drawing method according to any one of claims 1 to 3 or 4 to 8.
CN202110604008.9A 2021-05-31 2021-05-31 Drawing method, drawing device, electronic apparatus, and medium Active CN113362410B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110604008.9A CN113362410B (en) 2021-05-31 2021-05-31 Drawing method, drawing device, electronic apparatus, and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110604008.9A CN113362410B (en) 2021-05-31 2021-05-31 Drawing method, drawing device, electronic apparatus, and medium

Publications (2)

Publication Number Publication Date
CN113362410A true CN113362410A (en) 2021-09-07
CN113362410B CN113362410B (en) 2023-04-14

Family

ID=77530546

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110604008.9A Active CN113362410B (en) 2021-05-31 2021-05-31 Drawing method, drawing device, electronic apparatus, and medium

Country Status (1)

Country Link
CN (1) CN113362410B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114816135A (en) * 2021-09-16 2022-07-29 华为技术有限公司 Cross-device drawing system

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120079408A1 (en) * 2010-09-24 2012-03-29 Visibility, Biz. Inc. Systems and methods for generating a swimlane timeline for task data visualization
US20140320516A1 (en) * 2013-04-29 2014-10-30 Samsung Electronics Co., Ltd. Electronic device and icon arrangement method therefor
US20180033175A1 (en) * 2016-07-28 2018-02-01 Sharp Kabushiki Kaisha Image display device and image display system
CN109086297A (en) * 2017-06-14 2018-12-25 贝洱工艺公司 System and method for color selection and computer readable medium
CN109324749A (en) * 2018-09-10 2019-02-12 Oppo(重庆)智能科技有限公司 Drawing practice, device, storage medium and electronic equipment
CN109375854A (en) * 2018-09-26 2019-02-22 Oppo(重庆)智能科技有限公司 Drawing practice, device, storage medium and electronic equipment
CN112083867A (en) * 2020-07-29 2020-12-15 华为技术有限公司 Cross-device object dragging method and device
CN112181181A (en) * 2020-11-09 2021-01-05 维沃移动通信有限公司 Stylus, control method and control device of stylus and storage medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120079408A1 (en) * 2010-09-24 2012-03-29 Visibility, Biz. Inc. Systems and methods for generating a swimlane timeline for task data visualization
US20140320516A1 (en) * 2013-04-29 2014-10-30 Samsung Electronics Co., Ltd. Electronic device and icon arrangement method therefor
US20180033175A1 (en) * 2016-07-28 2018-02-01 Sharp Kabushiki Kaisha Image display device and image display system
CN109086297A (en) * 2017-06-14 2018-12-25 贝洱工艺公司 System and method for color selection and computer readable medium
CN109324749A (en) * 2018-09-10 2019-02-12 Oppo(重庆)智能科技有限公司 Drawing practice, device, storage medium and electronic equipment
CN109375854A (en) * 2018-09-26 2019-02-22 Oppo(重庆)智能科技有限公司 Drawing practice, device, storage medium and electronic equipment
CN112083867A (en) * 2020-07-29 2020-12-15 华为技术有限公司 Cross-device object dragging method and device
CN112181181A (en) * 2020-11-09 2021-01-05 维沃移动通信有限公司 Stylus, control method and control device of stylus and storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
ADOBE官方: "将 Photoshop 伴侣应用程序连接到 Photoshop", 《HTTPS://HELPX.ADOBE.COM/CN/PHOTOSHOP/USING/COMPANION-APPS.HTML》 *
JILL DUFFY: "Adobe Color Lava Review", 《HTTPS://WWW.PCMAG.COM/REVIEWS/ADOBE-COLOR-LAVA》 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114816135A (en) * 2021-09-16 2022-07-29 华为技术有限公司 Cross-device drawing system
WO2023040505A1 (en) * 2021-09-16 2023-03-23 华为技术有限公司 Cross-device drawing system
CN114816135B (en) * 2021-09-16 2023-11-03 华为技术有限公司 Cross-device drawing system

Also Published As

Publication number Publication date
CN113362410B (en) 2023-04-14

Similar Documents

Publication Publication Date Title
CN110851051B (en) Object sharing method and electronic equipment
EP2797300B1 (en) Apparatus and method for transmitting an information in portable device
CN103733162A (en) Method and apparatus for providing character input interface
US9874940B2 (en) Input display control device, thin client system, input display control method, and recording medium
US20140354605A1 (en) Electronic device and handwriting input method
CN107122113B (en) Method and device for generating picture
WO2015058530A1 (en) Method,apparatus and electronic device formoving target element
CN111796734B (en) Application program management method, management device, electronic device and storage medium
CN112162685B (en) Attribute adjusting method and device and electronic equipment
CN105045504A (en) Image content extraction method and apparatus
EP4228242A1 (en) Image processing method and apparatus
WO2022022566A1 (en) Graphic code identification method and apparatus and electronic device
CN113360062A (en) Display control method and device, electronic equipment and readable storage medium
CN113794795B (en) Information sharing method and device, electronic equipment and readable storage medium
CN113703634A (en) Interface display method and device
CN107037888B (en) Input method, input device and input device
CN112911147A (en) Display control method, display control device and electronic equipment
WO2022253181A1 (en) Icon arrangement method and apparatus, and electronic device
CN113362410B (en) Drawing method, drawing device, electronic apparatus, and medium
CN112416199A (en) Control method and device and electronic equipment
CN113885750A (en) Message processing method and device and electronic equipment
CN112148185A (en) Image display method and device
CN111638828A (en) Interface display method and device
CN109144287B (en) Method and device for setting input method interface
CN113852540B (en) Information transmission method, information transmission device 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