CN109375857A - Screenshot method, device, mobile terminal and readable storage medium storing program for executing - Google Patents

Screenshot method, device, mobile terminal and readable storage medium storing program for executing Download PDF

Info

Publication number
CN109375857A
CN109375857A CN201811279223.0A CN201811279223A CN109375857A CN 109375857 A CN109375857 A CN 109375857A CN 201811279223 A CN201811279223 A CN 201811279223A CN 109375857 A CN109375857 A CN 109375857A
Authority
CN
China
Prior art keywords
screenshot
screen
sprite
touch track
screen touch
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201811279223.0A
Other languages
Chinese (zh)
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.)
Nubia Technology Co Ltd
Original Assignee
Nubia Technology Co 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 Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201811279223.0A priority Critical patent/CN109375857A/en
Publication of CN109375857A publication Critical patent/CN109375857A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04845Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range for image manipulation, e.g. dragging, rotation, expansion or change of colour
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention discloses a kind of screenshot method, device, mobile terminal and readable storage medium storing program for executing, this method comprises: intercepting active screen when detecting screenshot instruction and starting picture editor's program;Based on picture editor's program, the screen touch track of the active screen of interception is obtained;Judge whether the screen touch track may be constructed closed pattern;If the screen touch track may be constructed closed pattern, subregion is carried out to the active screen according to the screen touch track, to obtain screenshot sprite;Screenshot sprite selection instruction is received, and the screenshot sprite selected is saved as by screenshot capture according to the screenshot sprite selection instruction.The present invention realizes user to the customized of screenshot capture pattern.

Description

Screenshot method, device, mobile terminal and readable storage medium storing program for executing
Technical field
The present invention relates to technical field of image processing more particularly to a kind of screenshot method, device, mobile terminals and can Read storage medium.
Background technique
With the development of science and technology, user is more and more by the occasion that various application software interact, user can lead to Various interactive channel sharing informations, release information etc. are crossed, when user sees a relatively good article or picture, Ke Yitong It crosses screenshot and sends active screen to realize.
But existing three kinds of screenshot modes are " power key+subtract key ", gesture screenshot and status bar drop-down are clicked and cut Figure, once implementing shot operation is exactly that the content whole screenshot of entire screen gets off, user carries out certainly almost without to screenshot The space for defining pattern causes user usually to need to carry out twice-screenshot to picture in this way.
Summary of the invention
The main purpose of the present invention is to provide a kind of screenshot method, device, mobile terminal and readable storage medium storing program for executing, Aim to solve the problem that conventional screenshot can not customized pattern the technical issues of.
To achieve the above object, the embodiment of the present invention provides a kind of screenshot method, and the screenshot method includes:
When detecting screenshot instruction, intercepts active screen and start picture editor's program;
Based on picture editor's program, the screen touch track of the active screen of interception is obtained;
Judge whether the screen touch track may be constructed closed pattern;
If the screen touch track may be constructed closed pattern, according to the screen touch track to the current screen Curtain picture carries out subregion, to obtain screenshot sprite;
Screenshot sprite selection instruction is received, and is drawn screenshot selected according to the screenshot sprite selection instruction Face saves as screenshot capture.
Optionally, described to judge that the step of whether the screen touch track may be constructed closed pattern includes:
If the screen touch track may be constructed closed curve, determine that the screen touch track may be constructed closure Pattern;
If the screen touch track cannot constitute closed curve, determine that the screen touch track cannot constitute closure Pattern.
Optionally, described to judge that the step of whether the screen touch track may be constructed closed pattern includes:
Obtain the boundary of the active screen of interception;
If the screen touch track can with the boundary of the active screen formed closed curve, determine described in Screen touch track may be constructed closed pattern;
If the screen touch track can not form closed curve with the boundary of the active screen, institute is determined Closed pattern cannot be constituted by stating screen touch track.
Optionally, the reception screenshot sprite selection instruction, and will be chosen according to the screenshot sprite selection instruction The step of screenshot sprite selected saves as screenshot capture include:
Screenshot sprite selection instruction is received, is drawn according to screenshot that screenshot sprite selection instruction interception is selected Face;
Obtain the white space between the screenshot sprite selected and the boundary of active screen;
Pre-set color is filled in the white space, by filled white space and the screenshot sprite selected Merging saves as screenshot capture.
Optionally, the reception screenshot sprite selection instruction intercepts selected according to the screenshot sprite selection instruction After the step of screenshot sprite selected further include:
Sprite adjustment instruction is received, according to the sprite adjustment instruction to the big of the screenshot sprite selected Small and/or position is adjusted.
Optionally, it is described judge the step of whether the screen touch track may be constructed closed pattern after further include:
If the screen touch track cannot constitute closed pattern, output screen touch track need to constitute closed pattern Can screenshot prompt information.
Optionally, described when detecting screenshot instruction, it intercepts active screen and starts the step of picture editor's program After rapid further include:
Based on picture editor's program, the preservation instruction for saving the active screen is received, according to the preservation Instruction stores the active screen, alternatively, receiving the cancellation instruction for cancelling the active screen, is taken according to described Picture editor's program is closed in the instruction that disappears.
The present invention also provides a kind of screenshot capture device, the screenshot capture device includes:
Starting module intercepts active screen and starts picture editor's program when detecting screenshot instruction;
Module is obtained, picture editor's program is based on, obtains the screen touch rail of the active screen of interception Mark;
Judgment module, judges whether the screen touch track may be constructed closed pattern;
Division module, if the screen touch track may be constructed closed pattern, according to the screen touch track pair The active screen carries out subregion, to obtain screenshot sprite;
Screen capture module receives screenshot sprite selection instruction, and will be selected according to the screenshot sprite selection instruction Screenshot sprite save as screenshot capture.
The present invention also provides a kind of mobile terminal, the mobile terminal includes: memory, processor and is stored in described deposit On reservoir and the screenshot capture program that can run on the processor, when the screenshot capture program is executed by the processor It realizes such as the step of above-mentioned screenshot method.
The present invention also provides a kind of readable storage medium storing program for executing, screenshot capture program, institute are stored on the readable storage medium storing program for executing It states and realizes when screenshot capture program is executed by processor such as the step of above-mentioned screenshot method.
The present invention is by intercepting active screen and starting picture editor's program when detecting screenshot instruction;It is based on Picture editor's program obtains the screen touch track of the active screen of interception;Judge the screen touch rail Whether mark may be constructed closed pattern;If the screen touch track may be constructed closed pattern, according to the screen touch Track carries out subregion to the active screen, to obtain screenshot sprite;Reception screenshot sprite selection instruction, and according to The screenshot sprite selected is saved as screenshot capture by the screenshot sprite selection instruction.The present invention realizes user automatically To the customized of screenshot capture pattern.
Detailed description of the invention
Fig. 1 is the hardware structural diagram of the embodiment of the present invention one optional mobile terminal;
Fig. 2 is the wireless communication device schematic diagram of mobile terminal in Fig. 1;
Fig. 3 is the flow diagram of screenshot method first embodiment of the present invention;
Fig. 4 is one schematic diagram of a scenario of picture editor's program pattern of the present invention;
Fig. 5 is a schematic diagram of a scenario of prompt information pattern of the present invention.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
In subsequent description, it is only using the suffix for indicating such as " module ", " component " or " unit " of element Be conducive to explanation of the invention, itself there is no a specific meaning.Therefore, " module ", " component " or " unit " can mix Ground uses.
Terminal can be implemented in a variety of manners.For example, terminal described in the present invention may include such as mobile phone, plate Computer, laptop, palm PC, personal digital assistant (Personal Digital Assistant, PDA), portable Media player (Portable Media Player, PMP), navigation device, wearable device, Intelligent bracelet, pedometer etc. move The fixed terminals such as dynamic terminal, and number TV, desktop computer.
It will be illustrated by taking mobile terminal as an example in subsequent descriptions, it will be appreciated by those skilled in the art that in addition to special Except element for moving purpose, the construction of embodiment according to the present invention can also apply to the terminal of fixed type.
Referring to Fig. 1, a kind of hardware structural diagram of its mobile terminal of each embodiment to realize the present invention, the shifting Dynamic terminal 100 may include: RF (Radio Frequency, radio frequency) unit 101, WiFi module 102, audio output unit 103, A/V (audio/video) input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, the components such as memory 109, processor 110 and power supply 111.It will be understood by those skilled in the art that shown in Fig. 1 Mobile terminal structure does not constitute the restriction to mobile terminal, and mobile terminal may include components more more or fewer than diagram, Perhaps certain components or different component layouts are combined.
It is specifically introduced below with reference to all parts of the Fig. 1 to mobile terminal:
Radio frequency unit 101 can be used for receiving and sending messages or communication process in, signal sends and receivees, specifically, by base station Downlink information receive after, to processor 110 handle;In addition, the data of uplink are sent to base station.In general, radio frequency unit 101 Including but not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier, duplexer etc..In addition, penetrating Frequency unit 101 can also be communicated with network and other equipment by wireless communication.Any communication can be used in above-mentioned wireless communication Standard or agreement, including but not limited to GSM (Global System of Mobile communication, global system for mobile telecommunications System), GPRS (General Packet Radio Service, general packet radio service), CDMA2000 (Code Division Multiple Access 2000, CDMA 2000), WCDMA (Wideband Code Division Multiple Access, wideband code division multiple access), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access, TD SDMA), FDD-LTE (Frequency Division Duplexing-Long Term Evolution, frequency division duplex long term evolution) and TDD-LTE (Time Division Duplexing-Long Term Evolution, time division duplex long term evolution) etc..
WiFi belongs to short range wireless transmission technology, and mobile terminal can help user to receive and dispatch electricity by WiFi module 102 Sub- mail, browsing webpage and access streaming video etc., it provides wireless broadband internet access for user.Although Fig. 1 shows Go out WiFi module 102, but it is understood that, and it is not belonging to must be configured into for mobile terminal, it completely can be according to need It to omit within the scope of not changing the essence of the invention.
Audio output unit 103 can be in call signal reception pattern, call mode, record mould in mobile terminal 100 When under the isotypes such as formula, speech recognition mode, broadcast reception mode, by radio frequency unit 101 or WiFi module 102 it is received or The audio data stored in memory 109 is converted into audio signal and exports to be sound.Moreover, audio output unit 103 Audio output relevant to the specific function that mobile terminal 100 executes can also be provided (for example, call signal receives sound, disappears Breath receives sound etc.).Audio output unit 103 may include loudspeaker, buzzer etc..
A/V input unit 104 is for receiving audio or video signal.A/V input unit 104 may include graphics processor (Graphics Processing Unit, GPU) 1041 and microphone 1042, graphics processor 1041 is in video acquisition mode Or the image data of the static images or video obtained in image capture mode by image capture apparatus (such as camera) carries out Reason.Treated, and picture frame may be displayed on display unit 106.Through graphics processor 1041, treated that picture frame can be deposited Storage is sent in memory 109 (or other storage mediums) or via radio frequency unit 101 or WiFi module 102.Mike Wind 1042 can connect in telephone calling model, logging mode, speech recognition mode etc. operational mode via microphone 1042 Quiet down sound (audio data), and can be audio data by such acoustic processing.Audio that treated (voice) data can To be converted to the format output that can be sent to mobile communication base station via radio frequency unit 101 in the case where telephone calling model. Microphone 1042 can be implemented various types of noises elimination (or inhibition) algorithms and send and receive sound to eliminate (or inhibition) The noise generated during frequency signal or interference.
Mobile terminal 100 further includes at least one sensor 105, such as optical sensor, motion sensor and other biographies Sensor.Specifically, optical sensor includes ambient light sensor and proximity sensor, wherein ambient light sensor can be according to environment The light and shade of light adjusts the brightness of display panel 1061, and proximity sensor can close when mobile terminal 100 is moved in one's ear Display panel 1061 and/or backlight.As a kind of motion sensor, accelerometer sensor can detect in all directions (general For three axis) size of acceleration, it can detect that size and the direction of gravity when static, can be used to identify the application of mobile phone posture (such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, percussion) etc.; The fingerprint sensor that can also configure as mobile phone, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer, The other sensors such as hygrometer, thermometer, infrared sensor, details are not described herein.
Display unit 106 is for showing information input by user or being supplied to the information of user.Display unit 106 can wrap Display panel 1061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode can be used Forms such as (Organic Light-Emitting Diode, OLED) configure display panel 1061.
User input unit 107 can be used for receiving the number or character information of input, and generate the use with mobile terminal Family setting and the related key signals input of function control.Specifically, user input unit 107 may include touch panel 1071 with And other input equipments 1072.Touch panel 1071, also referred to as touch screen collect the touch operation of user on it or nearby (for example user uses any suitable objects or attachment such as finger, stylus on touch panel 1071 or in touch panel 1071 Neighbouring operation), and corresponding attachment device is driven according to preset formula.Touch panel 1071 may include touch detection Two parts of device and touch controller.Wherein, the touch orientation of touch detecting apparatus detection user, and detect touch operation band The signal come, transmits a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and by it It is converted into contact coordinate, then gives processor 110, and order that processor 110 is sent can be received and executed.In addition, can To realize touch panel 1071 using multiple types such as resistance-type, condenser type, infrared ray and surface acoustic waves.In addition to touch panel 1071, user input unit 107 can also include other input equipments 1072.Specifically, other input equipments 1072 can wrap It includes but is not limited in physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse, operating stick etc. It is one or more, specifically herein without limitation.
Further, touch panel 1071 can cover display panel 1061, when touch panel 1071 detect on it or After neighbouring touch operation, processor 110 is sent to determine the type of touch event, is followed by subsequent processing device 110 according to touch thing The type of part provides corresponding visual output on display panel 1061.Although in Fig. 1, touch panel 1071 and display panel 1061 be the function that outputs and inputs of realizing mobile terminal as two independent components, but in certain embodiments, it can The function that outputs and inputs of mobile terminal is realized so that touch panel 1071 and display panel 1061 is integrated, is not done herein specifically It limits.
Interface unit 108 be used as at least one external device (ED) connect with mobile terminal 100 can by interface.For example, External device (ED) may include wired or wireless headphone port, external power supply (or battery charger) port, wired or nothing Line data port, memory card port, the port for connecting the device with identification module, audio input/output (I/O) end Mouth, video i/o port, ear port etc..Interface unit 108 can be used for receiving the input from external device (ED) (for example, number It is believed that breath, electric power etc.) and the input received is transferred to one or more elements in mobile terminal 100 or can be with For transmitting data between mobile terminal 100 and external device (ED).
Memory 109 can be used for storing software program and various data, and memory 109 can be situated between for a kind of storage of computer Matter, the memory 109 are stored with screenshot capture program of the present invention.Memory 109 can mainly include storing program area and storage number According to area, wherein storing program area can application program needed for storage program area, at least one function (for example sound plays function Energy, image player function etc.) etc.;Storage data area can store according to mobile phone use created data (such as audio data, Phone directory etc.) etc..In addition, memory 109 may include high-speed random access memory, it can also include non-volatile memories Device, for example, at least a disk memory, flush memory device or other volatile solid-state parts.
Processor 110 is the control centre of mobile terminal, utilizes each of various interfaces and the entire mobile terminal of connection A part by running or execute the software program and/or module that are stored in memory 109, and calls and is stored in storage Data in device 109 execute the various functions and processing data of mobile terminal, to carry out integral monitoring to mobile terminal.Such as Processor 110 executes the prompting message program in memory 109, to realize the step of each embodiment of message prompt method of the present invention Suddenly.
Processor 110 may include one or more processing units;Optionally, processor 110 can integrate application processor and Modem processor, wherein the main processing operation system of application processor, user interface and application program etc., modulation /demodulation Processor mainly handles wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 110 In.
Mobile terminal 100 can also include the power supply 111 (such as battery) powered to all parts, optionally, power supply 111 Can be logically contiguous by power-supply management system and processor 110, to realize management charging by power-supply management system, put The functions such as electricity and power managed.
Although Fig. 1 is not shown, mobile terminal 100 can also be including bluetooth module etc., and details are not described herein.
Embodiment to facilitate the understanding of the present invention, the communications network system that mobile terminal of the invention is based below into Row description.
Referring to Fig. 2, Fig. 2 is a kind of communications network system architecture diagram provided in an embodiment of the present invention, the communication network system System is the LTE system of universal mobile communications technology, which includes UE (User Equipment, the use of successively communication connection Family equipment) (the land Evolved UMTS Terrestrial Radio Access Network, evolved UMTS 201, E-UTRAN Ground wireless access network) 202, EPC (Evolved Packet Core, evolved packet-based core networks) 203 and operator IP operation 204。
Specifically, UE201 can be above-mentioned terminal 100, and details are not described herein again.
E-UTRAN202 includes eNodeB2021 and other eNodeB2022 etc..Wherein, eNodeB2021 can be by returning Journey (backhaul) (such as X2 interface) is connect with other eNodeB2022, and eNodeB2021 is connected to EPC203, ENodeB2021 can provide the access of UE201 to EPC203.
EPC203 may include MME (Mobility Management Entity, mobility management entity) 2031, HSS (Home Subscriber Server, home subscriber server) 2032, other MME2033, SGW (Serving Gate Way, Gateway) 2034, PGW (PDN Gate Way, grouped data network gateway) 2035 and PCRF (Policy and Charging Rules Function, policy and rate functional entity) 2036 etc..Wherein, MME2031 be processing UE201 and The control node of signaling, provides carrying and connection management between EPC203.HSS2032 is all to manage for providing some registers Such as the function of home location register (not shown) etc, and preserves some related service features, data rates etc. and use The dedicated information in family.All customer data can be sent by SGW2034, and PGW2035 can provide the IP of UE 201 Address distribution and other functions, PCRF2036 are strategy and the charging control strategic decision-making of business data flow and IP bearing resource Point, it selects and provides available strategy and charging control decision with charge execution function unit (not shown) for strategy.
IP operation 204 may include internet, Intranet, IMS (IP Multimedia Subsystem, IP multimedia System) or other IP operations etc..
Although above-mentioned be described by taking LTE system as an example, those skilled in the art should know the present invention is not only Suitable for LTE system, be readily applicable to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA with And the following new network system etc., herein without limitation.
Based on above-mentioned mobile terminal hardware configuration and communications network system, each embodiment of the method for the present invention is proposed.
It is the flow diagram of screenshot method first embodiment of the present invention referring to Fig. 3, Fig. 3.
As shown in figure 3, first embodiment of the invention provides a kind of screenshot method, the screenshot method include with Lower step:
Step S1 intercepts active screen and starts picture editor's program when detecting screenshot instruction;
In the present embodiment, when user needs screen printing content, can by press corresponding physical button screenshot, The screenshots modes such as screenshot, which are clicked, by preset touch gestures screenshot or status bar drop-down issues screenshot instruction, subsequent terminal root The full content of active screen is intercepted on corresponding screen according to screenshot instruction, but is not immediately protected active screen It deposits, but picture editor's program is started based on the active screen.
Specifically, referring to Fig. 4, in picture editor's program interface, user can execute three kinds of operations, and a kind of operation is straight Contact hits the " Cancel " button, then the active screen being intercepted does not save, and exits this picture editor's program interface, another Kind operation is to click " preservation " button, then the whole Zhang Baocun of the active screen that will be truncated is that user can there are also a kind of operation To be intercepted on active screen by touching screen come selected section content.
Step S2 is based on picture editor's program, obtains the screen touch track of the active screen of interception;
When user's selection is intercepted on active screen by touching screen come selected section content, terminal is logical Touch induction device is crossed to obtain the motion track that user touches screen.The motion track that user touches screen is obtained about terminal Realization, can based on any one touch sensible technology realize, this is not limited by the present invention.
Step S3, judges whether the screen touch track may be constructed closed pattern;
In the present embodiment, gesture identification is carried out by touching the track of screen to user, judges user at the terminal Whether screen touch track may be constructed closed pattern, and there are two types of schemes.
One is closed curve whether can be formed according to the screen touch track itself, for example, heart, circle, semicircle, Triangle or other are irregular close-shaped etc., if screen touch track itself can form closed curve, determines it It may be constructed closed pattern, otherwise, it is determined that it cannot constitute closed pattern.
It is basis that another kind, which judges whether the screen touch track of user at the terminal may be constructed the scheme of closed pattern, The screen touch track whether can with the boundary line of active screen formed closed curve, such as heart, circle, semicircle, Triangle or other are irregular close-shaped etc., if screen touch track can be formed with the boundary line of active screen Closed curve then determines that it may be constructed closed pattern, otherwise, it is determined that it cannot constitute closed pattern.
Both the above judges whether the screen touch track of user at the terminal may be constructed the scheme of closed pattern can be with Individually implement, implementation can also be combined, as long as that is, screen touch track meets screen touch track itself and can be formed Closed curve, alternatively, screen touch track can form a condition in closed curve with the boundary line of active screen, Determine that screen touch track may be constructed closed pattern.
Step S4, if the screen touch track may be constructed closed pattern, according to the screen touch track to institute It states active screen and carries out subregion, to obtain screenshot sprite;
If it is determined that screen touch track may be constructed closed pattern, then according to screen touch track to active screen into Row subregion, to obtain multiple screenshot sprites.Each screenshot screenshot sprite at least a line is by screen touch track At least one lines composition, and the display content that each screenshot sprite includes is continuous and not identical.
Step S5 receives screenshot sprite selection instruction, and will be selected according to the screenshot sprite selection instruction Screenshot sprite saves as screenshot capture.
After getting multiple screenshot sprites, user can select one or more of which screenshot to draw as needed Face is saved.After receiving the screenshot sprite selection instruction of user, terminal will according to the screenshot sprite selection instruction The screenshot sprite selected saves as screenshot capture.
In the present embodiment, by starting picture editor's program, the screen touch track of user is obtained, it can be by user not The content needed is cut out, and realizes user to the customized of screenshot capture pattern.
Further, it is based on above-mentioned first embodiment shown in Fig. 3, proposes that screenshot method second of the present invention is implemented Example, above-mentioned steps S3 include:
Step S31 determines that the screen touch track can be with if the screen touch track may be constructed closed curve Constitute closed pattern;
Step S32 determines that the screen touch track cannot if the screen touch track cannot constitute closed curve Constitute closed pattern.
In the present embodiment, gesture identification is carried out by touching the track of screen to user, judges user at the terminal Whether screen touch track may be constructed closed pattern, and there are two types of schemes.
One is closed curve whether can be formed according to the screen touch track itself, for example, heart, circle, semicircle, Triangle or other are irregular close-shaped etc., if screen touch track itself can form closed curve, determines it It may be constructed closed pattern, otherwise, it is determined that it cannot constitute closed pattern.
In the present embodiment, whether closed curve can be formed according to screen touch track itself, that is, can determine whether that screen touches Touch whether track may be constructed closed pattern.
Further, it is based on above-mentioned first embodiment shown in Fig. 3, proposes that screenshot method third of the present invention is implemented Example, above-mentioned steps S3 include:
Step S33 obtains the boundary of the active screen of interception;
Step S34, if the screen touch track can form closed curve with the boundary of the active screen, Determine that the screen touch track may be constructed closed pattern;
Step S35, if the screen touch track can not form closed curve with the boundary of the active screen, Then determine that the screen touch track cannot constitute closed pattern.
In the present embodiment, it gives and another judge whether the screen touch track of user at the terminal may be constructed and close Close the scheme of pattern.In the program, the boundary line of active screen, the i.e. size of active user's screen, then root are obtained first Whether closed curve can be formed with the boundary line of active screen according to the screen touch track, if screen touch track can Closed curve is formed with the boundary line of active screen, then determines that it may be constructed closed pattern, otherwise, it is determined that it cannot Constitute closed pattern.For example, laterally draw four perhaps it is longitudinal draw four each pens all across or it is vertical across screen edge, will work as Forth screen picture is divided into four parts, and screen touch track itself cannot form closed curve at this time, but screen touch track Closed curve can be formed with the boundary line of active screen, then determine that it may be constructed closed pattern.
In the present embodiment, whether closure song can be formed with the boundary of active screen according to screen touch track Line, that is, can determine whether screen touch track may be constructed closed pattern.
Second embodiment and 3rd embodiment both judge whether the screen touch track of user at the terminal can be with structure It can individually implement at the embodiment of closed pattern, implementation can also be combined, as long as that is, screen touch track meets screen Curtain touch track itself can form closed curve, alternatively, screen touch track can be linear with the boundary of active screen At a condition in closed curve, i.e. judgement screen touch track may be constructed closed pattern.Second embodiment and third are real Applying example and combining the scheme of implementation makes to judge that the step of whether screen touch track may be constructed closed pattern becomes more Intelligence is more bonded the demand of user.
Further, it is based on above-mentioned first embodiment shown in Fig. 3, proposes that screenshot method the 4th of the present invention is implemented Example, above-mentioned steps S5 include:
Step S51 receives screenshot sprite selection instruction, is selected according to screenshot sprite selection instruction interception Screenshot sprite;
If it is determined that screen touch track may be constructed closed pattern, then according to screen touch track to active screen into Row subregion, after getting multiple screenshot sprites, terminal receives the screenshot sprite selection instruction of user, the screenshot sprite Selection instruction refers to that user can select one or more of which screenshot sprite to save as needed.Receiving use After the screenshot sprite selection instruction at family, terminal intercepts out quilt according to the screenshot sprite selection instruction from active screen The screenshot sprite of selection.
Step S52 obtains the white space between the screenshot sprite selected and the boundary of active screen;
After intercepting out the screenshot sprite that is selected in active screen, obtain the screenshot sprite that is selected with Outer white space, the regional scope are limited within the scope of screen size.
Step S53 fills pre-set color in the white space, by filled white space and section selected The merging of figure sprite saves as screenshot capture.
After getting the white space other than the screenshot sprite for obtaining and being selected, color is carried out to the white space and is filled out It fills, the color of filling can be set by the user himself, and the transparency of color also can be customized by users, the sky for later completing filling White region merges with the screenshot sprite selected saves as screenshot capture.
Further, after above-mentioned steps S51 further include:
Step S511 receives sprite adjustment instruction, according to the sprite adjustment instruction to the screenshot selected The size of sprite and/or position are adjusted.
After intercepting out the screenshot sprite that is selected in active screen, user may be to current screenshot sprite Shape or position it is dissatisfied, secondary adjustment can be carried out to current screenshot sprite at this time.Terminal receives user and cuts to current The sprite adjustment instruction that the size of figure sprite and/or position are adjusted, then according to the sprite adjustment instruction to working as The size of preceding screenshot sprite and/or position are adjusted.For example, if user is dissatisfied to the shape of current screenshot sprite, User can be by pulling the edge of current screenshot sprite to be adjusted, until satisfied.
Further, after above-mentioned steps S1 further include:
Step S11 is based on picture editor's program, receives the preservation instruction for saving the active screen, according to The preservation instruction stores the active screen, alternatively, receiving the cancellation instruction for cancelling the active screen, root Picture editor's program is closed according to cancellation instruction.
In the present embodiment, when user needs screen printing content, can by press corresponding physical button screenshot, The screenshots modes such as screenshot, which are clicked, by preset touch gestures screenshot or status bar drop-down issues screenshot instruction, subsequent terminal root The full content of active screen is intercepted on corresponding screen according to screenshot instruction, but is not immediately protected active screen It deposits, but picture editor's program is started based on the active screen.
Specifically, in picture editor's program interface, user can execute three kinds of operations, and a kind of operation is to click directly on The " Cancel " button, the then active screen being intercepted do not save, and exit this picture editor's program interface, another kind operation It is to click " preservation " button, then the whole Zhang Baocun of the active screen that will be truncated is that user can work as there are also a kind of operation It is intercepted on forth screen picture by touching screen come selected section content.
Further, after above-mentioned steps S3 further include:
Step S301, if the screen touch track cannot constitute closed pattern, output screen touch track needs to constitute Closed pattern just can screenshot prompt information.
If screen touch track itself cannot form closed curve, it can not be formed and be closed with the boundary line of active screen Curve is closed, then determines that screen touch track cannot constitute closed pattern, and output screen touch track need to constitute closed pattern Can screenshot prompt information, to prompt user to make correct screen touch track.
Referring to Fig. 5, terminal screen display reminding information P1, the display reminding information text in prompt information P1, such as mention Show that information text P2 can be " screen touch track need to constitute closed pattern just can screenshot ", can show and reform on prompt information P1 Control P3 can customized screen touch track again after control P3 is reformed in user or test research staff's triggering.
The screenshot method proposed through this embodiment is realized to the customized fill color of screenshot sprite and big Small, position secondary adjustment has achieved the effect that the personalization and hommization of user's screenshot.
The technical solution proposed through the embodiment of the present invention, solve the prior art three kinds of screenshot modes be " power key+ Subtract key ", gesture screenshot and status bar drop-down click screenshot, once implementing shot operation is exactly that the content of entire screen is whole Screenshot gets off, user almost without the space for carrying out customized pattern to screenshot, cause in this way user usually need to picture into Row twice-screenshot.
In addition, the embodiment of the present invention also proposes that a kind of screenshot capture device, screenshot capture device include:
Starting module intercepts active screen and starts picture editor's program when detecting screenshot instruction;
Module is obtained, picture editor's program is based on, obtains the screen touch rail of the active screen of interception Mark;
Judgment module, judges whether the screen touch track may be constructed closed pattern;
Division module, if the screen touch track may be constructed closed pattern, according to the screen touch track pair The active screen carries out subregion, to obtain screenshot sprite;
Screen capture module receives screenshot sprite selection instruction, and will be selected according to the screenshot sprite selection instruction Screenshot sprite save as screenshot capture.
Optionally, judgment module is used for:
If the screen touch track may be constructed closed curve, determine that the screen touch track may be constructed closure Pattern;
If the screen touch track cannot constitute closed curve, determine that the screen touch track cannot constitute closure Pattern.
Optionally, judgment module is used for:
Obtain the boundary of the active screen of interception;
If the screen touch track can with the boundary of the active screen formed closed curve, determine described in Screen touch track may be constructed closed pattern;
If the screen touch track can not form closed curve with the boundary of the active screen, institute is determined Closed pattern cannot be constituted by stating screen touch track.
Optionally, screen capture module is used for:
Screenshot sprite selection instruction is received, is drawn according to screenshot that screenshot sprite selection instruction interception is selected Face;
Obtain the white space between the screenshot sprite selected and the boundary of active screen;
Pre-set color is filled in the white space, by filled white space and the screenshot sprite selected Merging saves as screenshot capture.
Optionally, screenshot capture device further includes adjustment module, and adjustment module is used for:
Sprite adjustment instruction is received, according to the sprite adjustment instruction to the big of the screenshot sprite selected Small and/or position is adjusted.
Optionally, screenshot capture device further includes cue module, and cue module is used for:
If the screen touch track cannot constitute closed pattern, output screen touch track need to constitute closed pattern Can screenshot prompt information.
Optionally, screenshot capture device further includes memory module, and memory module is used for:
Based on picture editor's program, the preservation instruction for saving the active screen is received, according to the preservation Instruction stores the active screen, alternatively, receiving the cancellation instruction for cancelling the active screen, is taken according to described Picture editor's program is closed in the instruction that disappears.
In addition, the embodiment of the present invention also proposes that a kind of mobile terminal, mobile terminal include: memory 109, processor 110 And it is stored in the prompting message program that can be run on memory 109 and on processor 110, prompting message program is by processor 110 the step of each embodiment of above-mentioned screenshot method is realized when executing.
In addition, the present invention also provides a kind of computer readable storage medium, the computer-readable recording medium storage Having one, perhaps more than one program the one or more programs can also be by one or more than one processor The step of executing with embodiment each for realizing above-mentioned screenshot method.
The specific embodiment of mobile terminal and readable storage medium storing program for executing (i.e. computer readable storage medium) of the present invention is opened up It opens up content and each embodiment of above-mentioned screenshot method is essentially identical, this will not be repeated here.
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row His property includes, so that the process, method, article or the device that include a series of elements not only include those elements, and And further include other elements that are not explicitly listed, or further include for this process, method, article or device institute it is intrinsic Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do There is also other identical elements in the process, method of element, article or device.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art The part contributed out can be embodied in the form of software products, which is stored in a storage medium In (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal (can be mobile phone, computer, service Device, air conditioner or network equipment etc.) execute method described in each embodiment of the present invention.
The embodiment of the present invention is described with above attached drawing, but the invention is not limited to above-mentioned specific Embodiment, the above mentioned embodiment is only schematical, rather than restrictive, those skilled in the art Under the inspiration of the present invention, without breaking away from the scope protected by the purposes and claims of the present invention, it can also make very much Form, all of these belong to the protection of the present invention.

Claims (10)

1. a kind of screenshot method, which is characterized in that the screenshot method includes:
When detecting screenshot instruction, intercepts active screen and start picture editor's program;
Based on picture editor's program, the screen touch track of the active screen of interception is obtained;
Judge whether the screen touch track may be constructed closed pattern;
If the screen touch track may be constructed closed pattern, the current screen is drawn according to the screen touch track Face carries out subregion, to obtain screenshot sprite;
Screenshot sprite selection instruction is received, and is protected the screenshot sprite selected according to the screenshot sprite selection instruction Save as screenshot capture.
2. screenshot method as described in claim 1, which is characterized in that described to judge that the screen touch track whether Include: with the step of constituting closed pattern
If the screen touch track may be constructed closed curve, determine that the screen touch track may be constructed closure figure Case;
If the screen touch track cannot constitute closed curve, determine that the screen touch track cannot constitute closure figure Case.
3. screenshot method as described in claim 1, which is characterized in that described to judge that the screen touch track whether Include: with the step of constituting closed pattern
Obtain the boundary of the active screen of interception;
If the screen touch track can form closed curve with the boundary of the active screen, the screen is determined Touch track may be constructed closed pattern;
If the screen touch track can not form closed curve with the boundary of the active screen, the screen is determined Curtain touch track cannot constitute closed pattern.
4. screenshot method as described in claim 1, which is characterized in that the reception screenshot sprite selection instruction, and The step of screenshot sprite selected is saved as screenshot capture according to the screenshot sprite selection instruction include:
Screenshot sprite selection instruction is received, the screenshot sprite selected is intercepted according to the screenshot sprite selection instruction;
Obtain the white space between the screenshot sprite selected and the boundary of active screen;
Pre-set color is filled in the white space, filled white space is merged with the screenshot sprite selected Save as screenshot capture.
5. screenshot method as claimed in claim 4, which is characterized in that the reception screenshot sprite selection instruction, root After the step of intercepting the screenshot sprite selected according to the screenshot sprite selection instruction further include:
Sprite adjustment instruction is received, according to the sprite adjustment instruction to the size of the screenshot sprite selected And/or position is adjusted.
6. screenshot method as described in claim 1, which is characterized in that described to judge that the screen touch track whether After the step of constituting closed pattern further include:
If the screen touch track cannot constitute closed pattern, output screen touch track need to constitute closed pattern and can just cut The prompt information of figure.
7. screenshot method as described in claim 1, which is characterized in that described when detecting screenshot instruction, interception is worked as Forth screen picture and the step of start picture editor's program after further include:
Based on picture editor's program, the preservation instruction for saving the active screen is received, is instructed according to the preservation The active screen is stored, alternatively, receiving the cancellation instruction for cancelling the active screen, is referred to according to the cancellation It enables and closes picture editor's program.
8. a kind of screenshot capture device, which is characterized in that the screenshot capture device includes:
Starting module intercepts active screen and starts picture editor's program when detecting screenshot instruction;
Module is obtained, picture editor's program is based on, obtains the screen touch track of the active screen of interception;
Judgment module, judges whether the screen touch track may be constructed closed pattern;
Division module, if the screen touch track may be constructed closed pattern, according to the screen touch track to described Active screen carries out subregion, to obtain screenshot sprite;
Screen capture module receives screenshot sprite selection instruction, and is cut according to the screenshot sprite selection instruction by what is selected Figure sprite saves as screenshot capture.
9. a kind of mobile terminal, which is characterized in that the mobile terminal includes: memory, processor and is stored in the storage It is real when the screenshot capture program is executed by the processor on device and the screenshot capture program that can run on the processor Now the step of screenshot method as described in any one of claims 1 to 7.
10. a kind of readable storage medium storing program for executing, which is characterized in that screenshot capture program is stored on the readable storage medium storing program for executing, it is described The step of screenshot method as described in any one of claims 1 to 7 is realized when screenshot capture program is executed by processor.
CN201811279223.0A 2018-10-30 2018-10-30 Screenshot method, device, mobile terminal and readable storage medium storing program for executing Pending CN109375857A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811279223.0A CN109375857A (en) 2018-10-30 2018-10-30 Screenshot method, device, mobile terminal and readable storage medium storing program for executing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811279223.0A CN109375857A (en) 2018-10-30 2018-10-30 Screenshot method, device, mobile terminal and readable storage medium storing program for executing

Publications (1)

Publication Number Publication Date
CN109375857A true CN109375857A (en) 2019-02-22

Family

ID=65390792

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811279223.0A Pending CN109375857A (en) 2018-10-30 2018-10-30 Screenshot method, device, mobile terminal and readable storage medium storing program for executing

Country Status (1)

Country Link
CN (1) CN109375857A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111324261A (en) * 2020-01-20 2020-06-23 北京无限光场科技有限公司 Intercepting method and device of target object, electronic equipment and storage medium
CN112416228A (en) * 2020-11-20 2021-02-26 许述君 Method suitable for drawing multiple non-rectangular section screens
CN113805993A (en) * 2021-09-03 2021-12-17 四川新网银行股份有限公司 Method for quickly and continuously capturing pictures

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20120070666A (en) * 2010-12-22 2012-07-02 엘지전자 주식회사 Electronic device and control method for electronic device
CN106484264A (en) * 2016-10-12 2017-03-08 乐视控股(北京)有限公司 Screenshotss processing method and processing device
CN107678648A (en) * 2017-09-27 2018-02-09 北京小米移动软件有限公司 Screenshotss processing method and processing device
CN108037871A (en) * 2017-11-07 2018-05-15 维沃移动通信有限公司 Screenshotss method and mobile terminal
CN108196750A (en) * 2018-01-03 2018-06-22 努比亚技术有限公司 The method, apparatus and computer readable storage medium of screen interface sectional drawing

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20120070666A (en) * 2010-12-22 2012-07-02 엘지전자 주식회사 Electronic device and control method for electronic device
CN106484264A (en) * 2016-10-12 2017-03-08 乐视控股(北京)有限公司 Screenshotss processing method and processing device
CN107678648A (en) * 2017-09-27 2018-02-09 北京小米移动软件有限公司 Screenshotss processing method and processing device
CN108037871A (en) * 2017-11-07 2018-05-15 维沃移动通信有限公司 Screenshotss method and mobile terminal
CN108196750A (en) * 2018-01-03 2018-06-22 努比亚技术有限公司 The method, apparatus and computer readable storage medium of screen interface sectional drawing

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111324261A (en) * 2020-01-20 2020-06-23 北京无限光场科技有限公司 Intercepting method and device of target object, electronic equipment and storage medium
CN112416228A (en) * 2020-11-20 2021-02-26 许述君 Method suitable for drawing multiple non-rectangular section screens
CN113805993A (en) * 2021-09-03 2021-12-17 四川新网银行股份有限公司 Method for quickly and continuously capturing pictures
CN113805993B (en) * 2021-09-03 2023-06-06 四川新网银行股份有限公司 Method for rapidly and continuously capturing images

Similar Documents

Publication Publication Date Title
CN110377251A (en) A kind of screen refresh rate method of adjustment, terminal and computer readable storage medium
CN108037893A (en) A kind of display control method of flexible screen, device and computer-readable recording medium
CN107517494A (en) A kind of display methods of terminal battery electricity quantity, terminal and computer-readable recording medium
CN109614176A (en) A kind of application interface layout method, terminal and computer readable storage medium
CN110177177A (en) Message back method, mobile terminal and computer readable storage medium
CN109376669A (en) Control method, mobile terminal and the computer readable storage medium of intelligent assistant
CN108196750A (en) The method, apparatus and computer readable storage medium of screen interface sectional drawing
CN109040441A (en) Using display methods of attending to anything else, mobile terminal and computer readable storage medium
CN109068167A (en) Record screen exchange method, mobile terminal, wearable device and storage medium
CN107807767A (en) A kind of processing method of communication traffic, terminal and computer-readable recording medium
CN110134471A (en) A kind of screens switch animation control methods, terminal and computer readable storage medium
CN107657583A (en) A kind of screenshot method, terminal and computer-readable recording medium
CN109726179A (en) Screenshot picture processing method, storage medium and mobile terminal
CN109299039A (en) A kind of file management method, equipment and computer readable storage medium
CN108449513A (en) A kind of interaction regulation and control method, equipment and computer readable storage medium
CN108762631A (en) A kind of method for controlling mobile terminal, mobile terminal and computer readable storage medium
CN109889651A (en) A kind of notification message processing method, terminal and computer readable storage medium
CN109375857A (en) Screenshot method, device, mobile terminal and readable storage medium storing program for executing
CN109309753A (en) Picture sharing method, terminal and computer readable storage medium
CN108829302A (en) A kind of interaction regulation method, equipment and computer readable storage medium
CN109117105A (en) A kind of collaboration desktop interaction regulation method, equipment and computer readable storage medium
CN108680166A (en) Navigation information is compatible with display methods, terminal and computer readable storage medium
CN110347306A (en) A kind of multi-screen display method, terminal and computer readable storage medium
CN108958932A (en) A kind of control method of background application, terminal and computer readable storage medium
CN107390855A (en) Control method, mobile terminal and the storage medium of mobile terminal split screen regional luminance

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20190222

RJ01 Rejection of invention patent application after publication