WO2023030117A1 - Writing control method and apparatus, and electronic device and storage medium - Google Patents

Writing control method and apparatus, and electronic device and storage medium Download PDF

Info

Publication number
WO2023030117A1
WO2023030117A1 PCT/CN2022/114410 CN2022114410W WO2023030117A1 WO 2023030117 A1 WO2023030117 A1 WO 2023030117A1 CN 2022114410 W CN2022114410 W CN 2022114410W WO 2023030117 A1 WO2023030117 A1 WO 2023030117A1
Authority
WO
WIPO (PCT)
Prior art keywords
input
interface
layer
sub
stylus
Prior art date
Application number
PCT/CN2022/114410
Other languages
French (fr)
Chinese (zh)
Inventor
丁鹏
Original Assignee
维沃移动通信有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 维沃移动通信有限公司 filed Critical 维沃移动通信有限公司
Publication of WO2023030117A1 publication Critical patent/WO2023030117A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/04812Interaction techniques based on cursor appearance or behaviour, e.g. being affected by the presence of displayed objects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • G06F3/04883Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures for inputting data by handwriting, e.g. gesture or text
    • 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

Definitions

  • the application belongs to the technical field of intelligent control, and in particular relates to a writing control method, device, electronic equipment and storage medium.
  • the existing stylus can write in a specific area, such as an interface that supports writing, and then record the writing track and recognize it as text. Since writing does not require mastering the input method, it is very practical for users who do not like to use the keyboard or are not used to using the Chinese input method.
  • the stylus can also be used for precise drawing in a specific application program interface, for example, it can be used for circuit design, CAD design, graphic design, free drawing, etc., and it can also be used for text and data input.
  • the purpose of the embodiment of the present application is to provide a writing control method, device, electronic device and storage medium, which can solve the problem of being unable to write on an interface that does not support writing.
  • the embodiment of the present application provides a writing control method, the method includes:
  • the embodiment of the present application provides a writing control device, which includes:
  • the first input receiving module is configured to receive the first input of the stylus to the first interface; wherein, the first interface is an interface that does not support writing;
  • a layer display module configured to display the first layer on the first interface in response to the first input
  • a second input receiving module configured to receive a second input
  • the input response module is configured to display an input track corresponding to the second input on the first layer or perform a corresponding operation on the first interface based on the input parameter of the second input.
  • an embodiment of the present application provides an electronic device, the electronic device includes a processor, a memory, and a program or instruction stored in the memory and operable on the processor, and the program or instruction is The processor implements the steps of the method described in the first aspect when executed.
  • an embodiment of the present application provides a readable storage medium, on which a program or an instruction is stored, and when the program or instruction is executed by a processor, the steps of the method described in the first aspect are implemented .
  • the embodiment of the present application provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is used to run programs or instructions, so as to implement the first aspect The steps of the method.
  • the present application by receiving the first input from the stylus on the first interface, and then responding to the first input, displaying the first layer on the first interface, and then receiving the second input, based on the second input Input parameters, display the input track corresponding to the second input on the first layer or perform corresponding operations on the first interface, because the first layer can display the input track corresponding to the second input, in addition, you can also use the second input to The first interface is used for manipulation. Therefore, it is guaranteed that the user can perform normal interface operations and at the same time write and mark on interfaces that do not support writing.
  • Fig. 1 is one of schematic diagrams showing a writing control application scenario according to an exemplary embodiment
  • Fig. 2 is one of the flowcharts of a writing control method shown according to an exemplary embodiment
  • Fig. 3a is the second schematic diagram of a writing control application scenario according to an exemplary embodiment
  • Fig. 3b is a third schematic diagram of a writing control application scenario according to an exemplary embodiment
  • Fig. 4 is the second flowchart of a writing control method according to an exemplary embodiment
  • Fig. 5 is a fourth schematic diagram of a writing control application scenario according to an exemplary embodiment
  • Fig. 6 is a structural block diagram of a writing control device according to an exemplary embodiment
  • Fig. 7 is a structural block diagram of an electronic device according to an exemplary embodiment
  • FIG. 8 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
  • the writing control method provided in this application can be applied to the scene shown in FIG. 1 , and will be described in detail with reference to FIG. 1 .
  • Fig. 1 is a schematic diagram showing a writing control application scenario according to an exemplary embodiment.
  • the writing control method provided by the embodiment of the present application can be applied to an application scenario where a user writes on an electronic device.
  • a user may include a stylus 110 and an electronic device 120 .
  • the electronic device 120 may be a mobile phone or a tablet computer, or other devices capable of communicating with the stylus 110 .
  • the stylus 110 can be wired or wirelessly connected with the electronic device 120, for example, can be connected through a Universal Serial Bus (Universal Serial Bus, USB) interface or connected through Bluetooth.
  • Universal Serial Bus Universal Serial Bus
  • the corresponding writing track can be directly displayed, or the writing track can be recorded and recognized as text, and input into The corresponding position is not limited here. If the interface 130 displayed on the electronic device 120 does not support writing, for example, a webpage or some application program (Application, APP) interface that does not support writing or marking, writing and marking cannot be performed.
  • Application, APP application program
  • an embodiment of the present application provides a writing control method, that is, receiving a first input from a stylus on a first interface, wherein the first interface is an interface that does not support writing; in response to the first input , display the first layer on the first interface; receive the second input; based on the input parameters of the second input, display the input track corresponding to the second input on the first layer or perform corresponding operations on the first interface.
  • the first layer displays the input track corresponding to the second input or performs corresponding operations on the first interface. Since the first layer can display the input track corresponding to the second input, in addition, the first interface can also be manipulated through the second input , therefore, it can be ensured that the user can write and mark on the interface that does not support writing at the same time that the user can normally operate the interface.
  • the writing control method provided by the embodiment of the present application will be described in detail below with reference to FIGS. 2-5 .
  • the writing control method provided in the embodiment of the present application may be executed by a writing control device, or a control module in the writing control device for executing the writing control method.
  • the writing control method performed by the writing control device is taken as an example to illustrate the writing control method provided in the embodiment of the present application.
  • Fig. 2 is a flowchart of a writing control method according to an exemplary embodiment.
  • the writing control method may include the following steps:
  • Step 210 receiving a first input from the stylus pen on the first interface.
  • the first interface may be an interface that does not support writing, for example, a web page interface and some APP display interfaces that do not support writing, and of course it may also be other interfaces that do not support writing, which is not limited here.
  • the stylus can be connected in communication with the electronic device corresponding to the first interface, for example, it can be wired through a USB interface, or can be connected wirelessly through Bluetooth.
  • the electronic device may be a mobile phone or a tablet computer, or other devices capable of communicating with the stylus.
  • the first input may be an input indicating entry into writing mode.
  • the user opens the first interface that does not support writing on the electronic device
  • if the user needs to perform a writing operation in the first interface he can perform a first input on the screen of the electronic device by manipulating the stylus to Enter writing mode.
  • Step 220 in response to the first input, display the first layer on the first interface.
  • the background transparency of the first layer may be greater than 0, so that the user can see the content displayed on the first interface through the first layer.
  • Step 230 receiving a second input.
  • the second input may be a writing input or a manipulation input, and the second input may be an input through a stylus, or an input through a finger, which is not limited herein.
  • the user may use a stylus to write or manipulate on the screen of the tablet computer displaying the webpage interface, and of course may also use a finger to write or manipulate, which is not limited herein.
  • Step 240 based on the input parameters of the second input, display the input track corresponding to the second input on the first layer or perform corresponding operations on the first interface.
  • the input parameter of the second input can be the gesture of the stylus, through which it can be determined whether it is in the writing mode or the manipulation mode, so as to determine whether to display the input track corresponding to the second input on the first layer, or to display the input track corresponding to the first input.
  • the interface performs the corresponding operation. For example, when using the front end of the stylus for input, it can be determined to be in the writing mode, and then the input track is displayed on the first layer; interface to control.
  • the first layer displays the input track corresponding to the second input or performs corresponding operations on the first interface. Since the first layer can display the input track corresponding to the second input, in addition, the first interface can also be performed through the second input. Manipulation, therefore, can ensure that the user can perform normal interface operations while writing and marking on interfaces that do not support writing.
  • step 230 may include:
  • step 240 may include:
  • the input track of the second input is displayed on the first layer.
  • the second input may be an input of writing on the screen by using the front end of the stylus, or an input of sliding on the screen by using a finger.
  • the first touch event may be a touch event for writing, and the first layer may be set to respond to the touch event. In this way, the first touch event may be displayed on the first layer according to the track information of the first touch event.
  • the corresponding input track that is, the writing track, can also save the input track corresponding to the second input by saving the first layer.
  • a user's writing input on the first layer through the front end of a stylus or a finger may be received, and a first touch event may be generated according to the writing input, and the first touch event may be detected by the first layer Intercepting, so that the writing track corresponding to the first touch event corresponding to the writing input can be displayed on the first layer.
  • the input track of the second input can be displayed on the first layer, so that the writing track can be displayed on an interface that does not support writing.
  • step 230 may include:
  • step 240 may include:
  • the first layer is set not to respond to touch events
  • an operation corresponding to the second sub-input is performed on the first interface.
  • the second input may include a first sub-input and a second sub-input, wherein the first sub-input may be an input of a stylus, and an input parameter of the first sub-input may be a gesture of the stylus.
  • the first sub-input can be performed on the electronic device through the rear end of the stylus to exit the writing mode and enter the manipulation mode.
  • the second sub-input may be an input of manipulating on the screen by using a rear end of a stylus, or an input of manipulating on the screen by using a finger.
  • a second touch event may be generated according to the second sub-input, and the second touch event may be a touch event for interface manipulation. Since the first layer is set not to respond to touch events, such as canceling the setting of the first layer to intercept touch events or setting the first layer to intercept but not respond to the touch event, the second touch event can It is transmitted to the first interface through the first layer, so as to realize the manipulation of the first interface. At this point, the existing writing track in the first layer can continue to be displayed, but the writing mode cannot be exited and writing cannot be performed.
  • the user needs to manipulate the web interface after writing, he can turn the stylus so that the back end faces the screen of the tablet computer for input, that is, Perform the first sub-input.
  • the tablet computer After the tablet computer receives the input, it can set the first layer not to respond to touch events, and then the user can use the back end of the stylus or directly click or slide on the web interface with the finger operation, that is, to perform the second sub-input.
  • the webpage interface receives the click or slide input of the stylus, the second touch event corresponding to the click or slide input can be transmitted to the webpage interface through the first layer to realize the click or slide operation on the webpage interface .
  • the first interface can be manipulated through the first layer, so that the electronic device can quickly switch from the writing mode to the manipulation mode.
  • the first input may be an input when the stylus is in the first gesture
  • the first sub-input may be an input when the stylus is in the second gesture
  • the first posture may be a downward posture of the stylus for writing
  • the second posture may be an upward posture of the stylus for writing.
  • the writing function and the manipulation function of the stylus can be switched by turning the stylus.
  • an orientation sensor can be provided in the stylus to detect the posture of the stylus.
  • the control pen can generate a first input, and send the first input to the connected electronic device to control it to enter the writing mode; if the cap 320 of the stylus is downward, it is detected that the stylus is in the second posture, and the touch
  • the pen can generate a first sub-input and send the first sub-input to the connected electronic device to control it to enter the manipulation mode.
  • the stylus can be triggered to generate different inputs, thereby instructing the electronic device connected to it to set the first layer to respond or not respond to touch events, and quickly switch between different functions of the stylus , to improve user experience.
  • the first input may be the input when the stylus is pressed at the first end
  • the first sub-input may be the input when the stylus is pressed at the second end. Input while pressing.
  • the first end may be the end of the stylus for writing, such as the nib; the second end may be the end of the stylus for manipulation, such as the cap.
  • pressure sensors can be provided at both ends of the stylus, if the tip 310 of the stylus is pressed, that is, the first end, correspondingly, the stylus can perform the first input; Press the cap 320 of the stylus, that is, the second end, and accordingly, the stylus can perform the first sub-input.
  • the stylus can be accurately triggered to generate different commands without being affected by the user's posture. For example, if a user uses a stylus while lying down, it is impossible to determine whether the user wants to write or manipulate by detecting the gesture of the stylus, but it can be determined whether the user wants to write or manipulate by detecting the pressing end.
  • a button or a touch area can also be set on the stylus, and the user can trigger the stylus to perform the first input or the first sub-input by pressing the button or clicking the touch area. For example, press the key once to perform the first input; press the key twice to perform the first sub-input.
  • the above-mentioned second Touch events perform operations corresponding to the second sub-input on the first interface, which may specifically include:
  • the first interface is controlled to slide to the first position along the first direction
  • the first layer is controlled to slide to the second position along the first direction
  • the first position of the first interface may correspond to the second position of the first layer, and the first direction may be opposite to the second direction.
  • the first interface and the first layer can slide the same distance synchronously, so that the handwriting on the first layer can always correspond to the content displayed on the first interface.
  • the user uses the cap of the stylus pen or the finger to slide the web page interface up, that is, slides along the second direction, and can control the web page interface and the first layer to slide down synchronously, that is, the first direction, and slide the same distance .
  • the first interface and the first layer can be slid synchronously, so as to continue writing and marking on the first layer after sliding the first interface.
  • the writing control method may further include: steps 211-212, wherein:
  • Step 211 take a screen capture operation on the first interface to obtain a first image.
  • the screenshot operation can be performed at any time after receiving the first input and before superimposing the first layer and the second layer to obtain the second image, that is, it can be performed at any time after step 210 and before step 241, and the step Step 211, step 212 and step 220 may be executed simultaneously, which is not limited here.
  • step 211 when the first interface slides to the first position along the first direction, step 211 may specifically include:
  • the first interface may be scrolled and captured to obtain the first image.
  • the first image may be a long screenshot from the position displayed on the first interface when the electronic device receives the first input to the position displayed when the sliding ends, that is, the first position.
  • the scrolling screenshot operation may be performed during the sliding of the first interface, or after the first interface is slid to the first position.
  • the webpage interface can be scrolled and captured.
  • the user's handwriting can not be limited to the currently displayed content, and the user can also continue to write on the new content displayed after sliding the interface, which expands the scope of writing.
  • Step 212 displaying the first image between the first interface and the first layer.
  • the first image obtained by taking a screenshot of the first interface may be displayed between the first interface and the first layer.
  • the writing control method may also include: steps 241-242, wherein:
  • Step 241 superimposing the first layer and the second layer to obtain a second image.
  • the second layer may be a layer corresponding to the first image
  • the first layer may be a layer displaying the input trajectory
  • the second image may be an image displaying the content of the first image and the input trajectory.
  • the user finishes writing and exits the current writing track display process, or jumps from the first interface to another interface through user manipulation in the manipulation mode, or the user creates a third layer in the writing mode to use When writing, it indicates that the writing operation process is over. At this time, the first layer and the second layer can be synthesized to obtain the second image.
  • Step 242 save the second image.
  • images corresponding to the first layer and the second layer may also be saved respectively.
  • the multiple second images can be saved in an album, or the multiple second images can be combined into an image group and stored as a PDF document
  • the form of storage is not limited here.
  • the tablet when the user uses the stylus with the tip of the pen facing down, the tablet can create the first layer and perform a screenshot operation on the currently displayed webpage interface to obtain a screenshot of the webpage interface, and then create the first layer on the webpage interface.
  • the screenshot is displayed between the first layer and the corresponding writing track can be displayed on the first layer after the user uses the stylus to write on the screen.
  • the second layer corresponding to the screenshot of the web page interface and the first layer showing the writing track can be superimposed and saved, and then the second image showing the content of the web page interface and its corresponding writing track can be obtained. For sharing, recording, etc.
  • the first image can be obtained by taking a screenshot of the first interface, and the second layer corresponding to the first image is superimposed on the first layer to obtain a second image containing the display content of the first interface and its corresponding writing trace , making it easy for users to save the content they want to mark.
  • the stylus in the above-mentioned writing control method can also include an erasing function.
  • the electronic device recognizes the writing track and converts it into the text of the input box , if the user needs to erase the text in the input box, he can turn the stylus and use the other end of the stylus to smear the text in the input box to be erased, and the smeared text will be deleted.
  • the stylus can be used to erase characters at any position among multiple characters, and after erasing, the position corresponding to the erased characters can be vacant.
  • the tablet computer recognizes the writing track and converts it into the input box text 510: "The user wrote the text and converted the input box text”, and the user wants to delete the " Input the word "input”, you can turn the stylus, use the round end 520 of the stylus to smear the position 530 where the word "input” is located, and the original position 530 where the word "input” is located is blank after smearing.
  • this erasing function can also be used in drawing scenes. For example, when using a stylus to erase lines, it can simulate the erasing traces that are light in the middle and dark on both sides after erasing with a real eraser, making it easier to The effect of drawing on the device is closer to the effect of drawing on paper.
  • the present application also provides a writing control device.
  • the writing control device provided by the embodiment of the present application will be described in detail below with reference to FIG. 6 .
  • Fig. 6 is a structural block diagram of a writing control device according to an exemplary embodiment.
  • the writing control device 600 may include:
  • the first input receiving module 601 is configured to receive a first instruction for the first interface sent by the stylus; wherein, the first interface is an interface that does not support writing;
  • the input response module 604 is configured to display an input track corresponding to the second input on the first layer or perform a corresponding operation on the first interface based on the input parameters of the second input.
  • the above-mentioned writing control device 600 will be described in detail below, specifically as follows:
  • the second input receiving module 603 may specifically include:
  • the first receiving submodule is configured to receive a second input to the first layer; wherein, the first layer is set to respond to a touch event;
  • Input response module 604 including:
  • the track display submodule is configured to display the input track of the second input on the first layer according to the first touch event corresponding to the second input.
  • the second input receiving module 603 may specifically include:
  • the second receiving submodule is configured to receive a second input to the first interface, and the second input includes a first sub-input and a second sub-input; wherein, the first sub-input is an input of a stylus;
  • Input response module 604 may include:
  • the layer setting submodule is used to set the first layer to not respond to touch events based on the input parameters of the first sub-input;
  • An event transfer submodule configured to transfer a second touch event corresponding to the second sub-input to the first interface based on the second sub-input;
  • the operation execution sub-module is configured to execute an operation corresponding to the second sub-input on the first interface according to the second touch event.
  • the operation execution submodule may include:
  • a sliding control unit configured to control the first interface to slide to the first position along the first direction according to the second touch event, and control the first layer to slide to the second position along the first direction;
  • the first position of the first interface corresponds to the second position of the first layer, and the first direction is opposite to the second direction.
  • the writing control device 600 may further include:
  • a screen capture module configured to perform a screen capture operation on the first interface to obtain the first image after receiving the first input from the stylus to the first interface;
  • a first image display module configured to display a first image between the first interface and the first layer
  • the writing control device 600 may also include:
  • the overlay module is configured to overlay the first layer and the second layer after displaying the input trajectory corresponding to the second input on the first layer or performing corresponding operations on the first interface based on the input parameters of the second input, to obtain The second image; wherein, the second layer is a layer corresponding to the first image;
  • the saving module is used for saving the second image.
  • the screenshot module when the first interface is slid to the first position along the first direction, the screenshot module may include:
  • the screenshot sub-module is configured to scroll and capture the first interface along the first direction until the first interface slides to the first position, end the scrolling and screenshot operation, and obtain the first image.
  • the first input is an input of the stylus in the first posture
  • the first sub-input is an instruction generated by the stylus in the second posture
  • the first input is an input when the first end of the stylus is pressed
  • the first sub-input is an input when the second end of the stylus is pressed.
  • the first layer displays the input track corresponding to the second input or performs corresponding operations on the first interface. Since the first layer can display the input track corresponding to the second input, in addition, the first interface can also be performed through the second input. Manipulation, therefore, can ensure that the user can perform normal interface operations while writing and marking on interfaces that do not support writing.
  • the writing control 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 may be a mobile electronic device or a non-mobile electronic device.
  • the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a handheld computer, a vehicle electronic device, a wearable device, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook or a personal digital assistant (personal digital assistant).
  • non-mobile electronic devices can be servers, network attached storage (Network Attached Storage, NAS), personal computer (personal computer, PC), television (television, TV), teller machine or self-service machine, etc., this application Examples are not specifically limited.
  • Network Attached Storage NAS
  • personal computer personal computer, PC
  • television television
  • teller machine or self-service machine etc.
  • the writing control device in the embodiment of the present application may be a device with an operating system.
  • the operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, which are not specifically limited in this embodiment of the present application.
  • the writing control device provided in the embodiment of the present application can realize various processes realized by the method embodiments in FIG. 1 to FIG. 5 , and details are not repeated here to avoid repetition.
  • the embodiment of the present application further provides an electronic device 700, including a processor 701, a memory 702, and programs or instructions stored in the memory 702 and operable on the processor 701,
  • the program or instruction is executed by the processor 701
  • the various processes of the above-mentioned writing control method embodiment can be achieved, and the same technical effect can be achieved. To avoid repetition, details are not repeated here.
  • the electronic devices in the embodiments of the present application include the above-mentioned mobile electronic devices and non-mobile electronic devices.
  • FIG. 8 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
  • the electronic device 800 includes, but is not limited to: a radio frequency unit 801, a network module 802, an audio output unit 803, an input unit 804, a sensor 805, a display unit 806, a user input unit 807, an interface unit 808, a memory 809, and a processor 810, etc. part.
  • the electronic device 800 can also include a power supply (such as a battery) for supplying power to various components, and the power supply can be logically connected to the processor 810 through the power management system, so that the management of charging, discharging, and function can be realized through the power management system. Consumption management and other functions.
  • a power supply such as a battery
  • the structure of the electronic device shown in FIG. 8 does not constitute a limitation to the electronic device.
  • the electronic device may include more or fewer components than shown in the figure, or combine some components, or arrange different components, and details will not be repeated here. .
  • the input unit 804 is configured to receive a first input from the stylus to the first interface, wherein the first interface is an interface that does not support writing;
  • a processor 810 configured to display a first layer on a first interface in response to a first input
  • a user input unit 807 configured to receive a second input
  • the display unit 806 is configured to display an input track corresponding to the second input on the first layer or perform a corresponding operation on the first interface based on the input parameter of the second input.
  • the first layer displays the input track corresponding to the second input or performs corresponding operations on the first interface. Since the first layer can display the input track corresponding to the second input, in addition, the first interface can also be performed through the second input. Manipulation, therefore, can ensure that the user can perform normal interface operations while writing and marking on interfaces that do not support writing.
  • the user input unit 807 is specifically configured to receive a second input to the first layer; wherein, the first layer is set to respond to a touch event;
  • the display unit 806 is specifically configured to display the input track of the second input on the first layer according to the first touch event corresponding to the second input;
  • the user input unit 807 is specifically configured to receive a second input to the first interface, where the second input includes a first sub-input and a second sub-input; wherein, the first sub-input is an input of a stylus;
  • the processor 810 is further configured to set the first layer to not respond to touch events based on the input parameters of the first sub-input;
  • an operation corresponding to the second sub-input is performed on the first interface.
  • the processor 810 is further configured to, when the first interface is an interface extending along the first direction, and the second touch event is a sliding touch event along the second direction, according to the second touch event , control the first interface to slide to the first position along the first direction, and control the first layer to slide to the second position along the first direction;
  • the first position of the first interface corresponds to the second position of the first layer, and the first direction is opposite to the second direction.
  • the processor 810 is further configured to perform a screenshot operation on the first interface to obtain the first image after receiving the first input from the stylus on the first interface;
  • the processor 810 is further configured to superimpose the first layer and the second layer after displaying the input track corresponding to the second input on the first layer or performing a corresponding operation on the first interface based on the input parameter of the second input , to obtain the second image; wherein, the second layer is the layer corresponding to the first image;
  • the processor 810 is specifically configured to, when the first interface slides to the first position along the first direction, perform a scrolling and screenshot operation on the first interface along the first direction until the first interface slides to the first position , end the scrolling screenshot operation, and obtain the first image.
  • the two functions of writing and manipulation can be quickly switched, so that the user can freely write and manipulate with the stylus on an interface that does not support writing, thereby improving user experience.
  • the input unit 804 may include a graphics processor (Graphics Processing Unit, GPU) 8041 and a microphone 8042, and the graphics processor 8041 is used for the image capture device (such as the image data of the still picture or video obtained by the camera) for processing.
  • the display unit 806 may include a display panel 8061, and the display panel 8061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like.
  • the user input unit 807 includes a touch panel 8071 and other input devices 8072 .
  • the touch panel 8071 is also called a touch screen.
  • the touch panel 8071 may include two parts, a touch detection device and a touch controller.
  • Other input devices 8072 may include, but are not limited to, physical keyboards, function keys (such as volume control buttons, switch buttons, etc.), trackballs, mice, and joysticks, which will not be repeated here.
  • Memory 809 may be used to store software programs as well as various data, including but not limited to application programs and operating systems.
  • the processor 810 may integrate an application processor and a modem processor, wherein the application processor mainly processes operating systems, user interfaces, and application programs, and the modem processor mainly processes wireless communications. It can be understood that the foregoing modem processor may not be integrated into the processor 810 .
  • the embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, each process of the above embodiment of the writing control method is realized, and the same To avoid repetition, the technical effects will not be repeated here.
  • the processor is the processor in the electronic device described in the above embodiments.
  • the readable storage medium includes computer readable storage medium, such as computer read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk or optical disk, etc.
  • the embodiment of the present application further provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the above writing control method embodiment Each process can achieve the same technical effect, so in order to avoid repetition, it will not be repeated here.
  • chips mentioned in the embodiments of the present application may also be called system-on-chip, system-on-chip, system-on-a-chip, or system-on-a-chip.
  • the term “comprising”, “comprising” or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article or apparatus comprising a set of elements includes not only those elements, It also includes other elements not expressly listed, or elements inherent in the process, method, article, or device. Without further limitations, an element defined by the phrase “comprising a " does not preclude the presence of additional identical elements in the process, method, article, or apparatus comprising that element.
  • the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved. Functions are performed, for example, the described methods may be performed in an order different from that described, and various steps may also be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.

Landscapes

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

Abstract

The present application belongs to the technical field of intelligent control. Disclosed are a writing control method and apparatus, and an electronic device and a storage medium. The writing control method comprises: receiving a first input of a stylus for a first interface, wherein the first interface is an interface that does not support writing; in response to the first input, displaying a first layer on the first interface; receiving a second input; and on the basis of an input parameter of the second input, displaying, on the first layer, an input trajectory corresponding to the second input, or executing a corresponding operation for the first interface.

Description

书写控制方法、装置、电子设备及存储介质Writing control method, device, electronic device and storage medium
相关申请的交叉引用Cross References to Related Applications
本申请要求享有于2021年08月31日提交的名称为“书写控制方法、装置、电子设备及存储介质”的中国专利申请202111012762.X的优先权,该申请的全部内容通过引用并入本文中。This application claims the priority of Chinese patent application 202111012762.X filed on August 31, 2021, entitled "writing control method, device, electronic equipment and storage medium", the entire content of which is incorporated herein by reference .
技术领域technical field
本申请属于智能控制技术领域,具体涉及一种书写控制方法、装置、电子设备及存储介质。The application belongs to the technical field of intelligent control, and in particular relates to a writing control method, device, electronic equipment and storage medium.
背景技术Background technique
随着触摸屏的广泛应用以及用户对精准控制需求的提高,触控笔应运而生。With the wide application of touch screens and the improvement of users' demand for precise control, the stylus came into being.
现有的触控笔可以在特定的区域,例如支持书写的界面内进行书写,然后将书写轨迹记录下来,识别为文字。由于书写不需要掌握输入法,因此对于不喜欢使用键盘或者不习惯使用中文输入法的用户来说是非常实用的。触控笔也可以用于在特定的应用程序界面中进行精确制图,例如可用于电路设计、CAD设计、图形设计、自由绘画等,还可以用于文本和数据的输入。The existing stylus can write in a specific area, such as an interface that supports writing, and then record the writing track and recognize it as text. Since writing does not require mastering the input method, it is very practical for users who do not like to use the keyboard or are not used to using the Chinese input method. The stylus can also be used for precise drawing in a specific application program interface, for example, it can be used for circuit design, CAD design, graphic design, free drawing, etc., and it can also be used for text and data input.
但是目前大多数应用程序的界面并不支持书写标记功能,因此,用户无法在不支持书写的界面进行书写和标记。However, the interface of most application programs does not support the writing mark function at present, therefore, the user cannot write and mark on the interface that does not support writing.
发明内容Contents of the invention
本申请实施例的目的是提供一种书写控制方法、装置、电子设备及存储介质,能够解决无法在不支持书写的界面进行书写的问题。The purpose of the embodiment of the present application is to provide a writing control method, device, electronic device and storage medium, which can solve the problem of being unable to write on an interface that does not support writing.
第一方面,本申请实施例提供了一种书写控制方法,该方法包括:In the first aspect, the embodiment of the present application provides a writing control method, the method includes:
接收触控笔对第一界面的第一输入,其中,第一界面为不支持书写的界面;receiving a first input from the stylus on the first interface, where the first interface is an interface that does not support writing;
响应于第一输入,在第一界面上显示第一图层;displaying the first layer on the first interface in response to the first input;
接收第二输入;receiving a second input;
基于第二输入的输入参数,在第一图层显示第二输入对应的输入轨迹或者对第一界面执行对应的操作。Based on the input parameters of the second input, an input track corresponding to the second input is displayed on the first layer or a corresponding operation is performed on the first interface.
第二方面,本申请实施例提供了一种书写控制装置,该装置包括:In the second aspect, the embodiment of the present application provides a writing control device, which includes:
第一输入接收模块,用于接收触控笔对第一界面的第一输入;其中,第一界面为不支持书写的界面;The first input receiving module is configured to receive the first input of the stylus to the first interface; wherein, the first interface is an interface that does not support writing;
图层显示模块,用于响应于第一输入,在第一界面上显示第一图层;a layer display module, configured to display the first layer on the first interface in response to the first input;
第二输入接收模块,用于接收第二输入;a second input receiving module, configured to receive a second input;
输入响应模块,用于基于第二输入的输入参数,在第一图层显示第二输入对应的输入轨迹或者对第一界面执行对应的操作。The input response module is configured to display an input track corresponding to the second input on the first layer or perform a corresponding operation on the first interface based on the input parameter of the second input.
第三方面,本申请实施例提供了一种电子设备,该电子设备包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如第一方面所述的方法的步骤。In a third aspect, an embodiment of the present application provides an electronic device, the electronic device includes a processor, a memory, and a program or instruction stored in the memory and operable on the processor, and the program or instruction is The processor implements the steps of the method described in the first aspect when executed.
第四方面,本申请实施例提供了一种可读存储介质,所述可读存储介质上存储程序或指令,所述程序或指令被处理器执行时实现如第一方面所述的方法的步骤。In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or an instruction is stored, and when the program or instruction is executed by a processor, the steps of the method described in the first aspect are implemented .
第五方面,本申请实施例提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现如第一方面所述的方法的步骤。In the fifth aspect, the embodiment of the present application provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is used to run programs or instructions, so as to implement the first aspect The steps of the method.
在本申请实施例中,通过接收触控笔对第一界面的第一输入,然后响应于第一输入,在第一界面上显示第一图层,再接收第二输入,基于第二输入的输入参数,在第一图层显示第二输入对应的输入轨迹或者对第一界面执行对应的操作,由于第一图层可以显示第二输入对应的输入轨迹,另外,也可以通过第二输入对第一界面进行操控,因此,可以保证用户能够正常进行界面操作的同时,还能在不支持书写的界面上进行书写和标记。In the embodiment of the present application, by receiving the first input from the stylus on the first interface, and then responding to the first input, displaying the first layer on the first interface, and then receiving the second input, based on the second input Input parameters, display the input track corresponding to the second input on the first layer or perform corresponding operations on the first interface, because the first layer can display the input track corresponding to the second input, in addition, you can also use the second input to The first interface is used for manipulation. Therefore, it is guaranteed that the user can perform normal interface operations and at the same time write and mark on interfaces that do not support writing.
附图说明Description of drawings
图1是根据一示例性实施例示出的一种书写控制应用场景的示意图之一;Fig. 1 is one of schematic diagrams showing a writing control application scenario according to an exemplary embodiment;
图2是根据一示例性实施例示出的一种书写控制方法的流程图之一;Fig. 2 is one of the flowcharts of a writing control method shown according to an exemplary embodiment;
图3a是根据一示例性实施例示出的一种书写控制应用场景的示意图之二;Fig. 3a is the second schematic diagram of a writing control application scenario according to an exemplary embodiment;
图3b是根据一示例性实施例示出的一种书写控制应用场景的示意图之三;Fig. 3b is a third schematic diagram of a writing control application scenario according to an exemplary embodiment;
图4是根据一示例性实施例示出的一种书写控制方法的流程图之二;Fig. 4 is the second flowchart of a writing control method according to an exemplary embodiment;
图5是根据一示例性实施例示出的一种书写控制应用场景的示意图之四;Fig. 5 is a fourth schematic diagram of a writing control application scenario according to an exemplary embodiment;
图6是根据一示例性实施例示出的一种书写控制装置的结构框图;Fig. 6 is a structural block diagram of a writing control device according to an exemplary embodiment;
图7是根据一示例性实施例示出的一种电子设备的结构框图;Fig. 7 is a structural block diagram of an electronic device according to an exemplary embodiment;
图8为实现本申请实施例的一种电子设备的硬件结构示意图。FIG. 8 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员获得的所有其他实施例,都属于本申请保护的范围。The following will clearly describe the technical solutions in the embodiments of the present application with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, but not all of them. All other embodiments obtained by persons of ordinary skill in the art based on the embodiments in this application belong to the protection scope of this application.
本申请的说明书和权利要求书中的术语“第一”、“第二”等是用于区别类似的对象,而不用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便本申请的实施例能够以除了在这里图示或描述的那些以外的顺序实施,且“第一”、“第二”等所区分的对象通常为一类,并不限定对象的个数,例如第一对象可以是一个,也可以是多个。此外,说明书以及权利要求中“和/或”表示所连接对象的至少其中之一,字符“/”,一般表示前后关联对象是一种“或”的关系。The terms "first", "second" and the like in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific sequence or sequence. It should be understood that the terms so used are interchangeable under appropriate circumstances such that the embodiments of the application can be practiced in sequences other than those illustrated or described herein, and that references to "first," "second," etc. distinguish Objects are generally of one type, and the number of objects is not limited. For example, there may be one or more first objects. In addition, "and/or" in the specification and claims means at least one of the connected objects, and the character "/" generally means that the related objects are an "or" relationship.
下面结合附图,通过具体的实施例及其应用场景对本申请实施例提供 的书写控制方法、装置、电子设备及存储介质进行详细地说明。The writing control method, device, electronic equipment and storage medium provided by the embodiments of the present application will be described in detail below through specific embodiments and application scenarios in conjunction with the accompanying drawings.
本申请所提供的书写控制方法,可以应用于如图1所示的场景中,具体结合图1进行详细说明。The writing control method provided in this application can be applied to the scene shown in FIG. 1 , and will be described in detail with reference to FIG. 1 .
图1是根据一示例性实施例示出的一种书写控制应用场景的示意图。Fig. 1 is a schematic diagram showing a writing control application scenario according to an exemplary embodiment.
本申请实施例提供的书写控制方法可应用于用户在电子设备上进行书写的应用场景中,如图1所示,可以包括触控笔110和电子设备120。其中,电子设备120可以是手机或者平板电脑,也可以是其他能够与触控笔110通信连接的设备。触控笔110可以与电子设备120有线连接或者无线连接,例如,可以通过通用串行总线(Universal Serial Bus,USB)接口连接或者通过蓝牙连接。The writing control method provided by the embodiment of the present application can be applied to an application scenario where a user writes on an electronic device. As shown in FIG. 1 , it may include a stylus 110 and an electronic device 120 . Wherein, the electronic device 120 may be a mobile phone or a tablet computer, or other devices capable of communicating with the stylus 110 . The stylus 110 can be wired or wirelessly connected with the electronic device 120, for example, can be connected through a Universal Serial Bus (Universal Serial Bus, USB) interface or connected through Bluetooth.
示例性地,用户使用触控笔110在电子设备120显示的界面130上书写时,若界面130支持书写,则可以直接显示对应的书写轨迹,或者将书写轨迹记录下来并识别为文字,输入到对应的位置处,在此不做限定。若电子设备120上显示的界面130不支持书写,例如,网页或者一些不支持书写或标记的应用程序(Application,APP)界面,则无法进行书写和标记。Exemplarily, when the user uses the stylus 110 to write on the interface 130 displayed on the electronic device 120, if the interface 130 supports writing, the corresponding writing track can be directly displayed, or the writing track can be recorded and recognized as text, and input into The corresponding position is not limited here. If the interface 130 displayed on the electronic device 120 does not support writing, for example, a webpage or some application program (Application, APP) interface that does not support writing or marking, writing and marking cannot be performed.
为了解决上述问题,本申请实施例提供了一种书写控制方法,也即,接收触控笔对第一界面的第一输入,其中,第一界面为不支持书写的界面;响应于第一输入,在第一界面上显示第一图层;接收第二输入;基于第二输入的输入参数,在第一图层显示第二输入对应的输入轨迹或者对第一界面执行对应的操作。In order to solve the above problems, an embodiment of the present application provides a writing control method, that is, receiving a first input from a stylus on a first interface, wherein the first interface is an interface that does not support writing; in response to the first input , display the first layer on the first interface; receive the second input; based on the input parameters of the second input, display the input track corresponding to the second input on the first layer or perform corresponding operations on the first interface.
这样,通过接收触控笔对第一界面的第一输入,然后响应于第一输入,在第一界面上显示第一图层,再接收第二输入,基于第二输入的输入参数,在第一图层显示第二输入对应的输入轨迹或者对第一界面执行对应的操作,由于第一图层可以显示第二输入对应的输入轨迹,另外,也可以通过第二输入对第一界面进行操控,因此,可以保证用户能够正常进行界面操作的同时,还能在不支持书写的界面上进行书写和标记。In this way, by receiving the first input from the stylus on the first interface, then displaying the first layer on the first interface in response to the first input, and then receiving the second input, based on the input parameters of the second input, at the The first layer displays the input track corresponding to the second input or performs corresponding operations on the first interface. Since the first layer can display the input track corresponding to the second input, in addition, the first interface can also be manipulated through the second input , therefore, it can be ensured that the user can write and mark on the interface that does not support writing at the same time that the user can normally operate the interface.
根据上述应用场景,下面结合图2-图5对本申请实施例提供的书写控制方法进行详细说明。需要说明的是,本申请实施例提供的书写控制方 法,执行主体可以为书写控制装置,或者该书写控制装置中的用于执行书写控制的方法的控制模块。本申请实施例中以书写控制装置执行书写控制方法为例,说明本申请实施例提供的书写控制方法。According to the above application scenarios, the writing control method provided by the embodiment of the present application will be described in detail below with reference to FIGS. 2-5 . It should be noted that, the writing control method provided in the embodiment of the present application may be executed by a writing control device, or a control module in the writing control device for executing the writing control method. In the embodiment of the present application, the writing control method performed by the writing control device is taken as an example to illustrate the writing control method provided in the embodiment of the present application.
图2是根据一示例性实施例示出的一种书写控制方法的流程图。Fig. 2 is a flowchart of a writing control method according to an exemplary embodiment.
如图2所示,该书写控制方法可以包括如下步骤:As shown in Figure 2, the writing control method may include the following steps:
步骤210,接收触控笔对第一界面的第一输入。 Step 210, receiving a first input from the stylus pen on the first interface.
本申请实施例中,第一界面可以为不支持书写的界面,例如,网页界面和一些不支持书写的APP的显示界面,当然还可以是其他不支持书写的界面,在此不做限定。触控笔可以与第一界面对应的电子设备通信连接,例如,可以通过USB接口有线连接,也可以通过蓝牙无线连接。电子设备可以是手机或者平板电脑,也可以是其他能够与触控笔通信连接的设备。第一输入可以是用于指示进入书写模式的输入。In the embodiment of the present application, the first interface may be an interface that does not support writing, for example, a web page interface and some APP display interfaces that do not support writing, and of course it may also be other interfaces that do not support writing, which is not limited here. The stylus can be connected in communication with the electronic device corresponding to the first interface, for example, it can be wired through a USB interface, or can be connected wirelessly through Bluetooth. The electronic device may be a mobile phone or a tablet computer, or other devices capable of communicating with the stylus. The first input may be an input indicating entry into writing mode.
示例性地,用户在电子设备上打开不支持书写的第一界面后,若用户需要在该第一界面中进行书写操作,可通过操控触控笔,在电子设备屏幕上进行第一输入,以进入书写模式。For example, after the user opens the first interface that does not support writing on the electronic device, if the user needs to perform a writing operation in the first interface, he can perform a first input on the screen of the electronic device by manipulating the stylus to Enter writing mode.
步骤220,响应于第一输入,在第一界面上显示第一图层。 Step 220, in response to the first input, display the first layer on the first interface.
可选地,第一图层的背景透明度可以大于0,便于用户可以透过第一图层看到第一界面显示的内容。Optionally, the background transparency of the first layer may be greater than 0, so that the user can see the content displayed on the first interface through the first layer.
步骤230,接收第二输入。 Step 230, receiving a second input.
这里,第二输入可以为书写输入或操控输入,该第二输入可以为通过触控笔进行的输入,也可以为通过手指进行的输入,在此不做限定。Here, the second input may be a writing input or a manipulation input, and the second input may be an input through a stylus, or an input through a finger, which is not limited herein.
示例性地,用户可以用触控笔在显示网页界面的平板电脑的屏幕上进行书写或操控,当然也可以用手指进行书写或操控,在此不做限定。Exemplarily, the user may use a stylus to write or manipulate on the screen of the tablet computer displaying the webpage interface, and of course may also use a finger to write or manipulate, which is not limited herein.
步骤240,基于第二输入的输入参数,在第一图层显示第二输入对应的输入轨迹或者对第一界面执行对应的操作。 Step 240, based on the input parameters of the second input, display the input track corresponding to the second input on the first layer or perform corresponding operations on the first interface.
这里,第二输入的输入参数可以为触控笔的姿态,通过该输入参数可以确定处于书写模式或操控模式,从而确定是在第一图层显示第二输入对应的输入轨迹,还是对第一界面执行对应的操作。例如,利用触控笔的前端进行输入时,可确定处于书写模式,进而在第一图层上显示输入轨迹; 利用触控笔的后端进行输入时,可确定处于操控模式,进而对第一界面进行操控。Here, the input parameter of the second input can be the gesture of the stylus, through which it can be determined whether it is in the writing mode or the manipulation mode, so as to determine whether to display the input track corresponding to the second input on the first layer, or to display the input track corresponding to the first input. The interface performs the corresponding operation. For example, when using the front end of the stylus for input, it can be determined to be in the writing mode, and then the input track is displayed on the first layer; interface to control.
由此,通过接收触控笔对第一界面的第一输入,然后响应于第一输入,在第一界面上显示第一图层,再接收第二输入,基于第二输入的输入参数,在第一图层显示第二输入对应的输入轨迹或者对第一界面执行对应的操作,由于第一图层可以显示第二输入对应的输入轨迹,另外,也可以通过第二输入对第一界面进行操控,因此,可以保证用户能够正常进行界面操作的同时,还能在不支持书写的界面上进行书写和标记。Thus, by receiving the first input from the stylus on the first interface, then displaying the first layer on the first interface in response to the first input, and then receiving the second input, based on the input parameters of the second input, the The first layer displays the input track corresponding to the second input or performs corresponding operations on the first interface. Since the first layer can display the input track corresponding to the second input, in addition, the first interface can also be performed through the second input. Manipulation, therefore, can ensure that the user can perform normal interface operations while writing and marking on interfaces that do not support writing.
基于此,在一种可选的实施方式中,步骤230可以包括:Based on this, in an optional implementation manner, step 230 may include:
接收对第一图层的第二输入;receiving a second input to the first layer;
基于此,步骤240可以包括:Based on this, step 240 may include:
根据第二输入对应的第一触控事件,在第一图层显示第二输入的输入轨迹。According to the first touch event corresponding to the second input, the input track of the second input is displayed on the first layer.
这里,第二输入可以为利用触控笔的前端在屏幕上进行书写的输入,或是利用手指在屏幕上进行的滑动输入。其中,第一触控事件可以为用于进行书写的触控事件,第一图层可以设置为响应触控事件,如此,可以根据第一触控事件的轨迹信息,在第一图层上显示相应的输入轨迹,也即书写轨迹,还可以通过保存该第一图层,将第二输入对应的输入轨迹保存下来。Here, the second input may be an input of writing on the screen by using the front end of the stylus, or an input of sliding on the screen by using a finger. Wherein, the first touch event may be a touch event for writing, and the first layer may be set to respond to the touch event. In this way, the first touch event may be displayed on the first layer according to the track information of the first touch event. The corresponding input track, that is, the writing track, can also save the input track corresponding to the second input by saving the first layer.
示例性地,可以接收用户通过触控笔的前端或手指在第一图层上进行的书写输入,根据该书写输入可以生成第一触控事件,该第一触控事件可以被第一图层拦截,从而可在第一图层中显示与该书写输入对应的第一触控事件对应的书写轨迹。Exemplarily, a user's writing input on the first layer through the front end of a stylus or a finger may be received, and a first touch event may be generated according to the writing input, and the first touch event may be detected by the first layer Intercepting, so that the writing track corresponding to the first touch event corresponding to the writing input can be displayed on the first layer.
如此,通过将第一图层设置为响应触控事件,可以在第一图层显示第二输入的输入轨迹,从而可以在不支持书写的界面上显示书写轨迹。In this way, by setting the first layer to respond to touch events, the input track of the second input can be displayed on the first layer, so that the writing track can be displayed on an interface that does not support writing.
此外,在另一种可选的实施方式中,步骤230可以包括:In addition, in another optional implementation manner, step 230 may include:
接收对第一界面的第二输入;receiving a second input on the first interface;
相应的,步骤240可以包括:Correspondingly, step 240 may include:
基于第一子输入的输入参数,将第一图层设置为不响应触控事件;Based on the input parameters of the first sub-input, the first layer is set not to respond to touch events;
基于第二子输入,将与第二子输入对应的第二触控事件传递至第一界面;Based on the second sub-input, transmitting a second touch event corresponding to the second sub-input to the first interface;
根据第二触控事件,对第一界面执行与第二子输入对应的操作。According to the second touch event, an operation corresponding to the second sub-input is performed on the first interface.
这里,第二输入可以包括第一子输入和第二子输入,其中,第一子输入可以为触控笔的输入,第一子输入的输入参数可以为触控笔的姿态。在用户需要对第一界面进行操控时,可通过触控笔的后端对电子设备进行第一子输入,以退出书写模式,进入操控模式。Here, the second input may include a first sub-input and a second sub-input, wherein the first sub-input may be an input of a stylus, and an input parameter of the first sub-input may be a gesture of the stylus. When the user needs to manipulate the first interface, the first sub-input can be performed on the electronic device through the rear end of the stylus to exit the writing mode and enter the manipulation mode.
其中,第二子输入可以为利用触控笔的后端在屏幕上进行操控的输入,或是利用手指在屏幕上进行的操控的输入。根据该第二子输入可以生成第二触控事件,第二触控事件可以为用于进行界面操控的触控事件。由于将第一图层设置为不响应触控事件,例如取消第一图层拦截触控事件的设置或者设置第一图层拦截但不响应该触控事件,因此,该第二触控事件可以透过第一图层传递至第一界面,从而实现对第一界面的操控。此时,可继续显示第一图层中已有的书写轨迹,但退出书写模式,无法进行书写。Wherein, the second sub-input may be an input of manipulating on the screen by using a rear end of a stylus, or an input of manipulating on the screen by using a finger. A second touch event may be generated according to the second sub-input, and the second touch event may be a touch event for interface manipulation. Since the first layer is set not to respond to touch events, such as canceling the setting of the first layer to intercept touch events or setting the first layer to intercept but not respond to the touch event, the second touch event can It is transmitted to the first interface through the first layer, so as to realize the manipulation of the first interface. At this point, the existing writing track in the first layer can continue to be displayed, but the writing mode cannot be exited and writing cannot be performed.
示例性地,在平板电脑上显示的不支持书写的网页界面中,若用户在书写完毕后需要对该网页界面进行操控,可以调转触控笔使后端朝向平板电脑的屏幕进行输入,也即进行第一子输入,平板电脑在接收到该输入后,可将第一图层设置为不响应触控事件,然后用户可使用触控笔的后端或直接通过手指在网页界面进行点击或滑动操作,也即进行第二子输入。该网页界面接收触控笔的点击或滑动输入后,可将与该点击或滑动输入对应的第二触控事件透过第一图层传递至网页界面,实现对该网页界面的点击或滑动操作。Exemplarily, in the web interface displayed on the tablet computer that does not support writing, if the user needs to manipulate the web interface after writing, he can turn the stylus so that the back end faces the screen of the tablet computer for input, that is, Perform the first sub-input. After the tablet computer receives the input, it can set the first layer not to respond to touch events, and then the user can use the back end of the stylus or directly click or slide on the web interface with the finger operation, that is, to perform the second sub-input. After the webpage interface receives the click or slide input of the stylus, the second touch event corresponding to the click or slide input can be transmitted to the webpage interface through the first layer to realize the click or slide operation on the webpage interface .
此外,在操控完毕后还可以退出操控模式,再次进入书写模式,具体书写过程在此不再赘述,在最终书写完毕后,可以通过点击特定按钮或者切换其他界面来彻底退出书写模式,当然也可以通过其他方式彻底退出书写模式,在此不做限定。例如,可以点击“保存”按钮将已有书写轨迹保存并彻底退出书写模式,相应的,第一界面上不再显示已有的书写轨迹。In addition, after the manipulation is completed, you can also exit the manipulation mode and enter the writing mode again. The specific writing process will not be repeated here. After the final writing is completed, you can click a specific button or switch to other interfaces to completely exit the writing mode. Of course, you can also Completely exit the writing mode through other methods, which are not limited here. For example, the "Save" button can be clicked to save the existing writing track and completely exit the writing mode. Correspondingly, the existing writing track will no longer be displayed on the first interface.
如此,通过将第一图层设置为不响应触控事件,可以透过第一图层对 第一界面进行操控,从而使电子设备快速从书写模式切换为操控模式。In this way, by setting the first layer not to respond to touch events, the first interface can be manipulated through the first layer, so that the electronic device can quickly switch from the writing mode to the manipulation mode.
基于此,在一种可选的实施方式中,第一输入可以为触控笔在第一姿态的情况下的输入,第一子输入可以为触控笔在第二姿态的情况下的输入。Based on this, in an optional implementation manner, the first input may be an input when the stylus is in the first gesture, and the first sub-input may be an input when the stylus is in the second gesture.
这里,第一姿态可以为触控笔用于书写的一端向下的姿态,第二姿态可以为触控笔用于书写的一端向上的姿态。通过调转触控笔可以切换触控笔的书写功能和操控功能。Here, the first posture may be a downward posture of the stylus for writing, and the second posture may be an upward posture of the stylus for writing. The writing function and the manipulation function of the stylus can be switched by turning the stylus.
示例性地,如图3a和3b所示,可以在触控笔内设置方位传感器来检测触控笔的姿态,若触控笔笔头310向下,则检测到触控笔处于第一姿态,触控笔可以生成第一输入,并将该第一输入发送至连接的电子设备,以控制其进入书写模式;若触控笔笔帽320向下,则检测到触控笔处于第二姿态,触控笔可以生成第一子输入,并将该第一子输入发送至连接的电子设备,以控制其进入操控模式。Exemplarily, as shown in Figures 3a and 3b, an orientation sensor can be provided in the stylus to detect the posture of the stylus. The control pen can generate a first input, and send the first input to the connected electronic device to control it to enter the writing mode; if the cap 320 of the stylus is downward, it is detected that the stylus is in the second posture, and the touch The pen can generate a first sub-input and send the first sub-input to the connected electronic device to control it to enter the manipulation mode.
如此,通过检测触控笔的姿态,便可以触发触控笔生成不同输入,从而指示与其连接的电子设备将第一图层设置为响应或不响应触控事件,快速切换触控笔的不同功能,提升用户体验。In this way, by detecting the gesture of the stylus, the stylus can be triggered to generate different inputs, thereby instructing the electronic device connected to it to set the first layer to respond or not respond to touch events, and quickly switch between different functions of the stylus , to improve user experience.
除此之外,在另一种可选的实施方式中,第一输入可以为触控笔在第一端被按压的情况下的输入,第一子输入可以为触控笔在第二端被按压的情况下的输入。In addition, in another optional implementation manner, the first input may be the input when the stylus is pressed at the first end, and the first sub-input may be the input when the stylus is pressed at the second end. Input while pressing.
这里,第一端可以为触控笔用于书写的一端,例如笔头;第二端可以为触控笔用于操控的一端,例如笔帽。Here, the first end may be the end of the stylus for writing, such as the nib; the second end may be the end of the stylus for manipulation, such as the cap.
示例性地,如图3a和3b所示,可以在触控笔两端设置按压传感器,若按压触控笔笔头310,也即第一端,相应地,触控笔可以进行第一输入;若按压触控笔笔帽320,也即第二端,相应地,触控笔可以进行第一子输入。Exemplarily, as shown in Figures 3a and 3b, pressure sensors can be provided at both ends of the stylus, if the tip 310 of the stylus is pressed, that is, the first end, correspondingly, the stylus can perform the first input; Press the cap 320 of the stylus, that is, the second end, and accordingly, the stylus can perform the first sub-input.
如此,通过按压触控笔不同端,触发触控笔进行不同输入,可以不受用户使用姿态的影响,准确触发触控笔生成不同指令。例如,若用户躺着使用触控笔,便无法通过检测触控笔的姿态判断用户想要书写还是操控,而通过检测按压端则可以确定用户想要书写还是操控。In this way, by pressing different ends of the stylus to trigger the stylus to perform different inputs, the stylus can be accurately triggered to generate different commands without being affected by the user's posture. For example, if a user uses a stylus while lying down, it is impossible to determine whether the user wants to write or manipulate by detecting the gesture of the stylus, but it can be determined whether the user wants to write or manipulate by detecting the pressing end.
此外,还可以在触控笔上设置按键或触控区域,用户通过按压按键或点击触控区域,可触发触控笔进行第一输入或第一子输入。例如,按压按键一次,进行第一输入;按压按键两次,进行第一子输入。In addition, a button or a touch area can also be set on the stylus, and the user can trigger the stylus to perform the first input or the first sub-input by pressing the button or clicking the touch area. For example, press the key once to perform the first input; press the key twice to perform the first sub-input.
基于此,在一种可选的实施方式中,在第一界面为沿第一方向延伸的界面,且第二触控事件为沿第二方向的滑动触控事件的情况下,上述根据第二触控事件,对第一界面执行与第二子输入对应的操作,具体可以包括:Based on this, in an optional implementation manner, when the first interface is an interface extending along the first direction, and the second touch event is a sliding touch event along the second direction, the above-mentioned second Touch events, perform operations corresponding to the second sub-input on the first interface, which may specifically include:
根据第二触控事件,控制第一界面沿第一方向滑动至第一位置,以及控制第一图层沿第一方向滑动至第二位置。According to the second touch event, the first interface is controlled to slide to the first position along the first direction, and the first layer is controlled to slide to the second position along the first direction.
这里,第一界面的第一位置可以与第一图层的第二位置相对应,第一方向可以与第二方向相反。在接收到用户的滑动输入的情况下,该第一界面和第一图层可以同步滑动相同的距离,以使第一图层上的笔迹与第一界面中显示的内容可以始终保持对应。Here, the first position of the first interface may correspond to the second position of the first layer, and the first direction may be opposite to the second direction. In the case of receiving the user's sliding input, the first interface and the first layer can slide the same distance synchronously, so that the handwriting on the first layer can always correspond to the content displayed on the first interface.
示例性地,用户使用触控笔笔帽或手指对网页界面进行向上滑动,也即沿第二方向滑动,可控制网页界面和第一图层同步向下,也即第一方向,滑动相同的距离。Exemplarily, the user uses the cap of the stylus pen or the finger to slide the web page interface up, that is, slides along the second direction, and can control the web page interface and the first layer to slide down synchronously, that is, the first direction, and slide the same distance .
如此,通过第二子输入对应的第二触控事件,可以使第一界面和第一图层同步滑动,便于在滑动第一界面后继续在第一图层上进行书写和标记。In this way, through the second touch event corresponding to the second sub-input, the first interface and the first layer can be slid synchronously, so as to continue writing and marking on the first layer after sliding the first interface.
基于上述步骤210-240,在一种可能的实施例中,如图4所示,在步骤210之后,该书写控制方法还可以包括:步骤211-212,其中:Based on the above steps 210-240, in a possible embodiment, as shown in FIG. 4, after step 210, the writing control method may further include: steps 211-212, wherein:
步骤211,对第一界面进行截屏操作,得到第一图像。 Step 211, take a screen capture operation on the first interface to obtain a first image.
这里,截屏操作可以在接收第一输入之后、叠加第一图层和第二图层得到第二图像之前的任意时刻执行,也即可以在步骤210之后、步骤241之前的任意时刻执行,并且步骤211、步骤212和步骤220可以同时执行,在此不做限定。Here, the screenshot operation can be performed at any time after receiving the first input and before superimposing the first layer and the second layer to obtain the second image, that is, it can be performed at any time after step 210 and before step 241, and the step Step 211, step 212 and step 220 may be executed simultaneously, which is not limited here.
基于此,在一种可选的实施方式中,在第一界面沿第一方向滑动至第一位置的情况下,步骤211具体可以包括:Based on this, in an optional implementation manner, when the first interface slides to the first position along the first direction, step 211 may specifically include:
对第一界面沿第一方向进行滚动截屏操作,直至第一界面滑动至第一 位置,结束滚动截屏操作,得到第一图像。Perform a scrolling screenshot operation on the first interface along the first direction until the first interface slides to the first position, end the scrolling screenshot operation, and obtain the first image.
这里,若第一界面被滑动,可以对第一界面进行滚动截屏,得到第一图像。该第一图像可以是从电子设备接收到第一输入时第一界面显示的位置,到滑动结束时显示的位置也即第一位置的长截图。滚动截屏操作可以在第一界面滑动的过程中执行,也可以在第一界面滑动到第一位置之后执行。Here, if the first interface is slid, the first interface may be scrolled and captured to obtain the first image. The first image may be a long screenshot from the position displayed on the first interface when the electronic device receives the first input to the position displayed when the sliding ends, that is, the first position. The scrolling screenshot operation may be performed during the sliding of the first interface, or after the first interface is slid to the first position.
示例性地,可以在用户通过触控笔操控网页界面向下滑动的同时,对网页界面进行滚动截屏。Exemplarily, when the user manipulates the webpage interface to slide down through the stylus, the webpage interface can be scrolled and captured.
如此,通过滚动截屏,可以使用户的书写笔迹所针对的内容,可以不限于当前显示的内容,用户还可以对界面滑动后显示的新内容继续进行书写,扩大了书写范围。In this way, by scrolling and capturing the screen, the user's handwriting can not be limited to the currently displayed content, and the user can also continue to write on the new content displayed after sliding the interface, which expands the scope of writing.
步骤212,在第一界面与第一图层之间显示第一图像。 Step 212, displaying the first image between the first interface and the first layer.
这里,对第一界面进行截屏操作得到的第一图像可以显示在第一界面和第一图层中间。Here, the first image obtained by taking a screenshot of the first interface may be displayed between the first interface and the first layer.
基于此,在步骤240之后,该书写控制方法还可以包括:步骤241-242,其中:Based on this, after step 240, the writing control method may also include: steps 241-242, wherein:
步骤241,叠加第一图层和第二图层,得到第二图像。 Step 241, superimposing the first layer and the second layer to obtain a second image.
这里,第二图层可以为第一图像对应的图层,第一图层可以为显示输入轨迹的图层,第二图像可以为显示第一图像内容以及输入轨迹的图像。Here, the second layer may be a layer corresponding to the first image, the first layer may be a layer displaying the input trajectory, and the second image may be an image displaying the content of the first image and the input trajectory.
示例性地,可在用户完成书写并退出当前书写轨迹显示进程时,或在操控模式下通过用户操控从第一界面跳转为其他界面时,亦或在书写模式中用户新建第三图层用于书写时,表明该次书写操作过程结束,此时,可对第一图层和第二图层进行合成,得到第二图像。Exemplarily, when the user finishes writing and exits the current writing track display process, or jumps from the first interface to another interface through user manipulation in the manipulation mode, or the user creates a third layer in the writing mode to use When writing, it indicates that the writing operation process is over. At this time, the first layer and the second layer can be synthesized to obtain the second image.
步骤242,保存第二图像。 Step 242, save the second image.
这里,除了保存第二图像之外,还可对第一图层和第二图层对应的图像分别进行保存。Here, in addition to saving the second image, images corresponding to the first layer and the second layer may also be saved respectively.
示例性地,在多次书写操作过程结束后,若存在多张第二图像,可以把多张第二图像保存在一个相册中,也可以将该多张第二图像组成图像组并以PDF文档的形式进行保存,在此不作限定。Exemplarily, after multiple writing operations are completed, if there are multiple second images, the multiple second images can be saved in an album, or the multiple second images can be combined into an image group and stored as a PDF document The form of storage is not limited here.
在一个具体例子中,当用户以笔头朝下的姿态使用触控笔时,平板可以创建第一图层并对当前显示的网页界面进行截屏操作,得到该网页界面的截图,继而在该网页界面和第一图层之间显示该截图,在用户使用触控笔在屏幕上进行书写之后,可在第一图层上显示对应的书写轨迹。在用户退出书写操作过程时,可将网页界面截图对应的第二图层和显示有书写轨迹的第一图层叠加后进行保存,得到显示有网页界面内容及其对应书写轨迹的第二图像,以便进行分享、记录等。In a specific example, when the user uses the stylus with the tip of the pen facing down, the tablet can create the first layer and perform a screenshot operation on the currently displayed webpage interface to obtain a screenshot of the webpage interface, and then create the first layer on the webpage interface. The screenshot is displayed between the first layer and the corresponding writing track can be displayed on the first layer after the user uses the stylus to write on the screen. When the user quits the writing operation process, the second layer corresponding to the screenshot of the web page interface and the first layer showing the writing track can be superimposed and saved, and then the second image showing the content of the web page interface and its corresponding writing track can be obtained. For sharing, recording, etc.
如此,通过对第一界面进行截屏操作可得到第一图像,并将第一图像对应的第二图层和第一图层叠加,得到包含第一界面显示内容及其对应书写轨迹的第二图像,从而可以方便用户保存想要标记的内容。In this way, the first image can be obtained by taking a screenshot of the first interface, and the second layer corresponding to the first image is superimposed on the first layer to obtain a second image containing the display content of the first interface and its corresponding writing trace , making it easy for users to save the content they want to mark.
此外,上述书写控制方法中的触控笔还可以包括擦除功能,当用户使用触控笔的一端在支持书写的输入框内进行书写后,电子设备识别书写轨迹并将其转换为输入框文字,若用户需要擦除该输入框文字,可以调转触控笔,使用触控笔的另一端涂抹需要擦除的输入框文字,被涂抹到的文字便会被删除。通过该触控笔可以擦除多个文字中任意位置的文字,擦除后,该被擦除文字对应的位置可以空置。In addition, the stylus in the above-mentioned writing control method can also include an erasing function. When the user uses one end of the stylus to write in the input box that supports writing, the electronic device recognizes the writing track and converts it into the text of the input box , if the user needs to erase the text in the input box, he can turn the stylus and use the other end of the stylus to smear the text in the input box to be erased, and the smeared text will be deleted. The stylus can be used to erase characters at any position among multiple characters, and after erasing, the position corresponding to the erased characters can be vacant.
示例性地,如图5所示,用户使用触控笔尖端进行书写后,平板电脑识别书写轨迹并转成输入框文字510:“用户书写文字转输入框文字”,此时用户想要删除“输入”二字,便可以调转触控笔,使用触控笔圆端520涂抹“输入”二字所在的位置530,涂抹后原来“输入”二字所在的位置530显示为空白。Exemplarily, as shown in Figure 5, after the user writes with the tip of the stylus, the tablet computer recognizes the writing track and converts it into the input box text 510: "The user wrote the text and converted the input box text", and the user wants to delete the " Input the word "input", you can turn the stylus, use the round end 520 of the stylus to smear the position 530 where the word "input" is located, and the original position 530 where the word "input" is located is blank after smearing.
除了擦除文字之外,该擦除功能还可以用于画画的场景,例如,使用触控笔擦除线条时,可以模拟真实橡皮擦除后中间淡两边深的擦除痕迹,使在电子设备上画画的效果更贴近在纸上画画的效果。In addition to erasing text, this erasing function can also be used in drawing scenes. For example, when using a stylus to erase lines, it can simulate the erasing traces that are light in the middle and dark on both sides after erasing with a real eraser, making it easier to The effect of drawing on the device is closer to the effect of drawing on paper.
基于相同的发明构思,本申请还提供了一种书写控制装置。下面结合图6对本申请实施例提供的书写控制装置进行详细说明。Based on the same inventive concept, the present application also provides a writing control device. The writing control device provided by the embodiment of the present application will be described in detail below with reference to FIG. 6 .
图6是根据一示例性实施例示出的一种书写控制装置的结构框图。Fig. 6 is a structural block diagram of a writing control device according to an exemplary embodiment.
如图6所示,书写控制装置600可以包括:As shown in FIG. 6, the writing control device 600 may include:
第一输入接收模块601,用于接收触控笔发送的针对第一界面的第一 指令;其中,第一界面为不支持书写的界面;The first input receiving module 601 is configured to receive a first instruction for the first interface sent by the stylus; wherein, the first interface is an interface that does not support writing;
图层显示模块602,用于响应于第一输入,在第一界面上显示第一图层;A layer display module 602, configured to display the first layer on the first interface in response to the first input;
第二输入接收模块603,用于接收第二输入;A second input receiving module 603, configured to receive a second input;
输入响应模块604,用于基于第二输入的输入参数,在第一图层显示第二输入对应的输入轨迹或者对第一界面执行对应的操作。The input response module 604 is configured to display an input track corresponding to the second input on the first layer or perform a corresponding operation on the first interface based on the input parameters of the second input.
下面对上述书写控制装置600进行详细说明,具体如下所示:The above-mentioned writing control device 600 will be described in detail below, specifically as follows:
在其中一个实施例中,第二输入接收模块603,具体可以包括:In one of the embodiments, the second input receiving module 603 may specifically include:
第一接收子模块,用于接收对第一图层的第二输入;其中,第一图层设置为响应触控事件;The first receiving submodule is configured to receive a second input to the first layer; wherein, the first layer is set to respond to a touch event;
输入响应模块604,包括: Input response module 604, including:
轨迹显示子模块,用于根据第二输入对应的第一触控事件,在第一图层显示第二输入的输入轨迹。The track display submodule is configured to display the input track of the second input on the first layer according to the first touch event corresponding to the second input.
在其中一个实施例中,第二输入接收模块603,具体可以包括:In one of the embodiments, the second input receiving module 603 may specifically include:
第二接收子模块,用于接收对第一界面的第二输入,第二输入包括第一子输入和第二子输入;其中,第一子输入为触控笔的输入;The second receiving submodule is configured to receive a second input to the first interface, and the second input includes a first sub-input and a second sub-input; wherein, the first sub-input is an input of a stylus;
输入响应模块604,可以包括: Input response module 604, may include:
图层设置子模块,用于基于第一子输入的输入参数,将第一图层设置为不响应触控事件;The layer setting submodule is used to set the first layer to not respond to touch events based on the input parameters of the first sub-input;
事件传递子模块,用于基于第二子输入,将与第二子输入对应的第二触控事件传递至第一界面;An event transfer submodule, configured to transfer a second touch event corresponding to the second sub-input to the first interface based on the second sub-input;
操作执行子模块,用于根据第二触控事件,对第一界面执行与第二子输入对应的操作。The operation execution sub-module is configured to execute an operation corresponding to the second sub-input on the first interface according to the second touch event.
在其中一个实施例中,在第一界面为沿第一方向延伸的界面,且第二触控事件为沿第二方向的滑动触控事件的情况下,操作执行子模块,可以包括:In one of the embodiments, when the first interface is an interface extending along the first direction, and the second touch event is a sliding touch event along the second direction, the operation execution submodule may include:
滑动控制单元,用于根据第二触控事件控制第一界面沿第一方向滑动至第一位置,以及控制第一图层沿第一方向滑动至第二位置;A sliding control unit, configured to control the first interface to slide to the first position along the first direction according to the second touch event, and control the first layer to slide to the second position along the first direction;
其中,第一界面的第一位置与第一图层的第二位置相对应,第一方向 与第二方向相反。Wherein, the first position of the first interface corresponds to the second position of the first layer, and the first direction is opposite to the second direction.
在其中一个实施例中,该书写控制装置600,还可以包括:In one of the embodiments, the writing control device 600 may further include:
截屏模块,用于在接收触控笔对第一界面的第一输入之后,对第一界面进行截屏操作,得到第一图像;A screen capture module, configured to perform a screen capture operation on the first interface to obtain the first image after receiving the first input from the stylus to the first interface;
第一图像显示模块,用于在第一界面与第一图层之间显示第一图像;a first image display module, configured to display a first image between the first interface and the first layer;
该书写控制装置600还可以包括:The writing control device 600 may also include:
叠加模块,用于在基于第二输入的输入参数,在第一图层显示第二输入对应的输入轨迹或者对第一界面执行对应的操作之后,叠加第一图层和第二图层,得到第二图像;其中,第二图层为第一图像对应的图层;The overlay module is configured to overlay the first layer and the second layer after displaying the input trajectory corresponding to the second input on the first layer or performing corresponding operations on the first interface based on the input parameters of the second input, to obtain The second image; wherein, the second layer is a layer corresponding to the first image;
保存模块,用于保存第二图像。The saving module is used for saving the second image.
在其中一个实施例中,在第一界面沿第一方向滑动至第一位置的情况下,截屏模块,可以包括:In one of the embodiments, when the first interface is slid to the first position along the first direction, the screenshot module may include:
截屏子模块,用于对第一界面沿第一方向进行滚动截屏操作,直至第一界面滑动至第一位置,结束滚动截屏操作,得到第一图像。The screenshot sub-module is configured to scroll and capture the first interface along the first direction until the first interface slides to the first position, end the scrolling and screenshot operation, and obtain the first image.
在其中一个实施例中,第一输入为触控笔在第一姿态的情况下的输入,第一子输入为触控笔在确定为第二姿态的情况下生成的指令。In one embodiment, the first input is an input of the stylus in the first posture, and the first sub-input is an instruction generated by the stylus in the second posture.
在其中一个实施例中,第一输入为触控笔在第一端被按压的情况下的输入,第一子输入为触控笔在第二端被按压的情况下的输入。In one embodiment, the first input is an input when the first end of the stylus is pressed, and the first sub-input is an input when the second end of the stylus is pressed.
由此,通过接收触控笔对第一界面的第一输入,然后响应于第一输入,在第一界面上显示第一图层,再接收第二输入,基于第二输入的输入参数,在第一图层显示第二输入对应的输入轨迹或者对第一界面执行对应的操作,由于第一图层可以显示第二输入对应的输入轨迹,另外,也可以通过第二输入对第一界面进行操控,因此,可以保证用户能够正常进行界面操作的同时,还能在不支持书写的界面上进行书写和标记。Thus, by receiving the first input from the stylus on the first interface, then displaying the first layer on the first interface in response to the first input, and then receiving the second input, based on the input parameters of the second input, the The first layer displays the input track corresponding to the second input or performs corresponding operations on the first interface. Since the first layer can display the input track corresponding to the second input, in addition, the first interface can also be performed through the second input. Manipulation, therefore, can ensure that the user can perform normal interface operations while writing and marking on interfaces that do not support writing.
本申请实施例中的书写控制装置可以是装置,也可以是终端中的部件、集成电路、或芯片。该装置可以是移动电子设备,也可以为非移动电子设备。示例性的,移动电子设备可以为手机、平板电脑、笔记本电脑、掌上电脑、车载电子设备、可穿戴设备、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本或者个人数字助理 (personal digital assistant,PDA)等,非移动电子设备可以为服务器、网络附属存储器(Network Attached Storage,NAS)、个人计算机(personal computer,PC)、电视机(television,TV)、柜员机或者自助机等,本申请实施例不作具体限定。The writing control 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 may be a mobile electronic device or a non-mobile electronic device. Exemplarily, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a handheld computer, a vehicle electronic device, a wearable device, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook or a personal digital assistant (personal digital assistant). assistant, PDA), etc., non-mobile electronic devices can be servers, network attached storage (Network Attached Storage, NAS), personal computer (personal computer, PC), television (television, TV), teller machine or self-service machine, etc., this application Examples are not specifically limited.
本申请实施例中的书写控制装置可以为具有操作系统的装置。该操作系统可以为安卓(Android)操作系统,可以为ios操作系统,还可以为其他可能的操作系统,本申请实施例不作具体限定。The writing control device in the embodiment of the present application may be a device with an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, which are not specifically limited in this embodiment of the present application.
本申请实施例提供的书写控制装置能够实现图1至图5的方法实施例实现的各个过程,为避免重复,这里不再赘述。The writing control device provided in the embodiment of the present application can realize various processes realized by the method embodiments in FIG. 1 to FIG. 5 , and details are not repeated here to avoid repetition.
可选地,如图7所示,本申请实施例还提供一种电子设备700,包括处理器701,存储器702,存储在存储器702上并可在所述处理器701上运行的程序或指令,该程序或指令被处理器701执行时实现上述书写控制方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。Optionally, as shown in FIG. 7 , the embodiment of the present application further provides an electronic device 700, including a processor 701, a memory 702, and programs or instructions stored in the memory 702 and operable on the processor 701, When the program or instruction is executed by the processor 701, the various processes of the above-mentioned writing control method embodiment can be achieved, and the same technical effect can be achieved. To avoid repetition, details are not repeated here.
需要说明的是,本申请实施例中的电子设备包括上述所述的移动电子设备和非移动电子设备。It should be noted that the electronic devices in the embodiments of the present application include the above-mentioned mobile electronic devices and non-mobile electronic devices.
图8为实现本申请实施例的一种电子设备的硬件结构示意图。FIG. 8 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
该电子设备800包括但不限于:射频单元801、网络模块802、音频输出单元803、输入单元804、传感器805、显示单元806、用户输入单元807、接口单元808、存储器809、以及处理器810等部件。The electronic device 800 includes, but is not limited to: a radio frequency unit 801, a network module 802, an audio output unit 803, an input unit 804, a sensor 805, a display unit 806, a user input unit 807, an interface unit 808, a memory 809, and a processor 810, etc. part.
本领域技术人员可以理解,电子设备800还可以包括给各个部件供电的电源(比如电池),电源可以通过电源管理系统与处理器810逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。图8中示出的电子设备结构并不构成对电子设备的限定,电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置,在此不再赘述。Those skilled in the art can understand that the electronic device 800 can also include a power supply (such as a battery) for supplying power to various components, and the power supply can be logically connected to the processor 810 through the power management system, so that the management of charging, discharging, and function can be realized through the power management system. Consumption management and other functions. The structure of the electronic device shown in FIG. 8 does not constitute a limitation to the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine some components, or arrange different components, and details will not be repeated here. .
其中,输入单元804,用于接收触控笔对第一界面的第一输入,其中,第一界面为不支持书写的界面;Wherein, the input unit 804 is configured to receive a first input from the stylus to the first interface, wherein the first interface is an interface that does not support writing;
处理器810,用于响应于第一输入,在第一界面上显示第一图层;a processor 810, configured to display a first layer on a first interface in response to a first input;
用户输入单元807,用于接收第二输入;a user input unit 807, configured to receive a second input;
显示单元806,用于基于第二输入的输入参数,在第一图层显示第二输入对应的输入轨迹或者对第一界面执行对应的操作。The display unit 806 is configured to display an input track corresponding to the second input on the first layer or perform a corresponding operation on the first interface based on the input parameter of the second input.
由此,通过接收触控笔对第一界面的第一输入,然后响应于第一输入,在第一界面上显示第一图层,再接收第二输入,基于第二输入的输入参数,在第一图层显示第二输入对应的输入轨迹或者对第一界面执行对应的操作,由于第一图层可以显示第二输入对应的输入轨迹,另外,也可以通过第二输入对第一界面进行操控,因此,可以保证用户能够正常进行界面操作的同时,还能在不支持书写的界面上进行书写和标记。Thus, by receiving the first input from the stylus on the first interface, then displaying the first layer on the first interface in response to the first input, and then receiving the second input, based on the input parameters of the second input, the The first layer displays the input track corresponding to the second input or performs corresponding operations on the first interface. Since the first layer can display the input track corresponding to the second input, in addition, the first interface can also be performed through the second input. Manipulation, therefore, can ensure that the user can perform normal interface operations while writing and marking on interfaces that do not support writing.
可选的,用户输入单元807,具体用于接收对第一图层的第二输入;其中,第一图层设置为响应触控事件;Optionally, the user input unit 807 is specifically configured to receive a second input to the first layer; wherein, the first layer is set to respond to a touch event;
显示单元806,具体用于根据第二输入对应的第一触控事件,在第一图层显示第二输入的输入轨迹;The display unit 806 is specifically configured to display the input track of the second input on the first layer according to the first touch event corresponding to the second input;
可选的,用户输入单元807,具体用于接收对第一界面的第二输入,第二输入包括第一子输入和第二子输入;其中,第一子输入为触控笔的输入;Optionally, the user input unit 807 is specifically configured to receive a second input to the first interface, where the second input includes a first sub-input and a second sub-input; wherein, the first sub-input is an input of a stylus;
处理器810,还用于基于第一子输入的输入参数,将第一图层设置为不响应触控事件;The processor 810 is further configured to set the first layer to not respond to touch events based on the input parameters of the first sub-input;
基于第二子输入,将与第二子输入对应的第二触控事件传递至第一界面;Based on the second sub-input, transmitting a second touch event corresponding to the second sub-input to the first interface;
根据第二触控事件,对第一界面执行与第二子输入对应的操作。According to the second touch event, an operation corresponding to the second sub-input is performed on the first interface.
可选的,处理器810,还用于在第一界面为沿第一方向延伸的界面,且第二触控事件为沿第二方向的滑动触控事件的情况下,根据第二触控事件,控制第一界面沿第一方向滑动至第一位置,以及控制第一图层沿第一方向滑动至第二位置;Optionally, the processor 810 is further configured to, when the first interface is an interface extending along the first direction, and the second touch event is a sliding touch event along the second direction, according to the second touch event , control the first interface to slide to the first position along the first direction, and control the first layer to slide to the second position along the first direction;
其中,第一界面的第一位置与第一图层的第二位置相对应,第一方向与第二方向相反。Wherein, the first position of the first interface corresponds to the second position of the first layer, and the first direction is opposite to the second direction.
可选的,处理器810,还用于在接收触控笔对第一界面的第一输入之后,对第一界面进行截屏操作,得到第一图像;Optionally, the processor 810 is further configured to perform a screenshot operation on the first interface to obtain the first image after receiving the first input from the stylus on the first interface;
显示单元806,还用于在第一界面与第一图层之间显示第一图像;a display unit 806, further configured to display a first image between the first interface and the first layer;
处理器810,还用于在基于第二输入的输入参数,在第一图层显示第二输入对应的输入轨迹或者对第一界面执行对应的操作之后,叠加第一图层和第二图层,得到第二图像;其中,第二图层为第一图像对应的图层;The processor 810 is further configured to superimpose the first layer and the second layer after displaying the input track corresponding to the second input on the first layer or performing a corresponding operation on the first interface based on the input parameter of the second input , to obtain the second image; wherein, the second layer is the layer corresponding to the first image;
保存第二图像。Save the second image.
可选的,处理器810,具体用于在第一界面沿第一方向滑动至第一位置的情况下,对第一界面沿第一方向进行滚动截屏操作,直至第一界面滑动至第一位置,结束滚动截屏操作,得到第一图像。Optionally, the processor 810 is specifically configured to, when the first interface slides to the first position along the first direction, perform a scrolling and screenshot operation on the first interface along the first direction until the first interface slides to the first position , end the scrolling screenshot operation, and obtain the first image.
由此,通过调转触控笔的两端,可以快速切换书写和操控两种功能,使用户可以在不支持书写的界面通过触控笔随意进行书写和操控,提升用户体验。Thus, by turning the two ends of the stylus, the two functions of writing and manipulation can be quickly switched, so that the user can freely write and manipulate with the stylus on an interface that does not support writing, thereby improving user experience.
应理解的是,本申请实施例中,输入单元804可以包括图形处理器(Graphics Processing Unit,GPU)8041和麦克风8042,图形处理器8041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。显示单元806可包括显示面板8061,可以采用液晶显示器、有机发光二极管等形式来配置显示面板8061。用户输入单元807包括触控面板8071以及其他输入设备8072。触控面板8071,也称为触摸屏。触控面板8071可包括触摸检测装置和触摸控制器两个部分。其他输入设备8072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。存储器809可用于存储软件程序以及各种数据,包括但不限于应用程序和操作系统。处理器810可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器810中。It should be understood that, in the embodiment of the present application, the input unit 804 may include a graphics processor (Graphics Processing Unit, GPU) 8041 and a microphone 8042, and the graphics processor 8041 is used for the image capture device ( Such as the image data of the still picture or video obtained by the camera) for processing. The display unit 806 may include a display panel 8061, and the display panel 8061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 807 includes a touch panel 8071 and other input devices 8072 . The touch panel 8071 is also called a touch screen. The touch panel 8071 may include two parts, a touch detection device and a touch controller. Other input devices 8072 may include, but are not limited to, physical keyboards, function keys (such as volume control buttons, switch buttons, etc.), trackballs, mice, and joysticks, which will not be repeated here. Memory 809 may be used to store software programs as well as various data, including but not limited to application programs and operating systems. The processor 810 may integrate an application processor and a modem processor, wherein the application processor mainly processes operating systems, user interfaces, and application programs, and the modem processor mainly processes wireless communications. It can be understood that the foregoing modem processor may not be integrated into the processor 810 .
本申请实施例还提供一种可读存储介质,所述可读存储介质上存储有程序或指令,该程序或指令被处理器执行时实现上述书写控制方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。The embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, each process of the above embodiment of the writing control method is realized, and the same To avoid repetition, the technical effects will not be repeated here.
其中,所述处理器为上述实施例中所述的电子设备中的处理器。所述 可读存储介质,包括计算机可读存储介质,如计算机只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等。Wherein, the processor is the processor in the electronic device described in the above embodiments. The readable storage medium includes computer readable storage medium, such as computer read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk or optical disk, etc.
本申请实施例另提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现上述书写控制方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。The embodiment of the present application further provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the above writing control method embodiment Each process can achieve the same technical effect, so in order to avoid repetition, it will not be repeated here.
应理解,本申请实施例提到的芯片还可以称为系统级芯片、系统芯片、芯片系统或片上系统芯片等。It should be understood that the chips mentioned in the embodiments of the present application may also be called system-on-chip, system-on-chip, system-on-a-chip, or system-on-a-chip.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。此外,需要指出的是,本申请实施方式中的方法和装置的范围不限按示出或讨论的顺序来执行功能,还可包括根据所涉及的功能按基本同时的方式或按相反的顺序来执行功能,例如,可以按不同于所描述的次序来执行所描述的方法,并且还可以添加、省去、或组合各种步骤。另外,参照某些示例所描述的特征可在其他示例中被组合。It should be noted that, in this document, the term "comprising", "comprising" or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article or apparatus comprising a set of elements includes not only those elements, It also includes other elements not expressly listed, or elements inherent in the process, method, article, or device. Without further limitations, an element defined by the phrase "comprising a ..." does not preclude the presence of additional identical elements in the process, method, article, or apparatus comprising that element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved. Functions are performed, for example, the described methods may be performed in an order different from that described, and various steps may also be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以计算机软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,或者网络设备等)执行本申请各个实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus a necessary general-purpose hardware platform, and of course also by hardware, but in many cases the former is better implementation. Based on such an understanding, the technical solution of the present application can be embodied in the form of computer software products, which are stored in a storage medium (such as ROM/RAM, magnetic disk, etc.) , optical disc), including several instructions to enable a terminal (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods described in various embodiments of the present application.
上面结合附图对本申请的实施例进行了描述,但是本申请并不局限于 上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本申请的启示下,在不脱离本申请宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本申请的保护之内。The embodiments of the present application have been described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementations. The above-mentioned specific implementations are only illustrative and not restrictive. Those of ordinary skill in the art will Under the inspiration of this application, without departing from the purpose of this application and the scope of protection of the claims, many forms can also be made, all of which belong to the protection of this application.

Claims (21)

  1. 一种书写控制方法,包括:A writing control method, comprising:
    接收触控笔对第一界面的第一输入,其中,所述第一界面为不支持书写的界面;receiving a first input from a stylus pen to a first interface, wherein the first interface is an interface that does not support writing;
    响应于所述第一输入,在所述第一界面上显示第一图层;displaying a first layer on the first interface in response to the first input;
    接收第二输入;receiving a second input;
    基于所述第二输入的输入参数,在所述第一图层显示所述第二输入对应的输入轨迹或者对所述第一界面执行对应的操作。Based on the input parameter of the second input, an input track corresponding to the second input is displayed on the first layer or a corresponding operation is performed on the first interface.
  2. 根据权利要求1所述的方法,其中,所述接收第二输入,包括:The method of claim 1, wherein said receiving a second input comprises:
    接收对所述第一图层的第二输入;其中,所述第一图层设置为响应触控事件;receiving a second input to the first layer; wherein the first layer is configured to respond to a touch event;
    所述基于所述第二输入的输入参数,在所述第一图层显示所述第二输入对应的输入轨迹或者对所述第一界面执行所述第二输入对应的操作,包括:The displaying the input track corresponding to the second input on the first layer based on the input parameter of the second input or performing the operation corresponding to the second input on the first interface includes:
    根据所述第二输入对应的第一触控事件,在所述第一图层显示所述第二输入的输入轨迹。According to the first touch event corresponding to the second input, an input track of the second input is displayed on the first layer.
  3. 根据权利要求1所述的方法,其中,所述接收第二输入,包括:The method of claim 1, wherein said receiving a second input comprises:
    接收对所述第一界面的第二输入,所述第二输入包括第一子输入和第二子输入;其中,所述第一子输入为所述触控笔的输入;receiving a second input on the first interface, the second input including a first sub-input and a second sub-input; wherein the first sub-input is an input of the stylus;
    所述基于所述第二输入的输入参数,在所述第一图层显示所述第二输入对应的输入轨迹或者对所述第一界面执行所述第二输入对应的操作,包括:The displaying the input track corresponding to the second input on the first layer based on the input parameter of the second input or performing the operation corresponding to the second input on the first interface includes:
    基于所述第一子输入的输入参数,将所述第一图层设置为不响应触控事件;Based on the input parameters of the first sub-input, setting the first layer to not respond to touch events;
    基于所述第二子输入,将与所述第二子输入对应的第二触控事件传递至所述第一界面;Based on the second sub-input, transmitting a second touch event corresponding to the second sub-input to the first interface;
    根据所述第二触控事件,对所述第一界面执行与所述第二子输入对应的操作。According to the second touch event, an operation corresponding to the second sub-input is performed on the first interface.
  4. 根据权利要求3所述的方法,其中,在所述第一界面为沿第一方向 延伸的界面,且所述第二触控事件为沿第二方向的滑动触控事件的情况下,所述根据所述第二触控事件,对所述第一界面执行与所述第二子输入对应的操作,包括:The method according to claim 3, wherein, when the first interface is an interface extending along a first direction, and the second touch event is a sliding touch event along a second direction, the According to the second touch event, performing an operation corresponding to the second sub-input on the first interface, including:
    根据所述第二触控事件,控制所述第一界面沿所述第一方向滑动至第一位置,以及控制所述第一图层沿所述第一方向滑动至第二位置;According to the second touch event, controlling the first interface to slide to a first position along the first direction, and controlling the first layer to slide to a second position along the first direction;
    其中,所述第一界面的所述第一位置与所述第一图层的所述第二位置相对应,所述第一方向与所述第二方向相反。Wherein, the first position of the first interface corresponds to the second position of the first layer, and the first direction is opposite to the second direction.
  5. 根据权利要求1-4任一项所述的方法,其中,在接收触控笔对第一界面的第一输入之后,所述方法还包括:The method according to any one of claims 1-4, wherein, after receiving the first input of the stylus to the first interface, the method further comprises:
    对所述第一界面进行截屏操作,得到第一图像;performing a screenshot operation on the first interface to obtain a first image;
    在所述第一界面与所述第一图层之间显示所述第一图像;displaying the first image between the first interface and the first layer;
    在所述基于所述第二输入的输入参数,在所述第一图层显示所述第二输入对应的输入轨迹或者对所述第一界面执行对应的操作之后,所述方法还包括:After the input parameters based on the second input, after the first layer displays the input track corresponding to the second input or performs a corresponding operation on the first interface, the method further includes:
    叠加所述第一图层和第二图层,得到第二图像;其中,所述第二图层为所述第一图像对应的图层;superimposing the first layer and the second layer to obtain a second image; wherein the second layer is a layer corresponding to the first image;
    保存所述第二图像。Save the second image.
  6. 根据权利要求5所述的方法,其中,在所述第一界面沿第一方向滑动至第一位置的情况下,所述对所述第一界面进行截屏操作,得到第一图像,包括:The method according to claim 5, wherein, when the first interface is slid to the first position along the first direction, the screenshot operation of the first interface to obtain the first image comprises:
    对所述第一界面沿所述第一方向进行滚动截屏操作,直至所述第一界面滑动至所述第一位置,结束所述滚动截屏操作,得到所述第一图像。Perform a scrolling screenshot operation on the first interface along the first direction until the first interface slides to the first position, end the scrolling screenshot operation, and obtain the first image.
  7. 根据权利要求3所述的方法,其中,所述第一输入为所述触控笔在第一姿态的情况下的输入,所述第一子输入为所述触控笔在第二姿态的情况下的输入。The method according to claim 3, wherein the first input is an input of the stylus in a first posture, and the first sub-input is a state of the stylus in a second posture input under .
  8. 根据权利要求3所述的方法,其中,所述第一输入为所述触控笔在第一端被按压的情况下的输入,所述第一子输入为所述触控笔在第二端被按压的情况下的输入。The method according to claim 3, wherein the first input is an input when the stylus is pressed at the first end, and the first sub-input is the stylus being pressed at the second end. input while being pressed.
  9. 一种书写控制装置,包括:A writing control device comprising:
    第一输入接收模块,用于接收触控笔对第一界面的第一输入;其中,所述第一界面为不支持书写的界面;The first input receiving module is used to receive the first input of the stylus to the first interface; wherein, the first interface is an interface that does not support writing;
    图层显示模块,用于响应于所述第一输入,在所述第一界面上显示第一图层;a layer display module, configured to display a first layer on the first interface in response to the first input;
    第二输入接收模块,用于接收第二输入;a second input receiving module, configured to receive a second input;
    输入响应模块,用于基于所述第二输入的输入参数,在所述第一图层显示所述第二输入对应的输入轨迹或者对所述第一界面执行对应的操作。The input response module is configured to display an input track corresponding to the second input on the first layer or perform a corresponding operation on the first interface based on the input parameters of the second input.
  10. 根据权利要求9所述的装置,其中,所述第二输入接收模块包括:The device according to claim 9, wherein the second input receiving module comprises:
    第一接收子模块,用于接收对所述第一图层的第二输入;其中,所述第一图层设置为响应触控事件;The first receiving submodule is configured to receive a second input to the first layer; wherein, the first layer is configured to respond to a touch event;
    所述输入响应模块包括:The input response module includes:
    轨迹显示子模块,用于根据所述第二输入对应的第一触控事件,在所述第一图层显示所述第二输入的输入轨迹。The track display submodule is configured to display the input track of the second input on the first layer according to the first touch event corresponding to the second input.
  11. 根据权利要求9所述的装置,其中,所述第二输入接收模块包括:The device according to claim 9, wherein the second input receiving module comprises:
    第二接收子模块,用于接收对所述第一界面的第二输入,所述第二输入包括第一子输入和第二子输入;其中,所述第一子输入为所述触控笔的输入;The second receiving sub-module is configured to receive a second input to the first interface, the second input includes a first sub-input and a second sub-input; wherein the first sub-input is the stylus input of;
    所述输入响应模块包括:The input response module includes:
    图层设置子模块,用于基于所述第一子输入的输入参数,将所述第一图层设置为不响应触控事件;A layer setting submodule, configured to set the first layer not to respond to touch events based on the input parameters of the first sub-input;
    事件传递子模块,用于基于所述第二子输入,将与所述第二子输入对应的第二触控事件传递至所述第一界面;An event transfer submodule, configured to transfer a second touch event corresponding to the second sub-input to the first interface based on the second sub-input;
    操作执行子模块,用于根据所述第二触控事件,对所述第一界面执行与所述第二子输入对应的操作。The operation execution sub-module is configured to execute an operation corresponding to the second sub-input on the first interface according to the second touch event.
  12. 根据权利要求11所述的装置,其中,所述操作执行子模块包括:The device according to claim 11, wherein the operation execution submodule comprises:
    滑动控制单元,用于在所述第一界面为沿第一方向延伸的界面,且所述第二触控事件为沿第二方向的滑动触控事件的情况下,根据所述第二触控事件,控制所述第一界面沿所述第一方向滑动至第一位置,以及控制所述第一图层沿所述第一方向滑动至第二位置;a sliding control unit, configured to, in the case that the first interface is an interface extending along the first direction, and the second touch event is a sliding touch event along the second direction, according to the second touch event, controlling the first interface to slide to a first position along the first direction, and controlling the first layer to slide to a second position along the first direction;
    其中,所述第一界面的所述第一位置与所述第一图层的所述第二位置相对应,所述第一方向与所述第二方向相反。Wherein, the first position of the first interface corresponds to the second position of the first layer, and the first direction is opposite to the second direction.
  13. 根据权利要求9-12任一项所述的装置,还包括:The device according to any one of claims 9-12, further comprising:
    截屏模块,用于在接收触控笔对第一界面的第一输入之后,对所述第一界面进行截屏操作,得到第一图像;A screen capture module, configured to perform a screen capture operation on the first interface to obtain a first image after receiving the first input from the stylus to the first interface;
    第一图像显示模块,用于在所述第一界面与所述第一图层之间显示所述第一图像;a first image display module, configured to display the first image between the first interface and the first layer;
    所述装置还包括:The device also includes:
    叠加模块,用于在所述基于所述第二输入的输入参数,在所述第一图层显示所述第二输入对应的输入轨迹或者对所述第一界面执行对应的操作之后,叠加所述第一图层和第二图层,得到第二图像;其中,所述第二图层为所述第一图像对应的图层;A superposition module, configured to superimpose the input parameters based on the second input, after displaying the input track corresponding to the second input on the first layer or performing a corresponding operation on the first interface. The first layer and the second layer are obtained to obtain a second image; wherein, the second layer is a layer corresponding to the first image;
    保存模块,用于保存所述第二图像。A saving module, configured to save the second image.
  14. 根据权利要求13所述的装置,其中,所述截屏模块包括:The device according to claim 13, wherein the screenshot module comprises:
    截屏子模块,用于在所述第一界面沿第一方向滑动至第一位置的情况下,对所述第一界面沿所述第一方向进行滚动截屏操作,直至所述第一界面滑动至所述第一位置,结束所述滚动截屏操作,得到所述第一图像。The screenshot sub-module is configured to perform a scrolling screenshot operation on the first interface along the first direction until the first interface slides to the first position when the first interface slides to the first position along the first direction. In the first position, the scrolling screen capture operation is ended to obtain the first image.
  15. 根据权利要求11所述的装置,其中,所述第一输入为所述触控笔在第一姿态的情况下的输入,所述第一子输入为所述触控笔在第二姿态的情况下的输入。The device according to claim 11, wherein the first input is an input of the stylus in a first posture, and the first sub-input is a state of the stylus in a second posture input under .
  16. 根据权利要求11所述的装置,其中,所述第一输入为所述触控笔在第一端被按压的情况下的输入,所述第一子输入为所述触控笔在第二端被按压的情况下的输入。The device according to claim 11, wherein the first input is an input when the stylus is pressed at the first end, and the first sub-input is the stylus being pressed at the second end. input while being pressed.
  17. 一种电子设备,包括处理器,存储器及存储在所述存储器上并可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如权利要求1-8任一项所述的书写控制方法的步骤。An electronic device, comprising a processor, a memory, and a program or instruction stored in the memory and operable on the processor, when the program or instruction is executed by the processor, claims 1-8 are implemented The steps of any one of the writing control methods.
  18. 一种电子设备,被配置为用于执行如权利要求1-8中任一项所述的书写控制方法的步骤。An electronic device configured to execute the steps of the writing control method according to any one of claims 1-8.
  19. 一种可读存储介质,所述可读存储介质上存储程序或指令,所述程 序或指令被处理器执行时实现如权利要求1-8任一项所述的书写控制方法的步骤。A readable storage medium, on which a program or an instruction is stored, and when the program or instruction is executed by a processor, the steps of the writing control method according to any one of claims 1-8 are realized.
  20. 一种计算机程序产品,所述计算机程序产品被处理器执行以实现如权利要求1-8中任一项所述的书写控制方法的步骤。A computer program product, the computer program product is executed by a processor to implement the steps of the writing control method according to any one of claims 1-8.
  21. 一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现如权利要求1-8中任一项所述的书写控制方法的步骤。A chip, the chip includes a processor and a communication interface, the communication interface is coupled to the processor, the processor is used to run programs or instructions, and realize the writing described in any one of claims 1-8 The steps of the control method.
PCT/CN2022/114410 2021-08-31 2022-08-24 Writing control method and apparatus, and electronic device and storage medium WO2023030117A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202111012762.XA CN113703631A (en) 2021-08-31 2021-08-31 Writing control method and device, electronic equipment and storage medium
CN202111012762.X 2021-08-31

Publications (1)

Publication Number Publication Date
WO2023030117A1 true WO2023030117A1 (en) 2023-03-09

Family

ID=78658021

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/114410 WO2023030117A1 (en) 2021-08-31 2022-08-24 Writing control method and apparatus, and electronic device and storage medium

Country Status (2)

Country Link
CN (1) CN113703631A (en)
WO (1) WO2023030117A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113703631A (en) * 2021-08-31 2021-11-26 维沃移动通信有限公司 Writing control method and device, electronic equipment and storage medium
CN114610188B (en) * 2022-02-09 2024-02-13 广东能龙教育股份有限公司 Interface handwriting writing method and system, control device and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110196675A (en) * 2019-04-17 2019-09-03 华为技术有限公司 A kind of method and electronic equipment of addition annotation
CN112783408A (en) * 2021-01-28 2021-05-11 维沃移动通信有限公司 Gesture navigation method and device of electronic equipment, equipment and readable storage medium
CN113703631A (en) * 2021-08-31 2021-11-26 维沃移动通信有限公司 Writing control method and device, electronic equipment and storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110196675A (en) * 2019-04-17 2019-09-03 华为技术有限公司 A kind of method and electronic equipment of addition annotation
CN112783408A (en) * 2021-01-28 2021-05-11 维沃移动通信有限公司 Gesture navigation method and device of electronic equipment, equipment and readable storage medium
CN113703631A (en) * 2021-08-31 2021-11-26 维沃移动通信有限公司 Writing control method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN113703631A (en) 2021-11-26

Similar Documents

Publication Publication Date Title
WO2023030117A1 (en) Writing control method and apparatus, and electronic device and storage medium
US20110205178A1 (en) Electronic device having two display devices, method of controlling the same, and recording medium
US11947791B2 (en) Devices, methods, and systems for manipulating user interfaces
CN110297550B (en) Label display method and device, screen throwing equipment, terminal and storage medium
CN103729055A (en) Multi display apparatus, input pen, multi display apparatus controlling method, and multi display system
US9229552B2 (en) System and method for synchronized operation of touch device
CN104199552A (en) Multi-screen display method, device and system
CN111142747A (en) Group management method and electronic equipment
US9372622B2 (en) Method for recording a track and electronic device using the same
WO2024037418A1 (en) Display method and apparatus, electronic device, and readable storage medium
CN104778008A (en) Virtual writing system on basis of screen management and control
CN112882643A (en) Control method of touch pen, control method of electronic equipment and touch pen
CN111665984A (en) Information processing method and device, electronic equipment and readable storage medium
JP5994224B2 (en) Terminal device, electronic pen system, and program
US20130127745A1 (en) Method for Multiple Touch Control Virtual Objects and System thereof
KR101419871B1 (en) Apparatus and method for editing subtitles
US20110050613A1 (en) Method of using electronic book device as touch input device and device thereof
KR20230061519A (en) Screen capture methods, devices and electronics
WO2023231871A1 (en) Display control method and apparatus, and electronic device and readable storage medium
CN103984462A (en) Method for recording a track and electronic device
WO2023241563A1 (en) Data processing method and electronic device
CN112269481A (en) Method and device for controlling friction force adjustment and electronic equipment
WO2023284640A9 (en) Picture processing method and electronic device
WO2022247935A1 (en) Display method and display apparatus
KR20210023434A (en) Display apparatus and control method thereof

Legal Events

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

Ref document number: 22863256

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE