CN104766271A - Screen capture method, device and electronic device - Google Patents

Screen capture method, device and electronic device Download PDF

Info

Publication number
CN104766271A
CN104766271A CN201510173516.0A CN201510173516A CN104766271A CN 104766271 A CN104766271 A CN 104766271A CN 201510173516 A CN201510173516 A CN 201510173516A CN 104766271 A CN104766271 A CN 104766271A
Authority
CN
China
Prior art keywords
pictures
pixel
row
sectional drawing
content
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201510173516.0A
Other languages
Chinese (zh)
Other versions
CN104766271B (en
Inventor
孙建华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201510173516.0A priority Critical patent/CN104766271B/en
Publication of CN104766271A publication Critical patent/CN104766271A/en
Application granted granted Critical
Publication of CN104766271B publication Critical patent/CN104766271B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention is suitable for the technical field of electronic devices, and provides a screen capture method, device and electronic device. The screen capture method includes the steps that when the content needing capturing occupies more than one full screen, screen capturing is carried out sequentially from the uppermost part to the lowermost part of the content needing capturing or from the lowermost part to the uppermost part of the content needing capturing to obtain N pictures, and N is larger than or equal to 2; the area of which pixels are the same as those in the Mth picture is searched for from the first picture to the (M-1)th picture, the (M-1)th picture and the Mth picture are combined, the areas with the same pixels are deleted until M is equal to N, and M is larger than or equal to 2 but is smaller than or equal to N. According to the screen capture method, device and electronic device, a large picture can be obtained through two or more times of screen capturing, user experience is good, and the problem of an existing electronic device that when the content needing capturing can not be contained by the whole screen for a user, only two or more pictures can be captured, and a complete picture can not be obtained is solved.

Description

The method of screenshot capture, device and electronic equipment
Technical field
The invention belongs to technical field of electronic equipment, particularly relate to a kind of method of screenshot capture, device and electronic equipment.
Background technology
At present, electronic equipment, such as desktop computer, notebook computer, mobile terminal etc. all have screenshot capture function, and the screen message grabbed can be sent to good friend by screenshot capture by user, to realize sharing of information.
But realizing in process of the present invention, inventor finds electronic equipment that prior art provides, and at least there are the following problems:
The screenshot method that existing electronic equipment provides, the part that substantially can only intercept whole screen or can only intercept in whole screen.When user needs the content of sectional drawing cannot include at whole screen, such as need the content of sectional drawing when one all over the screen all over the screen to two between, can only intercept and obtain two pictures or more plurality of pictures.
Summary of the invention
In view of this, the embodiment of the present invention provides a kind of method of screenshot capture, device and electronic equipment, to solve the electronic equipment that prior art provides, when user needs the content of sectional drawing cannot include at whole screen, can only intercept and obtain two pictures or more plurality of pictures, and the problem of a complete picture can not be obtained.
First aspect, provides a kind of method of screenshot capture, comprising:
When need the content of sectional drawing more than one all over the screen time, need the bottom of the content of sectional drawing to carry out sectional drawing successively to the top to obtain N pictures from the described the top of the content of sectional drawing that needs to bottom or from described, N is more than or equal to 2;
From the first pictures, search region identical with pixel in M pictures in M-1 pictures successively, merge M-1 pictures and M pictures, delete the region that pixel is identical, until M equals N, wherein M is more than or equal to 2 and is less than or equal to N.
In conjunction with first aspect, in the first possible implementation of first aspect, when from described need the top of the content of sectional drawing to bottom carry out successively sectional drawing obtain N pictures time, described in search region identical with pixel in M pictures in M-1 pictures, comprising:
The pixel of bottom the first row of M-1 pictures and the pixel of the first row of M pictures are contrasted, if different, again the pixel of the bottom the first row of M-1 pictures and the second row pixel of M pictures are contrasted, if different, then continue the pixel of bottom the first row of M-1 pictures and the third line pixel of M pictures to contrast;
If find that the pixel of the bottom the first row of M-1 pictures is identical with the pixel of the n-th line of M pictures, then again the pixel of bottom second row of M-1 pictures and the pixel of the (n-1)th row of M pictures are contrasted;
If identical, then the pixel continuing the pixel of the bottom the third line comparing M-1 pictures and the n-th-2 row of M pictures contrasts, till finding region identical with pixel in M pictures in M-1 pictures.
In conjunction with first aspect, in the implementation that the second of first aspect is possible, when from described need the bottom of the content of sectional drawing to carry out successively to the top sectional drawing obtain N pictures time, described in search region identical with pixel in M pictures in M-1 pictures, also comprise:
The pixel of bottom the first row of M pictures and the pixel of the first row of M-1 pictures are contrasted, if different, then the pixel of the bottom the first row of M pictures and the second row pixel of M-1 pictures is contrasted; If different, then continue the pixel of bottom the first row of M pictures and the third line pixel of M-1 pictures to contrast;
If find that the pixel of the bottom the first row of M pictures is identical with the pixel of the n-th line of M-1 pictures, then again the pixel of bottom second row of M pictures and the pixel of the (n-1)th row of M-1 pictures are contrasted;
If identical, then the pixel continuing the pixel of the bottom the third line comparing M pictures and the n-th-2 row of M-1 pictures contrasts, till finding region identical with pixel in M-1 pictures in M pictures.
In conjunction with first aspect or the first possible implementation of first aspect or the possible implementation of the second of first aspect, in the third possible implementation of first aspect, as N=2, when from described need the top of the content of sectional drawing to carry out sectional drawing successively to bottom time, first pictures is the first half of the content needing sectional drawing, and the second pictures is the latter half of the content needing sectional drawing;
When from described need the bottom of the content of sectional drawing to carry out sectional drawing successively to the top time, the first pictures is the latter half of the content needing sectional drawing, and the second pictures is the first half of the content needing sectional drawing.
Second aspect, provides a kind of device of screenshot capture, comprising:
Sectional drawing unit, for when need the content of sectional drawing more than one all over the screen time, need the bottom of the content of sectional drawing to carry out sectional drawing successively to the top to obtain N pictures from the described the top of the content of sectional drawing that needs to bottom or from described, N is more than or equal to 2;
Merge cells, for from the first pictures, search region identical with pixel in the M pictures that described sectional drawing unit sectional drawing obtains in the M-1 pictures that described sectional drawing unit sectional drawing obtains successively, merge M-1 pictures and M pictures, delete the region that pixel is identical, until M equals N, wherein M is more than or equal to 2 and is less than or equal to N.
In conjunction with second aspect, in the first possible implementation of second aspect, described merge cells, comprising:
First contrast module, the pixel of the first row of the M pictures obtained for the pixel of the bottom the first row of M-1 pictures that obtained by described sectional drawing unit sectional drawing and described sectional drawing unit sectional drawing contrasts, if different, again the pixel of the bottom the first row of M-1 pictures and the second row pixel of M pictures are contrasted, if different, then continue the pixel of bottom the first row of M-1 pictures and the third line pixel of M pictures to contrast;
Second contrast module, if described first contrast module finds that the pixel of the bottom the first row of M-1 pictures is identical with the pixel of the n-th line of M pictures, then again the pixel of bottom second row of M-1 pictures and the pixel of the (n-1)th row of M pictures are contrasted;
3rd contrast module, if contrasted through described second contrast module, the pixel of bottom second row of M-1 pictures is identical with the pixel of the (n-1)th row of M pictures, the pixel then continuing the pixel of the bottom the third line comparing M-1 pictures and the n-th-2 row of M pictures contrasts, till finding region identical with pixel in M pictures in M-1 pictures.
In conjunction with second aspect, in the implementation that the second of second aspect is possible, described merge cells, also comprises:
4th contrast module, for the pixel of bottom the first row of M pictures and the pixel of the first row of M-1 pictures are contrasted, if different, again the pixel of the bottom the first row of M pictures and the second row pixel of M-1 pictures are contrasted, if different, then continue the pixel of bottom the first row of M pictures and the third line pixel of M-1 pictures to contrast;
5th contrast module, if described 4th contrast module finds that the pixel of the bottom the first row of M pictures is identical with the pixel of the n-th line of M-1 pictures, then again the pixel of bottom second row of M pictures and the pixel of the (n-1)th row of M-1 pictures are contrasted;
6th contrast module, if contrasted through described 5th contrast module, the pixel of bottom second row of M-1 pictures is identical with the pixel of the (n-1)th row of M pictures, the pixel then continuing the pixel of the bottom the third line comparing M pictures and the n-th-2 row of M-1 pictures contrasts, till finding region identical with pixel in M-1 pictures in M pictures.
In conjunction with second aspect or the first possible implementation of second aspect or the possible implementation of the second of second aspect, in the third possible implementation of second aspect, as N=2, when from described need the top of the content of sectional drawing to carry out sectional drawing successively to bottom time, first pictures is the first half of the content needing sectional drawing, and the second pictures is the latter half of the content needing sectional drawing;
When from described need the bottom of the content of sectional drawing to carry out sectional drawing successively to the top time, the first pictures is the latter half of the content needing sectional drawing, and the second pictures is the first half of the content needing sectional drawing.
The third aspect, provides a kind of electronic equipment, and described electronic equipment comprises the device of the screenshot capture described in second aspect.
In conjunction with the third aspect, in the first possible implementation of the third aspect, described electronic equipment is mobile terminal.
In conjunction with the first possible implementation of the third aspect, in the implementation that the second of the third aspect is possible, described mobile terminal is smart mobile phone or panel computer.
In the embodiment of the present invention, when need the content of sectional drawing more than one all over the screen time, then first need the bottom of the content of sectional drawing to carry out sectional drawing successively to the top to obtain N pictures from the described the top of the content of sectional drawing that needs to bottom or from described, N is more than or equal to 2; Again from the first pictures, search region identical with pixel in M pictures in M-1 pictures successively, merge M-1 pictures and M pictures, delete the region that pixel is identical, until M equals N, wherein M is more than or equal to 2, is less than or equal to N, thus a complete large figure can be got by the sectional drawing of more than twice or twice, better user experience.Solve the electronic equipment that prior art provides, when user needs the content of sectional drawing cannot include at whole screen, can only intercept and obtain two pictures or more plurality of pictures, and the problem of a complete picture can not be obtained.
Accompanying drawing explanation
Fig. 1 is the realization flow figure of the embodiment of the method for screenshot capture of the present invention;
Fig. 2 is in the embodiment of the method for screenshot capture of the present invention, merges the interface schematic diagram of sectional drawing;
Fig. 3 is the structured flowchart of the device embodiment of screenshot capture of the present invention;
Fig. 4 is the structured flowchart of electronic equipment embodiment of the present invention.
Embodiment
In order to make object of the present invention, technical scheme and advantage clearly understand, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein only in order to explain the present invention, be not intended to limit the present invention.
In embodiments of the present invention, when need the content of sectional drawing more than one all over the screen time, then first need the bottom of the content of sectional drawing to carry out sectional drawing successively to the top to obtain N pictures from the described the top of the content of sectional drawing that needs to bottom or from described, N is more than or equal to 2; Again from the first pictures, search region identical with pixel in M pictures in M-1 pictures successively, merge M-1 pictures and M pictures, delete the region that pixel is identical, until M equals N, wherein M is more than or equal to 2, is less than or equal to N, thus can be got a complete large figure by the sectional drawing of more than twice or twice.
Below in conjunction with specific embodiment, realization of the present invention is described in detail:
Embodiment one
Fig. 1 shows the realization flow of the method for the screenshot capture that the embodiment of the present invention one provides, and details are as follows:
In step S101, when need the content of sectional drawing more than one all over the screen time, need the bottom of the content of sectional drawing to carry out sectional drawing successively to the top to obtain N pictures from the described the top of the content of sectional drawing that needs to bottom or from described, N is more than or equal to 2.
In embodiments of the present invention, when run into need the content of sectional drawing more than one all over the screen time, suppose to need the content of sectional drawing one all over the screen all over the screen to two between, then first screen can be positioned to the content the first half needing sectional drawing, carry out first time sectional drawing, after having cut figure, obtain the first pictures, be saved in the storer of electronic equipment by the first pictures, simultaneously display first sectional drawing notice on status bar, the menu of a sectional drawing can be seen in user's pull-down state hurdle.Again screen is positioned to the content the latter half needing sectional drawing, carry out second time sectional drawing, after having cut figure, obtain the second pictures, second pictures is saved in the storer of electronic equipment, display second sectional drawing notice on status bar simultaneously, the menu of two sectional drawings can be seen in user's pull-down state hurdle.
Concrete, when electronic equipment is mobile phone, N pictures that sectional drawing obtains can be stored successively in the SD card of mobile phone.
In step s 102, from the first pictures, region identical with pixel in M pictures in M-1 pictures is searched successively, merge M-1 pictures and M pictures, delete the region that pixel is identical, until M equals N, wherein M is more than or equal to 2 and is less than or equal to N.
In embodiments of the present invention, user's pull-down state hurdle, length presses one of them sectional drawing, selects " merging sectional drawing ", then a display hook hook picture before this menu, then length presses wherein another sectional drawing, selects " merging sectional drawing ", then a display hook hook picture before this menu.As shown in Figure 2, when hook hook picture is more than two, below shows the button of " merging sectional drawing " to the interface schematic diagram of concrete merging sectional drawing, clicks this button, carries out the operation merging sectional drawing.
When from described need the top of the content of sectional drawing to bottom carry out successively sectional drawing obtain N pictures time, described in search region identical with pixel in M pictures in M-1 pictures, comprising:
Step 1, the pixel of bottom the first row of M-1 pictures and the pixel of the first row of M pictures to be contrasted, if different, again the pixel of the bottom the first row of M-1 pictures and the second row pixel of M pictures are contrasted, if different, then continue the pixel of bottom the first row of M-1 pictures and the third line pixel of M pictures to contrast;
If step 2 finds that the pixel of the bottom the first row of M-1 pictures is identical with the pixel of the n-th line of M pictures, then again the pixel of bottom second row of M-1 pictures and the pixel of the (n-1)th row of M pictures are contrasted;
If step 3 is identical, then the pixel continuing the pixel of the bottom the third line comparing M-1 pictures and the n-th-2 row of M pictures contrasts, till finding region identical with pixel in M pictures in M-1 pictures.
When from described need the bottom of the content of sectional drawing to carry out successively to the top sectional drawing obtain N pictures time, described in search region identical with pixel in M pictures in M-1 pictures, also comprise:
Step 11, the pixel of bottom the first row of M pictures and the pixel of the first row of M-1 pictures to be contrasted, if different, then the pixel of the bottom the first row of M pictures and the second row pixel of M-1 pictures are contrasted; If different, then continue the pixel of bottom the first row of M pictures and the third line pixel of M-1 pictures to contrast;
If step 12 finds that the pixel of the bottom the first row of M pictures is identical with the pixel of the n-th line of M-1 pictures, then again the pixel of bottom second row of M pictures and the pixel of the (n-1)th row of M-1 pictures are contrasted;
If step 13 is identical, then the pixel continuing the pixel of the bottom the third line comparing M pictures and the n-th-2 row of M-1 pictures contrasts, till finding region identical with pixel in M-1 pictures in M pictures.
After finding region identical with pixel in M pictures in M-1 pictures, merge M-1 pictures and M pictures, delete the region that pixel is identical, M-1 pictures and M pictures can be merged into one and scheme greatly.From the first pictures, after being merged successively by the first pictures to M pictures, the complete large figure of the content of wanted sectional drawing can be obtained.
Concrete, as N=2, when from described need the top of the content of sectional drawing to carry out sectional drawing successively to bottom time, the first pictures is the first half of the content needing sectional drawing, and the second pictures is the latter half of the content needing sectional drawing; When from described need the bottom of the content of sectional drawing to carry out sectional drawing successively to the top time, the first pictures is the latter half of the content needing sectional drawing, and the second pictures is the first half of the content needing sectional drawing.
As N=2, when from when needing the top of the content of sectional drawing to carry out sectional drawing successively to bottom, first the pixel of the pixel of the bottom the first row of the first pictures and the first row of the second pictures is contrasted, if different, again the pixel of the pixel of the bottom the first row of the first pictures and the second row of the second pictures is contrasted, similarly, if different, the pixel of the pixel of the bottom the first row of the first pictures and the third line of the second pictures is then continued to contrast, if find that certain a line of pixel and second pictures of the bottom the first row of the first pictures (is supposed that line number is that pixel n) is identical, terminated to compare, again the pixel of bottom second row of the first pictures and the pixel of the (n-1)th row of the second pictures are contrasted, if identical, the pixel of the n-th-2 row of the pixel of bottom the third line of the first pictures and the second pictures is then continued to contrast, until after the lower zone block pixel of the upper area block and the second pictures that compare the first pictures fits like a glove, merge two pictures, pixel same area is removed one of them, connect into piece image.
During N-2, when from when needing the bottom of the content of sectional drawing to carry out sectional drawing successively to the top, the method merging two pictures with from similar when needing the top of the content of sectional drawing to bottom to carry out sectional drawing successively, do not repeat them here.
The present embodiment, when need the content of sectional drawing more than one all over the screen time, then first need the bottom of the content of sectional drawing to carry out sectional drawing successively to the top to obtain N pictures from the described the top of the content of sectional drawing that needs to bottom or from described, N is more than or equal to 2; Again from the first pictures, search region identical with pixel in M pictures in M-1 pictures successively, merge M-1 pictures and M pictures, delete the region that pixel is identical, until M equals N, wherein M is more than or equal to 2, is less than or equal to N, thus a complete large figure can be got by the sectional drawing of more than twice or twice, better user experience.Solve the electronic equipment that prior art provides, when user needs the content of sectional drawing cannot include at whole screen, can only intercept and obtain two pictures or more plurality of pictures, and the problem of a complete picture can not be obtained.
Should be understood that in embodiments of the present invention, the size of the sequence number of above-mentioned each process does not also mean that the priority of execution sequence, and the execution sequence of each process should be determined with its function and internal logic, and should not form any restriction to the implementation process of the embodiment of the present invention.
One of ordinary skill in the art will appreciate that all or part of step realized in the various embodiments described above method is that the hardware that can carry out instruction relevant by program has come, corresponding program can be stored in a computer read/write memory medium, described storage medium, as ROM/RAM, disk or CD etc.
Embodiment two
Fig. 3 shows the concrete structure block diagram of the device of the screenshot capture that the embodiment of the present invention two provides, and for convenience of explanation, illustrate only the part relevant to the embodiment of the present invention.The device 3 of this screenshot capture can be the unit of the software unit be built in electronic equipment, hardware cell or software and hardware combining, and the device 3 of this screenshot capture comprises: sectional drawing unit 31 and merge cells 32.
Wherein, sectional drawing unit 31, for when need the content of sectional drawing more than one all over the screen time, need the bottom of the content of sectional drawing to carry out sectional drawing successively to the top to obtain N pictures from the described the top of the content of sectional drawing that needs to bottom or from described, N is more than or equal to 2;
Merge cells 32, for from the first pictures, search region identical with pixel in the M pictures that described sectional drawing unit sectional drawing obtains in the M-1 pictures that described sectional drawing unit sectional drawing obtains successively, merge M-1 pictures and M pictures, delete the region that pixel is identical, until M equals N, wherein M is more than or equal to 2 and is less than or equal to N.
Concrete, described merge cells 32, comprising:
First contrast module, the pixel of the first row of the M pictures obtained for the pixel of the bottom the first row of M-1 pictures that obtained by described sectional drawing unit sectional drawing and described sectional drawing unit sectional drawing contrasts, if different, again the pixel of the bottom the first row of M-1 pictures and the second row pixel of M pictures are contrasted, if different, then continue the pixel of bottom the first row of M-1 pictures and the third line pixel of M pictures to contrast;
Second contrast module, if described first contrast module finds that the pixel of the bottom the first row of M-1 pictures is identical with the pixel of the n-th line of M pictures, then again the pixel of bottom second row of M-1 pictures and the pixel of the (n-1)th row of M pictures are contrasted;
3rd contrast module, if contrasted through described second contrast module, the pixel of bottom second row of M-1 pictures is identical with the pixel of the (n-1)th row of M pictures, the pixel then continuing the pixel of the bottom the third line comparing M-1 pictures and the n-th-2 row of M pictures contrasts, till finding region identical with pixel in M pictures in M-1 pictures.
Further, described merge cells 32, also comprises:
4th contrast module, for the pixel of bottom the first row of M pictures and the pixel of the first row of M-1 pictures are contrasted, if different, again the pixel of the bottom the first row of M pictures and the second row pixel of M-1 pictures are contrasted, if different, then continue the pixel of bottom the first row of M pictures and the third line pixel of M-1 pictures to contrast;
5th contrast module, if described 4th contrast module finds that the pixel of the bottom the first row of M pictures is identical with the pixel of the n-th line of M-1 pictures, then again the pixel of bottom second row of M pictures and the pixel of the (n-1)th row of M-1 pictures are contrasted;
6th contrast module, if contrasted through described 5th contrast module, the pixel of bottom second row of M-1 pictures is identical with the pixel of the (n-1)th row of M pictures, the pixel then continuing the pixel of the bottom the third line comparing M pictures and the n-th-2 row of M-1 pictures contrasts, till finding region identical with pixel in M-1 pictures in M pictures.
Concrete, as N=2, when from described need the top of the content of sectional drawing to carry out sectional drawing successively to bottom time, the first pictures is the first half of the content needing sectional drawing, and the second pictures is the latter half of the content needing sectional drawing;
When from described need the bottom of the content of sectional drawing to carry out sectional drawing successively to the top time, the first pictures is the latter half of the content needing sectional drawing, and the second pictures is the first half of the content needing sectional drawing.
The device of the screenshot capture that the embodiment of the present invention provides can be applied in the embodiment of the method one of aforementioned correspondence, and details, see the description of above-described embodiment one, do not repeat them here.
Embodiment three
Fig. 4 shows the concrete structure block diagram of the electronic equipment that the embodiment of the present invention three provides, and for convenience of explanation, illustrate only the part relevant to the embodiment of the present invention.This electronic equipment 4 can be notebook computer, desktop computer, mobile terminal etc., concrete, this mobile terminal can be smart mobile phone or panel computer, this electronic equipment comprises the device 3 of the screenshot capture described in embodiment two, and the device 3 of this screenshot capture comprises: sectional drawing unit 31 and merge cells 32.
Wherein, sectional drawing unit 31, for when need the content of sectional drawing more than one all over the screen time, need the bottom of the content of sectional drawing to carry out sectional drawing successively to the top to obtain N pictures from the described the top of the content of sectional drawing that needs to bottom or from described, N is more than or equal to 2;
Merge cells 32, for from the first pictures, search region identical with pixel in the M pictures that described sectional drawing unit sectional drawing obtains in the M-1 pictures that described sectional drawing unit sectional drawing obtains successively, merge M-1 pictures and M pictures, delete the region that pixel is identical, until M equals N, wherein M is more than or equal to 2 and is less than or equal to N.
Concrete, described merge cells 32, comprising:
First contrast module, the pixel of the first row of the M pictures obtained for the pixel of the bottom the first row of M-1 pictures that obtained by described sectional drawing unit sectional drawing and described sectional drawing unit sectional drawing contrasts, if different, again the pixel of the bottom the first row of M-1 pictures and the second row pixel of M pictures are contrasted, if different, then continue the pixel of bottom the first row of M-1 pictures and the third line pixel of M pictures to contrast;
Second contrast module, if described first contrast module finds that the pixel of the bottom the first row of M-1 pictures is identical with the pixel of the n-th line of M pictures, then again the pixel of bottom second row of M-1 pictures and the pixel of the (n-1)th row of M pictures are contrasted;
3rd contrast module, if contrasted through described second contrast module, the pixel of bottom second row of M-1 pictures is identical with the pixel of the (n-1)th row of M pictures, the pixel then continuing the pixel of the bottom the third line comparing M-1 pictures and the n-th-2 row of M pictures contrasts, till finding region identical with pixel in M pictures in M-1 pictures.
Further, described merge cells 32, also comprises:
4th contrast module, for the pixel of bottom the first row of M pictures and the pixel of the first row of M-1 pictures are contrasted, if different, again the pixel of the bottom the first row of M pictures and the second row pixel of M-1 pictures are contrasted, if different, then continue the pixel of bottom the first row of M pictures and the third line pixel of M-1 pictures to contrast;
5th contrast module, if described 4th contrast module finds that the pixel of the bottom the first row of M pictures is identical with the pixel of the n-th line of M-1 pictures, then again the pixel of bottom second row of M pictures and the pixel of the (n-1)th row of M-1 pictures are contrasted;
6th contrast module, if contrasted through described 5th contrast module, the pixel of bottom second row of M-1 pictures is identical with the pixel of the (n-1)th row of M pictures, the pixel then continuing the pixel of the bottom the third line comparing M pictures and the n-th-2 row of M-1 pictures contrasts, till finding region identical with pixel in M-1 pictures in M pictures.
Concrete, as N=2, when from described need the top of the content of sectional drawing to carry out sectional drawing successively to bottom time, the first pictures is the first half of the content needing sectional drawing, and the second pictures is the latter half of the content needing sectional drawing;
When from described need the bottom of the content of sectional drawing to carry out sectional drawing successively to the top time, the first pictures is the latter half of the content needing sectional drawing, and the second pictures is the first half of the content needing sectional drawing.
The electronic equipment that the embodiment of the present invention provides can be applied in the embodiment of the method one of aforementioned correspondence, and details, see the description of above-described embodiment one, do not repeat them here.
Those of ordinary skill in the art can recognize, in conjunction with unit and the algorithm steps of each example of embodiment disclosed herein description, can realize with the combination of electronic hardware or computer software and electronic hardware.These functions perform with hardware or software mode actually, depend on application-specific and the design constraint of technical scheme.Professional and technical personnel can use distinct methods to realize described function to each specifically should being used for, but this realization should not thought and exceeds scope of the present invention.
Those skilled in the art can be well understood to, and for convenience and simplicity of description, the specific works process of the system of foregoing description, device and unit, with reference to the corresponding process in preceding method embodiment, can not repeat them here.
In several embodiments that the application provides, should be understood that disclosed system, apparatus and method can realize by another way.Such as, device embodiment described above is only schematic, such as, the division of described unit, be only a kind of logic function to divide, actual can have other dividing mode when realizing, such as multiple unit or assembly can in conjunction with or another system can be integrated into, or some features can be ignored, or do not perform.Another point, shown or discussed coupling each other or direct-coupling or communication connection can be by some interfaces, and the indirect coupling of device or unit or communication connection can be electrical, machinery or other form.
The described unit illustrated as separating component or can may not be and physically separates, and the parts as unit display can be or may not be physical location, namely can be positioned at a place, or also can be distributed in multiple network element.Some or all of unit wherein can be selected according to the actual needs to realize the object of the present embodiment scheme.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, also can be that the independent physics of unit exists, also can two or more unit in a unit integrated.
If described function using the form of SFU software functional unit realize and as independently production marketing or use time, can be stored in a computer read/write memory medium.Based on such understanding, the part of the part that technical scheme of the present invention contributes to prior art in essence in other words or this technical scheme can embody with the form of software product, this computer software product is stored in a storage medium, comprising some instructions in order to make a computer equipment (can be personal computer, server, or the network equipment etc.) perform all or part of step of method described in each embodiment of the present invention.And aforesaid storage medium comprises: USB flash disk, portable hard drive, ROM (read-only memory) (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disc or CD etc. various can be program code stored medium.
The above; be only the specific embodiment of the present invention, but protection scope of the present invention is not limited thereto, is anyly familiar with those skilled in the art in the technical scope that the present invention discloses; change can be expected easily or replace, all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should described be as the criterion with the protection domain of claim.

Claims (11)

1. a method for screenshot capture, is characterized in that, comprising:
When need the content of sectional drawing more than one all over the screen time, need the bottom of the content of sectional drawing to carry out sectional drawing successively to the top to obtain N pictures from the described the top of the content of sectional drawing that needs to bottom or from described, N is more than or equal to 2;
From the first pictures, search region identical with pixel in M pictures in M-1 pictures successively, merge M-1 pictures and M pictures, delete the region that pixel is identical, until M equals N, wherein M is more than or equal to 2, is less than or equal to N.
2. the method for claim 1, is characterized in that, when from described need the top of the content of sectional drawing to bottom carry out successively sectional drawing obtain N pictures time, described in search region identical with pixel in M pictures in M-1 pictures, comprising:
The pixel of bottom the first row of M-1 pictures and the pixel of the first row of M pictures are contrasted, if different, again the pixel of the bottom the first row of M-1 pictures and the second row pixel of M pictures are contrasted, if different, then continue the pixel of bottom the first row of M-1 pictures and the third line pixel of M pictures to contrast;
If find that the pixel of the bottom the first row of M-1 pictures is identical with the pixel of the n-th line of M pictures, then again the pixel of bottom second row of M-1 pictures and the pixel of the (n-1)th row of M pictures are contrasted;
If identical, then the pixel continuing the pixel of the bottom the third line comparing M-1 pictures and the n-th-2 row of M pictures contrasts, till finding region identical with pixel in M pictures in M-1 pictures.
3. the method for claim 1, is characterized in that, when from described need the bottom of the content of sectional drawing to carry out successively to the top sectional drawing obtain N pictures time, described in search region identical with pixel in M pictures in M-1 pictures, also comprise:
The pixel of bottom the first row of M pictures and the pixel of the first row of M-1 pictures are contrasted, if different, then the pixel of the bottom the first row of M pictures and the second row pixel of M-1 pictures is contrasted; If different, then continue the pixel of bottom the first row of M pictures and the third line pixel of M-1 pictures to contrast;
If find that the pixel of the bottom the first row of M pictures is identical with the pixel of the n-th line of M-1 pictures, then again the pixel of bottom second row of M pictures and the pixel of the (n-1)th row of M-1 pictures are contrasted;
If identical, then the pixel continuing the pixel of the bottom the third line comparing M pictures and the n-th-2 row of M-1 pictures contrasts, till finding region identical with pixel in M-1 pictures in M pictures.
4. the method as described in any one of claims 1 to 3, it is characterized in that, as N=2, when from described need the top of the content of sectional drawing to carry out sectional drawing successively to bottom time, first pictures is the first half of the content needing sectional drawing, and the second pictures is the latter half of the content needing sectional drawing;
When from described need the bottom of the content of sectional drawing to carry out sectional drawing successively to the top time, the first pictures is the latter half of the content needing sectional drawing, and the second pictures is the first half of the content needing sectional drawing.
5. a device for screenshot capture, is characterized in that, comprising:
Sectional drawing unit, for when need the content of sectional drawing more than one all over the screen time, need the bottom of the content of sectional drawing to carry out sectional drawing successively to the top to obtain N pictures from the described the top of the content of sectional drawing that needs to bottom or from described, N is more than or equal to 2;
Merge cells, for from the first pictures, search region identical with pixel in the M pictures that described sectional drawing unit sectional drawing obtains in the M-1 pictures that described sectional drawing unit sectional drawing obtains successively, merge M-1 pictures and M pictures, delete the region that pixel is identical, until M equals N, wherein M is more than or equal to 2, is less than or equal to N.
6. device as claimed in claim 5, it is characterized in that, described merge cells, comprising:
First contrast module, the pixel of the first row of the M pictures obtained for the pixel of the bottom the first row of M-1 pictures that obtained by described sectional drawing unit sectional drawing and described sectional drawing unit sectional drawing contrasts, if different, again the pixel of the bottom the first row of M-1 pictures and the second row pixel of M pictures are contrasted, if different, then continue the pixel of bottom the first row of M-1 pictures and the third line pixel of M pictures to contrast;
Second contrast module, if described first contrast module finds that the pixel of the bottom the first row of M-1 pictures is identical with the pixel of the n-th line of M pictures, then again the pixel of bottom second row of M-1 pictures and the pixel of the (n-1)th row of M pictures are contrasted;
3rd contrast module, if contrasted through described second contrast module, the pixel of bottom second row of M-1 pictures is identical with the pixel of the (n-1)th row of M pictures, the pixel then continuing the pixel of the bottom the third line comparing M-1 pictures and the n-th-2 row of M pictures contrasts, till finding region identical with pixel in M pictures in M-1 pictures.
7. device as claimed in claim 5, it is characterized in that, described merge cells, also comprises:
4th contrast module, for the pixel of bottom the first row of M pictures and the pixel of the first row of M-1 pictures are contrasted, if different, again the pixel of the bottom the first row of M pictures and the second row pixel of M-1 pictures are contrasted, if different, then continue the pixel of bottom the first row of M pictures and the third line pixel of M-1 pictures to contrast;
5th contrast module, if described 4th contrast module finds that the pixel of the bottom the first row of M pictures is identical with the pixel of the n-th line of M-1 pictures, then again the pixel of bottom second row of M pictures and the pixel of the (n-1)th row of M-1 pictures are contrasted;
6th contrast module, if contrasted through described 5th contrast module, the pixel of bottom second row of M-1 pictures is identical with the pixel of the (n-1)th row of M pictures, the pixel then continuing the pixel of the bottom the third line comparing M pictures and the n-th-2 row of M-1 pictures contrasts, till finding region identical with pixel in M-1 pictures in M pictures.
8. the device as described in any one of claim 5 to 7, it is characterized in that, as N=2, when from described need the top of the content of sectional drawing to carry out sectional drawing successively to bottom time, first pictures is the first half of the content needing sectional drawing, and the second pictures is the latter half of the content needing sectional drawing;
When from described need the bottom of the content of sectional drawing to carry out sectional drawing successively to the top time, the first pictures is the latter half of the content needing sectional drawing, and the second pictures is the first half of the content needing sectional drawing.
9. an electronic equipment, is characterized in that, described electronic equipment comprises the device of the screenshot capture as described in any one of claim 5 to 8.
10. electronic equipment as claimed in claim 9, it is characterized in that, described electronic equipment is mobile terminal.
11. electronic equipments as claimed in claim 10, it is characterized in that, described mobile terminal is smart mobile phone or panel computer.
CN201510173516.0A 2015-04-13 2015-04-13 The method, apparatus and electronic equipment of screenshot capture Expired - Fee Related CN104766271B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510173516.0A CN104766271B (en) 2015-04-13 2015-04-13 The method, apparatus and electronic equipment of screenshot capture

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510173516.0A CN104766271B (en) 2015-04-13 2015-04-13 The method, apparatus and electronic equipment of screenshot capture

Publications (2)

Publication Number Publication Date
CN104766271A true CN104766271A (en) 2015-07-08
CN104766271B CN104766271B (en) 2019-05-28

Family

ID=53648083

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510173516.0A Expired - Fee Related CN104766271B (en) 2015-04-13 2015-04-13 The method, apparatus and electronic equipment of screenshot capture

Country Status (1)

Country Link
CN (1) CN104766271B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017118391A1 (en) * 2016-01-05 2017-07-13 腾讯科技(深圳)有限公司 Screen capturing method and screen capturing device
CN107194907A (en) * 2017-05-24 2017-09-22 维沃移动通信有限公司 A kind of sectional drawing synthetic method and mobile terminal

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101751659A (en) * 2009-12-24 2010-06-23 北京优纳科技有限公司 Large-volume rapid image splicing method
CN102663792A (en) * 2012-03-28 2012-09-12 上海量明科技发展有限公司 Method and system for deleting redundant area in screenshot
CN102681829A (en) * 2011-03-16 2012-09-19 阿里巴巴集团控股有限公司 Screenshot method, device and communication client
CN103514581A (en) * 2013-10-23 2014-01-15 小米科技有限责任公司 Screen picture capturing method, device and terminal equipment
CN104133683A (en) * 2014-07-31 2014-11-05 上海二三四五网络科技股份有限公司 Screenshot obtaining method and device
US20140366117A1 (en) * 2012-06-07 2014-12-11 Vivek R. KUMAR Method and system of managing a captive portal with a router

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101751659A (en) * 2009-12-24 2010-06-23 北京优纳科技有限公司 Large-volume rapid image splicing method
CN102681829A (en) * 2011-03-16 2012-09-19 阿里巴巴集团控股有限公司 Screenshot method, device and communication client
CN102663792A (en) * 2012-03-28 2012-09-12 上海量明科技发展有限公司 Method and system for deleting redundant area in screenshot
US20140366117A1 (en) * 2012-06-07 2014-12-11 Vivek R. KUMAR Method and system of managing a captive portal with a router
CN103514581A (en) * 2013-10-23 2014-01-15 小米科技有限责任公司 Screen picture capturing method, device and terminal equipment
CN104133683A (en) * 2014-07-31 2014-11-05 上海二三四五网络科技股份有限公司 Screenshot obtaining method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
星螺草: "如何利用PS拼接全图", 《百度文库 HTTPS://WENKU.BAIDU.COM/VIEW/3782A1ADA1C7AA00B42ACB65.HTML?FROM=SEARCH》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017118391A1 (en) * 2016-01-05 2017-07-13 腾讯科技(深圳)有限公司 Screen capturing method and screen capturing device
CN107194907A (en) * 2017-05-24 2017-09-22 维沃移动通信有限公司 A kind of sectional drawing synthetic method and mobile terminal

Also Published As

Publication number Publication date
CN104766271B (en) 2019-05-28

Similar Documents

Publication Publication Date Title
CN108121816B (en) Picture classification method and device, storage medium and electronic equipment
US20150186010A1 (en) Electronic device and method thereof for adjusting desktop icons displayed thereon
CN107247540B (en) Application icon adjusting method and device
CN105094628A (en) Screen capture method and electronic device
CN104238897A (en) Menu item displaying method and device
CN102981627A (en) Password inputting method and password inputting device
CN103593107A (en) Interface display method and device
US20140282253A1 (en) Method and apparatus for batch selection of multiple images
CN105426083A (en) Folder switching method and terminal
CN104394259A (en) Method and device for caller identification and mobile terminal
CN111352597A (en) Multi-screen display control method and device, electronic equipment and readable storage medium
CN107301013A (en) Terminal screenshotss method and device
KR102317013B1 (en) Object management and visualization using computing devices
US20150033132A1 (en) Method and system for dynamically changing a header space in a graphical user interface
CN104572123A (en) Script generation method and device
CN104267961A (en) Scroll bar generation method and device
CN104679391A (en) Icon display method and device of smart watch
US20160154545A1 (en) Electronic device and method for managing and displaying application icons
CN104571904A (en) Information processing method and electronic equipment
CN104766271A (en) Screen capture method, device and electronic device
CN105528428A (en) Image display method and terminal
CN103902294A (en) Browser image display method and terminal
CN104519185A (en) Information processing method and electronic device
CN106293369A (en) Exchange method based on barrage, interactive device and subscriber equipment
CN105975164A (en) Application program display method and terminal

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
EXSB Decision made by sipo to initiate substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong

Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: 523841 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong

Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20190528