Picture saving method, electronic device and storage medium

文档序号:681921 发布日期:2021-04-30 浏览:3次 中文

阅读说明:本技术 一种图片保存方法、电子设备及存储介质 (Picture saving method, electronic device and storage medium ) 是由 项光永 于 2021-01-22 设计创作,主要内容包括:本发明公开一种图片保存方法、电子设备及存储介质,该方法包括以下步骤:获取步骤,响应用户保存图片的指令,获取待保存的图片至预设图标;第一显示步骤,在屏幕中显示所述预设图标;第二显示步骤,响应所述用户操作所述预设图标的第一指令,触发相册窗口的显示;保存步骤,响应所述用户操作所述预设图标的第二指令,保存所述待保存的图片中的至少一张图片至所述相册窗口中显示的指定相册。本发明的实施方式能够解决保存图片步骤繁琐,图片保存只能保存在默认相册,不能直接进行分组的问题。(The invention discloses a picture storage method, electronic equipment and a storage medium, wherein the method comprises the following steps: an acquisition step, which is to respond to an instruction of a user for saving the picture and acquire the picture to be saved to a preset icon; a first display step of displaying the preset icon in a screen; a second display step, which is to respond to a first instruction of the user for operating the preset icon and trigger the display of the album window; and a saving step, responding to a second instruction of the user for operating the preset icon, and saving at least one picture in the pictures to be saved to a designated photo album displayed in the photo album window. The method and the device can solve the problems that the steps for storing the pictures are complicated, the pictures can only be stored in the default album during storage, and the pictures cannot be directly grouped.)

1. A picture saving method is characterized by comprising the following steps:

an acquisition step, which is to respond to an instruction of a user for saving the picture and acquire the picture to be saved to a preset icon;

a first display step of displaying the preset icon in a screen;

a second display step, which is to respond to a first instruction of the user for operating the preset icon and trigger the display of the album window;

and a saving step, responding to a second instruction of the user for operating the preset icon, and saving at least one picture in the pictures to be saved to a designated photo album displayed in the photo album window.

2. The picture saving method according to claim 1, wherein the second instruction includes an instruction for the user to long-press the preset icon and an instruction for the user to drag the preset icon to the designated album,

the step of saving includes:

responding to the instruction of the user for pressing the preset icon for a long time to enable the preset icon to be in a draggable state;

responding to an instruction that the user drags the preset icon to the designated photo album, and saving all the pictures to be saved to the designated photo album.

3. The picture saving method according to claim 1, wherein the second instruction includes an instruction of the user to click the preset icon, an instruction of long-pressing a specified picture, and an instruction of dragging the specified picture,

the step of saving includes:

responding to an instruction of clicking the preset icon by the user, and unfolding the preset icon into a floating window, wherein all the pictures to be stored are displayed in the floating window;

responding to an instruction of pressing a designated picture by the user for a long time, and enabling the designated picture to be in a draggable state;

and responding to the instruction of dragging the specified picture by the user, and saving the specified picture to a specified album corresponding to the specified picture.

4. The picture saving method according to claim 3, wherein thumbnails of all of the pictures to be saved are displayed in the floating window.

5. The picture saving method according to claim 4, wherein the saving step further comprises:

and responding to the instruction of the user for editing the picture, and editing the picture to be stored.

6. The picture saving method according to claim 1, wherein the first displaying step further comprises: and displaying the number of the pictures to be stored on the preset icon.

7. The picture saving method according to claim 1, further comprising:

and a moving step, responding to the instruction of the user for pressing the preset icon, enabling the preset icon to be in a draggable state, responding to the instruction of the user for dragging the preset icon, and moving the preset icon.

8. The picture saving method according to claim 7, wherein the first instruction is that the preset icon is moved to an edge of the screen.

9. An electronic device comprising a memory and a processor, the memory configured to store one or more computer instructions, wherein the one or more computer instructions, when executed by the processor, implement the picture saving method of any one of claims 1 to 8.

10. A computer-readable storage medium in which a program is stored, characterized in that the program realizes the picture saving method according to any one of claims 1 to 8 when executed by a computer.

Technical Field

The present invention relates to the field of internet technologies, and in particular, to a picture saving method, an electronic device, and a storage medium.

Background

With the continuous progress of the times, electronic devices such as mobile phones and tablet computers have become common electronic devices for people, and it is also one of the common functions of people to look up pictures in the electronic devices.

The existing picture saving mode is realized by, for example, pressing a new window popped up at the bottom of a picture and clicking a download button. The disadvantages of this approach are: firstly, the storage process requires two operation steps, which is too cumbersome. Secondly, the text floating window at the storage position appears for a short time when the storage is finished, the picture storage position is not selectable, a default group can be formed, the stored picture cannot be browsed in real time and can only be viewed in a mobile phone picture library. Meanwhile, the existing picture storage method cannot store pictures in different software into a certain group in batch, and different software needs to be opened for operation.

Therefore, in order to solve the above problems of the prior art, it is necessary to develop and research a picture saving method that can implement both convenient group preview and batch saving.

Disclosure of Invention

The invention mainly aims to provide a picture storing method, electronic equipment and a storage medium, which are used for solving the problems that the steps for storing pictures are complicated and the pictures cannot be directly grouped in the prior art, so that a user can check the number of the pictures and browse the contents of the stored pictures in real time when storing the pictures and can quickly store the pictures into a user-defined album group under the function of storing the pictures into a default album.

In a first aspect, the present invention provides a method for saving pictures, including:

an acquisition step, which is to respond to an instruction of a user for saving the picture and acquire the picture to be saved to a preset icon;

a first display step of displaying the preset icon in a screen;

a second display step, which is to respond to a first instruction of the user for operating the preset icon and trigger the display of the album window;

and a saving step, responding to a second instruction of the user for operating the preset icon, and saving at least one picture in the pictures to be saved to a designated photo album displayed in the photo album window.

Optionally, the image saving method further includes: the second instruction comprises an instruction of pressing the preset icon for a long time by the user and an instruction of dragging the preset icon to the designated photo album by the user,

the step of saving includes:

responding to the instruction of the user for pressing the preset icon for a long time to enable the preset icon to be in a draggable state;

responding to an instruction that the user drags the preset icon to the designated photo album, and saving all the pictures to be saved to the designated photo album.

Optionally, the image saving method further includes: the second instruction comprises an instruction of clicking the preset icon by the user, an instruction of long-pressing a specified picture and an instruction of dragging the specified picture,

the step of saving includes:

responding to an instruction of clicking the preset icon by the user, and unfolding the preset icon into a floating window, wherein all the pictures to be stored are displayed in the floating window;

responding to an instruction of pressing a designated picture by the user for a long time, and enabling the designated picture to be in a draggable state;

and responding to the instruction of dragging the specified picture by the user, and saving the specified picture to a specified album corresponding to the specified picture.

Optionally, the image saving method further includes: and thumbnails of all the pictures to be stored are displayed in the floating window.

Optionally, the image saving method further includes: the step of saving further comprises:

and responding to the instruction of the user for editing the picture, and editing the picture to be stored.

Optionally, the image saving method further includes: the first displaying step further comprises: and displaying the number of the pictures to be stored on the preset icon.

Optionally, the image saving method further includes:

and a moving step, responding to the instruction of the user for pressing the preset icon, enabling the preset icon to be in a draggable state, responding to the instruction of the user for dragging the preset icon, and moving the preset icon.

Optionally, the image saving method further includes: the first instruction is that the preset icon is moved to the edge of the screen.

In a second aspect, the present invention provides an electronic device, which includes a memory and a processor, where the memory is configured to store one or more computer instructions, and the one or more computer instructions, when executed by the processor, implement the picture saving method according to any one of the above first aspects.

In a third aspect, the present invention provides a computer-readable storage medium, in which a program is stored, wherein the program is configured to implement the picture saving method according to any one of the first aspect when executed by a computer.

Compared with the prior art, one or more embodiments in the above scheme can have the following advantages or beneficial effects:

according to the invention, the pictures to be stored are stored to the preset icons, and the pictures to be stored are stored to the designated photo album through the preset icons, so that a user can view the number of the pictures and browse the contents of the stored pictures in real time when the pictures are stored, and meanwhile, the pictures can be rapidly stored in the self-defined photo album group.

Drawings

The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate an embodiment of the invention and, together with the description, serve to explain the invention and not to limit the invention, in which:

fig. 1 is a flowchart of a picture saving method according to an exemplary embodiment of the present invention;

fig. 2 is a flowchart of a picture saving method according to a first embodiment of the present invention;

fig. 3 is a flowchart of a picture saving method according to a second embodiment of the present invention;

FIG. 4 is a schematic diagram of a preset icon displayed in response to a user command to save a picture according to the present invention;

FIG. 5 is a diagram illustrating an album window triggered to be displayed in response to a command from a user dragging a preset icon to the edge of a screen;

FIG. 6 is a schematic diagram of the present invention responding to a command from a user to drag a preset icon to a designated album;

FIG. 7 is a diagram illustrating a response to a user command for dragging a predetermined icon according to the present invention;

FIG. 8 is a schematic diagram of a thumbnail of a picture to be saved being displayed in response to a user instruction to click the preset icon according to the present invention;

FIG. 9 is a diagram illustrating an album window triggered to be displayed in response to a command from a user dragging a designated picture to the edge of a screen according to the present invention;

FIG. 10 is a diagram illustrating a user dragging a designated picture to a designated album according to an embodiment of the present invention.

Detailed Description

The following detailed description of the embodiments of the present invention will be provided with reference to the accompanying drawings and examples, so that how to apply the technical means to solve the technical problems and achieve the corresponding technical effects can be fully understood and implemented. The embodiments of the present invention and the features of the embodiments can be combined with each other without conflict, and the formed technical solutions are within the scope of the present invention.

As shown in fig. 1, an embodiment of the present invention provides a picture saving method, including the following steps S110 to S140.

In step S110, in response to an instruction of saving the picture by the user, the picture to be saved is obtained to a preset icon.

For example, when browsing pictures in mobile phone application software, a picture saving button is clicked, so that a command of a user for saving pictures is responded, and picture information to be saved is saved in a preset icon for subsequent processing.

In step S120, a preset icon is displayed in the screen.

For example, after the user clicks the save picture button, a preset icon is displayed on the screen of the mobile phone for subsequent operations.

In step S130, in response to a first instruction of a user to operate a preset icon, display of an album window is triggered.

For example, firstly, a user long-presses a preset icon to enable the preset icon to be in a draggable state, then drags the preset icon to the edge of a screen, and triggers the display of an album window in response to an operation instruction of dragging the preset icon to the edge of the screen by the user. In particular, when the preset icon is in a draggable state, the preset icon is displayed in a jittered state.

In step S140, in response to a second instruction of the user to operate the preset icon, at least one of the pictures to be saved is saved to a designated album displayed in the album window.

For example, the user drags the preset icon to the designated album, all the pictures to be saved in the preset icon are saved in the designated album in response to the operation instruction of the user for dragging the preset icon, or the operation instruction is used for clicking the preset icon, displaying the thumbnails of the pictures to be saved, dragging the thumbnails of the designated pictures to the designated album, and saving the designated pictures in the designated album in response to the operation instruction of the user for dragging the designated pictures. The above two cases will be explained in detail below with reference to fig. 2 and 3, respectively.

Example one

As shown in fig. 2, an embodiment of the present invention provides a picture saving method, including the following steps S210 to S250.

In step S210, in response to an instruction of saving the picture by the user, the picture to be saved is obtained to a preset icon.

As shown in fig. 4, when browsing pictures in the mobile phone application software, clicking the picture saving button T1, responding to the command of the user to save pictures, and saving the picture information to be saved into a preset icon T2 for subsequent processing.

In step S220, a preset icon is displayed in the screen.

As shown in fig. 4, after the user clicks the save picture button T1, a preset icon T2 is displayed on the screen of the mobile phone, and the preset icon T2 may be located at any position in the screen for subsequent operations.

In particular, the number of pictures to be saved is displayed on the preset icon T2, so that the user can know how many pictures to be saved are currently in common, and the user can conveniently perform subsequent operations.

In step S230, the preset icon is made to be draggable in response to the instruction of the user to long-press the preset icon.

As shown in fig. 7, the user long-presses the preset icon T2 on the screen of the mobile phone, and responds to the instruction of the user long-pressing the preset icon T2, so that the preset icon T2 is in a draggable state for subsequent operations.

Specifically, the preset icon T2 is made draggable in response to a user's instruction to long-press the preset icon T2, and the preset icon T2 is moved in response to a user's instruction to drag the preset icon T2. In particular, when the preset icon T2 is in a draggable state, the preset icon T2 is displayed in a shaken state.

For example, when the user uses the application software, the position of the preset icon T2 prevents the user from using the mobile phone, so the user moves the preset icon T2 to adjust the position of the preset icon T2 so that the user is not prevented from using the mobile phone.

In step S240, in response to an instruction of the user dragging the preset icon, the preset icon is moved to the edge of the screen, and the display of the album window is triggered.

As shown in fig. 5, in response to an instruction that a user drags a preset icon T2 in a draggable state to the edge of the screen, displaying an album window T3 on the screen is triggered, where the album window T3 includes a designated album T4, and the preset icon is dragged to the designated album T4 subsequently, so that the operation of saving the picture is completed. It should be noted that the screen edge is not limited to a specific position, and the upper edge, the lower edge, the left edge, and the right edge of the screen may be all the same. The intermediate layer between the photo album window T3 and the picture is masked, the layers are distinguished, the operation interface is concise, and the reading burden of a user is reduced.

In step S250, in response to an instruction of the user to drag the preset icon, dragging the preset icon to the designated album, and saving all the pictures to be saved to the designated album.

As shown in fig. 6, in response to an instruction from the user to drag the preset icon T2 in the draggable state to the designated album T4 in the album window T3, all the pictures to be saved in the preset icon T2 are saved to the designated album T4.

The user caches the information of the pictures to be stored in the preset icons by clicking the storage button, and then drags the preset icons to the designated photo album to enable the user to store all the cached pictures in the preset icons in the designated photo album, so that the condition that the pictures can be stored only singly but not in batches is improved, and the operation of storing the pictures by the user is simpler and more convenient.

Example two

As shown in fig. 3, an embodiment of the present invention provides a picture saving method, including the following steps S310 to S360.

In step S310, in response to an instruction of saving the picture by the user, the picture to be saved is obtained to a preset icon.

As shown in fig. 4, when browsing pictures in the mobile phone application software, clicking the picture saving button T1, responding to the command of the user to save pictures, and saving the picture information to be saved into the preset icon T2 for subsequent processing.

In step S320, a preset icon is displayed in the screen.

As shown in fig. 4, after the user clicks the save picture button T1, a preset icon T2 is displayed on the screen of the mobile phone, and the preset icon T2 may be located at any position in the screen for subsequent operations.

In step S330, in response to an instruction of clicking the preset icon by the user, the preset icon is expanded into a floating window, and thumbnails of all pictures to be saved are displayed in the floating window.

As shown in fig. 8, in response to an instruction from the user to click the preset icon T2 in the screen, the preset icon T2 is expanded into a floating window in which thumbnails T5 of all pictures to be saved are displayed, and thus, the user can simultaneously view thumbnails T5 of all pictures to be saved, so that the user can subsequently select and operate a certain specified picture. The floating window can be located above the left side of the picture according to the picture height intelligence, the picture is prevented from being shielded, and the floating window can disappear automatically without storage operation within a certain time. The floating window displays the number of the stored pictures in a certain time period, the floating window is clicked, a black mask appears above the pictures, and the picture layers are distinguished; and expanding the floating window to present the saved picture thumbnail. The floating window can be pressed for a long time, and the position of the floating window can be adjusted in a user-defined mode after the floating window vibrates.

Particularly, the picture to be saved is edited in response to the instruction of the user for editing the picture.

For example, a specific picture is selected in a floating window, the specific picture T5 to be saved is edited in response to an instruction of the user to edit the specific picture T5, and the edited picture can be saved in a specific album after the editing is completed.

In step S340, in response to the instruction of the user to long-press the designated picture, the designated picture is made into a draggable state.

As shown in fig. 9, the user holds the designated picture T5 on the cell phone screen, and in response to an instruction from the user to hold the designated picture T5, the designated picture T5 is made draggable for subsequent dragging to the designated album T4.

In step S350, in response to an instruction of the user to drag the designated picture, the designated picture is moved to the edge of the screen, and the display of the album window is triggered.

As shown in fig. 9, in response to an instruction from a user to drag a designated picture T5 in a draggable state to the edge of the screen, an album window T3 is triggered to be displayed on the screen, where the album window T3 includes a designated album T4, and is used to drag the designated picture to a designated album T4, so as to complete the operation of saving the picture. It should be noted that the screen edge is not limited to a specific position, and the upper edge, the lower edge, the left edge, and the right edge of the screen may be all the same. The intermediate layer between the photo album window T3 and the picture is masked, the layers are distinguished, the operation interface is concise, and the reading burden of a user is reduced.

In step S360, in response to the instruction of the user to drag the designated picture, drag the designated picture to the designated album, and save the designated picture to the designated album corresponding to the designated picture.

As shown in fig. 10, in response to an instruction from the user to drag the designated picture T5, the designated picture T5 is dragged to the designated album T4, and the designated picture T5 is saved in the designated album T4 corresponding to the designated picture T5, thereby completing the operation of saving a single picture.

The user clicks the preset icon to display the floating window, the thumbnail of the picture to be stored is displayed in the floating window, and then the designated picture is dragged to the designated album, so that the user can select the designated picture to be stored in the designated album, the condition that the picture can only be stored in the default album by default is improved, and the operation of storing the picture by the user is simpler and more convenient.

EXAMPLE III

The embodiment of the present invention provides an electronic device, which may be a mobile phone, a tablet computer, or the like, and includes a memory and a processor, where the memory is used to store one or more computer instructions, and when the one or more computer instructions are executed by the processor, the image saving method in the foregoing embodiment is implemented.

The processor is configured to perform all or part of the steps in the picture saving method according to the first embodiment or the second embodiment. The memory is used to store various types of data such as picture information parameters and the like.

The Processor may be an Application Specific Integrated Circuit (ASIC), a Digital Signal Processor (DSP), a Digital Signal Processing Device (DSPD), a Programmable Logic Device (PLD), a Field Programmable Gate Array (FPGA), a controller, a microcontroller, a microprocessor, or other electronic components, and is configured to execute the method for saving pictures in the first embodiment.

The Memory may be implemented by any type of volatile or non-volatile Memory device or combination thereof, such as Static Random Access Memory (SRAM), Electrically Erasable Programmable Read-Only Memory (EEPROM), Erasable Programmable Read-Only Memory (EPROM), Programmable Read-Only Memory (PROM), Read-Only Memory (ROM), magnetic Memory, flash Memory, magnetic disk or optical disk.

Each functional unit in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program check codes, such as a U disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.

It is noted that the terms used herein are merely intended to describe specific embodiments, but are not intended to limit exemplary embodiments according to the present invention, and when the terms "include" and/or "include" are used in this specification, they indicate the presence of features, steps, operations, devices, components, and/or combinations thereof.

The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims. The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents and the like that are within the spirit and principle of the present invention are included in the present invention.

It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the terms so used are interchangeable under appropriate circumstances such that the embodiments of the invention described herein are, for example, capable of operation in sequences other than those illustrated or otherwise described herein.

It should be understood that the exemplary embodiments herein may be embodied in many different forms and should not be construed as limited to only the embodiments set forth herein. These embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of the exemplary embodiments to those skilled in the art, and should not be construed as limiting the present invention.

18页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种界面处理方法及其设备、存储介质、终端

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类