CN104850327B - The screenshot method and device of mobile terminal, electronic equipment - Google Patents

The screenshot method and device of mobile terminal, electronic equipment Download PDF

Info

Publication number
CN104850327B
CN104850327B CN201510280284.9A CN201510280284A CN104850327B CN 104850327 B CN104850327 B CN 104850327B CN 201510280284 A CN201510280284 A CN 201510280284A CN 104850327 B CN104850327 B CN 104850327B
Authority
CN
China
Prior art keywords
screenshot
bitmap
instruction
screen
screenshot capture
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.)
Active
Application number
CN201510280284.9A
Other languages
Chinese (zh)
Other versions
CN104850327A (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.)
Xiaomi Inc
Original Assignee
Xiaomi Inc
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 Xiaomi Inc filed Critical Xiaomi Inc
Priority to CN201510280284.9A priority Critical patent/CN104850327B/en
Publication of CN104850327A publication Critical patent/CN104850327A/en
Application granted granted Critical
Publication of CN104850327B publication Critical patent/CN104850327B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Telephone Function (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The disclosure is directed to the screenshot method of mobile terminal and device, electronic equipment, this method may include: to receive screenshot capture instruction, the information for the target figure layer chosen from all screen show layers in the screenshot capture instruction comprising user;It obtains and corresponds to the data cached of the target figure layer;According to described data cached, generation bitmap.By the technical solution of the disclosure, the figure layer of required interception can be chosen during generating screenshot capture, facilitate the usage experience for promoting user.

Description

The screenshot method and device of mobile terminal, electronic equipment
Technical field
This disclosure relates to the screenshot method and device of field of terminal technology more particularly to mobile terminal, electronic equipment.
Background technique
During using mobile terminal, user occasionally wants to carry out record preservation to the display content on screen, or Person is sent to other users.Therefore, the screenshot capture scheme to mobile terminal is provided in the related technology, i.e. user can pass through Multiple physical button modes on mobile terminal are such as pressed simultaneously, and shot operation is carried out to the display content on screen.
Summary of the invention
The disclosure provides the screenshot method and device, electronic equipment of mobile terminal, to solve in the related technology not Foot.
According to the first aspect of the embodiments of the present disclosure, a kind of screenshot method of mobile terminal is provided, comprising:
Screenshot capture instruction is received, is chosen from all screen show layers in the screenshot capture instruction comprising user The information of target figure layer;
It obtains and corresponds to the data cached of the target figure layer;
According to described data cached, generation bitmap.
Optionally, described obtain corresponds to the data cached of the target figure layer, comprising:
It intercepts and captures from shared drive and is sent to the display data on the screen that Surfaceflinger is serviced;
From the display data on the screen, extracts and correspond to the data cached of the target figure layer.
Optionally, the reception screenshot capture instruction, comprising:
When receiving screenshot capture enabled instruction, record is shown in the current interface of terminal screen;
According to the application switching instruction received, the display content of the terminal screen is switched into target interface;
The screenshot capture instruction is received, the screenshot capture instruction is for the screen content comprising the target interface Carry out screenshot.
Optionally, further includes:
After receiving screenshot capture instruction, the display content of the terminal screen is switched back into and described works as prezone Face.
Optionally, further includes:
If including input frame in the current interface, the bitmap is affixed in the input frame.
Optionally, further includes:
By the bitmap display in terminal screen;
Instruction is chosen according to the region received, determines the interception area to the bitmap;
According to the interception area, corresponding screenshot is intercepted from the bitmap.
Optionally, described according to the interception area, corresponding screenshot is intercepted from the bitmap, comprising:
Obtain the characterising parameter of the interception area;
The characterising parameter is converted into coordinate system locating for the bitmap, with the determination screenshot area and institute's rheme Relative positional relationship between figure;
Relationship depending on that relative position intercepts the screenshot from the bitmap.
According to the second aspect of an embodiment of the present disclosure, a kind of screenshot capture device of mobile terminal is provided, comprising:
Receiving unit receives screenshot capture instruction, shows and scheme from all screens comprising user in the screenshot capture instruction The information for the target figure layer chosen in layer;
Acquiring unit obtains and corresponds to the data cached of the target figure layer;
Generation unit, according to described data cached, generation bitmap.
Optionally, the acquiring unit includes:
Data acquisition subelement is intercepted and captured from shared drive and is sent to the display data on the screen that Surfaceflinger is serviced;
Data extract subelement, from the display data on the screen, extract and correspond to the data cached of the target figure layer.
Optionally, the receiving unit includes:
Interface record subelement, when receiving screenshot capture enabled instruction, what record was shown in terminal screen works as prezone Face;
Changing interface subelement is instructed according to the application switching received, and the display content of the terminal screen is switched To target interface;
Screenshot capture subelement, receives screenshot capture instruction, and the screenshot capture instruction is for including the mesh Demarcate face screen content carry out screenshot.
Optionally, further includes:
Recovery unit switches back into the display content of the terminal screen after receiving the screenshot capture instruction The current interface.
Optionally, further includes:
Application unit affixes to the bitmap in the input frame if including input frame in the current interface.
Optionally, further includes:
Display unit, by the bitmap display in terminal screen;
Determination unit chooses instruction according to the region received, determines the interception area to the bitmap;
Interception unit intercepts corresponding screenshot according to the interception area from the bitmap.
Optionally, the interception unit includes:
Parameter obtains subelement, obtains the characterising parameter of the interception area;
Parameter Switch subelement is converted the characterising parameter into coordinate system locating for the bitmap, described in determination Relative positional relationship between screenshot area and the bitmap;
Picture intercepts subelement, and relationship, intercepts the screenshot from the bitmap depending on that relative position.
According to the third aspect of an embodiment of the present disclosure, a kind of electronic equipment is provided, comprising:
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to:
Screenshot capture instruction is received, is chosen from all screen show layers in the screenshot capture instruction comprising user The information of target figure layer;
It obtains and corresponds to the data cached of the target figure layer;
According to described data cached, generation bitmap.
The technical scheme provided by this disclosed embodiment can include the following benefits:
As can be seen from the above embodiments, the disclosure by screenshot capture instructs comprising to the selection information of target figure layer, So that mobile terminal more than extracts screen display content when executing shot operation completely, but based on user's Actual demand only intercepts part figure layer therein, so that screen shot operation more has specific aim, helps to promote user's Usage experience.
It should be understood that above general description and following detailed description be only it is exemplary and explanatory, not The disclosure can be limited.
Detailed description of the invention
The drawings herein are incorporated into the specification and forms part of this specification, and shows the implementation for meeting the disclosure Example, and together with specification for explaining the principles of this disclosure.
Figure 1A is the schematic diagram for carrying out screenshot capture to mobile terminal in the related technology.
Figure 1B is the decomposition diagram for the figure layer that the screenshot capture in Figure 1A includes.
Fig. 2 is the structural schematic diagram of the system function of mobile terminal realization screenshot capture in the related technology.
Fig. 3 is the process according to a kind of screenshot method of mobile terminal shown in one exemplary embodiment of the disclosure Figure.
Fig. 4 is the process according to the screenshot method of another mobile terminal shown in one exemplary embodiment of the disclosure Figure.
Fig. 5-9 is the signal that screenshot capture is carried out according to a kind of pair of mobile terminal shown in one exemplary embodiment of the disclosure Figure.
Figure 10 is the system function that screenshot capture is realized according to a kind of mobile terminal shown in one exemplary embodiment of the disclosure The structural schematic diagram of energy.
Figure 11-12 be shown according to one exemplary embodiment of the disclosure it is a kind of to mobile terminal carry out screenshot capture show It is intended to.
Figure 13-19 is the frame according to a kind of screenshot capture device of mobile terminal shown in one exemplary embodiment of the disclosure Figure.
Figure 20 is the knot according to a kind of device of the screenshot capture of mobile terminal shown in one exemplary embodiment of the disclosure Structure schematic diagram.
Specific embodiment
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment Described in embodiment do not represent all implementations consistent with this disclosure.On the contrary, they be only with it is such as appended The example of the consistent device and method of some aspects be described in detail in claims, the disclosure.
Figure 1A is the schematic diagram for carrying out screenshot capture to mobile terminal in the related technology, and as shown in Figure 1A, left side is movement The interface schematic diagram of terminal is merely able to the screen to mobile terminal when user needs to the mobile terminal execution screenshot capture Interior all display contents carry out screenshot together, obtain screenshot capture shown in right side.
However, the screen content in Figure 1A is not actually an entirety initially;For example, as shown in Figure 1B, The screen display content of mobile terminal can be divided into desktop background, status bar, window member, desktop icons, desktop bottom are fixed Multiple figure layers such as icon, these are data cached to be co-located in shared drive shown in Fig. 2;When user needs to be implemented screenshot capture When, serviced by the Surfaceflinger in mobile terminal extract from shared drive it is above-mentioned data cached, and by institute Have figure layer it is corresponding it is data cached be combined after, just obtain final screenshot capture.
But in the screenshot capture that the relevant technologies provide, user may only want to intercept one of those or several figures Layer, and do not need All Layers, then other figure layers actually belong to the useless or even interference element in screenshot capture.
Therefore, the disclosure is improved by the screenshot capture process to mobile terminal, to solve to exist in the related technology Above-mentioned technical problem.
Fig. 3 is a kind of flow chart of the screenshot method of mobile terminal shown according to an exemplary embodiment, such as Fig. 3 Shown, this method is for may comprise steps of in mobile terminal.
In step 302, screenshot capture instruction is received, is shown comprising user from all screens in the screenshot capture instruction The information for the target figure layer chosen in figure layer.
In the present embodiment, when receiving screenshot capture enabled instruction, it can recorde and be shown in the current of terminal screen Interface;According to the application switching instruction received, the display content of the terminal screen is switched into target interface;Described in reception Screenshot capture instruction, the screenshot capture instruction is for carrying out screenshot to the screen content comprising the target interface.In the reality It applies in example, user can execute the screen shot operation to arbitrary interface, automatically in current interface and target in current interface Association is established between interface, without user's manual switching.
Further, after receiving the screenshot capture instruction, the display content of the terminal screen can be cut The current interface is gained, consequently facilitating user operates or handles to screenshot capture in current interface, especially currently When interface is belonged to such as instant messaging application, so that screen shot operation is more in line with the timeliness demand of instant messaging application.
Further, if including input frame in the current interface, the bitmap is affixed in the input frame.? In the embodiment, by the direct stickup to bitmap, user's operation is simplified;Especially for instant messaging application, user's Screenshot capture behavior has greatly probably as the content of instant messaging, thus meets the timeliness demand of instant messaging application.
In step 304, it obtains and corresponds to the data cached of the target figure layer.
In the present embodiment, the screen display number that Surfaceflinger is serviced can be sent to by intercepting and capturing from shared drive According to, and from the display data on the screen, it extracts and corresponds to the data cached of the target figure layer.In this embodiment, pass through Intercepting and capturing to display data on the screen carry out All Layers when Surfaceflinger service being avoided to handle the data Combination;And correspond to the data cached of target figure layer by extracting, it is ensured that only include target figure in finally obtained screenshot capture The content of layer, and eliminate the content of other figure layers.
Within step 306, according to described data cached, generation bitmap.
It in the present embodiment, can also be by the bitmap display in terminal screen;It is chosen and is referred to according to the region received It enables, determines the interception area to the bitmap;According to the interception area, corresponding screenshot is intercepted from the bitmap.At this In embodiment, the region that user can directly need oneself is intercepted, and avoids in screenshot capture comprising unwanted Content;Meanwhile also not needing individually to carry out region interception after screenshot capture, help to simplify user's operation.
Wherein it is possible to pass through the characterising parameter for obtaining the interception area;The characterising parameter is converted to the bitmap In locating coordinate system, with the relative positional relationship between the determination screenshot area and the bitmap;According to the opposite position Relationship is set, the screenshot is intercepted from the bitmap.
As can be seen from the above embodiments, the disclosure by screenshot capture instructs comprising to the selection information of target figure layer, So that mobile terminal more than extracts screen display content when executing shot operation completely, but based on user's Actual demand only intercepts part figure layer therein, so that screen shot operation more has specific aim, helps to promote user's Usage experience.
Fig. 4 is the process according to the screenshot method of another mobile terminal shown in one exemplary embodiment of the disclosure Figure may comprise steps of as shown in figure 4, this method is applied to mobile terminal.
In step 402, mobile terminal receives screenshot capture enabled instruction.
In the present embodiment, mobile terminal can judge whether to receive screenshot capture enabled instruction in several ways, For example the physical button quilt for touching sliding trace, some or certain combination on mobile terminal of predetermined pattern is detected on screen Pressing, mobile terminal are shaken, and the disclosure is limited not to this.
For example, as an exemplary embodiment, as shown in figure 5, a mark, the mark can be shown on mobile terminals Know on other display contents being suspended in screen, and user can drag at random and change the display position of the mark.That , after user triggers the mark, selection menu shown in fig. 5 can be shown, then when mobile terminal detects that user chooses After " screenshot " option, it can be judged to having received screenshot capture enabled instruction.
In step 404, according to the user's operation detected, target interface is switched to from current interface.
In the present embodiment, as shown in fig. 6, can be shown on mobile terminal screen as " after target interface please being turn to, done The menu of selection out: cancellation/selection figure layer ", then user can be instructed by application switching, switch to target circle from current interface Face.For example, for example Fig. 6 is current interface, which is the interface of instant messaging application, and Fig. 7 is target interface, The target interface is the main interface of desktop, then under the current interface that user can be directly shown in Fig. 6, by clicking mobile terminal " homepage " key among lower section completes changing interface, then when mobile terminal detects the clicking operation, i.e., it is believed that receiving The application switching instruction inputted to user.
In a step 406, all screen show layers are shown on the screen of the mobile terminal.
In the present embodiment, after switching to target interface, user can be by clicking " choosing figure layer " choosing shown in Fig. 7 , recall menu shown in Fig. 8, in the menu comprising " status bar ", " desktop background ", " window member ", " desktop icons ", The All Layers for including in target interfaces such as " desktop bottom anchor icons ".
Certainly, if current interface is target interface needed for user, user can be shown in fig. 6 by clicking " choosing figure layer " option, recalls menu shown in Fig. 8.
In a step 408, it operates according to the user's choice, chooses target figure layer.
In the present embodiment, user is by directly choosing required target figure layer, such as " table in menu shown in Fig. 8 Face background ";Certainly, target figure layer may include multiple figure layers, such as in Fig. 9, and user has selected " desktop background " and " window Component ".The layer count that the disclosure can not choose user limits.
In step 410, mobile terminal receives screenshot capture instruction.
As an exemplary embodiment, step 402-408 can not be included in the technical solution of the disclosure, then user is straight After sending and receiving go out screenshot capture instruction, screen shot operation can be carried out to current interface.In this embodiment, mobile terminal can be with Judge whether to receive screenshot capture instruction by any way, such as similar with the screenshot capture enabled instruction in step 402, Such as touch track figure, physical button are pressed, can also be different from screenshot capture enabled instruction;Details are not described herein again.
Property embodiment as another example, if mobile terminal is receiving screenshot capture instruction comprising step 402-408 Afterwards, really start to execute corresponding screen shot operation, will be described in step 412-416 below.In this embodiment, Mobile terminal still can judge whether to receive screenshot capture instruction by any way;As an illustrative embodiments, In Fig. 8 or interface shown in Fig. 9, after " completing " when the user clicks, it can be judged to receiving screenshot capture instruction, execute phase The screen shot operation answered.
As shown in figure 8, when user only has chosen " desktop background ", only comprising being somebody's turn to do " table in the screenshot capture that right side generates The figure layer of face background " shows content;As shown in figure 9, when user has chosen " desktop background " and " window member " simultaneously, right side The screenshot capture of generation is that the figure layer of " desktop background " and " window member " shows the combination of content, and user can be according to reality Demand carries out any combination to multiple figure layers.
Optionally, in step 404A, mobile terminal can record current interface after step 404;And in step In rapid 404B, mobile terminal is after step 410, automatic to restore to current interface.So, it is especially for shown in fig. 5 When communication process, auto-associating and switching can be completed between current interface and target interface, facilitate simplify user's operation, Promote user experience.
In step 412, the data for being sent to Surfaceflinger service by sharing content are intercepted and captured.
It, as shown in Figure 10, can be to altogether after mobile terminal detects screenshot capture instruction as an exemplary embodiment Enjoy memory be sent to Surfaceflinger service data intercepted and captured, then avoid the data from being serviced by Surfaceflinger It is combined as screenshot capture shown in figure 1A.Opposite, which will not be sent to Surfaceflinger, but be sent Selection of figure layer etc. is operated toward region of memory, and according to user, screenshot capture needed for generating the disclosure.
In step 414, it is extracted from the data of intercepting and capturing corresponding to the data cached of target figure layer.
In the present embodiment, the target figure layer for the target interface chosen in a step 408 according to user, mobile terminal from cut Extracted in the data obtained it is corresponding data cached, such as Fig. 8, it is only necessary to extract correspond to " desktop background " figure layer caching Data;And it is directed to Fig. 9, it needs to extract corresponding to the data cached of " desktop background " and " window member " figure layer.
In step 416, according to the data cached of extraction, corresponding bitmap is generated.
In step 418, by the bitmap display of generation on terminal screen.
In the present embodiment, after mobile terminal generates bitmap, completes shot operation, arbitrary interface can be switched to, such as " current interface " before return, or rest on " target interface " etc., wait user to execute other operations;Alternatively, can also incite somebody to action The bitmap display of generation is on terminal screen, so that user handles the bitmap.
At step 420, according to the user's intercept operation received, interception area is determined on the bitmap of displaying.
In the present embodiment, mobile terminal can choose instruction according to the region received, determine the interception area to bitmap Domain.Than as shown in figure 11, the icon on four vertex corresponding to interception area can be shown on a terminal screen, then if user It does not need to intercept, then can click directly on " completion ", be then defaulted as that region selection instruction has been received;If user needs to cut It takes, then can be judged to receiving region by dragging the icon, then when detecting that icon is dragged and choose instruction. By determining interception area on the bitmap of displaying, only to intercept the corresponding screenshot in the region, and other in bitmap are eliminated Unwanted display content.
In step 422, according to interception area, corresponding screenshot is intercepted from bitmap.
In the present embodiment, mobile terminal can be by obtaining the characterising parameter of interception area, and the characterising parameter is turned It shifts in coordinate system locating for bitmap, to determine the relative positional relationship between screenshot area and bitmap, then according to opposite position Relationship is set, corresponding screenshot is intercepted from bitmap.
For example, shown in Figure 11 for rectangle, the characterising parameter of interception area may include: the seat on four vertex Mark;Alternatively, the coordinate on side length and any vertex, so as to by the interception area of the rectangle in coordinate system locating for bitmap It is depicted and.Certainly, " rectangle " is only used for for example, the disclosure is not intended to limit the shape of interception area.
In step 424, judge whether be otherwise transferred to comprising input frame if being transferred to step 428 comprising if in current interface Step 426.
In step 426, the screenshot of interception is generated as corresponding screenshot file.
In the present embodiment, mobile terminal can not also generate screenshot file, and the screenshot of interception is saved to clipbook In, then user can be operated by manually " stickup ", which is affixed to the input frame etc. of terminal interface.
In step 428, the screenshot of interception is affixed directly in input frame.
It in the present embodiment, as shown in figure 12,, can if in the interface including input frame after return " current interface " Directly to affix to the screenshot of interception in the input frame, it is manually pasted without user.
Corresponding with the embodiment of the screenshot method of mobile terminal above-mentioned, the disclosure additionally provides mobile terminal The embodiment of screenshot capture device.
Figure 13 is a kind of screenshot capture device block diagram of mobile terminal shown according to an exemplary embodiment.Referring to figure 13, which includes receiving unit 1301, acquiring unit 1302 and generation unit 1303.
Wherein, receiving unit 1301 are configured as receiving screenshot capture instruction, include user in the screenshot capture instruction The information for the target figure layer chosen from all screen show layers;
Acquiring unit 1302 is configured as obtaining corresponding to the data cached of the target figure layer;
Generation unit 1303 is configured as according to described data cached, generation bitmap.
As shown in figure 14, Figure 14 is the screenshot capture device of another mobile terminal shown according to an exemplary embodiment Block diagram, for the embodiment on the basis of aforementioned embodiment illustrated in fig. 13, acquiring unit 1302 may include: that Data acquisition is single First 1302A and data extract subelement 1302B.
Wherein, Data acquisition subelement 1302A is configured as intercepting and capturing from shared drive and is sent to Surfaceflinger service Display data on the screen;
Data extract subelement 1302B, are configured as from the display data on the screen, extract and correspond to the target figure Layer it is data cached.
As shown in figure 15, Figure 15 is the screenshot capture device of another mobile terminal shown according to an exemplary embodiment Block diagram, for the embodiment on the basis of aforementioned embodiment illustrated in fig. 13, receiving unit 1301 may include: that interface record is single First 1301A, changing interface subelement 1301B and screenshot capture subelement 1301C.
Wherein, interface record subelement 1301A is configured as when receiving screenshot capture enabled instruction, record display In the current interface of terminal screen;
Changing interface subelement 1301B is configured as according to the application switching instruction received, by the terminal screen Display content switches to target interface;
Screenshot capture subelement 1301C is configured as receiving the screenshot capture instruction, and the screenshot capture instruction is used for Screenshot is carried out to the screen content comprising the target interface.
It should be noted that interface record subelement 1301A, changing interface in above-mentioned Installation practice shown in figure 15 The structure of subelement 1301B and screenshot capture subelement 1301C also may be embodied in the Installation practice of earlier figures 14, to this The disclosure is not limited.
As shown in figure 16, Figure 16 is the screenshot capture device of another mobile terminal shown according to an exemplary embodiment Block diagram, for the embodiment on the basis of aforementioned embodiment illustrated in fig. 15, which can also include: recovery unit 1304.
Wherein, recovery unit 1304 are configured as after receiving the screenshot capture instruction, by the terminal screen Display content switch back into the current interface.
As shown in figure 17, Figure 17 is the screenshot capture device of another mobile terminal shown according to an exemplary embodiment Block diagram, for the embodiment on the basis of aforementioned embodiment illustrated in fig. 16, which can also include: application unit 1305.
Wherein, application unit 1305, if being configured as in the current interface pasting the bitmap comprising input frame To in the input frame.
As shown in figure 18, Figure 18 is the screenshot capture device of another mobile terminal shown according to an exemplary embodiment Block diagram, the embodiment on the basis of aforementioned embodiment illustrated in fig. 13, the device can also include: display unit 1306, really Order member 1307 and interception unit 1308.
Wherein, display unit 1306 are configured as the bitmap display in terminal screen;
Determination unit 1307 is configured as choosing instruction according to the region received, determines the interception area to the bitmap Domain;
Interception unit 1308 is configured as intercepting corresponding screenshot from the bitmap according to the interception area.
It should be noted that display unit 1306,1307 and of determination unit in Installation practice shown in above-mentioned Figure 18 The structure of interception unit 1308 also may be embodied in the Installation practice of earlier figures 14-17, be not limited to this disclosure.
As shown in figure 19, Figure 19 is the screenshot capture device of another mobile terminal shown according to an exemplary embodiment Block diagram, for the embodiment on the basis of aforementioned embodiment illustrated in fig. 18, interception unit 1308 may include: that obtain son single for parameter First 1308A, Parameter Switch subelement 1308B and picture intercept subelement 1308C.
Wherein, parameter obtains subelement 1308A, is configured as obtaining the characterising parameter of the interception area;
Parameter Switch subelement 1308B is configured as converting the characterising parameter to coordinate system locating for the bitmap In, with the relative positional relationship between the determination screenshot area and the bitmap;
Picture intercepts subelement 1308C, is configured as relationship depending on that relative position, from the bitmap described in interception Screenshot.
About the device in above-described embodiment, wherein modules execute the concrete mode of operation in related this method Embodiment in be described in detail, no detailed explanation will be given here.
For device embodiment, since it corresponds essentially to embodiment of the method, so related place is referring to method reality Apply the part explanation of example.The apparatus embodiments described above are merely exemplary, wherein described be used as separation unit The unit of explanation may or may not be physically separated, and component shown as a unit can be or can also be with It is not physical unit, it can it is in one place, or may be distributed over multiple network units.It can be according to actual The purpose for needing to select some or all of the modules therein to realize disclosure scheme.Those of ordinary skill in the art are not paying Out in the case where creative work, it can understand and implement.
Correspondingly, the disclosure also provides a kind of screenshot capture device of mobile terminal, comprising: processor;At storage Manage the memory of device executable instruction;Wherein, the processor is configured to: receive screenshot capture instruction, the screenshot capture The information for the target figure layer chosen from all screen show layers in instruction comprising user;It obtains and corresponds to the target figure layer It is data cached;According to described data cached, generation bitmap.
Correspondingly, the disclosure also provides a kind of terminal, the terminal include memory and one or more than one Program, one of them perhaps more than one program be stored in memory and be configured to by one or more than one Managing device and executing the one or more programs includes the instruction for performing the following operation: screenshot capture instruction is received, The information for the target figure layer chosen from all screen show layers in the screenshot capture instruction comprising user;Acquisition corresponds to The target figure layer it is data cached;According to described data cached, generation bitmap.
Figure 20 is a kind of device 2000 of screenshot capture for mobile terminal shown according to an exemplary embodiment Block diagram.For example, device 2000 can be mobile phone, and computer, digital broadcasting terminal, messaging device, game console, Tablet device, Medical Devices, body-building equipment, personal digital assistant etc..
Referring to Figure 20, device 2000 may include following one or more components: processing component 2002, memory 2004, Power supply module 2006, multimedia component 2008, audio component 2010, the interface 2012 of input/output (I/O), sensor module 2014 and communication component 2016.
The integrated operation of the usual control device 2000 of processing component 2002, such as with display, telephone call, data communication, Camera operation and record operate associated operation.Processing component 2002 may include one or more processors 2020 to execute Instruction, to perform all or part of the steps of the methods described above.In addition, processing component 2002 may include one or more moulds Block, convenient for the interaction between processing component 2002 and other assemblies.For example, processing component 2002 may include multi-media module, To facilitate the interaction between multimedia component 20020 and processing component 2002.
Memory 2004 is configured as storing various types of data to support the operation in device 2000.These data Example includes the instruction of any application or method for operating on device 2000, contact data, telephone book data, Message, picture, video etc..Memory 2004 can by any kind of volatibility or non-volatile memory device or they Combination is realized, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), it is erasable can Program read-only memory (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, flash memory Reservoir, disk or CD.
Power supply module 2006 provides electric power for the various assemblies of device 2000.Power supply module 2006 may include power management System, one or more power supplys and other with for device 2000 generate, manage, and distribute the associated component of electric power.
Multimedia component 2008 includes the screen of one output interface of offer between described device 2000 and user.? In some embodiments, screen may include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel, Screen may be implemented as touch screen, to receive input signal from the user.Touch panel includes that one or more touch passes Sensor is to sense the gesture on touch, slide, and touch panel.The touch sensor can not only sense touch or sliding is dynamic The boundary of work, but also detect duration and pressure associated with the touch or slide operation.In some embodiments, more Media component 2008 includes a front camera and/or rear camera.When device 2000 is in operation mode, as shot mould When formula or video mode, front camera and/or rear camera can receive external multi-medium data.Each preposition camera shooting Head and rear camera can be a fixed optical lens system or have focusing and optical zoom capabilities.
Audio component 2010 is configured as output and/or input audio signal.For example, audio component 2010 includes a wheat Gram wind (MIC), when device 2000 is in operation mode, when such as call mode, recording mode, and voice recognition mode, microphone quilt It is configured to receive external audio signal.The received audio signal can be further stored in memory 2004 or via communication Component 2016 is sent.In some embodiments, audio component 2010 further includes a loudspeaker, is used for output audio signal.
I/O interface 2012 provides interface, above-mentioned peripheral interface module between processing component 2002 and peripheral interface module It can be keyboard, click wheel, button etc..These buttons may include, but are not limited to: home button, volume button, start button and Locking press button.
Sensor module 2014 includes one or more sensors, and the state for providing various aspects for device 2000 is commented Estimate.For example, sensor module 2014 can detecte the state that opens/closes of device 2000, the relative positioning of component, such as institute The display and keypad that component is device 2000 are stated, sensor module 2014 can be with detection device 2000 or device 2,000 1 The position change of a component, the existence or non-existence that user contacts with device 2000,2000 orientation of device or acceleration/deceleration and dress Set 2000 temperature change.Sensor module 2014 may include proximity sensor, be configured in not any physics It is detected the presence of nearby objects when contact.Sensor module 2014 can also include optical sensor, as CMOS or ccd image are sensed Device, for being used in imaging applications.In some embodiments, which can also include acceleration sensing Device, gyro sensor, Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 2016 is configured to facilitate the communication of wired or wireless way between device 2000 and other equipment.Dress The wireless network based on communication standard, such as WiFi can be accessed by setting 2000,2G or 3G or their combination.It is exemplary at one In embodiment, communication component 2016 receives broadcast singal or broadcast correlation from external broadcasting management system via broadcast channel Information.In one exemplary embodiment, the communication component 2016 further includes near-field communication (NFC) module, to promote short distance Communication.For example, radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra wide band can be based in NFC module (UWB) technology, bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, device 2000 can be by one or more application specific integrated circuit (ASIC), number Signal processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components are realized, for executing the above method.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instruction, example are additionally provided It such as include the memory 2004 of instruction, above-metioned instruction can be executed by the processor 2020 of device 2000 to complete the above method.Example Such as, the non-transitorycomputer readable storage medium can be ROM, random access memory (RAM), CD-ROM, tape, soft Disk and optical data storage devices etc..
Those skilled in the art will readily occur to its of the disclosure after considering specification and practicing disclosure disclosed herein Its embodiment.This application is intended to cover any variations, uses, or adaptations of the disclosure, these modifications, purposes or Person's adaptive change follows the general principles of this disclosure and including the undocumented common knowledge in the art of the disclosure Or conventional techniques.The description and examples are only to be considered as illustrative, and the true scope and spirit of the disclosure are by following Claim is pointed out.
It should be understood that the present disclosure is not limited to the precise structures that have been described above and shown in the drawings, and And various modifications and changes may be made without departing from the scope thereof.The scope of the present disclosure is only limited by the accompanying claims.

Claims (12)

1. a kind of screenshot method of mobile terminal characterized by comprising
When receiving screenshot capture enabled instruction, record is shown in the current interface of terminal screen;
According to the application switching instruction received, the display content of the terminal screen is switched into target interface;
Receive screenshot capture instruction, the target chosen from all screen show layers in the screenshot capture instruction comprising user The information of figure layer, the screenshot capture instruction is for carrying out screenshot to the screen content comprising the target interface;
It obtains and corresponds to the data cached of the target figure layer;
According to described data cached, generation bitmap;
By the bitmap display in terminal screen;
Instruction is chosen according to the region received, determines the interception area to the bitmap;
According to the interception area, corresponding screenshot is intercepted from the bitmap.
2. the method according to claim 1, wherein described obtain the caching number for corresponding to the target figure layer According to, comprising:
It intercepts and captures from shared drive and is sent to the display data on the screen that Surfaceflinger is serviced;
From the display data on the screen, extracts and correspond to the data cached of the target figure layer.
3. the method according to claim 1, wherein further include:
After receiving the screenshot capture instruction, the display content of the terminal screen is switched back into the current interface.
4. according to the method described in claim 3, it is characterized by further comprising:
If including input frame in the current interface, the bitmap is affixed in the input frame.
5. being cut from the bitmap the method according to claim 1, wherein described according to the interception area Take corresponding screenshot, comprising:
Obtain the characterising parameter of the interception area;
The characterising parameter is converted into coordinate system locating for the bitmap, with the determination screenshot area and the bitmap it Between relative positional relationship;
Relationship depending on that relative position intercepts the screenshot from the bitmap.
6. a kind of screenshot capture device of mobile terminal characterized by comprising
Receiving unit receives screenshot capture instruction, includes user from all screen show layers in the screenshot capture instruction The information of the target figure layer of selection;The receiving unit includes: interface record subelement, when receiving screenshot capture enabled instruction When, record is shown in the current interface of terminal screen;Changing interface subelement is instructed according to the application switching received, by institute The display content for stating terminal screen switches to target interface;Screenshot capture subelement receives the screenshot capture instruction, the screen The instruction of curtain screenshot is for carrying out screenshot to the screen content comprising the target interface;
Acquiring unit obtains and corresponds to the data cached of the target figure layer;
Generation unit, according to described data cached, generation bitmap;
Display unit, by the bitmap display in terminal screen;
Determination unit chooses instruction according to the region received, determines the interception area to the bitmap;
Interception unit intercepts corresponding screenshot according to the interception area from the bitmap.
7. device according to claim 6, which is characterized in that the acquiring unit includes:
Data acquisition subelement is intercepted and captured from shared drive and is sent to the display data on the screen that Surfaceflinger is serviced;
Data extract subelement, from the display data on the screen, extract and correspond to the data cached of the target figure layer.
8. device according to claim 6, which is characterized in that further include:
Recovery unit switches back into the display content of the terminal screen described after receiving the screenshot capture instruction Current interface.
9. device according to claim 8, which is characterized in that further include:
Application unit affixes to the bitmap in the input frame if including input frame in the current interface.
10. device according to claim 6, which is characterized in that the interception unit includes:
Parameter obtains subelement, obtains the characterising parameter of the interception area;
Parameter Switch subelement converts the characterising parameter into coordinate system locating for the bitmap, with the determination screenshot Relative positional relationship between region and the bitmap;
Picture intercepts subelement, and relationship, intercepts the screenshot from the bitmap depending on that relative position.
11. a kind of mobile terminal characterized by comprising
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to:
When receiving screenshot capture enabled instruction, record is shown in the current interface of terminal screen;
According to the application switching instruction received, the display content of the terminal screen is switched into target interface;
Receive screenshot capture instruction, the target chosen from all screen show layers in the screenshot capture instruction comprising user The information of figure layer, the screenshot capture instruction is for carrying out screenshot to the screen content comprising the target interface;
It obtains and corresponds to the data cached of the target figure layer;
According to described data cached, generation bitmap;
By the bitmap display in terminal screen;
Instruction is chosen according to the region received, determines the interception area to the bitmap;
According to the interception area, corresponding screenshot is intercepted from the bitmap.
12. a kind of computer readable storage medium, is stored thereon with computer instruction, which is characterized in that the instruction is by processor It is realized when execution such as the step of any one of claim 1-5 the method.
CN201510280284.9A 2015-05-27 2015-05-27 The screenshot method and device of mobile terminal, electronic equipment Active CN104850327B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510280284.9A CN104850327B (en) 2015-05-27 2015-05-27 The screenshot method and device of mobile terminal, electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510280284.9A CN104850327B (en) 2015-05-27 2015-05-27 The screenshot method and device of mobile terminal, electronic equipment

Publications (2)

Publication Number Publication Date
CN104850327A CN104850327A (en) 2015-08-19
CN104850327B true CN104850327B (en) 2019-07-16

Family

ID=53850006

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510280284.9A Active CN104850327B (en) 2015-05-27 2015-05-27 The screenshot method and device of mobile terminal, electronic equipment

Country Status (1)

Country Link
CN (1) CN104850327B (en)

Families Citing this family (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105100664A (en) * 2015-08-21 2015-11-25 北京金山安全软件有限公司 Image generation method and device
CN105095083A (en) * 2015-08-24 2015-11-25 上海斐讯数据通信技术有限公司 Mobile phone interface screenshot test method and device used in Android system
CN105791589B (en) * 2016-04-28 2019-07-30 努比亚技术有限公司 A kind of mobile terminal and its control method
CN106020644A (en) * 2016-05-13 2016-10-12 青岛海信移动通信技术股份有限公司 Picture capturing method and terminal
CN106933525B (en) * 2017-03-09 2019-09-20 青岛海信移动通信技术股份有限公司 A kind of method and apparatus showing image
CN106970754B (en) * 2017-03-28 2020-09-08 北京小米移动软件有限公司 Screen capture processing method and device
CN108469940B (en) * 2018-03-16 2021-03-26 维沃移动通信有限公司 Screenshot method and terminal
EP3605327B1 (en) 2018-03-20 2021-12-15 Cloudminds (Shenzhen) Robotics Systems Co., Ltd. Method and apparatus for capturing screenshots of guest operating system in computer device
CN109582410A (en) * 2018-10-17 2019-04-05 广州视源电子科技股份有限公司 Screenshot method, device, equipment and computer readable storage medium
CN110209324B (en) * 2019-04-30 2020-11-10 维沃移动通信有限公司 Display method and terminal equipment
CN110096326B (en) * 2019-04-30 2021-08-17 维沃移动通信有限公司 Screen capturing method, terminal equipment and computer readable storage medium
CN111399965A (en) * 2020-04-16 2020-07-10 Oppo广东移动通信有限公司 User interface compatible display method and device, equipment and storage medium
CN113204404A (en) * 2021-05-20 2021-08-03 北京字跳网络技术有限公司 Screen capture method and device and electronic equipment
CN114253449A (en) * 2021-12-09 2022-03-29 北京鸿合爱学教育科技有限公司 Screen capturing method, device, equipment and medium
CN113990457B (en) * 2021-12-24 2022-03-04 极限人工智能有限公司 Video image intercepting method, device, chip, surgical robot and system

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2464103A2 (en) * 2010-12-08 2012-06-13 Samsung Electronics Co., Ltd. Image processing apparatus and user terminal apparatus
CN102724138A (en) * 2012-06-28 2012-10-10 奇智软件(北京)有限公司 Information sharing method and device for instant messaging
CN103037102A (en) * 2012-12-21 2013-04-10 广东欧珀移动通信有限公司 Free screen shot method of touch screen cellphone and cellphone
CN104238913A (en) * 2014-09-02 2014-12-24 北京金山安全软件有限公司 Screenshot method and device and electronic equipment
CN105607792A (en) * 2014-11-21 2016-05-25 南京酷派软件技术有限公司 Layered screenshot method and device, and terminal
CN105677131A (en) * 2014-11-21 2016-06-15 中兴通讯股份有限公司 Screenshot image output method and device

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101488333A (en) * 2009-01-22 2009-07-22 中兴通讯股份有限公司 Image display device and display outputting method thereof
CN103175570B (en) * 2011-12-21 2017-04-19 北京普源精电科技有限公司 Measuring device with screen capture function
CN102779008B (en) * 2012-06-26 2016-06-22 北京奇虎科技有限公司 A kind of screenshot method and system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2464103A2 (en) * 2010-12-08 2012-06-13 Samsung Electronics Co., Ltd. Image processing apparatus and user terminal apparatus
CN102724138A (en) * 2012-06-28 2012-10-10 奇智软件(北京)有限公司 Information sharing method and device for instant messaging
CN103037102A (en) * 2012-12-21 2013-04-10 广东欧珀移动通信有限公司 Free screen shot method of touch screen cellphone and cellphone
CN104238913A (en) * 2014-09-02 2014-12-24 北京金山安全软件有限公司 Screenshot method and device and electronic equipment
CN105607792A (en) * 2014-11-21 2016-05-25 南京酷派软件技术有限公司 Layered screenshot method and device, and terminal
CN105677131A (en) * 2014-11-21 2016-06-15 中兴通讯股份有限公司 Screenshot image output method and device

Also Published As

Publication number Publication date
CN104850327A (en) 2015-08-19

Similar Documents

Publication Publication Date Title
CN104850327B (en) The screenshot method and device of mobile terminal, electronic equipment
CN104836889B (en) Mobile terminal and its control method
CN105100829B (en) Video content intercept method and device
CN107357505A (en) The method, apparatus and computer-readable recording medium of screenshot capture
CN106126014A (en) The generation method and device of interactive interface
CN106375479B (en) Data sharing method and device
CN105974804A (en) Method and device for controlling equipment
CN105357466A (en) Video communication method and video communication device
CN105204846A (en) Method for displaying video picture in multi-user video, device and terminal equipment
KR20170129592A (en) Video processing method and device
CN104898505A (en) Smart scene configuration method and device
CN104461304A (en) Application control method and device
CN105278841B (en) Control method and device for terminal device
CN104216525B (en) Method and device for mode control of camera application
CN104049864B (en) object control method and device
CN104199598A (en) Menu display method and device
CN107390977A (en) Button operation method, apparatus and storage medium
CN104461283A (en) Network view screen shooting method and device and electronic device
CN105224171A (en) icon display method, device and terminal
CN105487798B (en) The method and device that messaging application is operated on touch screen terminal
CN104298424A (en) File operation method and device
CN106201275A (en) Snapshot is as processing method and processing device
CN105183294A (en) Terminal display method and device
CN104636170A (en) Application acquiring method and device and electronic device
CN107885418A (en) Terminal, multi-screen display method and device

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
GR01 Patent grant
GR01 Patent grant