



























技术领域technical field
本申请涉及电子设备技术领域,更具体地,涉及一种截屏方法、装置、电子设备以及存储介质。The present application relates to the technical field of electronic equipment, and more specifically, to a screen capture method, device, electronic equipment, and storage medium.
背景技术Background technique
随着科学技术的发展,电子设备的使用越来越广泛,功能越来越多,已经成为人们日常生活中的必备之一。目前,电子设备一般可以支持分屏显示,但是,电子设备在分屏显示的过程中,在用户存在截屏需求时,通过目前的截屏操作会存在截屏对象不明确,导致截屏不准确且截屏操作复杂的问题。With the development of science and technology, the use of electronic equipment is becoming more and more extensive, with more and more functions, and has become one of the must-haves in people's daily life. At present, electronic devices can generally support split-screen display. However, in the process of split-screen display of electronic devices, when the user has a screen capture requirement, the current screen capture operation will cause the screen capture object to be unclear, resulting in inaccurate screen capture and complicated screen capture operations. The problem.
发明内容Contents of the invention
鉴于上述问题,本申请提出了一种截屏方法、装置、电子设备以及存储介质,以解决上述问题。In view of the above problems, the present application proposes a screen capture method, device, electronic equipment and storage medium to solve the above problems.
第一方面,本申请实施例提供了一种截屏方法,应用于电子设备,所述方法包括:显示目标界面,其中,所述目标界面包括第一窗口和叠加显示于所述第一窗口上的第二窗口,所述第一窗口划分为至少两个子窗口;响应作用于所述目标界面的多指滑动操作,获取所述多指滑动操作对应的多个滑动起始位置;确定所述多个滑动起始位置与所述至少两个子窗口的位置关系作为第一位置关系,并确定所述第二窗口与所述至少两个子窗口的位置关系作为第二位置关系;基于所述第一位置关系和所述第二位置关系,截取所述目标界面的显示内容。In the first aspect, an embodiment of the present application provides a screen capture method applied to an electronic device, the method comprising: displaying a target interface, wherein the target interface includes a first window and a superimposed display on the first window In the second window, the first window is divided into at least two sub-windows; responding to the multi-finger sliding operation acting on the target interface, obtaining multiple sliding start positions corresponding to the multi-finger sliding operation; determining the multiple The positional relationship between the sliding start position and the at least two sub-windows is used as a first positional relationship, and the positional relationship between the second window and the at least two sub-windows is determined as a second positional relationship; based on the first positional relationship Intercepting the displayed content of the target interface in relation to the second position.
第二方面,本申请实施例提供了一种截屏装置,应用于电子设备,所述装置包括:目标界面显示模块,用于显示目标界面,其中,所述目标界面包括第一窗口和叠加显示于所述第一窗口上的第二窗口,所述第一窗口划分为至少两个子窗口;滑动起始位置获取模块,用于响应作用于所述目标界面的多指滑动操作,获取所述多指滑动操作对应的多个滑动起始位置;位置关系确定模块,用于确定所述多个滑动起始位置与所述至少两个子窗口的位置关系作为第一位置关系,并确定所述第二窗口与所述至少两个子窗口的位置关系作为第二位置关系;显示内容截取模块,用于基于所述第一位置关系和所述第二位置关系,截取所述目标界面的显示内容。In a second aspect, an embodiment of the present application provides a screen capture device, which is applied to electronic equipment, and the device includes: a target interface display module, configured to display a target interface, wherein the target interface includes a first window and is superimposed on the The second window on the first window, the first window is divided into at least two sub-windows; the sliding start position acquisition module is configured to acquire the multi-finger sliding operation in response to the multi-finger sliding operation acting on the target interface A plurality of sliding start positions corresponding to the sliding operation; a positional relationship determination module, configured to determine the positional relationship between the plurality of sliding start positions and the at least two sub-windows as a first positional relationship, and determine the second window The positional relationship with the at least two sub-windows is used as a second positional relationship; a display content interception module configured to intercept the display content of the target interface based on the first positional relationship and the second positional relationship.
第三方面,本申请实施例提供了一种电子设备,包括存储器和处理器,所述存储器耦接到所述处理器,所述存储器存储指令,当所述指令由所述处理器执行时所述处理器执行上述方法。In a third aspect, the embodiment of the present application provides an electronic device, including a memory and a processor, the memory is coupled to the processor, the memory stores instructions, and when the instructions are executed by the processor, the The processor executes the above method.
第四方面,本申请实施例提供了一种计算机可读取存储介质,所述计算机可读取存储介质中存储有程序代码,所述程序代码可被处理器调用执行上述方法。In a fourth aspect, the embodiment of the present application provides a computer-readable storage medium, where program code is stored in the computer-readable storage medium, and the program code can be invoked by a processor to execute the above method.
本申请实施例提供的截屏方法、装置、电子设备以及存储介质,显示目标界面,其中,该目标界面包括第一窗口和叠加显示于第一窗口上的第二窗口,该第一窗口划分为至少两个子窗口,响应作用于目标界面的多指滑动操作,获取多指滑动操作对应的多个滑动起始位置,确定多个滑动起始位置与至少两个子窗口的位置关系作为第一位置关系,并确定第二窗口与至少两个子窗口的位置关系作为第二位置关系,基于第一位置关系和第二位置关系,截取目标界面的显示内容,从而通过基于多指滑动操作的多个滑动起始位置,确定截屏的对象进行截屏,可以无需进行繁琐的裁剪拖动,也无需担心悬浮窗覆盖,提升截屏的快捷性和准确性。The screenshot method, device, electronic device, and storage medium provided by the embodiments of the present application display a target interface, wherein the target interface includes a first window and a second window superimposed on the first window, and the first window is divided into at least Two sub-windows, responding to the multi-finger sliding operation acting on the target interface, obtaining multiple sliding start positions corresponding to the multi-finger sliding operation, determining the positional relationship between the multiple sliding starting positions and at least two sub-windows as the first positional relationship, And determine the positional relationship between the second window and at least two sub-windows as the second positional relationship, based on the first positional relationship and the second positional relationship, intercept the display content of the target interface, so as to start by multiple sliding operations based on multi-finger sliding Position, determine the object of the screen capture to capture the screen, you don't need to perform cumbersome cutting and dragging, and you don't need to worry about the floating window coverage, which improves the speed and accuracy of the screen capture.
附图说明Description of drawings
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其它的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings that need to be used in the description of the embodiments will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present application. For those skilled in the art, other drawings can also be obtained based on these drawings without any creative effort.
图1示出了可用于本申请实施例提供的工具栏的显示方法的一种电子设备的折叠状态的结构示意图;FIG. 1 shows a schematic structural diagram of an electronic device in a folded state that can be used in the display method of the toolbar provided by the embodiment of the present application;
图2示出了可用于本申请实施例提供的工具栏的显示方法的一种的电子设备的展开状态的结构示意图;FIG. 2 shows a schematic structural diagram of an electronic device in an unfolded state that can be used in a method for displaying a toolbar provided by an embodiment of the present application;
图3示出了可用于本申请实施例提供的工具栏的显示方法的另一种的电子设备的结构示意图;FIG. 3 shows a schematic structural diagram of another electronic device that can be used in the toolbar display method provided by the embodiment of the present application;
图4示出了本申请一实施例提供的截屏方法的流程示意图;FIG. 4 shows a schematic flowchart of a screenshot method provided by an embodiment of the present application;
图5示出了本申请实施例提供的电子设备的第一种界面示意图;Fig. 5 shows a schematic diagram of the first interface of the electronic device provided by the embodiment of the present application;
图6示出了本申请实施例提供的电子设备的第一种交互示意图;FIG. 6 shows a schematic diagram of a first interaction of an electronic device provided by an embodiment of the present application;
图7示出了本申请实施例提供的电子设备第二种界面示意图;FIG. 7 shows a schematic diagram of a second interface of an electronic device provided by an embodiment of the present application;
图8示出了本申请实施例提供的电子设备的第二种交互示意图;FIG. 8 shows a second schematic diagram of interaction of the electronic device provided by the embodiment of the present application;
图9示出了本申请实施例提供的电子设备第三种界面示意图;FIG. 9 shows a schematic diagram of a third interface of an electronic device provided by an embodiment of the present application;
图10示出了本申请一实施例提供的截屏方法的流程示意图;FIG. 10 shows a schematic flowchart of a screenshot method provided by an embodiment of the present application;
图11示出了本申请的图10所示的截屏方法的步骤S240的流程示意图;FIG. 11 shows a schematic flowchart of step S240 of the screenshot method shown in FIG. 10 of the present application;
图12示出了本申请的图11所示的截屏方法的步骤S241的流程示意图;FIG. 12 shows a schematic flowchart of step S241 of the screenshot method shown in FIG. 11 of the present application;
图13示出了本申请的图12所示的截屏方法的步骤S2412的流程示意图;FIG. 13 shows a schematic flowchart of step S2412 of the screenshot method shown in FIG. 12 of the present application;
图14示出了本申请的图13所示的截屏方法的步骤S24121的流程示意图;FIG. 14 shows a schematic flowchart of step S24121 of the screenshot method shown in FIG. 13 of the present application;
图15示出了本申请实施例提供的电子设备的第四种界面示意图;FIG. 15 shows a schematic diagram of a fourth interface of an electronic device provided by an embodiment of the present application;
图16示出了本申请实施例提供的电子设备的第三种交互示意图;Fig. 16 shows a third interactive schematic diagram of the electronic device provided by the embodiment of the present application;
图17示出了本申请实施例提供的电子设备第五种界面示意图;Fig. 17 shows a schematic diagram of a fifth interface of an electronic device provided by an embodiment of the present application;
图18示出了本申请实施例提供的电子设备的第四种交互示意图;Fig. 18 shows a fourth interactive schematic diagram of the electronic device provided by the embodiment of the present application;
图19示出了本申请实施例提供的电子设备第六种界面示意图;FIG. 19 shows a schematic diagram of a sixth interface of an electronic device provided by an embodiment of the present application;
图20示出了本申请一实施例提供的截屏方法的流程示意图;FIG. 20 shows a schematic flowchart of a screen capture method provided by an embodiment of the present application;
图21示出了本申请实施例提供的电子设备的第七种界面示意图;Fig. 21 shows a schematic diagram of a seventh interface of an electronic device provided by an embodiment of the present application;
图22示出了本申请实施例提供的电子设备的第五种交互示意图;Fig. 22 shows a fifth interactive schematic diagram of the electronic device provided by the embodiment of the present application;
图23示出了本申请一实施例提供的截屏方法的流程示意图;Fig. 23 shows a schematic flowchart of a screen capture method provided by an embodiment of the present application;
图24示出了本申请一实施例提供的截屏方法的流程示意图;Fig. 24 shows a schematic flowchart of a screenshot method provided by an embodiment of the present application;
图25示出了可用于本申请实施例提供的截屏方法的框架示意图;Fig. 25 shows a schematic diagram of a screen capture method that can be used in the embodiment of the present application;
图26示出了本申请一实施例提供的截屏装置的模块框图;Fig. 26 shows a module block diagram of a screenshot device provided by an embodiment of the present application;
图27示出了本申请实施例用于执行根据本申请实施例的截屏方法的电子设备的框图;FIG. 27 shows a block diagram of an electronic device for performing a screen capture method according to an embodiment of the present application in an embodiment of the present application;
图28示出了本申请实施例的用于保存或者携带实现根据本申请实施例的截屏方法的程序代码的存储单元。Fig. 28 shows a storage unit for storing or carrying program codes for realizing the screen capture method according to the embodiment of the present application according to the embodiment of the present application.
具体实施方式Detailed ways
为了使本技术领域的人员更好地理解本申请方案,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述。In order to enable those skilled in the art to better understand the solutions of the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application.
当人们使用电子设备浏览信息时,若查看到感兴趣的内容,用户可以将感兴趣的内容以图片形式快速保存,于是截屏技术应运而生。目前,截屏通常是针对屏幕为单个窗口进行的,而对于折叠屏幕的电子设备或者其他较大屏幕的电子设备,若电子设备在多个窗口上均显示内容时接收到用户的截屏操作,则可能存在截屏对象不明确是某个窗口还是所有窗口,导致截屏不准确且截屏操作复杂的问题。目前,针对分屏显示模式下,接收到用户的截屏操作时,会在截图浮窗上出现两个气泡浮窗,预览着分屏区域的截图,用户点击气泡后进入编辑页,裁剪框自动选中被点击的分片区域图像范围以供用户进行裁剪获得分屏截图,导致截屏操作繁琐。When people use electronic devices to browse information, if they find interesting content, users can quickly save the interested content in the form of pictures, so the screen capture technology emerges as the times require. At present, screenshots are usually taken for a single window, but for electronic devices with foldable screens or other electronic devices with larger screens, if the electronic device receives a screen capture operation from the user while displaying content on multiple windows, it may There is a problem that it is not clear whether the screenshot object is a certain window or all windows, resulting in inaccurate screenshots and complicated screenshot operations. Currently, in the split-screen display mode, when the user’s screen capture operation is received, two bubble floating windows will appear on the screenshot floating window to preview the screenshot of the split-screen area. After the user clicks the bubble, he enters the edit page, and the cropping frame is automatically selected. The image range of the clicked slice area can be cropped by the user to obtain a split screen screenshot, which makes the screen capture operation cumbersome.
针对上述问题,发明人经过长期的研究发现,并提出了本申请实施例提供的截屏方法、装置、电子设备以及存储介质,通过基于多指滑动操作的多个滑动起始位置,确定截屏的对象进行截屏,可以无需进行繁琐的裁剪拖动,也无需担心悬浮窗覆盖,提升截屏的快捷性和准确性。其中,具体的截屏方法在后续的实施例中进行详细的说明。In view of the above problems, the inventor found after a long period of research, and proposed the screenshot method, device, electronic equipment and storage medium provided by the embodiment of the present application, through multiple sliding start positions based on the multi-finger sliding operation, the object of the screenshot can be determined To take a screenshot, you don’t need to do cumbersome cropping and dragging, and you don’t need to worry about the coverage of the floating window, which improves the speed and accuracy of the screenshot. Wherein, the specific screenshot method is described in detail in the following embodiments.
下面将针对可用于本申请实施例提供的截屏方法的应用环境进行说明。The following will describe the application environment that can be used for the screenshot method provided by the embodiment of the present application.
请参阅图1,电子设备100可以但不限于为手机、平板电脑、游戏机、智能穿戴设备、车载设备等电子装置。本实施方式的电子设备100以手机为例进行说明。Referring to FIG. 1 , the
电子设备100包括可折叠壳体组件110、柔性显示屏120以及电子组件(图中未示出),电子组件设置于可折叠壳体组件110内,柔性显示屏120铺设于可折叠壳体组件110上。可折叠壳体组件110用于对柔性显示屏120进行承载,同时对电子组件进行防护。电子组件可以,但不限于包括中央处理器、存储器、摄像头、受话器、指纹模组等,具体的电子组件在本申请实施例中可以不作为限定。The
可折叠壳体组件110包括第一壳体111、第二壳体112以及转轴机构113,第一壳体111和第二壳体112分别连接于转轴机构113的两侧。第二壳体112能够通过转轴机构113相对第一壳体111折叠或展开,使可折叠壳体组件110带动柔性显示屏120折叠或展开,可折叠壳体组件110及柔性显示屏120呈叠合状时,电子设备100的体积相对较小,便于收纳及携带,可折叠壳体组件110及柔性显示屏120呈展开状时,电子设备100的体积相对较大,便于进行信息的展示。The
请参阅图2,本实施方式中,柔性显示屏120包括连接于第一壳体111的第一显示部121、连接于第二壳体112的第二显示部122和连接于第一显示部121和第二显示部122的弯折显示部123。其中,第一显示部121、第二显示部122对以及弯折显示部123可对应形成多个显示区域(例如,形式两个显示区域、形成三个显示区域、形成四个显示区域……形成N个显示区域)。第一显示部121和第二显示部122分别随第一壳体111和第二壳体112相对地折叠或展开。弯折显示部123随第一显示部121与第二显示部122的折叠或展开而弯折或展平。在一些实施方式中,第一显示部121、第二显示部122以及弯折显示部123可以为一体结构,使柔性显示屏120为整片式的柔性显示屏;或者,在其他的一些实施方式中,弯折显示部123为可弯折的柔性部分,而第一显示部121、第二显示部122可以为非柔性部分,第一显示部121、第二显示部122通过弯折显示部123相对地折叠或展开。在本实施方式中,第一壳体111与第二壳体112呈叠合状时,第一显示部121与第二显示部122相背离,使电子设备100呈现为外折屏幕的结构,使用户在折叠的情况下同样能够观察柔性显示屏120的显示内容,提高了电子设备100使用的便利性。在其他的一些实施方式中,第一壳体111与第二壳体112呈叠合状时,第一显示部121与第二显示部122相靠近,使电子设备100呈现为内折屏幕的结构,以使柔性显示屏120免于刮花损坏。Please refer to FIG. 2 , in this embodiment, the
应当理解的是,上述的第一显示部121、第二显示部122以及弯折显示部123的命名仅为便于描述而设置,并不作为柔性显示屏120的结构限制,在实际的应用场景中,第一显示部121、第二显示部122以及弯折显示部123可以没有明显的界限,或者,柔性显示屏120可以以其他的划分结构出现,例如,柔性显示屏120包括第一显示部121以及连接于该第一显示部121的第二显示部122,该第一显示部121及该第二显示部122能够相对转动以折叠或展开。It should be understood that the names of the above-mentioned
请参阅图3,电子设备100除了可以为上述折叠屏电子设备之外,还可以为非折叠屏电子设备。需要说明的是,在本实施例中,电子设备100的外形和结构均不作为限定,只要能适用本方案即可。Referring to FIG. 3 , the
请参阅图4,图4示出了本申请一实施例提供的截屏方法的流程示意图。该方法用于通过基于多指滑动操作的多个滑动起始位置,确定截屏的对象进行截屏,可以无需进行繁琐的裁剪拖动,也无需担心悬浮窗覆盖,提升截屏的快捷性和准确性。在具体的实施例中,该方法应用于如图8所示的截屏装置200以及配置有截屏装置200的电子设备100(图9)。下面将以电子设备为例,说明本实施例的具体流程,当然,可以理解的,本实施例所应用的电子设备可以包括智能手机、平板电脑、穿戴式电子设备等,在此不做限定。下面将针对图4所示的流程进行详细的阐述,所述截屏方法具体可以包括以下步骤:Please refer to FIG. 4 , which shows a schematic flowchart of a screen capture method provided by an embodiment of the present application. This method is used to determine the screen capture object to capture the screen through multiple sliding start positions based on the multi-finger sliding operation, without cumbersome cutting and dragging, and without worrying about the floating window coverage, which improves the speed and accuracy of the screen capture. In a specific embodiment, the method is applied to the screen capture device 200 shown in FIG. 8 and the electronic device 100 ( FIG. 9 ) configured with the screen capture device 200 . The following will take an electronic device as an example to illustrate the specific process of this embodiment. Of course, it can be understood that the electronic device applied in this embodiment may include a smart phone, a tablet computer, a wearable electronic device, etc., which is not limited here. The process shown in Figure 4 will be described in detail below, and the screenshot method may specifically include the following steps:
步骤S110:显示目标界面,其中,所述目标界面包括第一窗口和叠加显示于所述第一窗口上的第二窗口,所述第一窗口划分为至少两个子窗口。Step S110: Displaying a target interface, wherein the target interface includes a first window and a second window superimposed on the first window, and the first window is divided into at least two sub-windows.
在本实施例中,电子设备可以显示目标界面,其中,该目标界面可以包括第一窗口和叠加显示于该第一窗口上的第二窗口,该第一窗口划分为至少两个子窗口。In this embodiment, the electronic device may display a target interface, where the target interface may include a first window and a second window superimposed on the first window, and the first window is divided into at least two sub-windows.
在一些实施方式中,该第一窗口可以理解为目标界面中的下层窗口,第二窗口可以理解为目标界面中的上层窗口,其中,第二窗口叠加显示于第一窗口上,即,上层窗口叠加显示于下层窗口上。作为一种可实施的方式,该第二窗口的尺寸可以小于该第一窗口的尺寸,即,第二窗口叠加显示于该第一窗口上时,会覆盖该第一窗口的部分区域。In some embodiments, the first window can be understood as a lower window in the target interface, and the second window can be understood as an upper window in the target interface, wherein the second window is superimposed on the first window, that is, the upper window The overlay is displayed on the underlying window. As an implementable manner, the size of the second window may be smaller than that of the first window, that is, when the second window is superimposed and displayed on the first window, it will cover a part of the first window.
在一些实施方式中,该第二窗口叠加显示于该第一窗口时,该第二窗口在第一窗口上的叠加位置可以固定不变,或者,该第二窗口在第一窗口上叠加位置可以根据需求变化。例如,若该第二窗口在第一窗口上的叠加位置固定变化,则该第二窗口在第一窗口上的叠加位置可以默认不变,也可以为用户选定位置后不变;若该第二窗口在第一窗口上的叠加位置根据需求变化,则该第二窗口在第一窗口上的叠加位置可以根据作用于第二窗口的拖动操作而改变,或者,可以根据电子设备的转动而改变等,在此不做限定。作为一种方式,该第二窗口叠加显示于该第一窗口上可以包括:该第二窗口可以悬浮显示于该第一窗口上。In some implementations, when the second window is superimposed on the first window, the superimposed position of the second window on the first window may be fixed, or the superimposed position of the second window on the first window may be Varies according to needs. For example, if the superimposed position of the second window on the first window is fixed, the superimposed position of the second window on the first window can be unchanged by default, or can be unchanged after the user selects a position; The superposition position of the second window on the first window changes according to requirements, then the superposition position of the second window on the first window can be changed according to the drag operation acting on the second window, or can be changed according to the rotation of the electronic device Changes and the like are not limited here. As a manner, the overlay display of the second window on the first window may include: the second window may be hovered and displayed on the first window.
在一些实施方式中,该第一窗口划分为至少两个子窗口。例如,当该第一窗口为双分屏时,则该第一窗口可以划分为两个子窗口,如划分为第一子窗口和第二子窗口;当该第一窗口为三分屏时,则该第一窗口可以划分为三个子窗口,如划分为第一子窗口、第二子窗口以及第三子窗口。当然,在本实施例中,第一窗口还可以划分为其他更多的窗口,在此不再赘述。In some implementations, the first window is divided into at least two sub-windows. For example, when the first window is a double-split screen, then the first window can be divided into two sub-windows, such as a first sub-window and a second sub-window; when the first window is a three-split screen, then The first window may be divided into three sub-windows, such as a first sub-window, a second sub-window and a third sub-window. Certainly, in this embodiment, the first window may also be divided into other more windows, which will not be repeated here.
在一些实施方式中,该第一窗口和第二窗口所显示的内容可以相同,也可以不同,该第一窗口所显示的内容和第二窗口所显示的内容可以由相同的应用程序提供,也可以由不同的应用程序提供。该至少两个子窗口所显示的内容可以相同,也可以不同,该至少两个子窗口所显示的内容可以由相同的应用程序提供,也可以由不同的应用程序提供等,在此不做限定。In some embodiments, the content displayed in the first window and the second window may be the same or different, and the content displayed in the first window and the content displayed in the second window may be provided by the same application program, or Can be provided by different applications. The content displayed by the at least two sub-windows may be the same or different, and the content displayed by the at least two sub-windows may be provided by the same application program or different application programs, etc., which are not limited herein.
请参阅图5,图5示出了本申请实施例提供的电子设备的第一种界面示意图。如图5所示,该电子设备显示目标界面,该目标界面包括第一窗口以及叠加显示于该第一窗口上的第二窗口20,其中,该第一窗口包括第一子窗口11和第二子窗口12。Please refer to FIG. 5 , which shows a schematic diagram of a first interface of an electronic device provided by an embodiment of the present application. As shown in FIG. 5, the electronic device displays a target interface, and the target interface includes a first window and a
步骤S120:响应作用于所述目标界面的多指滑动操作,获取所述多指滑动操作对应的多个滑动起始位置。Step S120: In response to the multi-finger sliding operation acting on the target interface, acquire multiple sliding start positions corresponding to the multi-finger sliding operation.
在本实施例中,在显示目标界面的过程中,可以对作用于目标界面上的触控操作进行检测,该触控操作可以包括单指点击操作、多指点击操作、单指按压操作、多指按压操作、单指滑动操作、多指滑动操作、单指长按操作、多指长按操作等,在此不做限定。其中,当检测到作用于目标界面的多指滑动操作时,则可以响应作用于目标界面上的多指滑动操作,获取多指滑动操作对应的多个滑动起始位置。In this embodiment, during the process of displaying the target interface, the touch operation acting on the target interface may be detected, and the touch operation may include single-finger click operation, multi-finger click operation, single-finger press operation, multi-finger press operation, etc. Finger press operation, single-finger slide operation, multi-finger slide operation, single-finger long press operation, multi-finger long press operation, etc. are not limited herein. Wherein, when a multi-finger sliding operation acting on the target interface is detected, multiple sliding start positions corresponding to the multi-finger sliding operation may be acquired in response to the multi-finger sliding operation acting on the target interface.
在一些实施方式中,在显示目标界面的过程中,可以对作用于该目标界面的触控操作进行检测,在检测到作用于目标界面上的多指滑动操作的情况下,则可以检测该多指滑动操作的滑动方向是否满足预设滑动方向,且检测到多指滑动操作的滑动距离是否满足预设滑动距离。其中,在确定该多指滑动操作的滑动方向满足预设滑动方向且多指滑动操作的滑动距离满足预设滑动距离的情况下,则可以获取该多指滑动操作对应的多个滑动起始位置。作为一种可实施的方式,该预设滑动方向包括向下滑动。In some implementations, during the process of displaying the target interface, the touch operation acting on the target interface can be detected, and in the case of detecting the multi-finger sliding operation Whether the sliding direction of the finger sliding operation satisfies the preset sliding direction, and whether the sliding distance of the multi-finger sliding operation meets the preset sliding distance is detected. Wherein, when it is determined that the sliding direction of the multi-finger sliding operation satisfies the preset sliding direction and the sliding distance of the multi-finger sliding operation satisfies the preset sliding distance, multiple sliding start positions corresponding to the multi-finger sliding operation can be obtained . As an implementable manner, the preset sliding direction includes sliding downward.
在一些实施方式中,作用于目标界面的多指滑动操作可以是指作用于目标界面的多个触控点的滑动操作,因此,在本实施例中,在显示目标界面的过程中,可以对是否存在多个触控点的滑动操作进行检测,其中,在检测到存在多个触控点的滑动操作时,可以确定检测到作用于目标界面的多指滑动操作。例如,在检测到作用于目标界面的多个触控点向下滑动预设滑动距离时,可以获取该多指滑动操作对应的多个滑动起始位置。In some implementations, the multi-finger sliding operation acting on the target interface may refer to a sliding operation acting on multiple touch points on the target interface. Therefore, in this embodiment, during the process of displaying the target interface, the Whether there is a sliding operation of multiple touch points is detected, wherein, when the sliding operation of multiple touch points is detected, it can be determined that a multi-finger sliding operation acting on the target interface is detected. For example, when it is detected that multiple touch points acting on the target interface slide down a preset sliding distance, multiple sliding start positions corresponding to the multi-finger sliding operation may be acquired.
在一些实施方式中,可以以电子设备的中心点为原点,以电子设备的横轴方向和纵轴方向为坐标轴方向建立坐标系,或者,可以以电子设备的某个顶点为原点,以电子设备的横纵方向和纵轴方向为坐标轴方向建立坐标系。那么,获取该多指滑动操作对应的多个滑动起始位置可以包括:获取该多指滑动操作对应的多个起始位置各自在该坐标系中的坐标信息。例如,假设多指滑动操作为三指滑动操作,那么,可以获取三指滑动操作对应的三个起始位置各自在该坐标系中的坐标信息。In some embodiments, a coordinate system can be established with the center point of the electronic device as the origin, and the horizontal and vertical axes of the electronic device as the coordinate axis directions, or a certain vertex of the electronic device can be used as the origin, and the electron The horizontal and vertical directions and the vertical axis direction of the device establish a coordinate system for the coordinate axis direction. Then, obtaining the plurality of sliding start positions corresponding to the multi-finger sliding operation may include: obtaining coordinate information in the coordinate system of each of the plurality of starting positions corresponding to the multi-finger sliding operation. For example, assuming that the multi-finger sliding operation is a three-finger sliding operation, then the coordinate information of the three starting positions corresponding to the three-finger sliding operation in the coordinate system may be acquired.
作为一种可实施的方式,多个滑动操作对应的多个滑动起始位置可以包括:多指滑动操作在目标界面对应的多个初始落点位置。因此,可以通过获取多指滑动操作在目标界面对应的多个初始落点位置的方式,获得该多指滑动操作对应的多个滑动起始位置。As an implementable manner, the multiple sliding start positions corresponding to the multiple sliding operations may include: multiple initial drop point positions corresponding to the multi-finger sliding operation on the target interface. Therefore, multiple initial sliding positions corresponding to the multi-finger sliding operation may be obtained by acquiring multiple initial drop point positions corresponding to the multi-finger sliding operation on the target interface.
在一些实施方式中,除了获取该多指滑动操作对应的多个滑动起始位置,还可以获取该至少两个子窗口的位置、该第二窗口的位置以及该第一窗口的位置。例如,在建立有坐标系的情况下,还可以获取该至少两个子窗口各自在该坐标系下的坐标信息,获取该第二窗口在该坐标系下的坐标信息,和/或,获取该第一窗口在该坐标系下的坐标信息等,在此不做限定。In some implementations, in addition to obtaining multiple sliding start positions corresponding to the multi-finger sliding operation, the positions of the at least two sub-windows, the position of the second window, and the position of the first window may also be obtained. For example, if a coordinate system is established, the coordinate information of the at least two sub-windows in the coordinate system can be obtained, the coordinate information of the second window in the coordinate system can be obtained, and/or, the first window can be obtained. The coordinate information and the like of a window in the coordinate system are not limited here.
步骤S130:确定所述多个滑动起始位置与所述至少两个子窗口的位置关系作为第一位置关系,并确定所述第二窗口与所述至少两个子窗口的位置关系作为第二位置关系。Step S130: Determine the positional relationship between the plurality of sliding start positions and the at least two sub-windows as a first positional relationship, and determine the positional relationship between the second window and the at least two sub-windows as a second positional relationship .
在本实施例中,可以确定该多个滑动起始位置与至少两个子窗口的位置关系,并将该多个滑动起始位置与至少两个子窗口的位置关系作为第一位置关系,以及,可以确定该第二窗口与至少两个子窗口的位置关系,并将该第二窗口与至少两个子窗口的位置关系作为第二位置关系。In this embodiment, the positional relationship between the multiple sliding start positions and at least two sub-windows may be determined, and the positional relationship between the multiple sliding start positions and the at least two sub-windows may be used as the first positional relationship, and may Determine the positional relationship between the second window and the at least two sub-windows, and use the positional relationship between the second window and the at least two sub-windows as the second positional relationship.
在一些实施方式中,在获得多个滑动起始位置和至少两个子窗口各自的位置的情况下,则可以基于多个滑动起始位置和至少两个子窗口各自的位置,确定该多个滑动起始位置与至少两个子窗口的位置关系作为第一位置关系;在获得第二窗口的位置和至少两个子窗口各自的位置的情况下,则可以基于第二窗口的位置和至少两个子窗口各自的位置,确定该第二窗口与至少两个子窗口的位置关系作为第二位置关系。In some implementations, in the case of obtaining multiple sliding start positions and the respective positions of at least two sub-windows, the multiple sliding start positions may be determined based on the multiple sliding start positions and the respective positions of the at least two sub-windows. The positional relationship between the initial position and at least two sub-windows is used as the first positional relationship; in the case of obtaining the position of the second window and the respective positions of the at least two sub-windows, then it can be based on the position of the second window and the respective positions of the at least two sub-windows position, determining the positional relationship between the second window and at least two sub-windows as the second positional relationship.
作为一种可实施的方式,在获得多指滑动操作的坐标信息和至少两个子窗口各自的坐标信息的情况下,则可以基于多指滑动操作的坐标信息的和至少两个子窗口各自的坐标信息,确定该多个滑动起始位置与至少两个子窗口的位置关系作为第一位置关系;在获得第二窗口的坐标信息和至少两个子窗口的各自的坐标信息的情况下,则可以基于第二窗口的坐标信息和至少两个子窗口各自的坐标信息,确定该第二窗口与至少两个子窗口的位置关系作为第二位置关系。As an implementable manner, in the case of obtaining the coordinate information of the multi-finger swipe operation and the respective coordinate information of at least two sub-windows, it may be based on the coordinate information of the multi-finger swipe operation and the respective coordinate information of the at least two sub-windows , determine the positional relationship between the plurality of sliding start positions and at least two sub-windows as the first positional relationship; in the case of obtaining the coordinate information of the second window and the respective coordinate information of the at least two sub-windows, it may be based on the second The coordinate information of the window and the respective coordinate information of the at least two sub-windows determine the positional relationship between the second window and the at least two sub-windows as the second positional relationship.
在一些实施方式中,第一位置关系可以包括:多个滑动起始位置均位于至少两个子窗口中的一个子窗口内;或者,多个滑动起始位置未均位于至少两个子窗口中的一个子窗口内,其中,多个滑动起始位置未均位于至少两个子窗口中的一个子窗口内可以包括:多个滑动起始位置位于两个子窗口内;多个滑动起始位置位于三个子窗口内;多个滑动起始位置位于四个子窗口内;多个滑动起始位置位于五个子窗口内等,在此不做限定。In some implementations, the first positional relationship may include: a plurality of sliding start positions are all located in one of the at least two sub-windows; or, a plurality of sliding start positions are not all located in one of the at least two sub-windows In the sub-window, wherein the plurality of sliding start positions are not all located in one of the at least two sub-windows may include: the plurality of sliding start positions are located in two sub-windows; the plurality of sliding start positions are located in three sub-windows multiple sliding start positions are located within four sub-windows; multiple sliding start positions are located within five sub-windows, etc., which are not limited here.
在一些实施方式中,第二位置关系可以包括:第二窗口完全叠加于至少两个子窗口中的一个子窗口内;或者,第二窗口未完全叠加于至少两个子窗口中的一个子窗口内。其中,第二窗口未完成叠加于至少两个子窗口中的一个子窗口内可以包括:第二窗口的较大区域叠加于一个子窗口内且剩余区域叠加于其他子窗口内;第二窗口的近半区域叠加于一个子窗口内且剩余区域叠加于其他子窗口内;第二窗口的较小区域叠加于一个子窗口内且剩余区域叠加于其他子窗口内等,在此不做限定。In some implementations, the second positional relationship may include: the second window is completely overlapped in one of the at least two sub-windows; or, the second window is not completely overlapped in one of the at least two sub-windows. Wherein, the incomplete superposition of the second window in one of the at least two sub-windows may include: a larger area of the second window is superimposed in one sub-window and the remaining area is superimposed in other sub-windows; The half area is superimposed in one sub-window and the remaining area is superimposed in other sub-windows; the smaller area of the second window is superimposed in one sub-window and the remaining area is superimposed in other sub-windows, etc., which are not limited here.
步骤S140:基于所述第一位置关系和所述第二位置关系,截取所述目标界面的显示内容。Step S140: Based on the first positional relationship and the second positional relationship, intercept the display content of the target interface.
在本实施例中,在获得第一位置关系和第二位置关系的情况下,则可以基于该第一位置关系和第二位置关系,截取该目标界面的显示内容。In this embodiment, when the first positional relationship and the second positional relationship are obtained, the displayed content of the target interface may be intercepted based on the first positional relationship and the second positional relationship.
在一些实施方式中,截取目标界面的显示内容可以包括:截取第二窗口的显示内容和第一窗口内未被第二窗口覆盖的显示内容;截取第二窗口的显示内容和某个子窗口内未被第二窗口覆盖的显示内容;截取某个子窗口的显示内容;截取第二窗口的部分显示内容和某个字窗口内未被第二窗口覆盖的显示内容等,在此不做限定。In some implementations, intercepting the display content of the target interface may include: intercepting the display content of the second window and the display content in the first window that is not covered by the second window; The display content covered by the second window; intercepting the display content of a sub-window; intercepting part of the display content of the second window and the display content in a word window not covered by the second window, etc., are not limited here.
请参阅图6,图6示出了本申请实施例提供的电子设备的第一种交互示意图。如图6所示,该电子设备显示目标界面,该目标界面包括第一窗口以及叠加显示于该第一窗口上的第二窗口20,其中,该第一窗口包括第一子窗口11和第二子窗口12。当多个滑动起始位置均位于第一子窗口11内时,则截取该第二窗口20位于该第一子窗口11内的显示内容,以及第一子窗口11内未被第二窗口20覆盖的显示内容。Please refer to FIG. 6 . FIG. 6 shows a schematic diagram of a first interaction of an electronic device provided by an embodiment of the present application. As shown in FIG. 6, the electronic device displays a target interface, and the target interface includes a first window and a
请参阅图7,图7示出了本申请实施例提供的电子设备第二种界面示意图。如图7所示,在通过图6所示的方式截取该第二窗口20位于该第一子窗口11内的显示内容,以及第一子窗口11内未被第二窗口20覆盖的显示内容的情况下,则可以获得第一截图30,其中,该第一截图30可以悬浮显示于第一子窗口11上。Please refer to FIG. 7 , which shows a schematic diagram of a second interface of an electronic device provided by an embodiment of the present application. As shown in FIG. 7 , the display content of the
请参阅图8,图8示出了本申请实施例提供的电子设备的第二种交互示意图。如图8所示,该电子设备显示目标界面,该目标界面包括第一窗口10以及叠加显示于该第一窗口10上的第二窗口20,其中,该第一窗口包括第一子窗口11和第二子窗口12。当多个滑动起始位置同时位于第一子窗口11和第二子窗口12内时,则截取该第二窗口20的显示内容,以及第一子窗口11和第二子窗口12内未被第二窗口20覆盖的显示内容。Please refer to FIG. 8 . FIG. 8 shows a second schematic diagram of interaction of the electronic device provided by the embodiment of the present application. As shown in FIG. 8, the electronic device displays a target interface, the target interface includes a first window 10 and a
请参阅图9,图9示出了本申请实施例提供的电子设备第三种界面示意图。如图9所示,在通过图8所示的方式截取该第二窗口20的显示内容,以及第一子窗口11和第二子窗口12内未被第二窗口20覆盖的显示内容的情况下,则可以获得第二截图40,其中,该第一截图40可以悬浮显示于第一子窗口11上。Please refer to FIG. 9 , which shows a schematic diagram of a third interface of an electronic device provided by an embodiment of the present application. As shown in Figure 9, in the case of intercepting the display content of the
本申请一实施例提供的截屏方法,显示目标界面,其中,该目标界面包括第一窗口和叠加显示于第一窗口上的第二窗口,该第一窗口划分为至少两个子窗口,响应作用于目标界面的多指滑动操作,获取多指滑动操作对应的多个滑动起始位置,确定多个滑动起始位置与至少两个子窗口的位置关系作为第一位置关系,并确定第二窗口与至少两个子窗口的位置关系作为第二位置关系,基于第一位置关系和第二位置关系,截取目标界面的显示内容,从而通过基于多指滑动操作的多个滑动起始位置,确定截屏的对象进行截屏,可以无需进行繁琐的裁剪拖动,也无需担心悬浮窗覆盖,提升截屏的快捷性和准确性。The screen capture method provided by an embodiment of the present application displays a target interface, wherein the target interface includes a first window and a second window superimposed on the first window, the first window is divided into at least two sub-windows, and responds to the For the multi-finger sliding operation on the target interface, obtain multiple sliding starting positions corresponding to the multi-finger sliding operation, determine the positional relationship between the multiple sliding starting positions and at least two sub-windows as the first positional relationship, and determine the relationship between the second window and at least two sub-windows. The positional relationship of the two sub-windows is used as the second positional relationship. Based on the first positional relationship and the second positional relationship, the display content of the target interface is intercepted, so that multiple sliding start positions based on the multi-finger sliding operation are used to determine the object of the screen capture. Screen capture, you don't need to do cumbersome cropping and dragging, and you don't need to worry about floating window coverage, which improves the speed and accuracy of screen capture.
请参阅图10,图10示出了本申请一实施例提供的截屏方法的流程示意图。该方法应用于上述电子设备,下面将针对图10所示的流程进行详细的阐述,所述截屏方法具体可以包括以下步骤:Please refer to FIG. 10 . FIG. 10 shows a schematic flowchart of a screen capture method provided by an embodiment of the present application. This method is applied to the above-mentioned electronic equipment, and the process shown in FIG. 10 will be described in detail below. The screen capture method may specifically include the following steps:
步骤S210:显示目标界面,其中,所述目标界面包括第一窗口和叠加显示于所述第一窗口上的第二窗口,所述第一窗口划分为至少两个子窗口。Step S210: Displaying a target interface, wherein the target interface includes a first window and a second window superimposed on the first window, and the first window is divided into at least two sub-windows.
步骤S220:响应作用于所述目标界面的多指滑动操作,获取所述多指滑动操作对应的多个滑动起始位置。Step S220: In response to the multi-finger sliding operation acting on the target interface, acquire multiple sliding start positions corresponding to the multi-finger sliding operation.
步骤S230:确定所述多个滑动起始位置与所述至少两个子窗口的位置关系作为第一位置关系,并确定所述第二窗口与所述至少两个子窗口的位置关系作为第二位置关系。Step S230: Determine the positional relationship between the plurality of sliding start positions and the at least two sub-windows as a first positional relationship, and determine the positional relationship between the second window and the at least two sub-windows as a second positional relationship .
其中,步骤S210-步骤S230的具体描述请参阅步骤S110-步骤S130,在此不再赘述。Wherein, for the specific description of step S210-step S230, please refer to step S110-step S130, which will not be repeated here.
步骤S240:若基于所述第一位置关系确定所述多个滑动起始位置均位于所述至少两个子窗口中的目标子窗口内,则基于所述第二位置关系,截取所述第二窗口内的显示内容和所述目标子窗口内的显示内容,其中,所述目标子窗口为所述至少两个子窗口中的任意一个子窗口。Step S240: If it is determined based on the first positional relationship that the plurality of sliding start positions are all located in the target sub-window of the at least two sub-windows, intercepting the second window based on the second positional relationship The display content in the target sub-window and the display content in the target sub-window, wherein the target sub-window is any one of the at least two sub-windows.
在本实施例中,在获得该第一位置关系的情况下,则可以基于该第一位置关系判断该多个滑动起始位置是否均位于至少两个子窗口中的任意一个子窗口(目标子窗口)内,若该多个滑动起始位置均位于该至少两个子窗口中的目标子窗口内,可以认为用户触发进行分屏截屏,则可以基于该第二位置关系,截取该第二窗口内的显示内容和目标子窗口内的显示内容。In this embodiment, in the case of obtaining the first positional relationship, it may be determined based on the first positional relationship whether the plurality of sliding start positions are all located in any one of the at least two sub-windows (target sub-window ), if the plurality of sliding starting positions are all located in the target sub-window of the at least two sub-windows, it can be considered that the user triggers a split-screen screenshot, and the screen capture in the second window can be intercepted based on the second positional relationship. The displayed content and the displayed content within the target subwindow.
在一些实施方式中,在建立有坐标系的情况下,可以获取该多个滑动起始位置各自的坐标信息,并获取该至少两个子窗口各自的坐标区域。基于此,可以将该多个滑动起始位置各自的坐标信息分别与至少两个子窗口各自的坐标区域进行比较,以判断该多个滑动起始位置的坐标信息是否均位于多个子窗口中的目标子窗口的坐标区域内。其中,若确定该多个滑动起始位置的坐标信息均位于目标子窗口的坐标区域内,则可以确定该多个滑动起始位置均位于该目标子窗口内;若确定该多个滑动起始位置的坐标信息未均位于目标子窗口(其中一个子窗口)内,则可以确定该多个滑动起始位置未均位于该目标子窗口内。In some implementation manners, when a coordinate system is established, respective coordinate information of the plurality of sliding start positions may be obtained, and respective coordinate areas of the at least two sub-windows may be obtained. Based on this, the coordinate information of each of the plurality of sliding start positions can be compared with the respective coordinate areas of at least two sub-windows to determine whether the coordinate information of the plurality of sliding start positions is located in the target in the plurality of sub-windows within the coordinate area of the subwindow. Wherein, if it is determined that the coordinate information of the plurality of sliding start positions is located in the coordinate area of the target sub-window, it can be determined that the plurality of sliding start positions are all located in the target sub-window; if it is determined that the plurality of sliding start positions If the coordinate information of the position is not all located in the target sub-window (one of the sub-windows), it can be determined that the plurality of sliding start positions are not all located in the target sub-window.
作为一种可实施的方式,假设至少两个子窗口包括第一子窗口和第二子窗口,多指滑动操作包括三指滑动操作。那么,则可以判断该三个滑动起始位置是否均位于第一子窗口或者是否均位于第二子窗口内,其中,若确定该三个滑动起始位置均位于该第一子窗口内或者均位于该第二子窗口内,则可以确定该多个滑动起始位置均位于目标子窗口内,若两个滑动起始位置位于第一子窗口内且一个滑动起始位置位于第二子窗口内,或者,一个滑动起始位置位于第一子窗口内且两个滑动起始位置位于第二子窗口内,则可以确定该多个滑动起始位置未均位于目标子窗口内。As an implementable manner, it is assumed that at least two sub-windows include a first sub-window and a second sub-window, and the multi-finger sliding operation includes a three-finger sliding operation. Then, it can be judged whether the three sliding starting positions are all located in the first sub-window or whether they are all located in the second sub-window, wherein, if it is determined that the three sliding starting positions are all located in the first sub-window or are all located in the first sub-window located in the second sub-window, it can be determined that the plurality of sliding start positions are all located in the target sub-window, if two sliding start positions are located in the first sub-window and one sliding start position is located in the second sub-window , or if one sliding start position is located in the first sub-window and two sliding start positions are located in the second sub-window, it may be determined that none of the plurality of sliding start positions is located in the target sub-window.
在一些实施方式中,基于第二位置关系,截取第二窗口内的显示内容和目标子窗口内的显示内容可以包括:若第二位置关系表征该第二窗口未位于该目标子窗口内,则可以截取该目标子窗口内的显示内容;若第二位置关系表征该第二窗口完全位于该目标子窗口内,则可以截取该第二窗口内的显示内容和目标子窗口内未被第二窗口覆盖的显示内容;若第二位置关系表征该第二窗口位于该目标子窗口内的区域满足第一预设条件,则可以截取该第二窗口内的显示内容和目标子窗口内未被第二窗口覆盖的显示内容;若第二位置关系表征该第二窗口位于该目标子窗口内的区域满足第二预设条件,则可以截取该第二窗口内位于该目标子窗口内的显示内容和目标子窗口内未被第二窗口覆盖的显示内容;若第二位置关系表征该第二窗口位于该目标子窗口内的区域满足第三预设条件,则可以截取该目标子窗口的显示内容。In some implementations, based on the second positional relationship, intercepting the display content in the second window and the display content in the target sub-window may include: if the second positional relationship indicates that the second window is not located in the target sub-window, then The display content in the target sub-window can be intercepted; if the second positional relationship indicates that the second window is completely located in the target sub-window, then the display content in the second window and the target sub-window not covered by the second window can be intercepted. Covered display content; if the second positional relationship indicates that the area where the second window is located in the target sub-window satisfies the first preset condition, then the display content in the second window and the target sub-window not covered by the second window can be intercepted. The display content covered by the window; if the second positional relationship indicates that the area where the second window is located in the target sub-window satisfies the second preset condition, then the display content and the target in the second window that is located in the target sub-window can be intercepted The display content in the sub-window not covered by the second window; if the second positional relationship indicates that the area of the second window within the target sub-window satisfies the third preset condition, then the display content of the target sub-window can be intercepted.
请参阅图11,图11示出了本申请的图10所示的截屏方法的步骤S240的流程示意图。下面将针对图11所示的流程进行详细的阐述,所述方法具体可以包括以下步骤:Please refer to FIG. 11 , which shows a schematic flowchart of step S240 of the screenshot method shown in FIG. 10 of the present application. The process shown in Figure 11 will be described in detail below, and the method may specifically include the following steps:
步骤S241:若基于所述第二位置关系确定所述第二窗口与所述目标子窗口存在重叠区域,则基于所述重叠区域,截取所述第二窗口内的显示内容和所述目标子窗口内的显示内容。Step S241: If it is determined based on the second positional relationship that there is an overlapping area between the second window and the target sub-window, based on the overlapping area, intercept the display content in the second window and the target sub-window display content within.
在本实施例中,在获得该第一位置关系和第二位置关系的情况下,则可以基于该第一位置关系判断该多个滑动起始位置是否均位于至少两个子窗口中的目标子窗口内,若该多个滑动起始位置均位于该至少两个子窗口中的目标子窗口内,则可以基于该第二位置关系判断该第二窗口与目标子窗口是否存在重叠区域。In this embodiment, when the first positional relationship and the second positional relationship are obtained, it may be determined based on the first positional relationship whether the plurality of sliding start positions are all located in the target sub-windows of at least two sub-windows If the plurality of sliding starting positions are all located in the target sub-window of the at least two sub-windows, it may be determined based on the second positional relationship whether there is an overlapping area between the second window and the target sub-window.
在一些实施方式中,在建立有坐标系的情况下,可以获取该目标子窗口的坐标区域,并获取该第二窗口的坐标区域。基于此,可以将该目标子窗口的坐标区域和第二窗口的坐标区域进行比较,以判断该目标子窗口的坐标区域和第二窗口的坐标区域是否存在相同的坐标区域。其中,若确定该目标子窗口的坐标区域和第二窗口的坐标区域存在相同的坐标区域,则可以确定该第二窗口与目标子窗口存在重叠区域;若确定该目标子窗口的坐标区域和第二窗口的坐标区域不存在相同的坐标区域,则可以确定该第二窗口与目标子窗口不存在重叠区域。In some implementation manners, if a coordinate system is established, the coordinate area of the target sub-window may be acquired, and the coordinate area of the second window may be acquired. Based on this, the coordinate area of the target sub-window can be compared with the coordinate area of the second window to determine whether the coordinate area of the target sub-window and the coordinate area of the second window have the same coordinate area. Wherein, if it is determined that the coordinate area of the target sub-window and the coordinate area of the second window have the same coordinate area, it can be determined that the second window overlaps with the target sub-window; if it is determined that the coordinate area of the target sub-window and the second window If the coordinate areas of the two windows do not have the same coordinate area, it can be determined that there is no overlapping area between the second window and the target sub-window.
在一些实施方式中,可以判断目标子窗口内的显示内容是否被第二窗口的显示内容遮挡。其中,在确定目标子窗口内的显示内容被第二窗口的显示内容遮挡的情况下,则可以确定第二窗口与目标子窗口存在重叠区域;在确定目标子窗口的显示内容未被第二窗口的显示内容遮挡的情况下,则可以确定第二窗口与目标子窗口不存在重叠区域。In some implementation manners, it may be determined whether the display content in the target sub-window is blocked by the display content of the second window. Wherein, in the case of determining that the display content in the target sub-window is blocked by the display content of the second window, it can be determined that there is an overlapping area between the second window and the target sub-window; In the case that the displayed content is blocked, it can be determined that there is no overlapping area between the second window and the target sub-window.
其中,在确定该第二窗口与目标子窗口存在重叠区域的情况下,则可以基于该重叠区域,截取该第二窗口内的显示内容和目标子窗口内的显示内容。作为一种可实施的方式,在确定该第二窗口与目标子窗口存在重叠区域的情况下,则可以获取该重叠区域的大小,基于该重叠区域的大小,截取该第二窗口内的显示内容和目标子窗口内的显示内容。作为又一种可实施的方式,在确定该第二窗口与目标子窗口存在重叠区域的情况下,则可以获取该重叠区域与第二窗口的占比,基于该占比,截取该第二窗口内的显示内容和目标子窗口内的显示内容等,在此不做限定。Wherein, if it is determined that there is an overlapping area between the second window and the target sub-window, the display content in the second window and the display content in the target sub-window may be intercepted based on the overlapping area. As an implementable manner, when it is determined that there is an overlapping area between the second window and the target sub-window, the size of the overlapping area can be obtained, and based on the size of the overlapping area, the display content in the second window can be intercepted and the display content in the target subwindow. As yet another implementable manner, when it is determined that there is an overlapping area between the second window and the target sub-window, the ratio of the overlapping area to the second window may be obtained, and based on the ratio, the second window may be intercepted The display content in the target sub-window and the like are not limited here.
请参阅图12,图12示出了本申请的图11所示的截屏方法的步骤S241的流程示意图。下面将针对图12所示的流程进行详细的阐述,所述方法具体可以包括以下步骤:Please refer to FIG. 12 , which shows a schematic flowchart of step S241 of the screenshot method shown in FIG. 11 of the present application. The process shown in Figure 12 will be described in detail below, and the method may specifically include the following steps:
步骤S2411:若基于所述第二位置关系确定所述第二窗口与所述目标子窗口存在重叠区域,则获取所述第二窗口位于所述目标子窗口内的区域与所述第二窗口的区域之间的比例。Step S2411: If it is determined based on the second positional relationship that there is an overlapping area between the second window and the target sub-window, then obtain the distance between the area of the second window within the target sub-window and the second window ratio between regions.
在本实施例中,在确定该第二窗口与目标子窗口存在重叠区域的情况下,则可以获取该第二窗口位于该目标子窗口内的区域与第二窗口的区域之间的比例。例如,假设该第二窗口位于该目标子窗口内的区域为S1,该第二窗口的区域为S2,则该第二窗口位于该目标子窗口内的区域与第二窗口的区域之间的比例为:S1/S2。In this embodiment, if it is determined that there is an overlapping area between the second window and the target sub-window, the ratio between the area of the second window within the target sub-window and the area of the second window may be acquired. For example, assuming that the area where the second window is located in the target sub-window is S1, and the area of the second window is S2, then the ratio between the area where the second window is located in the target sub-window and the area of the second window is For: S1/S2.
在一些实施方式中,在建立有坐标系的情况下,则可以获取该第二窗口在该坐标系下的横坐标长度和纵坐标长度,基于该第二窗口在该坐标系下的横坐标长度和纵坐标长度,确定该第二窗口在该坐标系下的区域大小;另外,可以获取该重叠区域在该坐标系下的横坐标长度和纵坐标长度,基于该重叠区域在该坐标系下的横坐标长度和纵坐标长度,确定该重叠区域在该坐标系下的区域大小。基于此,可以基于该第二窗口在该坐标系下的区域大小和重叠区域在该坐标系下的区域大小,确定第二窗口位于目标子窗口内的区域与第二窗口的区域之间的比例。In some implementations, when a coordinate system is established, the length of the abscissa and the length of the ordinate of the second window in the coordinate system can be obtained, based on the length of the abscissa of the second window in the coordinate system and the length of the ordinate to determine the area size of the second window in the coordinate system; in addition, the length of the abscissa and the length of the ordinate of the overlapping area in the coordinate system can be obtained, based on the area size of the overlapping area in the coordinate system The length of the abscissa and the length of the ordinate determine the area size of the overlapping area in the coordinate system. Based on this, the ratio between the area of the second window located in the target sub-window and the area of the second window can be determined based on the area size of the second window in the coordinate system and the area size of the overlapping area in the coordinate system .
步骤S2412:基于所述比例,截取所述第二窗口内的显示内容和所述目标子窗口内的显示内容。Step S2412: Based on the ratio, intercept the display content in the second window and the display content in the target sub-window.
在本实施例中,在获得该第二窗口位于目标子窗口内的区域与第二窗口的区域之间的比例的情况下,则可以基于该比例,截取该第二窗口内的显示和目标子窗口内的显示内容。其中,比例不同,则截取的显示内容可以不同。In this embodiment, when the ratio between the area of the second window located in the target sub-window and the area of the second window is obtained, the display in the second window and the target sub-window can be intercepted based on the ratio. The display content in the window. Wherein, if the ratio is different, the intercepted display content may be different.
请参阅图13,图13示出了本申请的图12所示的截屏方法的步骤S2412的流程示意图。下面将针对图13所示的流程进行详细的阐述,所述方法具体可以包括以下步骤:Please refer to FIG. 13 , which shows a schematic flowchart of step S2412 of the screenshot method shown in FIG. 12 of the present application. The process shown in Figure 13 will be described in detail below, and the method may specifically include the following steps:
步骤S24121:若所述比例大于第一比例阈值,则截取所述第二窗口内的全部显示内容和所述目标子窗口内未被所述第二窗口覆盖的显示内容。Step S24121: If the ratio is greater than the first ratio threshold, intercept all display content in the second window and display content in the target sub-window not covered by the second window.
在一些实施方式中,电子设备可以预先设置并存储有第一比例阈值和第二比例阈值,其中,该第一比例阈值大于第二比例阈值。该第一比例阈值用于作为该第二窗口位于该目标子窗口内的区域与第二窗口的区域之间的比例的判断依据,且该第二比例阈值用于作为该第二窗口位于该目标子窗口内的区域与第二窗口的区域之间的比例的判断依据。因此,在本实施例中,在获得该比例的情况下,则可以分别将该比例与该第一比例阈值和第二比例阈值进行比较,以确定该比例与第一比例阈值和第二比例阈值的大小关系。In some implementations, the electronic device may preset and store a first ratio threshold and a second ratio threshold, wherein the first ratio threshold is greater than the second ratio threshold. The first ratio threshold is used as the basis for judging the ratio between the area of the second window located in the target sub-window and the area of the second window, and the second ratio threshold is used as the basis for determining whether the second window is located in the target sub-window. The basis for judging the ratio between the area within the sub-window and the area of the second window. Therefore, in this embodiment, when the ratio is obtained, the ratio can be compared with the first ratio threshold and the second ratio threshold respectively to determine whether the ratio is the same as the first ratio threshold and the second ratio threshold. size relationship.
在一些实施方式中,若该比例大于第一比例阈值,则可以确定该第二窗口位于目标子窗口内的区域的占比较高,即确定该第二窗口的大部分区域均位于该目标子窗口内,此时,可以认为用户在截屏时,有较大可能期望截取该第二窗口内的全部显示内容,则可以截取该第二窗口内的全部显示内容和目标子窗口内未被第二窗口覆盖的显示内容。In some implementations, if the ratio is greater than the first ratio threshold, it can be determined that the proportion of the area of the second window located in the target sub-window is relatively high, that is, it is determined that most of the area of the second window is located in the target sub-window At this time, it can be considered that the user is more likely to expect to capture all the displayed content in the second window when taking a screenshot, then you can capture all the displayed content in the second window and the target sub-window that is not covered by the second window Overridden display content.
作为一种可实施的方式,由于第二窗口仍有一部分区域未位于该目标子窗口内,因此,在确定该比例大于第一比例的情况下,则可以控制第二窗口自动朝向目标子窗口的方向移动,并在确定该第二窗口移动至完全位于该目标子窗口内时,则可以截取该第二窗口内的全部显示内容和目标子窗口内未被第二窗口覆盖的显示内容。As an implementable manner, since a part of the area of the second window is not located in the target sub-window, when it is determined that the ratio is greater than the first ratio, the second window can be controlled to automatically move toward the target sub-window. direction, and when it is determined that the second window is completely located within the target sub-window, all display content in the second window and display content not covered by the second window in the target sub-window may be intercepted.
作为又一种可实施的方式,由于第二窗口仍有一部分区域未位于该目标子窗口内,因此,在确定该比例大于第一比例的情况下,则可以按比例缩小该第二窗口,并在确定该第二窗口缩小至完全位于该目标子窗口内时,则可以截取该第二窗口内的全部显示内容和目标子窗口内未被第二窗口覆盖的显示内容。As yet another implementable manner, since a part of the area of the second window is not located in the target sub-window, when it is determined that the ratio is greater than the first ratio, the second window may be scaled down, and When it is determined that the second window is shrunk to be completely within the target sub-window, all display content in the second window and display content in the target sub-window not covered by the second window may be intercepted.
作为再一种可实施的方式,由于第二窗口仍有一部分区域未位于该目标子窗口内,因此,在确定该比例大于第一比例的情况下,则可以保持第二窗口的显示位置和显示大小不变,并按比例缩小该第二窗口内的显示内容,并在确定该第二窗口内的显示内容缩小至完全位于该目标子窗口内时,则可以截取该第二窗口内的全部显示内容和目标子窗口内未被第二窗口覆盖的显示内容。As yet another implementable manner, since a part of the area of the second window is not located in the target sub-window, when it is determined that the ratio is greater than the first ratio, the display position and display position of the second window can be kept. The size remains unchanged, and the display content in the second window is reduced proportionally, and when it is determined that the display content in the second window is completely within the target sub-window, the entire display in the second window can be intercepted Content and display content within the target sub-window that is not covered by the second window.
请参阅图14,图14示出了本申请的图13所示的截屏方法的步骤S24121的流程示意图。下面将针对图14所示的流程进行详细的阐述,所述方法具体可以包括以下步骤:Please refer to FIG. 14 , which shows a schematic flowchart of step S24121 of the screenshot method shown in FIG. 13 of the present application. The process shown in Figure 14 will be described in detail below, and the method may specifically include the following steps:
步骤S241211:若所述比例大于所述第一比例阈值,则将所述第二窗口按比例缩小至与所述重叠区域的大小一致。Step S241211: If the ratio is greater than the first ratio threshold, shrink the second window in proportion to the size of the overlapping area.
在一些实施方式中,在确定该比例大于第一比例阈值的情况下,则可以将第二窗口按比例缩小至与重叠区域的大小一致。例如,假设第二窗口的区域的大小为S1,重叠区域的大小为S2,则可以将第二窗口的区域大小按比例从S1缩小为S2。可以理解的是,通过上述方式,则第二窗口的全部显示内容均可以位于该目标子窗口内,且第二窗口对于目标子窗口的覆盖可以保持不变。In some implementations, if it is determined that the ratio is greater than the first ratio threshold, the second window may be scaled down to be consistent with the size of the overlapping region. For example, assuming that the size of the area of the second window is S1 and the size of the overlapping area is S2, the size of the area of the second window may be reduced proportionally from S1 to S2. It can be understood that, through the above method, all the display content of the second window can be located in the target sub-window, and the coverage of the target sub-window by the second window can remain unchanged.
步骤S241212:截取按比例缩小后的所述第二窗口内的全部显示内容和所述目标子窗口内未被所述第二窗口覆盖的显示内容。Step S241212: Intercepting all the display content in the second window that has been scaled down and the display content in the target sub-window that is not covered by the second window.
在一些实施方式中,在将第二窗口按比例缩小至与重叠区域的大小一致的情况下,则可以截取按比例缩小后的第二窗口内的全部显示内容和目标子窗口内未被第二窗口覆盖的显示内容,以保证所截取的第二窗口内的显示内容的完整性,以及避免对所截取的目标子窗口内的显示内容的影响。In some implementations, when the second window is scaled down to be consistent with the size of the overlapping area, all display content in the scaled down second window and the target sub-window not covered by the second window can be intercepted. The display content covered by the window is used to ensure the integrity of the displayed content in the intercepted second window and to avoid the influence on the displayed content in the intercepted target sub-window.
步骤S24122:若所述比例大于第二比例阈值且小于或等于所述第一比例阈值,则截取所述第二窗口内覆盖所述目标子窗口的显示内容和所述目标子窗口内未被所述第二窗口覆盖的显示内容。Step S24122: If the ratio is greater than the second ratio threshold and less than or equal to the first ratio threshold, intercept the display content in the second window that covers the target sub-window and the target sub-window that is not covered by the target sub-window. Describe the display content covered by the second window.
在一些实施方式中,若该比例大于第二比例阈值且小于或等于第一比例阈值,则可以确定该第二窗口位于目标子窗口内的区域占比适中,即确定该第二窗口的部分区域位于目标子窗口内,且部分区域位于目标子窗口外,此时,可以认为用户在截屏时,有较大可能期望截取第二窗口中位于目标子窗口内的显示内容,则可以截取该第二窗口内覆盖该目标子窗口的显示内容,以及该目标窗口内未被第二窗口覆盖的显示内容。In some implementations, if the ratio is greater than the second ratio threshold and less than or equal to the first ratio threshold, it can be determined that the proportion of the area within the target sub-window of the second window is moderate, that is, it can be determined that a partial area of the second window is is located in the target sub-window, and part of the area is located outside the target sub-window. At this time, it can be considered that when the user captures the screen, it is more likely to expect to intercept the display content in the target sub-window in the second window, then the second window can be intercepted. The window covers the display content of the target sub-window, and the display content of the target window that is not covered by the second window.
步骤S24123:若所述比例小于或等于所述第二比例阈值,则截取所述目标子窗口内的显示内容。Step S24123: If the ratio is less than or equal to the second ratio threshold, intercept the display content in the target sub-window.
在一些实施方式中,若该比例小于或等于第二比例阈值,则可以确定该第二窗口位于目标子窗口内的区域的占比较低,即确定该第二窗口的大部分区域均位于该目标子窗口外,此时,可以认为用户在截屏时,有较大的可能期望不截取到该第二窗口内的显示内容,则可以截取该目标子窗口内的显示内容。In some implementations, if the ratio is less than or equal to the second ratio threshold, it can be determined that the proportion of the area of the second window located in the target sub-window is relatively low, that is, it is determined that most of the area of the second window is located in the target sub-window. Outside the sub-window, at this time, it can be considered that the user may not expect to intercept the display content in the second window when capturing the screen, so the display content in the target sub-window can be intercepted.
作为一种可实施的方式,由于第二窗口仍有一部分区域位于该目标子窗口内,因此,在确定该比例小于或等于第二比例的情况下,则可以控制第二窗口自动朝向远离目标子窗口的方向移动,并在确定该第二窗口移动至完全位于该目标子窗口外时,则可以截取该目标子窗口内的显示内容。As an implementable manner, since the second window still has a part of the area within the target sub-window, when it is determined that the ratio is less than or equal to the second ratio, the second window can be controlled to automatically move away from the target sub-window. The direction of the window is moved, and when it is determined that the second window is completely outside the target sub-window, the display content in the target sub-window can be intercepted.
作为又一种可实施的方式,由于第二窗口仍有一部分区域位于该目标子窗口内,因此,在确定该比例小于或等于第二比例的情况下,则可以按比例缩小该第二窗口,并在确定该第二窗口缩小至完全不位于该目标子窗口内时,则可以截取该目标子窗口内的显示内容。As yet another implementable manner, since the second window still has a part of the area within the target sub-window, when it is determined that the ratio is less than or equal to the second ratio, the second window may be reduced proportionally, And when it is determined that the second window is shrunk to not be located in the target sub-window at all, the displayed content in the target sub-window may be intercepted.
作为再一种可实施的方式,由于第二窗口仍有一部分区域位于该目标子窗口内,因此,在确定该比例小于或等于第二比例的情况下,则可以保持第二窗口的显示位置和显示大小不变,并按比例缩小该第二窗口内的显示内容,并在确定该第二窗口内的显示内容缩小至完全不位于该目标子窗口内时,则可以截取该目标子窗口内的显示内容。As yet another implementable manner, since the second window still has a part of the area within the target sub-window, when it is determined that the ratio is less than or equal to the second ratio, the display position of the second window and The display size remains unchanged, and the display content in the second window is reduced proportionally, and when it is determined that the display content in the second window is not located in the target sub-window at all, then the target sub-window can be intercepted. Display content.
步骤S242:若基于所述第二位置关系确定所述第二窗口与所述目标子窗口不存在重叠区域,则截取所述目标子窗口内的显示内容。Step S242: If it is determined based on the second positional relationship that there is no overlapping area between the second window and the target sub-window, intercept the display content in the target sub-window.
其中,在确定该第二窗口与目标子窗口不存在重叠区域的情况下,则可以截取该目标子窗口内的显示内容。在一些实施方式中,在基于第一位置确定该多个滑动起始位置均位于目标子窗口内,则表征截取的对象为目标子窗口内的显示内容以及叠加显示于目标子窗口上的显示内容,而若基于第二位置关系确定该第二窗口与目标子窗口不存在重叠区域,则可以确定该目标子窗口上未叠加显示有其他内容,则可以直接截取该目标子窗口内的显示内容。Wherein, if it is determined that there is no overlapping area between the second window and the target sub-window, the display content in the target sub-window may be intercepted. In some implementations, when it is determined based on the first position that the plurality of sliding start positions are all located in the target sub-window, then the intercepted objects are the display content in the target sub-window and the display content superimposed on the target sub-window , and if it is determined based on the second positional relationship that there is no overlapping area between the second window and the target sub-window, it can be determined that no other content is superimposed on the target sub-window, and then the displayed content in the target sub-window can be directly intercepted.
步骤S250:若基于所述第一位置关系确定所述多个滑动起始位置未均位于所述至少两个子窗口中的目标子窗口内,则截取所述第二窗口内的显示内容和所述第一窗口内未被所述第二窗口覆盖的显示内容。Step S250: If it is determined based on the first positional relationship that the plurality of sliding start positions are not located in the target sub-window of the at least two sub-windows, intercept the display content in the second window and the Display content in the first window that is not covered by the second window.
在本实施例中,在获得该第一位置关系的情况下,则可以基于该第一位置关系判断该多个滑动起始位置是否均位于该至少两个子窗口中的任意一个子窗口(目标子窗口)内,若该多个滑动起始位置未均位于该至少两个子窗口中的目标子窗口内,可以认为用户触发进行全截屏,则可以直接截取该第二窗口内的显示内容和第一窗口内未被第二窗口覆盖的显示内容。In this embodiment, in the case of obtaining the first positional relationship, it may be determined based on the first positional relationship whether the plurality of sliding start positions are all located in any one of the at least two sub-windows (the target sub-window). window), if the plurality of sliding starting positions are not all located in the target sub-windows of the at least two sub-windows, it can be considered that the user triggers a full screen capture, and the displayed content in the second window and the first one can be directly intercepted. Display content within the window that is not covered by the second window.
基于上述方式,在多指滑动操作进行截屏的过程中,即使在第一窗口(至少两个子窗口)上还叠加显示有第二窗口,即在分屏视图上层还有悬浮窗/悬浮气泡等非全屏浮窗,仍然以至少两个子窗口(即仍然以下层分屏区域)作为判断标准。即,多指滑动操作的多个滑动起始位置均落在某个分屏区域内,则截取对象与分屏窗口相关,多指滑动操作的多个滑动起始位置未均落在某个分屏区域内,则截取对象与全屏窗口相关。Based on the above method, during the multi-finger swipe operation to capture the screen, even if the second window is superimposed on the first window (at least two sub-windows), that is, there are floating windows/floating bubbles on the upper layer of the split-screen view. For full-screen floating windows, at least two sub-windows (that is, still the sub-screen area of the lower layer) are still used as the criterion for judging. That is, if the multiple start positions of the multi-finger swipe operation all fall within a certain split-screen area, the intercepted object is related to the split-screen window, and the multiple start positions of the multi-finger swipe operation do not all fall within a certain split-screen area. In the screen area, the intercepted object is related to the full screen window.
其中,在基于第一位置关系确定该多个滑动起始位置均位于至少两个子窗口中的目标子窗口内的情况下,则可以将与目标子窗口(分屏)相关的内容作为截取对象,即截取第二窗口位于目标子窗口内的显示内容和目标子窗口内未被第二窗口覆盖的显示内容。在基于第一位置关系确定该多个滑动起始位置未位于目标子窗口内的情况下,则可以将与第一窗口(全屏)相关的内容作为截取对象,即截取第二窗口的显示内容和第一窗口中未被第二窗口覆盖的显示内容。Wherein, when it is determined based on the first positional relationship that the plurality of sliding start positions are all located in the target sub-window of the at least two sub-windows, the content related to the target sub-window (split screen) can be used as the interception object, That is, the display content of the second window located in the target sub-window and the display content of the target sub-window not covered by the second window are intercepted. If it is determined based on the first positional relationship that the plurality of sliding start positions are not located in the target sub-window, then the content related to the first window (full screen) can be used as the interception object, that is, the display content and the display content of the second window can be intercepted. Display content in the first window that is not covered by the second window.
在一些实施方式中,在第一窗口上未叠加显示有第二窗口的情况下,则可以检测到多指滑动操作对应的多个滑动起始位置是否均位于目标子窗口内,若多个滑动起始位置均位于目标子窗口内,则可以截取该目标子窗口内的显示内容,若多个滑动起始位置未均位于目标子窗口内,则可以截取该第一窗口内的显示内容。In some implementations, when the second window is not superimposed on the first window, it can be detected whether the multiple sliding start positions corresponding to the multi-finger sliding operation are all located in the target sub-window, if multiple sliding If the starting positions are all located in the target sub-window, the display content in the target sub-window can be intercepted, and if the multiple sliding start positions are not all located in the target sub-window, then the display content in the first window can be intercepted.
请参阅图15,图15示出了本申请实施例提供的电子设备的第四种界面示意图。如图15所示,该电子设备显示目标界面,该目标界面包括第一窗口10,其中,该第一窗口10包括第一子窗口11和第二子窗口12。Please refer to FIG. 15 , which shows a schematic diagram of a fourth interface of an electronic device provided by an embodiment of the present application. As shown in FIG. 15 , the electronic device displays a target interface, and the target interface includes a first window 10 , wherein the first window 10 includes a first sub-window 11 and a
请参阅图16,图16示出了本申请实施例提供的电子设备的第三种交互示意图。如图16所示,该电子设备显示目标界面,该目标界面包括第一窗口10,其中,该第一窗口包括第一子窗口11和第二子窗口12。当多个滑动起始位置均位于第一子窗口11内时,则截取该第一子窗口11内的显示内容。Please refer to FIG. 16 . FIG. 16 shows a third schematic diagram of interaction of the electronic device provided by the embodiment of the present application. As shown in FIG. 16 , the electronic device displays a target interface, and the target interface includes a first window 10 , wherein the first window includes a first sub-window 11 and a
请参阅图17,图17示出了本申请实施例提供的电子设备第五种界面示意图。如图17所示,在通过图16所示的方式截取该第一子窗口11内的显示内容的情况下,则可以获得第三截图50,其中,该第三截图50可以悬浮显示于第一子窗口11上。Please refer to FIG. 17 , which shows a schematic diagram of a fifth interface of an electronic device provided by an embodiment of the present application. As shown in FIG. 17 , when the display content in the first sub-window 11 is captured by the method shown in FIG. on
请参阅图18,图18示出了本申请实施例提供的电子设备的第四种交互示意图。如图18所示,该电子设备显示目标界面,该目标界面包括第一窗口10,其中,该第一窗口包括第一子窗口11和第二子窗口12。当多个滑动起始位置同时位于第一子窗口11和第二子窗口12内时,则第一窗口10的显示内容。Please refer to FIG. 18 . FIG. 18 shows a fourth interaction schematic diagram of an electronic device provided by an embodiment of the present application. As shown in FIG. 18 , the electronic device displays a target interface, and the target interface includes a first window 10 , wherein the first window includes a first sub-window 11 and a
请参阅图19,图19示出了本申请实施例提供的电子设备第六种界面示意图。如图19所示,在通过图18所示的方式截取该第一窗口10的显示内容的情况下,则可以获得第四截图60,其中,该第一截图60可以悬浮显示于第一子窗口11上。Please refer to FIG. 19 , which shows a schematic diagram of a sixth interface of an electronic device provided by an embodiment of the present application. As shown in FIG. 19 , in the case of capturing the display content of the first window 10 in the manner shown in FIG. 18 , a
本申请一实施例提供的截屏方法,相较于图1所示的截屏方法,本实施例还在基于第一位置关系确定多个滑动起始位置均位于至少两个子窗口中的目标子窗口内时,基于第二位置关系截取第二窗口内的显示内容和目标子窗口内的显示内容,在基于第一位置关系确定多个滑动起始位置未均位于至少两个子窗口中的目标子窗口内时,则截取第二窗口内的显示内容和第一窗口内未被第二窗口覆盖的显示内容,从而根据多个滑动起始位置和子窗口的位置关系,确定区域截屏或者全截屏,以提升截屏的多样性和快捷性。In the screenshot method provided by an embodiment of the present application, compared with the screenshot method shown in FIG. 1 , this embodiment also determines that a plurality of sliding start positions are all located in target sub-windows of at least two sub-windows based on the first positional relationship. , intercept the display content in the second window and the display content in the target sub-window based on the second positional relationship, and determine that multiple sliding start positions are not located in the target sub-window of at least two sub-windows based on the first positional relationship , then intercept the display content in the second window and the display content in the first window that is not covered by the second window, so as to determine the area screenshot or full screen screenshot according to the positional relationship between multiple sliding starting positions and sub-windows, so as to improve the screen capture. variety and speed.
请参阅图20,图20示出了本申请一实施例提供的截屏方法的流程示意图。该方法应用于上述电子设备,下面将针对图20所示的流程进行详细的阐述,所示截屏方法具体可以包括以下步骤:Referring to FIG. 20 , FIG. 20 shows a schematic flowchart of a screen capture method provided by an embodiment of the present application. This method is applied to the above-mentioned electronic equipment, and the following will describe the process shown in Figure 20 in detail, and the screenshot method shown may specifically include the following steps:
步骤S310:显示目标界面,其中,所述目标界面包括第一窗口和叠加显示于所述第一窗口上的第二窗口,所述第一窗口划分为至少两个子窗口。Step S310: Displaying a target interface, wherein the target interface includes a first window and a second window superimposed on the first window, and the first window is divided into at least two sub-windows.
步骤S320:响应作用于所述目标界面的多指滑动操作,获取所述多指滑动操作对应的多个滑动起始位置。Step S320: In response to the multi-finger sliding operation acting on the target interface, acquire multiple sliding start positions corresponding to the multi-finger sliding operation.
步骤S330:确定所述多个滑动起始位置与所述至少两个子窗口的位置关系作为第一位置关系,并确定所述第二窗口与所述至少两个子窗口的位置关系作为第二位置关系。Step S330: Determine the positional relationship between the plurality of sliding start positions and the at least two sub-windows as a first positional relationship, and determine the positional relationship between the second window and the at least two sub-windows as a second positional relationship .
其中,步骤S310-步骤S330的具体描述请参阅步骤S110-步骤S130,在此不再赘述。Wherein, for the specific description of step S310-step S330, please refer to step S110-step S130, which will not be repeated here.
步骤S340:若基于所述第一位置关系确定所述多个滑动起始位置均位于所述至少两个子窗口中的目标子窗口内,则基于所述第二位置关系,截取所述第二窗口内的显示内容和所述目标子窗口内的显示内容,其中,所述目标子窗口为所述至少两个子窗口中的任意一个子窗口。Step S340: If it is determined based on the first positional relationship that the plurality of sliding start positions are all within the target sub-window of the at least two sub-windows, then intercept the second window based on the second positional relationship The display content in the target sub-window and the display content in the target sub-window, wherein the target sub-window is any one of the at least two sub-windows.
步骤S350:若基于所述第一位置关系确定所述多个滑动起始位置未均位于所述至少两个子窗口中的目标子窗口内,则截取所述第二窗口内的显示内容和所述第一窗口内未被所述第二窗口覆盖的显示内容。Step S350: If it is determined based on the first positional relationship that the plurality of sliding start positions are not located in the target sub-window of the at least two sub-windows, intercept the display content in the second window and the Display content in the first window that is not covered by the second window.
其中,步骤S340-步骤S350的具体描述请参阅步骤S240-步骤S250,在此不再赘述。Wherein, for the specific description of step S340-step S350, please refer to step S240-step S250, which will not be repeated here.
步骤S360:响应于截图编辑指令,显示待编辑截图并在所述待编辑截图上显示裁剪框。Step S360: In response to the screenshot editing instruction, display the screenshot to be edited and display a cropping frame on the screenshot to be edited.
在本实施例中,电子设备可以包括待编辑截图,其中,该待编辑截图可以是通过截取第二窗口内的显示内容和第一窗口内未被第二窗口覆盖的显示内容获得的,也可以是之前获得并存储于电子设备的本地的,还可以是通过网络从服务器获得的,在此不做限定。In this embodiment, the electronic device may include a screenshot to be edited, where the screenshot to be edited may be obtained by intercepting the display content in the second window and the display content in the first window that is not covered by the second window, or It is previously obtained and stored locally on the electronic device, or obtained from a server through a network, which is not limited here.
于本实施例中,电子设备可以响应于截屏编辑指令,显示待编辑截屏并在待编辑截屏上显示裁剪框,其中,该裁剪框用于裁剪该待编辑截图。在一些实施方式中,电子设备在获得待编辑截图的情况下,可以检测是否接收到截图编辑指令,在确定接收到截图编辑指令的情况下,则可以响应于该截图编辑指令,进入截屏编辑页,并在截屏编辑页显示待编辑截图并在待编辑截图上显示裁剪框。In this embodiment, the electronic device may respond to the screenshot editing instruction, display the screenshot to be edited and display a cropping box on the screenshot to be edited, wherein the cropping box is used to crop the screenshot to be edited. In some implementations, when the electronic device obtains a screenshot to be edited, it can detect whether a screenshot editing instruction is received, and if it is determined that the screenshot editing instruction is received, it can respond to the screenshot editing instruction and enter the screenshot editing page , and display the screenshot to be edited on the screenshot editing page and display the cropping frame on the screenshot to be edited.
请参阅图21,图21示出了本申请实施例提供的电子设备的第七种界面示意图。如图21所示,电子设备可以显示待编辑截图60,并在待编辑截图上显示裁剪框70,其中,待编辑截图60上包括目标分割线61。Please refer to FIG. 21 , which shows a schematic diagram of a seventh interface of an electronic device provided by an embodiment of the present application. As shown in FIG. 21 , the electronic device may display a
步骤S370:响应作用于所述裁剪框上的拖动操作或者作用于所述待编辑截图上的拖动操作,改变所述裁剪框在所述待编辑截图上的显示位置。Step S370: Changing the display position of the cropping frame on the screenshot to be edited in response to a drag operation on the cropping frame or a dragging operation on the screenshot to be edited.
在一些实施方式中,在显示待编辑截图和裁剪框的过程中,可以对作用于该待编辑截图和裁剪框上的操作进行检测。作为一种方式,若检测到作用于裁剪框上的拖动操作,则可以基于作用于该裁剪框上的拖动操作,改变裁剪框在待编辑截图上的显示位置。作为又一种方式,若检测到作用于待编辑截图上的拖动操作,则可以基于作用于该待编辑截图上的拖动操作,改变裁剪框在待编辑截图上的显示位置。In some implementation manners, during the process of displaying the screenshot to be edited and the cropping frame, operations acting on the screenshot to be edited and the cropping frame may be detected. As a manner, if a drag operation acting on the cropping frame is detected, the display position of the cropping frame on the screenshot to be edited may be changed based on the dragging operation acting on the cropping frame. As yet another manner, if a drag operation acting on the screenshot to be edited is detected, the display position of the cropping frame on the screenshot to be edited may be changed based on the drag operation acting on the screenshot to be edited.
其中,改变裁剪框在待编辑截图上的显示位置可以包括:裁剪框的显示位置逐渐靠近待编辑截图的中间位置、裁剪框的显示位置逐渐靠近待编辑截图的边缘位置等,在此不做限定。Wherein, changing the display position of the cropping frame on the screenshot to be edited may include: the display position of the cropping frame is gradually approaching the middle position of the screenshot to be edited, the display position of the cropping frame is gradually approaching the edge position of the screenshot to be edited, etc., which is not limited here .
在一些实施方式中,改变裁剪框在待编辑截图上的显示位置可以包括:改变待编辑截图的显示位置且保持裁剪框的显示位置不变;或者,改变裁剪框的显示位置且保持待编辑截图的显示位置不变。In some implementations, changing the display position of the cropping frame on the screenshot to be edited may include: changing the display position of the screenshot to be edited while keeping the display position of the cropping frame unchanged; or changing the display position of the cropping frame and keeping the screenshot to be edited The display position of is unchanged.
步骤S380:当所述裁剪框在所述待编辑截图上的显示位置移动至与目标分割线之间的距离小于距离阈值的情况下,控制所述裁剪框自动移动至与所述目标分割线重叠的位置。Step S380: Control the cropping frame to automatically move to overlap with the target dividing line when the display position of the cropping frame on the screenshot to be edited is moved to a distance less than a distance threshold from the target dividing line s position.
在本实施例中,待编辑截图为分屏界面的截图,即,待编辑截图包括至少两个子窗口的显示内容的截图,该至少两个子窗口中的每两个相邻子窗口通过目标分割线分隔。In this embodiment, the screenshot to be edited is a screenshot of the split-screen interface, that is, the screenshot to be edited includes screenshots of display content of at least two sub-windows, and every two adjacent sub-windows in the at least two sub-windows pass through the target dividing line separated.
在一些实施方式中,电子设备可以预先设置并存储有距离阈值,该距离阈值用于作为该裁剪框与目标分割线之间的距离的判断依据。因此,在本实施例中,在改变裁剪框在待编辑截图上的显示位置的过程中,可以获取该裁剪框与该目标分割线之间的距离,并将该距离与距离阈值进行比较,以判断该距离是否小于距离阈值,其中,在确定该距离小于距离阈值的情况下,表征裁剪框在待编辑截图上的显示位置将要移动至靠近目标分割线,即用户期望将裁剪框移动至目标分割线对待编辑截图进行裁剪,则可以控制裁剪框自动移动至与目标分割线重叠的位置,即裁剪框可以自动吸附至目标分割线上,以提升裁剪的准确性和便利性。In some implementations, the electronic device may preset and store a distance threshold, which is used as a basis for judging the distance between the cropping frame and the target dividing line. Therefore, in this embodiment, in the process of changing the display position of the cropping frame on the screenshot to be edited, the distance between the cropping frame and the target dividing line can be obtained, and the distance can be compared with the distance threshold to Judging whether the distance is less than the distance threshold, wherein, in the case of determining that the distance is less than the distance threshold, it indicates that the display position of the cropping frame on the screenshot to be edited will be moved close to the target segmentation line, that is, the user expects to move the cropping frame to the target segmentation If you want to crop the screenshot to be edited, you can control the cropping frame to automatically move to the position where it overlaps with the target dividing line, that is, the cropping frame can automatically snap to the target dividing line to improve the accuracy and convenience of cropping.
请参阅图22,图22示出了本申请实施例提供的电子设备的第五种交互示意图。如图22所示,用户可以拖动裁剪框70在待编辑截图60上移动,在裁剪框70的显示位置与待编辑截图60上的目标分割线61的显示位置的距离小于距离阈值的情况下,则该裁剪框70自动吸附到目标分割线61上。Please refer to FIG. 22 . FIG. 22 shows a fifth interaction schematic diagram of the electronic device provided by the embodiment of the present application. As shown in FIG. 22 , the user can drag the cropping
步骤S390:在确定所述裁剪框与所述目标分割线重叠的情况下,输出提示信息,其中,所述提示信息用于提示进行裁剪。Step S390: When it is determined that the cropping frame overlaps with the target dividing line, output prompt information, wherein the prompt information is used to prompt cropping.
在一些实施方式中,在确定该裁剪框与目标分割线重叠的情况下,则可以输出用于提示进行裁剪的提示信息。其中,该提示信息可以包括文本提示信息、振动提示信息、高亮提示信息、语音提示信息等,在此不做限定。In some implementation manners, if it is determined that the cropping frame overlaps with the target dividing line, prompt information for prompting cropping may be output. Wherein, the prompt information may include text prompt information, vibration prompt information, highlight prompt information, voice prompt information, etc., which is not limited here.
本申请一实施例提供的截屏方法,相较于图1所示的截屏方法,本实施例还在基于第一位置关系确定多个滑动起始位置均位于至少两个子窗口中的目标子窗口内时,基于第二位置关系截取第二窗口内的显示内容和目标子窗口内的显示内容,在基于第一位置关系确定多个滑动起始位置未均位于至少两个子窗口中的目标子窗口内时,则截取第二窗口内的显示内容和第一窗口内未被第二窗口覆盖的显示内容,响应于截屏编辑指令,显示待编辑截图并在待编辑截图上显示裁剪框,响应作用于裁剪框上的拖动操作或者作用于待编辑截图上的拖动操作,改变裁剪框在待编辑截图上的显示位置,当裁剪框在待编辑截图上额显示位置移动至与目标分割线之间的距离小于距离阈值的情况下,控制裁剪框自动移动至与目标分割线重叠的位置,在确定裁剪框与目标分割线重叠的情况下,输出用于提示进行裁剪的提示信息,从而针对截图进行裁剪时,在裁剪框快要靠近分屏分割线时,自动吸附到分割线上并输出提示,可以提高裁剪效率和操作感受。In the screenshot method provided by an embodiment of the present application, compared with the screenshot method shown in FIG. 1 , this embodiment also determines that a plurality of sliding start positions are all located in target sub-windows of at least two sub-windows based on the first positional relationship. , intercept the display content in the second window and the display content in the target sub-window based on the second positional relationship, and determine that multiple sliding start positions are not located in the target sub-window of at least two sub-windows based on the first positional relationship , intercept the display content in the second window and the display content in the first window that is not covered by the second window, respond to the screenshot editing command, display the screenshot to be edited and display the cropping box on the screenshot to be edited, and respond to the cropping The drag operation on the frame or the drag operation on the screenshot to be edited changes the display position of the cropping frame on the screenshot to be edited. When the display position of the cropping frame on the screenshot to be edited moves to the distance between When the distance is less than the distance threshold, control the cropping frame to automatically move to the position where it overlaps with the target dividing line. When it is determined that the cropping frame overlaps with the target dividing line, output a prompt message for prompting to crop, so as to crop the screenshot , when the cropping frame is close to the dividing line of the split screen, it will automatically snap to the dividing line and output a prompt, which can improve the cutting efficiency and operation experience.
请参阅图23,图23示出了本申请一实施例提供的截屏方法的流程示意图。该方法应用于上述电子设备,下面将针对图23所示的流程进行详细的阐述,所述截屏方法具体可以包括以下步骤:Please refer to FIG. 23 . FIG. 23 shows a schematic flowchart of a screen capture method provided by an embodiment of the present application. This method is applied to the above-mentioned electronic equipment, and the following will describe the process shown in Figure 23 in detail, and the screen capture method may specifically include the following steps:
步骤S410:显示目标界面,其中,所述目标界面包括第一窗口和叠加显示于所述第一窗口上的第二窗口,所述第一窗口划分为至少两个子窗口。Step S410: Displaying a target interface, wherein the target interface includes a first window and a second window superimposed on the first window, and the first window is divided into at least two sub-windows.
步骤S420:响应作用于所述目标界面的多指滑动操作,获取所述多指滑动操作对应的多个滑动起始位置。Step S420: In response to the multi-finger sliding operation acting on the target interface, acquire multiple sliding start positions corresponding to the multi-finger sliding operation.
步骤S430:确定所述多个滑动起始位置与所述至少两个子窗口的位置关系作为第一位置关系,并确定所述第二窗口与所述至少两个子窗口的位置关系作为第二位置关系。Step S430: Determine the positional relationship between the plurality of sliding start positions and the at least two sub-windows as a first positional relationship, and determine the positional relationship between the second window and the at least two sub-windows as a second positional relationship .
步骤S440:基于所述第一位置关系和所述第二位置关系,截取所述目标界面的显示内容。Step S440: Based on the first positional relationship and the second positional relationship, intercept the displayed content of the target interface.
其中,步骤S410-步骤S440的具体描述请参阅步骤S110-步骤S140,在此不再赘述。Wherein, for the specific description of step S410-step S440, please refer to step S110-step S140, which will not be repeated here.
步骤S450:在所述目标界面悬浮显示截取获得的截图。Step S450: displaying the captured screenshot in a floating manner on the target interface.
在本实施例中,在基于第一位置关系和第二位置关系,截图目标界面的显示内容获得截图的情况下,则可以在该目标界面悬浮显示截取获得的截图,以供用户对该截取获得的截图进行下一步处理,例如,对该截取获得的截图进行分享、进行长截屏等,在此不做限定。In this embodiment, based on the first positional relationship and the second positional relationship, in the case of obtaining a screenshot of the display content of the screenshot target interface, the intercepted screenshot can be displayed in a floating manner on the target interface for the user to obtain the captured screenshot. The screenshot is processed in the next step, for example, sharing the screenshot obtained by the interception, taking a long screenshot, etc., which is not limited here.
本申请一实施例提供的截屏方法,相较于图1所示的截屏方法,本实施例还在截取显示界面的显示内容获得截图后,在目标界面悬浮显示截图获得的截图,可以供用户及时对截图进行处理,提升用户的截图体验。Compared with the screen capture method shown in Figure 1, the screen capture method provided by an embodiment of the present application, in this embodiment, after capturing the display content of the display interface to obtain a screenshot, the screenshot obtained by floating and displaying the screenshot on the target interface can be provided to the user in real time Process screenshots to improve user screenshot experience.
请参阅图24,图24示出了本申请一实施例提供的截屏方法的流程示意图。该方法应用于上述电子设备,下面将针对图24所示的流程进行详细的阐述,所述截屏方法具体可以包括以下步骤:Please refer to FIG. 24 . FIG. 24 shows a schematic flowchart of a screen capture method provided by an embodiment of the present application. This method is applied to the above-mentioned electronic equipment, and the following will describe the process shown in Figure 24 in detail, and the screen capture method may specifically include the following steps:
步骤S510:显示目标界面,其中,所述目标界面包括第一窗口和叠加显示于所述第一窗口上的第二窗口,所述第一窗口划分为至少两个子窗口。Step S510: Displaying a target interface, wherein the target interface includes a first window and a second window superimposed on the first window, and the first window is divided into at least two sub-windows.
其中,步骤S510的具体描述请参阅步骤S110,在此不再赘述。Wherein, for the specific description of step S510, please refer to step S110, which will not be repeated here.
步骤S520:响应作用于所述目标界面的多指滑动操作,获取所述目标界面对应的显示面积。Step S520: In response to the multi-finger sliding operation acting on the target interface, acquire the display area corresponding to the target interface.
在本实施例中,可以获取该目标界面对应的显示面积。作为一种方式,假设该目标界面显示于电子设备的可显示区域,则可以获取该可显示区域的显示面积,作为该目标界面对应的显示面积。作为又一种方式,在建立有坐标系的情况下,则可以获取该目标界面在该坐标系下对应的坐标区域,基于该目标界面在该坐标系下的对应的坐标区域,确定该目标界面的显示面积。In this embodiment, the display area corresponding to the target interface may be acquired. As a manner, assuming that the target interface is displayed in the displayable area of the electronic device, the display area of the displayable area may be acquired as the display area corresponding to the target interface. As yet another way, when a coordinate system is established, the coordinate area corresponding to the target interface in the coordinate system can be obtained, and the target interface can be determined based on the corresponding coordinate area of the target interface in the coordinate system display area.
步骤S530:在所述显示面积大于面积阈值的情况下,获取所述多指滑动操作对应的多个滑动起始位置。Step S530: if the display area is larger than the area threshold, acquire multiple sliding start positions corresponding to the multi-finger sliding operation.
在一些实施方式中,电子设备可以预先设置并存储有面积阈值,该面积阈值用于作为该目标界面对应的显示面积的判断依据。因此,在本实施例中,在获得该显示面积的情况下,则可以将该显示面积与面积阈值进行比较,以判断该显示面积是否大于该面积阈值。其中,在确定该显示面积大于面积阈值的情况下,则可以认为该显示界面的显示面积符合分屏截屏的要求,则可以继续执行后续的步骤。In some implementations, the electronic device may preset and store an area threshold, and the area threshold is used as a basis for judging the display area corresponding to the target interface. Therefore, in this embodiment, when the display area is obtained, the display area may be compared with the area threshold to determine whether the display area is greater than the area threshold. Wherein, if it is determined that the display area is greater than the area threshold, it can be considered that the display area of the display interface meets the requirements for split-screen screenshots, and the subsequent steps can be continued.
步骤S540:确定所述多个滑动起始位置与所述至少两个子窗口的位置关系作为第一位置关系,并确定所述第二窗口与所述至少两个子窗口的位置关系作为第二位置关系。Step S540: Determine the positional relationship between the plurality of sliding start positions and the at least two sub-windows as a first positional relationship, and determine the positional relationship between the second window and the at least two sub-windows as a second positional relationship .
步骤S550:基于所述第一位置关系和所述第二位置关系,截取所述目标界面的显示内容。Step S550: Based on the first positional relationship and the second positional relationship, intercept the displayed content of the target interface.
其中,步骤S540-步骤S550的具体描述请参阅步骤S130-步骤S140,在此不再赘述。Wherein, for the specific description of step S540-step S550, please refer to step S130-step S140, which will not be repeated here.
本申请一实施例提供的截屏方法,相较于图1所示的截屏方法,本实施例还在目标界面对应的显示面积大于面积阈值的情况下,支持多指截屏的功能,从而适配大屏的电子设备,提升截屏体验。Compared with the screen capture method shown in Figure 1, the screen capture method provided by an embodiment of the present application supports the function of multi-finger screen capture when the display area corresponding to the target interface is greater than the area threshold, thereby adapting to large screen electronic devices to enhance the screen capture experience.
请参阅图25,图25示出了可用于本申请实施例提供的截屏方法的框架示意图。作为一种示例,本实施例所应用的电子设备可以包括系统手势模块、系统UI框架模块、截屏模块以及系统显示服务模块,且系统手势模块、系统UI框架模块、截屏模块以及系统显示服务模块相互配合,提供各自的能力。其中,系统手势模块提供多指手势判断以及手指坐标点收集能力,系统UI框架模块提供分屏模式下左右窗口的区域大小等信息,截屏模块实现核心分屏截图业务逻辑,系统显示服务模块提供屏幕图像内容给截图模块。Please refer to FIG. 25 . FIG. 25 shows a schematic frame diagram that can be used in the screenshot method provided by the embodiment of the present application. As an example, the electronic device to which this embodiment is applied may include a system gesture module, a system UI framework module, a screenshot module, and a system display service module, and the system gesture module, the system UI framework module, a screenshot module, and the system display service module interact with each other Cooperate and provide their respective abilities. Among them, the system gesture module provides multi-finger gesture judgment and the ability to collect finger coordinate points, the system UI framework module provides information such as the area size of the left and right windows in split-screen mode, the screen capture module implements the core split-screen capture business logic, and the system display service module provides screen The image content is given to the screenshot module.
在实现时,用户多指触控屏幕并下滑一定距离,系统手势模块检测到该手势动作后,判断其下滑方向以及下滑距离是否满足多指截屏触发条件,若满足,随即调用截屏接口拉起截屏应用进程,并将多个手指落在屏幕上时的多个手指触控点坐标通过截屏接口传给截屏应用。截屏应用启动后,首先检测当前需要截屏的截屏的屏幕,是否符合分屏截图条件,例如,通过读取系统feature来判断当前是否应用在平板设备;通过读取系统属性值来判断当前是否应用在折叠屏设备的大屏展开状态;通过调用系统分屏接口来判断当前是否分屏显示。其中,在确定符合分屏截图的条件的情况下,则调用系统UI框架提供的接口去读取分屏界面(至少两个子窗口)的坐标信息,再将从手势模块获取的多个滑动起始位置的坐标信息与分屏界面的坐标信息进行对比。若多个滑动起始位置的坐标信息均在分屏界面的其中一个界面的坐标范围内,则触发分屏截图逻辑,否则,则触发全屏截图逻辑。截屏应用判断用户为分屏截屏操作,则将获取的分屏界面的坐标信息传递给显示服务截图接口,获取对应区域的屏幕图像内容,截屏应用再将该图像内容以截屏的形式显示给用户预览。During implementation, the user touches the screen with multiple fingers and slides down for a certain distance. After detecting the gesture, the system gesture module judges whether the direction and distance of the slide meet the multi-finger screenshot triggering conditions. If so, then call the screen capture interface to start the screen capture The application process, and the coordinates of the touch points of multiple fingers when multiple fingers land on the screen are transmitted to the screen capture application through the screen capture interface. After the screen capture application is started, it first checks whether the screen that needs to be captured currently meets the conditions for split screen capture, for example, by reading the system feature to determine whether it is currently applied to a tablet device; by reading the system property value to determine whether it is currently applied to a tablet device The unfolded state of the large screen of the folding screen device; by calling the system split screen interface to determine whether the current split screen is displayed. Among them, when it is determined that the conditions for split-screen screenshots are met, the interface provided by the system UI framework is called to read the coordinate information of the split-screen interface (at least two sub-windows), and then multiple sliding start points obtained from the gesture module The coordinate information of the location is compared with the coordinate information of the split-screen interface. If the coordinate information of multiple sliding start positions is within the coordinate range of one of the split-screen interfaces, the split-screen screenshot logic is triggered; otherwise, the full-screen screenshot logic is triggered. The screenshot application judges that the user is taking a split-screen screenshot operation, and then passes the obtained coordinate information of the split-screen interface to the screenshot interface of the display service to obtain the screen image content of the corresponding area, and the screen capture application then displays the image content in the form of a screenshot to the user for preview .
可以理解的是,在本示例中,对于用户的多指截屏操作是否时分屏手势,在使用多指手势判断时,以用户的多个手指的初始触控点坐标进行判断。后续的用户手指在屏幕上的位移,不影响该判断,即用户的多个手指的初始落点如果在左半屏,下滑触发截屏功能的时候某个手指已经移动到右半屏时,也认为该用户触发了左半屏分屏截图功能。另外,在分屏页面的上方存在非全屏浮窗、气泡、提示框等遮挡时,不影响分屏截屏的逻辑判断,若用户的操作为分屏手势,截取的为当前分屏上的屏幕内容,即所见即所得。It can be understood that, in this example, as to whether the user's multi-finger screen capture operation is a time-sharing gesture, the initial touch point coordinates of the user's multiple fingers are used to determine when the multi-finger gesture is used. Subsequent displacement of the user's fingers on the screen does not affect the judgment, that is, if the initial landing points of the user's multiple fingers are on the left half of the screen, when a finger has moved to the right half of the screen when the screen capture function is triggered by sliding down, it is also considered The user triggers the left half-screen split-screen screenshot function. In addition, when there are non-full-screen floating windows, bubbles, prompt boxes, etc. on the top of the split-screen page, the logical judgment of the split-screen screenshot will not be affected. If the user's operation is a split-screen gesture, the screen content on the current split-screen will be captured , that is, what you see is what you get.
请参阅图26,图26示出了本申请一实施例提供的截屏装置的模块框图。该截屏装置200应用于上述电子设备,下面将针对图26所示的框图进行阐述,所述截屏装置200包括:目标界面显示模块210、滑动起始位置获取模块220、位置关系确定模块230以及显示内容截取模块240,其中:Please refer to FIG. 26 , which shows a block diagram of a screen capture device provided by an embodiment of the present application. The screen capture device 200 is applied to the above-mentioned electronic equipment. The following will describe the block diagram shown in FIG. Content interception module 240, wherein:
目标界面显示模块210,用于显示目标界面,其中,所述目标界面包括第一窗口和叠加显示于所述第一窗口上的第二窗口,所述第一窗口划分为至少两个子窗口。The target interface display module 210 is configured to display a target interface, wherein the target interface includes a first window and a second window superimposed on the first window, and the first window is divided into at least two sub-windows.
滑动起始位置获取模块220,用于响应作用于所述目标界面的多指滑动操作,获取所述多指滑动操作对应的多个滑动起始位置。The slide start position acquisition module 220 is configured to acquire multiple slide start positions corresponding to the multi-finger slide operation in response to the multi-finger slide operation.
进一步地,所述滑动起始位置获取模块220包括:显示面积获取子模块和滑动起始位置获取子模块,其中:Further, the sliding initial position acquisition module 220 includes: a display area acquisition submodule and a sliding initial position acquisition submodule, wherein:
显示面积获取子模块,用于响应作用于所述目标界面的多指滑动操作,获取所述目标界面对应的显示面积。The display area acquiring submodule is configured to acquire the display area corresponding to the target interface in response to the multi-finger sliding operation acting on the target interface.
滑动起始位置获取子模块,用于在所述显示面积大于面积阈值的情况下,获取所述多指滑动操作对应的多个滑动起始位置。The sliding start position obtaining submodule is configured to obtain multiple sliding start positions corresponding to the multi-finger sliding operation when the display area is greater than an area threshold.
位置关系确定模块230,用于确定所述多个滑动起始位置与所述至少两个子窗口的位置关系作为第一位置关系,并确定所述第二窗口与所述至少两个子窗口的位置关系作为第二位置关系。A positional relationship determining module 230, configured to determine the positional relationship between the plurality of sliding start positions and the at least two sub-windows as a first positional relationship, and determine the positional relationship between the second window and the at least two sub-windows as a second positional relationship.
显示内容截取模块240,用于基于所述第一位置关系和所述第二位置关系,截取所述目标界面的显示内容。The display content interception module 240 is configured to intercept the display content of the target interface based on the first position relationship and the second position relationship.
进一步地,所述显示内容截取模块240包括:第一显示内容截取子模块和第二显示内容截取子模块,其中:Further, the display content interception module 240 includes: a first display content interception submodule and a second display content interception submodule, wherein:
第一显示内容截取子模块,用于若基于所述第一位置关系确定所述多个滑动起始位置均位于所述至少两个子窗口中的目标子窗口内,则基于所述第二位置关系,截取所述第二窗口内的显示内容和所述目标子窗口内的显示内容,其中,所述目标子窗口为所述至少两个子窗口中的任意一个子窗口。The first display content intercepting sub-module is configured to, if it is determined based on the first positional relationship that the plurality of sliding start positions are all located in the target sub-window of the at least two sub-windows, based on the second positional relationship , intercepting the display content in the second window and the display content in the target sub-window, where the target sub-window is any one of the at least two sub-windows.
进一步地,所述第一显示内容截取子模块包括:第一显示内容截取单元和第二显示内容截取单元,其中:Further, the first display content interception submodule includes: a first display content interception unit and a second display content interception unit, wherein:
第一显示内容截取单元,用于若基于所述第二位置关系确定所述第二窗口与所述目标子窗口存在重叠区域,则基于所述重叠区域,截取所述第二窗口内的显示内容和所述目标子窗口内的显示内容。The first display content intercepting unit is configured to intercept the display content in the second window based on the overlapping area if it is determined based on the second positional relationship that there is an overlapping area between the second window and the target sub-window. and the display content in the target sub-window.
进一步地,所述第一显示内容截取单元包括:比例获取子单元和显示内容截取子单元,其中:Further, the first display content interception unit includes: a ratio acquisition subunit and a display content interception subunit, wherein:
比例获取子单元,用于若基于所述第二位置关系确定所述第二窗口与所述目标子窗口存在重叠区域,则获取所述第二窗口位于所述目标子窗口内的区域与所述第二窗口的区域之间的比例。a ratio acquisition subunit, configured to acquire the area where the second window is located in the target sub-window and the area where the target sub-window overlaps the The ratio between the regions of the second window.
显示内容截取子单元,用于基于所述比例,截取所述第二窗口内的显示内容和所述目标子窗口内的显示内容。The display content interception subunit is configured to intercept the display content in the second window and the display content in the target sub-window based on the ratio.
进一步地,所述显示内容截取子单元包括:第一显示内容截取子子模块、第二显示内容截取子子模块以及第三显示内容截取子子模块,其中:Further, the display content interception sub-unit includes: a first display content interception sub-submodule, a second display content interception sub-submodule and a third display content interception sub-submodule, wherein:
第一显示内容截取子子模块,用于若所述比例大于第一比例阈值,则截取所述第二窗口内的全部显示内容和所述目标子窗口内未被所述第二窗口覆盖的显示内容。The first display content interception sub-submodule is used to intercept all display content in the second window and the display in the target sub-window not covered by the second window if the ratio is greater than the first ratio threshold content.
进一步地,所述第一显示内容截取子子模块包括:缩小子子单元和显示内容截取子子单元,其中:Further, the first display content interception sub-submodule includes: a zoom-out sub-subunit and a display content interception sub-subunit, wherein:
缩小子子单元,用于若所述比例大于所述第一比例阈值,则将所述第二窗口按比例缩小至与所述重叠区域的大小一致。The shrinking sub-subunit is configured to scale down the second window to be consistent with the size of the overlapping area if the ratio is greater than the first ratio threshold.
显示内容截取子子单元,用于截取按比例缩小后的所述第二窗口内的全部显示内容和所述目标子窗口内未被所述第二窗口覆盖的显示内容。The display content interception sub-subunit is configured to intercept all display content in the second window that has been scaled down and display content in the target sub-window that is not covered by the second window.
第二显示内容截取子子模块,用于若所述比例大于第二比例阈值且小于或等于所述第一比例阈值,则截取所述第二窗口内覆盖所述目标子窗口的显示内容和所述目标子窗口内未被所述第二窗口覆盖的显示内容。The second display content interception sub-submodule is used to intercept the display content and the target sub-window covering the target sub-window in the second window if the ratio is greater than the second ratio threshold and less than or equal to the first ratio threshold Display content in the target sub-window that is not covered by the second window.
第三显示内容截取子子模块,用于若所述比例小于或等于所述第二比例阈值,则截取所述目标子窗口内的显示内容。The third display content intercepting sub-submodule is configured to intercept the display content in the target sub-window if the ratio is less than or equal to the second ratio threshold.
第二显示内容截取单元,用于若基于所述第二位置关系确定所述第二窗口与所述目标子窗口不存在重叠区域,则截取所述目标子窗口内的显示内容。The second display content intercepting unit is configured to intercept the display content in the target sub-window if it is determined based on the second positional relationship that there is no overlapping area between the second window and the target sub-window.
第二显示内容截取子模块,用于若基于所述第一位置关系确定所述多个滑动起始位置未均位于所述至少两个子窗口中的目标子窗口内,则截取所述第二窗口内的显示内容和所述第一窗口内未被所述第二窗口覆盖的显示内容。The second display content intercepting sub-module is configured to intercept the second window if it is determined based on the first positional relationship that the plurality of sliding start positions are not all located in the target sub-window of the at least two sub-windows The display content in the first window and the display content in the first window not covered by the second window.
进一步地,所述显示内容截取模块240还包括:裁剪框显示子模块、显示位置改变子模块以及移动控制子模块,其中:Further, the display content interception module 240 also includes: a cropping frame display submodule, a display position change submodule, and a movement control submodule, wherein:
裁剪框显示子模块,用于响应于截图编辑指令,显示待编辑截图并在所述待编辑截图上显示裁剪框。The cropping frame display submodule is configured to display a screenshot to be edited and display a cropping frame on the screenshot to be edited in response to the screenshot editing instruction.
显示位置改变子模块,用于响应作用于所述裁剪框上的拖动操作或者作用于所述待编辑截图上的拖动操作,改变所述裁剪框在所述待编辑截图上的显示位置。The display position changing submodule is configured to change the display position of the cropping frame on the screenshot to be edited in response to a drag operation on the cropping frame or a dragging operation on the screenshot to be edited.
移动控制子模块,用于当所述裁剪框在所述待编辑截图上的显示位置移动至与目标分割线之间的距离小于距离阈值的情况下,控制所述裁剪框自动移动至与所述目标分割线重叠的位置。A movement control submodule, configured to control the cropping frame to automatically move to the target dividing line when the display position of the cropping frame on the screenshot to be edited is less than a distance threshold. Where the target splitting lines overlap.
进一步地,所述显示内容截取模块240还包括:Further, the display content interception module 240 also includes:
提示信息输出子模块,用于在确定所述裁剪框与所述目标分割线重叠的情况下,输出提示信息,其中,所述提示信息用于提示进行裁剪。The prompt information output submodule is configured to output prompt information when it is determined that the cropping frame overlaps with the target dividing line, wherein the prompt information is used to prompt for cropping.
进一步地,所述截屏装置200还包括:Further, the screenshot device 200 also includes:
截图显示模块,用于在所述目标界面悬浮显示截取获得的截图。The screenshot display module is configured to hover and display the intercepted screenshot on the target interface.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述装置和模块的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and brevity of the description, the specific working process of the devices and modules described above can refer to the corresponding process in the foregoing method embodiments, which will not be repeated here.
在本申请所提供的几个实施例中,模块相互之间的耦合可以是电性,机械或其它形式的耦合。In several embodiments provided in the present application, the coupling between the modules may be electrical, mechanical or other forms of coupling.
另外,在本申请各个实施例中的各功能模块可以集成在一个处理模块中,也可以是各个模块单独物理存在,也可以两个或两个以上模块集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。In addition, each functional module in each embodiment of the present application may be integrated into one processing module, each module may exist separately physically, or two or more modules may be integrated into one module. The above-mentioned integrated modules can be implemented in the form of hardware or in the form of software function modules.
请参阅图27,其示出了本申请实施例提供的一种电子设备100的结构框图。该电子设备100可以是智能手机、平板电脑、电子书等能够运行应用程序的电子设备。本申请中的电子设备100可以包括一个或多个如下部件:处理器110、存储器120以及一个或多个应用程序,其中一个或多个应用程序可以被存储在存储器120中并被配置为由一个或多个处理器110执行,一个或多个程序配置用于执行如前述方法实施例所描述的方法。Please refer to FIG. 27 , which shows a structural block diagram of an
其中,处理器110可以包括一个或者多个处理核。处理器110利用各种接口和线路连接整个电子设备100内的各个部分,通过运行或执行存储在存储器120内的指令、程序、代码集或指令集,以及调用存储在存储器120内的数据,执行电子设备100的各种功能和处理数据。可选地,处理器110可以采用数字信号处理(Digital Signal Processing,DSP)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)、可编程逻辑阵列(ProgrammableLogic Array,PLA)中的至少一种硬件形式来实现。处理器110可集成中央处理器(CentralProcessing Unit,CPU)、图形处理器(Graphics Processing Unit,GPU)和调制解调器等中的一种或几种的组合。其中,CPU主要处理操作系统、用户界面和应用程序等;GPU用于负责待显示内容的渲染和绘制;调制解调器用于处理无线通信。可以理解的是,上述调制解调器也可以不集成到处理器110中,单独通过一块通信芯片进行实现。Wherein, the
存储器120可以包括随机存储器(Random Access Memory,RAM),也可以包括只读存储器(Read-Only Memory)。存储器120可用于存储指令、程序、代码、代码集或指令集。存储器120可包括存储程序区和存储数据区,其中,存储程序区可存储用于实现操作系统的指令、用于实现至少一个功能的指令(比如触控功能、声音播放功能、图像播放功能等)、用于实现下述各个方法实施例的指令等。存储数据区还可以存储电子设备100在使用中所创建的数据(比如电话本、音视频数据、聊天记录数据)等。The
请参阅图28,其示出了本申请实施例提供的一种计算机可读存储介质的结构框图。该计算机可读介质300中存储有程序代码,所述程序代码可被处理器调用执行上述方法实施例中所描述的方法。Please refer to FIG. 28 , which shows a structural block diagram of a computer-readable storage medium provided by an embodiment of the present application. Program codes are stored in the computer-readable medium 300, and the program codes can be invoked by a processor to execute the methods described in the foregoing method embodiments.
计算机可读存储介质300可以是诸如闪存、EEPROM(电可擦除可编程只读存储器)、EPROM、硬盘或者ROM之类的电子存储器。可选地,计算机可读存储介质300包括非易失性计算机可读介质(non-transitory computer-readable storage medium)。计算机可读存储介质300具有执行上述方法中的任何方法步骤的程序代码310的存储空间。这些程序代码可以从一个或者多个计算机程序产品中读出或者写入到这一个或者多个计算机程序产品中。程序代码310可以例如以适当形式进行压缩。The computer readable storage medium 300 may be an electronic memory such as flash memory, EEPROM (Electrically Erasable Programmable Read Only Memory), EPROM, hard disk, or ROM. Optionally, the computer-readable storage medium 300 includes a non-transitory computer-readable storage medium (non-transitory computer-readable storage medium). The computer-readable storage medium 300 has a storage space for
综上所述,本申请实施例提供的截屏方法、装置、电子设备以及存储介质,显示目标界面,其中,该目标界面包括第一窗口和叠加显示于第一窗口上的第二窗口,该第一窗口划分为至少两个子窗口,响应作用于目标界面的多指滑动操作,获取多指滑动操作对应的多个滑动起始位置,确定多个滑动起始位置与至少两个子窗口的位置关系作为第一位置关系,并确定第二窗口与至少两个子窗口的位置关系作为第二位置关系,基于第一位置关系和第二位置关系,截取目标界面的显示内容,从而通过基于多指滑动操作的多个滑动起始位置,确定截屏的对象进行截屏,可以无需进行繁琐的裁剪拖动,也无需担心悬浮窗覆盖,提升截屏的快捷性和准确性。To sum up, the screenshot method, device, electronic device, and storage medium provided by the embodiments of the present application display a target interface, wherein the target interface includes a first window and a second window superimposed on the first window, and the first window A window is divided into at least two sub-windows, in response to a multi-finger sliding operation acting on the target interface, multiple sliding starting positions corresponding to the multi-finger sliding operation are obtained, and the positional relationship between the multiple sliding starting positions and at least two sub-windows is determined as The first positional relationship, and determine the positional relationship between the second window and at least two sub-windows as the second positional relationship, based on the first positional relationship and the second positional relationship, intercept the display content of the target interface, so as to pass the multi-finger sliding operation based on With multiple sliding starting positions, you can determine the object to take a screenshot without cumbersome cropping and dragging, and without worrying about the overlay of the floating window, which improves the speed and accuracy of screenshots.
最后应说明的是:以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不驱使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围。Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, but not to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: it can still Modifications are made to the technical solutions described in the foregoing embodiments, or equivalent replacements are made to some of the technical features; and these modifications or replacements do not drive the essence of the corresponding technical solutions away from the spirit and scope of the technical solutions of the various embodiments of the present application.
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202210878190.1ACN115933954B (en) | 2022-07-25 | 2022-07-25 | Screen capture method, device, electronic device, and storage medium |
| PCT/CN2023/096051WO2024021813A1 (en) | 2022-07-25 | 2023-05-24 | Screenshot taking method and apparatus, electronic device and storage medium |
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202210878190.1ACN115933954B (en) | 2022-07-25 | 2022-07-25 | Screen capture method, device, electronic device, and storage medium |
| Publication Number | Publication Date |
|---|---|
| CN115933954Atrue CN115933954A (en) | 2023-04-07 |
| CN115933954B CN115933954B (en) | 2025-09-23 |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202210878190.1AActiveCN115933954B (en) | 2022-07-25 | 2022-07-25 | Screen capture method, device, electronic device, and storage medium |
| Country | Link |
|---|---|
| CN (1) | CN115933954B (en) |
| WO (1) | WO2024021813A1 (en) |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2024021813A1 (en)* | 2022-07-25 | 2024-02-01 | Oppo广东移动通信有限公司 | Screenshot taking method and apparatus, electronic device and storage medium |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN104301788A (en)* | 2014-09-26 | 2015-01-21 | 北京奇艺世纪科技有限公司 | Method and device for providing video interaction |
| CN110231905A (en)* | 2019-05-07 | 2019-09-13 | 华为技术有限公司 | A kind of screenshotss method and electronic equipment |
| CN110737386A (en)* | 2019-09-06 | 2020-01-31 | 华为技术有限公司 | A screen capture method and related equipment |
| CN111290675A (en)* | 2020-03-02 | 2020-06-16 | Oppo广东移动通信有限公司 | Screenshot picture sharing method, device, terminal and storage medium |
| CN113552986A (en)* | 2020-04-07 | 2021-10-26 | 华为技术有限公司 | Multi-window screen capturing method and device and terminal equipment |
| CN114779976A (en)* | 2022-04-24 | 2022-07-22 | Oppo广东移动通信有限公司 | Screen capture method and device, electronic equipment and computer readable medium |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN115933954B (en)* | 2022-07-25 | 2025-09-23 | Oppo广东移动通信有限公司 | Screen capture method, device, electronic device, and storage medium |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN104301788A (en)* | 2014-09-26 | 2015-01-21 | 北京奇艺世纪科技有限公司 | Method and device for providing video interaction |
| CN110231905A (en)* | 2019-05-07 | 2019-09-13 | 华为技术有限公司 | A kind of screenshotss method and electronic equipment |
| CN110737386A (en)* | 2019-09-06 | 2020-01-31 | 华为技术有限公司 | A screen capture method and related equipment |
| CN111290675A (en)* | 2020-03-02 | 2020-06-16 | Oppo广东移动通信有限公司 | Screenshot picture sharing method, device, terminal and storage medium |
| CN113552986A (en)* | 2020-04-07 | 2021-10-26 | 华为技术有限公司 | Multi-window screen capturing method and device and terminal equipment |
| CN114779976A (en)* | 2022-04-24 | 2022-07-22 | Oppo广东移动通信有限公司 | Screen capture method and device, electronic equipment and computer readable medium |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2024021813A1 (en)* | 2022-07-25 | 2024-02-01 | Oppo广东移动通信有限公司 | Screenshot taking method and apparatus, electronic device and storage medium |
| Publication number | Publication date |
|---|---|
| WO2024021813A1 (en) | 2024-02-01 |
| CN115933954B (en) | 2025-09-23 |
| Publication | Publication Date | Title |
|---|---|---|
| US11543928B2 (en) | Method for displaying input method interface of improved accuracy of input, device, and terminal | |
| US11347389B2 (en) | File processing method, terminal, and storage medium | |
| CN109766053B (en) | User interface display method, device, terminal and storage medium | |
| CN108089786B (en) | User interface display method, device, device and storage medium | |
| CN107704177B (en) | Interface display method and device and terminal | |
| CN109947508B (en) | Split screen display method and device, electronic equipment and computer readable storage medium | |
| US20150227166A1 (en) | User terminal device and displaying method thereof | |
| KR102304178B1 (en) | User terminal device and method for displaying thereof | |
| CN114779987B (en) | Method, device, terminal and storage medium for displaying content | |
| CN108540647A (en) | user interface display method, device, terminal and storage medium | |
| WO2023207145A1 (en) | Screenshot capturing method and apparatus, electronic device and computer readable medium | |
| WO2021254201A1 (en) | Page display method and apparatus, storage medium, and electronic device | |
| CN114666427A (en) | Image display method, electronic equipment and storage medium | |
| WO2022174684A1 (en) | Screen recording method and apparatus, electronic device, and storage medium | |
| WO2024139477A1 (en) | Interaction method and apparatus, electronic device, and storage medium | |
| CN115933954B (en) | Screen capture method, device, electronic device, and storage medium | |
| CN115390740A (en) | Device control method, device, storage medium and electronic device | |
| CN114721574A (en) | Control method and device for one-hand operation mode, electronic equipment and storage medium | |
| WO2022166516A1 (en) | Screen splitting method and apparatus, electronic device, and storage medium | |
| CN114815971B (en) | Information display methods, devices, electronic equipment and storage media | |
| KR20140143673A (en) | Method and apparatus for controlling user interface | |
| US20250315199A1 (en) | Image text sharing method, image text sharing device, and non-transitory computer-readable storage medium | |
| CN118838567A (en) | Content display method, device, electronic equipment and storage medium | |
| WO2023241013A1 (en) | Interface operation method and apparatus, electronic device, and storage medium | |
| CN117420938A (en) | Interface display method and device, electronic equipment and storage medium |
| 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 |