CN107861681A - Screenshotss processing method, device, computer equipment and storage medium - Google Patents
Screenshotss processing method, device, computer equipment and storage medium Download PDFInfo
- Publication number
- CN107861681A CN107861681A CN201711012183.9A CN201711012183A CN107861681A CN 107861681 A CN107861681 A CN 107861681A CN 201711012183 A CN201711012183 A CN 201711012183A CN 107861681 A CN107861681 A CN 107861681A
- Authority
- CN
- China
- Prior art keywords
- area
- touch
- image
- screenshot
- screen capture
- 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.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; 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
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; 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/0485—Scrolling or panning
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
本发明涉及一种截屏处理方法、装置、计算机设备和存储介质。该方法包括:获取截屏指令;根据所述截屏指令截取屏幕第一区域展示的内容,作为截屏图像;将所述截屏图像展示在屏幕第二区域;侦测对终端显示屏的触摸操作,获取所述触摸操作的触摸区域信息;根据所述触摸区域信息,控制隐藏所述截屏图像或进入截屏图像编辑界面。上述的截屏处理方法、装置、计算机设备和存储介质,提升了截屏后终端操作的灵活性。
The invention relates to a screenshot processing method, device, computer equipment and storage medium. The method includes: acquiring a screenshot instruction; intercepting content displayed in the first area of the screen according to the screenshot instruction, as a screenshot image; displaying the screenshot image in the second area of the screen; detecting a touch operation on the terminal display screen, and obtaining the captured image. The touch area information of the touch operation; according to the touch area information, control to hide the screenshot image or enter the screenshot image editing interface. The above screen capture processing method, device, computer equipment and storage medium improve the flexibility of terminal operation after screen capture.
Description
技术领域technical field
本发明涉及信息处理技术领域,特别是涉及一种截屏处理方法、装置、计算机设备和存储介质。The present invention relates to the technical field of information processing, in particular to a screenshot processing method, device, computer equipment and storage medium.
背景技术Background technique
随着信息处理技术的发展,截屏操作在终端中的应用越来越广泛。以手机截屏为例对一般的终端截屏处理方法进行介绍,在手机获取到截屏指令后,手机屏幕上将会显示所截取屏幕的预览图,预览图在悬浮一定时间后即可消失。然而,在上述截屏处理方法中,由于在预览图悬浮期间,该预览图对手机屏幕造成部分或全部遮挡,影响屏幕中遮挡区域的操作。因而,这种截屏处理方法降低了截屏后终端操作的灵活性。With the development of information processing technology, screen capture operations are more and more widely used in terminals. Taking mobile phone screen capture as an example to introduce the general terminal screen capture processing method, after the mobile phone obtains the screen capture command, the preview image of the captured screen will be displayed on the mobile phone screen, and the preview image will disappear after floating for a certain period of time. However, in the above screen capture processing method, since the preview image partially or completely blocks the screen of the mobile phone during the suspension period of the preview image, the operation of the screen in the blocked area is affected. Therefore, this screen capture processing method reduces the flexibility of the terminal operation after the screen capture.
发明内容Contents of the invention
基于此,有必要针对上述技术问题,提供一种能够提升截屏后终端操作灵活性的截屏处理方法、装置、计算机设备和存储介质。Based on this, it is necessary to provide a screen capture processing method, device, computer equipment, and storage medium capable of improving terminal operation flexibility after screen capture in view of the above technical problems.
一种截屏处理方法,包括:获取截屏指令;根据所述截屏指令截取屏幕第一区域展示的内容,作为截屏图像;将所述截屏图像展示在屏幕第二区域;侦测对终端显示屏的触摸操作,获取所述触摸操作的触摸区域信息;根据所述触摸区域信息,控制隐藏所述截屏图像或进入截屏图像编辑界面。A screenshot processing method, comprising: obtaining a screenshot instruction; intercepting content displayed in a first area of the screen according to the screenshot instruction, as a screenshot image; displaying the screenshot image in a second area of the screen; detecting a touch to a terminal display screen Operation, to obtain the touch area information of the touch operation; according to the touch area information, control to hide the screenshot image or enter the screenshot image editing interface.
在其中一个实施例中,根据所述触摸区域信息,控制隐藏所述截屏图像或进入截屏图像编辑界面的步骤包括:根据所述触摸区域信息,判断所述触摸操作是否在所述第二区域;如是,则控制进入截屏图像编辑界面;如否,则隐藏所述截屏图像。In one embodiment, according to the touch area information, the step of controlling to hide the screenshot image or enter the screenshot image editing interface includes: judging whether the touch operation is in the second area according to the touch area information; If yes, the control enters the screen capture image editing interface; if no, the screen capture image is hidden.
在其中一个实施例中,所述根据所述触摸区域信息,判断所述触摸操作是否在所述第二区域的步骤包括:检测所述触摸区域信息中的触摸坐标集,判断所述触摸操作的坐标集和所述第二区域的坐标集是否存在交集;若是,则判定所述触摸操作在所述第二区域;否则,判定所述触摸区域不在所述第二区域。In one embodiment, the step of judging whether the touch operation is in the second area according to the touch area information includes: detecting a touch coordinate set in the touch area information, and judging the touch operation Whether there is an intersection between the coordinate set and the coordinate set of the second area; if yes, determine that the touch operation is in the second area; otherwise, determine that the touch area is not in the second area.
在其中一个实施例中,所述根据所述截屏指令截取第一区域展示的内容,作为截屏图像,包括:根据所述截屏指令显示截屏界面框;接收作用于所述截屏界面框内的触摸轨迹信息;将所述触摸轨迹信息中的触摸坐标集形成的封闭区域作为第一区域;截取所述第一区域展示的内容,作为截屏图像。In one of the embodiments, the intercepting the content displayed in the first area according to the screenshot instruction as a screenshot image includes: displaying a screenshot interface frame according to the screenshot instruction; receiving a touch track acting on the screenshot interface frame information; taking the enclosed area formed by the touch coordinate set in the touch track information as the first area; intercepting the content displayed in the first area as a screenshot image.
在其中一个实施例中,所述触摸操作包括滑动操作,所述触摸区域信息包括根据所述滑动操作形成滑动轨迹信息。In one of the embodiments, the touch operation includes a slide operation, and the touch area information includes slide track information formed according to the slide operation.
在其中一个实施例中,在所述根据所述截屏指令截取第一区域展示的内容,作为截屏图像之后,还包括:获取与所述第一区域对应的预置图像;将所述截屏图像中处于第三区域内的区域图像替换为所述预置图像,生成处理后的截屏图像。In one of the embodiments, after capturing the content displayed in the first area according to the screenshot instruction as a screenshot image, it further includes: acquiring a preset image corresponding to the first area; The area image in the third area is replaced with the preset image to generate a processed screenshot image.
一种截屏处理装置,所述装置包括:截屏指令获取模块,用于获取截屏指令;截屏图像生成模块,用于根据所述截屏指令截取屏幕第一区域展示的内容,作为截屏图像;截屏预览模块,用于将所述截屏图像展示在屏幕第二区域;触摸操作侦测模块,用于侦测对终端显示屏的触摸操作,获取所述触摸操作的触摸区域信息;截屏处理模块,用于根据所述触摸区域信息,控制隐藏所述截屏图像或进入截屏图像编辑界面。A screen capture processing device, the device comprising: a screen capture command acquisition module, configured to acquire a screen capture command; a screen capture image generation module, configured to capture content displayed in a first area of the screen according to the screen capture command, as a screen capture image; a screen capture preview module , for displaying the screenshot image in the second area of the screen; a touch operation detection module, for detecting a touch operation on the display screen of the terminal, and obtaining the touch area information of the touch operation; a screen capture processing module, for according to The touch area information is used to control hiding of the screen capture image or to enter a screen capture image editing interface.
在其中一个实施例中,所述截屏图像生成模块还用于根据所述截屏指令显示截屏界面框;接收作用于所述截屏界面框内的触摸轨迹信息;将所述触摸轨迹信息中的触摸坐标集形成的封闭区域作为第一区域;截取所述第一区域展示的内容,作为截屏图像。In one of the embodiments, the screen capture image generating module is further configured to display a screen capture interface frame according to the screen capture instruction; receive touch track information acting on the screen capture interface frame; and convert the touch coordinates in the touch track information to The closed area formed by the collection is used as the first area; the content displayed in the first area is intercepted as a screenshot image.
一种计算机设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现上述任一种截屏处理方法的步骤。A computer device, comprising a memory, a processor, and a computer program stored on the memory and operable on the processor, when the processor executes the computer program, the steps of any one of the above screenshot processing methods are realized.
一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现上述任一种截屏处理方法的步骤。A computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of any one of the above screen capture processing methods are implemented.
上述的截屏处理方法、装置、计算机设备和存储介质,根据截屏指令截取第一区域展示的内容,作为截屏图像;将截屏图像展示在第二区域内;当在第一时长之内侦测到对终端显示屏的触摸操作时,获取触摸操作的触摸区域信息;根据所述触摸区域信息,控制隐藏所述截屏图像或进入截屏图像编辑界面,可提高截屏后终端操作的灵活性。The above-mentioned screenshot processing method, device, computer equipment and storage medium intercept the content displayed in the first area according to the screenshot instruction as a screenshot image; display the screenshot image in the second area; During the touch operation of the terminal display screen, the touch area information of the touch operation is obtained; according to the touch area information, the screen capture image is controlled to hide or enter the screen capture image editing interface, which can improve the flexibility of the terminal operation after the screen capture.
附图说明Description of drawings
图1为一个实施例中移动终端的内部结构示意图;Fig. 1 is a schematic diagram of the internal structure of a mobile terminal in an embodiment;
图2为一个实施例中截屏处理方法的流程示意图;Fig. 2 is a schematic flow chart of a screenshot processing method in an embodiment;
图3为一个实施例中终端屏幕显示界面示意图;Fig. 3 is a schematic diagram of a terminal screen display interface in an embodiment;
图4为一个实施例中截屏预览界面示意图;Fig. 4 is a schematic diagram of a screenshot preview interface in an embodiment;
图5为一个实施例中截屏图像处理界面示意图;Fig. 5 is a schematic diagram of a screenshot image processing interface in an embodiment;
图6为一个实施例中截屏处理装置的结构框图。Fig. 6 is a structural block diagram of a screenshot processing device in an embodiment.
具体实施方式Detailed ways
为了使本发明的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本发明进行进一步详细说明。应当理解,此处描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.
可以理解,本发明所使用的术语“第一”、“第二”、“第三”等可在本文中用于描述各种区域,但这些区域不受这些术语限制。这些术语仅用于将第一个区域与另一个区域进行区分。举例来说,在不脱离本发明的范围的情况下,可以将第一区域称为第二区域,且类似地,可将第二区域称为第一区域。第一区域、第二区域和第三区域三者同指区域,但其不是同一区域。It can be understood that the terms "first", "second", "third" and so on used in the present invention can be used to describe various areas herein, but these areas are not limited by these terms. These terms are used only to distinguish one region from another. For example, a first region could be termed a second region, and, similarly, a second region could be termed a first region, without departing from the scope of the present invention. The first area, the second area and the third area refer to the same area, but they are not the same area.
图1为一个实施例中终端的内部结构示意图。该终端包括但不限于手机、平板电脑、便携式笔记本或智能穿戴设备等。参照图1,该终端包括通过系统总线连接的处理器、存储器、显示屏、语音采集装置和输入装置。其中,该处理器用于提供计算和控制能力,支撑整个终端的运行。语音采集装置用于接收环境的语音信息。存储器用于存储数据、程序、和/或指令代码等,存储器上存储至少一个计算机程序,该计算机程序可被处理器执行,以实现本申请实施例中提供的适用于终端的截屏处理方法。存储器可包括磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)等非易失性存储介质,或随机存储记忆体(Random-Access-Memory,RAM)等。例如,在一个实施例中,存储器包括非易失性存储介质及内存储器。非易失性存储介质存储有操作系统、数据库和计算机程序。该数据库中存储有用于实现各实施例所提供的一种截屏处理方法相关的数据。该计算机程序可被处理器所执行,以用于实现各实施例所提供的一种截屏处理方法。内存储器为非易失性存储介质中的操作系统、数据库和计算机程序提供高速缓存的运行环境。输入装置可以是显示屏上覆盖的触摸层,也可以是移动终端外壳上设置的按键、轨迹球或触控板,也可以是外接的键盘、触控板或鼠标等。显示屏可以是触摸屏,比如为电容屏或电子屏,可通过接收作用于该触摸屏上显示的控件的点击操作,生成相应的指令。Fig. 1 is a schematic diagram of the internal structure of a terminal in an embodiment. The terminal includes, but is not limited to, a mobile phone, a tablet computer, a portable notebook, or a smart wearable device. Referring to FIG. 1 , the terminal includes a processor, a memory, a display screen, a voice collection device and an input device connected through a system bus. Among them, the processor is used to provide computing and control capabilities to support the operation of the entire terminal. The voice collecting device is used for receiving the voice information of the environment. The memory is used to store data, programs, and/or instruction codes, etc., and at least one computer program is stored on the memory, and the computer program can be executed by the processor to implement the screenshot processing method suitable for the terminal provided in the embodiment of the present application. The memory may include a non-volatile storage medium such as a magnetic disk, an optical disk, a read-only memory (Read-Only Memory, ROM), or a random-access-memory (Random-Access-Memory, RAM). For example, in one embodiment, the memory includes non-volatile storage media and internal memory. Nonvolatile storage media store operating systems, databases, and computer programs. The database stores data related to implementing a screenshot processing method provided by various embodiments. The computer program can be executed by a processor, so as to implement a screenshot processing method provided by various embodiments. Internal memory provides a cached operating environment for operating systems, databases, and computer programs in non-volatile storage media. The input device may be a touch layer covered on the display screen, or a button, a trackball or a touch pad provided on the casing of the mobile terminal, or an external keyboard, touch pad or mouse. The display screen may be a touch screen, such as a capacitive screen or an electronic screen, and a corresponding instruction may be generated by receiving a click operation acting on a control displayed on the touch screen.
本领域技术人员可以理解,图1中示出的结构,仅仅是与本申请方案相关的部分结构的框图,并不构成对本申请方案所应用于其上的计算机设备的限定,具体的计算机设备可以包括比图中所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布置。Those skilled in the art can understand that the structure shown in Figure 1 is only a block diagram of a partial structure related to the solution of the present application, and does not constitute a limitation to the computer equipment on which the solution of the application is applied. The specific computer equipment can be More or fewer components than shown in the figures may be included, or some components may be combined, or have a different arrangement of components.
在一个实施例中,如图2所示,提供了一种截屏处理方法。本实施例以该方法应用于图1所示的终端来举例说明。参照图2,该截屏处理方法包括如下步骤:In one embodiment, as shown in FIG. 2 , a screenshot processing method is provided. This embodiment is described by taking the method applied to the terminal shown in FIG. 1 as an example. With reference to Fig. 2, this screenshot processing method comprises the steps:
步骤S202,获取截屏指令。Step S202, acquiring a screenshot instruction.
本实施例中,终端可在检测到对预设的截屏控件的操作时,触发截屏指令。其中,该截屏控件可为屏幕界面上显示的虚拟截屏按钮,或者设置在终端上的实体控件。比如,在检测到对该虚拟截屏按钮的点击操作,触发截屏指令,或者在检测到设置在终端上的电源键和音量下键被同时按压时,即可触发截屏指令。In this embodiment, the terminal may trigger a screen capture instruction when detecting an operation on a preset screen capture control. Wherein, the screen capture control may be a virtual screen capture button displayed on the screen interface, or a physical control set on the terminal. For example, when a click operation on the virtual screen capture button is detected, the screen capture command is triggered, or when it is detected that the power key and the volume down key provided on the terminal are pressed simultaneously, the screen capture command can be triggered.
在一个实施例中,终端也可以通过运动传感器检测本机的运动轨迹,当检测到的运动轨迹与预设的运动轨迹相匹配时,触发截屏指令。比如用户可以通过摇晃手机来触发截屏指令。还可以接收用户输入的语音信息,当该语音信息与预设的语音信息相匹配时,触发截屏指令。比如终端可在语音指令采集状态下,当解析出接收到的语音为“截屏”时,触发截屏指令。In an embodiment, the terminal may also detect the movement trajectory of the terminal through the motion sensor, and when the detected movement trajectory matches the preset movement trajectory, a screen capture instruction is triggered. For example, a user can trigger a screenshot command by shaking the phone. Voice information input by the user may also be received, and when the voice information matches the preset voice information, a screen capture instruction is triggered. For example, the terminal may trigger a screen capture command when it analyzes that the received voice is "screen capture" in the state of voice command collection.
步骤S204,根据截屏指令截取屏幕第一区域展示的内容,作为截屏图像。Step S204, according to the screen capture instruction, capture the content displayed in the first area of the screen as a screen capture image.
本实施例中,第一区域可为终端屏幕上展示的任意合适的区域。第一区域可为固定的区域,或者可为用户自定义设置的任意区域。比如,该第一区域可为包含整个终端屏幕上展示的区域,还可为去除终端屏幕上的状态栏之外的区域等。如图3所示,可将该整个终端屏幕上展示的区域300作为第一区域,可提取该第一区域当前展示的内容,将该内容转换成图像数据,以形成截屏图像。In this embodiment, the first area may be any suitable area displayed on the terminal screen. The first area may be a fixed area, or may be any area defined by the user. For example, the first area may include an area displayed on the entire terminal screen, or may be an area excluding a status bar on the terminal screen, and the like. As shown in FIG. 3 , the area 300 displayed on the entire terminal screen can be used as the first area, the content currently displayed in the first area can be extracted, and the content can be converted into image data to form a screenshot image.
步骤S206,将截屏图像展示在屏幕第二区域。Step S206, displaying the screenshot image in the second area of the screen.
本实施例中,第二区域为终端屏幕上用于预览展示截屏图像的区域。该第二区域可为固定的区域,或者可为用户自定义设置的任意区域。比如可为位于终端显示屏的左上角、左下角、右上角、右下角、中间位置区域以及整个显示屏幕等其中的任意一种位置。In this embodiment, the second area is an area on the terminal screen for previewing and displaying screenshot images. The second area may be a fixed area, or may be any area defined by the user. For example, it may be located at any one of the upper left corner, lower left corner, upper right corner, lower right corner, middle position area, and the entire display screen of the terminal display screen.
终端可根据截屏图像的分辨率和第二区域的区域大小,对该截屏图像进行缩放处理,将缩放后的截屏图像展示在第二区域内。如图3和4所示,将图3上的整个终端屏幕上展示的区域300作为第一区域,并将其右上角区域302作为第二区域。并将得到的截屏图像缩放展示在第二区域中,以提供给用户预览。The terminal may perform scaling processing on the screen capture image according to the resolution of the screen capture image and the area size of the second area, and display the scaled screen capture image in the second area. As shown in FIGS. 3 and 4 , the area 300 shown on the entire terminal screen in FIG. 3 is taken as the first area, and the area 302 at the upper right corner thereof is taken as the second area. And the obtained screenshot image is scaled and displayed in the second area, so as to provide the user with a preview.
在一个实施例中,终端可获取上一次截屏图像展示的区域的位置信息,记录该位置信息,将获取到的截屏图像展示在该位置信息对应的区域内。In one embodiment, the terminal may acquire the location information of the area where the screenshot image was displayed last time, record the location information, and display the acquired screenshot image in the area corresponding to the location information.
步骤S208,侦测对终端显示屏的触摸操作,获取上述触摸操作的触摸区域信息。Step S208, detecting a touch operation on the display screen of the terminal, and acquiring touch area information of the touch operation.
本实施例中,终端可实时侦测用户对终端显示屏的触摸操作,并获取该触摸操作所作用的触摸区域信息。可选地,可检测是否在第一时长之内侦测到对终端显示屏的触摸操作,若是,则获取上述触摸操作的触摸区域信息。当未在第一时长之内侦测到触摸操作,可直接隐藏截屏图像。In this embodiment, the terminal can detect the user's touch operation on the display screen of the terminal in real time, and obtain the information of the touch area on which the touch operation acts. Optionally, it may be detected whether a touch operation on the display screen of the terminal is detected within the first duration, and if so, acquire the touch area information of the touch operation. When no touch operation is detected within the first time period, the screenshot image may be directly hidden.
其中,第一时长为任意时长。比如,第一时长为固定时长3秒。终端可在第二区域展示截屏图像时,调用预设的计时器开始计时,当计时的时长达到第一时长,还未侦测到对显示屏的触摸操作时,判定未在第一时长之内侦测到对终端显示屏的触摸操作。当在计时时长还未到达第一时长,侦测到对显示屏的触摸操作时,判定在第一时长之内侦测到对终端显示屏的触摸操作。Wherein, the first duration is any duration. For example, the first duration is a fixed duration of 3 seconds. When displaying the screenshot image in the second area, the terminal can call the preset timer to start timing. When the timing reaches the first duration and no touch operation on the display screen has been detected, it is determined that it is not within the first duration A touch operation on the terminal display is detected. When the touch operation on the display screen is detected before the timing duration reaches the first duration, it is determined that the touch operation on the display screen of the terminal is detected within the first duration.
触摸操作包括但不限于点击操作以及滑动操作,触摸区域指的是触摸操作所形成的区域,触摸区域可为终端显示屏中的任意区域。比如,触摸区域为终端显示屏中状态栏对应的区域,触摸区域信息指的是该触摸区域对应的触摸坐标集,该坐标集中的坐标可包括一个或多个。The touch operation includes but not limited to click operation and slide operation, and the touch area refers to the area formed by the touch operation, and the touch area may be any area on the display screen of the terminal. For example, the touch area is an area corresponding to the status bar on the display screen of the terminal, and the touch area information refers to a touch coordinate set corresponding to the touch area, and the coordinates in the coordinate set may include one or more coordinates.
在一个实施例中,在第一时长之内,终端侦测到的触摸操作为点击操作,计算该点击操作的区域的几何中心,获取该几何中心对应的坐标信息,该坐标信息即构成该触摸坐标集。In one embodiment, within the first duration, the touch operation detected by the terminal is a click operation, the geometric center of the area of the click operation is calculated, and the coordinate information corresponding to the geometric center is obtained, and the coordinate information constitutes the touch operation. set of coordinates.
在一个实施例中,在第一时长之内,终端侦测到的触摸操作为滑动操作,查找该滑动操作的起始位置,获取该起始位置的坐标信息,该坐标信息即构成该触摸坐标集。In one embodiment, within the first duration, the touch operation detected by the terminal is a sliding operation, the starting position of the sliding operation is searched, and the coordinate information of the starting position is obtained, and the coordinate information constitutes the touch coordinates set.
在一个实施例中,触摸操作包括滑动操作,触摸区域信息包括根据滑动操作形成的滑动轨迹信息。该滑动轨迹信息包含该滑动操作所作用的所有的坐标信息。In one embodiment, the touch operation includes a slide operation, and the touch area information includes slide track information formed according to the slide operation. The sliding track information includes all coordinate information on which the sliding operation acts.
在一个实施例中,当未在第一时长之内侦测到对终端显示屏的触摸操作时,则立即隐藏截屏图像。即当计时的时长达到第一时长还未侦测到对显示屏的触摸操作时,立即隐藏截屏图像。In one embodiment, when no touch operation on the display screen of the terminal is detected within the first duration, the screenshot image is immediately hidden. That is, when the timing reaches the first duration and no touch operation on the display screen is detected, the screenshot image is immediately hidden.
步骤S210,根据触摸区域信息,控制隐藏截屏图像或进入截屏图像编辑界面。Step S210, according to the touch area information, control to hide the screen capture image or enter the screen capture image editing interface.
触摸区域信息为反映作用于显示屏的触摸操作的位置的信息。终端可根据该触摸区域信息,检测出触摸操作的区域,根据该触摸操作的区域来判定是隐藏截屏图像,还是进入截屏图像编辑界面。The touch area information is information reflecting the position of a touch operation on the display screen. The terminal can detect the area of the touch operation according to the touch area information, and determine whether to hide the screen capture image or enter the screen capture image editing interface according to the touch operation area.
在一个实施例中,步骤S210包括:根据触摸区域信息,判断触摸操作是否在第二区域;如是,则控制进入截屏图像编辑界面;如否,则隐藏截屏图像。In one embodiment, step S210 includes: judging whether the touch operation is in the second area according to the touch area information; if yes, controlling to enter the screenshot image editing interface; if not, hiding the screenshot image.
计算机设备可检测该触摸操作的区域和第二区域之间的位置关系,根据该位置关系判断触摸操作是都在第二区域内。当在第二区域内时,进入截屏图像编辑界面;在第二区域外时,隐藏截屏图像。The computer device can detect the positional relationship between the area of the touch operation and the second area, and judge whether the touch operations are all within the second area according to the positional relationship. When in the second area, enter the screenshot image editing interface; when outside the second area, hide the screenshot image.
在一个实施例中,终端检测到触摸区域信息中的触摸坐标集在第二区域外,隐藏展示在终端显示屏上的第二区域内的截屏图像,同时响应该触摸区域信息对应的触摸操作。In one embodiment, the terminal detects that the touch coordinate set in the touch area information is outside the second area, hides the screenshot image displayed in the second area on the display screen of the terminal, and responds to the touch operation corresponding to the touch area information.
当检测到触摸区域信息中的触摸坐标集在第二区域内,可直接进图截屏图像编辑界面,即显示针对截屏图像进行编辑操作的界面。可选地,可在该截屏图像编辑界面上显示编辑、分享以及取消等按钮。通过侦测作用于该按钮的点击操作,以触发对响应界面图像的的编辑、分享以及取消等指令。When it is detected that the touch coordinate set in the touch area information is in the second area, the screenshot image editing interface can be directly entered, that is, an interface for editing the screenshot image is displayed. Optionally, buttons such as editing, sharing and canceling may be displayed on the screenshot image editing interface. By detecting the click operation on the button, commands such as editing, sharing and canceling of the corresponding interface image are triggered.
上述的截屏处理方法,当侦测到对终端显示屏的触摸操作时,则获取该触摸操作的触摸区域信息,根据该触摸区域信息,判断该触摸操作是否在第二区域,若在第二区域外,则立即隐藏截屏图像。该截屏处理方法避免了由于截屏图像的预览对终端显示屏的部分或全部遮挡,造成无法对遮挡区域进行操作的弊端,从而提高了截屏后终端操作的灵活性。In the above screenshot processing method, when a touch operation on the display screen of the terminal is detected, the touch area information of the touch operation is obtained, and according to the touch area information, it is judged whether the touch operation is in the second area, if the touch operation is in the second area Otherwise, the screenshot image is immediately hidden. The screen capture processing method avoids the disadvantage of being unable to operate on the blocked area due to partial or complete blockage of the terminal display screen by the preview of the screen capture image, thereby improving the flexibility of the terminal operation after the screen capture.
在一个实施例中,触摸操作信息中包括触摸操作作用的坐标信息,触摸操作作用的所有的坐标信息可形成触摸坐标集。终端可检测触摸区域信息中的每个坐标信息与第二区域的位置关系。当触摸坐标集中的所有坐标信息均处于第二区域内时,才判定触摸区域信息中的触摸坐标集在第二区域内。In one embodiment, the touch operation information includes coordinate information of touch operation effects, and all coordinate information of touch operation effects may form a touch coordinate set. The terminal may detect a positional relationship between each piece of coordinate information in the touch area information and the second area. When all the coordinate information in the touch coordinate set is in the second area, it is determined that the touch coordinate set in the touch area information is in the second area.
在一个实施例中,终端可检测触摸坐标集中的,处于第二区域内的坐标信息的比例,当该比例超过预设比例时,判定触摸区域信息中的触摸坐标集在第二区域内。比如该比例可为50%。In one embodiment, the terminal may detect the proportion of coordinate information in the touch coordinate set that is within the second area, and when the proportion exceeds a preset proportion, determine that the touch coordinate set in the touch area information is within the second area. For example, the proportion may be 50%.
在一个实施例中,步骤S210包括:检测触摸区域信息中的触摸坐标集,判断触摸操作的坐标集和第二区域的坐标集是否存在交集,若是,则判定触摸操作在第二区域;否则,判定触摸区域不在第二区域。In one embodiment, step S210 includes: detecting the touch coordinate set in the touch area information, and judging whether there is an intersection between the coordinate set of the touch operation and the coordinate set of the second area, and if so, determining that the touch operation is in the second area; otherwise, It is determined that the touch area is not in the second area.
可选地,检测终端获取到的点击操作形成坐标点集合与第二区域的坐标点集合是否存在交集,若是,则判定该点击操作在第二区域外,若否,判定该点击操作在第二区域内。比如,当该触摸坐标集中的任意一个坐标信息处于第二处于内时,判定触摸区域信息中的触摸坐标集在第二区域内。Optionally, it is detected whether the set of coordinate points formed by the click operation obtained by the terminal intersects with the set of coordinate points in the second area; if so, it is determined that the click operation is outside the second area; within the area. For example, when any piece of coordinate information in the touch coordinate set is within the second area, it is determined that the touch coordinate set in the touch area information is within the second area.
在一个实施例中,步骤S204包括:根据截屏指令显示截屏界面框,接收对该截屏界面框的修改信息,根据该修改信息调整截屏界面框,将调整后的截屏界面框对应的区域作为第一区域,截取第一区域展示的内容,作为截屏图像。In one embodiment, step S204 includes: displaying the screen capture interface frame according to the screen capture instruction, receiving modification information for the screen capture interface frame, adjusting the screen capture interface frame according to the modification information, and setting the area corresponding to the adjusted screen capture interface frame as the first Area, capture the content displayed in the first area as a screenshot image.
截屏界面框为终端屏幕上展示的任意合适区域,截屏界面框可为固定的区域,或者可为用户自定义设置的任意区域。比如,该截屏界面框为包含整个界面上展示的区域。修改信息可包括对截屏界面框的尺寸修改信息、截屏界面框的位置修改信息等。The screen capture interface frame is any suitable area displayed on the terminal screen, and the screen capture interface frame may be a fixed area, or may be any area customized by the user. For example, the screenshot interface frame is an area including the display on the entire interface. The modification information may include size modification information of the screen capture interface frame, position modification information of the screen capture interface frame, and the like.
在一个实施例中,根据截屏指令显示截屏界面框,接收作用于该截屏界面框边界线的触摸操作,根据该触摸操作对该截屏界面框所包围的尺寸信息进行修改。还可以接收作用于截屏界面框内的触摸操作,根据该触摸操作对截屏界面框所处的位置信息进行修改。终端可将修改了尺寸信息和/或位置信息的截屏界面框对应的区域作为第一区域。截取第一区域展示的内容,作为截屏图像。In one embodiment, the screen capture interface frame is displayed according to the screen capture instruction, a touch operation acting on the boundary line of the screen capture interface frame is received, and size information surrounded by the screen capture interface frame is modified according to the touch operation. It may also receive a touch operation acting on the screen capture interface frame, and modify the location information of the screen capture interface frame according to the touch operation. The terminal may use the area corresponding to the screenshot interface frame with modified size information and/or position information as the first area. Capture the content displayed in the first area as a screenshot image.
本实施例中,通过接收截屏界面框的修改信息,根据该修改信息来确定第一区域,从而可对需要截取区域的内容进行调整,提高了截屏图像获取的灵活性。In this embodiment, the modification information of the screenshot interface frame is received, and the first region is determined according to the modification information, so that the content of the region to be captured can be adjusted, and the flexibility of obtaining the screenshot image is improved.
在一个实施例中,步骤S204包括:根据截屏指令显示截屏界面框;接收作用于截屏界面框内的触摸轨迹信息;将触摸轨迹信息中的触摸坐标集形成的封闭区域作为第一区域;截取第一区域展示的内容,作为截屏图像。In one embodiment, step S204 includes: displaying the screen capture interface frame according to the screen capture instruction; receiving touch track information acting on the screen capture interface frame; using the closed area formed by the touch coordinate set in the touch track information as the first area; intercepting the second The content displayed in an area, as a screenshot image.
其中,该截屏界面框可为包含整个界面上展示的区域的界面框。终端可获取在该截屏界面框内的滑动操作,所对应的坐标信息。由该滑动操作所滑动过的所有的位置对应的坐标信息即构成该触摸轨迹信息的触摸坐标集。终端可根据所获取到的触摸轨迹信息,计算该触摸轨迹信息所包含的封闭区域,将该封闭区域内展示的内容,作为截屏图像。Wherein, the screenshot interface frame may be an interface frame including an area displayed on the entire interface. The terminal can acquire the coordinate information corresponding to the sliding operation in the screenshot interface frame. The coordinate information corresponding to all the positions slid by the sliding operation constitutes the touch coordinate set of the touch track information. The terminal may calculate the closed area included in the touch track information according to the acquired touch track information, and use the content displayed in the closed area as a screenshot image.
在一个实施例中,终端可检测该触摸轨迹信息所否包含一个或多个完整的封闭区域,若是,则直接将该一个或多个封闭区域作为第一区域,若不包含,则根据该触摸轨迹信息对应的所有的位置,自动计算出对应的完整封闭区域,并作为第一区域。举例来说,用户可在该截屏界面框内滑动形成一个圆圈,则终端可将该圆圈对应的区域作为第一区域。或者该滑动形成的是一个半圆圈,则终端可自动根据该半圆圈计算成对应的一个完整的圆圈,将其对应的区域作为第一区域。In one embodiment, the terminal can detect whether the touch track information contains one or more complete closed areas, if so, directly use the one or more closed areas as the first area, and if not, then according to the touch For all the positions corresponding to the trajectory information, the corresponding complete closed area is automatically calculated and used as the first area. For example, the user can slide to form a circle in the screenshot interface frame, and the terminal can use the area corresponding to the circle as the first area. Or the sliding forms a semicircle, and the terminal can automatically calculate a corresponding complete circle according to the semicircle, and use the corresponding area as the first area.
本实施例中,通过触摸轨迹信息中的触摸坐标集形成封闭区域,并将该封闭区域作为第一区域,可对需要截取区域的内容进行调整,提高了截屏图像获取的灵活性。In this embodiment, the closed area is formed by the touch coordinate set in the touch track information, and the closed area is used as the first area, so that the content of the area to be intercepted can be adjusted, and the flexibility of capturing the screenshot image is improved.
在一个实施例中,步骤204之后,还包括:获取与第一区域显示的画面对应的预置图像,将截屏图像中处于第三区域内的区域图像替换为预置图像,生成处理后的截屏图像。In one embodiment, after step 204, it further includes: acquiring a preset image corresponding to the picture displayed in the first area, replacing the area image in the third area in the screenshot image with the preset image, and generating a processed screenshot image.
第三区域可为终端屏幕上展示的任意合适的区域,该区域位于第一区域内。第三区域可为固定的区域,或者可为用户自定义设置的任意区域。比如,该第三区域可为终端屏幕上的状态栏区域。预置图像指的是预先设置的图像,可以是卡通角色图像、交通工具图像、人物头像、动物图像、规则形状、电池图标或者武器图像等,用于替换截屏图像中的第三区域内的区域图像。预置图像的具体内容可根据交互界面中当前的交互需求预先设定。预置图像可以是实施截屏处理操作方法的应用自带的图像,也可以是由用户预先选择的图像。The third area may be any suitable area displayed on the terminal screen, and the area is located in the first area. The third area may be a fixed area, or may be any area defined by the user. For example, the third area may be a status bar area on the terminal screen. The preset image refers to a preset image, which can be a cartoon character image, a vehicle image, a character head, an animal image, a regular shape, a battery icon, or a weapon image, etc., and is used to replace the third area in the screenshot image image. The specific content of the preset image can be preset according to the current interaction requirements in the interactive interface. The preset image may be an image provided by the application implementing the screenshot processing operation method, or an image pre-selected by the user.
在一个实施例中,获取与第一区域对应的预置图像,用该预置图像对截屏图像中处于第三区域内的区域图像进行遮挡,生成处理后的截屏图像。如图5所示,接收将全部填充为黑色的长椭圆形区域304作为第三区域。并对该第三区域展示的内容以预置图像进行遮挡,生成遮挡后的截屏图像。In one embodiment, a preset image corresponding to the first area is obtained, and the image of the area in the third area in the screenshot image is blocked by using the preset image to generate a processed screenshot image. As shown in FIG. 5 , an oblong area 304 that is completely filled in black is received as a third area. And block the content displayed in the third area with a preset image to generate a screen shot after blocking.
本实施例中,通过接收对截屏图像的处理,使得用户可根据具体需要对截屏图像进行调整,从而避免暴露用户隐私,可提高操作的便利性。In this embodiment, by receiving the processing of the screenshot image, the user can adjust the screenshot image according to specific needs, so as to avoid exposing the privacy of the user and improve the convenience of operation.
在一个实施例中,如图6所示,提供了一种截屏处理装置。该装置包括截屏指令获取模块602、截屏图像生成模块604、截屏预览模块606、触摸操作侦测模块608和截屏处理模块610。其中:In one embodiment, as shown in FIG. 6 , a screenshot processing device is provided. The device includes a screenshot instruction acquisition module 602 , a screenshot image generation module 604 , a screenshot preview module 606 , a touch operation detection module 608 and a screenshot processing module 610 . in:
截屏指令获取模块602,用于获取截屏指令。The screen capture instruction obtaining module 602 is configured to obtain a screen capture instruction.
截屏图像生成模块604,用于根据截屏指令截取屏幕第一区域展示的内容,作为截屏图像。A screen capture image generating module 604, configured to capture content displayed in the first area of the screen as a screen capture image according to the screen capture instruction.
截屏预览模块606,用于将截屏图像展示在屏幕第二区域。A screenshot preview module 606, configured to display the screenshot image in the second area of the screen.
触摸操作侦测模块608,用于侦测对终端显示屏的触摸操作,获取触摸操作的触摸区域信息。The touch operation detection module 608 is configured to detect a touch operation on the display screen of the terminal, and acquire touch area information of the touch operation.
截屏处理模块610,用于根据触摸区域信息,控制隐藏截屏图像或进入截屏图像编辑界面。The screen capture processing module 610 is configured to control hiding the screen capture image or entering the screen capture image editing interface according to the touch area information.
截屏隐藏模块612,用于当触摸操作在第二区域外时,隐藏截屏图像。A screenshot hiding module 612, configured to hide the screenshot image when the touch operation is outside the second area.
上述的截屏处理装置,当侦测到对终端显示屏的触摸操作时,则接收该触摸操作的触摸区域信息,根据触摸区域信息,控制隐藏截屏图像或进入截屏图像编辑界面,可提高截屏后终端操作的灵活性。The above-mentioned screen capture processing device, when detecting a touch operation on the display screen of the terminal, receives the touch area information of the touch operation, and controls to hide the screen capture image or enter the screen capture image editing interface according to the touch area information, which can improve the efficiency of the terminal after the screen capture. Operational flexibility.
在一个实施例中,截屏处理模块610还用于根据触摸区域信息,判断触摸操作是否在第二区域;如是,则控制进入截屏图像编辑界面;如否,则隐藏截屏图像。In one embodiment, the screen capture processing module 610 is further configured to determine whether the touch operation is in the second area according to the touch area information; if yes, control to enter the screen capture image editing interface; if not, hide the screen capture image.
在一个实施例中,截屏处理模块610还用于检测触摸区域信息中的触摸坐标集,判断触摸操作的坐标集和第二区域的坐标集是否存在交集,若是,则判定触摸操作在第二区域;否则,判定触摸区域不在第二区域。In one embodiment, the screenshot processing module 610 is also used to detect the touch coordinate set in the touch area information, and determine whether there is an intersection between the coordinate set of the touch operation and the coordinate set of the second area, and if so, determine that the touch operation is in the second area ; Otherwise, it is determined that the touch area is not in the second area.
在一个实施例中,截屏图像生成模块604还用于根据截屏指令显示截屏界面框;接收作用于截屏界面框内的触摸轨迹信息;将触摸轨迹信息中的触摸坐标集形成的封闭区域作为第一区域;截取第一区域展示的内容,作为截屏图像。In one embodiment, the screen capture image generating module 604 is also configured to display the screen capture interface frame according to the screen capture instruction; receive touch track information acting on the screen capture interface frame; use the closed area formed by the touch coordinate set in the touch track information as the first area; capture the content displayed in the first area as a screenshot image.
在一个实施例中,触摸操作还可以为滑动操作,触摸区域信息包括根据滑动操作形成的滑动轨迹信息。In one embodiment, the touch operation may also be a slide operation, and the touch area information includes slide track information formed according to the slide operation.
在一个实施例中,截屏图像生成模块604还用于获取与第一区域对应的预置图像;将截屏图像中处于第三区域内的区域图像替换为预置图像,生成处理后的截屏图像。In one embodiment, the screen capture image generation module 604 is further configured to acquire a preset image corresponding to the first area; replace the area image in the third area in the screen capture image with the preset image, and generate a processed screen capture image.
上述装置中的各个模块可全部或部分通过软件、硬件及其组合来实现。上述各模块可以硬件形式内嵌于或独立于计算机设备中的处理器中,也可以以软件形式存储于计算机设备中的存储器中,以便于处理器调用执行以上各个模块对应的操作。该处理器可以为中央处理单元(CPU)、微处理器、单片机等。Each module in the above-mentioned device can be fully or partially realized by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, and can also be stored in the memory of the computer device in the form of software, so that the processor can call and execute the corresponding operations of the above modules. The processor may be a central processing unit (CPU), a microprocessor, a single-chip microcomputer, and the like.
在一个实施例中,提供了一种计算机设备,该计算机设备包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,该处理器执行计算机程序时实现以下步骤:获取截屏指令;根据截屏指令截取屏幕第一区域展示的内容,作为截屏图像;将截屏图像展示在屏幕第二区域;侦测对终端显示屏的触摸操作,获取触摸操作的触摸区域信息;根据触摸区域信息,控制隐藏截屏图像或进入截屏图像编辑界面。该处理器可以为中央处理单元(CPU)、微处理器、单片机等。In one embodiment, a computer device is provided, and the computer device includes a memory, a processor, and a computer program stored on the memory and operable on the processor. When the processor executes the computer program, the following steps are implemented: acquiring a screenshot command; intercept the content displayed in the first area of the screen according to the screenshot command, as a screenshot image; display the screenshot image in the second area of the screen; detect the touch operation on the terminal display screen, and obtain the touch area information of the touch operation; according to the touch area information , control to hide the screen capture image or enter the screen capture image editing interface. The processor may be a central processing unit (CPU), a microprocessor, a single-chip microcomputer, and the like.
在一个实施例中,上述处理器执行计算机程序实现的根据触摸区域信息,控制隐藏截屏图像或进入截屏图像编辑界面,还包括实现以下步骤:根据触摸区域信息,判断触摸操作是否在第二区域;如是,则控制进入截屏图像编辑界面;如否,则隐藏截屏图像。In one embodiment, the above-mentioned processor executes the computer program to control hiding the screenshot image or entering the screenshot image editing interface according to the touch area information, and further includes the following steps: judging whether the touch operation is in the second area according to the touch area information; If yes, the control enters the screen capture image editing interface; if no, the screen capture image is hidden.
在一个实施例中,上述处理器执行计算机程序实现的根据触摸区域信息,判断触摸操作是否在第二区域,还包括实现以下步骤:检测触摸区域信息中的触摸坐标集,判断触摸操作的坐标集和第二区域的坐标集是否存在交集;若是,则判定触摸操作在第二区域;否则,判定触摸区域不在第二区域。In one embodiment, the above-mentioned processor executes the computer program to determine whether the touch operation is in the second area according to the touch area information, and further includes the following steps: detecting the touch coordinate set in the touch area information, and determining the touch operation coordinate set Whether there is an intersection with the coordinate set of the second area; if so, it is determined that the touch operation is in the second area; otherwise, it is determined that the touch area is not in the second area.
在一个实施例中,上述处理器执行计算机程序实现根据截屏指令截取第一区域展示的内容,作为截屏图像时,还实现以下步骤:根据截屏指令显示截屏界面框;接收作用于截屏界面框内的触摸轨迹信息;将触摸轨迹信息中的触摸坐标集形成的封闭区域作为第一区域;截取第一区域展示的内容,作为截屏图像。In one embodiment, the above-mentioned processor executes the computer program to intercept the content displayed in the first area according to the screen capture instruction, and as a screen capture image, the following steps are also implemented: displaying the screen capture interface frame according to the screen capture instruction; The touch track information; the closed area formed by the touch coordinate set in the touch track information is used as the first area; the content displayed in the first area is intercepted as a screenshot image.
在一个实施例中,触摸操作包括滑动操作,触摸区域信息包括根据滑动操作形成的滑动轨迹信息。In one embodiment, the touch operation includes a slide operation, and the touch area information includes slide track information formed according to the slide operation.
在一个实施例中,上述处理器执行计算机程序实现根据截屏指令截取第一区域展示的内容,作为截屏图像之后,还实现以下步骤:获取与第一区域对应的预置图像;将截屏图像中处于第三区域内的区域图像替换为预置图像,生成处理后的截屏图像。In one embodiment, the above-mentioned processor executes the computer program to intercept the content displayed in the first area according to the screen capture instruction, and after taking the screen capture image, further implement the following steps: acquire a preset image corresponding to the first area; The area image in the third area is replaced with a preset image to generate a processed screenshot image.
在一个实施例中,提供了一种计算机可读存储介质,其上存储有计算机程序,该计算机程序被处理器执行时实现以下步骤:获取截屏指令;根据截屏指令截取屏幕第一区域展示的内容,作为截屏图像;将截屏图像展示在屏幕第二区域;侦测对终端显示屏的触摸操作,获取触摸操作的触摸区域信息;根据触摸区域信息,控制隐藏截屏图像或进入截屏图像编辑界面。In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented: acquiring a screenshot instruction; intercepting the content displayed in the first area of the screen according to the screenshot instruction , as a screenshot image; display the screenshot image in the second area of the screen; detect the touch operation on the display screen of the terminal, and obtain the touch area information of the touch operation; according to the touch area information, control to hide the screenshot image or enter the screenshot image editing interface.
在一个实施例中,该计算机程序被处理器执行实现的根据触摸区域信息,控制隐藏截屏图像或进入截屏图像编辑界面,还包括实现以下步骤:根据触摸区域信息,判断触摸操作是否在第二区域;如是,则控制进入截屏图像编辑界面;如否,则隐藏截屏图像。In one embodiment, the computer program is implemented by the processor to hide the screenshot image or enter the screenshot image editing interface according to the touch area information, and further includes the following steps: judging whether the touch operation is in the second area according to the touch area information ; If yes, the control enters the screen capture image editing interface; if no, the screen capture image is hidden.
在一个实施例中,该计算机程序被处理器执行实现根据触摸区域信息,判断触摸操作是否在第二区域,还包括实现以下步骤:检测触摸区域信息中的触摸坐标集,判断触摸操作的坐标集和第二区域的坐标集是否存在交集,若是,则判定触摸操作在第二区域;否则,判定触摸区域不在第二区域。In one embodiment, the computer program is executed by the processor to determine whether the touch operation is in the second area according to the touch area information, and further includes the following steps: detecting the touch coordinate set in the touch area information, and determining the touch operation coordinate set Whether there is an intersection with the coordinate set of the second area, if so, it is determined that the touch operation is in the second area; otherwise, it is determined that the touch area is not in the second area.
在一个实施例中,该计算机程序被处理器执行实现根据截屏指令截取第一区域展示的内容,作为截屏图像时,还实现以下步骤:根据截屏指令显示截屏界面框;接收作用于截屏界面框内的触摸轨迹信息;将触摸轨迹信息中的触摸坐标集形成的封闭区域作为第一区域;截取第一区域展示的内容,作为截屏图像。In one embodiment, the computer program is executed by the processor to intercept the content displayed in the first area according to the screen capture instruction, and as a screen capture image, the following steps are also implemented: displaying the screen capture interface frame according to the screen capture instruction; receiving and acting on the screen capture interface frame The touch track information; the closed area formed by the touch coordinate set in the touch track information is used as the first area; the content displayed in the first area is intercepted as a screenshot image.
在一个实施例中,触摸操作包括滑动操作,触摸区域信息包括根据滑动操作形成的滑动轨迹信息。In one embodiment, the touch operation includes a slide operation, and the touch area information includes slide track information formed according to the slide operation.
在一个实施例中,该计算机程序被处理器执行实现根据截屏指令截取第一区域展示的内容,作为截屏图像之后,还实现以下步骤:获取与第一区域对应的预置图像;将截屏图像中处于第三区域内的区域图像替换为预置图像,生成处理后的截屏图像。In one embodiment, the computer program is executed by the processor to capture the content displayed in the first area according to the screen capture instruction, and after taking the screen capture image, the following steps are further implemented: acquiring a preset image corresponding to the first area; The area image in the third area is replaced with a preset image to generate a processed screenshot image.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,该计算机程序可存储于一计算机可读取存储介质中,该计算机程序在执行时,可包括如上述各方法的实施例的流程。其中,前述的存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)等非易失性存储介质,或随机存储记忆体(Random Access Memory,RAM)等。Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be realized by instructing related hardware through a computer program. The computer program can be stored in a computer-readable storage medium. The computer program During execution, it may include the processes of the embodiments of the above-mentioned methods. Wherein, the aforementioned storage medium may be a nonvolatile storage medium such as a magnetic disk, an optical disk, a read-only memory (Read-Only Memory, ROM), or a random access memory (Random Access Memory, RAM).
以上实施例的各技术特征可以进行任意的组合,为使描述简洁,未对上述实施例中的各个技术特征所有可能的组合都进行描述,然而,只要这些技术特征的组合不存在矛盾,都应当认为是本说明书记载的范围。The technical features of the above embodiments can be combined arbitrarily. To make the description concise, all possible combinations of the technical features in the above embodiments are not described. However, as long as there is no contradiction in the combination of these technical features, they should be It is considered to be within the range described in this specification.
以上所述实施例仅表达了本发明的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对发明专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本发明构思的前提下,还可以做出若干变形和改进,这些都属于本发明的保护范围。因此,本发明专利的保护范围应以所附权利要求为准。The above-mentioned embodiments only express several implementation modes of the present invention, and the descriptions thereof are relatively specific and detailed, but should not be construed as limiting the patent scope of the invention. It should be pointed out that those skilled in the art can make several modifications and improvements without departing from the concept of the present invention, and these all belong to the protection scope of the present invention. Therefore, the protection scope of the patent for the present invention should be based on the appended claims.
Claims (10)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201711012183.9A CN107861681A (en) | 2017-10-26 | 2017-10-26 | Screenshotss processing method, device, computer equipment and storage medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201711012183.9A CN107861681A (en) | 2017-10-26 | 2017-10-26 | Screenshotss processing method, device, computer equipment and storage medium |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN107861681A true CN107861681A (en) | 2018-03-30 |
Family
ID=61696672
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201711012183.9A Pending CN107861681A (en) | 2017-10-26 | 2017-10-26 | Screenshotss processing method, device, computer equipment and storage medium |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN107861681A (en) |
Cited By (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN108803963A (en) * | 2018-05-24 | 2018-11-13 | 维沃移动通信有限公司 | A kind of screenshotss method and mobile terminal |
| CN109269012A (en) * | 2018-10-22 | 2019-01-25 | 珠海格力电器股份有限公司 | Data transmission accuracy analysis method and device, computer equipment and system |
| CN109309753A (en) * | 2018-07-23 | 2019-02-05 | 努比亚技术有限公司 | Picture sharing method, terminal and computer readable storage medium |
| CN110287741A (en) * | 2019-06-27 | 2019-09-27 | 维沃移动通信有限公司 | A screen content display method and terminal |
| CN111522487A (en) * | 2020-03-30 | 2020-08-11 | 苏州桐力光电股份有限公司 | Image processing method and device for touch display product, storage medium and electronic equipment |
| CN113448658A (en) * | 2020-03-24 | 2021-09-28 | 华为技术有限公司 | Screen capture processing method, graphical user interface and terminal |
| US20220030105A1 (en) * | 2018-09-30 | 2022-01-27 | Huawei Technologies Co., Ltd. | Screenshot Generating Method, Control Method, and Electronic Device |
| CN114253448A (en) * | 2021-11-15 | 2022-03-29 | 珠海格力电器股份有限公司 | Screen capture processing method, electronic equipment and storage medium |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20110004852A1 (en) * | 2009-07-01 | 2011-01-06 | Jonathon David Baugh | Electronic Medical Record System For Dermatology |
| CN105930084A (en) * | 2016-04-20 | 2016-09-07 | 乐视控股(北京)有限公司 | Screenshot picture editing method and apparatus |
| CN106484263A (en) * | 2016-10-12 | 2017-03-08 | 乐视控股(北京)有限公司 | Screenshotss processing method and processing device |
| CN106489126A (en) * | 2016-09-29 | 2017-03-08 | 北京小米移动软件有限公司 | The method and device that a kind of content is shared |
| CN106775333A (en) * | 2017-02-16 | 2017-05-31 | 深圳市茁壮网络股份有限公司 | A kind of screenshotss method and device |
-
2017
- 2017-10-26 CN CN201711012183.9A patent/CN107861681A/en active Pending
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20110004852A1 (en) * | 2009-07-01 | 2011-01-06 | Jonathon David Baugh | Electronic Medical Record System For Dermatology |
| CN105930084A (en) * | 2016-04-20 | 2016-09-07 | 乐视控股(北京)有限公司 | Screenshot picture editing method and apparatus |
| CN106489126A (en) * | 2016-09-29 | 2017-03-08 | 北京小米移动软件有限公司 | The method and device that a kind of content is shared |
| CN106484263A (en) * | 2016-10-12 | 2017-03-08 | 乐视控股(北京)有限公司 | Screenshotss processing method and processing device |
| CN106775333A (en) * | 2017-02-16 | 2017-05-31 | 深圳市茁壮网络股份有限公司 | A kind of screenshotss method and device |
Cited By (10)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN108803963A (en) * | 2018-05-24 | 2018-11-13 | 维沃移动通信有限公司 | A kind of screenshotss method and mobile terminal |
| CN109309753A (en) * | 2018-07-23 | 2019-02-05 | 努比亚技术有限公司 | Picture sharing method, terminal and computer readable storage medium |
| US20220030105A1 (en) * | 2018-09-30 | 2022-01-27 | Huawei Technologies Co., Ltd. | Screenshot Generating Method, Control Method, and Electronic Device |
| US11930130B2 (en) * | 2018-09-30 | 2024-03-12 | Huawei Technologies Co., Ltd. | Screenshot generating method, control method, and electronic device |
| CN109269012A (en) * | 2018-10-22 | 2019-01-25 | 珠海格力电器股份有限公司 | Data transmission accuracy analysis method and device, computer equipment and system |
| CN110287741A (en) * | 2019-06-27 | 2019-09-27 | 维沃移动通信有限公司 | A screen content display method and terminal |
| CN113448658A (en) * | 2020-03-24 | 2021-09-28 | 华为技术有限公司 | Screen capture processing method, graphical user interface and terminal |
| WO2021190524A1 (en) * | 2020-03-24 | 2021-09-30 | 华为技术有限公司 | Screenshot processing method, graphic user interface and terminal |
| CN111522487A (en) * | 2020-03-30 | 2020-08-11 | 苏州桐力光电股份有限公司 | Image processing method and device for touch display product, storage medium and electronic equipment |
| CN114253448A (en) * | 2021-11-15 | 2022-03-29 | 珠海格力电器股份有限公司 | Screen capture processing method, electronic equipment and storage medium |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN107861681A (en) | Screenshotss processing method, device, computer equipment and storage medium | |
| CN107493495B (en) | Interactive position determining method, system, storage medium and intelligent terminal | |
| US9479693B2 (en) | Method and mobile terminal apparatus for displaying specialized visual guides for photography | |
| CN110555333B (en) | Fingerprint identification method, electronic device and storage medium | |
| KR102080183B1 (en) | Electronic device and method for unlocking in the electronic device | |
| WO2019001152A1 (en) | Photographing method and mobile terminal | |
| US10860857B2 (en) | Method for generating video thumbnail on electronic device, and electronic device | |
| CN105260117B (en) | Application control method and device | |
| CN106231178B (en) | Selfie method and mobile terminal | |
| CN106406710A (en) | Screen recording method and mobile terminal | |
| CN106713764A (en) | Photographic method and mobile terminal | |
| CN107330859B (en) | An image processing method, device, storage medium and terminal | |
| CN113282262B (en) | Control method and device for projection display picture, mobile terminal and storage medium | |
| CN112099706B (en) | Page display method, device, electronic device and computer-readable storage medium | |
| WO2019091411A1 (en) | Image capturing method, device, terminal, and storage medium | |
| CN107172347B (en) | A kind of photographing method and terminal | |
| CN106331509B (en) | A camera method and mobile terminal | |
| EP3327622A1 (en) | Fingerprint template acquisition method and device | |
| CN106341608A (en) | Emotion based shooting method and mobile terminal | |
| CN109005350A (en) | Image repeated shooting prompting method and device, storage medium and mobile terminal | |
| CN105930142A (en) | Screen capture processing method, device and intelligent terminal | |
| JP2018033365A (en) | Information processing apparatus, information processing method, and program | |
| CN112099689A (en) | Interface display method and apparatus, electronic device, and computer-readable storage medium | |
| CN107592458B (en) | Shooting method and mobile terminal | |
| CN106993135A (en) | A kind of photographic 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 | ||
| RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180330 |
|
| RJ01 | Rejection of invention patent application after publication |