CN111813300A - Screen capture method and device - Google Patents
Screen capture method and device Download PDFInfo
- Publication number
- CN111813300A CN111813300A CN202010496167.7A CN202010496167A CN111813300A CN 111813300 A CN111813300 A CN 111813300A CN 202010496167 A CN202010496167 A CN 202010496167A CN 111813300 A CN111813300 A CN 111813300A
- Authority
- CN
- China
- Prior art keywords
- screenshot
- image data
- range
- original
- newly added
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0484—Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
- G06F3/04845—Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range for image manipulation, e.g. dragging, rotation, expansion or change of colour
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2203/00—Indexing scheme relating to G06F3/00 - G06F3/048
- G06F2203/048—Indexing scheme relating to G06F3/048
- G06F2203/04806—Zoom, i.e. interaction techniques or interactors for controlling the zooming operation
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The invention discloses a screenshot method and a screenshot device, wherein the method comprises the following steps: receiving screenshot operation triggered by a user; intercepting an image in the screenshot range according to the screenshot triggering operation to obtain an original screenshot; acquiring screenshot adjusting operation of a user; adjusting the image in the screenshot range according to the screenshot adjusting operation, and acquiring newly added image data in the screenshot range in the frame cache; and performing incremental updating on the original screenshot according to the newly added image data to obtain a target screenshot. The invention solves the problem of low screenshot efficiency caused by the need of calculating repeated image data when large-scale screenshot is carried out in the current screenshot.
Description
Technical Field
The invention relates to the technical field of computers, in particular to a screen capture method and a screen capture device.
Background
At present, the default screen capture function of a mobile phone is to capture the current display image in the screen. However, the scenes used by the user are various, and a large range of screenshots are required at some time. For example, in the process of using a map, a user often needs to perform a large-area screenshot; for another example, when a user browses a computer web page on a mobile phone, a large-scale screenshot of the computer web page on the mobile phone is required. The large-range screenshot of the current mobile phone usually needs to be processed by repeated images, and therefore the screenshot calculation amount is large, screenshot response is slow, and efficiency is low.
Disclosure of Invention
In view of the above problems, the present invention provides a screenshot method and apparatus, which do not need to process repeated images, and solve the problems of large screenshot calculation amount and low screenshot efficiency when large-scale screenshot is performed in the current screenshot.
In a first aspect, the present application provides the following technical solutions through an embodiment of the present application:
a method of screen capture, comprising:
acquiring screenshot triggering operation of a user;
intercepting an image in the screenshot range according to the screenshot triggering operation to obtain an original screenshot;
acquiring screenshot adjusting operation of a user;
adjusting the image in the screenshot range according to the screenshot adjusting operation, and acquiring newly added image data in the screenshot range in a frame cache;
and performing incremental updating on the original screenshot according to the newly added image data to obtain a target screenshot.
Optionally, the adjusting the image in the screenshot range according to the screenshot adjusting operation includes one or more of the following adjustments:
when the screenshot adjusting operation is screenshot translation operation, translating the image in the screenshot range;
when the screenshot adjusting operation is a screenshot amplifying operation, amplifying the screenshot range and the images in the screenshot range;
and when the screenshot adjusting operation is a screenshot reducing operation, reducing the image in the screenshot range.
Optionally, the obtaining, in the frame buffer, the newly added image data in the screenshot range includes:
acquiring position change information of original image data in a screen, wherein the original image data corresponds to the original screenshot;
and acquiring the newly added image data in the frame buffer based on the position change information.
Optionally, the incrementally updating the original screenshot according to the newly added image data to obtain a target screenshot, including:
determining the position relation between the newly added image data and the original image data based on the position change information;
and splicing the newly added image data and the original screenshot based on the position relation to obtain the target screenshot.
Optionally, the obtaining of screenshot adjustment operation of the user includes:
outputting one or more controls on a screen;
and acquiring the screenshot adjusting operation based on the control.
In a second aspect, based on the same inventive concept, the present application provides the following technical solutions through an embodiment of the present application:
a screen capture device, comprising:
the screenshot triggering module is used for acquiring screenshot triggering operation of a user;
the screenshot obtaining module is used for capturing an image in a screenshot range according to the screenshot triggering operation to obtain an original screenshot;
the adjustment triggering module is used for acquiring screenshot adjustment operation of a user;
the screenshot adjusting module is used for adjusting the image in the screenshot range according to the screenshot adjusting operation and acquiring newly added image data in the screenshot range in a frame cache;
and the screenshot updating module is used for performing incremental updating on the original screenshot according to the newly added image data to obtain the target screenshot.
Optionally, the screenshot adjusting module is further configured to perform one or more of the following adjustments:
when the screenshot adjusting operation is screenshot translation operation, translating the image in the screenshot range;
when the screenshot adjusting operation is a screenshot amplifying operation, amplifying the screenshot range and the images in the screenshot range;
and when the screenshot adjusting operation is a screenshot reducing operation, reducing the image in the screenshot range.
Optionally, the screenshot adjusting module is further configured to:
acquiring position change information of original image data in a screen, wherein the original image data corresponds to the original screenshot;
and acquiring the newly added image data in the frame buffer based on the position change information.
In a third aspect, based on the same inventive concept, the present application provides the following technical solutions through an embodiment of the present application:
a user terminal comprising a processor and a memory coupled to the processor, the memory storing instructions that, when executed by the processor, cause the user terminal to perform the steps of the method of any of the first aspects above
In a fourth aspect, based on the same inventive concept, the present application provides the following technical solutions through an embodiment of the present application:
a computer-readable storage medium, having stored thereon a computer program which, when being executed by a processor, carries out the steps of the method of any of the first aspects.
The screenshot method and the screenshot device provided by the embodiment of the invention receive screenshot operation triggered by a user; then, capturing an image in a capture range according to capture triggering operation to obtain an original capture; further, acquiring screenshot adjusting operation of a user; adjusting the image in the screenshot range according to the screenshot adjusting operation, and acquiring newly added image data in the screenshot range in the frame cache; and finally, performing incremental updating on the original screenshot according to the newly added image data to obtain the target screenshot. Because the original screenshot is updated in an incremental updating mode, namely, the original screenshot is updated in an accumulating mode, repeated image data does not exist in the newly added image data and the original screenshot, the repeated image data is avoided being processed, and the processing efficiency of large-range screenshots is improved. Meanwhile, because the newly added image data is obtained from the frame buffer, the obtained response speed is high, and the screenshot processing efficiency is further improved.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the particular embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
fig. 1 is a flowchart illustrating a screenshot method according to a first embodiment of the present invention;
FIG. 2 is a diagram showing an implementation manner of a screenshot box in the first embodiment of the present invention;
FIG. 3 is a schematic diagram illustrating a screen shot shift operation in a first embodiment of the present invention;
FIG. 4 is a schematic diagram illustrating a screenshot magnifying operation in a first embodiment of the present invention;
FIG. 5 is a schematic diagram illustrating a screenshot reduction operation in a first embodiment of the present invention;
fig. 6 shows a schematic structural diagram of a screenshot device provided in a second embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
First embodiment
Referring to fig. 1, a flowchart of a screenshot method provided by a first embodiment of the present invention is shown. The method can be applied to electronic equipment with a screen, such as a mobile phone, a computer, a vehicle-mounted host computer, a smart television and the like.
Specifically, the method comprises the following steps:
step S10: and acquiring screenshot triggering operation of a user.
In step S10, the screenshot triggering operations include, but are not limited to: 1. clicking a virtual key for screenshot preset on a screen; 2. clicking a predefined physical key for screenshot on the electronic equipment; 3. triggering a screenshot through a predefined gesture operation on a touch screen; for example, when the screen is a touch screen, a gesture operation of three-finger touch on the screen and sliding down on the screen triggers screen capture.
Step S20: and intercepting the image in the screenshot range according to the screenshot triggering operation to obtain the original screenshot.
In step S20, the original screenshot corresponds to the image displayed within the screenshot range when the screenshot triggering operation is triggered.
The screenshot scope may be visible or invisible.
When the screenshot range is invisible, the process of capturing the image can be carried out in the background of the electronic equipment. The captured animation or the prompt message is not displayed in the foreground of the screen. For example, a screenshot triggering operation is triggered by a physical key or a predefined gesture; secondly, touch control is carried out on a screen of the electronic equipment to define a screenshot range, and the screenshot range is in a hidden state; and finally, intercepting the image in the screenshot range in the background. In addition, the screenshot range in this example may also be an automatically generated initial range, e.g., the screenshot range is equal to the size of the screen.
When the screenshot range is visible, when the user performs screenshot on the screen, a screenshot frame can be generated according to the triggered screenshot triggering operation, and the range in the screenshot frame is the screenshot range. The size of the original screenshot can be controlled by controlling the size of the screenshot frame, and the original screenshot can be obtained by intercepting the image in the screenshot frame. In addition, after the user triggers the screenshot triggering operation, the user can select or demarcate any area in the screen to form a screenshot frame, and the demarcated area can be in a regular shape or an irregular shape. The size of the cutout frame can be the same as or different from the size of the screen, and the size of the cutout frame can be adjusted through touch control or keys.
In touch screen electronic devices, the size of the cutout frame may be slightly smaller than the screen size. The frame-cutting frame can be surrounded by a semi-transparent part, and controls can be arranged on the semi-transparent part and can be operation buttons. For example, the operation button may be a joystick, and a user may control the frame-capturing frame or the image on the screen to pan through the joystick; such as up, down, left, right, or diagonal translation, the angle of translation may be any direction within the screen. In another example, the operation buttons are page turning buttons, such as a previous page and a next page. As another example, the operation button is an enlargement button/reduction button, and the enlargement button and the reduction button can be used to enlarge and reduce the current image or screenshot box in the screen. By arranging the operation buttons around the screenshot box, gesture operation of a user can be reduced, convenience in operation of the user is improved, and misoperation is reduced. In the electronic device without the touch screen, the operation buttons can be mapped to corresponding entity keys for control.
For example, referring to fig. 2, fig. 2 shows a screenshot box of the present embodiment, and the screenshot box is surrounded by:
a finish button for confirming that the secondary editing of the screenshot is finished;
a delete button for deleting the current screenshot;
a share button for sharing the screenshot;
a screen capture ending button used for confirming that the adjustment of the image in the current screen capture range is finished, such as ending the movement of the image in the left direction, the right direction and the like, or ending the amplification or reduction of the image;
a reset button for restoring the image in the current screenshot range to the initial state or restoring the original screenshot to the initial state;
the page turning device comprises an up page turning button, a down page turning button, a left page turning button and a right page turning button, and is used for turning pages of images in a screen;
in addition, operation buttons such as character editing and image marking can be included.
Further, when the page of the image within the screen is turned by the page turn button, the size of each page turned may be the size of one screenshot range.
In an alternative embodiment, the size of each page may be smaller than the screenshot range. For example, each page turn moves the image within the screenshot by a distance 3/4, 2/3, etc. that is the length or width of the screenshot range. Therefore, whether the images in the screenshot range after page turning are connected in sequence or not can be conveniently consulted, and discontinuity of the screenshot images is avoided when screenshot is carried out in a large range. For example, when the user turns the page to the left, new image content is displayed in the space 2/3 on the right side in the screenshot range, and previous image content is displayed in the space 1/3 on the left side, it is possible to see whether the images in the screenshot range are continuous.
Step S30: and acquiring screenshot adjusting operation of a user.
In step S30, the screenshot adjusting operation may be a screenshot panning operation, a screenshot zooming in operation, and a screenshot zooming out operation. In the touch screen electronic device, the screenshot adjusting operations can be input through the control, and can also be input through a predefined touch gesture in the electronic device, without limitation.
For example, the screenshot translation operation may be pressing the touch screen and dragging an image; the screenshot amplifying operation can be that a touch screen is pressed by two fingers, three fingers or four fingers, and touch points are opened; the screenshot reduction operation can be a double-finger, three-finger or four-finger pressing of the touch screen and folding of the touch points. When the image is enlarged or reduced, the center point of the screen capture range may be used as a base point for enlargement or reduction. Furthermore, when the screenshot zooming-in/zooming-out operation is triggered each time, the image can be continuously zoomed in/out in any proportion, and the image can also be zoomed in/zoomed out by a preset multiple, wherein the preset multiple can be as follows: 1.1 times, 1.2 times, 1.3 times, 1.5 times and the like. Here, the magnification is not limited. But the setting of the magnification can be conveniently controlled, and the situation that the required image details cannot be found is avoided.
Step S40: and adjusting the image in the screenshot range according to the screenshot adjusting operation, and acquiring newly added image data in the screenshot range in the frame cache.
In step S40, it should be noted that, in some implementations, any one of the screenshot panning operation, the screenshot zooming operation, and the screenshot zooming out operation may be selected to be implemented separately. In other implementation manners, any two or all of the screenshot translation operation, the screenshot zooming-in operation and the screenshot zooming-out operation can be selected to be implemented in a combined manner, and the implemented sequence is not limited.
For example, in a particular implementation, the original screenshot may be subjected to both an image movement operation and an image magnification operation. In yet another specific implementation, the original screenshot may be subjected to an image shifting operation and an image downscaling operation simultaneously. In yet another particular implementation, the original screenshot may be subjected to both an image reduction operation and an image enlargement operation. In yet another particular implementation, the original screenshot may be subjected to an image movement operation, an image enlargement operation, and an image reduction operation simultaneously.
Further, when the screenshot adjusting operation is different, the images in the screenshot range are adjusted as follows:
1. and when the screenshot adjusting operation is screenshot translation operation, translating the image in the screenshot range. In the translation, the translation may be performed in units of pixels. For example, the distance of each translation is a preset number of pixels, and the preset pixel value may be 5-20 pixels; specifically, it may be 10 pixels, 15 pixels, 20 pixels, and so on. In the process of translation, the image in the screenshot range is updated, and a newly added image appears in the screenshot range, that is, the newly added image data is loaded at the frame cache position corresponding to the screenshot range.
As shown in fig. 3, before the screenshot shift operation a is performed, there is an original image a2 corresponding to the original screenshot in a screenshot range a 1. When the screen shot shift operation a is performed, the original image a2 is partially shifted outside the screen shot range a1, and a new image a3 appears within the screen shot range a 1. At this time, the image data corresponding to the newly added image a3 is already loaded into the frame buffer.
In the screenshot process, if the image displayed in the screen is the image corresponding to the local file, the image data in the frame cache is continuously updated based on the local file along with the movement of the image, and the newly-added image data in the screenshot range is acquired in the frame cache after the image data is updated. If the displayed image is an image corresponding to the internet resource, the electronic device can continuously load image data when the image is displayed from the internet into the frame cache when the image moves, and obtain newly-added image data in the screenshot range in the frame cache after the image data is loaded.
2. And when the screenshot adjusting operation is a screenshot amplifying operation, amplifying the screenshot range and the image in the screenshot range. More image detail may be shown on the image. The enlargement of the screenshot range can ensure that the captured image can still reach the proportional size before the screenshot enlargement operation is executed. For example, when exactly one apple can be accommodated in the screenshot range, after the screenshot enlarging operation is performed, the screenshot range and the image in the screenshot range are simultaneously enlarged, so that the apple can still be accommodated in the screenshot range. But at this time, more abundant details on the apple can be displayed within the screenshot range.
In the screenshot process, if the displayed image is the image corresponding to the local file, the newly added image data in the screenshot range can be completely loaded into the frame cache according to the current pixel density of the screen after the screenshot amplifying operation is triggered. If the displayed image is an image corresponding to the internet resource, the newly added image data in the screenshot range can be completely loaded into the frame cache through the internet according to the density of the current pixels after the screenshot amplifying operation is triggered. For example, when a screenshot is taken in a map application and after a zoom-in operation occurs, the map application may download the displayable detail data newly added in the screenshot range through the internet and load the detail data into the frame buffer. At this time, newly added image data in the screenshot range is obtained from the frame buffer, and the newly added image data is detail data of the original screenshot. And when the screenshot range exceeds the screen range, the detail data of the original screenshot corresponding to the part exceeding the screen is still loaded into the frame cache.
As shown in fig. 4, before the screen shot enlarging operation B is performed, the screen shot range B1 is equal in size to the screen range B3. And an original image b2 corresponding to the original screenshot is arranged in a screenshot range b 1. After the screenshot amplifying operation B is executed, amplifying a screenshot range B1, and determining that the amplified screenshot range is B1'; the original image b2 is enlarged to determine an enlarged image b 2'. And b1 'and b 2' are all beyond the screen range b3, and more image details related to the image b2 'can be loaded in the screenshot range b 1'. At this time, the image data corresponding to the image details is already loaded into the frame buffer.
3. And when the screenshot adjusting operation is a screenshot reducing operation, reducing the image in the screenshot range. When the image in the screenshot range is reduced, the screenshot range cannot be filled by the image content of the original screenshot. New image content will appear within the screenshot. At this time, the new image data corresponding to the new image content is loaded in the frame buffer. The loading process can be local loading or internet loading. Finally, the newly added image data in the screenshot range can be obtained in the frame buffer.
As shown in fig. 5, before the screenshot reducing operation C is performed, an original image C2 corresponding to the original screenshot is provided in the screenshot range C1. After the screen shot reduction operation C is performed, the original image C2 is reduced to be within the screen shot range C1, and an image C2' corresponding to the reduced original image C2 is determined. Within the screenshot range c1 a new image c3 appears. At this time, the image data corresponding to the newly added image c3 has already been loaded into the frame buffer.
The data corresponding to the original screenshot in the frame buffer is the original image data. And acquiring newly added image data in the screenshot range in the frame buffer according to the position change information of the original image data, wherein the original image data corresponds to the original screenshot. Namely: acquiring position change information of original image data in a screen; and acquiring newly added image data in the frame buffer based on the position change information. Therefore, the image data in the frame buffer can be prevented from being completely acquired, and the newly added image data can be acquired independently by calculating the position change, so that the subsequent incremental updating can be conveniently carried out. Specifically, the calculation of the position change may be performed based on the screen coordinate system.
For example:
when the screenshot shifting operation is performed, the position change information is calculated once every shifting of a preset number of pixels. Coordinate interval of screenshot range is X1The coordinate interval of the original image data displayed in the screen is also X1. After translation, the coordinate interval of the original image data displayed in the screen is changed from X1Change to X1'. By X1And X1The coordinates of the newly added image data within the screenshot can be determined and the newly added image data determined in the frame buffer.
In performing the screenshot enlarging operation, the position change information may be calculated every time a preset ratio is enlarged, which may be 1.02, 1.04, 1.1, 1.2, 1.5, and so on. Coordinate interval of screenshot range is X2The coordinate interval of the original image data displayed in the screen is also X2. After amplification, the coordinate interval of the original image data displayed in the screen and the coordinate interval of the screenshot range are both X2Change to X2'. More pixel points are used for displaying original image data in the screenshot range; at X2' In will be able to display the image details of the original image. The image details of these original images are uniformly distributed in X2Within range and corresponds to the newly added image data. Based on X2' the coordinates of the image details are loaded in the range, so that the newly added image data can be determined in the frame buffer.
When the screenshot reducing operation is performed, the position change information can be calculated every time the preset scale is reduced. Coordinate interval of screenshot range is X3The coordinate interval of the original image data displayed in the screen is also X3. After the reduction, the coordinate interval of the original image data displayed in the screen is changed from X3Change to X3'. By X3、X3The coordinates of the newly added image data within the screenshot can be determined and the newly added image data determined in the frame buffer.
Step S50: and performing incremental updating on the original screenshot according to the newly added image data to obtain a target screenshot.
The step S50 specifically includes the following implementation processes: determining the position relation between the newly added image data and the original image data based on the position change information; and splicing the newly added image data and the original screenshot based on the position relation to obtain the target screenshot.
In step S50, the positional relationship indicates the relative position of the newly added image data and the original image data. And splicing the newly added image data at the corresponding position on the original screenshot based on the position relation.
For example:
1. and executing screenshot translation operation.
When the original image data moves leftwards, the newly added image data is on the right side of the original image data, and the newly added image data is accumulated and spliced on the right side of the original screenshot; when the original image data moves rightwards, newly added image data are on the left side of the original image data, and the newly added image data are accumulated and spliced on the left side of the original screenshot; when the original image data moves upwards, the newly added image data is below the original image data, and the newly added image data is spliced below the original screenshot in an accumulated mode; when the original image data moves downwards, the newly added image data is positioned above the original image data, and the newly added image data is accumulated and spliced above the original screenshot.
2. And executing screenshot amplifying operation.
The newly added image data are distributed in the original image data, so that the newly added image data are accumulated and spliced in the original screenshot.
3. And executing screenshot reducing operation.
The newly added image data is around the original image data, and thus, the newly added image data is cumulatively stitched around the original screenshot.
In this embodiment, splicing of newly added image data may be continuously performed in the process of screenshot adjustment operation; and splicing the newly added image data after the adjustment operation is finished. The above splicing processes are all incremental updates. Moreover, the stitching in this embodiment includes stitching at an edge of the original screenshot, and also includes stitching at a middle position of the original screenshot. The splicing process does not involve the processing of repeated image data, has higher efficiency and can obtain the target screenshot more quickly.
It should be noted that when the screenshot adjusting operation is a screenshot translating operation, splicing of the newly added image data in the original screenshot needs to be continuously performed in the process of executing the screenshot translating operation, so that the newly added image data is prevented from being removed from the frame cache after being loaded into the frame cache.
Further, when the screenshot adjusting operation is screenshot translation operation, newly added image data is spliced at the edge of the original screenshot to generate the target screenshot. That is, the newly added image data is accumulated and spliced at the corresponding edge of the original screenshot to form incremental update. The image range is increased on the basis of the original screenshot in each movement, and large-range screenshot is realized.
When the screenshot adjusting operation is the screenshot amplifying operation, the screenshot range is also amplified, and at the moment, the newly added image data in the screenshot range is the image details which are not displayed on the whole original screenshot. The finally obtained target screenshot is still the image range of the original screenshot; and more image details are intercepted under the condition of ensuring that the image range is not reduced.
When the screenshot adjusting operation is the screenshot reducing operation, the image in the screenshot range is reduced, and more image ranges can be displayed in the screenshot range. After the image is reduced, more newly added image data are spliced at the edge of the original screenshot, so that the image range of the target screenshot is larger. And large-range screenshot is realized through screenshot reducing operation.
It should be noted that, after steps S10-S50 are completed in this embodiment, the target screenshot may be subjected to conventional image processing, such as cropping, rotation, white balance adjustment, exposure adjustment, recoloring, grayscale processing, and the like, without limitation.
In summary, in the screenshot method provided in this embodiment, a screenshot operation triggered by a user is received; then, capturing an image in a capture range according to capture triggering operation to obtain an original capture; further, acquiring screenshot adjusting operation of a user; adjusting the image in the screenshot range according to the screenshot adjusting operation, and acquiring newly added image data in the screenshot range in the frame cache; and finally, performing incremental updating on the original screenshot according to the newly added image data to obtain the target screenshot. Because the original screenshot is updated in an incremental updating mode, namely, the original screenshot is updated in an accumulating mode, repeated image data does not exist in the newly added image data and the original screenshot, the repeated image data is avoided being processed, and the processing efficiency of large-range screenshots is improved. Meanwhile, because the newly added image data is obtained from the frame buffer, the obtained response speed is high, and the screenshot processing efficiency is further improved.
Second embodiment
Referring to fig. 6, a screenshot device 300 according to a second embodiment of the present invention is provided based on the same inventive concept. Fig. 5 shows a schematic structural diagram of a screenshot device 300 according to a second embodiment of the present invention.
The screenshot device 300 includes:
a screenshot triggering module 301, configured to obtain a screenshot triggering operation of a user;
a screenshot obtaining module 302, configured to capture an image within a screenshot range according to the screenshot triggering operation, so as to obtain an original screenshot;
an adjustment triggering module 303, configured to obtain a screenshot adjustment operation of a user;
a screenshot adjusting module 304, configured to adjust an image in the screenshot range according to the screenshot adjusting operation, and obtain image data newly added in the screenshot range in a frame cache;
and a screenshot updating module 305, configured to perform incremental updating on the original screenshot according to the newly added image data to obtain a target screenshot.
As an optional implementation manner, the screenshot adjusting module 304 is further configured to perform one or more of the following adjustments:
when the screenshot adjusting operation is screenshot translation operation, translating the image in the screenshot range; when the screenshot adjusting operation is a screenshot amplifying operation, amplifying the screenshot range and the images in the screenshot range; and when the screenshot adjusting operation is a screenshot reducing operation, reducing the image in the screenshot range.
As an optional implementation manner, the screenshot adjusting module 304 is further configured to:
acquiring position change information of original image data in a screen, wherein the original image data corresponds to the original screenshot; and acquiring the newly added image data in the frame buffer based on the position change information.
As an optional implementation manner, the screenshot updating module 305 is further configured to:
determining the position relation between the newly added image data and the original image data based on the position change information; and splicing the newly added image data and the original screenshot based on the position relation to obtain the target screenshot.
As an optional implementation manner, the adjustment triggering module 303 is further configured to:
outputting one or more controls on a screen; and acquiring the screenshot adjusting operation based on the control.
It should be noted that the apparatus 300 according to the embodiment of the present invention is implemented and produces the same technical effects as the foregoing method embodiments, and for the sake of brief description, reference may be made to the corresponding contents in the foregoing method embodiments for the parts of the apparatus embodiments that are not mentioned.
Third embodiment
Based on the same inventive concept, the present embodiment also provides a user terminal comprising a processor and a memory, the memory being coupled to the processor, the memory storing instructions that, when executed by the processor, cause the user terminal to perform the steps of any of the methods disclosed in the first embodiment.
It should be noted that, when the user terminal provided in the embodiment of the present invention executes the steps of the method disclosed in the first embodiment, the specific implementation and the generated technical effects are the same as those in the first embodiment, and for a brief description, corresponding contents in the first embodiment may be referred to for non-mentioned points in this embodiment.
Fourth embodiment
Based on the same inventive concept, the present embodiment also provides a computer-readable storage medium on which a computer program is stored, which, when being executed by a processor, implements the steps of any of the methods disclosed in the first embodiment.
It should be noted that, when the computer-readable storage medium provided in the embodiment of the present invention executes the steps of the method disclosed in the first embodiment, the specific implementation and the generated technical effects are the same as those in the first embodiment, and for brief description, corresponding contents in the first embodiment may be referred to for nothing mentioned in this embodiment.
Further, when the present embodiment implements all or part of the flow in the method of the first embodiment, the method may be implemented by controlling related hardware through a computer program, where the computer program may be stored in the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the method embodiments may be implemented. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like. It should be noted that the computer readable medium may contain content that is subject to appropriate increase or decrease as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media does not include electrical carrier signals and telecommunications signals as is required by legislation and patent practice.
The algorithms and displays presented herein are not inherently related to any particular computer, virtual machine, or other apparatus. Various general purpose systems may also be used with the teachings herein. The required structure for constructing such a system will be apparent from the description above. Moreover, the present invention is not directed to any particular programming language. It is appreciated that a variety of programming languages may be used to implement the teachings of the present invention as described herein, and any descriptions of specific languages are provided above to disclose the best mode of the invention.
In the description provided herein, numerous specific details are set forth. It is understood, however, that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, various features of the invention are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the disclosure and aiding in the understanding of one or more of the various inventive aspects. However, the disclosed method should not be interpreted as reflecting an intention that: that the invention as claimed requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the detailed description are hereby expressly incorporated into this detailed description, with each claim standing on its own as a separate embodiment of this invention.
Those skilled in the art will appreciate that the modules in the device in an embodiment may be adaptively changed and disposed in one or more devices different from the embodiment. The modules or units or components of the embodiments may be combined into one module or unit or component, and furthermore they may be divided into a plurality of sub-modules or sub-units or sub-components. All of the features disclosed in this specification (including any accompanying claims, abstract and drawings), and all of the processes or elements of any method or apparatus so disclosed, may be combined in any combination, except combinations where at least some of such features and/or processes or elements are mutually exclusive. Each feature disclosed in this specification (including any accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
Furthermore, those skilled in the art will appreciate that while some embodiments herein include some features included in other embodiments, rather than other features, combinations of features of different embodiments are meant to be within the scope of the invention and form different embodiments. For example, in the following claims, any of the claimed embodiments may be used in any combination.
The various component embodiments of the invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art will appreciate that a microprocessor or Digital Signal Processor (DSP) may be used in practice to implement some or all of the functionality of some or all of the components in an apparatus according to an embodiment of the invention. The present invention may also be embodied as apparatus or device programs (e.g., computer programs and computer program products) for performing a portion or all of the methods described herein. Such programs implementing the present invention may be stored on computer-readable media or may be in the form of one or more signals. Such a signal may be downloaded from an internet website or provided on a carrier signal or in any other form.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The usage of the words first, second and third, etcetera do not indicate any ordering. These words may be interpreted as names.
Claims (10)
1. A method of screenshot, comprising:
acquiring screenshot triggering operation of a user;
intercepting an image in the screenshot range according to the screenshot triggering operation to obtain an original screenshot;
acquiring screenshot adjusting operation of a user;
adjusting the image in the screenshot range according to the screenshot adjusting operation, and acquiring newly added image data in the screenshot range in a frame cache;
and performing incremental updating on the original screenshot according to the newly added image data to obtain a target screenshot.
2. The method of claim 1, wherein the adjusting the image within the screenshot range according to the screenshot adjusting operation comprises one or more of:
when the screenshot adjusting operation is screenshot translation operation, translating the image in the screenshot range;
when the screenshot adjusting operation is a screenshot amplifying operation, amplifying the screenshot range and the images in the screenshot range;
and when the screenshot adjusting operation is a screenshot reducing operation, reducing the image in the screenshot range.
3. The method according to claim 1, wherein the obtaining of the image data added in the screenshot range in the frame buffer includes:
acquiring position change information of original image data in a screen, wherein the original image data corresponds to the original screenshot;
and acquiring the newly added image data in the frame buffer based on the position change information.
4. The method of claim 3, wherein the incrementally updating the original screenshot according to the newly added image data to obtain a target screenshot comprises:
determining the position relation between the newly added image data and the original image data based on the position change information;
and splicing the newly added image data and the original screenshot based on the position relation to obtain the target screenshot.
5. The method according to any one of claims 1 to 4, wherein the obtaining of the screenshot adjustment operation of the user comprises:
outputting one or more controls on a screen;
and acquiring the screenshot adjusting operation based on the control.
6. A screen capture device, comprising:
the screenshot triggering module is used for acquiring screenshot triggering operation of a user;
the screenshot obtaining module is used for capturing an image in a screenshot range according to the screenshot triggering operation to obtain an original screenshot;
the adjustment triggering module is used for acquiring screenshot adjustment operation of a user;
the screenshot adjusting module is used for adjusting the image in the screenshot range according to the screenshot adjusting operation and acquiring newly added image data in the screenshot range in a frame cache;
and the screenshot updating module is used for performing incremental updating on the original screenshot according to the newly added image data to obtain the target screenshot.
7. The apparatus of claim 6, wherein the screenshot adjustment module is further configured to perform one or more of the following adjustments:
when the screenshot adjusting operation is screenshot translation operation, translating the image in the screenshot range;
when the screenshot adjusting operation is a screenshot amplifying operation, amplifying the screenshot range and the images in the screenshot range;
and when the screenshot adjusting operation is a screenshot reducing operation, reducing the image in the screenshot range.
8. The apparatus of claim 6, wherein the screenshot adjustment module is further configured to:
acquiring position change information of original image data in a screen, wherein the original image data corresponds to the original screenshot;
and acquiring the newly added image data in the frame buffer based on the position change information.
9. A user terminal comprising a processor and a memory coupled to the processor, the memory storing instructions that, when executed by the processor, cause the user terminal to perform the steps of the method of any of claims 1-5.
10. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 5.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010496167.7A CN111813300A (en) | 2020-06-03 | 2020-06-03 | Screen capture method and device |
PCT/CN2020/099947 WO2021243788A1 (en) | 2020-06-03 | 2020-07-02 | Screenshot method and apparatus |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010496167.7A CN111813300A (en) | 2020-06-03 | 2020-06-03 | Screen capture method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN111813300A true CN111813300A (en) | 2020-10-23 |
Family
ID=72848741
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010496167.7A Pending CN111813300A (en) | 2020-06-03 | 2020-06-03 | Screen capture method and device |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN111813300A (en) |
WO (1) | WO2021243788A1 (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112379815A (en) * | 2020-12-07 | 2021-02-19 | 腾讯科技(深圳)有限公司 | Image capturing method and device, storage medium and electronic equipment |
CN112578974A (en) * | 2020-12-15 | 2021-03-30 | 珠海读书郎网络教育有限公司 | Wearable device screen capture control method based on distance measurement |
CN112764621A (en) * | 2021-01-25 | 2021-05-07 | 维沃移动通信有限公司 | Screenshot method and device and electronic equipment |
CN113805993A (en) * | 2021-09-03 | 2021-12-17 | 四川新网银行股份有限公司 | Method for quickly and continuously capturing pictures |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114300100B (en) * | 2021-12-31 | 2024-11-05 | 有方(合肥)医疗科技有限公司 | Method and device for generating CT image report based on virtual screenshot technology |
CN119807005B (en) * | 2025-03-12 | 2025-07-01 | 客思服(杭州)科技有限公司 | A method and system for intelligently comparing network data |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102708540A (en) * | 2012-04-21 | 2012-10-03 | 上海量明科技发展有限公司 | Method and client side for zooming screen capturing areas |
WO2012142055A1 (en) * | 2011-04-11 | 2012-10-18 | Zinio, Llc | Reader with enhanced user functionality |
CN104360816A (en) * | 2014-11-27 | 2015-02-18 | 广东欧珀移动通信有限公司 | Screen capture method and system |
CN106484256A (en) * | 2016-09-20 | 2017-03-08 | 珠海市魅族科技有限公司 | Sectional drawing joining method and device |
CN106610831A (en) * | 2015-10-26 | 2017-05-03 | 北京国双科技有限公司 | Webpage screenshot method and device |
CN110007833A (en) * | 2019-02-27 | 2019-07-12 | 深圳点猫科技有限公司 | A kind of intelligence programming implementation method and device realized terminal screen and roll screenshot |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106547505B (en) * | 2015-09-22 | 2021-02-05 | 同方威视技术股份有限公司 | Method and system for real-time sliding display of scanned image |
CN105487766A (en) * | 2015-11-24 | 2016-04-13 | 努比亚技术有限公司 | Picture capture method and apparatus |
CN106383641A (en) * | 2016-09-05 | 2017-02-08 | 苏州奥普特克自动化科技有限公司 | Exercise screenshot editing method and apparatus |
CN107369197B (en) * | 2017-07-05 | 2022-04-15 | 腾讯科技(深圳)有限公司 | Picture processing method, device and equipment |
CN108363535B (en) * | 2018-02-09 | 2020-10-27 | 网易(杭州)网络有限公司 | Picture display method and device, storage medium, processor and terminal |
-
2020
- 2020-06-03 CN CN202010496167.7A patent/CN111813300A/en active Pending
- 2020-07-02 WO PCT/CN2020/099947 patent/WO2021243788A1/en active Application Filing
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2012142055A1 (en) * | 2011-04-11 | 2012-10-18 | Zinio, Llc | Reader with enhanced user functionality |
CN102708540A (en) * | 2012-04-21 | 2012-10-03 | 上海量明科技发展有限公司 | Method and client side for zooming screen capturing areas |
CN104360816A (en) * | 2014-11-27 | 2015-02-18 | 广东欧珀移动通信有限公司 | Screen capture method and system |
CN106610831A (en) * | 2015-10-26 | 2017-05-03 | 北京国双科技有限公司 | Webpage screenshot method and device |
CN106484256A (en) * | 2016-09-20 | 2017-03-08 | 珠海市魅族科技有限公司 | Sectional drawing joining method and device |
CN110007833A (en) * | 2019-02-27 | 2019-07-12 | 深圳点猫科技有限公司 | A kind of intelligence programming implementation method and device realized terminal screen and roll screenshot |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112379815A (en) * | 2020-12-07 | 2021-02-19 | 腾讯科技(深圳)有限公司 | Image capturing method and device, storage medium and electronic equipment |
CN112578974A (en) * | 2020-12-15 | 2021-03-30 | 珠海读书郎网络教育有限公司 | Wearable device screen capture control method based on distance measurement |
CN112578974B (en) * | 2020-12-15 | 2021-11-23 | 珠海读书郎网络教育有限公司 | Wearable device screen capture control method based on distance measurement |
CN112764621A (en) * | 2021-01-25 | 2021-05-07 | 维沃移动通信有限公司 | Screenshot method and device and electronic equipment |
CN113805993A (en) * | 2021-09-03 | 2021-12-17 | 四川新网银行股份有限公司 | Method for quickly and continuously capturing pictures |
CN113805993B (en) * | 2021-09-03 | 2023-06-06 | 四川新网银行股份有限公司 | Method for rapidly and continuously capturing images |
Also Published As
Publication number | Publication date |
---|---|
WO2021243788A1 (en) | 2021-12-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111813300A (en) | Screen capture method and device | |
US10547778B2 (en) | Image display device for displaying an image in an image display area, and storage medium storing image display program for displaying an image in an image display area | |
US10430075B2 (en) | Image processing for introducing blurring effects to an image | |
JP7453471B2 (en) | Picture processing method, apparatus, device and storage medium | |
US20030038832A1 (en) | System and method for enabling users to edit graphical images | |
EP3822757B1 (en) | Method for setting background of ui control | |
CN102812490A (en) | Image processing device and electronic equipment | |
JP5616223B2 (en) | System and method for capturing digital images | |
JP3725368B2 (en) | Image display selection method, computer system, and recording medium | |
CN113986076B (en) | Icon display control method, device, electronic device and storage medium | |
CN107566723A (en) | A kind of image pickup method, mobile terminal and computer-readable recording medium | |
CN111258698A (en) | Object display method and device | |
CN109739403B (en) | Method and apparatus for processing information | |
US20130236117A1 (en) | Apparatus and method for providing blurred image | |
JP6010303B2 (en) | Image playback device | |
CN116521039B (en) | Method and device for moving covered view, electronic equipment and readable storage medium | |
CN106354381B (en) | Image file processing method and device | |
KR101911947B1 (en) | Screen design method and screen design system for improving information readability and harmonizing background image | |
JP2020140560A (en) | Electronic devices and their control methods and programs | |
CN116228540A (en) | Image processing method, device, storage medium and electronic equipment | |
CN117667283A (en) | Wallpaper setting method, device, equipment and readable storage medium | |
CN113268189A (en) | Atlas management method, apparatus, storage medium and computer device | |
CN115033311A (en) | A method, device and related components for realizing Qt previewing large-size pictures | |
CN112312022A (en) | Image processing method, image processing device, electronic device, and storage medium | |
CN115456882A (en) | Image processing method, device, electronic device and medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20201023 |