WO2022116886A1 - Screenshot method and screenshot apparatus - Google Patents

Screenshot method and screenshot apparatus Download PDF

Info

Publication number
WO2022116886A1
WO2022116886A1 PCT/CN2021/132979 CN2021132979W WO2022116886A1 WO 2022116886 A1 WO2022116886 A1 WO 2022116886A1 CN 2021132979 W CN2021132979 W CN 2021132979W WO 2022116886 A1 WO2022116886 A1 WO 2022116886A1
Authority
WO
WIPO (PCT)
Prior art keywords
image
screenshot
sub
screen
electronic device
Prior art date
Application number
PCT/CN2021/132979
Other languages
French (fr)
Chinese (zh)
Inventor
陈虎
王春野
Original Assignee
维沃移动通信有限公司
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by 维沃移动通信有限公司 filed Critical 维沃移动通信有限公司
Publication of WO2022116886A1 publication Critical patent/WO2022116886A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction 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/04845Interaction 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction 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/0485Scrolling or panning

Definitions

  • the present application belongs to the field of communication technologies, and in particular relates to a screen capture method and a screen capture device.
  • the inventor found that there are at least the following problems in the related art: the method of reducing the page size and then taking a screenshot will cause the obtained screenshot image to be very blurred or distorted; using the long screenshot function, only the content of the page can be scrolled up and down. , cannot meet the needs of clear and complete screenshots of documents of different sizes.
  • the purpose of the embodiments of the present application is to provide a screen capture method and device, which can solve the defect in the related art that a clear and complete screen capture of a large file cannot be achieved.
  • an embodiment of the present application provides a method for taking screenshots, and the method includes:
  • the image size of the target file is larger than the screen size of the electronic device, and at least one of the image sub-areas is used as the target image sub-area.
  • an embodiment of the present application provides a screen capture device, including:
  • a first receiving module receiving multiple first inputs
  • a first response module in response to the first input, respectively displaying a plurality of image sub-regions of the target file on the screen of the electronic device;
  • the screen capture processing module in the case of satisfying the screen capture trigger condition, captures the screen to obtain the screen capture sub-image corresponding to the target image sub-region;
  • an image processing unit outputting a screenshot target image based on the screenshot sub-image
  • the image size of the target file is larger than the screen size of the electronic device, and at least one of the image sub-areas is used as the target image sub-area.
  • embodiments of the present application provide an electronic device, the electronic device includes a processor, a memory, and a program or instruction stored on the memory and executable on the processor, the program or instruction being The processor implements the steps of any one of the screenshot methods described in the first aspect when executed.
  • an embodiment of the present application provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or instruction is executed by a processor, the screenshot according to any one of the first aspect is implemented steps of the method.
  • an embodiment of the present application provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to run a program or an instruction, and implement the first aspect Any of the steps of the screenshot method.
  • the screenshot method, device, electronic device, and storage medium provided by the embodiments of the present application can screenshot the target content in a large file multiple times according to the user's choice, and then combine and splicing the screenshot images to obtain a complete and clear large file.
  • the screenshot of the file can meet the user's selection requirements for the content of the screenshot, and effectively improve the quality of the screenshot image.
  • Fig. 1 is one of the schematic flowcharts of the screenshot method provided by the embodiment of the present application.
  • Fig. 2 is the schematic diagram that the target file a provided by the application is displayed in sub-regions by the screen of the electronic device;
  • FIG. 3 is a schematic diagram of a process interface for performing a screen capture operation provided by an embodiment of the present application
  • FIG. 4 is the second schematic flowchart of the screen capture method provided by the embodiment of the present application.
  • FIG. 5 is a third schematic flowchart of a screen capture method provided by an embodiment of the present application.
  • FIG. 6 is a schematic structural diagram of a screen capture device provided by an embodiment of the present application.
  • FIG. 7 is one of the schematic structural diagrams of an electronic device provided by an embodiment of the present application.
  • FIG. 8 is a second schematic structural diagram of an electronic device provided by an embodiment of the present application.
  • FIG. 1 is a schematic flowchart of a screen capture method provided by an embodiment of the present application. As shown in FIG. 1 , the screen capture method may include the following steps:
  • Step 11 The electronic device receives multiple first inputs from the user.
  • the screenshot method provided by this application can be used in the following scenarios: when a user uses a document editing tool such as wps or other APP on an electronic device to implement large document editing processing, after completing the document processing work, if the user wants to After performing screenshot processing on the latter document, the target screenshot image can be obtained through the screenshot operation of the electronic device.
  • a document editing tool such as wps or other APP
  • the large document mentioned here refers to a document that cannot be completely displayed on the screen of the electronic device without scaling it when it is displayed by an electronic device.
  • the processing object of the screenshot method provided by the present application can be a target file of any image size, which can especially solve the problem that the screenshot processing of large-size and large-content documents cannot be implemented in the related screenshot technology to obtain clear and complete screenshots.
  • the purpose of the first input made by the user to the electronic device is to adjust the content of the target file displayed on the screen of the electronic device on the screen of the electronic device.
  • FIG. 2 is a schematic diagram of the target file a provided by the present application being displayed by sub-regions on the screen of an electronic device.
  • the image of a certain target file hereinafter referred to as the target file a
  • the target file a is 43 cm long and 43 cm wide. is 32cm; as shown in the filled area in Figure 2, it is assumed that the screen of the electronic device used for processing is 16cm long and 9cm wide.
  • the image of the entire target file can be divided into 4*3 total 12 image sub-regions, and in One of the 12 image sub-areas is displayed on the screen of the electronic device.
  • the image size of each image sub-region is the same as the screen size of the electronic device.
  • the image sub-region displayed on the screen of the electronic device can be replaced and adjusted according to the first input, so as to ensure that all contents of the target file can be displayed completely.
  • the first input may be a sliding input of the user's finger to the left, right, up or down on the screen, which is similar to the operation when reading an e-book on an electronic device.
  • the first input may also be an operation of inputting one of the page numbers to the electronic device selected by the user according to the total number of pages to be displayed in the image of the target file.
  • the total number of pages that the image of the target file needs to be displayed on the screen of the electronic device is 10, and the number 2 can be input to the electronic device to directly jump to the second page of the 10 pages.
  • a horizontal scroll bar and a vertical scroll bar may also be provided on the screen of the electronic device corresponding to the paging situation of the target file in the horizontal direction and the vertical direction on the electronic device.
  • the first input may be a sliding input after long pressing the scroll bar, or a click input in the sliding track area of the scroll bar.
  • Step 12 In response to the first input, respectively display a plurality of image sub-regions of the target file on the screen of the electronic device.
  • the target file is displayed on the screen of the electronic device.
  • the portion of the target file that is displayed on the screen of the electronic device at a time is called an image sub-area.
  • the content of the target file displayed on the screen of the electronic device may be based on the direction of the sliding input and the input trajectory. Corresponding changes are made to display a series of image sub-regions on the screen of the electronic device.
  • the jump can be performed in units of each image sub-region, and multiple image sub-regions corresponding to the target file are displayed on the screen of the electronic device in sequence.
  • Step 13 Under the condition that the triggering condition of the screenshot is satisfied, take the screenshot to obtain the screenshot sub-image corresponding to the sub-region of the target image. Wherein, at least one of the image sub-regions is the target image sub-region.
  • the number of image sub-regions of the target file displayed on the screen of the electronic device is generally larger. What is displayed on the screen of the device is an image corresponding to a series of image sub-regions.
  • the user can select from the displayed image sub-regions according to actual needs.
  • Part of the target image sub-regions are screen-captured to obtain one or more screen-capture sub-images.
  • the screen of the electronic device displays multiple image sub-regions in sequence, for the currently displayed image sub-region, if it is determined that it satisfies the screenshot trigger condition, the currently displayed image sub-region will be The image sub-area is used as the screenshot object, and the screenshot processing is performed on it.
  • satisfying the screenshot trigger condition may be receiving a user screenshot operation instruction, for example, the user presses a preset shortcut key or interacts with a finger to input a preset sliding track on the screen of the electronic device.
  • satisfying the above-mentioned triggering condition for screenshot may also be that the screenshot operation is automatically performed by the electronic device according to a preset time interval.
  • the above-mentioned fulfillment of the screenshot triggering condition may also be that a screenshot operation is performed when the electronic device determines that the duration for which the screen of the electronic device keeps the currently displayed content unchanged exceeds the first preset duration. If it is determined that the duration for which the screen of the electronic device keeps the currently displayed content unchanged is 3 seconds, and the first preset duration is 2 seconds, it is determined that the user plans to use the content currently displayed on the screen of the electronic device as the target screenshot sub-image, Therefore, a screenshot operation is performed on the content currently displayed on the screen of the electronic device.
  • Step 14 Based on the screenshot sub-image, output the screenshot target image.
  • At least one frame of screenshot sub-image can be acquired through step 13 .
  • the target image for screenshots required by the user is only a certain target image sub-area among multiple image sub-areas of the target file
  • the user sends the electronic device to the target image sub-area.
  • the input of a screen capture operation so that the screen capture trigger condition is satisfied, so that the screen capture sub-image corresponding to the target image sub-region can be obtained.
  • each image sub-region of the target file is displayed in sequence on the screen of the electronic device During the process, the user can input a screen capture operation to the electronic device every time the target image sub-area appears, so as to perform a screen-capture operation for each target image sub-area that appears, so that multiple frames of screen capture sub-areas can be obtained. image.
  • all the screenshot sub-images are subjected to image processing, such as image stitching, to obtain a screenshot target image composed of all the screenshot sub-images.
  • the user's screenshot target image is the full screenshot image of the target file
  • the user can take screenshots of all the image sub-regions separately to obtain to the full screen shot of the target file.
  • the user can view, edit and share the screenshot target image.
  • the screenshot method provided by the present application can take screenshots of the target content in a large file multiple times according to the user's choice, and then combine and splicing the screenshot images to obtain a complete and clear screenshot of the large file, which can satisfy the user's selection of the screenshot content. requirements and effectively improve the quality of screenshots.
  • a progress bar logo is displayed on the screen of the electronic device, and the progress bar logo includes a vertical progress bar logo and a horizontal progress bar logo;
  • the total sliding track identified by the horizontal progress bar is adapted to the image width of the target file
  • the total sliding track identified by the vertical progress bar is adapted to the image length of the target file
  • the screen-captured part and the non-screen-captured part of the target file are marked on the progress bar identifier through different progress bar intervals.
  • FIG. 3 is a schematic diagram of a process interface for performing a screen capture operation provided by an embodiment of the present application.
  • a progress is set on the screen capture interface of the screen of the electronic device. Strip ID.
  • a full screen shot or a partial screen shot of a large document whose image size is larger than the screen size of the electronic device can be taken, mainly by controlling the image of the target file currently displayed on the screen of the electronic device through the first input of the user sub-regions, to obtain the screenshot sub-images corresponding to the target image sub-regions by selectively taking screenshots of the image sub-regions, and finally combine all the screenshot sub-images into the screenshot target image.
  • the screen capture method provided by the present application by setting the progress bar mark on the screen capture interface, can satisfy the user's input (such as sliding input or jog input) to the progress bar mark, and realize the target displayed on the screen. Toggles the image sub-area of the file.
  • the image length of the target document is generally the same as the screen length of the electronic device by means of scaling. , and then take a screenshot.
  • the screen capture method may cause distortion of the screen capture target image, the screen capture method provided by the present application does not need to zoom the image of the target document.
  • the first input in step 11 may be a drag operation after the user long presses at least one of the vertical progress bar identifier and the horizontal progress bar identifier with one finger.
  • the progress bar identifier may be a bar-like structure, wherein the horizontal progress bar identifier is parallel to the bottom edge of the screen of the electronic device, and the vertical progress bar identifier is parallel to the side edge of the screen of the electronic device.
  • the horizontal progress bar logo can be set on the top or bottom of the screen of the electronic device, and the horizontal progress bar logo can be set on the left or right side of the screen of the electronic device, which is not specifically limited in this application.
  • the total sliding track marked by the horizontal progress bar is adapted to the image width of the target file
  • the total sliding track marked by the vertical progress bar is adapted to the image length of the target file.
  • the image size of the target file can be obtained first, and then the first ratio of the total image width of the target file to the length of the horizontal progress bar logo can be determined, and then A second ratio between the total image length of the target file and the length marked by the vertical progress bar is determined. Then, the first ratio is used as the fitting scale between the total sliding track marked by the horizontal progress bar and the image width of the target file, and the second ratio is used as the total sliding track marked by the vertical progress bar and the image length of the target file. Scale of adaptation.
  • the screenshot method provided by the present application can also use different progress bar tones, different progress bar shapes, etc., to identify different progress bar intervals on the progress bar logo, and use different progress bars according to the actual screenshot progress.
  • the interval represents the portion of the target file that has been screened and the portion that has not been screened.
  • the progress bar interval represented by the dotted line is used to mark the screen-captured part of the entire target file
  • the progress bar interval represented by the solid line is used to mark the screen-captured part of the entire target file, and all the progress bar intervals constitute the target file. all areas of the file.
  • one tone progress bar interval such as red
  • another tone progress bar interval such as yellow
  • the screen capture method provided by the present application, by setting a progress bar mark on the screen of the electronic device, and by setting different progress bar intervals on the progress bar mark, so as to show the user the part that has been screen-captured and the part that has not been screen-captured of the target file, which is convenient for the user Keep abreast of the screen capture progress, and can directly locate the part that has not been screened, without the need for the user to re-check and confirm the entire target file, which is convenient for users to view the status of the screenshot and the content of the screenshot.
  • displaying a plurality of image sub-regions of the target file on the screen of the electronic device respectively includes:
  • the two cursor identifiers are respectively located in the vertical direction progress bar and the horizontal direction progress bar;
  • the image sub-region is determined according to the positions of the two cursor markers in the vertical progress bar and the horizontal progress bar after the positioning operation.
  • the target file in the process of uniformly sliding the cursor mark (Ya) located on the vertical progress bar mark from the starting point of the vertical progress bar mark to the end point, the target file can be moved from the vertical mark to the end point.
  • the target file is converted from the starting point position of the horizontal direction to the terminal position of the horizontal direction at a constant speed.
  • the display content of the target file on the screen of the electronic device can be adjusted to the horizontal direction and the vertical direction at the same time to display the corresponding target.
  • a page number identifier is provided on the screen of the electronic device, and the page number identifier mainly includes a first page number identifier and a second page number identifier;
  • the total number of horizontal page numbers and the number of horizontal page numbers are displayed on the first page number identifier; the total number of horizontal page numbers is determined according to the ratio of the image width of the target file to the screen width of the electronic device; the number of horizontal page numbers is the number of pages in the horizontal direction of the current display content of the screen of the electronic device;
  • the total number of vertical page numbers and the number of vertical page numbers are displayed on the second page number identifier; the total number of vertical page numbers is determined according to the ratio of the image length of the target file to the screen length of the electronic device; the The vertical page number is the current page number of the displayed content on the screen of the electronic device in the vertical direction.
  • the screenshot method provided by the present application sets the page number mark on the screenshot interface of the screen of the electronic device, And a first page number identification (Xb) is configured for the horizontal direction, and a second page number identification (Yb) is configured for the vertical direction.
  • the content displayed on the first page identifier (Xb) is 2/3, which specifically refers to: the target document has 3 pages in the horizontal direction of the screen of the electronic device, and the image subsection displayed on the screen of the electronic device The page number corresponding to the area is the 2nd of these 3 pages.
  • the content displayed on the second page number identifier (Yb) is 1/2, specifically: the target document has 2 pages in the vertical direction of the screen of the electronic device, and the page number corresponding to the image sub-area currently displayed on the screen of the electronic device is the 1st of these 2 pages.
  • the present application also provides a method for determining the total number of pages, as shown in Figure 2, where the dotted area can be understood as the image area of the target file a, and its image size is set to be 43cm long and 32cm wide;
  • the area represents the area occupied by the screen of the electronic device, and the screen of the electronic device is set to be 16 cm long and 9 cm wide.
  • the ratio of the image length of the target file a to the screen length of the electronic device is 43/16, and the ratio of the image width of the target file a to the screen width of the electronic device is 32/9; since there is a remainder in both ratios, the After the two ratios are rounded up, add 1 as the total number of horizontal page numbers and the total number of vertical page numbers.
  • the integer ratio is directly used as the total number of pages in the horizontal or vertical direction.
  • the total number of horizontal page numbers and the total number of vertical page numbers of the target file shown in FIG. 2 are 4 and 3, respectively.
  • the determination of the horizontal page number and the vertical page number can be determined according to the position of the content displayed in the center position of the screen of the electronic device in all the contents of the target file; it can also be determined according to the position displayed at the top of the screen of the electronic device.
  • the position of the content in all the contents of the target file determines the vertical page number; the horizontal page number can also be determined according to the position of the content displayed on the far left of the screen of the electronic device in all the contents of the target file.
  • the screen capture method provided by the present application shows to the user that the image sub-area currently displayed on the screen of the electronic device is in the target file by setting a page number identifier on the screen of the electronic device, and displaying the total number of pages and the current page number on the page number identifier. It is convenient for users to know the status of the current screenshot in time, which is convenient for users to view, and also improves the efficiency of user screenshots.
  • respectively displaying a plurality of image sub-regions of the target file on the screen of the electronic device may include:
  • the image sub-region is the content determined in the target file according to the two page number identifiers after modification and input.
  • the user can directly modify the current page number displayed in the page number identifier to directly locate the target image sub-region.
  • the user can change the first page number 2/3 to 1/3 and keep the second page number unchanged, so that the target file can be turned forward in the horizontal direction (by the second page number).
  • page is adjusted to page 1) and displayed on the screen of the electronic device as an image sub-area.
  • the user can also change the second page number identifier 1/2 to 2/2, and keep the first page number identifier unchanged, so that the target file can be paged backwards in the vertical direction (by the first page number identifier). 1 page to page 2) and displayed on the screen of the electronic device as an image sub-area.
  • the user can also modify the first page number identification 2/3 to 1/3, and the second page number identification 1/2 to 2/2, so that the target file can be changed in the horizontal direction. While the page is turned forward, the page is turned backward in the vertical direction and displayed on the screen of the electronic device as an image sub-region.
  • the screen capture method provided by the present application by setting the page number identifier on the screen capture interface, allows the user to directly locate the current display content of the screen of the electronic device through the setting of the page number identifier, which is especially convenient for the user to scan large documents with a large number of total pages.
  • quickly locating the target image sub-region to obtain the corresponding target image sub-region provides convenience and effectively improves the efficiency of the user's screenshot.
  • taking a screenshot to obtain a screenshot sub-image corresponding to the target image sub-region includes:
  • the user can control the display of the electronic device on the screen of the electronic device through the second input. Take screenshots in the sub-region of the image.
  • the second input may be a preset shortcut key, for example, the second input may be that the user presses the camera button on the electronic device, and the electronic device responds to the second input to the electronic device. Take a screenshot of the sub-area of the image displayed on the screen of the device.
  • the second input may be a user's click, long press, or sliding operation on the screen of the electronic device, which is not specifically limited in this application.
  • a first preset duration such as 2 seconds
  • the electronic device will automatically display the current content for more than 2 seconds. Take a screenshot of the sub-area of the image displayed on the screen.
  • the first preset duration may be set by the user according to personal usage habits. If the user does not set it, the screen capture control is performed according to the optimal duration recommended by the system.
  • the present application can automatically realize the screen capture operation by setting the first preset duration.
  • This screen capture control method also fully conforms to the user's usage habits, which can effectively improve the screen capture efficiency and facilitate the user's operation.
  • the outputting the screenshot target image based on the screenshot sub-image includes:
  • the temporary screen capture image is used as the screen capture target image, and the screen capture target image is output;
  • the screen capture stop condition includes: receiving a third input from the user or determining that the temporary screen capture image is a complete screen capture image of the target file.
  • the present application provides a method for acquiring a screenshot target image.
  • the user can control the image sub-region displayed on the screen of the electronic device through a first input, including changing the image sub-region displayed on the screen of the electronic device in the horizontal direction, so as to achieve horizontal Orientation screenshot control; it is also possible to change the image sub-region displayed on the screen of the electronic device in the vertical direction to realize vertical screenshot control.
  • Fig. 4 is the second schematic flow chart of the screen capture method provided by the present application. As shown in Fig. 4, the process of the user performing the screen capture operation can be as follows:
  • Step 1 In the case that the user has displayed an image sub-region on the screen of the electronic device, if the image sub-region is not the target image sub-region, the screen of the electronic device can be changed in the vertical direction through the first input The displayed content, until the target image sub-region appears, take a screenshot of the target image sub-region to achieve a horizontal screenshot, and obtain the screenshot sub-image P1;
  • Step 2 The user can continue to follow the method described in step 1, continue to realize the vertical direction screenshot or realize the horizontal direction screenshot, and set the obtained screenshot sub-image as P2;
  • Step 3 performing image synthesis on the screenshot sub-image P1 and the screenshot sub-image P2 to generate a temporary screenshot image P'1;
  • Step 4 If the user determines that the temporary screenshot image P'1 is not the screenshot target image, then continue to iteratively execute steps 1 to 3 to output the temporary screenshot image P'2; wherein, the screenshot target image may be a full screenshot image of the target file or a full screenshot image of the target file. Partial screenshot of the target file.
  • Step 5 If the user determines that the temporary screenshot image P'2 is the screenshot target image, the third input can be used to instruct the electronic device to stop the screenshot and output the temporary screenshot image P'2 as the screenshot target image.
  • the automatic screen capture operation of the electronic device may also be preset until the acquired temporary screen capture image is the full screen capture image of the target file, or an instruction to stop screen capture is received from the user.
  • the third input may be a click, press or slide input on the screen of the electronic device when the user displays a screen capture interface on the screen, for example: sliding input with a finger on the screen of the electronic device
  • a trajectory in the shape of a "T” or a trajectory in the shape of an "X”, etc., are not specifically limited in this application.
  • the user can decide whether to take a vertical screenshot or a horizontal screenshot for each step of the operation according to the actual screenshot needs.
  • the user may also take screenshots in the horizontal direction first, and then take screenshots in the vertical direction or the horizontal direction successively, which is not specifically limited in this application.
  • FIG. 5 is the third schematic flowchart of the screenshot method provided by the embodiment of the present application.
  • the present application provides another screenshot operation method.
  • the user first starts with a vertical screenshot to realize the screenshot operation step by step.
  • the steps mainly include but are not limited to:
  • Step 1 The user takes a screenshot of an image sub-region on the screen of the electronic device. After the screenshot is taken, the user displays the screened interval Y1 and the unscreened interval Y2 on the vertical progress bar, and the second page number is marked as r1/t. At this time, the user displays on the horizontal progress bar the screened section X1 and the unscreened section X2, and the first page number is identified as j1/k; the generated screen shot image is P1.
  • Step 2 After the user takes a screenshot in the horizontal direction, and then takes a screenshot in the vertical direction. After the screenshot is taken, the user displays the screened interval X3 on the horizontal progress bar, the unscreened interval X4, and the first page number is identified as j2/k. The user displays the screened interval Y3 on the vertical progress bar, the unscreened interval is Y4, and the second page number is marked as r2/t; after the screenshot image is obtained, it is combined with P1 in step 1 to generate a temporary screenshot image P2.
  • Step 3 The user slides the cursor on the vertical progress bar to the unscreened part Y2 or the unscreened part Yn in the vertical direction, and set the current second page number as r3/t;
  • the screenshot part is Xn; slide to the unscreened part Xn+1 through the cursor mark on the horizontal progress bar mark, set the current first page number mark as j3/k; realize the change of the display content on the screen of the electronic device through the cursor mark.
  • a new screenshot image is acquired, and the new screenshot image is synthesized with the temporary screenshot image obtained in the previous step, and the temporary screenshot image P3 is output.
  • Step 4 The user slides in the horizontal direction to the unscreened part X2 through the cursor on the horizontal progress bar sign, the unscreened part is Xn, and the current first page number sign is jn/k; at this time, the screened part in the horizontal direction It is Yn, slide to the unscreened part Yn+1 through the cursor mark on the vertical progress bar mark, and set the current second page number mark as rn/t; after realizing the change of the display content on the screen of the electronic device through the cursor mark , obtain a new screenshot image, and synthesize the new screenshot image with the temporary screenshot image obtained in the previous step, and output the temporary screenshot image P4.
  • Step 5 Iteratively execute the above steps 1-4 until the screen capture stop condition is met.
  • the stop condition of the screenshot may be: receiving a third input from the user or determining that the temporary screenshot image is a complete screenshot image of the target file.
  • Step 6 The user views, edits, and shares the captured screenshot target image.
  • the screenshot method provided by the present application is to gradually generate a screenshot target image by synthesizing the screenshot sub-images obtained by each screenshot operation with the temporary screenshot images formed by all previous screenshot sub-images. It can clearly know the progress status of the screenshot operation, so as to intervene and control the content of the screenshot and the speed of the screenshot according to the actual progress.
  • performing image synthesis on at least two of the screenshot sub-images, and outputting a temporary screenshot image includes:
  • the screenshot method provided by the present application sequentially synthesizes the screenshot sub-image obtained later with the temporary screenshot image synthesized by all the screenshot sub-images before, and finally generates and outputs the screenshot target image.
  • the adopted picture synthesis method is to splicing two frames of screenshot sub-images in chronological order, although the size of the final output screenshot target image is generally the same as the image size of the target file. They are not the same, but for users who only need to obtain all the screenshot images and do not have high requirements for image synthesis, it can effectively improve the speed of screenshots.
  • performing image synthesis on at least two of the screenshot sub-images above, and outputting a temporary screenshot image mainly includes:
  • the position information of the image sub-region corresponding to each screenshot sub-image in the target file respectively determine the first flag bit information and the second flag bit information of the two screenshot sub-images in the screenshot target image;
  • image synthesis is performed on the two screenshot sub-images, and the temporary screenshot image is output.
  • the screenshot method provided by the present application realizes image synthesis according to the position information of the screenshot sub-images in the target file acquired at the previous and subsequent time points.
  • the acquired two screenshot sub-images are P1 and P2 in FIG. 2 respectively. Since the sizes of the two screenshot sub-images P1 and P2 are the same as the screen size of the electronic device, the actual positions of P1 and P2 in the target file can be determined according to the image sub-regions corresponding to P1 and P2.
  • the position information of P1 and P2 in the screenshot target image can be obtained according to the actual position information of the image sub-regions corresponding to P1 and P2 in the target file, which is recorded as the first flag bit information and the second flag information.
  • two frames of screenshot sub-images may be synthesized according to the first flag bit information and the second flag bit information. For example: if there is no intersection area between the two frames of screenshot sub-images, the two frames of screenshot sub-images are spliced to the first and second flag positions respectively; if there is an intersection area between the two frames of screenshot sub-images, you can The union of the first flag bit information and the second flag bit information of the screen shot sub-image of the frame determines the position of the synthesized temporary screen shot image in the screen shot target image.
  • the image synthesis is performed on the two screenshot sub-images based on the first flag bit information and the second flag bit information, and the temporary screenshot image is output, include:
  • the unfilled area is filled with a blank image; the size of the screenshot target image is the same as the size of the target file.
  • the image size of the file is the same.
  • the screenshot method provided by the present application requires that the size of the obtained screenshot target image is the same as the image size of the target file.
  • the target screenshot image to be acquired is a partial screenshot image of the target document
  • the area of the target screenshot image that does not contain the screenshot image of the target document is filled with a blank image to ensure that the final output screenshot target image has The dimensions are the same as the image dimensions of the target file.
  • the screenshot method provided by the present application can ensure that the size of the obtained screenshot target image and the image size of the target file can be guaranteed by filling the area of the screenshot image that does not contain the target document during the synthesis process of the screenshot target image.
  • the image synthesis is performed on the two screenshot sub-images based on the first flag bit information and the second flag bit information, and the temporary screenshot image is output, can also be:
  • the unfilled area is represented by a separation line.
  • the difference between the two synthesizing methods mainly lies in:
  • the screenshot method provided by the present application, firstly, according to the method of the above-mentioned embodiment, in the process of synthesizing the screenshot target image, after acquiring a new frame of screenshot sub-image, it can be determined according to the flag bit information of the screenshot sub-image. Its corresponding position in the target file, and thus its flag bit information in the screenshot target image is determined, so as to realize synthesizing the screenshot sub-image into the flag bit.
  • the difference of the present application is that after synthesizing the screenshot sub-image to the flag position, it is necessary to further determine whether there is an area not filled by the screenshot image between the screenshot sub-image and other adjacent screenshot sub-images; In the case of the unfilled area corresponding to the unscreened area of the target file, the area is represented by a delimiter.
  • the screenshot method provided by the present application can effectively reduce the size of the screenshot target image by merging the area of the screenshot image that does not contain the target document and mark it with a dividing line, so as to facilitate the user's viewing, and the user can effectively reduce the size of the screenshot target image according to the
  • the screenshot target image can determine the positional relationship between each screenshot image, which is convenient for the user to check the screenshot target image and ensures the correctness of the screenshot target image.
  • FIG. 6 is a schematic structural diagram of a screen capture device provided by an embodiment of the present application.
  • the screen capture device provided by the present application mainly includes: a first receiving module 61 , a first response module 62 , a screen capture processing module 63 , and image processing. unit 64;
  • the first receiving module 601 is mainly used to receive multiple first inputs from the user;
  • the first response module 602 is mainly used to display a plurality of image sub-regions of the target file on the screen of the electronic device in response to the first input;
  • the screenshot processing module 603 is mainly used to capture the screenshot to obtain the screenshot sub-image corresponding to the target image sub-region under the condition that the screenshot trigger condition is satisfied;
  • the image processing unit 604 is mainly used for outputting a screenshot target image based on the screenshot sub-image
  • the image size of the target file is larger than the screen size of the electronic device, and at least one of the image sub-areas is used as the target image sub-area.
  • the processing object of the screenshot processing device provided by the present application can be a target file of any image size, and can especially realize the screenshot processing of large-sized and large-content documents, so as to overcome the deficiencies in related screenshot technologies that cannot achieve clear and complete screenshots.
  • the first input received by the first receiving module 601 may be a user's sliding input to the left, right, upward or downward on the screen with a finger, and the first input can be used to realize the information on the screen of the electronic device. Adjustment of the display content.
  • the display content on the screen of the electronic device is a certain image sub-region of the target file.
  • the first response module 602 can adjust the display content on the screen of the electronic device according to the direction of the first input and the input trajectory, etc. Displays different image sub-regions of the target file separately.
  • the screen capture processing module 603 is mainly used to collect information for the currently displayed image sub-regions, and to determine whether the current screen capture state satisfies the screen capture status. Triggering conditions. If it is determined that the triggering condition for screenshotting is satisfied, the image sub-region displayed on the screen of the electronic device is used as a screenshotting object, and a screenshotting operation is performed.
  • the image processing unit 604 is configured to synthesize the screenshot sub-image with a temporary screenshot image obtained by combining all previous screenshot sub-images after each acquisition of a new screenshot sub-image, so as to realize the output of the screenshot target image. Purpose.
  • the screenshot device provided by the present application can take screenshots of the target content in the large file multiple times according to the user's choice, and then combine and splicing the screenshot images to obtain a complete and clear screenshot of the large file, which can satisfy the user's selection of the screenshot content. requirements and effectively improve the quality of screenshots.
  • a progress bar sign is displayed on the screen of the electronic device, and the progress bar sign includes a vertical progress bar sign and a horizontal progress bar sign;
  • the total sliding track marked by the horizontal progress bar is adapted to the image width of the target file;
  • the total sliding track marked by the vertical progress bar is adapted to the image length of the target file;
  • the screen-captured part and the non-screen-captured part of the target file are marked on the progress bar identifier through different progress bar intervals.
  • the screen capture system provided by the present application shows the part of the target file that has been screen-captured and the part that has not been screen-captured to the user by setting the progress bar mark on the screen of the electronic device, and by setting different progress bar intervals on the progress bar mark, which is convenient for the user.
  • Know the progress of screenshots in time and can directly locate the parts that have not been screenshotted, without the need for the user to re-check and confirm the entire target file, which improves the efficiency of user screenshots.
  • the first response module is specifically used for:
  • the two cursor identifiers are respectively located in the vertical direction progress bar and the horizontal direction progress bar;
  • the image sub-region is determined according to the positions of the two cursor markers in the vertical progress bar and the horizontal progress bar after the positioning operation.
  • the screenshot system provided by this application, by setting a progress bar logo on the screen of the electronic device, and setting a cursor logo on each progress bar logo, so that the user can directly locate the electronic device through the position of the cursor logo on the progress bar logo.
  • the currently displayed content of the screen is convenient for the user to quickly locate the target image sub-area to obtain the corresponding target image sub-area, and effectively improves the efficiency of the user's screen capture.
  • a page number identifier is displayed on the screen of the electronic device, and the page number identifier includes a first page number identifier and a second page number identifier;
  • the total number of horizontal page numbers and the number of horizontal page numbers are displayed on the first page number identifier; the total number of horizontal page numbers is determined according to the ratio of the image width of the target file to the screen width of the electronic device; the number of horizontal page numbers is the number of pages in the horizontal direction of the current display content of the screen of the electronic device;
  • the total number of vertical page numbers and the number of vertical page numbers are displayed on the second page number identifier; the total number of vertical page numbers is determined according to the ratio of the image length of the target file to the screen length of the electronic device; the The vertical page number is the current page number of the display content on the screen of the electronic device in the vertical direction.
  • the screen capture system provided by the present application, by setting a page number identifier on the screen of the electronic device, and by displaying the total number of page numbers and the current page number on the page number identifier, to show the user the image sub-area displayed on the screen of the electronic device in the target file. Positioning is convenient for users to know the status of the current screenshot in time, which is convenient for users to view, and also improves the efficiency of user screenshots.
  • the first response module is specifically used for:
  • the image sub-region is the content determined in the target file according to the two page number identifiers after modification and input.
  • the screen capture system provided by this application, by setting the page number identifier on the screen capture interface, allows the user to directly locate the current display content of the screen of the electronic device through the setting of the page number identifier, which is especially convenient for the user to scan large documents with a large number of total pages.
  • the target image sub-region is quickly located, and at the same time, it is convenient for the user to obtain the corresponding target image sub-region, and the efficiency of the user's screenshot is effectively improved.
  • the screenshot processing module is specifically used for:
  • the duration of the current image sub-region displayed on the screen of the acquired electronic device exceeds the first preset duration, determine that the current image sub-region is the target image sub-region; take a screenshot to obtain the corresponding image sub-region of the target image. Take a screenshot of the subimage.
  • the image processing unit is specifically used for:
  • the temporary screen capture image is used as the screen capture target image, and the screen capture target image is output;
  • the screen capture stop condition includes: receiving a third user input or determining that the temporary screen capture image is a complete screen capture image of the target file.
  • the image processing unit is further specifically configured to: perform image synthesis on each of the screenshot sub-images in sequence according to the sequence of the screenshot time of each screenshot sub-image, and output a temporary screenshot image.
  • the image processing unit is also specifically used for:
  • the position information of the image sub-region corresponding to each screenshot sub-image in the target file respectively determine the first flag bit information and the second flag bit information of the two screenshot sub-images in the screenshot target image;
  • image synthesis is performed on the two screenshot sub-images, and the temporary screenshot image is output.
  • the screen capture system provided by the present application combines the screen capture sub-images obtained by each screen capture operation with the temporary screen capture images formed by all previous screen capture sub-images, so as to gradually generate a screen capture target image.
  • the user It can clearly know the progress status of the screen capture operation, so as to control the content of the screen capture and the speed of the screen capture according to the actual progress status, so it can meet the screen capture needs of different users, especially to achieve partial screenshots of target files.
  • the image processing unit is also specifically used for:
  • the size of the screenshot target image is the same as the image size of the target file.
  • the size of the obtained screenshot target image and the image of the target file can be guaranteed.
  • the size is the same, so that the user can clearly grasp the specific position of the screenshot part in the target file, and it is also convenient for the user to check the final screenshot target image to ensure the integrity of the screenshot target image.
  • the image processing unit is also specifically used for:
  • the unfilled area is represented by a separation line.
  • the screenshot system provided by the present application can effectively reduce the size of the screenshot target image by merging the area of the screenshot image that does not contain the target document and mark it with a dividing line, so as to facilitate the user's viewing, and the user can effectively reduce the size of the screenshot target image according to the
  • the screenshot target image can determine the positional relationship between each screenshot image, which is convenient for the user to check the screenshot target image and ensures the correctness of the screenshot target image.
  • the electronic device in the embodiments of the present application may be a device, or may be a component, an integrated circuit, or a chip in the electronic device.
  • the apparatus may be a mobile electronic device or a non-mobile electronic device.
  • the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palmtop computer, an in-vehicle electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (personal digital assistant).
  • UMPC ultra-mobile personal computer
  • netbook or a personal digital assistant
  • non-mobile electronic devices can be servers, network attached storage (Network Attached Storage, NAS), personal computer (personal computer, PC), television (television, TV), teller machine or self-service machine, etc., this application Examples are not specifically limited.
  • Network Attached Storage NAS
  • personal computer personal computer, PC
  • television television
  • teller machine or self-service machine etc.
  • the screen capture device in this embodiment of the present application may be a device with an operating system.
  • the operating system may be an Android (Android) operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiments of the present application.
  • the screen capture device provided in the embodiments of the present application can implement each process implemented by the screen capture device in the method embodiments of FIG. 1 to FIG. 8 , and in order to avoid repetition, details are not repeated here.
  • an embodiment of the present application further provides an electronic device 70, as shown in FIG. 7, comprising a processor 72, a memory 71, a program or instruction stored on the memory 71 and executable on the processor 72,
  • an electronic device 70 comprising a processor 72, a memory 71, a program or instruction stored on the memory 71 and executable on the processor 72,
  • the program or instruction is executed by the processor 72, each process of the above-mentioned embodiment of the screenshot method can be implemented, and the same technical effect can be achieved. To avoid repetition, details are not repeated here.
  • the electronic devices in the embodiments of the present application include the above-mentioned mobile electronic devices and non-mobile electronic devices.
  • FIG. 8 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
  • the electronic device 800 includes but is not limited to: a radio frequency unit 801, a network module 802, an audio output unit 803, an input unit 804, a sensor 805, a display unit 806, a user input unit 807, an interface unit 808, a memory 809, and a processor 810, etc. part.
  • the electronic device 800 may also include a power supply (such as a battery) for supplying power to various components, and the power supply may be logically connected to the processor 810 through a power management system, so that the power management system can manage charging, discharging, and power management. consumption management and other functions.
  • a power supply such as a battery
  • the structure of the electronic device shown in FIG. 8 does not constitute a limitation on the electronic device.
  • the electronic device may include more or less components than the one shown, or combine some components, or arrange different components, which will not be repeated here. .
  • the input unit 804 may include a graphics processor (Graphics Processing Unit, GPU) 841 and a microphone 842. Such as camera) to obtain still pictures or video image data for processing.
  • the display unit 806 may include a display panel 861, which may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like.
  • the user input unit 807 includes a touch panel 871 and other input devices 872 .
  • the touch panel 871 is also called a touch screen.
  • the touch panel 871 may include two parts, a touch detection device and a touch controller.
  • Other input devices 872 may include, but are not limited to, physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, and joysticks, which will not be repeated here.
  • Memory 809 may be used to store software programs as well as various data, including but not limited to application programs and operating systems.
  • the processor 810 may integrate an application processor and a modem processor, wherein the application processor mainly handles the operating system, user interface, and application programs, and the like, and the modem processor mainly handles wireless communication. It can be understood that, the above-mentioned modulation and demodulation processor may not be integrated into the processor 810.
  • the user input unit 807 is configured to receive multiple first inputs; the processor 810 is configured to display multiple image sub-regions of the target file on the screen of the electronic device in response to the first input; the processor 810 The processor 810 is further configured to obtain a screenshot sub-image corresponding to the target image sub-region by taking a screenshot under the condition that the screenshot triggering condition is met; the processor 810 is further configured to output a screenshot target image based on the screenshot sub-image;
  • the image size of the target file is larger than the screen size of the electronic device, and at least one of the image sub-areas is used as the target image sub-area.
  • the embodiments of the present application further provide a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or instruction is executed by a processor, each process of the above embodiment of the screenshot method can be implemented, and can achieve the same The technical effect, in order to avoid repetition, will not be repeated here.
  • the processor is the processor in the electronic device described in the foregoing embodiments.
  • the readable storage medium includes a computer-readable storage medium, and examples of the computer storage medium include tangible (non-transitory) computer-readable storage media, such as computer read-only memory (Read-Only Memory, ROM), random access memory ( Random Access Memory, RAM), magnetic disk, optical disk, electronic circuit, semiconductor memory device, flash memory, erasable ROM (EROM), or floppy disk, etc.
  • An embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to run a program or an instruction to implement each of the foregoing screen capture method embodiments process, and can achieve the same technical effect, in order to avoid repetition, it will not be repeated here.
  • the chip mentioned in the embodiments of the present application may also be referred to as a system-on-chip, a system-on-chip, a system-on-a-chip, or a system-on-a-chip, or the like.

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 present application discloses a screenshot method and a screenshot apparatus, relating to the technical field of communications. The method comprises: receiving multiple first inputs; in response to the first inputs, respectively displaying multiple image sub-regions of a target file on a screen of an electronic device; when a screenshot triggering condition is satisfied, performing a screenshot operation to obtain a screenshot sub-image corresponding to a target image sub-region; and outputting a screenshot target image on the basis of the screenshot sub-image. The image size of the target file is greater than the size of the screen of the electronic device. At least one of the image sub-regions is used as the target image sub-region.

Description

截屏方法及截屏装置Screen capture method and screen capture device
相关申请的交叉引用CROSS-REFERENCE TO RELATED APPLICATIONS
本申请主张2020年12月02日提交的中国专利申请202011401431.0的优先权,该申请的全部内容通过引用包含于此。This application claims priority to Chinese Patent Application 202011401431.0 filed on December 02, 2020, the entire contents of which are incorporated herein by reference.
技术领域technical field
本申请属于通信技术领域,具体涉及一种截屏方法及截屏装置。The present application belongs to the field of communication technologies, and in particular relates to a screen capture method and a screen capture device.
背景技术Background technique
目前,在电子设备的上进行excel等大文档进行编辑后,由于大文档中文件内容很多,一个屏幕无法截全,若需要对其进行截图操作,只能将页面缩小,保证所有内容都在屏幕中时再进行截图,或者通过触发电子设备的长截图功能,使显示屏中的显示内容向一个方向滚动显示,然后将所有滚动显示的内容合成为一张长截图。At present, after editing a large document such as excel on an electronic device, due to the large amount of file content in the large document, a screen cannot be captured. Take a screenshot when it is in the middle, or trigger the long screenshot function of the electronic device to scroll the display content in one direction, and then combine all the scrolled content into a long screenshot.
在实现本申请过程中,发明人发现相关技术中至少存在如下问题:将页面缩小后再截图的方式,会导致所获取的截屏图像非常模糊或失真;采用长截图功能,仅能上下滚动页面内容,不能满足对不同尺寸的文档进行清晰、完整截图的需要。During the process of realizing this application, the inventor found that there are at least the following problems in the related art: the method of reducing the page size and then taking a screenshot will cause the obtained screenshot image to be very blurred or distorted; using the long screenshot function, only the content of the page can be scrolled up and down. , cannot meet the needs of clear and complete screenshots of documents of different sizes.
发明内容SUMMARY OF THE INVENTION
本申请实施例的目的是提供一种截屏方法及装置,能够解决相关技术所存在的无法实现清晰、完整的对大文件进行截屏的缺陷。The purpose of the embodiments of the present application is to provide a screen capture method and device, which can solve the defect in the related art that a clear and complete screen capture of a large file cannot be achieved.
第一方面,本申请实施例提供了一种截屏方法,该方法包括:In a first aspect, an embodiment of the present application provides a method for taking screenshots, and the method includes:
接收多次第一输入;Receive multiple first inputs;
响应于所述第一输入,在电子设备的屏幕上分别显示目标文件的多个图像子区域;In response to the first input, displaying a plurality of image sub-regions of the target file on the screen of the electronic device respectively;
在满足截屏触发条件的情况下,截屏获得目标图像子区域对应的截屏子图像;Under the condition that the triggering condition of the screenshot is satisfied, take the screenshot to obtain the screenshot sub-image corresponding to the sub-region of the target image;
基于所述截屏子图像,输出截屏目标图像;outputting a screenshot target image based on the screenshot sub-image;
其中,所述目标文件的图像尺寸大于所述电子设备的屏幕尺寸,将所述图像子区域中的至少一个作为所述目标图像子区域。Wherein, the image size of the target file is larger than the screen size of the electronic device, and at least one of the image sub-areas is used as the target image sub-area.
第二方面,本申请实施例提供了一种截屏装置,包括:In a second aspect, an embodiment of the present application provides a screen capture device, including:
第一接收模块,接收多次第一输入;a first receiving module, receiving multiple first inputs;
第一响应模块,响应于所述第一输入,在电子设备的屏幕上分别显示目标文件的多个图像子区域;a first response module, in response to the first input, respectively displaying a plurality of image sub-regions of the target file on the screen of the electronic device;
截屏处理模块,在满足截屏触发条件的情况下,截屏获得目标图像子区域对应的截屏子图像;The screen capture processing module, in the case of satisfying the screen capture trigger condition, captures the screen to obtain the screen capture sub-image corresponding to the target image sub-region;
图像处理单元,基于所述截屏子图像,输出截屏目标图像;an image processing unit, outputting a screenshot target image based on the screenshot sub-image;
其中,所述目标文件的图像尺寸大于所述电子设备的屏幕尺寸,将所述图像子区域中的至少一个作为所述目标图像子区域。Wherein, the image size of the target file is larger than the screen size of the electronic device, and at least one of the image sub-areas is used as the target image sub-area.
第三方面,本申请实施例提供了一种电子设备,该电子设备包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如第一方面任一所述的截屏方法的步骤。In a third aspect, embodiments of the present application provide an electronic device, the electronic device includes a processor, a memory, and a program or instruction stored on the memory and executable on the processor, the program or instruction being The processor implements the steps of any one of the screenshot methods described in the first aspect when executed.
第四方面,本申请实施例提供了一种可读存储介质,所述可读存储介质上存储程序或指令,所述程序或指令被处理器执行时实现如第一方面任一所述的截屏方法的步骤。In a fourth aspect, an embodiment of the present application provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or instruction is executed by a processor, the screenshot according to any one of the first aspect is implemented steps of the method.
第五方面,本申请实施例提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现如第一方面任一所述的截屏方法的步骤。In a fifth aspect, an embodiment of the present application provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to run a program or an instruction, and implement the first aspect Any of the steps of the screenshot method.
本申请实施例提供的截屏方法、装置、电子设备及存储介质,能根据用户的选择,对大文件中的目标内容分多次进行截屏,再将截屏图像组合拼接,以获取完整、清晰的大文件截图,能够满足用户对于截屏内容的选择需求,并有效的提高了截屏图像的质量。The screenshot method, device, electronic device, and storage medium provided by the embodiments of the present application can screenshot the target content in a large file multiple times according to the user's choice, and then combine and splicing the screenshot images to obtain a complete and clear large file. The screenshot of the file can meet the user's selection requirements for the content of the screenshot, and effectively improve the quality of the screenshot image.
附图说明Description of drawings
图1是本申请实施例提供的截屏方法的流程示意图之一;Fig. 1 is one of the schematic flowcharts of the screenshot method provided by the embodiment of the present application;
图2是本申请提供的目标文件a被电子设备的屏幕进行分区域显示的示意图;Fig. 2 is the schematic diagram that the target file a provided by the application is displayed in sub-regions by the screen of the electronic device;
图3是本申请实施例提供的进行截屏操作的流程界面示意图;3 is a schematic diagram of a process interface for performing a screen capture operation provided by an embodiment of the present application;
图4是本申请实施例提供的截屏方法的流程示意图之二;FIG. 4 is the second schematic flowchart of the screen capture method provided by the embodiment of the present application;
图5是本申请实施例提供的截屏方法的流程示意图之三;5 is a third schematic flowchart of a screen capture method provided by an embodiment of the present application;
图6是本申请实施例提供的截屏装置的结构示意图;6 is a schematic structural diagram of a screen capture device provided by an embodiment of the present application;
图7为本申请实施例提供的电子设备的结构示意图之一;FIG. 7 is one of the schematic structural diagrams of an electronic device provided by an embodiment of the present application;
图8为本申请实施例提供的电子设备的结构示意图之二。FIG. 8 is a second schematic structural diagram of an electronic device provided by an embodiment of the present application.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application. 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 those of ordinary skill in the art without creative work fall within the protection scope of the present application.
本申请的说明书和权利要求书中的术语“第一”、“第二”等是用于区别类似的对象, 而不用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便本申请的实施例能够以除了在这里图示或描述的那些以外的顺序实施。此外,说明书以及权利要求中“和/或”表示所连接对象的至少其中之一,字符“/”,一般表示前后关联对象是一种“或”的关系。The terms "first", "second" and the like in the description and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It is to be understood that data so used may be interchanged under appropriate circumstances so that embodiments of the application can be practiced in sequences other than those illustrated or described herein. In addition, "and/or" in the description and claims indicates at least one of the connected objects, and the character "/" generally indicates that the associated objects are in an "or" relationship.
下面结合附图,通过具体的实施例及其应用场景对本申请实施例提供的截屏方法进行详细地说明。The screenshot method provided by the embodiments of the present application will be described in detail below with reference to the accompanying drawings through specific embodiments and application scenarios thereof.
图1是本申请实施例提供的一种截屏方法的流程示意图,如图1所示,该截屏方法可以包括以下步骤:FIG. 1 is a schematic flowchart of a screen capture method provided by an embodiment of the present application. As shown in FIG. 1 , the screen capture method may include the following steps:
步骤11:电子设备接收用户的多次第一输入。Step 11: The electronic device receives multiple first inputs from the user.
本申请提供的截屏方法,其运用场景可以是:在用户使用wps等文档编辑工具或者在使用电子设备的上的其它APP实现大文档编辑处理时,在完成了文档处理工作后,若想对处理后的文档进行截图处理,则可以通过对电子设备的的截图操作获取到目标截屏图像。The screenshot method provided by this application can be used in the following scenarios: when a user uses a document editing tool such as wps or other APP on an electronic device to implement large document editing processing, after completing the document processing work, if the user wants to After performing screenshot processing on the latter document, the target screenshot image can be obtained through the screenshot operation of the electronic device.
此处所述的大文档是指利用电子设备对其进行显示时,在不对其进行缩放的情况下,不能在电子设备的屏幕上完整显示的文档。The large document mentioned here refers to a document that cannot be completely displayed on the screen of the electronic device without scaling it when it is displayed by an electronic device.
另外,本申请提供的截屏方法的处理对象可以是任意图像尺寸的目标文件,尤其能够解决相关截屏技术中不能实现对大尺寸、大内容文档进行截屏处理以获取到清晰完整截图的不足。In addition, the processing object of the screenshot method provided by the present application can be a target file of any image size, which can especially solve the problem that the screenshot processing of large-size and large-content documents cannot be implemented in the related screenshot technology to obtain clear and complete screenshots.
其中,用户向电子设备的做出的第一输入的目的是在电子设备的屏幕上调整显示在电子设备的屏幕上的目标文件的内容。The purpose of the first input made by the user to the electronic device is to adjust the content of the target file displayed on the screen of the electronic device on the screen of the electronic device.
在本申请中,当目标文件的图像尺寸大于电子设备的屏幕尺寸时,电子设备的可以对整个目标文件进行分区域显示,即在当前的电子设备的屏幕上仅显示目标文件的部分区域。图2是本申请提供的目标文件a被电子设备的屏幕进行分区域显示的示意图,如图2中的虚线区域所示,假设某个目标文件(以下称目标文件a)的图像长43cm、宽为32cm;如图2中的填充区域所示,假设用于处理的电子设备的屏幕长16cm、宽9cm。In this application, when the image size of the target file is larger than the screen size of the electronic device, the electronic device can display the entire target file in sub-regions, that is, only a partial region of the target file is displayed on the current screen of the electronic device. FIG. 2 is a schematic diagram of the target file a provided by the present application being displayed by sub-regions on the screen of an electronic device. As shown in the dotted line area in FIG. 2 , it is assumed that the image of a certain target file (hereinafter referred to as the target file a) is 43 cm long and 43 cm wide. is 32cm; as shown in the filled area in Figure 2, it is assumed that the screen of the electronic device used for processing is 16cm long and 9cm wide.
可选地,则如图2所示,按照目标文件a的图像尺寸与电子设备的屏幕尺寸的比例关系,可以将其整个目标文件的图像划分为4*3共计12个图像子区域,并于电子设备的屏幕上显示所述12个图像子区域中的一个。其中,每个图像子区域的图像尺寸与电子设备的屏幕尺寸相同。可以根据第一输入对电子设备的屏幕上显示的图像子区域进行更换调整,以保证目标文件的所有内容可以被完整展示。Optionally, as shown in Figure 2, according to the proportional relationship between the image size of the target file a and the screen size of the electronic device, the image of the entire target file can be divided into 4*3 total 12 image sub-regions, and in One of the 12 image sub-areas is displayed on the screen of the electronic device. The image size of each image sub-region is the same as the screen size of the electronic device. The image sub-region displayed on the screen of the electronic device can be replaced and adjusted according to the first input, so as to ensure that all contents of the target file can be displayed completely.
可选地,第一输入可以是用户手指在屏幕上的向左、向右、向上或向下的滑动输入,即类似于在电子设备的上进行电子书阅读时的操作。Optionally, the first input may be a sliding input of the user's finger to the left, right, up or down on the screen, which is similar to the operation when reading an e-book on an electronic device.
可选地,第一输入也可以是用户根据目标文件的图像所需要显示的总页数,选择的向电子设备的输入其中一个页码数字的操作。如目标文件的图像在电子设备的屏幕上所需要显示的总页数为10,则可以通过向电子设备的输入数字2,直接跳转至10页中的第2页。Optionally, the first input may also be an operation of inputting one of the page numbers to the electronic device selected by the user according to the total number of pages to be displayed in the image of the target file. For example, the total number of pages that the image of the target file needs to be displayed on the screen of the electronic device is 10, and the number 2 can be input to the electronic device to directly jump to the second page of the 10 pages.
可选的,也可以对应于目标文件在电子设备的上水平方向和竖直方向的分页情况,在电子设备的屏幕上设置水平滚动条和竖直滚动条。相应的,所述第一输入可以是长按滚动条后的滑动输入,或者在滚动条的滑动轨迹区域的点击输入。Optionally, a horizontal scroll bar and a vertical scroll bar may also be provided on the screen of the electronic device corresponding to the paging situation of the target file in the horizontal direction and the vertical direction on the electronic device. Correspondingly, the first input may be a sliding input after long pressing the scroll bar, or a click input in the sliding track area of the scroll bar.
步骤12:响应于所述第一输入,在电子设备的屏幕上分别显示目标文件的多个图像子区域。Step 12: In response to the first input, respectively display a plurality of image sub-regions of the target file on the screen of the electronic device.
对应于第一输入,在电子设备的屏幕上对目标文件进行显示。每次显示在电子设备的屏幕上的目标文件的部分称为一个图像子区域。Corresponding to the first input, the target file is displayed on the screen of the electronic device. The portion of the target file that is displayed on the screen of the electronic device at a time is called an image sub-area.
可选地,假设第一输入是用户用手指在屏幕上的向左输入,则响应于所述第一输入,显示在电子设备的屏幕上目标文件的内容可以是根据滑动输入的方向和输入轨迹进行相应的变化,以在电子设备的屏幕上显示一系列的图像子区域。Optionally, assuming that the first input is the user's leftward input with a finger on the screen, in response to the first input, the content of the target file displayed on the screen of the electronic device may be based on the direction of the sliding input and the input trajectory. Corresponding changes are made to display a series of image sub-regions on the screen of the electronic device.
可选地,也可以是根据滑动输入的方向和输入的轨迹,以每个图像子区域为单位进行跳转,并依次在电子设备的屏幕上显示与目标文件对应的多个图像子区域。Optionally, according to the direction of the sliding input and the input track, the jump can be performed in units of each image sub-region, and multiple image sub-regions corresponding to the target file are displayed on the screen of the electronic device in sequence.
步骤13:在满足截屏触发条件的情况下,截屏获得目标图像子区域对应的截屏子图像。其中,所述图像子区域中的至少一个为所述目标图像子区域。Step 13: Under the condition that the triggering condition of the screenshot is satisfied, take the screenshot to obtain the screenshot sub-image corresponding to the sub-region of the target image. Wherein, at least one of the image sub-regions is the target image sub-region.
在响应于所述第一输入的过程中,在电子设备的屏幕上所显示的目标文件的图像子区域的数量一般较多,例如:在所述第一输入是滑动输入的情况下,在电子设备的屏幕上所显示的则是一连串的图像子区域所对应的图像。During the process of responding to the first input, the number of image sub-regions of the target file displayed on the screen of the electronic device is generally larger. What is displayed on the screen of the device is an image corresponding to a series of image sub-regions.
区别于相关技术中的长截屏方法所采用的对电子设备的屏幕所显示的内容进行截屏的方法,在本申请提供的截屏方法中,用户可以根据实际需要从显示的诸多图像子区域中选择对部分目标图像子区域进行截屏,以获取一个或多个截屏子图像。Different from the method of taking a screenshot of the content displayed on the screen of the electronic device adopted by the long screen capture method in the related art, in the screen capture method provided by the present application, the user can select from the displayed image sub-regions according to actual needs. Part of the target image sub-regions are screen-captured to obtain one or more screen-capture sub-images.
具体地,从电子设备的角度来看,当电子设备的屏幕依次显示多个图像子区域的过程中,针对当前所显示的图像子区域,若确定其满足截屏触发条件,则将当前所显示的图像子区域作为截屏对象,并对其进行截屏处理。Specifically, from the perspective of the electronic device, when the screen of the electronic device displays multiple image sub-regions in sequence, for the currently displayed image sub-region, if it is determined that it satisfies the screenshot trigger condition, the currently displayed image sub-region will be The image sub-area is used as the screenshot object, and the screenshot processing is performed on it.
可选地,上述满足截屏触发条件可以是接收到了用户截屏操作指令,比如用户通过按压预设的快捷键或者通过手指在电子设备的屏幕上互动输入预设的滑动轨迹等。Optionally, satisfying the screenshot trigger condition may be receiving a user screenshot operation instruction, for example, the user presses a preset shortcut key or interacts with a finger to input a preset sliding track on the screen of the electronic device.
可选地,上述满足截屏触发条件也可以是按照预设的时间间隔,由电子设备的进行自动执行截屏操作。Optionally, satisfying the above-mentioned triggering condition for screenshot may also be that the screenshot operation is automatically performed by the electronic device according to a preset time interval.
可选地,上述满足截屏触发条件也可以是在电子设备的确定电子设备的屏幕保持当前 显示的内容不变的时长超过了第一预设时长,则执行一次截屏操作。如判断出电子设备的屏幕保持当前显示的内容不变的时长为3秒,第一预设时长为2秒,则确定为用户计划将电子设备的屏幕当前显示的内容作为目标截屏截屏子图像,故对所述电子设备的屏幕当前显示的内容进行一次截屏操作。Optionally, the above-mentioned fulfillment of the screenshot triggering condition may also be that a screenshot operation is performed when the electronic device determines that the duration for which the screen of the electronic device keeps the currently displayed content unchanged exceeds the first preset duration. If it is determined that the duration for which the screen of the electronic device keeps the currently displayed content unchanged is 3 seconds, and the first preset duration is 2 seconds, it is determined that the user plans to use the content currently displayed on the screen of the electronic device as the target screenshot sub-image, Therefore, a screenshot operation is performed on the content currently displayed on the screen of the electronic device.
步骤14:基于所述截屏子图像,输出截屏目标图像。Step 14: Based on the screenshot sub-image, output the screenshot target image.
通过步骤13可以获取到至少一帧截屏子图像。At least one frame of screenshot sub-image can be acquired through step 13 .
若用户所需要的截屏目标图像仅是目标文件的多个图像子区域中的某一个目标图像子区域,则在电子设备的屏幕上显示了所述目标图像子区域的时候,由用户向电子设备的输入一个截屏操作,以使得截屏触发条件被满足,从而可以获取目标图像子区域对应的截屏子图像。If the target image for screenshots required by the user is only a certain target image sub-area among multiple image sub-areas of the target file, when the target image sub-area is displayed on the screen of the electronic device, the user sends the electronic device to the target image sub-area. The input of a screen capture operation, so that the screen capture trigger condition is satisfied, so that the screen capture sub-image corresponding to the target image sub-region can be obtained.
若用户的截屏目标图像是目标文件的多个图像子区域所对应的截屏图像,即所述目标图像子区域为多个的情况下,在电子设备的屏幕上依次显示目标文件的各个图像子区域的过程中,用户可以在每次出现目标图像子区域的情况下,向电子设备的输入一个截屏操作,以对每次出现的目标图像子区域进行一次截屏操作,从而可以获取到多帧截屏子图像。If the user's screenshot target image is a screenshot image corresponding to multiple image sub-regions of the target file, that is, if there are multiple target image sub-regions, each image sub-region of the target file is displayed in sequence on the screen of the electronic device During the process, the user can input a screen capture operation to the electronic device every time the target image sub-area appears, so as to perform a screen-capture operation for each target image sub-area that appears, so that multiple frames of screen capture sub-areas can be obtained. image.
最后,将所有的截屏子图像进行图像处理,如图像拼接处理,则可以获取到由所有截屏子图像所构成的截屏目标图像。Finally, all the screenshot sub-images are subjected to image processing, such as image stitching, to obtain a screenshot target image composed of all the screenshot sub-images.
若用户的截屏目标图像是目标文件的全截屏图像,在保证所有的图像子区域的并集能构成目标文件的所有区域的情况下,用户可以对所有的图像子区域分别进行截屏操作,以获取到目标文件的全截屏图像。If the user's screenshot target image is the full screenshot image of the target file, the user can take screenshots of all the image sub-regions separately to obtain to the full screen shot of the target file.
进一步地,用户在获取到截屏目标图像后,可以对截屏目标图像进行查看、编辑以及分享操作。Further, after acquiring the screenshot target image, the user can view, edit and share the screenshot target image.
本申请提供的截屏方法,能根据用户的选择,对大文件中的目标内容分多次进行截屏,再将截屏图像组合拼接,以获取完整清晰的大文件截图,能够满足用户对于截屏内容的选择需求并有效的提高了截屏图像的质量。The screenshot method provided by the present application can take screenshots of the target content in a large file multiple times according to the user's choice, and then combine and splicing the screenshot images to obtain a complete and clear screenshot of the large file, which can satisfy the user's selection of the screenshot content. requirements and effectively improve the quality of screenshots.
基于上述实施例的内容,作为一种可选实施例,在所述电子设备的屏幕上显示有进度条标识,所述进度条标识包括竖直进度条标识和水平进度条标识;Based on the content of the foregoing embodiment, as an optional embodiment, a progress bar logo is displayed on the screen of the electronic device, and the progress bar logo includes a vertical progress bar logo and a horizontal progress bar logo;
所述水平进度条标识的总滑动轨迹与所述目标文件的图像宽度适配;The total sliding track identified by the horizontal progress bar is adapted to the image width of the target file;
所述竖直进度条标识的总滑动轨迹与所述目标文件的图像长度适配;The total sliding track identified by the vertical progress bar is adapted to the image length of the target file;
在所述进度条标识上通过不同的进度条区间,标注了所述目标文件的已被截屏部分和未被截屏部分。The screen-captured part and the non-screen-captured part of the target file are marked on the progress bar identifier through different progress bar intervals.
图3是本申请实施例提供的进行截屏操作的流程界面示意图,如图3所示,本申请所 提供的截屏方法,为了便于用户的截屏控制,在电子设备的屏幕的截屏界面上设置了进度条标识。在本申请所提供的截屏方法中,可以对图像尺寸大于电子设备的屏幕尺寸的大文档进行全截屏或者部分截屏,主要是通过用户的第一输入控制电子设备的屏幕当前显示的目标文件的图像子区域,以通过对图像子区域的选择性截屏,获取目标图像子区域对应的截屏子图像,最后将所有的截屏子图像合成截屏目标图像。FIG. 3 is a schematic diagram of a process interface for performing a screen capture operation provided by an embodiment of the present application. As shown in FIG. 3 , in the screen capture method provided by the present application, in order to facilitate the user's screen capture control, a progress is set on the screen capture interface of the screen of the electronic device. Strip ID. In the screen capture method provided by the present application, a full screen shot or a partial screen shot of a large document whose image size is larger than the screen size of the electronic device can be taken, mainly by controlling the image of the target file currently displayed on the screen of the electronic device through the first input of the user sub-regions, to obtain the screenshot sub-images corresponding to the target image sub-regions by selectively taking screenshots of the image sub-regions, and finally combine all the screenshot sub-images into the screenshot target image.
可选地,本申请提供的截屏方法,通过在截屏界面上设置了进度条标识,能够满足用户通过对进度条标识的输入(如滑动输入或点动输入),实现对屏幕中所显示的目标文件的图像子区域的切换。Optionally, the screen capture method provided by the present application, by setting the progress bar mark on the screen capture interface, can satisfy the user's input (such as sliding input or jog input) to the progress bar mark, and realize the target displayed on the screen. Toggles the image sub-area of the file.
由于目标文档的图像不仅长度大于电子设备的屏幕长度,而且其宽度往往也会大于电子设备的屏幕宽度,在相关技术中一般是采用缩放的方式使目标文档的图像长度与电子设备的屏幕长度相同,然后再进行截屏。为了克服相关技术这一截屏方法可能造成截屏目标图像失真的不足,本申请提供的截屏方法无需对目标文档的图像进行缩放,通过在电子设备的屏幕上设置竖直进度条标识和水平进度条标识,不仅提供用户通过所述竖直进度条标识对目标文档在竖直方向上的显示进行操作的,还可以提供用户通过所述水平进度条标识对目标文档在水平方向上的显示进行操作,以在电子设备的屏幕中所显示的不同的图像子区域,以便于对图像子区域中的目标图像子区域进行截屏,并最终获取到无需缩放的截屏目标图像。Since the image of the target document is not only longer than the screen length of the electronic device, but also its width is often larger than the screen width of the electronic device, in the related art, the image length of the target document is generally the same as the screen length of the electronic device by means of scaling. , and then take a screenshot. In order to overcome the deficiencies in the related art that the screen capture method may cause distortion of the screen capture target image, the screen capture method provided by the present application does not need to zoom the image of the target document. , not only provides the user to operate the display of the target document in the vertical direction through the vertical progress bar identification, but also provides the user to operate the display of the target document in the horizontal direction through the horizontal progress bar identification, to The different image sub-regions displayed on the screen of the electronic device are convenient for taking screenshots of the target image sub-regions in the image sub-regions, and finally obtaining a screenshot target image that does not need to be zoomed.
相应地,步骤11中的第一输入则可以是用户用一只手指长按竖直进度条标识和水平进度条标识中的至少一个后的拖动操作。Correspondingly, the first input in step 11 may be a drag operation after the user long presses at least one of the vertical progress bar identifier and the horizontal progress bar identifier with one finger.
进一步地,进度条标识可以为条状结构,其中水平进度条标识平行于电子设备的屏幕的底边,竖直进度条标识平行于电子设备的屏幕的侧边。Further, the progress bar identifier may be a bar-like structure, wherein the horizontal progress bar identifier is parallel to the bottom edge of the screen of the electronic device, and the vertical progress bar identifier is parallel to the side edge of the screen of the electronic device.
进一步地,水平进度条标识可以设置于电子设备的屏幕的顶部或者底部,水平进度条标识可以设置于电子设备的屏幕的左侧或者右侧边,对此本申请不作具体地限定。Further, the horizontal progress bar logo can be set on the top or bottom of the screen of the electronic device, and the horizontal progress bar logo can be set on the left or right side of the screen of the electronic device, which is not specifically limited in this application.
进一步地,水平进度条标识的总滑动轨迹与所述目标文件的图像宽度相适配,竖直进度条标识的总滑动轨迹与所述目标文件的图像长度相适配。Further, the total sliding track marked by the horizontal progress bar is adapted to the image width of the target file, and the total sliding track marked by the vertical progress bar is adapted to the image length of the target file.
由于水平度条标识和竖直长度条标识的长度均是不变的,可以先获取目标文件的图像尺寸,再确定出目标文件的图像总宽度与水平进度条标识的长度的第一比例,并确定出目标文件的图像总长度和竖直进度条标识的长度的第二比例。然后,将所述第一比例作为水平进度条标识的总滑动轨迹与目标文件的图像宽度的适配比例尺,将所述第二比例作为竖直进度条标识的总滑动轨迹与目标文件的图像长度的适配比例尺。Since the lengths of the horizontality bar logo and the vertical length bar logo are constant, the image size of the target file can be obtained first, and then the first ratio of the total image width of the target file to the length of the horizontal progress bar logo can be determined, and then A second ratio between the total image length of the target file and the length marked by the vertical progress bar is determined. Then, the first ratio is used as the fitting scale between the total sliding track marked by the horizontal progress bar and the image width of the target file, and the second ratio is used as the total sliding track marked by the vertical progress bar and the image length of the target file. Scale of adaptation.
进一步地,本申请提供的截屏方法,还可以通过不同的进度条色调、不同的进度条形 状等,在进度条标识上标识出不同的进度条区间,并根据实际截屏进度,利用不同的进度条区间表示目标文件已被截屏部分和未被截屏部分。Further, the screenshot method provided by the present application can also use different progress bar tones, different progress bar shapes, etc., to identify different progress bar intervals on the progress bar logo, and use different progress bars according to the actual screenshot progress. The interval represents the portion of the target file that has been screened and the portion that has not been screened.
如图3所示,是利用虚线表示的进度条区间来标注整个目标文件已经被截屏部分,并利用实线表示的进度条区间来标注整个目标文件已经被截屏部分,所有进度条区间则组成目标文件的所有区域。As shown in Figure 3, the progress bar interval represented by the dotted line is used to mark the screen-captured part of the entire target file, and the progress bar interval represented by the solid line is used to mark the screen-captured part of the entire target file, and all the progress bar intervals constitute the target file. all areas of the file.
进一步地,也可以利用一种色调进度条区间(如红色)来标注整个目标文件已经被截屏部分,利用另一色调进度条区间(如黄色)来标注整个目标文件已经被截屏部分,对此本申请不作具体限定。Further, you can also use one tone progress bar interval (such as red) to mark the part of the entire target file that has been screened, and use another tone progress bar interval (such as yellow) to mark the entire target file that has been screenshotted. The application is not specifically limited.
本申请提供的截屏方法,通过在电子设备的屏幕上设置进度条标识,并通过在进度条标识设置不同的进度条区间,以向用户展示目标文件已被截屏部分和未被截屏部分,方便用户及时了解截屏进度,且可以直接定位至未被截屏部分,无需用户对整个目标文件进行重新查看确认,方便用户对截图的状态、截屏的内容进行查看。The screen capture method provided by the present application, by setting a progress bar mark on the screen of the electronic device, and by setting different progress bar intervals on the progress bar mark, so as to show the user the part that has been screen-captured and the part that has not been screen-captured of the target file, which is convenient for the user Keep abreast of the screen capture progress, and can directly locate the part that has not been screened, without the need for the user to re-check and confirm the entire target file, which is convenient for users to view the status of the screenshot and the content of the screenshot.
基于上述实施例的内容,作为一种可选实施例,在电子设备的屏幕上分别显示目标文件的多个图像子区域,具体包括:Based on the content of the foregoing embodiment, as an optional embodiment, displaying a plurality of image sub-regions of the target file on the screen of the electronic device respectively includes:
响应于用户对两个游标标识的定位操作,调整所述电子设备的屏幕上所显示的图像子区域;In response to the user's positioning operation on the two cursor markers, adjusting the image sub-region displayed on the screen of the electronic device;
所述两个游标标识分别位于所述竖直方向进度条和所述水平方向进度条中;The two cursor identifiers are respectively located in the vertical direction progress bar and the horizontal direction progress bar;
所述图像子区域是根据定位操作后的所述两个游标标识在所述竖直方向进度条和所述水平方向进度条中的位置确定的。The image sub-region is determined according to the positions of the two cursor markers in the vertical progress bar and the horizontal progress bar after the positioning operation.
具体地,在本申请提供的截屏方法中,在将位于竖直进度条标识上的游标标识(Ya)由竖直进度条标识的起点向终点匀速滑动的过程中,能实现将目标文件从竖直方向的起点位置匀速转换至竖直方向的终点位置的操作。Specifically, in the screenshot method provided by the present application, in the process of uniformly sliding the cursor mark (Ya) located on the vertical progress bar mark from the starting point of the vertical progress bar mark to the end point, the target file can be moved from the vertical mark to the end point. The operation of changing the starting position in the vertical direction to the end position in the vertical direction at a constant speed.
相应地,将位于水平进度条标识上的游标标识(Xa)由水平进度条标识的起点向终点匀速滑动的过程中,实现将目标文件从水平方向的起点位置匀速转换至水平方向的终点位置的操作。Correspondingly, in the process that the cursor mark (Xa) on the horizontal progress bar mark is slid to the end point at a constant speed by the starting point of the horizontal progress bar mark, the target file is converted from the starting point position of the horizontal direction to the terminal position of the horizontal direction at a constant speed. operate.
相应地,若同时调整竖直进度条标识和水平进度条标识上的游标标识,则可以实现将目标文件在电子设备的屏幕的显示内容向水平方向和竖直方向同时调整,以显示对应的目标文件的图像子区域。Correspondingly, if the cursor marks on the vertical progress bar logo and the horizontal progress bar logo are adjusted at the same time, the display content of the target file on the screen of the electronic device can be adjusted to the horizontal direction and the vertical direction at the same time to display the corresponding target. The image subregion of the file.
基于上述实施例的内容,作为一种可选实施例,在所述电子设备的屏幕上设置有页码标识,所述页码标识主要包括第一页码标识和第二页码标识;Based on the content of the foregoing embodiment, as an optional embodiment, a page number identifier is provided on the screen of the electronic device, and the page number identifier mainly includes a first page number identifier and a second page number identifier;
在所述第一页码标识上显示有水平页码总数和水平页码数;所述水平页码总数是根据 所述目标文件的图像宽度与所述电子设备的屏幕宽度的比值确定的;所述水平页码数为当前所述电子设备的屏幕的显示内容在水平方向的页码数;The total number of horizontal page numbers and the number of horizontal page numbers are displayed on the first page number identifier; the total number of horizontal page numbers is determined according to the ratio of the image width of the target file to the screen width of the electronic device; the number of horizontal page numbers is the number of pages in the horizontal direction of the current display content of the screen of the electronic device;
在所述第二页码标识上显示有竖直页码总数和竖直页码数;所述竖直页码总数是根据所述目标文件的图像长度与所述电子设备的屏幕长度的比值确定的;所述竖直页码数为当前所述电子设备的屏幕的显示内容在竖直方向的页码数。The total number of vertical page numbers and the number of vertical page numbers are displayed on the second page number identifier; the total number of vertical page numbers is determined according to the ratio of the image length of the target file to the screen length of the electronic device; the The vertical page number is the current page number of the displayed content on the screen of the electronic device in the vertical direction.
如图3所示,本申请提供的截屏方法为了便于用户直观的获取电子设备的屏幕当前所显示的图像子区域在目标文件中的定位,通过在电子设备的屏幕的截屏界面上设置页码标识,且为水平方向配置第一页码标识(Xb),为竖直方向配置第二页码标识(Yb)。As shown in Figure 3, in order to facilitate the user to intuitively obtain the location of the image sub-region currently displayed on the screen of the electronic device in the target file, the screenshot method provided by the present application sets the page number mark on the screenshot interface of the screen of the electronic device, And a first page number identification (Xb) is configured for the horizontal direction, and a second page number identification (Yb) is configured for the vertical direction.
如图3所示,第一页码标识(Xb)上显示的内容是2/3,具体是指:目标文档在电子设备的屏幕的水平方向上共有3页,显示在电子设备的屏幕的图像子区域对应的页码是这3页中的第2页。第二页码标识(Yb)上显示的内容是1/2,具体是指:目标文档在电子设备的屏幕的竖直方向上共有2页,当前显示在电子设备的屏幕的图像子区域对应的页码是这2页中的第1页。As shown in FIG. 3 , the content displayed on the first page identifier (Xb) is 2/3, which specifically refers to: the target document has 3 pages in the horizontal direction of the screen of the electronic device, and the image subsection displayed on the screen of the electronic device The page number corresponding to the area is the 2nd of these 3 pages. The content displayed on the second page number identifier (Yb) is 1/2, specifically: the target document has 2 pages in the vertical direction of the screen of the electronic device, and the page number corresponding to the image sub-area currently displayed on the screen of the electronic device is the 1st of these 2 pages.
进一步地,本申请还提供一种确定页码总数的方法,如图2中所示,其中的虚线区域可以理解为目标文件a的图像区域,设其图像尺寸为长43cm、宽为32cm;其中填充区域表示电子设备的屏幕所占的区域,设其电子设备的屏幕的为长16cm、宽9cm。获取目标文件a的图像长度与电子设备的屏幕长度的比值为43/16,并获取目标文件a的图像宽度与电子设备的屏幕宽度的比值32/9;由于两个比值均存在余数,则将两个比值取整后加1,作为水平页码总数和竖直页码总数。Further, the present application also provides a method for determining the total number of pages, as shown in Figure 2, where the dotted area can be understood as the image area of the target file a, and its image size is set to be 43cm long and 32cm wide; The area represents the area occupied by the screen of the electronic device, and the screen of the electronic device is set to be 16 cm long and 9 cm wide. The ratio of the image length of the target file a to the screen length of the electronic device is 43/16, and the ratio of the image width of the target file a to the screen width of the electronic device is 32/9; since there is a remainder in both ratios, the After the two ratios are rounded up, add 1 as the total number of horizontal page numbers and the total number of vertical page numbers.
若任一比值不存在余数,则直接将整数比值作为水平或竖直方向上的页码总数。If there is no remainder in any ratio, the integer ratio is directly used as the total number of pages in the horizontal or vertical direction.
通过上述方法可以获知:图2所示的目标文件的水平页码总数和竖直页码总数分别为4和3。Through the above method, it can be known that the total number of horizontal page numbers and the total number of vertical page numbers of the target file shown in FIG. 2 are 4 and 3, respectively.
进一步地,水平页码数和竖直页码数的确定,可以根据电子设备的屏幕的中心位置所显示的内容位于目标文件所有内容中的位置来确定;也可以根据电子设备的屏幕的顶部所显示的内容位于目标文件所有内容中的位置,确定竖直页码数;也可以根据电子设备的屏幕最左侧所显示的内容位于目标文件所有内容中的位置,确定水平页码数。Further, the determination of the horizontal page number and the vertical page number can be determined according to the position of the content displayed in the center position of the screen of the electronic device in all the contents of the target file; it can also be determined according to the position displayed at the top of the screen of the electronic device. The position of the content in all the contents of the target file determines the vertical page number; the horizontal page number can also be determined according to the position of the content displayed on the far left of the screen of the electronic device in all the contents of the target file.
本申请提供的截屏方法,通过在电子设备的屏幕上设置页码标识,并通过在页码标识上显示页码总数和当前页码数,以向用户展示电子设备的屏幕当前显示的图像子区域在目标文件中的定位,方便用户及时了解当前截屏的状态,方便用户查看,也提高了用户截图的效率。The screen capture method provided by the present application shows to the user that the image sub-area currently displayed on the screen of the electronic device is in the target file by setting a page number identifier on the screen of the electronic device, and displaying the total number of pages and the current page number on the page number identifier. It is convenient for users to know the status of the current screenshot in time, which is convenient for users to view, and also improves the efficiency of user screenshots.
进一步地,所述响应于所述第一输入,在电子设备的屏幕上分别显示目标文件的多个 图像子区域,可以包括:Further, in response to the first input, respectively displaying a plurality of image sub-regions of the target file on the screen of the electronic device may include:
响应于用户对所述两个页码标识中的至少一个的修改输入,调整所述电子设备的屏幕上所显示的图像子区域;In response to a user's input to modify at least one of the two page identifications, adjusting the image sub-region displayed on the screen of the electronic device;
所述图像子区域是根据修改输入后的所述两个页码标识在所述目标文件中确定的内容。The image sub-region is the content determined in the target file according to the two page number identifiers after modification and input.
具体地,用户可以直接对页码标识中所显示的当前页码数进行修改,以直接定位至目标图像子区域。Specifically, the user can directly modify the current page number displayed in the page number identifier to directly locate the target image sub-region.
如图3所示,用户可以通过将第一页码标识2/3修改为1/3,并保持第二页码标识不变,则可以实现将目标文件在水平方向上向前翻页(由第2页调整至第1页),并显示在电子设备的屏幕上,作为图像子区域。As shown in Figure 3, the user can change the first page number 2/3 to 1/3 and keep the second page number unchanged, so that the target file can be turned forward in the horizontal direction (by the second page number). page is adjusted to page 1) and displayed on the screen of the electronic device as an image sub-area.
作为可选地,用户也可以通过将第二页码标识1/2修改为2/2,并保持第一页码标识不变,则可以实现将目标文件在竖直方向上向后翻页(由第1页调整至第2页),并显示在电子设备的屏幕上,作为图像子区域。Alternatively, the user can also change the second page number identifier 1/2 to 2/2, and keep the first page number identifier unchanged, so that the target file can be paged backwards in the vertical direction (by the first page number identifier). 1 page to page 2) and displayed on the screen of the electronic device as an image sub-area.
作为可选地,也可以用户也可以通过将第一页码标识2/3修改为1/3,将第二页码标识1/2修改为2/2,则可以实现将目标文件在水平方向上向前翻页的同时,在竖直方向上向后翻页,并显示在电子设备的屏幕上作为图像子区域。Alternatively, the user can also modify the first page number identification 2/3 to 1/3, and the second page number identification 1/2 to 2/2, so that the target file can be changed in the horizontal direction. While the page is turned forward, the page is turned backward in the vertical direction and displayed on the screen of the electronic device as an image sub-region.
本申请提供的截屏方法,通过在截屏界面上设置页码标识,以供用户通过对页码标识的设置,直接定位电子设备的屏幕当前显示内容,特别是方便用户在对总页数较多的大文档进行截屏时,迅速定位目标图像子区域,以获取对应的目标图像子区域提供了便利,有效的提高了用户截屏的效率。The screen capture method provided by the present application, by setting the page number identifier on the screen capture interface, allows the user to directly locate the current display content of the screen of the electronic device through the setting of the page number identifier, which is especially convenient for the user to scan large documents with a large number of total pages. When taking a screenshot, quickly locating the target image sub-region to obtain the corresponding target image sub-region provides convenience and effectively improves the efficiency of the user's screenshot.
基于上述实施例的内容,作为一种可选实施例,在显示所述多个图像子区域的过程中满足截屏触发条件的情况下,截屏获得目标图像子区域对应的截屏子图像,包括:Based on the content of the foregoing embodiment, as an optional embodiment, in the case where the trigger condition for screenshots is satisfied in the process of displaying the plurality of image sub-regions, taking a screenshot to obtain a screenshot sub-image corresponding to the target image sub-region includes:
在电子设备的屏幕上依次显示所述多个图像子区域的过程中,在接收到用户的第二输入的情况下,响应于所述第二输入,截屏获得所述目标图像子区域对应的截屏子图像;During the process of sequentially displaying the plurality of image sub-regions on the screen of the electronic device, in the case of receiving a second input from the user, in response to the second input, take a screenshot to obtain a screenshot corresponding to the target image sub-region subimage;
或,在获取电子设备的屏幕显示任一图像子区域的时长超过第一预设时长的情况下,截屏获得所述目标图像子区域对应的截屏子图像。Or, in the case that the duration of displaying any image sub-region on the acquired screen of the electronic device exceeds the first preset duration, take a screenshot to obtain the screenshot sub-image corresponding to the target image sub-region.
一方面,在对目标文档进行截屏处理的过程中,在电子设备的屏奴上显示了目标图像子区域后,用户可以通过第二输入,以控制电子设备的对电子设备的屏幕中所显示的图像子区域进行截屏操作。On the one hand, in the process of taking a screenshot of the target document, after the target image sub-region is displayed on the screen slave of the electronic device, the user can control the display of the electronic device on the screen of the electronic device through the second input. Take screenshots in the sub-region of the image.
可选地,所述第二输入可以是预先设定的一个快捷键,如:第二输入可以是用户按压电子设备的上的拍照按钮,则电子设备的响应于所述第二输入,对电子设备的屏幕中所显 示的图像子区域进行截屏。Optionally, the second input may be a preset shortcut key, for example, the second input may be that the user presses the camera button on the electronic device, and the electronic device responds to the second input to the electronic device. Take a screenshot of the sub-area of the image displayed on the screen of the device.
可选地,所述第二输入可以是用户在电子设备的屏幕上的点击、长按或者滑动操作等,对此本申请不作具体的限定。Optionally, the second input may be a user's click, long press, or sliding operation on the screen of the electronic device, which is not specifically limited in this application.
另一方面,为进一步减轻用户的操作复杂度,也可以设定第一预设时长,如2秒,在电子设备的屏幕显示当前内容的时长超过了2秒的情况下,自动对电子设备的屏幕显示的图像子区域进行截屏。On the other hand, in order to further reduce the operation complexity of the user, a first preset duration, such as 2 seconds, can also be set. When the duration of the current content displayed on the screen of the electronic device exceeds 2 seconds, the electronic device will automatically display the current content for more than 2 seconds. Take a screenshot of the sub-area of the image displayed on the screen.
可选地,所述第一预设时长可以根据个人的使用习惯由用户进行设置,若用户未进行设置,则按***推荐的最优时长进行截屏控制。Optionally, the first preset duration may be set by the user according to personal usage habits. If the user does not set it, the screen capture control is performed according to the optimal duration recommended by the system.
本申请通过设置第一预设时长,能够自动实现截屏操作,这一截屏控制方式也完全符合用户的使用习惯,能有效的提高截屏的效率,方便用户的操作。The present application can automatically realize the screen capture operation by setting the first preset duration. This screen capture control method also fully conforms to the user's usage habits, which can effectively improve the screen capture efficiency and facilitate the user's operation.
基于上述实施例的内容,作为一种可选实施例,所述基于所述截屏子图像,输出截屏目标图像,包括:Based on the content of the foregoing embodiment, as an optional embodiment, the outputting the screenshot target image based on the screenshot sub-image includes:
将两个所述截屏子图像进行图像合成,输出临时截屏图像;performing image synthesis on the two screenshot sub-images, and outputting a temporary screenshot image;
在满足截屏停止条件的情况下,将所述临时截屏图像作为截屏目标图像,输出所述截屏目标图像;Under the condition that the screen capture stop condition is satisfied, the temporary screen capture image is used as the screen capture target image, and the screen capture target image is output;
在不满足所述截屏停止条件的情况下,继续合成所述临时截屏图像与另一所述截屏子图像,并将输出的图像作为新的临时截屏图像;Continue to synthesize the temporary screenshot image and another screenshot sub-image under the condition that the screenshot stop condition is not satisfied, and use the output image as a new temporary screenshot image;
所述截屏停止条件包括:接收到用户的第三输入或确定所述临时截屏图像为所述目标文件的完整截屏图像。The screen capture stop condition includes: receiving a third input from the user or determining that the temporary screen capture image is a complete screen capture image of the target file.
本申请提供了一种获取截屏目标图像的方法,用户可以通过第一输入控制电子设备的屏幕所显示的图像子区域,包括在水平方向上改变电子设备的屏幕所显示的图像子区域,实现水平方向截图控制;也可以在竖直方向上改变电子设备的屏幕所显示的图像子区域,实现竖直方向截图控制。The present application provides a method for acquiring a screenshot target image. The user can control the image sub-region displayed on the screen of the electronic device through a first input, including changing the image sub-region displayed on the screen of the electronic device in the horizontal direction, so as to achieve horizontal Orientation screenshot control; it is also possible to change the image sub-region displayed on the screen of the electronic device in the vertical direction to realize vertical screenshot control.
图4是本申请提供的截屏方法的流程示意图之二,如图4所示,用户进行截屏操作的过程可以是:Fig. 4 is the second schematic flow chart of the screen capture method provided by the present application. As shown in Fig. 4, the process of the user performing the screen capture operation can be as follows:
步骤1:用户在电子设备的屏幕上已经显示了一个图像子区域的情况下,若所述图像子区域不是目标图像子区域,则可以通过第一输入,在竖直方向上改变电子设备的屏幕所显示的内容,直至出现目标图像子区域后,对目标图像子区域进行截屏,以实现水平方向截图,获取截屏子图像P1;Step 1: In the case that the user has displayed an image sub-region on the screen of the electronic device, if the image sub-region is not the target image sub-region, the screen of the electronic device can be changed in the vertical direction through the first input The displayed content, until the target image sub-region appears, take a screenshot of the target image sub-region to achieve a horizontal screenshot, and obtain the screenshot sub-image P1;
步骤2:用户可以继续按步骤1所述的方法,继续实现竖直方向截图或实现水平方向截图,并设获取的截屏子图像为P2;Step 2: The user can continue to follow the method described in step 1, continue to realize the vertical direction screenshot or realize the horizontal direction screenshot, and set the obtained screenshot sub-image as P2;
步骤3:将截屏子图像P1和截屏子图像P2进行图像合成,生成临时截屏图像P’1;Step 3: performing image synthesis on the screenshot sub-image P1 and the screenshot sub-image P2 to generate a temporary screenshot image P'1;
步骤4:若用户判断临时截屏图像P’1不是截屏目标图像,则继续迭代执行步骤1-步骤3输出临时截屏图像P’2;其中,截屏目标图像可以是目标文件的全截屏图像也可以是目标文件的部分截屏图像。Step 4: If the user determines that the temporary screenshot image P'1 is not the screenshot target image, then continue to iteratively execute steps 1 to 3 to output the temporary screenshot image P'2; wherein, the screenshot target image may be a full screenshot image of the target file or a full screenshot image of the target file. Partial screenshot of the target file.
步骤5:若用户确定临时截屏图像P’2是截屏目标图像,则可以通过第三输入,指示电子设备的停止截屏并将所述临时截屏图像P’2作为截屏目标图像输出。Step 5: If the user determines that the temporary screenshot image P'2 is the screenshot target image, the third input can be used to instruct the electronic device to stop the screenshot and output the temporary screenshot image P'2 as the screenshot target image.
需要说明的,也可以预先设置电子设备的自动执行截屏操作,直至所获取的临时截屏图像是目标文件的全截屏图像为止,或接收到用户的停止截屏的指令为止。It should be noted that the automatic screen capture operation of the electronic device may also be preset until the acquired temporary screen capture image is the full screen capture image of the target file, or an instruction to stop screen capture is received from the user.
作为可选地,所述第三输入可以是用户在屏幕上显示截屏界面的情况下,在电子设备的屏幕上的点击、按压或滑动输入等,如:在电子设备的屏幕上用手指滑动输入一个“T”字形状的轨迹或“X”字形状的轨迹等,对此本申请不作具体地限定。Alternatively, the third input may be a click, press or slide input on the screen of the electronic device when the user displays a screen capture interface on the screen, for example: sliding input with a finger on the screen of the electronic device A trajectory in the shape of a "T" or a trajectory in the shape of an "X", etc., are not specifically limited in this application.
需要说明的是,本申请所提供的截屏方法,用户可以根据实际截屏的需要,决定每一步操作是进行竖直方向截图或者进行水平方向截图。如图4所示,用户在步骤1中也可以先进行水平方向截图,而后再陆续进行竖直方向截图或水平方向截图,对此本申请不作具体地限定。It should be noted that, in the screenshot method provided by the present application, the user can decide whether to take a vertical screenshot or a horizontal screenshot for each step of the operation according to the actual screenshot needs. As shown in FIG. 4 , in step 1, the user may also take screenshots in the horizontal direction first, and then take screenshots in the vertical direction or the horizontal direction successively, which is not specifically limited in this application.
图5是本申请实施例提供的截屏方法的流程示意图之三,综合图5和图3所示,本申请提供了另一种截屏操作方法,以用户先由竖直方向截图开始逐步实现截屏操作为例进行说明,其步骤主要包括但不限于:FIG. 5 is the third schematic flowchart of the screenshot method provided by the embodiment of the present application. As shown in FIG. 5 and FIG. 3 , the present application provides another screenshot operation method. The user first starts with a vertical screenshot to realize the screenshot operation step by step. As an example, the steps mainly include but are not limited to:
步骤1:用户对电子设备的屏幕上的图像子区域进行截屏。截屏后,用户在竖直方向进度条上显示已截图区间Y1,未截图区间Y2,第二页码标识为r1/t。此时,用户在水平进度条上显示已截图区间X1,未截图区间X2,第一页码标识为j1/k;所生成的截图图像为P1。Step 1: The user takes a screenshot of an image sub-region on the screen of the electronic device. After the screenshot is taken, the user displays the screened interval Y1 and the unscreened interval Y2 on the vertical progress bar, and the second page number is marked as r1/t. At this time, the user displays on the horizontal progress bar the screened section X1 and the unscreened section X2, and the first page number is identified as j1/k; the generated screen shot image is P1.
步骤2:用户在水平方向进行截屏后,然后再在竖直方向进行截屏。截屏后,用户在水平进度条上显示已截图区间X3,未截图区间为X4,第一页码标识为j2/k。用户在竖直进度条上显示已截图区间Y3,未截图区间为Y4,第二页码标识为r2/t;在获取到截图图像后,与步骤1中的P1进行合成,生成临时截屏图像P2。Step 2: After the user takes a screenshot in the horizontal direction, and then takes a screenshot in the vertical direction. After the screenshot is taken, the user displays the screened interval X3 on the horizontal progress bar, the unscreened interval X4, and the first page number is identified as j2/k. The user displays the screened interval Y3 on the vertical progress bar, the unscreened interval is Y4, and the second page number is marked as r2/t; after the screenshot image is obtained, it is combined with P1 in step 1 to generate a temporary screenshot image P2.
步骤3:用户在竖直方向通过竖直进度条标识上的游标标识滑动至未截图的部分Y2或未截图部分为Yn,设当前的第二页码标识为r3/t;此时在水平方向已截图部分为Xn;通过水平进度条标识上的游标标识滑动至未截图部分Xn+1,设当前的第一页码标识为j3/k;在通过游标标识实现电子设备的屏幕上的显示内容的改变后,获取一张新的截图图像,并将所述新的截图图像与上一步骤中所获取的临时截屏图像进行合成,输出临时截屏图像P3。Step 3: The user slides the cursor on the vertical progress bar to the unscreened part Y2 or the unscreened part Yn in the vertical direction, and set the current second page number as r3/t; The screenshot part is Xn; slide to the unscreened part Xn+1 through the cursor mark on the horizontal progress bar mark, set the current first page number mark as j3/k; realize the change of the display content on the screen of the electronic device through the cursor mark Then, a new screenshot image is acquired, and the new screenshot image is synthesized with the temporary screenshot image obtained in the previous step, and the temporary screenshot image P3 is output.
步骤4:用户在水平方向通过水平进度条标识上的游标标识滑动至未截图的部分X2, 未截图部分为Xn,设当前的第一页码标识为jn/k;此时在水平方向已截图部分为Yn,通过竖直进度条标识上的游标标识滑动至未截图部分Yn+1,设当前的第二页码标识为rn/t;在通过游标标识实现电子设备的屏幕上的显示内容的改变后,获取一张新的截图图像,并将所述新的截图图像与上一步骤中所获取的临时截屏图像进行合成,输出临时截屏图像P4。Step 4: The user slides in the horizontal direction to the unscreened part X2 through the cursor on the horizontal progress bar sign, the unscreened part is Xn, and the current first page number sign is jn/k; at this time, the screened part in the horizontal direction It is Yn, slide to the unscreened part Yn+1 through the cursor mark on the vertical progress bar mark, and set the current second page number mark as rn/t; after realizing the change of the display content on the screen of the electronic device through the cursor mark , obtain a new screenshot image, and synthesize the new screenshot image with the temporary screenshot image obtained in the previous step, and output the temporary screenshot image P4.
步骤5:迭代执行上述步骤1-步骤4,直至满足截屏停止条件为止。其中,所述截屏停止条件可以是:接收用户的第三输入或确定所述临时截屏图像为所述目标文件的完整截屏图像。Step 5: Iteratively execute the above steps 1-4 until the screen capture stop condition is met. Wherein, the stop condition of the screenshot may be: receiving a third input from the user or determining that the temporary screenshot image is a complete screenshot image of the target file.
步骤6:用户查看、编辑、分享所获取的截屏目标图像。Step 6: The user views, edits, and shares the captured screenshot target image.
本申请提供的截屏方法,通过将每次截屏操作所获取的截屏子图像,分别与之前所有截屏子图像所构成的临时截屏图像进行合成,以逐步生成截屏目标图像,在这一过程中,用户能够清楚的知道截屏操作的进展状态,以根据实际的进展对截屏的内容、截屏的速度等进行干涉控制,能够满足不同用户的截屏需求,尤其是能够实现对于目标文件的部分截图。The screenshot method provided by the present application is to gradually generate a screenshot target image by synthesizing the screenshot sub-images obtained by each screenshot operation with the temporary screenshot images formed by all previous screenshot sub-images. It can clearly know the progress status of the screenshot operation, so as to intervene and control the content of the screenshot and the speed of the screenshot according to the actual progress.
基于上述实施例的内容,作为一种可选实施例,所述将至少两个所述截屏子图像进行图像合成,输出临时截屏图像,包括:Based on the content of the foregoing embodiment, as an optional embodiment, performing image synthesis on at least two of the screenshot sub-images, and outputting a temporary screenshot image, includes:
根据每个截屏子图像的截屏时间的先后顺序,依次将每个所述截屏子图像进行图像合成,输出临时截屏图像。According to the sequence of the screenshot time of each screenshot sub-image, image synthesis is performed on each of the screenshot sub-images in sequence, and a temporary screenshot image is output.
本申请提供的截屏方法,依据截屏子图像的获取时间,依次将之后获取的截屏子图像与之前由所有截屏子图像所合成的临时截屏图像进行合成,最终生成并输出截屏目标图像。The screenshot method provided by the present application, according to the acquisition time of the screenshot sub-image, sequentially synthesizes the screenshot sub-image obtained later with the temporary screenshot image synthesized by all the screenshot sub-images before, and finally generates and outputs the screenshot target image.
需要说明的是,采用这一合成方法,所采用的图片合成方法,是将两帧截屏子图像按照时间顺序进行拼接,虽然最终所输出的截屏目标图像的尺寸与目标文件的图像尺寸一般来说是不相同的,但是对于仅仅需要获取到所有截屏图像而对图像的合成要求不高的用户来说,能有效的提高截屏的速度。It should be noted that, using this synthesis method, the adopted picture synthesis method is to splicing two frames of screenshot sub-images in chronological order, although the size of the final output screenshot target image is generally the same as the image size of the target file. They are not the same, but for users who only need to obtain all the screenshot images and do not have high requirements for image synthesis, it can effectively improve the speed of screenshots.
进一步地,上述将至少两个所述截屏子图像进行图像合成,输出临时截屏图像,主要包括:Further, performing image synthesis on at least two of the screenshot sub-images above, and outputting a temporary screenshot image, mainly includes:
根据每个截屏子图像对应的图像子区域在所述目标文件中的位置信息,分别确定两个所述截屏子图像在所述截屏目标图像中的第一标志位信息和第二标志位信息;According to the position information of the image sub-region corresponding to each screenshot sub-image in the target file, respectively determine the first flag bit information and the second flag bit information of the two screenshot sub-images in the screenshot target image;
基于所述第一标志位信息和所述第二标志位信息,对两个所述截屏子图像进行图像合成,输出所述临时截屏图像。Based on the first flag bit information and the second flag bit information, image synthesis is performed on the two screenshot sub-images, and the temporary screenshot image is output.
本申请所提供的截屏方法,是根据前后时间点所获取的截屏子图像在目标文件中的位置信息,来实现图像的合成。The screenshot method provided by the present application realizes image synthesis according to the position information of the screenshot sub-images in the target file acquired at the previous and subsequent time points.
具体地,以图2所示为例,假设获取的两个截屏子图像分别为图2中的P1和P2。由于两帧截屏子图像P1、P2的尺寸与电子设备的屏幕的尺寸均相同,则可以根据P1、P2所对应的图像子区域,确定P1和P2在目标文件中的实际位置。Specifically, taking the example shown in FIG. 2 , it is assumed that the acquired two screenshot sub-images are P1 and P2 in FIG. 2 respectively. Since the sizes of the two screenshot sub-images P1 and P2 are the same as the screen size of the electronic device, the actual positions of P1 and P2 in the target file can be determined according to the image sub-regions corresponding to P1 and P2.
在本申请所提供的截屏方法中,可以根据P1和P2所对应的图像子区域在目标文件中的实际位置信息,可以获取到P1、P2在截屏目标图像的位置信息,记为第一标志位信息和第二标志位信息。In the screenshot method provided by this application, the position information of P1 and P2 in the screenshot target image can be obtained according to the actual position information of the image sub-regions corresponding to P1 and P2 in the target file, which is recorded as the first flag bit information and the second flag information.
进一步地,可以根据第一标志位信息和第二标志位信息对两帧截屏子图像进行合成。例如:若两帧截屏子图像不存在交集区域,则分别将两帧截屏子图像分别拼接至第一标志位和第二标志位;若两帧截屏子图像之间存在交集区域,则可以根据两帧截屏子图像的第一标志位信息和第二标志位信息之间的并集,确信合成后的临时截屏图像在截屏目标图像中的位置。Further, two frames of screenshot sub-images may be synthesized according to the first flag bit information and the second flag bit information. For example: if there is no intersection area between the two frames of screenshot sub-images, the two frames of screenshot sub-images are spliced to the first and second flag positions respectively; if there is an intersection area between the two frames of screenshot sub-images, you can The union of the first flag bit information and the second flag bit information of the screen shot sub-image of the frame determines the position of the synthesized temporary screen shot image in the screen shot target image.
进一步地,在本申请提供的截屏方法中,所述基于所述第一标志位信息和所述第二标志位信息,对两个所述截屏子图像进行图像合成,输出所述临时截屏图像,包括:Further, in the screenshot method provided by the present application, the image synthesis is performed on the two screenshot sub-images based on the first flag bit information and the second flag bit information, and the temporary screenshot image is output, include:
基于所述第一标志位信息和所述第二标志位信息,将两个所述截屏子图像合成所述临时截屏图像;combining the two screenshot sub-images into the temporary screenshot image based on the first flag bit information and the second flag bit information;
在所述临时截屏图像中,存在与所述目标文件未被截屏区域相对应的未填充区域的情况下,将所述未填充区域以空白图像填充;所述截屏目标图像的尺寸与所述目标文件的图像尺寸相同。In the temporary screenshot image, if there is an unfilled area corresponding to the uncaptured area of the target file, the unfilled area is filled with a blank image; the size of the screenshot target image is the same as the size of the target file. The image size of the file is the same.
具体地,本申请提供的截屏方法是要求所获取的截屏目标图像的尺寸与目标文件的图像尺寸相同。Specifically, the screenshot method provided by the present application requires that the size of the obtained screenshot target image is the same as the image size of the target file.
在所要获取的截屏目标图像是目标文档的部分截屏图像的情况下,则在截屏目标图像中将未包含目标文档的截屏图像的区域,用空白图像进行填充,以保证最终输出的截屏目标图像的尺寸与目标文件的图像尺寸相同。If the target screenshot image to be acquired is a partial screenshot image of the target document, the area of the target screenshot image that does not contain the screenshot image of the target document is filled with a blank image to ensure that the final output screenshot target image has The dimensions are the same as the image dimensions of the target file.
本申请提供的截屏方法,在截屏目标图像的合成过程中,通过采用将未包含目标文档的截屏图像的区域进行填充处理,能够保证所获取的截屏目标图像的尺寸与所述目标文件的图像尺寸相同,以便于用户清楚的获知所截屏的部分在目标文件中的具***置,也可以方便用户对最终获取的截屏目标图像进行复核,保证截屏目标图像的完整性。The screenshot method provided by the present application can ensure that the size of the obtained screenshot target image and the image size of the target file can be guaranteed by filling the area of the screenshot image that does not contain the target document during the synthesis process of the screenshot target image. In the same way, it is convenient for the user to clearly know the specific position of the screenshotted part in the target file, and it is also convenient for the user to check the finally obtained screenshot target image, so as to ensure the integrity of the screenshot target image.
进一步地,在本申请提供的截屏方法中,所述基于所述第一标志位信息和所述第二标志位信息,对两个所述截屏子图像进行图像合成,输出所述临时截屏图像,也可以是:Further, in the screenshot method provided by the present application, the image synthesis is performed on the two screenshot sub-images based on the first flag bit information and the second flag bit information, and the temporary screenshot image is output, can also be:
基于所述第一标志位信息和所述第二标志位信息,将两个所述截屏子图像合成所述临时截屏图像;combining the two screenshot sub-images into the temporary screenshot image based on the first flag bit information and the second flag bit information;
在所述临时截屏图像中,存在与所述目标文件未被截屏区域相对应的未填充区域的情况下,将所述未填充区域以一条分隔线表示。In the temporary screenshot image, if there is an unfilled area corresponding to the unscreened area of the target file, the unfilled area is represented by a separation line.
与上述实施例中所提供的临时截屏图像的合成方法相比,特别在所要获取的截屏目标图像是目标文档的部分截屏图像的情况下,两种合成方法的不同之处主要在于:Compared with the synthesizing method of the temporary screenshot image provided in the above-mentioned embodiment, especially in the case that the screenshot target image to be acquired is a partial screenshot image of the target document, the difference between the two synthesizing methods mainly lies in:
本申请提供的截屏方法,先按照上述实施例的方法,在截屏目标图像的合成过程中,在获取到一帧新的截屏子图像后,根据所述截屏子图像的标志位信息,可以确定出其在目标文件中对应的位置,并由此确定出其在截屏目标图像中的标志位信息,以实现将该截屏子图像合成至所述标志位。本申请的区别在于,在将截屏子图像合成至所述标志位后,需进一步判断该截屏子图像与相邻的其他截屏子图像之间是否存在未被截屏图像填充的区域;若存在与所述目标文件未被截屏区域相对应的未填充区域的情况下,则将该区域以分隔符表示。In the screenshot method provided by the present application, firstly, according to the method of the above-mentioned embodiment, in the process of synthesizing the screenshot target image, after acquiring a new frame of screenshot sub-image, it can be determined according to the flag bit information of the screenshot sub-image. Its corresponding position in the target file, and thus its flag bit information in the screenshot target image is determined, so as to realize synthesizing the screenshot sub-image into the flag bit. The difference of the present application is that after synthesizing the screenshot sub-image to the flag position, it is necessary to further determine whether there is an area not filled by the screenshot image between the screenshot sub-image and other adjacent screenshot sub-images; In the case of the unfilled area corresponding to the unscreened area of the target file, the area is represented by a delimiter.
本申请提供的截屏方法,通过采用将未包含目标文档的截屏图像的区域进行合并,并用一根分隔线进行标示,能够有效的缩小截屏目标图像的尺寸,以方便用户的查看,并且用户根据所述截屏目标图像能够确定出各个截屏图像之间的位置关系,方便用户对截屏目标图像进行复核,保证截屏目标图像的正确性。The screenshot method provided by the present application can effectively reduce the size of the screenshot target image by merging the area of the screenshot image that does not contain the target document and mark it with a dividing line, so as to facilitate the user's viewing, and the user can effectively reduce the size of the screenshot target image according to the The screenshot target image can determine the positional relationship between each screenshot image, which is convenient for the user to check the screenshot target image and ensures the correctness of the screenshot target image.
图6是本申请实施例提供的截屏装置的结构示意图,如图6所示,本申请提供的截屏装置,主要包括:第一接收模块61、第一响应模块62、截屏处理模块63和图像处理单元64;FIG. 6 is a schematic structural diagram of a screen capture device provided by an embodiment of the present application. As shown in FIG. 6 , the screen capture device provided by the present application mainly includes: a first receiving module 61 , a first response module 62 , a screen capture processing module 63 , and image processing. unit 64;
第一接收模块601主要用于接收用户的多次第一输入;The first receiving module 601 is mainly used to receive multiple first inputs from the user;
第一响应模块602主要用于响应于所述第一输入,在电子设备的屏幕上分别显示目标文件的多个图像子区域;The first response module 602 is mainly used to display a plurality of image sub-regions of the target file on the screen of the electronic device in response to the first input;
截屏处理模块603主要用于在满足截屏触发条件的情况下,截屏获得目标图像子区域对应的截屏子图像;The screenshot processing module 603 is mainly used to capture the screenshot to obtain the screenshot sub-image corresponding to the target image sub-region under the condition that the screenshot trigger condition is satisfied;
图像处理单元604主要用于基于所述截屏子图像,输出截屏目标图像;The image processing unit 604 is mainly used for outputting a screenshot target image based on the screenshot sub-image;
其中,所述目标文件的图像尺寸大于所述电子设备的屏幕尺寸,将所述图像子区域中的至少一个作为所述目标图像子区域。Wherein, the image size of the target file is larger than the screen size of the electronic device, and at least one of the image sub-areas is used as the target image sub-area.
具体地,本申请提供的截屏处理装置的处理对象,可以是任意图像尺寸的目标文件,尤其能够实现大尺寸、大内容文档的截屏处理,以克服相关截屏技术中不能实现清晰完整截图的不足。Specifically, the processing object of the screenshot processing device provided by the present application can be a target file of any image size, and can especially realize the screenshot processing of large-sized and large-content documents, so as to overcome the deficiencies in related screenshot technologies that cannot achieve clear and complete screenshots.
其中,第一接收模块601所接收的第一输入可以是用户利用手指在屏幕上的向左、向右、向上或向下的滑动输入,通过所述第一输入能够实现对于电子设备的屏幕上的显示内 容的调整。其中,电子设备的屏幕上的显示内容是目标文件的某个图像子区域。Wherein, the first input received by the first receiving module 601 may be a user's sliding input to the left, right, upward or downward on the screen with a finger, and the first input can be used to realize the information on the screen of the electronic device. adjustment of the display content. Wherein, the display content on the screen of the electronic device is a certain image sub-region of the target file.
进一步地,假设第一输入是在电子设备的屏幕行的滑动输入,则第一响应模块602可以根据第一输入的方向和输入的轨迹等,对电子设备的屏幕上的显示内容进行调整,以分别显示目标文件的不同图像子区域。Further, assuming that the first input is a sliding input on the screen row of the electronic device, the first response module 602 can adjust the display content on the screen of the electronic device according to the direction of the first input and the input trajectory, etc. Displays different image sub-regions of the target file separately.
进一步地,当电子设备的屏幕进行多个图像子区域的依次显示的过程中,截屏处理模块603主要用于针对当前所显示的图像子区域,进行信息的收集,并判断当前截屏状态是否满足截屏触发条件。在确定截屏触发条件满足的情况下,将电子设备的屏幕所显示的图像子区域作为截屏对象,执行截屏操作。Further, in the process of sequentially displaying multiple image sub-regions on the screen of the electronic device, the screen capture processing module 603 is mainly used to collect information for the currently displayed image sub-regions, and to determine whether the current screen capture state satisfies the screen capture status. Triggering conditions. If it is determined that the triggering condition for screenshotting is satisfied, the image sub-region displayed on the screen of the electronic device is used as a screenshotting object, and a screenshotting operation is performed.
最后,图像处理单元604用于在每次获取到一个新的截屏子图像后,将所述截屏子图像与之前所有的截屏子图像合成后的临时截屏图像进行合成,以实现输出截屏目标图像的目的。Finally, the image processing unit 604 is configured to synthesize the screenshot sub-image with a temporary screenshot image obtained by combining all previous screenshot sub-images after each acquisition of a new screenshot sub-image, so as to realize the output of the screenshot target image. Purpose.
本申请提供的截屏装置,能根据用户的选择,对大文件中的目标内容分多次进行截屏,再将截屏图像组合拼接,以获取完整清晰的大文件截图,能够满足用户对于截屏内容的选择需求并有效的提高了截屏图像的质量。The screenshot device provided by the present application can take screenshots of the target content in the large file multiple times according to the user's choice, and then combine and splicing the screenshot images to obtain a complete and clear screenshot of the large file, which can satisfy the user's selection of the screenshot content. requirements and effectively improve the quality of screenshots.
可选地,在所述电子设备的屏幕上显示有进度条标识,所述进度条标识包括竖直进度条标识和水平进度条标识;Optionally, a progress bar sign is displayed on the screen of the electronic device, and the progress bar sign includes a vertical progress bar sign and a horizontal progress bar sign;
所述水平进度条标识的总滑动轨迹与所述目标文件的图像宽度适配;所述竖直进度条标识的总滑动轨迹与所述目标文件的图像长度适配;The total sliding track marked by the horizontal progress bar is adapted to the image width of the target file; the total sliding track marked by the vertical progress bar is adapted to the image length of the target file;
在所述进度条标识上通过不同的进度条区间,标注了所述目标文件的已被截屏部分和未被截屏部分。The screen-captured part and the non-screen-captured part of the target file are marked on the progress bar identifier through different progress bar intervals.
本申请提供的截屏***,通过在电子设备的屏幕上设置进度条标识,并通过在进度条标识设置不同的进度条区间,以向用户展示目标文件已被截屏部分和未被截屏部分,方便用户及时了解截屏的进度,且可以直接定位至未被截屏部分,无需用户对整个目标文件进行重新查看确认,提高了用户截图的效率。The screen capture system provided by the present application shows the part of the target file that has been screen-captured and the part that has not been screen-captured to the user by setting the progress bar mark on the screen of the electronic device, and by setting different progress bar intervals on the progress bar mark, which is convenient for the user. Know the progress of screenshots in time, and can directly locate the parts that have not been screenshotted, without the need for the user to re-check and confirm the entire target file, which improves the efficiency of user screenshots.
可选地,所述第一响应模块具体用于:Optionally, the first response module is specifically used for:
响应于用户对两个游标标识的定位操作,调整所述电子设备的屏幕上所显示的图像子区域;In response to the user's positioning operation on the two cursor markers, adjusting the image sub-region displayed on the screen of the electronic device;
所述两个游标标识分别位于所述竖直方向进度条和所述水平方向进度条中;The two cursor identifiers are respectively located in the vertical direction progress bar and the horizontal direction progress bar;
所述图像子区域是根据定位操作后的所述两个游标标识在所述竖直方向进度条和所述水平方向进度条中的位置确定的。The image sub-region is determined according to the positions of the two cursor markers in the vertical progress bar and the horizontal progress bar after the positioning operation.
本申请提供的截屏***,通过在电子设备的屏幕上设置进度条标识,并在每个进度条 标识上设置一个游标标识,以供用户通过游标标识在进度条标识上的位置,直接定位电子设备的屏幕当前显示内容,为用户迅速定位目标图像子区域以获取对应的目标图像子区域提供了便利,有效的提高了用户截屏的效率。The screenshot system provided by this application, by setting a progress bar logo on the screen of the electronic device, and setting a cursor logo on each progress bar logo, so that the user can directly locate the electronic device through the position of the cursor logo on the progress bar logo. The currently displayed content of the screen is convenient for the user to quickly locate the target image sub-area to obtain the corresponding target image sub-area, and effectively improves the efficiency of the user's screen capture.
可选地,在所述电子设备的屏幕上显示有页码标识,所述页码标识包括第一页码标识和第二页码标识;Optionally, a page number identifier is displayed on the screen of the electronic device, and the page number identifier includes a first page number identifier and a second page number identifier;
在所述第一页码标识上显示有水平页码总数和水平页码数;所述水平页码总数是根据所述目标文件的图像宽度与所述电子设备的屏幕宽度的比值确定的;所述水平页码数为当前所述电子设备的屏幕的显示内容在水平方向的页码数;The total number of horizontal page numbers and the number of horizontal page numbers are displayed on the first page number identifier; the total number of horizontal page numbers is determined according to the ratio of the image width of the target file to the screen width of the electronic device; the number of horizontal page numbers is the number of pages in the horizontal direction of the current display content of the screen of the electronic device;
在所述第二页码标识上显示有竖直页码总数和竖直页码数;所述竖直页码总数是根据所述目标文件的图像长度与所述电子设备的屏幕长度的比值确定的;所述竖直页码数为当前所述电子设备的屏幕的显示内容在竖直方向的页码数。The total number of vertical page numbers and the number of vertical page numbers are displayed on the second page number identifier; the total number of vertical page numbers is determined according to the ratio of the image length of the target file to the screen length of the electronic device; the The vertical page number is the current page number of the display content on the screen of the electronic device in the vertical direction.
本申请提供的截屏***,通过在电子设备的屏幕上设置页码标识,并通过在页码标识上显示页码总数和当前页码数,以向用户展示电子设备的屏幕显示的图像子区域在目标文件中的定位,方便用户及时了解当前截屏的状态,方便用户查看,也提高了用户截图的效率。The screen capture system provided by the present application, by setting a page number identifier on the screen of the electronic device, and by displaying the total number of page numbers and the current page number on the page number identifier, to show the user the image sub-area displayed on the screen of the electronic device in the target file. Positioning is convenient for users to know the status of the current screenshot in time, which is convenient for users to view, and also improves the efficiency of user screenshots.
可选地,所述第一响应模块具体用于:Optionally, the first response module is specifically used for:
响应于用户对所述两个页码标识中的至少一个的修改输入,调整所述终端屏幕上所显示的图像子区域;In response to a user's input to modify at least one of the two page identifiers, adjusting the image sub-region displayed on the terminal screen;
所述图像子区域是根据修改输入后的所述两个页码标识在所述目标文件中确定的内容。The image sub-region is the content determined in the target file according to the two page number identifiers after modification and input.
本申请提供的截屏***,通过在截屏界面上设置页码标识,以供用户通过对页码标识的设置,直接定位电子设备的屏幕当前显示内容,特别是方便用户在对总页数较多的大文档进行截屏时,迅速定位目标图像子区域,同时为用户获取对应的目标图像子区域提供了便利,有效的提高了用户截屏的效率。The screen capture system provided by this application, by setting the page number identifier on the screen capture interface, allows the user to directly locate the current display content of the screen of the electronic device through the setting of the page number identifier, which is especially convenient for the user to scan large documents with a large number of total pages. When taking a screenshot, the target image sub-region is quickly located, and at the same time, it is convenient for the user to obtain the corresponding target image sub-region, and the efficiency of the user's screenshot is effectively improved.
可选地,所述截屏处理模块,具体用于:Optionally, the screenshot processing module is specifically used for:
在电子设备的屏幕上依次显示所述多个图像子区域的过程中,在接收到用户的第二输入的情况下,响应于所述第二输入,截屏获得所述目标图像子区域对应的截屏子图像;During the process of sequentially displaying the plurality of image sub-regions on the screen of the electronic device, in the case of receiving a second input from the user, in response to the second input, take a screenshot to obtain a screenshot corresponding to the target image sub-region subimage;
或,在获取电子设备的屏幕显示当前图像子区域的时长超过第一预设时长的情况下,确定所述当前图像子区域为所述目标图像子区域;截屏获得所述目标图像子区域对应的截屏子图像。Or, in the case that the duration of the current image sub-region displayed on the screen of the acquired electronic device exceeds the first preset duration, determine that the current image sub-region is the target image sub-region; take a screenshot to obtain the corresponding image sub-region of the target image. Take a screenshot of the subimage.
可选地,所述图像处理单元具体用于:Optionally, the image processing unit is specifically used for:
将两个所述截屏子图像进行图像合成,输出临时截屏图像;performing image synthesis on the two screenshot sub-images, and outputting a temporary screenshot image;
在满足截屏停止条件下,将所述临时截屏图像作为截屏目标图像,输出所述截屏目标图像;Under the condition that the screen capture stop condition is satisfied, the temporary screen capture image is used as the screen capture target image, and the screen capture target image is output;
在不满足所述截屏停止条件的情况下,继续合成所述临时截屏图像与另一所述截屏子图像,并将输出的图像作为新的临时截屏图像;另一所述截屏子图像进行图像合成,并将输出的图像作为新的临时截屏图像;In the case that the stop condition of the screenshot is not satisfied, continue to synthesize the temporary screenshot image and another screenshot sub-image, and use the output image as a new temporary screenshot image; perform image synthesis on the other screenshot sub-image , and use the output image as a new temporary screenshot image;
所述截屏停止条件包括:接收用户的第三输入或确定所述临时截屏图像为所述目标文件的完整截屏图像。The screen capture stop condition includes: receiving a third user input or determining that the temporary screen capture image is a complete screen capture image of the target file.
可选地,所述图像处理单元还具体用于:根据每个截屏子图像的截屏时间的先后顺序,依次将每个所述截屏子图像进行图像合成,输出临时截屏图像。Optionally, the image processing unit is further specifically configured to: perform image synthesis on each of the screenshot sub-images in sequence according to the sequence of the screenshot time of each screenshot sub-image, and output a temporary screenshot image.
可选地,所述图像处理单元还具体用于:Optionally, the image processing unit is also specifically used for:
根据每个截屏子图像对应的图像子区域在所述目标文件中的位置信息,分别确定两个所述截屏子图像在所述截屏目标图像中的第一标志位信息和第二标志位信息;According to the position information of the image sub-region corresponding to each screenshot sub-image in the target file, respectively determine the first flag bit information and the second flag bit information of the two screenshot sub-images in the screenshot target image;
基于所述第一标志位信息和所述第二标志位信息,对两个所述截屏子图像进行图像合成,输出所述临时截屏图像。Based on the first flag bit information and the second flag bit information, image synthesis is performed on the two screenshot sub-images, and the temporary screenshot image is output.
本申请提供的截屏***,通过将每次截屏操作所获取的截屏子图像,分别与之前所有截屏子图像所构成的临时截屏图像进行合成,以逐步生成截屏目标图像,在这一过程中,用户能够清楚的知道截屏操作的进展状态,以根据实际进展状态对截屏的内容、截屏的速度等进行控制,故能够满足不同用户的截屏需求,尤其是能够实现对于目标文件的部分截图。The screen capture system provided by the present application combines the screen capture sub-images obtained by each screen capture operation with the temporary screen capture images formed by all previous screen capture sub-images, so as to gradually generate a screen capture target image. In this process, the user It can clearly know the progress status of the screen capture operation, so as to control the content of the screen capture and the speed of the screen capture according to the actual progress status, so it can meet the screen capture needs of different users, especially to achieve partial screenshots of target files.
可选地,所述图像处理单元还具体用于:Optionally, the image processing unit is also specifically used for:
基于所述第一标志位信息和所述第二标志位信息,将两个所述截屏子图像合成所述临时截屏图像;combining the two screenshot sub-images into the temporary screenshot image based on the first flag bit information and the second flag bit information;
在所述临时截屏图像中,存在与所述目标文件未被截屏区域所对应的未填充区域的情况下,将所述未填充区域以空白图像填充;In the temporary screenshot image, if there is an unfilled area corresponding to the unscreened area of the target file, filling the unfilled area with a blank image;
所述截屏目标图像的尺寸与所述目标文件的图像尺寸相同。The size of the screenshot target image is the same as the image size of the target file.
本申请提供的截屏***,在截屏目标图像的合成过程中,通过采用将未包含目标文档的截屏图像的区域进行填充的方法,能够保证所获取的截屏目标图像的尺寸与所述目标文件的图像尺寸相同,以便于用户清楚的掌握所截屏的部分在目标文件中的具***置,也可以方便用户对最终获取的截屏目标图像进行复核,保证截屏目标图像的完整性。In the screenshot system provided by the present application, in the process of synthesizing the screenshot target image, by using the method of filling the area of the screenshot image that does not contain the target document, the size of the obtained screenshot target image and the image of the target file can be guaranteed. The size is the same, so that the user can clearly grasp the specific position of the screenshot part in the target file, and it is also convenient for the user to check the final screenshot target image to ensure the integrity of the screenshot target image.
可选地,所述图像处理单元还具体用于:Optionally, the image processing unit is also specifically used for:
基于所述第一标志位信息和所述第二标志位信息,将两个所述截屏子图像合成所述临时截屏图像;combining the two screenshot sub-images into the temporary screenshot image based on the first flag bit information and the second flag bit information;
在所述临时截屏图像中,存在与所述目标文件未被截屏区域所对应的未填充区域的情况下,将所述未填充区域以一条分隔线表示。In the temporary screenshot image, if there is an unfilled area corresponding to the unscreened area of the target file, the unfilled area is represented by a separation line.
本申请提供的截屏***,通过采用将未包含目标文档的截屏图像的区域进行合并,并用一根分隔线进行标示,能够有效的缩小截屏目标图像的尺寸,以方便用户的查看,并且用户根据所述截屏目标图像能够确定出各个截屏图像之间的位置关系,方便用户对截屏目标图像进行复核,保证截屏目标图像的正确性。The screenshot system provided by the present application can effectively reduce the size of the screenshot target image by merging the area of the screenshot image that does not contain the target document and mark it with a dividing line, so as to facilitate the user's viewing, and the user can effectively reduce the size of the screenshot target image according to the The screenshot target image can determine the positional relationship between each screenshot image, which is convenient for the user to check the screenshot target image and ensures the correctness of the screenshot target image.
需要说明的是,本申请上述实施例提供的截屏装置,能够实现上述截屏方法实施例的所有方法步骤并能达到相同的技术效果,在此不再进行赘述。It should be noted that the screen capture device provided by the above embodiments of the present application can implement all the method steps of the above screen capture method embodiments and achieve the same technical effect, which is not repeated here.
本申请实施例中的电子设备可以是装置,也可以是电子设备中的部件、集成电路、或芯片。该装置可以是移动电子设备,也可以为非移动电子设备。示例性的,移动电子设备可以为手机、平板电脑、笔记本电脑、掌上电脑、车载电子设备、可穿戴设备、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本或者个人数字助理(personal digital assistant,PDA)等,非移动电子设备可以为服务器、网络附属存储器(Network Attached Storage,NAS)、个人计算机(personal computer,PC)、电视机(television,TV)、柜员机或者自助机等,本申请实施例不作具体限定。The electronic device in the embodiments of the present application may be a device, or may be a component, an integrated circuit, or a chip in the electronic device. The apparatus may be a mobile electronic device or a non-mobile electronic device. Exemplarily, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palmtop computer, an in-vehicle electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (personal digital assistant). assistant, PDA), etc., non-mobile electronic devices can be servers, network attached storage (Network Attached Storage, NAS), personal computer (personal computer, PC), television (television, TV), teller machine or self-service machine, etc., this application Examples are not specifically limited.
本申请实施例中的截屏装置可以为具有操作***的装置。该操作***可以为安卓(Android)操作***,可以为iOS操作***,还可以为其他可能的操作***,本申请实施例不作具体限定。The screen capture device in this embodiment of the present application may be a device with an operating system. The operating system may be an Android (Android) operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiments of the present application.
本申请实施例提供的截屏装置能够实现图1至图8的方法实施例中截屏装置实现的各个过程,为避免重复,这里不再赘述。The screen capture device provided in the embodiments of the present application can implement each process implemented by the screen capture device in the method embodiments of FIG. 1 to FIG. 8 , and in order to avoid repetition, details are not repeated here.
可选的,本申请实施例还提供一种电子设备70,如图7所示,包括处理器72,存储器71,存储在存储器71上并可在所述处理器72上运行的程序或指令,该程序或指令被处理器72执行时实现上述截屏方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。Optionally, an embodiment of the present application further provides an electronic device 70, as shown in FIG. 7, comprising a processor 72, a memory 71, a program or instruction stored on the memory 71 and executable on the processor 72, When the program or instruction is executed by the processor 72, each process of the above-mentioned embodiment of the screenshot method can be implemented, and the same technical effect can be achieved. To avoid repetition, details are not repeated here.
需要注意的是,本申请实施例中的电子设备包括上述所述的移动电子设备和非移动电子设备。It should be noted that the electronic devices in the embodiments of the present application include the above-mentioned mobile electronic devices and non-mobile electronic devices.
图8为实现本申请实施例的一种电子设备的硬件结构示意图。FIG. 8 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
该电子设备800包括但不限于:射频单元801、网络模块802、音频输出单元803、输入单元804、传感器805、显示单元806、用户输入单元807、接口单元808、存储器809、 以及处理器810等部件。The electronic device 800 includes but is not limited to: a radio frequency unit 801, a network module 802, an audio output unit 803, an input unit 804, a sensor 805, a display unit 806, a user input unit 807, an interface unit 808, a memory 809, and a processor 810, etc. part.
本领域技术人员可以理解,电子设备800还可以包括给各个部件供电的电源(比如电池),电源可以通过电源管理***与处理器810逻辑相连,从而通过电源管理***实现管理充电、放电、以及功耗管理等功能。图8中示出的电子设备结构并不构成对电子设备的限定,电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置,在此不再赘述。Those skilled in the art can understand that the electronic device 800 may also include a power supply (such as a battery) for supplying power to various components, and the power supply may be logically connected to the processor 810 through a power management system, so that the power management system can manage charging, discharging, and power management. consumption management and other functions. The structure of the electronic device shown in FIG. 8 does not constitute a limitation on the electronic device. The electronic device may include more or less components than the one shown, or combine some components, or arrange different components, which will not be repeated here. .
应理解的是,本申请实施例中,输入单元804可以包括图形处理器(Graphics Processing Unit,GPU)841和麦克风842,图形处理器841对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。显示单元806可包括显示面板861,可以采用液晶显示器、有机发光二极管等形式来配置显示面板861。用户输入单元807包括触控面板871以及其他输入设备872。触控面板871,也称为触摸屏。触控面板871可包括触摸检测装置和触摸控制器两个部分。其他输入设备872可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。存储器809可用于存储软件程序以及各种数据,包括但不限于应用程序和操作***。处理器810可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作***、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器810中。It should be understood that, in this embodiment of the present application, the input unit 804 may include a graphics processor (Graphics Processing Unit, GPU) 841 and a microphone 842. Such as camera) to obtain still pictures or video image data for processing. The display unit 806 may include a display panel 861, which may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 807 includes a touch panel 871 and other input devices 872 . The touch panel 871 is also called a touch screen. The touch panel 871 may include two parts, a touch detection device and a touch controller. Other input devices 872 may include, but are not limited to, physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, and joysticks, which will not be repeated here. Memory 809 may be used to store software programs as well as various data, including but not limited to application programs and operating systems. The processor 810 may integrate an application processor and a modem processor, wherein the application processor mainly handles the operating system, user interface, and application programs, and the like, and the modem processor mainly handles wireless communication. It can be understood that, the above-mentioned modulation and demodulation processor may not be integrated into the processor 810.
其中,用户输入单元807用于接收多次第一输入;处理器810用于响应于所述第一输入,在电子设备的屏幕上分别显示目标文件的多个图像子区域;所述处理器810还用于在满足截屏触发条件的情况下,截屏获得目标图像子区域对应的截屏子图像;所述处理器810还用于基于所述截屏子图像,输出截屏目标图像;The user input unit 807 is configured to receive multiple first inputs; the processor 810 is configured to display multiple image sub-regions of the target file on the screen of the electronic device in response to the first input; the processor 810 The processor 810 is further configured to obtain a screenshot sub-image corresponding to the target image sub-region by taking a screenshot under the condition that the screenshot triggering condition is met; the processor 810 is further configured to output a screenshot target image based on the screenshot sub-image;
其中,所述目标文件的图像尺寸大于所述电子设备的屏幕尺寸,将所述图像子区域中的至少一个作为所述目标图像子区域。Wherein, the image size of the target file is larger than the screen size of the electronic device, and at least one of the image sub-areas is used as the target image sub-area.
本申请实施例还提供一种可读存储介质,所述可读存储介质上存储有程序或指令,该程序或指令被处理器执行时实现上述截屏方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。The embodiments of the present application further provide a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or instruction is executed by a processor, each process of the above embodiment of the screenshot method can be implemented, and can achieve the same The technical effect, in order to avoid repetition, will not be repeated here.
其中,所述处理器为上述实施例中所述的电子设备中的处理器。所述可读存储介质包括计算机可读存储介质,计算机存储介质的示例包括有形(非暂态)计算机可读存储介质,如计算机只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟、光盘、电子电路、半导体存储器设备、闪存、可擦除ROM(EROM)、或者软盘等。Wherein, the processor is the processor in the electronic device described in the foregoing embodiments. The readable storage medium includes a computer-readable storage medium, and examples of the computer storage medium include tangible (non-transitory) computer-readable storage media, such as computer read-only memory (Read-Only Memory, ROM), random access memory ( Random Access Memory, RAM), magnetic disk, optical disk, electronic circuit, semiconductor memory device, flash memory, erasable ROM (EROM), or floppy disk, etc.
本申请实施例另提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现上述截屏方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。An embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to run a program or an instruction to implement each of the foregoing screen capture method embodiments process, and can achieve the same technical effect, in order to avoid repetition, it will not be repeated here.
应理解,本申请实施例提到的芯片还可以称为***级芯片、***芯片、芯片***或片上***芯片等。It should be understood that the chip mentioned in the embodiments of the present application may also be referred to as a system-on-chip, a system-on-chip, a system-on-a-chip, or a system-on-a-chip, or the like.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。此外,需要指出的是,本申请实施方式中的方法和装置的范围不限按示出或讨论的顺序来执行功能,还可包括根据所涉及的功能按基本同时的方式或按相反的顺序来执行功能,例如,可以按不同于所描述的次序来执行所描述的方法,并且还可以添加、省去、或组合各种步骤。另外,参照某些示例所描述的特征可在其他示例中被组合。It should be noted that, herein, the terms "comprising", "comprising" or any other variation thereof are intended to encompass non-exclusive inclusion, such that a process, method, article or device comprising a series of elements includes not only those elements, It also includes other elements not expressly listed or inherent to such a process, method, article or apparatus. Without further limitation, an element qualified by the phrase "comprising a..." does not preclude the presence of additional identical elements in a process, method, article or apparatus that includes the element. Furthermore, it should be noted that the scope of the methods and apparatus in the embodiments of the present application is not limited to performing the functions in the order shown or discussed, but may also include performing the functions in a substantially simultaneous manner or in the reverse order depending on the functions involved. To perform functions, for example, the described methods may be performed in an order different from that described, and various steps may also be added, omitted, or combined. Additionally, features described with reference to some examples may be combined in other examples.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对相关技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如)中,包括若干指令用以使得一台电子设备的(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本申请各个实施例所述的方法。From the description of the above embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus a necessary general hardware platform, and of course hardware can also be used, but in many cases the former is better implementation. Based on this understanding, the technical solutions of the present application can be embodied in the form of software products in essence, or the parts that make contributions to related technologies. Make an electronic device (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in the various embodiments of this application.
上面结合附图对本申请的实施例进行了描述,但是本申请并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本申请的启示下,在不脱离本申请宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本申请的保护之内。The embodiments of the present application have been described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific embodiments, which are merely illustrative rather than restrictive. Under the inspiration of this application, without departing from the scope of protection of the purpose of this application and the claims, many forms can be made, which all fall within the protection of this application.

Claims (21)

  1. 一种截屏方法,包括:A method of taking screenshots, including:
    接收多次第一输入;Receive multiple first inputs;
    响应于所述第一输入,在电子设备的屏幕上分别显示目标文件的多个图像子区域;In response to the first input, displaying a plurality of image sub-regions of the target file on the screen of the electronic device respectively;
    在满足截屏触发条件的情况下,截屏获得目标图像子区域对应的截屏子图像;Under the condition that the triggering condition of the screenshot is satisfied, take the screenshot to obtain the screenshot sub-image corresponding to the sub-region of the target image;
    基于所述截屏子图像,输出截屏目标图像;outputting a screenshot target image based on the screenshot sub-image;
    其中,所述目标文件的图像尺寸大于所述电子设备的屏幕尺寸,将所述图像子区域中的至少一个作为所述目标图像子区域。Wherein, the image size of the target file is larger than the screen size of the electronic device, and at least one of the image sub-areas is used as the target image sub-area.
  2. 根据权利要求1所述的截屏方法,其中,在所述电子设备的屏幕上显示有进度条标识,所述进度条标识包括竖直进度条标识和水平进度条标识;The screen capture method according to claim 1, wherein a progress bar identification is displayed on the screen of the electronic device, and the progress bar identification includes a vertical progress bar identification and a horizontal progress bar identification;
    所述水平进度条标识的总滑动轨迹与所述目标文件的图像宽度适配;The total sliding track identified by the horizontal progress bar is adapted to the image width of the target file;
    所述竖直进度条标识的总滑动轨迹与所述目标文件的图像长度适配;The total sliding track identified by the vertical progress bar is adapted to the image length of the target file;
    在所述进度条标识上通过不同的进度条区间,标注了所述目标文件的已被截屏部分和未被截屏部分。The screen-captured part and the non-screen-captured part of the target file are marked on the progress bar identifier through different progress bar intervals.
  3. 根据权利要求2所述的截屏方法,其中,所述响应于所述第一输入,在所述电子设备的屏幕上分别显示目标文件的多个图像子区域,具体包括:The screen capture method according to claim 2, wherein, in response to the first input, displaying a plurality of image sub-regions of the target file on the screen of the electronic device respectively includes:
    响应于用户对两个游标标识的定位操作,调整所述电子设备的屏幕上所显示的图像子区域;In response to the user's positioning operation on the two cursor markers, adjusting the image sub-region displayed on the screen of the electronic device;
    所述两个游标标识分别位于所述竖直方向进度条中和所述水平方向进度条中;The two cursor identifiers are respectively located in the vertical direction progress bar and the horizontal direction progress bar;
    所述图像子区域是根据定位操作后的所述两个游标标识在所述竖直方向进度条和所述水平方向进度条中的位置确定的。The image sub-region is determined according to the positions of the two cursor markers in the vertical progress bar and the horizontal progress bar after the positioning operation.
  4. 根据权利要求1所述的截屏方法,其中,在所述电子设备的屏幕上设置有页码标识,所述页码标识包括第一页码标识和第二页码标识;The screen capture method according to claim 1, wherein a page number identifier is provided on the screen of the electronic device, and the page number identifier includes a first page number identifier and a second page number identifier;
    在所述第一页码标识上显示有水平页码总数和水平页码数;所述水平页码总数是根据所述目标文件的图像宽度与所述电子设备的屏幕宽度的比值确定的;所述水平页码数为当前所述电子设备的屏幕的显示内容在水平方向的页码数;The total number of horizontal page numbers and the number of horizontal page numbers are displayed on the first page number identifier; the total number of horizontal page numbers is determined according to the ratio of the image width of the target file to the screen width of the electronic device; the number of horizontal page numbers is the number of pages in the horizontal direction of the current display content of the screen of the electronic device;
    在所述第二页码标识上显示有竖直页码总数和竖直页码数;所述竖直页码总数是根据 所述目标文件的图像长度与所述电子设备的屏幕长度的比值确定的;所述竖直页码数为当前所述电子设备的屏幕的显示内容在竖直方向的页码数。The total number of vertical page numbers and the number of vertical page numbers are displayed on the second page number identifier; the total number of vertical page numbers is determined according to the ratio of the image length of the target file to the screen length of the electronic device; the The vertical page number is the current page number of the display content on the screen of the electronic device in the vertical direction.
  5. 根据权利要求1所述的截屏方法,其中,在显示所述多个图像子区域的过程中满足截屏触发条件的情况下,截屏获得目标图像子区域对应的截屏子图像,包括:The screen capture method according to claim 1, wherein, under the condition that the screen capture trigger condition is satisfied in the process of displaying the plurality of image sub-regions, the screen capture to obtain the screen capture sub-image corresponding to the target image sub-region comprises:
    在所述电子设备的屏幕上依次显示所述多个图像子区域的过程中,在接收到第二输入的情况下,响应于所述第二输入,截屏获得所述目标图像子区域对应的截屏子图像;或During the process of sequentially displaying the plurality of image sub-regions on the screen of the electronic device, in the case of receiving a second input, in response to the second input, take a screenshot to obtain a screenshot corresponding to the target image sub-region sub-image; or
    在所述电子设备的屏幕显示任一图像子区域的时长超过第一预设时长的情况下,截屏获得所述目标图像子区域对应的截屏子图像。In the case that the duration of displaying any image sub-region on the screen of the electronic device exceeds the first preset duration, take a screenshot to obtain a screenshot sub-image corresponding to the target image sub-region.
  6. 根据权利要求1所述的截屏方法,其中,所述基于所述截屏子图像,输出截屏目标图像,包括:The screen capture method according to claim 1, wherein the outputting a screen capture target image based on the screen capture sub-image comprises:
    将两个所述截屏子图像进行图像合成,输出临时截屏图像;performing image synthesis on the two screenshot sub-images, and outputting a temporary screenshot image;
    在满足截屏停止条件的情况下,将所述临时截屏图像作为截屏目标图像,输出所述截屏目标图像;Under the condition that the screen capture stop condition is satisfied, the temporary screen capture image is used as the screen capture target image, and the screen capture target image is output;
    在不满足所述截屏停止条件的情况下,继续合成所述临时截屏图像与另一所述截屏子图像,并将输出的图像作为新的临时截屏图像;Continue to synthesize the temporary screenshot image and another screenshot sub-image under the condition that the screenshot stop condition is not satisfied, and use the output image as a new temporary screenshot image;
    所述截屏停止条件包括:接收到第三输入或确定所述临时截屏图像为所述目标文件的完整截屏图像。The screen capture stop condition includes: receiving a third input or determining that the temporary screen capture image is a complete screen capture image of the target file.
  7. 根据权利要求6所述的截屏方法,其中,所述将至少两个所述截屏子图像进行图像合成,输出临时截屏图像,包括:The screen capture method according to claim 6, wherein the performing image synthesis on at least two of the screen capture sub-images to output a temporary screen capture image comprises:
    根据每个截屏子图像的截屏时间的先后顺序,依次将每个所述截屏子图像进行图像合成,输出临时截屏图像。According to the sequence of the screenshot time of each screenshot sub-image, image synthesis is performed on each of the screenshot sub-images in sequence, and a temporary screenshot image is output.
  8. 根据权利要求6所述的截屏方法,其中,所述将至少两个所述截屏子图像进行图像合成,输出临时截屏图像,包括:The screen capture method according to claim 6, wherein the performing image synthesis on at least two of the screen capture sub-images to output a temporary screen capture image comprises:
    根据每个截屏子图像对应的图像子区域在所述目标文件中的位置信息,分别确定两个所述截屏子图像在所述截屏目标图像中的第一标志位信息和第二标志位信息;According to the position information of the image sub-region corresponding to each screenshot sub-image in the target file, respectively determine the first flag bit information and the second flag bit information of the two screenshot sub-images in the screenshot target image;
    基于所述第一标志位信息和所述第二标志位信息,对两个所述截屏子图像进行图像合成,输出所述临时截屏图像。Based on the first flag bit information and the second flag bit information, image synthesis is performed on the two screenshot sub-images, and the temporary screenshot image is output.
  9. 一种截屏装置,包括:A screen capture device, comprising:
    第一接收模块,用于接收多次第一输入;a first receiving module, configured to receive multiple first inputs;
    第一响应模块,用于响应于所述第一输入,在电子设备的屏幕上分别显示目标文件的多个图像子区域;a first response module, configured to display a plurality of image sub-regions of the target file respectively on the screen of the electronic device in response to the first input;
    截屏处理模块,用于在满足截屏触发条件的情况下,截屏获得目标图像子区域对应的截屏子图像;A screenshot processing module, configured to capture a screenshot to obtain a screenshot sub-image corresponding to the target image sub-region under the condition that the screenshot trigger condition is met;
    图像处理单元,用于基于所述截屏子图像,输出截屏目标图像;an image processing unit, configured to output a screenshot target image based on the screenshot sub-image;
    其中,所述目标文件的图像尺寸大于所述电子设备的屏幕尺寸,将所述图像子区域中的至少一个作为所述目标图像子区域。Wherein, the image size of the target file is larger than the screen size of the electronic device, and at least one of the image sub-areas is used as the target image sub-area.
  10. 根据权利要求9所述的截屏装置,其中,在所述电子设备的屏幕上显示有进度条标识,所述进度条标识包括竖直进度条标识和水平进度条标识;The screen capture device according to claim 9, wherein a progress bar identification is displayed on the screen of the electronic device, and the progress bar identification includes a vertical progress bar identification and a horizontal progress bar identification;
    所述水平进度条标识的总滑动轨迹与所述目标文件的图像宽度适配;所述竖直进度条标识的总滑动轨迹与所述目标文件的图像长度适配;The total sliding track marked by the horizontal progress bar is adapted to the image width of the target file; the total sliding track marked by the vertical progress bar is adapted to the image length of the target file;
    在所述进度条标识上通过不同的进度条区间,标注了所述目标文件的已被截屏部分和未被截屏部分。The screen-captured part and the non-screen-captured part of the target file are marked on the progress bar identifier through different progress bar intervals.
  11. 根据权利要求10所述的截屏装置,其中,所述第一响应模块具体用于:The screen capture device according to claim 10, wherein the first response module is specifically configured to:
    响应于用户对两个游标标识的定位操作,调整所述电子设备的屏幕上所显示的图像子区域;In response to the user's positioning operation on the two cursor markers, adjusting the image sub-region displayed on the screen of the electronic device;
    所述两个游标标识分别位于所述竖直方向进度条和所述水平方向进度条中;The two cursor identifiers are respectively located in the vertical direction progress bar and the horizontal direction progress bar;
    所述图像子区域是根据定位操作后的所述两个游标标识在所述竖直方向进度条和所述水平方向进度条中的位置确定的。The image sub-region is determined according to the positions of the two cursor markers in the vertical progress bar and the horizontal progress bar after the positioning operation.
  12. 根据权利要求9所述的截屏装置,其中,在所述电子设备的屏幕上显示有页码标识,所述页码标识包括第一页码标识和第二页码标识;The screen capture device according to claim 9, wherein a page number identifier is displayed on the screen of the electronic device, and the page number identifier includes a first page number identifier and a second page number identifier;
    在所述第一页码标识上显示有水平页码总数和水平页码数;所述水平页码总数是根据所述目标文件的图像宽度与所述电子设备的屏幕宽度的比值确定的;所述水平页码数为当前所述电子设备的屏幕的显示内容在水平方向的页码数;The total number of horizontal page numbers and the number of horizontal page numbers are displayed on the first page number identifier; the total number of horizontal page numbers is determined according to the ratio of the image width of the target file to the screen width of the electronic device; the number of horizontal page numbers is the number of pages in the horizontal direction of the current display content of the screen of the electronic device;
    在所述第二页码标识上显示有竖直页码总数和竖直页码数;所述竖直页码总数是根据 所述目标文件的图像长度与所述电子设备的屏幕长度的比值确定的;所述竖直页码数为当前所述电子设备的屏幕的显示内容在竖直方向的页码数。The total number of vertical page numbers and the number of vertical page numbers are displayed on the second page number identifier; the total number of vertical page numbers is determined according to the ratio of the image length of the target file to the screen length of the electronic device; the The vertical page number is the current page number of the display content on the screen of the electronic device in the vertical direction.
  13. 根据权利要求9所述的截屏装置,其中,所述截屏处理模块,具体用于:The screen capture device according to claim 9, wherein the screen capture processing module is specifically used for:
    在电子设备的屏幕上依次显示所述多个图像子区域的过程中,在接收到第二输入的情况下,响应于所述第二输入,截屏获得所述目标图像子区域对应的截屏子图像;或During the process of sequentially displaying the plurality of image sub-regions on the screen of the electronic device, in the case of receiving a second input, in response to the second input, take a screenshot to obtain a screenshot sub-image corresponding to the target image sub-region ;or
    在电子设备的屏幕显示当前图像子区域的时长超过第一预设时长的情况下,确定所述当前图像子区域为所述目标图像子区域;截屏获得所述目标图像子区域对应的截屏子图像。In the case that the duration of displaying the current image sub-region on the screen of the electronic device exceeds the first preset duration, determine that the current image sub-region is the target image sub-region; take a screenshot to obtain the screenshot sub-image corresponding to the target image sub-region .
  14. 根据权利要求9所述的截屏装置,其中,所述图像处理单元具体用于:The screen capture device according to claim 9, wherein the image processing unit is specifically configured to:
    将两个所述截屏子图像进行图像合成,输出临时截屏图像;performing image synthesis on the two screenshot sub-images, and outputting a temporary screenshot image;
    在满足截屏停止条件的情况下,将所述临时截屏图像作为截屏目标图像,输出所述截屏目标图像;Under the condition that the screen capture stop condition is satisfied, the temporary screen capture image is used as the screen capture target image, and the screen capture target image is output;
    在不满足所述截屏停止条件的情况下,继续合成所述临时截屏图像与另一所述截屏子图像,并将输出的图像作为新的临时截屏图像;另一所述截屏子图像进行图像合成,并将输出的图像作为新的临时截屏图像;In the case that the stop condition of the screenshot is not satisfied, continue to synthesize the temporary screenshot image and another screenshot sub-image, and use the output image as a new temporary screenshot image; perform image synthesis on the other screenshot sub-image , and use the output image as a new temporary screenshot image;
    所述截屏停止条件包括:接收到第三输入或确定所述临时截屏图像为所述目标文件的完整截屏图像。The screen capture stop condition includes: receiving a third input or determining that the temporary screen capture image is a complete screen capture image of the target file.
  15. 根据权利要求14所述的截屏装置,其中,所述图像处理单元还具体用于:根据每个截屏子图像的截屏时间的先后顺序,依次将每个所述截屏子图像进行图像合成,输出临时截屏图像。The screenshot device according to claim 14, wherein the image processing unit is further specifically configured to: perform image synthesis on each of the screenshot sub-images in sequence according to the sequence of the screenshot time of each screenshot sub-image, and output the temporary Screenshot image.
  16. 根据权利要求14所述的截屏装置,其中,所述图像处理单元还具体用于:The screen capture device according to claim 14, wherein the image processing unit is further specifically configured to:
    根据每个截屏子图像对应的图像子区域在所述目标文件中的位置信息,分别确定两个所述截屏子图像在所述截屏目标图像中的第一标志位信息和第二标志位信息;According to the position information of the image sub-region corresponding to each screenshot sub-image in the target file, respectively determine the first flag bit information and the second flag bit information of the two screenshot sub-images in the screenshot target image;
    基于所述第一标志位信息和所述第二标志位信息,对两个所述截屏子图像进行图像合成,输出所述临时截屏图像。Based on the first flag bit information and the second flag bit information, image synthesis is performed on the two screenshot sub-images, and the temporary screenshot image is output.
  17. 一种电子设备,包括处理器,存储器及存储在所述存储器上并可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如权利要求1-8任一项所述的截屏方法的步骤。An electronic device, comprising a processor, a memory, and a program or instruction stored on the memory and executable on the processor, the program or instruction being executed by the processor to implement claims 1-8 any one of the steps of the screenshot method.
  18. 一种电子设备,被配置为用于执行如权利要求1-8中任一项所述的截屏方法的步骤。An electronic device configured to perform the steps of the screen capture method of any one of claims 1-8.
  19. 一种可读存储介质,所述可读存储介质上存储程序或指令,所述程序或指令被处理器执行时实现如权利要求1-8任一项所述的截屏方法的步骤。A readable storage medium on which programs or instructions are stored, and when the programs or instructions are executed by a processor, implement the steps of the screen capture method according to any one of claims 1-8.
  20. 一种计算机程序产品,所述计算机程序产品可被处理器执行以实现如权利要求1-8中任一项所述的截屏方法的步骤。A computer program product executable by a processor to implement the steps of the screen capture method of any one of claims 1-8.
  21. 一种芯片,包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现如权利要求1-8任一项所述的截屏方法的步骤。A chip includes a processor and a communication interface, wherein the communication interface is coupled with the processor, and the processor is used for running a program or an instruction to implement the steps of the screen capture method according to any one of claims 1-8.
PCT/CN2021/132979 2020-12-02 2021-11-25 Screenshot method and screenshot apparatus WO2022116886A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202011401431.0 2020-12-02
CN202011401431.0A CN112527176A (en) 2020-12-02 2020-12-02 Screen capturing method and screen capturing device

Publications (1)

Publication Number Publication Date
WO2022116886A1 true WO2022116886A1 (en) 2022-06-09

Family

ID=74997987

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/132979 WO2022116886A1 (en) 2020-12-02 2021-11-25 Screenshot method and screenshot apparatus

Country Status (2)

Country Link
CN (1) CN112527176A (en)
WO (1) WO2022116886A1 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112527176A (en) * 2020-12-02 2021-03-19 维沃移动通信有限公司 Screen capturing method and screen capturing device
CN113689778A (en) * 2021-08-03 2021-11-23 厦门卫星定位应用股份有限公司 High-precision map generation method for bus route
CN113778279A (en) * 2021-08-31 2021-12-10 维沃移动通信有限公司 Screenshot method and device and electronic equipment
CN114119375A (en) * 2022-01-25 2022-03-01 广州市玄武无线科技股份有限公司 Method and system for realizing automatic generation of long screenshot at iOS (internet operating system) end

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105739873A (en) * 2016-03-10 2016-07-06 努比亚技术有限公司 Screen capturing method and terminal
CN107015739A (en) * 2017-03-07 2017-08-04 惠州Tcl移动通信有限公司 A kind of method and system for intercepting long length screen content
CN108307036A (en) * 2017-12-11 2018-07-20 维沃移动通信有限公司 A kind of screenshotss method and terminal device
US20180349107A1 (en) * 2017-06-05 2018-12-06 Apptimize, Inc. Preview Changes To Mobile Applications At Different Display Resolutions
CN110045892A (en) * 2019-04-19 2019-07-23 维沃移动通信有限公司 Display methods and terminal device
CN110568973A (en) * 2019-09-09 2019-12-13 网易(杭州)网络有限公司 screenshot method, screenshot device, storage medium and terminal equipment
CN112527176A (en) * 2020-12-02 2021-03-19 维沃移动通信有限公司 Screen capturing method and screen capturing device

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103324439B (en) * 2013-06-27 2016-04-06 广东欧珀移动通信有限公司 The batch method of tab file and device thereof in the electronic equipment with touch screen
CN111586237B (en) * 2020-04-30 2021-08-24 维沃移动通信有限公司 Image display method and electronic equipment

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105739873A (en) * 2016-03-10 2016-07-06 努比亚技术有限公司 Screen capturing method and terminal
CN107015739A (en) * 2017-03-07 2017-08-04 惠州Tcl移动通信有限公司 A kind of method and system for intercepting long length screen content
US20180349107A1 (en) * 2017-06-05 2018-12-06 Apptimize, Inc. Preview Changes To Mobile Applications At Different Display Resolutions
CN108307036A (en) * 2017-12-11 2018-07-20 维沃移动通信有限公司 A kind of screenshotss method and terminal device
CN110045892A (en) * 2019-04-19 2019-07-23 维沃移动通信有限公司 Display methods and terminal device
CN110568973A (en) * 2019-09-09 2019-12-13 网易(杭州)网络有限公司 screenshot method, screenshot device, storage medium and terminal equipment
CN112527176A (en) * 2020-12-02 2021-03-19 维沃移动通信有限公司 Screen capturing method and screen capturing device

Also Published As

Publication number Publication date
CN112527176A (en) 2021-03-19

Similar Documents

Publication Publication Date Title
WO2022116886A1 (en) Screenshot method and screenshot apparatus
US8537248B2 (en) Image capture and manipulation
US8284167B2 (en) Electronic device capable of showing page flip effect and method thereof
DE202017002875U1 (en) User interface for camera effects
CN102566918B (en) Display control apparatus and control method therefore
US9313451B2 (en) Video communication method and electronic device for processing method thereof
DE202007018420U1 (en) Portable electronic device that performs similar operations for different gestures
DE202007019585U1 (en) Portable electronic device for photo management
CN104317541A (en) Method and Equipment for displaying remark information of pictures in terminal
US20240143148A1 (en) Display control method and apparatus
KR20130016655A (en) Apparatus and method for capturing screen in portable terminal
WO2023030306A1 (en) Method and apparatus for video editing, and electronic device
WO2023155885A1 (en) Icon arrangement method and apparatus, and electronic device
DE202017002874U1 (en) User interface for camera effects
WO2023103949A1 (en) Video processing method and apparatus, electronic device and medium
WO2024078490A1 (en) Picture processing method and apparatus, and electronic device and medium
CN112449110B (en) Image processing method and device and electronic equipment
WO2023131043A1 (en) Information processing method and apparatus, and electronic device
WO2022194211A1 (en) Image processing method and apparatus, electronic device and readable storage medium
CN106354381A (en) Image file processing method and device
CN112162805B (en) Screenshot method and device and electronic equipment
CN113986080A (en) Multimedia file editing method and device and electronic equipment
US20050174362A1 (en) Method and system of zooming digital images
CN113592983A (en) Image processing method and device and computer readable storage medium
JP2008301274A (en) Information processing apparatus and method, and program

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21899919

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21899919

Country of ref document: EP

Kind code of ref document: A1