Specific embodiment
To make the object, technical solutions and advantages of the present invention clearer, right below in conjunction with the accompanying drawings and the specific embodiments
The present invention is described in detail.
The present invention is complex for operation step for the problem that existing image-erasing, reduces the operation convenience of user, mentions
For a kind of image-erasing method and mobile terminal.
First embodiment
As shown in Figure 1, the image-erasing method of the embodiment of the present invention, is applied to a mobile terminal, comprising:
Step 11, when mobile terminal enters the browsing puncturing pattern of image, detection user grasps the sliding that image executes
Make;
It should be noted that the browsing puncturing pattern of the image is a kind of image procossing interface increased newly in the present embodiment,
Under the browsing puncturing pattern, user can carry out the browsing and deletion of image, which is commonly referred to as, slides up and down
Image or the image that horizontally slips.
Step 12, if the slide is the operation for deleting image, the corresponding image of the slide is deleted;
It should be noted that deleting the cunning of the slide corresponding glide direction and image browsing of image in the present embodiment
It is dynamic to operate corresponding glide direction difference.
The embodiment of the present invention is by under the browsing puncturing pattern of image, the slide that acquisition user executes image,
When slide is to delete the operation of image, execute the deletion movement of image, by will delete the slide of image with it is clear
The slide of image look at is distinguished with glide direction, realizes the quick deletion of image, and such image-erasing mode is reduced
User deletes the operating procedure of image, improves the operation convenience of user.
Second embodiment
As shown in Fig. 2, the image-erasing method of the embodiment of the present invention, is applied to a mobile terminal, comprising:
Step 21, whether detection user performs the operation into the browsing puncturing pattern of image;
It should be noted that wherein an image needs are deleted for confirmation when user's image browsing, then figure is clicked
Picture, just recalls the interface of operation image, which is into the channel of the browsing puncturing pattern of image.
Step 22, if detecting the operation, enter the browsing puncturing pattern of image.
In this step, when the user clicks when select button in interface, the browsing that mobile terminal then enters image deleted
Except mode, user can carry out the browsing and deletion of image under the browsing puncturing pattern.
Step 23, when mobile terminal enters the browsing puncturing pattern of image, detection user grasps the sliding that image executes
Make;
It should be noted that the browsing puncturing pattern of the image is a kind of image procossing interface increased newly in the present embodiment,
Under the browsing puncturing pattern, user can carry out the browsing and deletion of image, which is commonly referred to as, slides up and down
Image or the image that horizontally slips.
Step 24, if the slide is the operation for deleting image, the corresponding image of the slide is deleted;
It should be noted that deleting the cunning of the slide corresponding glide direction and image browsing of image in the present embodiment
It is dynamic to operate corresponding glide direction difference.
It should be noted that then carrying out the switching of image, such feelings when the slide is to switch the operation of image
The case where condition is with existing mobile terminal image browsing is similar, is no longer described in detail herein.
It should be noted that user can browse the side of the slide of the deletion image under puncturing pattern with self-defining
Formula, therefore, the image-erasing method of the present embodiment is after step 22, further includes:
Step 25, judge whether mobile terminal is to use the browsing puncturing pattern for the first time;
Step 26, it is used if first time, it is determined that delete the direction of the slide of image.
It should be noted that if user first is not then also recorded and is used in mobile terminal system using browsing puncturing pattern
The relevant slide for deleting image is accustomed at family, needs to remind user to carry out the setting of slide at this time, herein can be by
User voluntarily selects to input, and can also be decided in its sole discretion by system according to the mode of image browsing, a kind of optional reality of step 26
Existing mode are as follows:
Step 261, whether the glide direction for judging the slide of image browsing is first direction;
It should be noted that being by the image setting that horizontally slips usually in mobile terminal is to carry out cutting for image in browsing
It changes, therefore, in the present embodiment, which is the direction of image of horizontally slipping.
Step 262, if the glide direction of the slide of image browsing is first direction, it is determined that delete the sliding of image
The direction of operation is second direction;
Step 263, if the glide direction of the slide of image browsing is not first direction, it is determined that delete the cunning of image
The direction of dynamic operation is first direction.
Step 26 is accomplished that, when horizontally slipping as the slide of image browsing, it is determined that slides up and down as deletion figure
The slide of picture, when sliding up and down the slide for image browsing, it is determined that horizontally slip to delete the sliding of image behaviour
Make.
It should be noted that the case where user accidentally deletes image and can not restore in order to prevent, the embodiment of the present invention
Image-erasing method, further includes:
Step 27, the image of deletion is backed up;
It should be noted that backup herein can be regarded as caching the image of deletion, that is, performing image
Delete operation when, not instead of not at once by image-erasing, the image of deletion is first put into the place of a similar recycle bin, is used
Family will not show the image of deletion in image browsing under browsing puncturing pattern.
Step 28, when detecting that user executes the recovery operation of described image, to described image from the image of backup
Restored.
When the image that user need to undelete, it need to be introduced into recycle bin and find corresponding image, then by the figure
As being restored, again display of the image in the case where browsing puncturing pattern can be realized.
It should also be noted that, in order to avoid the memory space that excessive backup image occupies mobile terminal, the present invention is real
Apply the image-erasing method of example, further includes:
Step 29, whether detection mobile terminal has exited the browsing puncturing pattern of image;
Step 210, if detect that mobile terminal has exited the browsing puncturing pattern, the figure of backup is deleted
Picture.
In above-mentioned steps, when determining that mobile terminal has exited the browsing puncturing pattern of image, just deletes and deleted in browsing
Backup under mode to image has been deleted realizes the purpose of cleaning mobile terminal memory space with this.
The image-erasing method of the embodiment of the present invention is specifically described in practical applications below as follows.
As shown in figure 3, in specific implementation, the detailed process of the image-erasing method are as follows:
Step 301, detect user perform into image browsing puncturing pattern operation when, into the clear of image
Look at puncturing pattern;
Step 302, judge whether it is the browsing puncturing pattern for using image for the first time, use, then execute if first time
Step 303, no to then follow the steps 306;
Step 303, judgement horizontally slip image whether be switching image operation, if switching image operation, then execute step
Rapid 304, otherwise, execute step 305;
Step 304, determine that sliding up and down image is the operation for deleting image;
Step 305, determine that the image that horizontally slips is the operation for deleting image;
Step 306, if detect the slide for deleting image that user executes image, the sliding behaviour is deleted
Make corresponding image;
Step 307, the image of deletion is backed up;
Step 308, judge user whether perform delete image recovery operation executed if performing recovery operation
Step 309, no to then follow the steps 310;
Step 309, deleted image is restored;
Step 310, if mobile terminal has exited the browsing puncturing pattern of image, the image of backup is deleted.
The embodiment of the present invention realizes and is easy to the quick and convenient method for deleting image of user, so that user needs not move through
Calling and switch window back and forth, so that it may directly delete picture in a manner of simply sliding while browsing pictures, mention significantly
Rise the experience operation of user.
3rd embodiment
As shown in Figure 4 and Figure 5, the mobile terminal of the embodiment of the present invention, comprising:
First detection module 41 when for entering the browsing puncturing pattern of image in mobile terminal, detects user to image
The slide of execution;
It is corresponding to delete the slide if being the operation for deleting image for the slide for removing module 42
Image;
Wherein, the corresponding glide direction of the slide sliding side corresponding with the slide of image browsing of image is deleted
To difference.
Optionally, the mobile terminal, further includes:
Second detection module 43, for detecting whether user performs the operation into the browsing puncturing pattern of image;
Execution module 44, if entering the browsing puncturing pattern of image for detecting the operation.
Optionally, the mobile terminal, further includes:
Judgment module 45, for judging whether mobile terminal is to use the browsing puncturing pattern for the first time;
Determining module 46, for being used if first time, it is determined that delete the direction of the slide of image.
Specifically, the determining module 46 includes:
Judging unit 461, for judging whether the glide direction of slide of image browsing is first direction;
First determination unit 462, if the glide direction of the slide for image browsing is first direction, it is determined that delete
Except the direction of the slide of image is second direction;
Second determination unit 463, if the glide direction of the slide for image browsing is not first direction, it is determined that
The direction for deleting the slide of image is first direction.
Optionally, the mobile terminal, further includes:
Backup module 47, for being backed up to the image of deletion;
Recovery module 48, for detect user execute described image recovery operation when, it is right from the image of backup
Described image is restored.
Optionally, the mobile terminal, further includes:
Whether third detection module 49 has exited the browsing puncturing pattern of image for detecting mobile terminal;
Removing module 410, if deleting backup when for detecting that mobile terminal has exited the browsing puncturing pattern
Described image.
Optionally, the mobile terminal, further includes:
Switching module 411 carries out the switching of image if being the operation for switching image for the slide.
It should be noted that the mobile terminal embodiment is mobile terminal corresponding with above-mentioned image-erasing method, on
All implementations of image-erasing method are stated suitable for the mobile terminal embodiment, can also reach identical technology effect
Fruit.
Fourth embodiment
As shown in fig. 6, the structural block diagram of the mobile terminal for the embodiment of the present invention.This hair is illustrated below with reference to the figure
The application entity of bright image-erasing method.
Mobile terminal 600 as shown in FIG. 6 includes: that at least one processor 601, memory 602, at least one network connect
Mouth 604 and user interface 603.Various components in mobile terminal 600 are coupled by bus system 605.It is understood that total
Linear system system 605 is for realizing the connection communication between these components.Bus system 605 except include data/address bus in addition to, further include
Power bus, control bus and status signal bus in addition.But for the sake of clear explanation, various buses are all designated as in Fig. 6
Bus system 605.
Wherein, user interface 603 may include display, keyboard or pointing device (for example, mouse, trace ball
(trackball), touch-sensitive plate or touch screen etc..
It is appreciated that the memory 602 in the embodiment of the present invention can be volatile memory or nonvolatile memory,
It or may include both volatile and non-volatile memories.Wherein, nonvolatile memory can be read-only memory (Read-
Only Memory, ROM), programmable read only memory (Programmable ROM, PROM), the read-only storage of erasable programmable
Device (Erasable PROM, EPROM), electrically erasable programmable read-only memory (Electrically EPROM, EEPROM) or
Flash memory.Volatile memory can be random access memory (Random Access Memory, RAM), be used as external high
Speed caching.By exemplary but be not restricted explanation, the RAM of many forms is available, such as static random access memory
(Static RAM, SRAM), dynamic random access memory (Dynamic RAM, DRAM), Synchronous Dynamic Random Access Memory
(Synchronous DRAM, SDRAM), double data speed synchronous dynamic RAM (Double Data Rate
SDRAM, DDRSDRAM), enhanced Synchronous Dynamic Random Access Memory (Enhanced SDRAM, ESDRAM), synchronized links
Dynamic random access memory (Synch link DRAM, SLDRAM) and direct rambus random access memory (Direct
Rambus RAM, DRRAM).The memory 602 of system and method described herein is intended to include but is not limited to these and arbitrarily its
It is suitble to the memory of type.
In some embodiments, memory 602 stores following element, executable modules or data structures, or
Their subset of person or their superset: operating system 6021 and application program 6022.
Wherein, operating system 6021 include various system programs, such as ccf layer, core library layer, driving layer etc., are used for
Realize various basic businesses and the hardware based task of processing.Application program 6022 includes various application programs, such as media
Player (Media Player), browser (Browser) etc., for realizing various applied business.Realize the embodiment of the present invention
The program of method may be embodied in application program 6022.
In embodiments of the present invention, by the program or instruction of calling memory 602 to store, the specific can be that applying
The program or instruction stored in program 6022, processor 601 are used for when mobile terminal enters the browsing puncturing pattern of image, inspection
Survey the slide that user executes image;If the slide is the operation for deleting image, the slide is deleted
Corresponding image;Wherein, the corresponding glide direction of the slide cunning corresponding with the slide of image browsing of image is deleted
Dynamic direction is different.
The method that the embodiments of the present invention disclose can be applied in processor 601, or be realized by processor 601.
Processor 601 may be a kind of IC chip, the processing capacity with signal.During realization, the above method it is each
Step can be completed by the integrated logic circuit of the hardware in processor 601 or the instruction of software form.Above-mentioned processing
Device 601 can be general processor, digital signal processor (Digital Signal Processor, DSP), dedicated integrated electricity
Road (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field
Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic,
Discrete hardware components.It may be implemented or execute disclosed each method, step and the logic diagram in the embodiment of the present invention.It is general
Processor can be microprocessor or the processor is also possible to any conventional processor etc..In conjunction with institute of the embodiment of the present invention
The step of disclosed method, can be embodied directly in hardware decoding processor and execute completion, or with the hardware in decoding processor
And software module combination executes completion.Software module can be located at random access memory, and flash memory, read-only memory may be programmed read-only
In the storage medium of this fields such as memory or electrically erasable programmable memory, register maturation.The storage medium is located at
The step of memory 602, processor 601 reads the information in memory 602, completes the above method in conjunction with its hardware.
It is understood that embodiments described herein can with hardware, software, firmware, middleware, microcode or its
Combination is to realize.For hardware realization, processing unit be may be implemented in one or more specific integrated circuit (Application
Specific Integrated Circuits, ASIC), digital signal processor (Digital Signal Processing,
DSP), digital signal processing appts (DSP Device, DSPD), programmable logic device (Programmable Logic
Device, PLD), field programmable gate array (Field-Programmable Gate Array, FPGA), general processor,
In controller, microcontroller, microprocessor, other electronic units for executing herein described function or combinations thereof.
For software implementations, it can be realized herein by executing the module (such as process, function etc.) of function described herein
The technology.Software code is storable in memory and is executed by processor.Memory can in the processor or
It is realized outside processor.
Optionally, which is used for: whether detection user performs the behaviour into the browsing puncturing pattern of image
Make;If detecting the operation, enter the browsing puncturing pattern of image;Judge whether mobile terminal is described in first time use
Browse puncturing pattern;It is used if first time, it is determined that delete the direction of the slide of image.
Optionally, which is also used to: whether the glide direction for judging the slide of image browsing is first party
To;If the glide direction of the slide of image browsing is first direction, it is determined that the direction for deleting the slide of image is
Second direction;If the glide direction of the slide of image browsing is not first direction, it is determined that delete the slide of image
Direction be first direction.
Optionally, which is also used to: backing up to the image of deletion;Detecting user's execution figure
When the recovery operation of picture, described image is restored from the image of backup.
Optionally, which is also used to: whether detection mobile terminal has exited the browsing puncturing pattern of image;If
When detecting that mobile terminal has exited the browsing puncturing pattern, then the described image of backup is deleted.
Optionally, which is also used to: if the slide is the operation for switching image, carrying out image
Switching.
Mobile terminal 600 can be realized each process that mobile terminal is realized in previous embodiment, to avoid repeating, here
It repeats no more.
The mobile terminal of the embodiment of the present invention enters the browsing puncturing pattern of image by processor 601 in mobile terminal
When, detect the slide that user executes image;If the slide is the operation for deleting image, the sliding is deleted
Operate corresponding image;Wherein, the corresponding glide direction of slide for deleting image is corresponding with the slide of image browsing
Glide direction it is different;Reduce the operating procedure that user deletes image with this, improves the operation convenience of user.
5th embodiment
Fig. 7 is the structural schematic diagram of the mobile terminal of the embodiment of the present invention.Specifically, the mobile terminal in Fig. 7 can be
Mobile phone, tablet computer, personal digital assistant (Personal Digital Assistant, PDA) or vehicle-mounted computer etc..
Mobile terminal in Fig. 7 includes radio frequency (Radio Frequency, RF) circuit 77, memory 720, input unit
730, display unit 740, processor 750, voicefrequency circuit 760, WiFi (Wireless Fidelity) module 770 and power supply
780。
Wherein, input unit 730 can be used for receiving the number or character information of user's input, and generation and mobile terminal
User setting and function control related signal input.Specifically, in the embodiment of the present invention, which can be with
Including touch panel 731.Touch panel 731, also referred to as touch screen collect the touch operation (ratio of user on it or nearby
Such as user uses the operation of finger, stylus any suitable object or attachment on touch panel 731), and according to setting in advance
Fixed formula drives corresponding attachment device.Optionally, touch panel 731 may include touch detecting apparatus and touch controller two
A part.Wherein, the touch orientation of touch detecting apparatus detection user, and touch operation bring signal is detected, signal is passed
Give touch controller;Touch controller receives touch information from touch detecting apparatus, and is converted into contact coordinate, then
The processor 750 is given, and order that processor 750 is sent can be received and executed.Furthermore, it is possible to using resistance-type, electricity
The multiple types such as appearance formula, infrared ray and surface acoustic wave realize touch panel 731.In addition to touch panel 731, input unit 730
Can also include other input equipments 732, other input equipments 732 can include but is not limited to physical keyboard, function key (such as
Volume control button, switch key etc.), trace ball, mouse, one of operating stick etc. or a variety of.
Wherein, display unit 740 can be used for showing information input by user or be supplied to the information and movement of user
The various menu interfaces of terminal.Display unit 740 may include display panel 741, optionally, can use LCD or organic light emission
The forms such as diode (Organic Light-Emitting Diode, OLED) configure display panel 741.
It should be noted that touch panel 731 can cover display panel 741, touch display screen is formed, when the touch display screen is examined
After measuring touch operation on it or nearby, processor 750 is sent to determine the type of touch event, is followed by subsequent processing device
750 provide corresponding visual output according to the type of touch event in touch display screen.
Touch display screen includes Application Program Interface viewing area and common control viewing area.The Application Program Interface viewing area
And arrangement mode of the common control viewing area does not limit, can be arranged above and below, left-right situs etc. can distinguish two it is aobvious
Show the arrangement mode in area.The Application Program Interface viewing area is displayed for the interface of application program.Each interface can be with
The interface elements such as the icon comprising at least one application program and/or widget desktop control.The Application Program Interface viewing area
Or the empty interface not comprising any content.This commonly uses control viewing area for showing the higher control of utilization rate, for example,
Application icons such as button, interface number, scroll bar, phone directory icon etc. are set.
Wherein processor 750 is the control centre of mobile terminal, utilizes each of various interfaces and connection whole mobile phone
A part by running or execute the software program and/or module that are stored in first memory 721, and is called and is stored in
Data in second memory 722 execute the various functions and processing data of mobile terminal, to carry out to mobile terminal whole
Monitoring.Optionally, processor 750 may include one or more processing units.
In embodiments of the present invention, by call store the first memory 721 in software program and/or module and/
Or the data in the second memory 722, processor 750 are used for when mobile terminal enters the browsing puncturing pattern of image, inspection
Survey the slide that user executes image;If the slide is the operation for deleting image, the slide is deleted
Corresponding image;Wherein, the corresponding glide direction of the slide cunning corresponding with the slide of image browsing of image is deleted
Dynamic direction is different.
Optionally, processor 750 is also used to: whether detection user performs the behaviour into the browsing puncturing pattern of image
Make;If detecting the operation, enter the browsing puncturing pattern of image;Judge whether mobile terminal is described in first time use
Browse puncturing pattern;It is used if first time, it is determined that delete the direction of the slide of image.
Optionally, processor 750 is also used to: whether the glide direction for judging the slide of image browsing is first party
To;If the glide direction of the slide of image browsing is first direction, it is determined that the direction for deleting the slide of image is
Second direction;If the glide direction of the slide of image browsing is not first direction, it is determined that delete the slide of image
Direction be first direction.
Optionally, processor 750 is also used to: being backed up to the image of deletion;Detecting user's execution described image
Recovery operation when, described image is restored from the image of backup.
Optionally, processor 750 is also used to: whether detection mobile terminal has exited the browsing puncturing pattern of image;If inspection
When measuring mobile terminal and having exited the browsing puncturing pattern, then the described image of backup is deleted.
Optionally, processor 750 is also used to: if the slide is the operation for switching image, carrying out cutting for image
It changes.
The mobile terminal of the embodiment of the present invention can be realized each process that mobile terminal is realized in previous embodiment, to keep away
Exempt to repeat, which is not described herein again.
The mobile terminal of the embodiment of the present invention enters the browsing puncturing pattern of image by processor 750 in mobile terminal
When, detect the slide that user executes image;If the slide is the operation for deleting image, the sliding is deleted
Operate corresponding image;Wherein, the corresponding glide direction of slide for deleting image is corresponding with the slide of image browsing
Glide direction it is different;Reduce the operating procedure that user deletes image with this, improves the operation convenience of user.
All the embodiments in this specification are described in a progressive manner, the highlights of each of the examples are with
The difference of other embodiments, the same or similar parts between the embodiments can be referred to each other.
It should be understood by those skilled in the art that, the embodiment of the embodiment of the present invention can provide as method, apparatus or calculate
Machine program product.Therefore, the embodiment of the present invention can be used complete hardware embodiment, complete software embodiment or combine software and
The form of the embodiment of hardware aspect.Moreover, the embodiment of the present invention can be used one or more wherein include computer can
With in the computer-usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) of program code
The form of the computer program product of implementation.
The embodiment of the present invention be referring to according to the method for the embodiment of the present invention, terminal device (system) and computer program
The flowchart and/or the block diagram of product describes.It should be understood that flowchart and/or the block diagram can be realized by computer program instructions
In each flow and/or block and flowchart and/or the block diagram in process and/or box combination.It can provide these
Computer program instructions are set to general purpose computer, special purpose computer, Embedded Processor or other programmable data processing terminals
Standby processor is to generate a machine, so that being held by the processor of computer or other programmable data processing terminal devices
Capable instruction generates for realizing in one or more flows of the flowchart and/or one or more blocks of the block diagram
The device of specified function.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing terminal devices
In computer-readable memory operate in a specific manner, so that instruction stored in the computer readable memory generates packet
The manufacture of command device is included, which realizes in one side of one or more flows of the flowchart and/or block diagram
The function of being specified in frame or multiple boxes.
These computer program instructions can also be loaded into computer or other programmable data processing terminal devices, so that
Series of operation steps are executed on computer or other programmable terminal equipments to generate computer implemented processing, thus
The instruction executed on computer or other programmable terminal equipments is provided for realizing in one or more flows of the flowchart
And/or in one or more blocks of the block diagram specify function the step of.
Although the preferred embodiment of the embodiment of the present invention has been described, once a person skilled in the art knows bases
This creative concept, then additional changes and modifications can be made to these embodiments.So the following claims are intended to be interpreted as
Including preferred embodiment and fall into all change and modification of range of embodiment of the invention.
It should also be noted that, herein, relational terms such as first and second and the like are used merely to one
Entity or operation are distinguished with another entity or operation, without necessarily requiring or implying between these entities or operation
There are any actual relationship or orders.Moreover, the terms "include", "comprise" or its any other variant are intended to contain
Lid non-exclusive inclusion, so that the process, method, article or the terminal device that include a series of elements not only include that
A little elements, but also including other elements that are not explicitly listed, or further include for this process, method, article or
The intrinsic element of terminal device.In the absence of more restrictions, the element limited by sentence "including a ...", and
It is not precluded in the process, method including the element, article or terminal device that there is also other identical elements.
Above-described is the preferred embodiment of the present invention, it should be pointed out that the ordinary person of the art is come
It says, can also make several improvements and retouch under the premise of not departing from principle of the present invention, these improvements and modifications also exist
In protection scope of the present invention.