Specific embodiment
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention
In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is
A part of the embodiment of the present invention, instead of all the embodiments, based on the embodiments of the present invention, those of ordinary skill in the art
Every other embodiment obtained without making creative work, shall fall within the protection scope of the present invention.
As shown in Figure 1, this method may comprise steps of the embodiment of the invention provides a kind of picture moving method:
Step 101: when detecting the first trigger action of the picture shown for screen, determining that the first trigger action is
It is no to meet preset mobile condition, if so, executing step 102, otherwise, execute step 106.
In practical application scene, since the size (as unit of pixel) of picture is greater than the resolution ratio of screen, figure
The content of piece cannot completely show on the screen, in the case, if it is desired to check that the full content of picture needs to move
Picture is to adjust the displaying content of picture on the screen.
This method can be applied to the equipment such as mobile terminal, the end PC, according to the difference of screen corresponding device, the first triggering behaviour
The form of work can there are many.For example, when the screen that this method is applied to mobile terminal and the mobile terminal has touch function
When, the first trigger action can be sliding.When this method is applied to the end PC, the first trigger action can be mouse drag.When
So, the form of the first trigger action is not limited to above two, and can also be double-click etc., other are directed to the operation of screen.It is following
Second trigger action is similar to the first trigger action, and there is also above-mentioned diversified forms.
In embodiments of the present invention, whether the first trigger action and the co-determination of preset mobile condition execute step 102-
The mobile sequence of maneuvers of the picture of step 105.Correspondingly, there is also differences for the different corresponding mobile conditions of the first trigger action.
By taking the first trigger action is sliding as an example, determine whether the first trigger action meets preset mobile condition and at least deposit
In following three kinds of situations.
A: determine whether sliding distance is greater than preset sliding distance threshold value.
B: determine whether sliding speed is greater than preset sliding speed threshold value.
C: determine whether that sliding distance is greater than preset sliding distance threshold value and sliding speed is greater than preset sliding speed
Threshold value.
It, can be according only to sliding speed, or only through tri- kinds of situations of A, B, C it is found that when the first trigger action is sliding
According to sliding distance, or decided whether to carry out mobile relevant operation, i.e. step simultaneously according to sliding distance and sliding speed
102- step 105.
In practical application scene, since there are different forms for the first trigger action, accordingly, it is determined that the first trigger action
Whether preset mobile condition is met there are different ways of realization, and details are not described herein again.
Step 102: by the scale compression of picture to the first scale bar.
When the first trigger action meets preset mobile condition, start to execute " diminution-movement-amplification " sequence of maneuvers.
At least there is following two situation in " by the scale compression of picture to the first scale bar ".
Situation 1: by the scale compression of picture to preset first scale bar.
Situation 2: according to the first trigger action, the first scale bar is determined;By the scale compression of picture to the first scale bar.
Wherein, in case 1, no matter what the first trigger action is, the scale bar of picture be all contracted to fixed value (that is,
First scale bar), and in case 2, the scale bar of picture is determined by the first trigger action after diminution.
Now by aforementioned first trigger action be sliding for, to " according to the first trigger action, determining the first scale bar " into
Row explanation.
According to the first trigger action, determines the first scale bar, may include:
According to sliding distance, the first scale bar is determined.
According to the first trigger action, determines the first scale bar, may include:
According to sliding speed, the first scale bar is determined.
According to the first trigger action, determines the first scale bar, may include:
According to sliding distance and sliding speed, the first scale bar is determined.
By taking sliding speed as an example, sliding speed is bigger, and the first scale bar is smaller.
Step 103: according to the first trigger action, determining moving parameter.
Moving parameter includes but is not limited to: moving distance, moving direction, movement speed etc.;
In practical application scene, moving distance can be determined according to sliding distance, can also be determined according to sliding speed
Moving distance.It, can also be according to preset adjusting parameter and sliding it is possible to further which sliding distance is determined as moving distance
Distance determines moving distance.Similarly, glide direction can be determined as moving direction, it can also be according to preset direction system
Several and glide direction, determines moving direction.
Step 104: according to moving parameter, mobile picture.
Step 105: the scale bar of picture is amplified to the second scale bar, wherein the size of picture is greater than the resolution of screen
Rate.
After the completion of movement, needs for the scale bar of picture to be amplified to the scale bar before picture reduces or other are scheduled
Scale bar, to improve user experience.
In practical application scene, amplified second scale bar of picture can be equal to the scale bar before picture reduces, also
The second scale bar of picture after amplification can be determined according to the first trigger action.
By taking sliding as an example, the second scale bar is determined according to sliding speed, alternatively, determining the second ratio according to sliding distance
Ruler, alternatively, determining the second scale bar according to sliding speed and sliding distance.
Step 106: according to the mobile picture of the first trigger action.
When the first trigger action is unsatisfactory for mobile condition, then illustrate that the first trigger action can not trigger " diminution-shifting
Dynamic-amplification " sequence of maneuvers, in this case, it is possible to directly move picture according to the first trigger action.Specific implementation procedure and step
Rapid 103,104 is similar, and details are not described herein again.
When the first trigger action is unsatisfactory for mobile condition, moving parameter can be determined according to the first trigger action;According to
The mobile picture of the moving parameter.That is when meeting mobile condition, the operation that this method executes is " diminution-shifting
Dynamic-amplification ", when being unsatisfactory for mobile condition, the operation that this method executes is " movement-amplification ".
This method can be automatically performed diminution-movement-amplification behaviour to picture by judging the first trigger action
Make, does not need the frequent operation of user, can be improved convenience and user experience.
It is moved to make user clearly perceive picture, further increases user experience, in one embodiment of the invention,
According to moving parameter, mobile picture, comprising:
According to preset movement speed, picture is segmented distance to moving direction mobile first;
According to preset translational acceleration, picture is segmented distance to moving direction mobile second;
Wherein, the first segmentation distance and the second segmentation sum of the distance are equal to moving distance;Translational acceleration is less than 0.
I.e. in the method, moving process is divided into two stages, and the first stage is at the uniform velocity transported according to certain movement speed
Dynamic, second stage is to carry out retarded motion according to certain translational acceleration, until stopping.In practical application scene, second
The stage corresponding form of expression is that picture is slowly moved to stopping, being able to use family perception picture and is moved, improves user's body
It tests.Certainly, moving process is further divided into multiple stages, and details are not described herein again.
In practical application scene, in the moving process of picture, if the user find that the position that shows of current screen with
User wants the distance paid close attention to, and there are also biggish gaps, the second trigger action can also be carried out for picture, so that picture continues
It is mobile.For example, the position for the map that current screen is shown is Beijing, the position that user wants to check is Hainan, then user can be with
Upward sliding screen is mobile to trigger picture, during picture is mobile, when being moved to Hunan, and the mobile speed of picture
Degree reduces, it is meant that the movement of picture will stop, and cannot reach destination locations-Hainan, at this point, user can be according to screen exhibition
The case where showing carries out the second trigger action to picture, so that picture continues to move to Hainan.
In consideration of it, in one embodiment of the invention, according to moving parameter, after mobile picture, by picture
Scale bar is amplified to before the second scale bar, this method can also include: when detecting the second trigger action for picture,
According to the mobile picture of the second trigger action.
In practical application scene, the processing for the second trigger action can be identical as the first trigger action, can also be with
It is different from the first trigger action.
For example, according to the mobile picture of the second trigger action, comprising: determine whether the second trigger action meets preset movement
Condition, if so, by the scale compression of picture to third scale bar;According to the second trigger action, moving parameter is determined;According to
Moving parameter, mobile picture.
For another example according to the mobile picture of the second trigger action, comprising: according to the first trigger action, determine moving parameter;Root
According to moving parameter, mobile picture.
It should be noted that the corresponding moving parameter of the first trigger action and the corresponding moving parameter of the second trigger action can
It can also be different with identical.
The embodiment of the present invention will be described in detail picture moving method by taking Fig. 2-Fig. 5 as an example, as shown in fig. 6, should
Method includes:
Step 601: when detecting the slide of the map shown for screen, it is pre- to determine whether sliding distance is greater than
If sliding distance threshold value, if so, execute step 602, otherwise, execute step 608.
In embodiments of the present invention, user wants map being moved to Alibaba from the Stadium of Dragon Sports Center of current presentation
The garden Xi Xi, glide direction are as shown in Figure 2.
Step 602: determine whether sliding speed is greater than preset sliding speed threshold value, if so, step 603 is executed, it is no
Then, step 608 is executed.
Step 603: by the scale compression of map to preset first scale bar.
Map after diminution is as shown in Figure 3.Wherein, position shown in "×" is Stadium of Dragon Sports Center.
Step 604: according to slide, determining moving distance and moving direction.
In embodiments of the present invention, moving direction is glide direction, and moving distance is Stadium of Dragon Sports Center to Arriba
Brazilian small stream garden.
Step 605: according to preset movement speed, map being segmented distance to moving direction mobile first.
Step 606: according to preset translational acceleration, map being segmented distance to moving direction mobile second, wherein the
One segmentation distance and the second segmentation sum of the distance are equal to moving distance;Translational acceleration is less than 0.
The position stopped after movement is as shown in Figure 4.
Step 607: by the scale bar method of map to the second scale bar.
The map that amplified screen is shown is as shown in Figure 5.Compared to Fig. 4, more details letters can be checked from Fig. 5
Breath.
Step 608: according to slide moving map.
If not up to mobile condition, direct moving map.
As shown in fig. 7, the embodiment of the invention provides a kind of picture mobile devices, comprising:
Determination unit 701, for determining the first touching when detecting the first trigger action of the picture shown for screen
Whether hair operation meets preset mobile condition, if so, triggering reducing unit 702;Wherein, the size of picture is greater than screen
Resolution ratio;
Reducing unit 702, for by the scale compression of picture to the first scale bar;
Mobile unit 703, for determining moving parameter according to the first trigger action;According to moving parameter, mobile picture;
Amplifying unit 704, for the scale bar of picture to be amplified to the second scale bar.
In one embodiment of the invention, the first trigger action, comprising: sliding;
Determination unit 701, for determining whether sliding distance is greater than preset sliding distance threshold value.
In one embodiment of the invention, the first trigger action, comprising: sliding;
Determination unit 701, for determining whether sliding speed is greater than preset sliding speed threshold value.
In one embodiment of the invention, reducing unit 702, for by the scale compression of picture to preset first
Scale bar.
In one embodiment of the invention, reducing unit 702, for determining the first ratio according to the first trigger action
Ruler;By the scale compression of picture to the first scale bar.
In one embodiment of the invention, moving parameter, comprising: moving distance and moving direction;Mobile unit 703,
For according to preset movement speed, picture to be segmented distance to moving direction mobile first;According to preset translational acceleration,
Picture is segmented distance to moving direction mobile second;Wherein, the first segmentation distance and the second segmentation sum of the distance are equal to movement
Distance;Translational acceleration is less than 0.
In one embodiment of the invention, mobile unit 703 are further used for working as the second touching detected for picture
When hair operation, according to the mobile picture of the second trigger action.
In one embodiment of the invention, mobile unit 703 are further used for being unsatisfactory for moving when the first trigger action
When condition, according to the mobile picture of the first trigger action.
The embodiment of the invention provides a kind of picture mobile devices, comprising: processor and memory;
Memory for store execute instruction, processor be used for execute memory storage execute instruction to realize above-mentioned
The method of one embodiment.
In the 1990s, the improvement of a technology can be distinguished clearly be on hardware improvement (for example,
Improvement to circuit structures such as diode, transistor, switches) or software on improvement (improvement for method flow).So
And with the development of technology, the improvement of current many method flows can be considered as directly improving for hardware circuit.
Designer nearly all obtains corresponding hardware circuit by the way that improved method flow to be programmed into hardware circuit.Cause
This, it cannot be said that the improvement of a method flow cannot be realized with hardware entities module.For example, programmable logic device
(Programmable Logic Device, PLD) (such as field programmable gate array (Field Programmable Gate
Array, FPGA)) it is exactly such a integrated circuit, logic function determines device programming by user.By designer
Voluntarily programming comes a digital display circuit " integrated " on a piece of PLD, designs and makes without asking chip maker
Dedicated IC chip.Moreover, nowadays, substitution manually makes IC chip, this programming is also used instead mostly " is patrolled
Volume compiler (logic compiler) " software realizes that software compiler used is similar when it writes with program development,
And the source code before compiling also write by handy specific programming language, this is referred to as hardware description language
(Hardware Description Language, HDL), and HDL is also not only a kind of, but there are many kind, such as ABEL
(Advanced Boolean Expression Language)、AHDL(Altera Hardware Description
Language)、Confluence、CUPL(Cornell University Programming Language)、HDCal、JHDL
(Java Hardware Description Language)、Lava、Lola、MyHDL、PALASM、RHDL(Ruby
Hardware Description Language) etc., VHDL (Very-High-Speed is most generally used at present
Integrated Circuit Hardware Description Language) and Verilog.Those skilled in the art also answer
This understands, it is only necessary to method flow slightly programming in logic and is programmed into integrated circuit with above-mentioned several hardware description languages,
The hardware circuit for realizing the logical method process can be readily available.
Controller can be implemented in any suitable manner, for example, controller can take such as microprocessor or processing
The computer for the computer readable program code (such as software or firmware) that device and storage can be executed by (micro-) processor can
Read medium, logic gate, switch, specific integrated circuit (Application Specific Integrated Circuit,
ASIC), the form of programmable logic controller (PLC) and insertion microcontroller, the example of controller includes but is not limited to following microcontroller
Device: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20 and Silicone Labs C8051F320 are deposited
Memory controller is also implemented as a part of the control logic of memory.It is also known in the art that in addition to
Pure computer readable program code mode is realized other than controller, can be made completely by the way that method and step is carried out programming in logic
Controller is obtained to come in fact in the form of logic gate, switch, specific integrated circuit, programmable logic controller (PLC) and insertion microcontroller etc.
Existing identical function.Therefore this controller is considered a kind of hardware component, and to including for realizing various in it
The device of function can also be considered as the structure in hardware component.Or even, it can will be regarded for realizing the device of various functions
For either the software module of implementation method can be the structure in hardware component again.
System, device, module or the unit that above-described embodiment illustrates can specifically realize by computer chip or entity,
Or it is realized by the product with certain function.It is a kind of typically to realize that equipment is computer.Specifically, computer for example may be used
Think personal computer, laptop computer, cellular phone, camera phone, smart phone, personal digital assistant, media play
It is any in device, navigation equipment, electronic mail equipment, game console, tablet computer, wearable device or these equipment
The combination of equipment.
For convenience of description, it is divided into various units when description apparatus above with function to describe respectively.Certainly, implementing this
The function of each unit can be realized in the same or multiple software and or hardware when application.
It should be understood by those skilled in the art that, the embodiment of the present invention can provide as method, system or computer program
Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the present invention
Apply the form of example.Moreover, it wherein includes the computer of computer usable program code that the present invention, which can be used in one or more,
The computer program implemented in usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) produces
The form of product.
The present invention be referring to according to the method for the embodiment of the present invention, the process of equipment (system) and computer program product
Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions
The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs
Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce
A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real
The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates,
Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or
The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting
Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or
The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one
The step of function of being specified in a box or multiple boxes.
In a typical configuration, calculating equipment includes one or more processors (CPU), input/output interface, net
Network interface and memory.
Memory may include the non-volatile memory in computer-readable medium, random access memory (RAM) and/or
The forms such as Nonvolatile memory, such as read-only memory (ROM) or flash memory (flash RAM).Memory is computer-readable medium
Example.
Computer-readable medium includes permanent and non-permanent, removable and non-removable media can be by any method
Or technology come realize information store.Information can be computer readable instructions, data structure, the module of program or other data.
The example of the storage medium of computer includes, but are not limited to phase change memory (PRAM), static random access memory (SRAM), moves
State random access memory (DRAM), other kinds of random access memory (RAM), read-only memory (ROM), electric erasable
Programmable read only memory (EEPROM), flash memory or other memory techniques, read-only disc read only memory (CD-ROM) (CD-ROM),
Digital versatile disc (DVD) or other optical storage, magnetic cassettes, tape magnetic disk storage or other magnetic storage devices
Or any other non-transmission medium, can be used for storage can be accessed by a computing device information.As defined in this article, it calculates
Machine readable medium does not include temporary computer readable media (transitory media), such as the data-signal and carrier wave of modulation.
It should also be noted that, the terms "include", "comprise" or its any other variant are intended to nonexcludability
It include so that the process, method, commodity or the equipment that include a series of elements not only include those elements, but also to wrap
Include other elements that are not explicitly listed, or further include for this process, method, commodity or equipment intrinsic want
Element.In the absence of more restrictions, the element limited by sentence " including one ... ", it is not excluded that including described
There is also other identical elements in the process, method of element, commodity or equipment.
The application can describe in the general context of computer-executable instructions executed by a computer, such as program
Module.Generally, program module includes routines performing specific tasks or implementing specific abstract data types, programs, objects, group
Part, data structure etc..The application can also be practiced in a distributed computing environment, in these distributed computing environments, by
Task is executed by the connected remote processing devices of communication network.In a distributed computing environment, program module can be with
In the local and remote computer storage media including storage equipment.
All the embodiments in this specification are described in a progressive manner, same and similar portion between each embodiment
Dividing may refer to each other, and each embodiment focuses on the differences from other embodiments.Especially for system reality
For applying example, since it is substantially similar to the method embodiment, so being described relatively simple, related place is referring to embodiment of the method
Part explanation.
The above description is only an example of the present application, is not intended to limit this application.For those skilled in the art
For, various changes and changes are possible in this application.All any modifications made within the spirit and principles of the present application are equal
Replacement, improvement etc., should be included within the scope of the claims of this application.