# US 2024/0201843 A1 · Method for displaying handwritten or drawn content and related device

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2024/0201843 A1
- Document ID: US20240201843A1
- Status: Published application
- Kind: A1
- Application number: 18/592,016
- Filed: 2024-02-29
- Published: 2024-06-20
- Earliest claimed: 2021-08-31
- Applicants: Huawei Technologies Co., Ltd.
- Inventors: Feng Ye; Hongting Li; Wenshu Luo; Xueyan Huang
- Web page: https://patentgrep.com/patent/US20240201843A1

## CPC

- G06F 3/04883: for inputting data by handwriting, e.g. gesture or text
- G06F 3/04845: for image manipulation, e.g. dragging, rotation, expansion or change of colour
- G06F 3/1454: {involving copying of the display data of a local workstation or window to a remote workstation or window so that an actual copy of the data is displayed simultaneously on two or more displays, e.g. teledisplay}
- G06F 40/169: Annotation, e.g. comment data or footnotes
- G06F 40/171: by use of digital ink
- G06T 13/80: Two-dimensional [2D] animation, e.g. using sprites
- G06F 2203/04808: Several contacts: gestures triggering a specific function, e.g. scrolling, zooming, right-click, when the user establishes several contacts with the surface simultaneously; e.g. using several fingers or a combination of fingers and pen
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL

## Abstract

A method for displaying handwritten or drawn content includes: detecting a contact gesture on a touchscreen; enabling a handwriting or drawing mode based on a fact that the contact gesture is a swipe gesture and the swipe gesture meets a preset condition; and detecting a handwriting or drawing gesture on the touchscreen, and displaying, in a target screen, handwritten or drawn content corresponding to the handwriting or drawing gesture. In this disclosure, enabling of the handwriting or drawing mode is triggered by using a handwriting or drawing process of a user, and there is no need to deliberately search the target screen for a virtual control that is used to enable the handwriting or drawing mode, so that learning costs of the user are reduced.

## Claims

### Claim 1

A method for displaying handwritten or drawn content, applied to an electronic device, wherein the electronic device comprises a touchscreen, the touchscreen displays a target screen, and the method comprises:
detecting a contact gesture on the touchscreen;
enabling a handwriting or drawing mode based on the contact gesture is a swipe gesture and the swipe gesture meets a preset condition, wherein the preset condition comprises at least one of the following: duration of the swipe gesture exceeds a threshold, a trace length of the swipe gesture exceeds a threshold, and a trace shape of the swipe gesture is of a preset trace type; and
detecting a handwriting or drawing gesture on the touchscreen, and displaying, in the target screen, handwritten or drawn content corresponding to the handwriting or drawing gesture.

### Claim 2 (depends on 1)

The method according to claim 1, wherein the preset trace type is a circle-type trace or an arrow-type trace.

### Claim 3 (depends on 1)

The method according to claim 1, wherein the method further comprises:
displaying a movement trace of the swipe gesture on the touchscreen based on a contact region of the swipe gesture on the touchscreen,
in response to the enabling of the handwriting or drawing mode, stopping displaying the movement trace.

### Claim 4 (depends on 3)

The method according to claim 3, wherein the movement trace comprises a start position, a first trace segment, and a second trace segment, the first trace segment and the second trace segment are different trace segments on the movement trace, a distance between the first trace segment and the start position is less than a distance between the second trace segment and the start position, and display transparency of the first trace segment is lower than display transparency of the second trace segment.

### Claim 5 (depends on 1)

The method according to claim 1, wherein the method further comprises:
presenting a target prompt in response to the enabling of the handwriting or drawing mode, wherein the target prompt indicates that the handwriting or drawing mode is enabled, and the target prompt comprises at least one of a vibration prompt, a text prompt, a sound prompt, and a picture prompt.

### Claim 6 (depends on 1)

The method according to claim 1, wherein the method further comprises:
in response to the enabling of the handwriting or drawing mode, keeping content displayed in the target screen unchanged, wherein the keeping content displayed in the target screen unchanged comprises:
taking a screenshot of the content displayed in the target screen to obtain a first image; and
keeping the first image displayed in the target screen.

### Claim 7 (depends on 6)

The method according to claim 6, wherein the displaying, in the target screen, handwritten or drawn content corresponding to the handwriting or drawing gesture comprises:
displaying, at an upper layer of the first image, the handwritten or drawn content corresponding to the handwriting or drawing gesture; and
the method further comprises:
receiving a target instruction, wherein the target instruction instructs to save the handwritten or drawn content; and
in response to the target instruction, saving the first image and the handwritten or drawn content displayed at the upper layer.

### Claim 8 (depends on 6)

The method according to claim 6, wherein the keeping content displayed in the target screen unchanged comprises:
obtaining pixel information of content that is displayed in the target screen at a target moment; and
keeping, in the target screen, display of the content corresponding to the pixel information.

### Claim 9 (depends on 8)

The method according to claim 8, wherein the displaying, in the target screen, handwritten or drawn content corresponding to the handwriting or drawing gesture comprises:
displaying, at an upper layer of the content corresponding to the pixel information, the handwritten or drawn content corresponding to the handwriting or drawing gesture; and
the method further comprises:
receiving a target instruction, wherein the target instruction instructs to save the handwritten or drawn content; and
in response to the target instruction, taking a screenshot of the target screen, and saving a second image obtained by taking the screenshot.

### Claim 10

An electronic device, wherein the device comprises a processor, a memory, a touchscreen, and a bus, wherein
the processor, the memory, and the touchscreen are connected by using the bus;
the memory is configured to store a computer program or instructions; and
the processor is configured to invoke or execute the program or the instructions stored in the memory, and is further configured to control the touchscreen to implement operations comprising:
detecting a contact gesture on the touchscreen;
enabling a handwriting or drawing mode based on the contact gesture is a swipe gesture and the swipe gesture meets a preset condition, wherein the preset condition comprises at least one of the following: duration of the swipe gesture exceeds a threshold, a trace length of the swipe gesture exceeds a threshold, and a trace shape of the swipe gesture is of a preset trace type; and
detecting a handwriting or drawing gesture on the touchscreen, and displaying, in the target screen, handwritten or drawn content corresponding to the handwriting or drawing gesture.

### Claim 11 (depends on 10)

The electronic device according to claim 10, wherein the preset trace type is a circle-type trace or an arrow-type trace.

### Claim 12 (depends on 10)

The electronic device according to claim 10, wherein the operations further comprise:
displaying a movement trace of the swipe gesture on the touchscreen based on a contact region of the swipe gesture on the touchscreen,
in response to the enabling of the handwriting or drawing mode, stopping displaying the movement trace.

### Claim 13 (depends on 12)

The electronic device according to claim 12, wherein the movement trace comprises a start position, a first trace segment, and a second trace segment, the first trace segment and the second trace segment are different trace segments on the movement trace, a distance between the first trace segment and the start position is less than a distance between the second trace segment and the start position, and display transparency of the first trace segment is lower than display transparency of the second trace segment.

### Claim 14 (depends on 10)

The electronic device according to claim 10, wherein the operations further comprise:
presenting a target prompt in response to the enabling of the handwriting or drawing mode, wherein the target prompt indicates that the handwriting or drawing mode is enabled, and the target prompt comprises at least one of a vibration prompt, a text prompt, a sound prompt, and a picture prompt.

### Claim 15 (depends on 10)

The electronic device according to claim 10, wherein the operations further comprise:
in response to the enabling of the handwriting or drawing mode, keeping content displayed in the target screen unchanged, wherein the keeping content displayed in the target screen unchanged comprises:
taking a screenshot of the content displayed in the target screen to obtain a first image; and
keeping the first image displayed in the target screen.

### Claim 16 (depends on 15)

The electronic device according to claim 15, wherein the displaying, in the target screen, handwritten or drawn content corresponding to the handwriting or drawing gesture comprises:
displaying, at an upper layer of the first image, the handwritten or drawn content corresponding to the handwriting or drawing gesture; and
the method further comprises:
receiving a target instruction, wherein the target instruction instructs to save the handwritten or drawn content; and
in response to the target instruction, saving the first image and the handwritten or drawn content displayed at the upper layer.

### Claim 17 (depends on 15)

The electronic device according to claim 15, wherein the keeping content displayed in the target screen unchanged comprises:
obtaining pixel information of content that is displayed in the target screen at a target moment; and
keeping, in the target screen, display of the content corresponding to the pixel information.

### Claim 18 (depends on 17)

The electronic device according to claim 17, wherein the displaying, in the target screen, handwritten or drawn content corresponding to the handwriting or drawing gesture comprises:
displaying, at an upper layer of the content corresponding to the pixel information, the handwritten or drawn content corresponding to the handwriting or drawing gesture; and
the method further comprises:
receiving a target instruction, wherein the target instruction instructs to save the handwritten or drawn content; and
in response to the target instruction, taking a screenshot of the target screen, and saving a second image obtained by taking the screenshot.

### Claim 19

A non-transitory computer-readable storage medium, comprising a program, wherein when the program is run on a computer, the computer is enabled to perform operations comprising:
detecting a contact gesture on the touchscreen;
enabling a handwriting or drawing mode based on the contact gesture is a swipe gesture and the swipe gesture meets a preset condition, wherein the preset condition comprises at least one of the following: duration of the swipe gesture exceeds a threshold, a trace length of the swipe gesture exceeds a threshold, and a trace shape of the swipe gesture is of a preset trace type; and
detecting a handwriting or drawing gesture on the touchscreen, and displaying, in the target screen, handwritten or drawn content corresponding to the handwriting or drawing gesture.

### Claim 20 (depends on 19)

The non-transitory computer-readable storage medium according to claim 19, wherein the operations further comprise:
displaying a movement trace of the swipe gesture on the touchscreen based on a contact region of the swipe gesture on the touchscreen,
in response to the enabling of the handwriting or drawing mode, stopping displaying the movement trace, wherein the movement trace comprises a start position, a first trace segment, and a second trace segment, the first trace segment and the second trace segment are different trace segments on the movement trace, a distance between the first trace segment and the start position is less than a distance between the second trace segment and the start position, and display transparency of the first trace segment is lower than display transparency of the second trace segment.
