CN112130738A - Screenshot processing method, device, electronic device and storage medium - Google Patents
Screenshot processing method, device, electronic device and storage medium Download PDFInfo
- Publication number
- CN112130738A CN112130738A CN202011065430.3A CN202011065430A CN112130738A CN 112130738 A CN112130738 A CN 112130738A CN 202011065430 A CN202011065430 A CN 202011065430A CN 112130738 A CN112130738 A CN 112130738A
- Authority
- CN
- China
- Prior art keywords
- screenshot
- sliding
- target screenshot
- target
- instruction
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000003672 processing method Methods 0.000 title claims abstract description 11
- 238000000034 method Methods 0.000 claims abstract description 40
- 238000012545 processing Methods 0.000 claims abstract description 34
- 238000012217 deletion Methods 0.000 claims description 13
- 230000037430 deletion Effects 0.000 claims description 13
- 238000004590 computer program Methods 0.000 claims description 8
- 238000012790 confirmation Methods 0.000 claims description 7
- 230000008569 process Effects 0.000 abstract description 6
- 238000010586 diagram Methods 0.000 description 22
- 230000006870 function Effects 0.000 description 19
- 238000004891 communication Methods 0.000 description 7
- 230000009471 action Effects 0.000 description 5
- 230000003287 optical effect Effects 0.000 description 4
- 230000035508 accumulation Effects 0.000 description 3
- 238000009825 accumulation Methods 0.000 description 3
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 230000006978 adaptation Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000007796 conventional method Methods 0.000 description 1
- 230000010354 integration Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0484—Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
- G06F3/04845—Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range for image manipulation, e.g. dragging, rotation, expansion or change of colour
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0484—Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
- G06F3/04847—Interaction techniques to control parameter settings, e.g. interaction with sliders or dials
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0487—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
- G06F3/0488—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
Description
技术领域technical field
本申请涉及截图处理领域,具体而言,涉及一种截图处理方法、装置、电子设备及存储介质。The present application relates to the field of screenshot processing, and in particular, to a screenshot processing method, device, electronic device, and storage medium.
背景技术Background technique
各大手机厂商的手机对于用户截图的处理方式各不相同,比如手势截图、物理按键截图等,而且对所截取的图片的操作逻辑也有所差异,比如截图后图片的显示方式(左下角缩略图、底部缩略图等)、删除方式(选中后编辑删除)、编辑方式(点击选中后可编辑)等。The mobile phones of major mobile phone manufacturers have different processing methods for user screenshots, such as gesture screenshots, physical button screenshots, etc., and the operation logic of the captured pictures is also different, such as the display method of the screenshots (the thumbnails in the lower left corner). , bottom thumbnail, etc.), delete method (edit and delete after selection), edit method (click to select and edit), etc.
由于各个厂商都有一套自己的处理逻辑,用户学习截图的成本高,且不管是对于截图进行编辑或是删除等操作,很大可能需要进行多步操作处理才能完成,使用起来不够简单方便。Since each manufacturer has its own set of processing logic, the cost of learning screenshots is high for users, and whether it is to edit or delete screenshots, it is very likely that multi-step operation processing is required to complete, which is not simple and convenient to use.
发明内容SUMMARY OF THE INVENTION
为了解决上述问题,本申请实施例提供了一种截图处理方法、装置、电子设备及存储介质。In order to solve the above problems, embodiments of the present application provide a screenshot processing method, apparatus, electronic device, and storage medium.
第一方面,本申请实施例提供了一种截图处理方法,所述方法包括:In a first aspect, an embodiment of the present application provides a method for processing screenshots, and the method includes:
接收针对当前界面上所显示的目标截图的滑动指令,获取所述滑动指令对应的滑动方向;Receive a sliding instruction for the target screenshot displayed on the current interface, and obtain the sliding direction corresponding to the sliding instruction;
当所述滑动方向为第一方向时,切换所述目标截图;When the sliding direction is the first direction, switching the target screenshot;
当所述滑动方向为第二方向时,删除所述目标截图;所述第二方向与所述第一方向不同;When the sliding direction is the second direction, delete the target screenshot; the second direction is different from the first direction;
当所述滑动方向为第三方向时,展示针对所述目标截图的图片编辑页面;所述第三方向与所述第二方向以及所述第一方向不同。When the sliding direction is the third direction, a picture editing page for the target screenshot is displayed; the third direction is different from the second direction and the first direction.
第二方面,本申请实施例提供了一种截图处理装置,所述装置包括:In a second aspect, an embodiment of the present application provides a screenshot processing device, and the device includes:
接收模块,用于接收针对当前界面上所显示的目标截图的滑动指令,获取所述滑动指令对应的滑动方向;a receiving module, configured to receive a sliding instruction for the target screenshot displayed on the current interface, and obtain the sliding direction corresponding to the sliding instruction;
第一方向确定模块,用于当所述滑动方向为第一方向时,切换所述目标截图;a first direction determination module, configured to switch the target screenshot when the sliding direction is the first direction;
第二方向确定模块,用于当所述滑动方向为第二方向时,删除所述目标截图;所述第二方向与所述第一方向不同;A second direction determination module, configured to delete the target screenshot when the sliding direction is the second direction; the second direction is different from the first direction;
第三方向确定模块,用于当所述滑动方向为第三方向时,展示针对所述目标截图的图片编辑页面;所述第三方向与所述第二方向以及所述第一方向不同。A third direction determining module, configured to display a picture editing page for the target screenshot when the sliding direction is a third direction; the third direction is different from the second direction and the first direction.
第三方面,本申请实施例提供了一种电子设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现如第一方面或第一方面的任意一种可能的实现方式提供的方法的步骤。In a third aspect, an embodiment of the present application provides an electronic device, including a memory, a processor, and a computer program stored in the memory and running on the processor. When the processor executes the computer program, the first The aspect or any one of the possible implementations of the first aspect provides the steps of the method.
第四方面,本申请实施例提供了一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现如第一方面或第一方面的任意一种可能的实现方式提供的方法。In a fourth aspect, embodiments of the present application provide a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, implements the first aspect or any possible implementation of the first aspect method provided.
在本申请一个或多个实施例中,用户使用用户终端进行截图后,用户终端上会展示有目标截图。用户终端在接收到用户针对目标截图的滑动指令后,将获取滑动指令对应的滑动方向来判断用户滑动的方向,并根据滑动方向的不同对目标截图进行切换、删除、编辑等操作。以此实现了用户能够直接对截图后终端中展示的目标截图进行操作处理,使用起来简单便捷,不需要进行多步操作处理才能完成。由于对目标截图进行操作的逻辑与手机通用的后台程序处理操作逻辑类似,用户截图的成本低。In one or more embodiments of the present application, after the user uses the user terminal to take a screenshot, the target screenshot will be displayed on the user terminal. After receiving the user's sliding instruction for the target screenshot, the user terminal will obtain the sliding direction corresponding to the sliding instruction to determine the sliding direction of the user, and perform operations such as switching, deleting, and editing the target screenshot according to the different sliding directions. In this way, the user can directly operate and process the target screenshot displayed in the terminal after the screenshot is taken, which is simple and convenient to use, and does not require multi-step operation processing to complete. Since the logic of operating the target screenshot is similar to the processing operation logic of the background program common to the mobile phone, the cost of the user's screenshot is low.
附图说明Description of drawings
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例中所需使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to illustrate the technical solutions in the embodiments of the present application more clearly, the following briefly introduces the drawings used in the embodiments. Obviously, the drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, other drawings can also be obtained from these drawings without any creative effort.
图1为本申请实施例提供的一种截图处理方法的流程示意图;1 is a schematic flowchart of a screenshot processing method provided by an embodiment of the present application;
图2为本申请实施例提供的一种用户对目标截图进行滑动的滑动举例示意图;2 is a schematic diagram of a sliding example in which a user slides a target screenshot according to an embodiment of the present application;
图3a为本申请实施例提供的一种用户对目标截图进行按压的举例示意图;3a is a schematic diagram of an example of a user pressing a target screenshot provided by an embodiment of the present application;
图3b为本申请实施例提供的一种用户对目标截图持续按压后进行长截图操作的举例示意图;3b is an exemplary schematic diagram of a long screenshot operation after a user continuously presses a target screenshot according to an embodiment of the present application;
图4为本申请实施例提供的一种用户终端切换目标截图的举例示意图;4 is a schematic diagram of an example of a user terminal switching target screenshot provided by an embodiment of the present application;
图5为本申请实施例提供的一种用户终端删除目标截图的举例示意图;5 is a schematic diagram of an example of a user terminal deleting target screenshot provided by an embodiment of the present application;
图6为本申请实施例提供的一种用户终端对目标截图进行编辑的举例示意图;6 is a schematic diagram illustrating an example of editing a target screenshot by a user terminal according to an embodiment of the present application;
图7为本申请实施例提供的又一种截图处理方法的流程示意图;7 is a schematic flowchart of another screenshot processing method provided by an embodiment of the present application;
图8为本申请实施例提供的一种用户终端以卡片形式展示目标截图的举例示意图;8 is a schematic diagram of an example of a user terminal displaying a target screenshot in the form of a card according to an embodiment of the present application;
图9为本申请实施例提供的一种用户终端停止滑动目标截图的举例示意图;FIG. 9 is an exemplary schematic diagram of a screenshot of a user terminal stopping sliding target according to an embodiment of the present application;
图10为本申请实施例提供的一种用户终端中删除控件的举例示意图;10 is a schematic diagram of an example of deleting a control in a user terminal provided by an embodiment of the present application;
图11为本申请实施例提供的一种截图处理装置的结构示意图;11 is a schematic structural diagram of a screenshot processing apparatus provided by an embodiment of the application;
图12为本申请实施例提供的一种电子设备的结构示意图。FIG. 12 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述。The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application.
在下述介绍中,术语“第一”、“第二”仅为用于描述的目的,而不能理解为指示或暗示相对重要性。下述介绍提供了本申请的多个实施例,不同实施例之间可以替换或者合并组合,因此本申请也可认为包含所记载的相同和/或不同实施例的所有可能组合。因而,如果一个实施例包含特征A、B、C,另一个实施例包含特征B、D,那么本申请也应视为包括含有A、B、C、D的一个或多个所有其他可能的组合的实施例,尽管该实施例可能并未在以下内容中有明确的文字记载。In the following introduction, the terms "first" and "second" are used for descriptive purposes only, and should not be construed as indicating or implying relative importance. The following description provides multiple embodiments of the present application, and different embodiments may be substituted or combined, so the present application may also be considered to include all possible combinations of the same and/or different embodiments described. Thus, if one embodiment includes features A, B, C and another embodiment includes features B, D, the application should also be considered to include all other possible combinations of one or more of A, B, C, D example, although this example may not be explicitly described in the following content.
下面的描述提供了示例,并且不对权利要求书中阐述的范围、适用性或示例进行限制。可以在不脱离本申请内容的范围的情况下,对描述的元素的功能和布置做出改变。各个示例可以适当省略、替代或添加各种过程或组件。例如所描述的方法可以以所描述的顺序不同的顺序来执行,并且可以添加、省略或组合各种步骤。此外,可以将关于一些示例描述的特征组合到其他示例中。The following description provides examples, and does not limit the scope, applicability, or examples set forth in the claims. Changes may be made in the function and arrangement of elements described without departing from the scope of the present disclosure. Various examples may omit, substitute or add various procedures or components as appropriate. For example, the methods described may be performed in an order different from that described, and various steps may be added, omitted, or combined. Furthermore, features described with respect to some examples may be combined in other examples.
用户终端可以是具有显示屏的各种电子设备,包括但不限于智能手机、平板电脑等。具体的,用户终端可以为硬件也可以为软件。The user terminal may be various electronic devices with display screens, including but not limited to smart phones, tablet computers, and the like. Specifically, the user terminal may be hardware or software.
可选的,当用户终端为软件时,可以是安装于上述所列举的电子设备中,其可以实现呈多个软件或软件模块(例如:用来提供分布式服务),也可以实现成单个软件或软件模块,在此不作具体限定。Optionally, when the user terminal is software, it can be installed in the electronic devices listed above, which can be implemented as multiple software or software modules (for example, used to provide distributed services), or can be implemented as a single software. or software modules, which are not specifically limited here.
可选的,当用户终端为硬件时,其上还可以安装有显示设备和摄像头,显示设备显示可以是各种能实现显示功能的设备,摄像头用于采集视频流。例如:显示设备可以是阴极射线管显示器(Cathode ray tubedisplay,简称CR)、发光二极管显示器(Light-emittingdiode display,简称LED)、电子墨水屏、液晶显示屏(Liquid crystal display,简称LCD)、等离子显示面板(Plasma displaypanel,简称PDP)等。用户可以利用终端上的显示设备,来查看显示的文字、图片、视频等信息。Optionally, when the user terminal is hardware, a display device and a camera may also be installed thereon, and the display device may be various devices capable of realizing a display function, and the camera is used to collect video streams. For example, the display device can be a cathode ray tube display (CR), a light-emitting diode display (LED), an electronic ink screen, a liquid crystal display (LCD), a plasma display Panel (Plasma displaypanel, referred to as PDP) and so on. The user can use the display device on the terminal to view the displayed text, picture, video and other information.
下面将结合具体的实施例对本方案进行详细说明。The present solution will be described in detail below with reference to specific embodiments.
参见图1,图1是本申请实施例提供的一种截图处理方法的流程示意图。在本申请实施例中,所述方法包括:Referring to FIG. 1, FIG. 1 is a schematic flowchart of a screenshot processing method provided by an embodiment of the present application. In this embodiment of the present application, the method includes:
S101、接收针对当前界面上所显示的目标截图的滑动指令,获取所述滑动指令对应的滑动方向。S101. Receive a sliding instruction for a target screenshot displayed on a current interface, and acquire a sliding direction corresponding to the sliding instruction.
所述当前界面是用户终端屏幕在当前所显示的界面。所述当前界面在本申请实施例中可以理解为用户终端在进行截图操作时用户终端屏幕所显示的界面。The current interface is the interface currently displayed on the screen of the user terminal. In this embodiment of the present application, the current interface may be understood as an interface displayed on the screen of the user terminal when the user terminal performs a screenshot operation.
所述截图是用户终端截取界面图像而生成的图片。所述目标截图在本申请实施例中可以理解为用户终端对当前界面进行截图操作时生成的图片。The screenshot is a picture generated by the user terminal intercepting the interface image. The target screenshot may be understood as a picture generated when the user terminal performs a screenshot operation of the current interface in the embodiment of the present application.
所述指令是指挥用户终端工作的指示和命令,可以理解为指定执行某种运算或功能实现的某种控制的代码。所述滑动指令在本申请实施例中可以理解为指挥用户终端执行对目标截图进行滑动控制功能的代码,用户终端通过执行所述代码,可以获取目标截图的滑动方向。The instructions are instructions and commands for instructing the user terminal to work, and can be understood as a code specifying a certain control to perform a certain operation or function realization. The sliding instruction can be understood as a code for instructing the user terminal to execute the sliding control function on the target screenshot in the embodiment of the present application, and the user terminal can obtain the sliding direction of the target screenshot by executing the code.
所述滑动方向可以理解为用户对目标截图进行滑动的方向。在实际应用中,该滑动方向可以是向上滑动,也可以是向下滑动,还可以是左右滑动。The sliding direction may be understood as the direction in which the user slides the target screenshot. In practical applications, the sliding direction may be upward sliding, downward sliding, or left and right sliding.
例如,如图2所示,图2是一种用户对目标截图进行滑动的滑动举例示意图。当用户想要滑动目标截图时,用户需要将手指按压在用户终端屏幕上展示有目标截图的区域,并在用户终端屏幕上沿某一方向滑动手指,即可实现对目标截图的滑动。For example, as shown in FIG. 2 , FIG. 2 is a schematic diagram of a sliding example in which a user slides a target screenshot. When the user wants to slide the target screenshot, the user needs to press the finger on the area of the user terminal screen where the target screenshot is displayed, and slide the finger in a certain direction on the user terminal screen to realize the sliding of the target screenshot.
在本申请实施例中,若用户对用户终端的当前界面上所显示的目标截图进行滑动,用户终端将接收到针对该目标截图的滑动指令。在接收到滑动指令后,用户终端将获取滑动指令对应的滑动方向,以此来确定用户在当前界面上对目标截图滑动的方向。In the embodiment of the present application, if the user slides the target screenshot displayed on the current interface of the user terminal, the user terminal will receive a sliding instruction for the target screenshot. After receiving the sliding instruction, the user terminal will obtain the sliding direction corresponding to the sliding instruction, so as to determine the direction in which the user slides the target screenshot on the current interface.
在一种可实施方式中,步骤S101之后,还包括:In a possible implementation manner, after step S101, it further includes:
接收针对所述目标截图的按压指令,获取所述按压指令对应的持续按压时长;receiving a pressing instruction for the target screenshot, and obtaining the continuous pressing duration corresponding to the pressing instruction;
当所述持续按压时长大于第二预设时长时,对所述目标截图对应的显示画面进行长截图操作。When the duration of the continuous pressing is greater than the second preset duration, a long screenshot operation is performed on the display screen corresponding to the target screenshot.
所述按压指令在本申请实施例中可以理解为指挥用户终端对目标截图进行按压控制功能的代码,用户终端通过执行所述代码,可以获取目标截图的持续按压时长。The pressing instruction may be understood as a code instructing the user terminal to perform a pressing control function on the target screenshot in the embodiment of the present application. By executing the code, the user terminal can obtain the duration of continuous pressing of the target screenshot.
所述持续按压时长在本申请实施例中可以理解为用户对目标截图进行按压并保持按压动作不变所述持续的时长。In the embodiment of the present application, the duration of continuous pressing may be understood as the duration for which the user presses the target screenshot and keeps the pressing action unchanged.
所述长截图在本申请实施例中可以理解为滚动截屏,能够将用户终端屏幕无法全部显示的多页内容一次性保存成一张截图。In the embodiment of the present application, the long screenshot can be understood as a scrolling screenshot, and multiple pages of content that cannot be fully displayed on the screen of the user terminal can be saved as one screenshot at one time.
例如,如图3a、3b所示,图3a是一种用户对目标截图进行按压的举例示意图,图3b是一种用户对目标截图持续按压后进行长截图操作的举例示意图。用户将手指按压在用户终端屏幕上展示有目标截图的区域,并保持该动作一定时长后,用户终端将对目标截图对应的显示画面进行长截图操作。当用户终端展示长截图界面后,用户通过上下滑动来调整需要长截图的范围,并点击确定按钮完成长截图。For example, as shown in Figures 3a and 3b, Figure 3a is an example schematic diagram of a user pressing a target screenshot, and Figure 3b is an example schematic diagram of a long screenshot operation after the user continues to press the target screenshot. After the user presses a finger on the screen of the user terminal where the target screenshot is displayed, and keeps the action for a certain period of time, the user terminal will perform a long screenshot operation on the display screen corresponding to the target screenshot. After the user terminal displays the long screenshot interface, the user adjusts the range of the long screenshot by sliding up and down, and clicks the OK button to complete the long screenshot.
在本申请实施例中,在用户进行截图且目标截图展示在用户终端的当前界面上时,用户除了通过滑动的方式对目标截图操作外,还可以通过长按目标截图的方式对目标截图进行操作。用户终端在接收到针对目标截图的按压指令后,将会获取按压指令对应的持续按压时长,并根据持续按压时长来进行长截图操作。由于用户在进行滑动的时候,也需要短时间的对目标截图进行按压操作,为了避免误触发长截图操作而对用户的使用体验造成影响,唯有当持续按压时长大于第二预设时长(例如2s)时,用户终端才会对目标截图对应的显示画面进行长截图操作。In this embodiment of the present application, when the user takes a screenshot and the target screenshot is displayed on the current interface of the user terminal, the user can not only operate the target screenshot by sliding, but also operate the target screenshot by long-pressing the target screenshot. . After receiving the pressing instruction for the target screenshot, the user terminal will obtain the continuous pressing duration corresponding to the pressing instruction, and perform a long screenshot operation according to the continuous pressing duration. Since the user also needs to press the target screenshot for a short period of time when sliding, in order to avoid false triggering of the long screenshot operation and affect the user's experience, only when the continuous pressing duration is longer than the second preset duration (for example, 2s), the user terminal will perform a long screenshot operation on the display screen corresponding to the target screenshot.
S102、当所述滑动方向为第一方向时,切换所述目标截图。S102. When the sliding direction is the first direction, switch the target screenshot.
例如,如图4所示,图4是一种用户终端切换目标截图的举例示意图。当用户用手指按压目标截图并向第一方向滑动目标截图时,用户终端将基于第一方向切换目标截图为其他截图。其他截图可以是图片数据库中存储的截图图片。第一方向可以是向左滑动方向,也可以是向右滑动方向。For example, as shown in FIG. 4 , FIG. 4 is an exemplary schematic diagram of a screenshot of a switching target of a user terminal. When the user presses the target screenshot with a finger and slides the target screenshot in the first direction, the user terminal will switch the target screenshot to another screenshot based on the first direction. The other screenshots may be screenshot pictures stored in the picture database. The first direction may be a leftward sliding direction or a rightward sliding direction.
在本申请实施例中,用户终端获取滑动指令对应的滑动方向为第一方向时,用户终端即认为用户想要切换目标截图来查看曾经截取的其他目标截图,故用户终端将切换目标截图。In the embodiment of the present application, when the sliding direction corresponding to the sliding instruction obtained by the user terminal is the first direction, the user terminal considers that the user wants to switch target screenshots to view other target screenshots that have been captured, so the user terminal switches the target screenshots.
S103、当所述滑动方向为第二方向时,删除所述目标截图。所述第二方向与所述第一方向不同。S103. When the sliding direction is the second direction, delete the target screenshot. The second direction is different from the first direction.
例如,如图5所示,图5是一种用户终端删除目标截图的举例示意图。当用户用手指按压目标截图并向第二方向滑动目标截图时,用户终端将基于第二方向删除目标截图。第二方向可以是向上滑动方向。For example, as shown in FIG. 5 , FIG. 5 is a schematic diagram of an example of a user terminal deleting a target screenshot. When the user presses the target screenshot with a finger and slides the target screenshot in the second direction, the user terminal will delete the target screenshot based on the second direction. The second direction may be a slide-up direction.
在本申请实施例中,用户终端获取滑动指令对应的滑动方向为第二方向时,用户终端即认为用户想要删除截取的目标截图,故用户终端将删除目标截图。其中,第二方向与第一方向不为相同的方向,以确保每个方向上对应的操作功能不会冲突。In this embodiment of the present application, when the sliding direction corresponding to the sliding instruction obtained by the user terminal is the second direction, the user terminal considers that the user wants to delete the captured target screenshot, so the user terminal deletes the target screenshot. Wherein, the second direction and the first direction are not the same direction, so as to ensure that the corresponding operation functions in each direction do not conflict.
S104、当所述滑动方向为第三方向时,展示针对所述目标截图的图片编辑页面。所述第三方向与所述第二方向以及所述第一方向不同。S104. When the sliding direction is the third direction, display a picture editing page for the target screenshot. The third direction is different from the second direction and the first direction.
图片编辑页面可以理解为用户终端屏幕所展示的对目标截图进行编辑的页面。如图6所示,图6是一种用户终端对目标截图进行编辑的举例示意图。用户能够通过点击图片编辑页面上相应的功能控件对目标截图上进行添加箭头、画圈标注、增加图案、增加文字等操作。在本申请实施例中,用户终端获取滑动指令对应的滑动方向为第三方向时,用户终端即认为用户想要对截取的目标截图进行编辑,故用户终端将展示该目标截图的图片编辑页面供用户进行编辑。其中,第三方向与第二方向以及第一方向均不相同,以确保每个方向上对应的操作功能不会冲突。The picture editing page can be understood as a page displayed on the screen of the user terminal for editing the target screenshot. As shown in FIG. 6 , FIG. 6 is a schematic diagram of an example of editing a target screenshot by a user terminal. The user can perform operations such as adding arrows, drawing circles, adding patterns, and adding text to the target screenshot by clicking the corresponding functional controls on the image editing page. In the embodiment of the present application, when the sliding direction corresponding to the sliding instruction obtained by the user terminal is the third direction, the user terminal considers that the user wants to edit the captured target screenshot, so the user terminal will display the image editing page of the target screenshot for User edits. The third direction is different from the second direction and the first direction, so as to ensure that the corresponding operation functions in each direction do not conflict.
在一种可实施方式中,步骤S104之后,还包括:In a possible implementation manner, after step S104, it further includes:
在图片编辑页面上接收编辑指令,基于所述编辑指令生成编辑图片;Receive an editing instruction on the image editing page, and generate an edited image based on the editing instruction;
展示针对所述编辑图片对应的目标截图的删除控件。A delete control for the target screenshot corresponding to the edited picture is displayed.
在本申请实施例中,当用户在图片编辑页面上对截图进行编辑时,用户终端将接收到编辑指令。用户终端在接收编辑指令后,基于编辑指令中的编辑内容生成编辑图片。一般用户在截取截图图片后,对截图图片进行编辑多为在图片中某个地方画圈或标注箭头来强调截图中的该位置。在这种情形下,用户真正需要的保存或发送图片为编辑后的编辑图片,而不太需要未编辑的截图图片,用户容易由于现有技术中删除图片需要繁琐的操作等原因而在编辑完截图后忘记或懒得删除截图,导致无用的截图堆积。当堆积过多时,既不方便用户清理无用截图,也不便于用户在截图中寻找所需截图。故用户终端在生成编辑图片后将展示针对编辑图片对应的目标截图的删除控件,以使用户能够在编辑完截图后简单便捷的删除编辑前的目标截图。In this embodiment of the present application, when the user edits the screenshot on the picture editing page, the user terminal will receive an editing instruction. After receiving the editing instruction, the user terminal generates an editing picture based on the editing content in the editing instruction. After a general user takes a screenshot, most of editing the screenshot is to draw a circle or mark an arrow somewhere in the picture to emphasize the position in the screenshot. In this case, the pictures that the user really needs to save or send are the edited pictures, but the unedited screenshot pictures are not needed. Forgetting or being too lazy to delete screenshots after taking screenshots leads to the accumulation of useless screenshots. When there are too many accumulations, it is not convenient for the user to clean up useless screenshots, nor is it convenient for the user to find the required screenshots in the screenshots. Therefore, after generating the edited picture, the user terminal will display a delete control for the target screenshot corresponding to the edited picture, so that the user can simply and conveniently delete the target screenshot before editing after editing the screenshot.
在一种可实施方式中,所述第一方向为左右方向,所述第二方向为向上方向,所述第三方向为向下方向。In an embodiment, the first direction is a left-right direction, the second direction is an upward direction, and the third direction is a downward direction.
在本申请实施例中,由于无论什么品牌的手机,其后台程序管理界面的操作逻辑是相同的,均为左右滑动切换后台运行的目标程序,向上滑动关闭当前后台程序。故本申请将相同功能所对应的滑动方向与后台程序管理界面中进行操作时的滑动方向设置一致,使得用户对本申请所展示的目标截图进行操作的学习成本很低,无论老人小孩都能够简单快速的掌握操作方式。In the embodiment of the present application, no matter what brand of mobile phone, the operation logic of the background program management interface is the same, that is, sliding left and right to switch the target program running in the background, and sliding upward to close the current background program. Therefore, in this application, the sliding direction corresponding to the same function is set consistent with the sliding direction when operating in the background program management interface, so that the learning cost for the user to operate the target screenshot displayed in this application is very low, and both the elderly and children can be simple and fast. master the operation method.
通过上述步骤,用户使用用户终端进行截图后,用户终端上会展示有目标截图。用户终端在接收到用户针对目标截图的滑动指令后,将获取滑动指令对应的滑动方向来判断用户滑动的方向,并根据滑动方向的不同对目标截图进行切换、删除、编辑等操作。以此实现了用户能够直接对截图后终端中展示的目标截图进行操作处理,使用起来简单便捷,不需要进行多步操作处理才能完成。由于对目标截图进行操作的逻辑与手机通用的后台程序处理操作逻辑类似,用户截图的成本低。Through the above steps, after the user uses the user terminal to take a screenshot, the target screenshot will be displayed on the user terminal. After receiving the user's sliding instruction for the target screenshot, the user terminal will obtain the sliding direction corresponding to the sliding instruction to determine the sliding direction of the user, and perform operations such as switching, deleting, and editing the target screenshot according to the different sliding directions. In this way, the user can directly operate and process the target screenshot displayed in the terminal after the screenshot is taken, which is simple and convenient to use, and does not require multi-step operation processing to complete. Since the logic of operating the target screenshot is similar to the processing operation logic of the background program common to the mobile phone, the cost of the user's screenshot is low.
参见图7,图7是本申请实施例的又一种截图处理方法的流程示意图。如图7所示,所述方法包括:Referring to FIG. 7 , FIG. 7 is a schematic flowchart of another screenshot processing method according to an embodiment of the present application. As shown in Figure 7, the method includes:
S201、接收针对当前界面的截屏指令,生成并存储截图图片。S201. Receive a screenshot instruction for the current interface, and generate and store a screenshot image.
所述截屏指令在本申请实施例中可以理解为指挥用户终端对当前界面进行截屏功能的代码,用户终端通过执行所述代码,可以生成截图图片。The screenshot instruction can be understood as a code for instructing the user terminal to perform a screenshot function of the current interface in the embodiment of the present application, and the user terminal can generate a screenshot picture by executing the code.
在本申请实施例中,当用户通过手势或按键进行截图操作时,用户终端将接收到针对当前界面的截屏指令,用户终端将基于截屏指令,对当前界面进行截屏,生成截图图片并将截图图片存储至图片数据库中。In this embodiment of the present application, when the user performs a screenshot operation through gestures or keys, the user terminal will receive a screenshot instruction for the current interface, and the user terminal will take a screenshot of the current interface based on the screenshot instruction, generate a screenshot image and take the screenshot image. stored in the image database.
S202、获取所述截图图片的缩略图,将所述缩略图确定为目标截图。S202: Acquire a thumbnail of the screenshot picture, and determine the thumbnail as a target screenshot.
所述缩略图在本申请实施例中可以理解为对图片大小进行压缩但图片内容没有发生改变的图片。In the embodiment of the present application, the thumbnail image can be understood as a picture whose size is compressed but the content of the picture does not change.
在本申请实施例中,用户终端在存储截图图片后,由于截图图片可能较大,直接展示可能会占用手机过多的资源而造成卡顿,用户终端将获取截图图片对应的缩略图,并将缩略图确定为目标截图,用于后续展示。In this embodiment of the present application, after the user terminal stores the screenshot images, since the screenshot images may be large, direct display may occupy too many resources of the mobile phone and cause a freeze. Thumbnails are determined as target screenshots for subsequent display.
S203、以卡片形式在当前界面上显示所述目标截图。S203. Display the target screenshot on the current interface in the form of a card.
所述卡片形式在本申请实施例中可以理解为将目标截图以一种不会占据用户终端屏幕全部大小的卡片样式呈现的方式。具体的,目标截图的长和宽可以为用户终端屏幕长和宽的一半,还可以为用户终端屏幕长和宽的三分之一。The card form can be understood as a way of presenting the target screenshot in a card form that does not occupy the full size of the screen of the user terminal in the embodiments of the present application. Specifically, the length and width of the target screenshot may be half of the length and width of the screen of the user terminal, and may also be one third of the length and width of the screen of the user terminal.
在本申请实施例中,如图8所示,图8是一种用户终端以卡片形式展示目标截图的举例示意图。用户终端会在截图完成后,将目标截图以卡片形式展示在当前界面上,用以告知用户截图完毕并展示截图。In this embodiment of the present application, as shown in FIG. 8 , FIG. 8 is a schematic diagram of an example in which a user terminal displays a target screenshot in the form of a card. After the screenshot is completed, the user terminal will display the target screenshot on the current interface in the form of a card, so as to inform the user that the screenshot is completed and display the screenshot.
可选的,目标截图可以以卡片形式展示在当前界面的正中间。Optionally, the target screenshot can be displayed in the middle of the current interface in the form of a card.
S204、接收针对当前界面上所显示的目标截图的滑动指令,获取所述滑动指令对应的滑动方向。S204: Receive a sliding instruction for the target screenshot displayed on the current interface, and acquire a sliding direction corresponding to the sliding instruction.
具体过程如步骤S101所示,故在此不再赘述。The specific process is shown in step S101 , so it is not repeated here.
S205、当所述滑动方向为第一方向时,获取所述滑动指令对应的滑动停留位置。S205. When the sliding direction is the first direction, acquire the sliding stop position corresponding to the sliding instruction.
滑动停留位置在本申请实施例中可以理解为用户在向第一方向滑动目标截图后,用户手指停止滑动的位置。用户终端将根据滑动停留位置与用户终端屏幕中心的横向距离确定展示的截图中哪一张截图距离用户终端屏幕中心最近。In the embodiment of the present application, the sliding stop position can be understood as the position where the user's finger stops sliding after the user slides the target screenshot in the first direction. The user terminal will determine which of the displayed screenshots is closest to the screen center of the user terminal according to the horizontal distance between the sliding stop position and the center of the screen of the user terminal.
例如,如图9所示,图9是一种用户终端停止滑动目标截图的举例示意图。第一方向可以是左右方向,当用户左右滑动目标截图时,用户终端将根据滑动停留位置确定用户停止滑动时最接近屏幕中心处的截图是哪张截图。当用户停止滑动的位置为图示位置时,此时所展示的目标截图左边一张截图距离用户终端屏幕中心最近。在用户移开手指后,用户终端将切换展示该截图。For example, as shown in FIG. 9 , FIG. 9 is an exemplary schematic diagram of a screenshot of a user terminal stopping sliding a target. The first direction may be the left and right direction. When the user slides the target screenshot left and right, the user terminal will determine, according to the sliding stop position, which screenshot is the closest to the center of the screen when the user stops sliding. When the position where the user stops sliding is the icon position, a screenshot to the left of the displayed target screenshot is closest to the center of the screen of the user terminal. After the user removes the finger, the user terminal will switch to display the screenshot.
在本申请实施例中,当用户终端确定滑动方向为第一方向时,用户终端即认为用户想要切换展示的目标截图,此时用户终端将根据滑动指令获取其对应的滑动停留位置,以此来确认用户停止滑动时该展示哪一张截图。In this embodiment of the present application, when the user terminal determines that the sliding direction is the first direction, the user terminal considers that the user wants to switch the displayed target screenshot, and at this time, the user terminal will obtain the corresponding sliding stop position according to the sliding instruction, so as to to confirm which screenshot to show when the user stops swiping.
S206、在卡片集合中确定所述滑动停留位置对应的参考截图,将所述目标截图切换为所述参考截图。S206. Determine a reference screenshot corresponding to the sliding stop position in the card set, and switch the target screenshot to the reference screenshot.
所述卡片集合在本申请实施例中可以理解为以卡片形式展现于用户终端屏幕上的一组截图集合。The card set may be understood as a set of screenshots displayed on the screen of the user terminal in the form of cards in the embodiment of the present application.
参考截图在本申请实施例中可以理解为以卡片形式展示在用户终端屏幕上的存储在图片数据库中的历史截图。In the embodiment of the present application, the reference screenshot may be understood as a historical screenshot stored in the picture database displayed on the screen of the user terminal in the form of a card.
在本申请实施例中,截图将以卡片集合的形式展示于当前界面中,即除了刚刚截取的目标截图外,参考截图也将按照一定的排列规律以卡片的形式展示。用户终端检测到用户希望切换目标截图时,将根据滑动停留位置确定应该切换的参考截图,并将目标截图切换为参考截图。In this embodiment of the present application, the screenshots will be displayed in the current interface in the form of a card set, that is, in addition to the target screenshot just taken, the reference screenshots will also be displayed in the form of cards according to a certain arrangement rule. When the user terminal detects that the user wants to switch the target screenshot, it will determine the reference screenshot that should be switched according to the sliding stop position, and switch the target screenshot to the reference screenshot.
可选的,参考截图与目标截图按照截取图片的时间顺序从左到右横向排列。Optionally, the reference screenshots and the target screenshots are arranged horizontally from left to right according to the time sequence of the captured pictures.
可选的,当用户终端截取目标截图后,将目标截图与参考截图的卡片集合展示于当前界面上,使得用户在对目标截图进行滑动操作处理时可以看到曾经截取的参考截图。进而辅助用户发现曾经截取但现在已经无用的参考截图,并可以针对该参考截图向第二方向滑动来删除该无用的参考截图。使得用户能够在每次截取新的截图时顺便对曾经的参考截图进行快速便捷的清理,不会造成用户长期不清理截图导致无用截图的堆积。Optionally, after the user terminal captures the target screenshot, the card set of the target screenshot and the reference screenshot is displayed on the current interface, so that the user can view the previously captured reference screenshot when performing a sliding operation on the target screenshot. Further, the user is assisted in discovering a reference screenshot that was taken but is now useless, and can swipe in the second direction for the reference screenshot to delete the useless reference screenshot. This enables the user to quickly and conveniently clean up the previous reference screenshots every time a new screenshot is taken, which will not cause the user to not clean up the screenshots for a long time and cause the accumulation of useless screenshots.
S207、当所述滑动方向为第二方向时,展示针对所述目标截图的删除控件。S207. When the sliding direction is the second direction, display a delete control for the target screenshot.
所述控件用户可与之交互以输入或操作数据的对象。所述删除控件在本申请实施例中可以理解为用户可与用户终端交互以删除目标截图的对象。The control is an object that a user can interact with to enter or manipulate data. In the embodiment of the present application, the deletion control can be understood as the object that the user can interact with the user terminal to delete the target screenshot.
例如,如图10所示,图10是一种用户终端中删除控件的举例示意图。用户在对目标截图向上滑动后,用户终端将展示针对目标截图的删除控件,来提示用户是否要删除该目标截图。删除控件上可以包含有“确认是否删除”的文本内容。For example, as shown in FIG. 10 , FIG. 10 is a schematic diagram of an example of deleting a control in a user terminal. After the user slides up the target screenshot, the user terminal will display a delete control for the target screenshot to prompt the user whether to delete the target screenshot. The delete control can contain the text "Confirm whether to delete".
在本申请实施例中,当用户终端确定滑动方向为第二方向时,用户终端将展示删除控件以供用户进行确认删除操作,防止用户在向第一方向滑动时误操作滑向第二方向而导致截图被删除的情况发生。In this embodiment of the present application, when the user terminal determines that the sliding direction is the second direction, the user terminal will display a delete control for the user to confirm the deletion operation, so as to prevent the user from sliding in the second direction by mistake when sliding in the first direction. A situation that caused the screenshot to be deleted.
在一种可实施方式中,步骤S207包括:In a possible implementation manner, step S207 includes:
当所述滑动方向为第二方向时,获取所述目标截图对应的显示时长;When the sliding direction is the second direction, acquiring the display duration corresponding to the target screenshot;
当所述显示时长小于第一预设时长时,展示针对所述目标截图的删除控件。When the display duration is less than the first preset duration, a delete control for the target screenshot is displayed.
所述显示时长在本申请实施例中可以理解为目标截图开始展示于用户终端屏幕上的时刻到当前时刻所经过的时长。In the embodiment of the present application, the display duration can be understood as the duration from the moment when the target screenshot starts to be displayed on the screen of the user terminal to the current moment.
在本申请实施例中,一般来说,截图后所展示的目标截图在持续一段时间未操作后将会隐去。为了避免用户在目标截图即将隐去的时候对目标截图进行操作而点击到了当前界面上的其他地方,用户终端在检测到滑动方向为第二方向时,首先将获取目标截图对应的显示时长来确定目标截图已经显示了多久,唯有当显示时长小于第一预设时长时用户终端才会展示删除控件。In the embodiment of the present application, generally speaking, the target screenshot displayed after the screenshot will be hidden after a period of inactivity. In order to prevent the user from clicking on other places on the current interface by operating the target screenshot when the target screenshot is about to disappear, when the user terminal detects that the sliding direction is the second direction, it will first obtain the display duration corresponding to the target screenshot to determine How long the target screenshot has been displayed, the user terminal will display the delete control only when the display duration is less than the first preset duration.
可选的,在显示时长大于第一预设时长时,目标截图还可以展示但无法进行操作,当显示时长达到第三预设时长时,隐去目标截图。例如,当目标截图的显示时长超过第一预设时长(如5s),此时用户对目标截图进行滑动,无法对目标截图进行任何操作,当显示时长达到第三预设时长(如6s)时,隐去目标截图。Optionally, when the display duration is longer than the first preset duration, the target screenshot can still be displayed but cannot be operated, and when the display duration reaches the third preset duration, the target screenshot is hidden. For example, when the display duration of the target screenshot exceeds the first preset duration (eg 5s), the user slides the target screenshot and cannot perform any operations on the target screenshot, and when the display duration reaches the third preset duration (eg 6s) , hide the target screenshot.
可选的,在显示时长等于第一预设时长时,用户终端将隐去目标截图。Optionally, when the display duration is equal to the first preset duration, the user terminal will hide the target screenshot.
S208、接收针对所述删除控件的确认指令,关闭所述删除控件并删除所述目标截图。S208. Receive a confirmation instruction for the deletion control, close the deletion control, and delete the target screenshot.
所述确认指令在本申请实施例中可以理解为指挥用户终端对进行删除截图功能的代码,用户终端通过执行所述代码,可以关闭删除控件并删除目标截图。The confirmation instruction can be understood as a code instructing the user terminal to perform the function of deleting screenshots in the embodiment of the present application. By executing the code, the user terminal can close the delete control and delete the target screenshot.
在本申请实施例中,用户在删除控件上点击确认删除后,用户终端将接收到确认指令,并响应确认指令关闭删除控件并删除目标截图。In the embodiment of the present application, after the user clicks on the delete control to confirm the deletion, the user terminal will receive the confirmation instruction, and respond to the confirmation instruction to close the deletion control and delete the target screenshot.
在一种可实施方式中,步骤S208之后,还包括:In a possible implementation manner, after step S208, it further includes:
删除所述截图图片。Delete the screenshot picture.
在本申请实施例中,由于展示的目标截图仅仅是截取的截图图片的缩略图,因此在删除缩略图后,用户终端还会将存储的截图图片删除。In this embodiment of the present application, since the displayed target screenshots are only thumbnails of the captured screenshots, after deleting the thumbnails, the user terminal will also delete the stored screenshots.
S209、当所述滑动方向为第三方向时,展示针对所述目标截图的图片编辑页面。所述第三方向与所述第二方向以及所述第一方向不同。S209. When the sliding direction is the third direction, display a picture editing page for the target screenshot. The third direction is different from the second direction and the first direction.
具体过程如步骤104所示,故在此不再赘述。The specific process is shown in step 104, so it is not repeated here.
通过上述步骤,用户使用用户终端进行截图后,用户终端将会存储截图图片并将截图图片的缩略图以卡片形式展示于当前界面。用户终端在接收到用户针对目标截图的滑动指令后,将获取滑动指令对应的滑动方向来判断用户滑动的方向,并根据滑动方向的不同对目标截图进行切换、删除、编辑等操作。用户终端将根据滑动指令对应的滑动停留位置确定切换的参考截图。在删除目标截图前,用户终端将确定目标截图的显示时长是否超过预设时长。以此实现了用户能够直接对截图后终端中展示的目标截图进行操作处理,使用起来简单便捷,不需要进行多步操作处理才能完成。由于对目标截图进行操作的逻辑与手机通用的后台程序处理操作逻辑类似,用户学习使用成本低。Through the above steps, after the user uses the user terminal to take a screenshot, the user terminal will store the screenshot image and display the thumbnail image of the screenshot image on the current interface in the form of a card. After receiving the user's sliding instruction for the target screenshot, the user terminal will obtain the sliding direction corresponding to the sliding instruction to determine the sliding direction of the user, and perform operations such as switching, deleting, and editing the target screenshot according to the different sliding directions. The user terminal will determine the reference screenshot for switching according to the sliding stop position corresponding to the sliding instruction. Before deleting the target screenshot, the user terminal will determine whether the display duration of the target screenshot exceeds the preset duration. In this way, the user can directly operate and process the target screenshot displayed in the terminal after the screenshot is taken, which is simple and convenient to use, and does not require multi-step operation processing to complete. Since the logic for operating the target screenshot is similar to the background program processing operation logic common to mobile phones, the learning and use cost of the user is low.
下面将结合附图11,对本申请实施例提供的截图处理装置进行详细介绍。需要说明的是,附图11所示的截图处理装置,用于执行本申请图1、图7所示实施例的方法,为了便于说明,仅示出了与本申请实施例相关的部分,具体技术细节未揭示的,请参照本申请图1、图7所示的实施例。The screenshot processing apparatus provided by the embodiment of the present application will be described in detail below with reference to FIG. 11 . It should be noted that the screenshot processing apparatus shown in FIG. 11 is used to execute the methods of the embodiments shown in FIG. 1 and FIG. 7 of the present application. For convenience of description, only the parts related to the embodiments of the present application are shown. If the technical details are not disclosed, please refer to the embodiments shown in FIG. 1 and FIG. 7 of the present application.
请参见图11,图11是本申请实施例提供的一种截图处理装置的结构示意图。如图11所示,所述装置包括:Please refer to FIG. 11 . FIG. 11 is a schematic structural diagram of a screenshot processing apparatus provided by an embodiment of the present application. As shown in Figure 11, the device includes:
接收模块1101,用于接收针对当前界面上所显示的目标截图的滑动指令,获取所述滑动指令对应的滑动方向;The
第一方向确定模块1102,用于当所述滑动方向为第一方向时,切换所述目标截图;a first
第二方向确定模块1103,用于当所述滑动方向为第二方向时,删除所述目标截图;所述第二方向与所述第一方向不同;A second
第三方向确定模块1104,用于当所述滑动方向为第三方向时,展示针对所述目标截图的图片编辑页面;所述第三方向与所述第二方向以及所述第一方向不同。The third
在一种可实施方式中,所述装置还包括:In a possible embodiment, the device further comprises:
存储模块,用于接收针对当前界面的截屏指令,生成并存储截图图片;The storage module is used to receive the screenshot instruction for the current interface, and generate and store the screenshot image;
确定模块,用于获取所述截图图片的缩略图,将所述缩略图确定为目标截图;A determination module, configured to obtain a thumbnail of the screenshot picture, and determine the thumbnail as a target screenshot;
显示模块,用于以卡片形式在当前界面上显示所述目标截图。The display module is used for displaying the target screenshot on the current interface in the form of a card.
在一种可实施方式中,所述第一方向确定模块1102具体用于:In a possible implementation manner, the first
当所述滑动方向为第一方向时,获取所述滑动指令对应的滑动停留位置;When the sliding direction is the first direction, acquiring the sliding stop position corresponding to the sliding instruction;
在卡片集合中确定所述滑动停留位置对应的参考截图,将所述目标截图切换为所述参考截图。A reference screenshot corresponding to the sliding stop position is determined in the card set, and the target screenshot is switched to the reference screenshot.
在一种可实施方式中,所述第二方向确定模块1103包括:In a possible implementation manner, the second
展示单元,用于当所述滑动方向为第二方向时,展示针对所述目标截图的删除控件;a display unit, configured to display a delete control for the target screenshot when the sliding direction is the second direction;
接收单元,用于接收针对所述删除控件的确认指令,关闭所述删除控件并删除所述目标截图。A receiving unit, configured to receive a confirmation instruction for the deletion control, close the deletion control, and delete the target screenshot.
在一种可实施方式中,所述接收单元还用于:In a possible implementation manner, the receiving unit is further configured to:
删除所述截图图片。Delete the screenshot picture.
在一种可实施方式中,所述展示单元具体用于:In a possible implementation manner, the display unit is specifically used for:
当所述滑动方向为第二方向时,获取所述目标截图对应的显示时长;When the sliding direction is the second direction, acquiring the display duration corresponding to the target screenshot;
当所述显示时长小于第一预设时长时,展示针对所述目标截图的删除控件。When the display duration is less than the first preset duration, a delete control for the target screenshot is displayed.
在一种可实施方式中,所述装置还包括:In a possible embodiment, the device further comprises:
获取模块,用于接收针对所述目标截图的按压指令,获取所述按压指令对应的持续按压时长;an acquisition module, configured to receive a pressing instruction for the target screenshot, and acquire the continuous pressing duration corresponding to the pressing instruction;
操作模块,用于当所述持续按压时长大于第二预设时长时,对所述目标截图对应的显示画面进行长截图操作。The operation module is configured to perform a long screenshot operation on the display screen corresponding to the target screenshot when the continuous pressing duration is greater than the second preset duration.
在一种可实施方式中,所述装置还包括:In a possible embodiment, the device further comprises:
编辑模块,用于在图片编辑页面上接收编辑指令,生成编辑图片;The editing module is used to receive editing instructions on the picture editing page and generate editing pictures;
删除模块,用于展示针对所述编辑图片对应的目标截图的删除控件。The deletion module is used to display the deletion control for the target screenshot corresponding to the edited picture.
在一种可实施方式中,所述第一方向为左右方向,所述第二方向为向上方向,所述第三方向为向下方向。In an embodiment, the first direction is a left-right direction, the second direction is an upward direction, and the third direction is a downward direction.
本领域的技术人员可以清楚地了解到本申请实施例的技术方案可借助软件和/或硬件来实现。本说明书中的“单元”和“模块”是指能够独立完成或与其他部件配合完成特定功能的软件和/或硬件,其中硬件例如可以是现场可编程门阵列(Field-ProgrammableGate Array,FPGA)、集成电路(Integrated Circuit,IC)等。Those skilled in the art can clearly understand that the technical solutions of the embodiments of the present application can be implemented by means of software and/or hardware. The "unit" and "module" in this specification refer to software and/or hardware that can perform a specific function independently or in cooperation with other components, wherein the hardware can be, for example, a Field-Programmable Gate Array (FPGA), Integrated Circuit (IC), etc.
本申请实施例的各处理单元和/或模块,可通过实现本申请实施例所述的功能的模拟电路而实现,也可以通过执行本申请实施例所述的功能的软件而实现。Each processing unit and/or module in the embodiments of the present application may be implemented by an analog circuit that implements the functions described in the embodiments of the present application, or may be implemented by software that executes the functions described in the embodiments of the present application.
参见图12,其示出了本申请实施例所涉及的一种电子设备的结构示意图,该电子设备可以用于实施图1、图7所示实施例中的方法。如图12所示,电子设备1200可以包括:至少一个中央处理器1201,至少一个网络接口1204,用户接口1203,存储器1205,至少一个通信总线1202。Referring to FIG. 12 , it shows a schematic structural diagram of an electronic device involved in an embodiment of the present application, and the electronic device can be used to implement the methods in the embodiments shown in FIG. 1 and FIG. 7 . As shown in FIG. 12 , the
其中,通信总线1202用于实现这些组件之间的连接通信。Among them, the
其中,用户接口1203可以包括显示屏(Display)、摄像头(Camera),可选用户接口1203还可以包括标准的有线接口、无线接口。The
其中,网络接口1204可选的可以包括标准的有线接口、无线接口(如WI-FI接口)。Wherein, the
其中,中央处理器1201可以包括一个或者多个处理核心。中央处理器1201利用各种接口和线路连接整个终端1200内的各个部分,通过运行或执行存储在存储器1205内的指令、程序、代码集或指令集,以及调用存储在存储器1205内的数据,执行终端1200的各种功能和处理数据。可选的,中央处理器1201可以采用数字信号处理(Digital SignalProcessing,DSP)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)、可编程逻辑阵列(Programmable Logic Array,PLA)中的至少一种硬件形式来实现。中央处理器1201可集成中央中央处理器(Central Processing Unit,CPU)、图像中央处理器(GraphicsProcessing Unit,GPU)和调制解调器等中的一种或几种的组合。其中,CPU主要处理操作系统、用户界面和应用程序等;GPU用于负责显示屏所需要显示的内容的渲染和绘制;调制解调器用于处理无线通信。可以理解的是,上述调制解调器也可以不集成到中央处理器1201中,单独通过一块芯片进行实现。The
其中,存储器1205可以包括随机存储器(Random Access Memory,RAM),也可以包括只读存储器(Read-Only Memory)。可选的,该存储器1205包括非瞬时性计算机可读介质(non-transitory computer-readable storage medium)。存储器1205可用于存储指令、程序、代码、代码集或指令集。存储器1205可包括存储程序区和存储数据区,其中,存储程序区可存储用于实现操作系统的指令、用于至少一个功能的指令(比如触控功能、声音播放功能、图像播放功能等)、用于实现上述各个方法实施例的指令等;存储数据区可存储上面各个方法实施例中涉及到的数据等。存储器1205可选的还可以是至少一个位于远离前述中央处理器1201的存储装置。如图12所示,作为一种计算机存储介质的存储器1205中可以包括操作系统、网络通信模块、用户接口模块以及程序指令。The
在图12所示的电子设备1200中,用户接口1203主要用于为用户提供输入的接口,获取用户输入的数据;而处理器1201可以用于调用存储器1205中存储的截图处理应用程序,并具体执行以下操作:In the
接收针对当前界面上所显示的目标截图的滑动指令,获取所述滑动指令对应的滑动方向;Receive a sliding instruction for the target screenshot displayed on the current interface, and obtain the sliding direction corresponding to the sliding instruction;
当所述滑动方向为第一方向时,切换所述目标截图;When the sliding direction is the first direction, switching the target screenshot;
当所述滑动方向为第二方向时,删除所述目标截图;所述第二方向与所述第一方向不同;When the sliding direction is the second direction, delete the target screenshot; the second direction is different from the first direction;
当所述滑动方向为第三方向时,展示针对所述目标截图的图片编辑页面;所述第三方向与所述第二方向以及所述第一方向不同。When the sliding direction is the third direction, a picture editing page for the target screenshot is displayed; the third direction is different from the second direction and the first direction.
本申请还提供一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现上述方法的步骤。其中,计算机可读存储介质可以包括但不限于任何类型的盘,包括软盘、光盘、DVD、CD-ROM、微型驱动器以及磁光盘、ROM、RAM、EPROM、EEPROM、DRAM、VRAM、闪速存储器设备、磁卡或光卡、纳米系统(包括分子存储器IC),或适合于存储指令和/或数据的任何类型的媒介或设备。The present application also provides a computer-readable storage medium on which a computer program is stored, and when the program is executed by a processor, implements the steps of the above method. Among them, the computer-readable storage medium may include, but is not limited to, any type of disk, including floppy disks, optical disks, DVDs, CD-ROMs, micro-drives, and magneto-optical disks, ROM, RAM, EPROM, EEPROM, DRAM, VRAM, flash memory devices , magnetic or optical cards, nanosystems (including molecular memory ICs), or any type of medium or device suitable for storing instructions and/or data.
需要说明的是,对于前述的各方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本申请并不受所描述的动作顺序的限制,因为依据本申请,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定是本申请所必须的。It should be noted that, for the sake of simple description, the foregoing method embodiments are all expressed as a series of action combinations, but those skilled in the art should know that the present application is not limited by the described action sequence. Because in accordance with the present application, certain steps may be performed in other orders or concurrently. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。In the above-mentioned embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference may be made to the relevant descriptions of other embodiments.
在本申请所提供的几个实施例中,应该理解到,所揭露的装置,可通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些服务接口,装置或单元的间接耦合或通信连接,可以是电性或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed apparatus may be implemented in other manners. For example, the apparatus embodiments described above are only illustrative, for example, the division of the units is only a logical function division, and there may be other division methods in actual implementation, for example, multiple units or components may be combined or Integration into another system, or some features can be ignored, or not implemented. On the other hand, the shown or discussed mutual coupling or direct coupling or communication connection may be through some service interfaces, indirect coupling or communication connection of devices or units, and may be in electrical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution in this embodiment.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit. The above-mentioned integrated units may be implemented in the form of hardware, or may be implemented in the form of software functional units.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储器中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储器中,包括若干指令用以使得一台计算机设备(可为个人计算机、服务器或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储器包括:U盘、只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。The integrated unit, if implemented as a software functional unit and sold or used as a stand-alone product, may be stored in a computer-readable memory. Based on this understanding, the technical solution of the present application can be embodied in the form of a software product in essence, or the part that contributes to the prior art, or all or part of the technical solution, and the computer software product is stored in a memory, Several instructions are included to cause a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned memory includes: U disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), mobile hard disk, magnetic disk or optical disk and other media that can store program codes.
本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通进程序来指令相关的硬件来完成,该程序可以存储于一计算机可读存储器中,存储器可以包括:闪存盘、只读存储器(Read-Only Memory,ROM)、随机存取器(Random AccessMemory,RAM)、磁盘或光盘等。Those skilled in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing relevant hardware through a program, and the program can be stored in a computer-readable memory, and the memory can include: flash memory disk, read-only memory (Read-Only Memory, ROM), random access device (Random Access Memory, RAM), magnetic disk or optical disk, etc.
以上所述者,仅为本公开的示例性实施例,不能以此限定本公开的范围。即但凡依本公开教导所作的等效变化与修饰,皆仍属本公开涵盖的范围内。本领域技术人员在考虑说明书及实践这里的公开后,将容易想到本公开的其实施方案。本申请旨在涵盖本公开的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本公开的一般性原理并包括本公开未记载的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本公开的范围和精神由权利要求限定。The above descriptions are merely exemplary embodiments of the present disclosure, which cannot limit the scope of the present disclosure. That is, all equivalent changes and modifications made according to the teachings of the present disclosure are still within the scope of the present disclosure. Embodiments of the present disclosure will be readily apparent to those skilled in the art upon consideration of the specification and practice of the disclosure herein. This application is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or conventional techniques in the art not described in this disclosure . The specification and examples are to be regarded as exemplary only, and the scope and spirit of the present disclosure are defined by the claims.
Claims (12)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011065430.3A CN112130738B (en) | 2020-09-30 | 2020-09-30 | Screenshot processing method, device, electronic device and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011065430.3A CN112130738B (en) | 2020-09-30 | 2020-09-30 | Screenshot processing method, device, electronic device and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112130738A true CN112130738A (en) | 2020-12-25 |
CN112130738B CN112130738B (en) | 2024-09-06 |
Family
ID=73843724
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011065430.3A Active CN112130738B (en) | 2020-09-30 | 2020-09-30 | Screenshot processing method, device, electronic device and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112130738B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113360067A (en) * | 2021-06-21 | 2021-09-07 | 维沃移动通信(杭州)有限公司 | Screenshot cleaning method and device |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105549891A (en) * | 2016-01-12 | 2016-05-04 | 努比亚技术有限公司 | Screenshot method based on back pressure sensor and mobile terminal |
CN105975170A (en) * | 2016-06-20 | 2016-09-28 | 财付通支付科技有限公司 | Page loading method and device |
CN109271081A (en) * | 2018-07-28 | 2019-01-25 | 华为技术有限公司 | Roll the method and electronic equipment of screenshotss |
-
2020
- 2020-09-30 CN CN202011065430.3A patent/CN112130738B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105549891A (en) * | 2016-01-12 | 2016-05-04 | 努比亚技术有限公司 | Screenshot method based on back pressure sensor and mobile terminal |
CN105975170A (en) * | 2016-06-20 | 2016-09-28 | 财付通支付科技有限公司 | Page loading method and device |
CN109271081A (en) * | 2018-07-28 | 2019-01-25 | 华为技术有限公司 | Roll the method and electronic equipment of screenshotss |
CN110764673A (en) * | 2018-07-28 | 2020-02-07 | 华为技术有限公司 | Method for scrolling screen capture and electronic equipment |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113360067A (en) * | 2021-06-21 | 2021-09-07 | 维沃移动通信(杭州)有限公司 | Screenshot cleaning method and device |
Also Published As
Publication number | Publication date |
---|---|
CN112130738B (en) | 2024-09-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2022063176A1 (en) | Method and apparatus for publishing videos or images, device, and medium | |
CN106658141B (en) | A video processing method and mobile terminal | |
CN112148170B (en) | Desktop element adjustment method, device and electronic device | |
EP2565769A2 (en) | Apparatus and method for changing an icon in a portable terminal | |
CN106406739B (en) | Method for generating note and mobile terminal | |
WO2019020052A1 (en) | Photography method and mobile terminal | |
WO2019007227A1 (en) | Method and apparatus for continuing to display view after switching pages | |
WO2017202051A1 (en) | Method and device for processing application icon, and electronic apparatus | |
CN109218819B (en) | Video preview method and mobile terminal | |
KR20130093043A (en) | Method and mobile device for user interface for touch and swipe navigation | |
CN107479818B (en) | Information interaction method and mobile terminal | |
CN110531920A (en) | Display method and device of sidebar, terminal and storage medium | |
CN106681623A (en) | Screenshot picture sharing method and mobile terminal | |
CN107613117A (en) | A multitasking-based interface display method and mobile terminal | |
WO2015027505A1 (en) | Text processing method and touchscreen device | |
CN102549577A (en) | Method and device for searching contacts, and mobile terminal applying same | |
CN106527906A (en) | Picture capture method and mobile terminal | |
CN103941989A (en) | Method and electronic device for executing processing processes in triggered mode | |
WO2016078251A1 (en) | Projector playing control method, device, and computer storage medium | |
CN106101597A (en) | The image pickup method of a kind of video that fixes and mobile terminal | |
CN107643859A (en) | A kind of running status restoration methods and mobile terminal | |
WO2022068721A1 (en) | Screen capture method and apparatus, and electronic device | |
CN107124656B (en) | A method for playing multimedia files and a mobile terminal | |
CN106776821A (en) | A kind of album creating method and terminal | |
CN106686402A (en) | A video processing method and mobile terminal |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |