Screenshot method

By obtaining device performance scores and drawing simulated screens larger than the original screen for screenshots, the problem of poor long screenshots is solved, and high-quality long screenshot effects and device independence are achieved.

CN119225602APending Publication Date: 2024-12-31CHINA MOBILE INTERNET CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411256534.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-09
Publication Date
2024-12-31

AI Technical Summary

Technical Problem

In the existing long screenshot technology, the content confusion and slow loading speed caused by the mismatch between the scrolling speed and the capture speed, resulting in poor effect of long screenshot pictures.

Method used

By obtaining the device performance score of the target device, determining the parameter information of the simulation screen, and drawing the simulation screen with a window size larger than the original screen, performing a one-time screenshot operation to avoid multiple captures and splicing.

Benefits of technology

Ensure the quality of long screenshot effects, avoid content confusion, and provide better screenshot effects on different devices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119225602A_ABST
    Figure CN119225602A_ABST
Patent Text Reader

Abstract

The invention discloses a screenshot method, and particularly relates to the field of computers, and the method comprises the following steps: obtaining a target operation for triggering screenshot; in response to the target operation, obtaining an equipment performance score of target equipment; determining parameter information of a simulation screen based on the equipment performance score; drawing the simulation screen based on the parameter information; the window size of the simulation screen is larger than that of an original screen of the target equipment; and executing a screenshot operation on the page content on the whole simulation screen.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computers, and specifically to a screenshot method. Background Art

[0002] Currently, users generally use electronic devices to browse content. In the process of browsing content, when encountering content of interest, users often trigger a screenshot operation to save the content of interest in the form of a picture. In many cases, there are often many contents of interest to users. If a screenshot is taken based on the content currently displayed on the electronic device, since each screenshot can only capture the currently displayed content, it is often necessary to perform multiple screenshot operations to capture all the content of interest.

[0003] In order to conveniently capture all the content of interest, the related art proposes a long screenshot technology. The process of the related art for taking a long screenshot is as follows: obtaining the sliding action applied by the user on the device display screen, and in the process of the sliding action causing the device display content to scroll, the scrolling content is captured multiple times, and multiple pictures are captured, and then the multiple pictures are stitched together to form a long screenshot picture.

[0004] However, in the process of scrolling display of displayed content, there may be problems such as the scrolling speed not matching the speed of capturing pictures and the display content being interrupted due to slow loading speed of displayed content, resulting in poor effect of the obtained long screenshot picture. Summary of the invention

[0005] The embodiment of the present application provides a screenshot method, which can solve the problem of poor effect of long screenshot images obtained in related technologies.

[0006] In a first aspect, an embodiment of the present application provides a screenshot method, the method comprising:

[0007] Get the target operation used to trigger the screenshot;

[0008] In response to the target operation, obtaining a device performance score of the target device;

[0009] Determining parameter information of a simulated screen based on the device performance score;

[0010] Based on the parameter information, drawing the simulated screen; the window size of the simulated screen is larger than the window size of the original screen of the target device;

[0011] A screenshot operation is performed on the page content on the entire simulated screen.

[0012] In a second aspect, an embodiment of the present application provides an electronic device, comprising a processor and a memory, wherein the memory stores a program or instruction running on the processor, and when the program or instruction is executed by the processor, the steps of the method described in the first aspect are implemented.

[0013] In a third aspect, an embodiment of the present application provides a computer-readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed, the steps of the method described in the first aspect are implemented.

[0014] In a fourth aspect, an embodiment of the present application provides a computer program product, wherein the computer program product includes a computer program, and when the computer program is executed by a processor, the steps of the method described in the first aspect are implemented.

[0015] At least one of the above technical solutions provided in the embodiments of the present application can achieve the following technical effects:

[0016] In the embodiment of the present application, by first drawing a simulated screen whose window size is larger than the window size of the original screen of the target device, and then performing a screenshot operation on the entire simulated screen, there is no need to perform the screenshot operation multiple times, thereby avoiding various problems that may arise from capturing the page content displayed on the original screen multiple times and then splicing it into a long screenshot (such as disordered long screenshot content), thereby ensuring that the effect of the long screenshot can be better achieved, and solving the problem of poor long screenshot image effect in the related art. In addition, the embodiment of the present application also takes into account the device performance score of the target device in the process of determining the parameter information of the simulated screen, so as to ensure that a better screenshot effect can be provided when taking screenshots on different devices. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] Figure 1 It is a flowchart of a screenshot method provided in an embodiment of the present application.

[0018] Figure 2 It is a flowchart of a process for obtaining a device performance score of a target device provided in an embodiment of the present application.

[0019] Figure 3 It is a flowchart of a screenshot method provided in an embodiment of the present application.

[0020] Figure 4-1 It is a flowchart of a screenshot method provided in an embodiment of the present application.

[0021] Figure 4-2 It is a flowchart of a method for calculating device performance provided in an embodiment of the present application.

[0022] Figure 4-3 This is a simulated screen effect diagram provided in an embodiment of the present application.

[0023] Figure 4-4 This is a simulated screen display diagram provided in an embodiment of the present application.

[0024] Figure 5 It is a structural diagram of a screenshot device provided in an embodiment of the present application.

[0025] Figure 6 It is a structural block diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0026] The following will be combined with the drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0027] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.

[0028] As discussed in the background technology section, when taking a long screenshot of the content displayed on the target device, the target device will scroll the displayed content based on the sliding action applied by the user on the display screen of the target device, and in the process of scrolling, the scrolling display content currently displayed by the target device is captured until the scrolling ends, and multiple pictures are captured, and then the multiple pictures are spliced ​​to obtain a long screenshot picture. However, since the scrolling speed of the scrolling display does not match the speed of capturing pictures, the content of the long screenshot picture spliced ​​from the captured multiple pictures is disordered. For example, the scrolling speed is too fast, resulting in the target device not having time to capture the picture, so that in the long screenshot picture finally spliced, a part of the displayed content is missing, resulting in poor long screenshot effect.

[0029] In an embodiment of the present application, the target device obtains a target operation for triggering a screenshot; the target device obtains a device performance score of the target device in response to the target operation; the target device determines parameter information of a simulated screen based on the device performance score; the target device draws the simulated screen based on the parameter information; the window size of the simulated screen is larger than the window size of the original screen of the target device; the target device performs a screenshot operation on the page content on the entire simulated screen. In this way, by first drawing a simulated screen with a window size larger than the window size of the original screen of the target device, and then performing a screenshot operation on the entire simulated screen, there is no need to perform the screenshot operation multiple times, avoiding various problems that may occur due to multiple captures of the page content displayed on the original screen and then splicing them into a long screenshot (such as confusion of the long screenshot content), thereby ensuring that the effect of the long screenshot can be better achieved, and solving the problem of poor effect of the long screenshot image in the related art. In addition, in the process of determining the parameter information of the simulated screen, the embodiment of the present application also takes into account the device performance score of the target device, so that it can ensure that a better screenshot effect can be provided when taking screenshots on different devices.

[0030] The screenshot method provided in the embodiment of the present application can achieve the effect of a long screenshot, that is, the screenshot obtained by the screenshot method provided in the embodiment of the present application can be similar to the screenshot effect obtained by the long screenshot method in the related art. The long screenshot operation in the related art is used to obtain the screenshot content that cannot be fully displayed on one screen. The long screenshot includes the screenshot content displayed on multiple screens. For example, the screen (that is, the actual display screen of the electronic device) displays one screen of content at a time, and the screen content displayed multiple times is superimposed to obtain the screen content including the multi-screen display.

[0031] It should be understood that all the screenshot methods provided in the embodiments of the present application can be executed by a target device, which can be an electronic device. The electronic device can include a terminal device, such as a mobile phone, a tablet, a computer, etc. The embodiments of the present application do not limit the specific hardware deployment environment.

[0032] In the following, in conjunction with the accompanying drawings, all screenshot methods provided in the embodiments of the present application are described in detail through specific embodiments and their application scenarios.

[0033] See also Figure 1 , Figure 1 A flowchart of a screenshot method provided in an embodiment of the present application, such as Figure 1 As shown, the method comprises the following steps:

[0034] Step 110: Obtain a target operation for triggering a screenshot.

[0035] In the embodiments of the present application, Figure 1The method can be executed by the target device. The target device can be any terminal device that can perform screenshot operations, such as mobile phones, tablets, computers and other devices. The target operation used to trigger the screenshot can be any custom operation. For example, a user's specific sliding operation on the screen of an electronic device (the target device can obtain this sliding operation through a sensor set on the screen), a user's specific gesture (the target device can obtain this specific gesture through a camera), a user's click operation on a specified option in the application menu, etc. After the target device obtains the target operation, it can start the screenshot process.

[0036] In the embodiment of the present application, taking a mobile phone device installed with an Android operating system as an example, the actions applied by the mobile phone user on the mobile phone screen can be monitored, such as tapping the screen twice in a row or sliding down the screen with three fingers, etc. When it is determined that the monitored action is the target operation for triggering a screenshot, the long screenshot process can be started. Of course, in the embodiment of the present application, the target operation for triggering a screenshot is not limited to a custom user action applied on the screen, and can also be an operation on a button (including a physical button or a virtual button), for example, the mobile phone user can start the screenshot process by clicking a designated button displayed on the mobile phone screen.

[0037] Step 120: In response to the target operation, obtaining a device performance score of the target device;

[0038] In an embodiment of the present application, after the target device receives the target operation for triggering a screenshot, the target device may obtain a device performance score of the target device in response to the target operation, and the device performance score of the target device may be obtained based on a target parameter of the target device, and the target parameter may include at least one of a device model, an operating system version number, a memory size, and a memory occupied by background applications. Specifically, the target device may obtain a device performance score of the target device based on at least one of the parameters such as the device model, the operating system version number, the memory size, and the memory occupied by background applications, for example, by evaluating at least one of the parameters such as the device model, the operating system version number, the memory size, and the memory occupied by background applications of the target device, and obtaining a device performance score of the target device according to the evaluation result.

[0039] In an embodiment of the present application, in the process of obtaining the device performance score of the target device, the device performance score of the target device can be obtained based on the device model, the operating system version number, the memory size, and the memory occupied by the background applications. Specifically, the device model of the target device, the operating system version number of the target device, the memory size of the target device, and the memory occupied by the background applications of the target device can be obtained. Based on the device model of the target device, a first score is determined; based on the operating system version number of the target device, a second score is determined; based on the memory size of the target device, a third score is determined; based on the memory occupied by the background applications of the target device, a fourth score is determined; based on the first score, the second score, the third score, and the fourth score, the device performance score of the target device is determined. For example, the sum of the calculated first score, second score, third score, and fourth score can be used as the device performance score of the target device.

[0040] In the embodiment of the present application, different device models may correspond to different first scores, different operating system version numbers may correspond to different second scores, different memory sizes may correspond to different third scores, and different background application memory usage situations may correspond to different fourth scores. Specifically, a device information library may be pre-set, and the device information library may include multiple device models, a first score corresponding to each of the multiple device models, multiple operating system version numbers, a second score corresponding to each of the multiple operating system version numbers, multiple memory size situations, a third score corresponding to each of the multiple memory size situations, multiple background application memory usage situations, and a fourth score corresponding to each of the multiple background application memory usage situations.

[0041] In an embodiment of the present application, the device model of the target device, the operating system version number of the target device, the memory size of the target device, and the memory occupied by the background applications of the target device can be obtained first; based on the device model of the target device, the operating system version number of the target device, the memory size of the target device, and the memory occupied by the background applications of the target device, a first score corresponding to the device model of the target device, a second score corresponding to the operating system version number of the target device, a third score corresponding to the memory size of the target device, and a fourth score corresponding to the memory occupied by the background applications of the target device can be matched in the device information library; and then based on the first score, the second score, the third score, and the fourth score, the device performance score of the target device is determined.

[0042] In the embodiment of the present application, after determining the first score, the second score, the third score and the fourth score in sequence, the first weight for the device model of the target device, the second weight for the operating system version number of the target device, the third weight for the memory size of the target device and the fourth weight for the memory occupied by the background application of the target device can also be obtained, and then based on the first score, the second score, the third score, the fourth score, the first weight, the second weight, the third weight and the fourth weight, the device performance score of the target device is determined. For example, the device performance score of the target device can be calculated based on the following formula:

[0043]

[0044] Wherein, G is the device performance score of the target device, Si is the i-th score, Di is the i-th weight, and i is a positive integer less than or equal to 4.

[0045] Step 130: Determine parameter information of the simulated screen based on the device performance score;

[0046] In an embodiment of the present application, the parameter information of the simulated screen may include an actual window height of the simulated screen, and the actual window height of the simulated screen changes with the change of the device performance score of the target device. The original screen may be a display component of the target device for displaying page content. The value of the actual window height of the simulated screen may be greater than the value of the window height of the original screen. The page content is displayed by a simulated screen whose actual window height is greater than the window height of the original screen, so that the page content displayed on the simulated screen is more than the page content displayed on the original screen of the target device, so that the page content displayed on the simulated screen can be captured to achieve the purpose of capturing more page content than the page content displayed on the original screen of the target device.

[0047] In an embodiment of the present application, in the process of determining the parameter information of the simulated screen of the target device based on the device performance score, the maximum window height set for the simulated screen of the target device can be first obtained, and then the actual window height of the simulated screen can be determined based on the maximum window height and the device performance score. For example, a target value can be selected from the values ​​that are less than the maximum window height based on the device performance score, and the target value can be determined as the actual window height of the simulated screen; the maximum window height set for the simulated screen of the target device can also be obtained, the device performance score can be converted into a device performance percentage, the product of the maximum window height and the device performance percentage can be determined, and the product can be used as the actual window height of the simulated screen.

[0048] Step 140: Drawing a simulated screen based on the parameter information; the window size of the simulated screen is larger than the window size of the original screen of the target device.

[0049] In an embodiment of the present application, in the process of drawing a simulated screen based on parameter information by the target device, a target class for obtaining the screen size can be first defined for the simulated screen, and the parameter information of the original screen of the target device can be obtained through the target method, and the parameter information can include the window height and window width of the original screen of the target device, and the parameter information of the original screen of the target device can be assigned to the target class through the target assignment method. Subsequently, the window height and window width of the original screen of the target device can be obtained from the target class through the target value method. Based on the window height of the original screen and the actual window height of the simulated screen, the target magnification can be calculated. Subsequently, the window width of the simulated screen can be calculated based on the target magnification and the window width of the original screen.

[0050] In the embodiment of the present application, the window size of the simulated screen is larger than the window size of the original screen of the target device, so that the page content displayed on the simulated screen can be guaranteed to be more than the page content displayed on the original screen of the target device. In the process of drawing the simulated screen based on the parameter information, the target device can obtain the target page object of the page displayed on the original screen, adjust the page height parameter in the target page object to the actual window height of the simulated screen, so that the page content displayed on the page corresponding to the target page object can be more than the page content displayed on the original screen, and determine the target page object as the target class of the simulated screen to achieve the effect that the simulated screen can display more page content than the original screen.

[0051] In an embodiment of the present application, after drawing the simulation screen, the view of the simulation screen can be scaled down and displayed on the original screen of the target device, so that the user can browse and confirm the page content displayed on the simulation screen through the original screen of the target device.

[0052] Step 150: taking a screenshot of the page content on the entire simulated screen.

[0053] In an embodiment of the present application, after the simulation screen is drawn, the page content displayed on the simulation screen is more than the page content displayed on the original screen of the target device. The target device can perform a screenshot operation on the page content on the entire simulation screen. The screenshot operation can be a one-time screenshot operation. By performing a one-time screenshot operation on the page content on the simulation screen, the purpose of capturing a screenshot of more page content than that displayed on the original screen of the target device can be achieved at one time, thereby achieving a long screenshot effect.

[0054] In an embodiment of the present application, after the target device performs a screenshot operation on the page content on the entire simulated screen, the screenshot result can be displayed, and selection information input by the user can be received, the selection information is used to select a screenshot interval in the screenshot result, and based on the selection information, the screenshot interval to be retained is determined, and the screenshot interval to be retained is output as a picture file. Specifically, after the target device performs a screenshot operation on the page content on the entire simulated screen, the screenshot result can be displayed through the display screen of the target device, and selection information input by the user for selecting a screenshot interval in the screenshot result can be received, the selection information can be a coordinate system established with a long screenshot, and multiple coordinates in the coordinate system, and the screenshot interval can be determined by the multiple coordinates.

[0055] In an embodiment of the present application, the target device obtains a target operation for triggering a screenshot; the target device obtains a device performance score of the target device in response to the target operation; the target device determines parameter information of a simulated screen based on the device performance score; the target device draws the simulated screen based on the parameter information; the window size of the simulated screen is larger than the window size of the original screen of the target device; the target device performs a screenshot operation on the page content on the entire simulated screen. In this way, by first drawing a simulated screen with a window size larger than the window size of the original screen of the target device, and then performing a screenshot operation on the entire simulated screen, there is no need to perform the screenshot operation multiple times, thereby avoiding various problems that may occur due to capturing the page content displayed on the original screen multiple times and then splicing it into a long screenshot (such as confusion of the long screenshot content), thereby ensuring that the effect of the long screenshot can be better achieved, and solving the problem of poor effect of long screenshot images in the related art.

[0056] Figure 2 A flowchart of a process for obtaining a device performance score of a target device provided in an embodiment of the present application. Figure 2 As shown, the process includes the following steps:

[0057] Step 210: Obtain the device model of the target device, the operating system version number of the target device, the memory size of the target device, and the memory occupied by the background applications of the target device;

[0058] Step 220: Determine a first score based on the device model of the target device.

[0059] In the embodiment of the present application, a device information library may be pre-set, and the device information library may include multiple device models, and the multiple device models are divided into multiple device models, such as high, medium-high, medium and low-end models, and a first score is set for each of the multiple device models. After obtaining the device model of the target device, the device model of the target device is compared with the multiple device models in the device information library to determine the device model corresponding to the device model of the target device, and the first score corresponding to the determined device model is determined as the first score of the target device.

[0060] Step 230: Determine a second score based on the operating system version number of the target device.

[0061] In the embodiment of the present application, a device information library may be pre-set, and the device information library may include multiple operating system version numbers and a second score corresponding to each of the multiple operating system version numbers. After obtaining the operating system version number of the target device, the operating system version number of the target device is compared with the multiple operating system version numbers in the device information library, and the second score corresponding to the operating system version number of the target device is determined based on the comparison result.

[0062] Step 240: Determine a third score based on the memory size of the target device.

[0063] In the embodiment of the present application, a device information library may be pre-set, and the device information library may include multiple memory size situations and a third score corresponding to each of the multiple memory size situations. After obtaining the memory size of the target device, the memory size of the target device is compared with the multiple memory size situations in the device information library, and the third score corresponding to the memory size of the target device is determined based on the comparison result.

[0064] Step 250: Determine a fourth score based on the memory usage of background applications of the target device.

[0065] In the embodiment of the present application, a device information library may be pre-set, and the device information library may include a plurality of background application memory occupation situations and a fourth score corresponding to each background application memory occupation situation in the plurality of background application memory occupation situations. After obtaining the memory size of the target device, the background application memory occupation situation of the target device is compared with the plurality of background application memory occupation situations in the device information library, and the fourth score corresponding to the background application memory occupation situation of the target device is determined based on the comparison result.

[0066] Step 260: Obtain a first weight for the device model of the target device, a second weight for the operating system version number of the target device, a third weight for the memory size of the target device, and a fourth weight for the memory usage of background applications of the target device;

[0067] Step 270: Determine a device performance score of the target device based on the first score, the second score, the third score, the fourth score, the first weight, the second weight, the third weight, and the fourth weight.

[0068] In the embodiment of the present application, the device performance score of the target device can be calculated based on the following formula:

[0069]

[0070] Wherein, G is the device performance score of the target device, Si is the i-th score, Di is the i-th weight, and i is a positive integer less than or equal to 4.

[0071] In an embodiment of the present application, the first score in step 220 may be proportional to the high-end level of the device model, and the second score in step 230 may be proportional to the operating system version number; the third score in step 240 may be proportional to the memory size, and the background application memory occupied by the target device in step 250 may include the percentage of memory occupied by the background application, and the fourth score may be inversely proportional to the percentage of memory occupied by the background application.

[0072] In an embodiment of the present application, a device performance score of the target device is determined based on parameter information such as the device model, operating system version number, memory size, and memory occupied by background applications of the target device, so that parameter information of a simulated screen that better matches the actual situation of the target device can be subsequently determined based on the device performance score of the target device.

[0073] See also Figure 3 , Figure 3 A flowchart of a screenshot method provided in an embodiment of the present application, such as Figure 3 As shown, the method comprises the following steps:

[0074] Step 310: The target device obtains a target operation for triggering a screenshot.

[0075] In the embodiment of the present application, the target device can be any terminal device that can perform a screenshot operation, such as a mobile phone, a tablet, a computer and other devices. The target operation used to trigger the screenshot can be any custom operation. For example, a specific sliding operation of the user on the screen of the electronic device (the target device can obtain this sliding operation through a sensor set on the screen), a specific gesture of the user (the target device can obtain this specific gesture through a camera), a user's click operation on a specified option in the application menu, etc. After the target device obtains the target operation, it can start the long screenshot process.

[0076] In the embodiment of the present application, taking a mobile phone device installed with an Android operating system as an example, the actions applied by the mobile phone user on the mobile phone screen can be monitored, such as tapping the screen twice in a row or sliding down the screen with three fingers, etc. When it is determined that the monitored action is a target operation for triggering a screenshot, the long screenshot process can be started. Of course, in the embodiment of the present application, the target operation for triggering a screenshot is not limited to a custom user action applied on the screen, and can also be an operation on a button (including a physical button or a virtual button), for example, the mobile phone user can start the long screenshot process by clicking a designated button displayed on the mobile phone screen.

[0077] Step 313: Obtain the device model of the target device, the version number of the operating system of the target device, the memory size of the target device, and the memory occupied by the background applications of the target device.

[0078] Step 316: Determine a first score based on the device model of the target device.

[0079] In the embodiment of the present application, a device information library may be pre-set, and the device information library may include multiple device models, and the multiple device models are divided into multiple device models, such as high, medium-high, medium and low-end models, and a first score is set for each of the multiple device models. After obtaining the device model of the target device, the device model of the target device is compared with the multiple device models in the device information library to determine the device model corresponding to the device model of the target device, and the first score corresponding to the determined device model is determined as the first score of the target device.

[0080] Step 319: Determine a second score based on the operating system version number of the target device.

[0081] In the embodiment of the present application, a device information library may be pre-set, and the device information library may include multiple operating system version numbers and a second score corresponding to each of the multiple operating system version numbers. After obtaining the operating system version number of the target device, the operating system version number of the target device is compared with the multiple operating system version numbers in the device information library, and the second score corresponding to the operating system version number of the target device is determined based on the comparison result.

[0082] Step 322: Determine a third score based on the memory size of the target device.

[0083] In the embodiment of the present application, a device information library may be pre-set, and the device information library may include multiple memory size situations and a third score corresponding to each of the multiple memory size situations. After obtaining the memory size of the target device, the memory size of the target device is compared with the multiple memory size situations in the device information library, and the third score corresponding to the memory size of the target device is determined based on the comparison result.

[0084] Step 325: Determine a fourth score based on the memory usage of background applications of the target device.

[0085] In the embodiment of the present application, a device information library may be pre-set, and the device information library may include a plurality of background application memory occupation situations and a fourth score corresponding to each background application memory occupation situation in the plurality of background application memory occupation situations. After obtaining the memory size of the target device, the background application memory occupation situation of the target device is compared with the plurality of background application memory occupation situations in the device information library, and the fourth score corresponding to the background application memory occupation situation of the target device is determined based on the comparison result.

[0086] Step 328: Obtain a first weight for the device model of the target device, a second weight for the operating system version number of the target device, a third weight for the memory size of the target device, and a fourth weight for the memory usage of background applications of the target device;

[0087] Step 331: Determine a device performance score of the target device based on the first score, the second score, the third score, the fourth score, the first weight, the second weight, the third weight, and the fourth weight.

[0088] In the embodiment of the present application, the device performance score of the target device can be calculated based on the following formula:

[0089]

[0090] Wherein, G is the device performance score of the target device, Si is the i-th score, Di is the i-th weight, and i is a positive integer less than or equal to 4.

[0091] In the embodiment of the present application, in step 316, the first score is proportional to the high-end level of the device model, and in step 319, the second score is proportional to the operating system version number; in step 322, the third score is proportional to the memory size, and in step 325, the background application memory occupied by the target device includes the percentage of background application memory occupied, and the fourth score is inversely proportional to the percentage of background application memory occupied.

[0092] Step 334: The target device determines parameter information of the simulated screen based on the device performance score;

[0093] In an embodiment of the present application, the parameter information of the simulated screen may include an actual window height of the simulated screen, which changes with the device performance score of the target device, and the actual window height may be greater than the window height of the original screen, and the original screen may be a display component of the target device for displaying page content. The page content is displayed by a simulated screen whose actual window height is greater than the window height of the original screen, so that the page content displayed on the simulated screen is more than the page content displayed on the original screen of the target device, so that the page content displayed on the simulated screen can be captured to achieve the purpose of capturing more page content than the page content displayed on the original screen of the target device.

[0094] In an embodiment of the present application, in the process of determining the parameter information of the simulated screen of the target device based on the device performance score, the maximum window height set for the simulated screen of the target device can be first obtained, and then the actual window height of the simulated screen can be determined based on the maximum window height and the device performance score. For example, a target value can be selected from the values ​​that are less than the maximum window height based on the device performance score, and the target value can be determined as the actual window height of the simulated screen; the maximum window height set for the simulated screen of the target device can also be obtained, the device performance score can be converted into a device performance percentage, the product of the maximum window height and the device performance percentage can be determined, and the product can be used as the actual window height of the simulated screen.

[0095] Step 337: The target device draws a simulated screen based on the parameter information; wherein the window size of the simulated screen is larger than the window size of the original screen of the target device.

[0096] In an embodiment of the present application, when the target device draws a simulated screen based on parameter information, a target class for obtaining screen size information can be first defined for the simulated screen, and then the parameter information of the original screen of the target device is obtained through the target method, and the parameter information may include the window height and window width of the original screen of the target device, and the parameter information of the original screen of the target device is assigned to the target class through the target assignment method. Subsequently, the window height and window width of the original screen of the target device can be obtained from the target class. Furthermore, based on the window height of the original screen and the actual window height of the simulated screen, the target magnification is calculated, so that the window width of the simulated screen can be calculated according to the target magnification and the window width of the original screen.

[0097] In an embodiment of the present application, in the process of drawing a simulated screen based on parameter information by the target device, the target page object of the page displayed on the original screen can be obtained through the target function, and the page height parameter in the target page object can be adjusted to the actual window height of the simulated screen by calling the target setting method, so that the page content displayed by the page corresponding to the target page object can be more than the page content displayed on the original screen, and the target page object is determined as the target class of the simulated screen to achieve the effect that the simulated screen can display more page content than the original screen.

[0098] In an embodiment of the present application, after drawing the simulation screen, the view of the simulation screen can be scaled down and displayed on the original screen of the target device, so that the user can browse and confirm the page content displayed on the simulation screen through the original screen of the target device.

[0099] Step 340: The target device performs a screenshot operation on the page content on the entire simulated screen.

[0100] In an embodiment of the present application, after the simulation screen is drawn, the page content displayed on the simulation screen is more than the page content displayed on the original screen of the target device. At this time, a one-time screenshot operation is performed on the page content on the simulation screen to achieve the purpose of capturing more page content than the original screen displayed on the target device at one time.

[0101] Step 343: Display the screenshot result.

[0102] In an embodiment of the present application, after the target device performs a one-time screenshot operation on the page content on the entire simulated screen, the screenshot result can be displayed through the display screen of the target device.

[0103] Step 346: receiving selection information input by the user, where the selection information is used to select a screenshot interval in the screenshot result.

[0104] In an embodiment of the present application, the selection information may be a coordinate system established with a long screenshot, and multiple coordinates in the coordinate system may be used to determine the screenshot interval. For example, the selection information may include four coordinate point information, and each of the four coordinate points represents the position of a vertex of the screenshot interval in the screenshot result.

[0105] Step 349: Determine the screenshot interval to be retained based on the selection information;

[0106] Step 352: Output the screenshot interval to be retained as a picture file.

[0107] In an embodiment of the present application, the target device obtains a target operation for triggering a screenshot; the target device obtains a device performance score of the target device in response to the target operation; the target device determines parameter information of a simulated screen based on the device performance score; the target device draws the simulated screen based on the parameter information; the window size of the simulated screen is larger than the window size of the original screen of the target device; the target device performs a screenshot operation on the page content on the entire simulated screen. In this way, by first drawing a simulated screen with a window size larger than the window size of the original screen of the target device, and then performing a screenshot operation on the entire simulated screen, there is no need to perform the screenshot operation multiple times, avoiding various problems that may occur due to multiple captures of the page content displayed on the original screen and then splicing them into a long screenshot (such as confusion of the long screenshot content), thereby ensuring that the effect of the long screenshot can be better achieved, and solving the problem of poor effect of the long screenshot image in the related art. In addition, in the process of determining the parameter information of the simulated screen, the embodiment of the present application also takes into account the device performance score of the target device, so that it can ensure that a better screenshot effect can be provided when taking screenshots on different devices.

[0108] In order to better understand the screenshot method provided in the embodiment of the present application, further explanation is given below. It should be understood that the discussion below is only exemplary.

[0109] Taking an electronic device installed with an Android operating system as an example, the screenshot method provided in the embodiment of the present application includes the following process:

[0110] In the first step, the electronic device obtains a target operation for triggering a screenshot, where the target operation may be a specific gesture operation performed by a user on the device, or a selection operation on a display option.

[0111] In the second step, the electronic device responds to the target operation and determines the device performance score based on the comprehensive performance of the device. The device performance score can be in the form of a numerical value or a percentage. Specifically, the various performance parameters of the device are obtained, including the device model, the Android operating system version of the device, the memory size, and the memory occupied by the applications currently running in the background of the device. These parameters are weighted according to pre-defined influence coefficients to reflect the degree of influence of different performance parameters on the long screenshot operation. By comprehensively calculating different parameters, a device performance percentage is obtained.

[0112] The third step is to determine the parameter information of the simulated screen based on the device performance score. The parameter information of the simulated screen may be the height and width of the simulated screen. The maximum height of the simulated screen (such as the maximum viewport height described above) may be set, and the optimal height (such as the actual viewport height described above) may be obtained accordingly. Specifically, the maximum height of the simulated screen may be set to 30000 (wherein the unit of 30000 may be the viewport height (Viewport Height, vh)), and then based on the calculated device performance percentage, an optimal height suitable for the current device is calculated, and the value of the optimal height is less than the maximum height. The actual viewport height of the simulated screen may be adjusted according to the optimal height calculated based on the device performance, so as to achieve the goal of obtaining the best screenshot effect on different devices.

[0113] Step 4: Draw a simulated screen. Use the calculated optimal height to simulate a simulated screen on the actual screen of the electronic device, and draw the entire page content displayed on the original screen on the simulated screen, avoiding the tedious process of multiple scrolling and loading, and greatly improving the speed of long screenshots.

[0114] The fifth step is to take a one-time screenshot of the simulated screen and display the screenshot result, and receive selection information input by the user for selecting the screenshot interval in the screenshot result, so that the user can freely select the screenshot interval that he or she ultimately wants to keep and crop out the content that the user is really interested in.

[0115] Combine the following Figure 4-1 The various steps in the screenshot method provided in the embodiment of the present application are further explained.

[0116] Step 1, the electronic device monitors the target operation used to trigger the screenshot. Specifically, the target operation can be a specific gesture operation, such as two-finger swipe, three-finger swipe, or a screenshot button selection operation on the device. The process of the electronic device monitoring the target operation used to trigger the screenshot can be implemented by defining a monitoring class, and the monitoring class can inherit the GestureDetector.SimpleOnGestureListener class. The monitoring class may include onDown and onFling methods. Through the onFling method, the distance and speed of the finger sliding are judged. If the conditions of the specific gesture used to trigger the screenshot operation are met, the screenshot execution method is triggered.

[0117] Step 2: After the electronic device monitors the target operation used to trigger the screenshot, the device performance score is obtained. This step can calculate the device performance score of the device based on the overall situation of the device, and the total score is 100. The specific calculation process is as follows: Figure 4-2As shown. According to the four aspects of the device model, the Android operating system version of the device, the memory size of the device, and the memory occupied by the background applications of the device, the scores are determined respectively, and the device performance score of the device is calculated according to the influence coefficients of 10%, 20%, 30% and 40% respectively. The device models are mainly divided into high, medium-high, medium and low-end models. The high-end models have the highest scores and the low-end models have the lowest scores. The device model can be located according to the price of the mobile phones launched on the market. The corresponding device model score is obtained according to the model. The Android operating system versions of the device are mainly Android 4 to Android 13. The higher the version level, the higher the version score. If the device version is upgraded later, the version score of the device will be improved accordingly. The memory size of the device is mainly between 1G and 32G. The larger the memory, the higher the memory score. When the device background application occupies the memory, the remaining memory of the device is between 0 and 100%. The higher the percentage of remaining memory, the higher the score of the background application memory occupation. The specific process of calculating the device performance score is as follows:

[0118] (1) Obtain the device model score of the device. Specifically, the common device models on the market are pre-classified into four types: high, medium, medium-high, and low. The device model scores of each type of model are in the range of 1-10 points. The specific device model score list is shown in Table 1 below. The device model can be obtained through the Build.MODEL method, and the obtained device model is matched in the device model score list to obtain the device model score corresponding to the device model.

[0119] Table 1

[0120]

[0121]

[0122] (2) Obtain the device Android operating system version score. Specifically, generate an Android operating system version score list in advance according to the Android operating system versions of each level and the Android operating system version score corresponding to each Android operating system version, as shown in Table 2 below. Sort the Android operating system version numbers from high to low according to the level, and the Android operating system version score is in the range of 1-20 points. Use the Build.VERSION.RELEASE method to obtain the device Android operating system version number, match the obtained device Android operating system version number in the Android operating system version score list, and obtain the Android operating system version score corresponding to the device Android operating system version number.

[0123] Table 2

[0124]

[0125]

[0126] In particular, if the obtained device model is not on the model list, the Android operating system version score is divided by 2 to obtain the device model score.

[0127] (3) Obtain the device memory size score. Specifically, sort the common memory size situations of the device from high to low, set the memory size scores corresponding to various memory size situations, the scores are in the range of 1-30 points, and generate a memory size score list, as shown in Table 3 below. Obtain the device memory size through the totalMem method in the MemoryInfo object of the ActivityManager class, compare the device memory size with the memory size score list, and obtain the device memory size score.

[0128] Table 3

[0129] Memory size Memory size score 32GB RAM 30 24GB RAM 27 16GB RAM 24 12GB RAM 21 8GB RAM 18 6GB RAM 15 4GB RAM 12 3GB RAM 9 2GB RAM 6 1GB RAM 3

[0130] (4) Obtain the score of the memory occupied by the background applications of the device. Specifically, based on the common remaining memory ratio, the background application memory occupation score is set for the remaining memory ratio of various situations. The remaining memory ratio is calculated by remaining memory ratio = remaining memory / total memory, and based on the remaining memory ratio of various situations and the background application memory occupation score, a background application memory occupation score list is generated, as shown in Table 4 below, and the score is between 1 and 40 points. The list of application processes running on the device is obtained through the getRunningAppProcesses() method of the ActivityManager class, a for loop is defined to traverse the process list, and the objects of each running process are obtained according to the process identifier (pid) of the process, and then the memory occupied by each running process is obtained through the getTotalPrivateDirty() method, and the total memory occupied by all running processes is calculated. The remaining memory is calculated by remaining memory = total memory - occupied memory, and the device remaining memory ratio is further calculated. Based on the device remaining memory ratio and the background application memory occupation score list, the device background application memory occupation score is obtained.

[0131] Table 4

[0132] Remaining memory percentage Background application memory usage score 70%-100% 40 60%-69% 36 50%-59% 32 40%-49% 28 30%-39% 24 20%-29% 20 10%-19% 16 5%-9% 12 1%-4% 8 0% 4

[0133] Calculate the sum of the scores of the above four items to get the device performance score, and convert the device performance score to the device performance percentage bestPercent.

[0134] Step three, set the maximum height of the simulated screen and calculate the optimal height of the simulated screen. In order to ensure the stability of the long screenshot performance, the maximum height (maxHeight) of the simulated screen is set to 30000, and the unit can be vh. According to the calculated device performance percentage and maximum height, the device calculates an optimal height suitable for the current device, and the optimal height is less than the maximum height. Specifically, the best height of the device is calculated by the formula bestHeight=maxHeight*bestPercent, where bestHeight is the best height, maxHeight is the maximum height, and bestPercent is the percentage of device performance. For example, if maxHeight is set to 30000, if bestPercent is 80%, then the best height bestHeight=30000*80%=24000.

[0135] Step 4, simulate the screen. Through the calculated best height (bestHeight), start to simulate a simulated screen with the best height as the height on the electronic device. The specific process is as follows: Get the DisplayMetrics object. The Displaymetrics object is the key object for obtaining the original screen size of the device. Get the screen size information of the original screen through the getWindowManager().getDefaultDisplay() method, and assign the obtained original screen size information to the DisplayMetrics object through the getMetrics(displayMetrics) method. Get the height (screenHeight) and width (screenWidth) of the original screen from the DisplayMetrics object. Calculate the magnification (scale) of the simulated screen through the formula scale = bestHeight / screenHeight. Set the layout parameters of the Activity according to the magnification, get the interface object of the simulated screen through getWindow(), call the setLayout method to adjust the height of the screen to the best height, and adjust the width of the screen according to the magnification, so as to achieve the effect of the simulated screen. Figure 4-3 As shown, the height A of the original screen 410 is screenHeight, the height B of the simulated screen 420 is the best height (bestHeight), and the device adaptively adjusts the width of the simulated screen based on the calculated magnification (scale) to achieve the effect of the simulated screen.

[0136] Step 5: Draw the simulated screen to get a one-time screenshot result. After achieving the simulated screen effect, you can scale down the simulated screen and draw it on the original screen. Figure 4-4As shown, the simulated screen 430 after being scaled down is drawn onto the original screen 410, wherein the page content displayed by the simulated screen 430 is several times the page content that can be displayed by the original screen 410. For example, the page content displayed by a part of the screen in the simulated screen 430 (for example, the simulated screen part with a height of C) can be equivalent to the page content displayed by the original screen 410 with a height of A. Since the simulated screen has Y simulated screen parts with a height of C, the page content displayed by the simulated screen is Y times more than the page content displayed by the original screen 410, where Y is an integer greater than 1. In this way, during the screenshot process, the user does not need to manually scroll the screen or load the content in advance, and the content in the current simulated screen can be directly captured at one time and output as the screenshot result. The view of the original screen displaying the page content is obtained through the getRootView method, a blank bitmap is created, and the height of the blank bitmap is set to the best height bestHeight. Create a Canvas object, pass the blank bitmap into the Canvas object, and draw on the blank bitmap through the Canvas object. Specifically, the rootView.draw(canvas) method is called to draw the content of the view obtained by the getRootView method onto a blank bitmap, and then the drawn bitmap is output as an image file to obtain a screenshot result.

[0137] Step 6: Capture the screenshot result. After obtaining the screenshot result, the long screenshot content that the user wants can be retained by receiving the selection information input by the user for selecting the screenshot interval in the screenshot result. The selection information may include four coordinate information of startX, startY, endX, and endY. The four coordinates may represent the four vertices of the screenshot interval selected by the user to be retained. The retained screenshot interval is redrawn on a new bitmap, and the redrawn bitmap is output to a picture file.

[0138] Figure 5 is a structural block diagram of a screenshot device 500 provided in an embodiment of the present application. Figure 5 , the screenshot device 500 provided in the embodiment of the present application includes:

[0139] An acquisition module 510 is used to acquire a target operation for triggering a screenshot; and in response to the target operation, acquire a device performance score of a target device;

[0140] A determination module 520, configured to determine parameter information of a simulated screen based on the device performance score;

[0141] A drawing module 530, configured to draw the simulated screen based on the parameter information; the window size of the simulated screen is larger than the window size of the original screen of the target device;

[0142] The execution module 540 is used to execute a screenshot operation on the entire page content on the simulated screen.

[0143] In the screenshot device provided in the embodiment of the present application, a target operation for triggering a screenshot is obtained; in response to the target operation, a device performance score of a target device is obtained; based on the device performance score, parameter information of a simulated screen is determined; the target device draws the simulated screen based on the parameter information; the window size of the simulated screen is larger than the window size of the original screen of the target device; and a screenshot operation is performed on the page content on the entire simulated screen. In this way, by first drawing a simulated screen with a window size larger than the window size of the original screen of the target device, and then performing a screenshot operation on the entire simulated screen, there is no need to perform the screenshot operation multiple times, thereby avoiding various problems (such as confusion of long screenshot content) that may occur due to capturing the page content displayed on the original screen multiple times and then splicing it into a long screenshot, thereby ensuring that the effect of the long screenshot can be better achieved, and solving the problem of poor effect of long screenshot images in the related art. In addition, the embodiment of the present application also considers the device performance score of the target device in the process of determining the parameter information of the simulated screen, so that a better screenshot effect can be provided when taking screenshots on different devices.

[0144] In one embodiment of the present application, the device performance score of the target device is obtained based on the target parameters of the target device, and the target parameters include: at least one of: device model, operating system version number, memory size, and memory usage of background applications.

[0145] In one embodiment of the present application, the target parameters include: device model, operating system version number, memory size, and memory occupied by background applications; in the process of obtaining the device performance score of the target device, the acquisition module 510 is used to obtain the device model of the target device, the operating system version number of the target device, the memory size of the target device, and the memory occupied by background applications of the target device; determine a first score based on the device model of the target device; determine a second score based on the operating system version number of the target device; determine a third score based on the memory size of the target device; determine a fourth score based on the memory occupied by background applications of the target device; determine the device performance score of the target device based on the first score, the second score, the third score, and the fourth score.

[0146] In one embodiment of the present application, in the process of determining the device performance score of the target device based on the first score, the second score, the third score and the fourth score, the acquisition module 510 is used to obtain a first weight for the device model of the target device, a second weight for the operating system version number of the target device, a third weight for the memory size of the target device, and a fourth weight for the memory occupied by background applications of the target device; based on the first score, the second score, the third score, the fourth score, the first weight, the second weight, the third weight and the fourth weight, the device performance score of the target device is determined.

[0147] In one embodiment of the present application, different device models correspond to different first scores, different operating system version numbers correspond to different second scores, different memory sizes correspond to different third scores, and different background application memory usage corresponds to different fourth scores.

[0148] In one embodiment of the present application, the memory occupied by background applications of the target device includes the percentage of memory occupied by background applications; the first score is proportional to the high-end level of the device model, and the second score is proportional to the operating system version number; the third score is proportional to the memory size, and the fourth score is inversely proportional to the percentage of memory occupied by background applications.

[0149] In one embodiment of the present application, the parameter information of the simulated screen includes an actual window height of the simulated screen, and the actual window height of the simulated screen changes with the device performance score of the target device, and the actual window height is greater than the height of the original screen.

[0150] In one embodiment of the present application, in the process of determining parameter information of the simulated screen based on the device performance score, the determination module 520 is used to obtain the maximum window height set for the simulated screen of the target device; based on the maximum window height and the device performance score, determine the actual window height of the simulated screen.

[0151] In one embodiment of the present application, in the process of determining the actual window height of the simulated screen based on the maximum window height and the device performance score, the determination module 520 is specifically used to convert the device performance score into a device performance percentage; determine the product of the maximum window height and the device performance percentage, and use the product as the actual window height of the simulated screen.

[0152] In one embodiment of the present application, the screenshot device 500 also includes a display module and an output module. After performing a screenshot operation on the simulated screen, the display module is used to display the screenshot result; the acquisition module 510 is also used to receive selection information input by the user, and the selection information is used to select a screenshot interval in the screenshot result; the determination module 520 is used to determine the screenshot interval to be retained based on the selection information; the output module is used to output the screenshot interval to be retained as a picture file.

[0153] like Figure 6 As shown, the embodiment of the present application also provides an electronic device 600, which can be various types of computers, etc. The electronic device 600 includes: a processor 610 and a memory 620, and the memory 620 stores a program or instruction, and the program or instruction is executed by the processor 610 to implement the steps of any of the methods described above. For example, when the program is executed by the processor 610, the following process is implemented: the target device obtains a target operation for triggering a screenshot; the target device obtains a device performance score of the target device in response to the target operation; the target device determines parameter information of a simulated screen based on the device performance score; the target device draws the simulated screen based on the parameter information; the window size of the simulated screen is larger than the window size of the original screen of the target device; the target device performs a screenshot operation on the entire page content on the simulated screen. In this way, by first drawing a simulated screen whose window size is larger than the window size of the original screen of the target device, and then performing a screenshot operation on the entire simulated screen, there is no need to perform the screenshot operation multiple times, thereby avoiding various problems that may arise from capturing the page content displayed on the original screen multiple times and then splicing it into a long screenshot (such as confusion of the long screenshot content), thereby ensuring that the effect of the long screenshot can be better achieved, and solving the problem of poor effect of long screenshot images in the related art. In addition, the embodiment of the present application also considers the device performance score of the target device in the process of determining the parameter information of the simulated screen, so that it can ensure that a better screenshot effect can be provided when taking screenshots on different devices.

[0154] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the steps of the screenshot method provided in any of the above embodiments are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0155] The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0156] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0157] An embodiment of the present application provides a computer program product, which is stored in a storage medium. The program product is executed by at least one processor to implement the various processes of the above-mentioned method embodiment and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0158] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.

[0159] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, a disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present application.

[0160] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.

Claims

1. A screenshot method, characterized in that: include: Get the target operation used to trigger the screenshot; In response to the target operation, obtaining a device performance score of the target device; Determining parameter information of a simulated screen based on the device performance score; Based on the parameter information, drawing the simulated screen; the window size of the simulated screen is larger than the window size of the original screen of the target device; A screenshot operation is performed on the page content on the entire simulated screen.

2. The method according to claim 1, characterized in that The device performance score of the target device is obtained based on the target parameters of the target device, and the target parameters include: at least one of: device model, operating system version number, memory size, and memory usage of background applications.

3. The method according to claim 2, characterized in that The target parameters include: device model, operating system version number, memory size, and memory usage of background applications; the device performance score of the target device is obtained, including: Obtaining the device model of the target device, the operating system version number of the target device, the memory size of the target device, and the memory occupied by the background applications of the target device; Determining a first score based on a device model of the target device; Determining a second score based on the operating system version number of the target device; Determining a third score based on the memory size of the target device; Determining a fourth score based on the memory occupied by background applications of the target device; A device performance score of the target device is determined based on the first score, the second score, the third score, and the fourth score.

4. The method according to claim 3, characterized in that: The determining the device performance score of the target device based on the first score, the second score, the third score, and the fourth score includes: Obtaining a first weight for a device model of the target device, a second weight for an operating system version number of the target device, a third weight for a memory size of the target device, and a fourth weight for a memory occupied by a background application of the target device; A device performance score of the target device is determined based on the first score, the second score, the third score, the fourth score, the first weight, the second weight, the third weight, and the fourth weight.

5. The method according to claim 3, characterized in that: Different device models correspond to different first scores, different operating system version numbers correspond to different second scores, different memory sizes correspond to different third scores, and different background application memory usage corresponds to different fourth scores.

6. The method according to claim 5, characterized in that The memory usage of the background applications of the target device includes the percentage of memory occupied by the background applications; The first score is proportional to the high-end level of the device model, the second score is proportional to the operating system version number; the third score is proportional to the memory size, and the fourth score is inversely proportional to the percentage of memory occupied by the background application.

7. The method according to any one of claims 1 to 6, characterized in that: The parameter information of the simulated screen includes an actual window height of the simulated screen, and the actual window height of the simulated screen changes as the device performance score of the target device changes.

8. The method according to claim 7, characterized in that The step of determining parameter information of a simulated screen based on the device performance score includes: Get the maximum window height set for the simulated screen of the target device; Based on the maximum window height and the device performance score, an actual window height of the simulated screen is determined.

9. The method according to claim 8, characterized in that The determining, based on the maximum window height and the device performance score, an actual window height of the simulated screen includes: converting the device performance score into a device performance percentage; The product of the maximum window height and the device performance percentage is determined, and the product is used as the actual window height of the simulated screen.

10. The method according to any one of claims 1 to 6, characterized in that: After performing the screenshot operation on the entire simulated screen, the method further includes: Display the screenshot results; receiving selection information input by a user, wherein the selection information is used to select a screenshot interval in the screenshot result; Based on the selection information, determining a screenshot interval to be retained; The screenshot interval to be retained is output as a picture file.