CN109101174A - A kind of scaling method, device, terminal and medium - Google Patents

A kind of scaling method, device, terminal and medium Download PDF

Info

Publication number
CN109101174A
CN109101174A CN201810673890.0A CN201810673890A CN109101174A CN 109101174 A CN109101174 A CN 109101174A CN 201810673890 A CN201810673890 A CN 201810673890A CN 109101174 A CN109101174 A CN 109101174A
Authority
CN
China
Prior art keywords
speed
weighted factor
mouse
scaling
rolling
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.)
Withdrawn
Application number
CN201810673890.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.)
Maimaiti Mdt Infotech Ltd Shenzhen
Original Assignee
Maimaiti Mdt Infotech Ltd Shenzhen
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 Maimaiti Mdt Infotech Ltd Shenzhen filed Critical Maimaiti Mdt Infotech Ltd Shenzhen
Priority to CN201810673890.0A priority Critical patent/CN109101174A/en
Publication of CN109101174A publication Critical patent/CN109101174A/en
Withdrawn 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/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
    • 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

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)
  • Processing Or Creating Images (AREA)

Abstract

The embodiment of the invention discloses a kind of scaling method and terminals, wherein the described method includes: obtaining the rotating direction and rolling speed for rolling instruction when receiving the rolling instruction for mouse roller;The scaling speed of target object is determined according to the rolling speed, and determines that the zoom mode to target object, the zoom mode include amplification mode or diminution mode according to the rotating direction;Detection is directed to the slide of mouse, and the weighted factor of the scaling speed is determined according to the slide;Processing is weighted to the scaling speed using the weighted factor, obtains target scale speed;Processing is zoomed in and out to the target object according to the target scale speed and zoom mode.By implementing the above method, the scaling speed of image can be adjusted according to the sliding speed of mouse, enable image to zoom to ideal size faster, enhance the intelligence of image scaling.

Description

A kind of scaling method, device, terminal and medium
Technical field
The present invention relates to field of computer technology more particularly to a kind of scaling method, device, terminal and computer to deposit Storage media.
Background technique
With the fast development of computer industry and popularizing for computer, computer has become essential in people's life Office, converter tools, user can pass through computer and obtain information, carry out text-processing, drawing etc..
When user is consulted image or is drawn by computer, it usually needs the image that computer is shown is reduced or put It greatly, is in the prior art usually that image is realized by the sliding of mouse roller so that image is more advantageous to the browsing of user Scaling, image scaling multiple is determined according to the rolling distance of mouse roller, but the distance that idler wheel once rolls is limited, When needing multiple biggish to image scaling, the multiple rolling of idler wheel is needed just to be able to achieve corresponding effect, so that image contracts The intelligence put is insufficient.
Summary of the invention
The present invention provides a kind of scaling method, can according to the sliding speed of mouse to the scaling speed of image into Row adjustment, enables image to zoom to ideal size faster, enhances the intelligence of image scaling.
In a first aspect, the embodiment of the invention provides a kind of scaling methods, which comprises
When receiving the rolling instruction for mouse roller, obtains the rotating direction for rolling instruction and roll speed Degree;
The scaling speed of target object is determined according to the rolling speed, and is determined according to the rotating direction to target pair The zoom mode of elephant, the zoom mode include amplification mode or diminution mode;
Detection is directed to the slide of mouse, and the weighted factor of the scaling speed is determined according to the slide;
Processing is weighted to the scaling speed using the weighted factor, obtains target scale speed;
Processing is zoomed in and out to the target object according to the target scale speed and zoom mode.
Second aspect, the embodiment of the invention provides a kind of scaling processing device, described device includes:
Module is obtained, for obtaining the rolling for rolling instruction when receiving the rolling instruction for mouse roller Direction and rolling speed;
Determining module, for determining the scaling speed of target object according to the rolling speed, and according to the rolling square To the zoom mode determined to target object, the zoom mode includes amplification mode or diminution mode;
Detection module determines the scaling speed for detecting the slide for being directed to mouse, and according to the slide The weighted factor of degree;
Weighting block obtains target scale for being weighted processing to the scaling speed using the weighted factor Speed;
Processing module, for zooming in and out place to the target object according to the target scale speed and zoom mode Reason.
The third aspect the embodiment of the invention provides a kind of terminal, including processor, input equipment, output equipment and is deposited Reservoir, the processor, input equipment, output equipment and memory are connected with each other, wherein the memory is calculated for storing Machine program, the computer program include program instruction, and the processor is configured for calling described program instruction, execute institute The method for stating image scaling.
Fourth aspect, the embodiment of the invention provides a kind of computer readable storage medium, the computer storage medium It is stored with computer program, the computer program includes program instruction, and described program instruction makes institute when being executed by a processor It states processor and executes described image Zoom method.
In the embodiment of the present invention, terminal according to slide of the user for mouse get the weighting of scaling speed because Son, and processing is weighted to scaling speed according to the weighted factor, target scale speed is obtained, using target scale speed pair Image zooms in and out processing, and image can be made faster to zoom to suitable ratio, promotes terminal and zooms in and out to image The intelligence of processing.
Detailed description of the invention
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment Attached drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for For those of ordinary skill in the art, without creative efforts, it can also be obtained according to these attached drawings other Attached drawing.
Fig. 1 is a kind of flow diagram of scaling method provided in an embodiment of the present invention;
Fig. 2 is a kind of flow diagram of another scaling method provided in an embodiment of the present invention;
Fig. 3 is a kind of display interface schematic diagram of terminal provided in an embodiment of the present invention;
Fig. 4 is the display interface schematic diagram of another terminal provided in an embodiment of the present invention;
Fig. 5 is the display interface schematic diagram of another terminal provided in an embodiment of the present invention;
Fig. 6 is a kind of structural schematic diagram of scaling processing device provided in an embodiment of the present invention;
Fig. 7 is a kind of structural schematic diagram of terminal provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that the described embodiment is only a part of the embodiment of the present invention, instead of all the embodiments.Based on this Embodiment in invention, every other reality obtained by those of ordinary skill in the art without making creative efforts Example is applied, shall fall within the protection scope of the present invention.
The present embodiments relate to terminal may include but be not limited to desktop computer, laptop etc. carry mouse electricity Sub- equipment.The operating system of the terminal may include but be not limited to Windows, Linux, Unix operating system etc., and the present invention is real Apply example without limitation.
Referring to Fig. 1, Fig. 1 is a kind of flow diagram of scaling method disclosed by the embodiments of the present invention, this method Specifically includes the following steps:
S101, when receive for mouse roller rolling instruction when, obtain roll instruction rotating direction and roll speed Degree.
In the embodiment of the present invention, rolling instruction is the scroll operation that user is directed to mouse roller, so that mouse roller rolls And the instruction generated.In the specific implementation, the trigger condition for rolling instruction can be user in the pressing operation for being directed to programmable button While sliding mouse idler wheel and the instruction that generates.After terminal detects rolling instruction triggers, the rolling of mouse roller will acquire Direction and rolling speed.Wherein, rotating direction, which can be, scrolls up or scrolls down through, and optionally, terminal can also obtain rolling The rolling distance in some direction of wheel.
S102, the scaling speed that target object is determined according to rolling speed, and determined according to rotating direction to target object Zoom mode.
In the embodiment of the present invention, zoom mode includes amplification mode or reduces mode, and target object can be current display The object being selected in interface, object can be icon, image in regional area etc..In the specific implementation, not having when in terminal When determining object is selected, the whole image that terminal is then shown in current interface is as target object.
After terminal gets the rotating direction and rolling speed of mouse roller, it will be determined according to the rotating direction of idler wheel Corresponding zoom mode, specifically, rotating direction be it is upward, then its corresponding zoom mode be amplification mode, rotating direction to Under, then its corresponding zoom mode is diminution mode, and optionally, rotating direction can also correspond to diminution mode, rolling square upwards To amplification mode can also be corresponded to downwards.It, will be true according to the rolling speed of idler wheel after terminal has determined the zoom mode of image Set the goal the scaling speed of object.In the specific implementation, scaling speed can be one-to-one relationship, example with the rolling speed of idler wheel Such as, idler wheel rolling speed be 2 cm/s, then its corresponding scaling speed be 1.5 times/second, idler wheel rolling speed be 3 centimetres/ Second, then its corresponding scaling speed is 2 times/second etc..When user scrolls up mouse roller with the speed of 2 cm/s, eventually Holding the amplification speed for determining image is 1.5 times/second.
It in one implementation, can also root after terminal has determined zoom mode according to the rotating direction for being mouse The multiple of image scaling is determined according to the distance that mouse roller rolls, for example, idler wheel rolling distance is 2 centimetres, then its corresponding contracting Put multiple be 1.5 times, idler wheel rolling distance be 3 centimetres, then its corresponding scaling multiple be 2 times, when user by mouse roller to After upper 3 centimetres of rolling, terminal determines that the amplification factor of image is 2 times.
S103, detection are directed to the slide of mouse, and the weighted factor of scaling speed is determined according to slide.
In the embodiment of the present invention, terminal detect for idler wheel scaling instruction after, also will test user whether needle Slide is had input to mouse.If terminal detects that user is directed to the slide of mouse input, can be according to the sliding Operate the weighted factor for determining scaling speed.
In one implementation, terminal will acquire mouse in display interface corresponding cursor with a distance from preset with And the sliding speed of mouse, wherein preset can be the central point of terminal display interface or terminal currently shows image Central point, or preset by user or research staff, the sliding speed of mouse can with the physical slide speed of mouse, To be sliding speed of the corresponding cursor of mouse in interface.
If the cursor starting point is greater than cursor terminating point at a distance from preset at a distance from preset, it is determined that described Weighted factor is first kind weighted factor.Wherein, the position when starting point of cursor can be to roll instruction triggers where mouse, The terminating point of cursor can be user for mouse slide after position where cursor.Optionally, in order to faster The corresponding weighted factor of determination sliding speed, the terminating point of cursor is also possible to after mouse sliding preset duration where cursor Position, preset duration can be 0.01 second, 0.05 second etc., and the embodiment of the present invention is without limitation.Terminal is fast according to the sliding of mouse The corresponding relationship of degree and first kind weighted factor determines the weighted factor value of the scaling speed, the first kind weighted factor value Greater than 1.
In the specific implementation, terminal has determined that cursor starting point is greater than cursor terminating point and preset at a distance from preset After distance, the weighted factor value of scaling speed will be determined according to the corresponding relationship of sliding speed and first kind weighted factor.It needs It is noted that terminal can be corresponded to from the relationship of first kind weighted factor finds the corresponding weighted factor of sliding speed in table Value, the relationship of first kind weighted factor correspond to the corresponding relationship that sliding speed Yu first kind weighted factor value are saved in table, In, the value of first kind weighted factor is all larger than 1, and optionally, the relationship of first kind weighted factor corresponds to the specific correspondence of table preservation Relationship can be bigger for sliding speed, then weighted factor value is bigger, for example, sliding speed is 1 cm/s, then corresponding first Class weighted factor value is 1.5, and sliding speed is 2 cm/s, then corresponding first kind weighted factor value is 2 etc..Optionally, The specific corresponding relationship that the relationship of a kind of weighted factor corresponds to table preservation may be that sliding speed is bigger, then weighted factor value is got over It is small.
If the cursor starting point is less than cursor terminating point at a distance from preset at a distance from preset, it is determined that described Weighted factor is the second class weighted factor, and terminal is determined according to the sliding speed of mouse and the corresponding relationship of the second class weighted factor The weighted factor value of the scaling speed, the second class weighted factor value is between 0 to 1.
In the specific implementation, terminal has determined that cursor starting point is less than cursor terminating point and preset at a distance from preset After distance, the weighted factor value of scaling speed will be determined according to the corresponding relationship of sliding speed and the second class weighted factor.It needs It is noted that terminal can be corresponded to from the relationship of the second class weighted factor finds the corresponding weighted factor of sliding speed in table Value, the relationship of the second class weighted factor correspond to the corresponding relationship that sliding speed Yu the second class weighted factor value are saved in table, In, the value of the second class weighted factor is between 0 to 1, and optionally, the relationship of the second class weighted factor corresponds to the tool of table preservation Body corresponding relationship can be bigger for sliding speed, then weighted factor value is bigger, for example, sliding speed is 1 cm/s, then corresponds to First kind weighted factor value be 0.5, sliding speed be 2 cm/s, then corresponding second class weighted factor value be 0.6 etc..It can Choosing, the specific corresponding relationship that the relationship of the second class weighted factor corresponds to table preservation may be that sliding speed is bigger, then weights Factor values are smaller.
Optionally, terminal can also determine the weighted factor of image scaling multiple according to the sliding distance of mouse, for example, mouse Target sliding distance is 2 centimetres, it is determined that its corresponding weighted factor is 2, and the sliding distance of mouse is 3 centimetres, it is determined that its Corresponding weighted factor is 3 etc..
S104, processing is weighted to scaling speed using weighted factor, obtains target scale speed.
It, will be according to the weighted factor to step S102 after the weighted factor for determining scaling speed in the embodiment of the present invention In the scaling speed that gets be weighted processing, obtain target scale speed.For example, terminal in step s 102 terminal according to The glide direction of idler wheel determines that zoom mode is amplification mode, and the scaling speed got is 2 times/second, in step s 103 The weighted factor arrived is 1.5, then the target scale speed that terminal finally determines is 3 times/second.
Optionally, terminal can also be weighted processing to scaling multiple according to the weighted factor got, obtain target Scale multiple.For example, it is 2 times of amplification that terminal, which obtains the scaling multiple got in step s 102, obtain in step s 103 big Weighted factor be 2, then the target scale multiple that terminal finally determines be 4 times.
S105, processing is zoomed in and out to target object according to target scale speed and zoom mode.
It, will be according to target scale speed after terminal has determined target scale speed and zoom mode in the embodiment of the present invention Degree and zoom mode zoom in and out processing to the target object, when receiving stopping scaling triggering command, stop to image Scaling processing, wherein stop scaling triggering command can be the pressing operation for programmable button, programmable button can be key Any one or more keys in disk are also possible to left mouse button, right mouse button etc..Optionally, stop the triggering of scaling processing Instruction is also possible to operation of the release to the key pressed in step S101 etc., and the embodiment of the present invention is without limitation.
For example, target object is the whole image that terminal is currently shown, terminal is determined according to the rotating direction of idler wheel Zoom mode is amplification mode, and target scale speed is 2 times/second, then terminal will be carried out whole image with the speed of 2 times/second Amplification stops the amplification to image when detecting pressing operation of the user to left mouse button.
Optionally, terminal can also zoom in and out processing to target object according to target scale multiple and zoom mode.Example Such as, the target scale multiple that terminal is got is 4 times, and zoom mode is amplification, then target object is amplified 4 times by terminal.
In the embodiment of the present invention, when terminal receives the rolling instruction for mouse roller, the rolling instruction is obtained Rotating direction and rolling speed;The scaling speed of target object is determined according to the rolling speed, and according to the rolling square To the zoom mode determined to target object, the zoom mode includes amplification mode or diminution mode;Detection is for mouse Slide, and determine according to the slide weighted factor of the scaling speed;Using the weighted factor to described Scaling speed is weighted processing, obtains target scale speed;According to the target scale speed and zoom mode to the mesh Mark object zooms in and out processing.By the above-mentioned means, can eliminate because image scaling bring is given in the limitation of roller-coaster distance Limitation, is adjusted according to scaling speed of the sliding speed of mouse to image, image is zoomed to preferably faster Size enhances the intelligence of image scaling.
Referring to Fig. 2, Fig. 2 is the flow diagram of another scaling method disclosed by the embodiments of the present invention, the party Method specifically includes the following steps:
S201, when receive for mouse roller rolling instruction when, obtain roll instruction rotating direction and roll speed Degree.
In the embodiment of the present invention, rolling instruction is the slide that user is directed to mouse roller, so that mouse roller rolls And the instruction generated.In the specific implementation, the trigger condition for rolling instruction can be user in the pressing operation for being directed to programmable button While sliding mouse idler wheel and the instruction that generates.
S202, the corresponding cursor corresponding position in target object of detection mouse, and using the position as target object Scaling center.
In the embodiment of the present invention, when terminal detects the rolling instruction for mouse roller, current display circle will acquire Position in face where the corresponding cursor of mouse, and using the position as the scaling center of target object.Wherein, object can be Image or whole image in icon, regional area etc., target object can be the object being selected in current interface, can also be with It is that current interface shows whole image.In the specific implementation, whether it includes selected that terminal can detecte in the image currently shown Object;If so, the selected object is determined as target object;If it is not, then that the image currently shown is true It is set to target object.
In one implementation, terminal choose image method can for receive choose triggering command when, obtain The sliding trace of mouse corresponding cursor in display interface;It and by object tag that the sliding trace passes through is to choose shape State.Wherein, choosing triggering command can be the pressing operation for programmable button, as user is sliding while pressing left mouse button Dynamic mouse, the then object tag that terminal is passed through the sliding trace of the corresponding cursor of mouse are selected state.It is optional at other Implementation in, terminal can also after receiving mouse for the clicking operation of object in interface by the object tag be choosing Object in the mobile generated rectangle frame of cursor is determined as selected state etc. by middle state.
As shown in figure 3, being an image being made of each object, the sliding trace of the corresponding cursor of mouse passes through object 4, object 5 and object 7, then object 4, object 5 and object 7 are labeled as selected state by terminal.
S203, the scaling speed that target object is determined according to rolling speed, and determined according to rotating direction to target object Zoom mode
It, will be according to idler wheel after terminal gets the rotating direction and rolling speed of mouse roller in the embodiment of the present invention Rotating direction determine its corresponding zoom mode, wherein zoom mode include amplification mode or reduce mode.Terminal has determined After the zoom mode of image, the scaling speed of target object will be determined according to the rolling speed of idler wheel.Tool of the embodiment of the present invention Body process can be found in step S102, and this will not be repeated here.
S204, detection are directed to the slide of mouse, and the weighted factor of scaling speed is determined according to slide.
In the embodiment of the present invention, after terminal has determined the scaling speed and zoom mode of target object, needle will test To the slide of mouse, and determine according to the slide weighted factor of the scaling speed.
In one implementation, the glide direction and sliding speed of the available mouse of terminal;If the glide direction For the first preset direction, it is determined that the weighted factor is first kind weighted factor, and according to the sliding speed of mouse and first The corresponding relationship of class weighted factor determines that the weighted factor value of the scaling speed, the first kind weighted factor value are greater than 1.If The glide direction is the second preset direction, it is determined that the weighted factor is the second class weighted factor, and according to the cunning of mouse The corresponding relationship of dynamic speed and the second class weighted factor determines the weighted factor value of the scaling speed, the second class weighting because Subvalue is between 0 to 1.
In one implementation, terminal also available mouse in display interface corresponding cursor from preset away from From and mouse sliding speed;If the cursor starting point is greater than the cursor terminating point and preset at a distance from preset Distance, it is determined that the weighted factor is first kind weighted factor, and according to the sliding speed of mouse and the first kind weight because The corresponding relationship of son determines that the weighted factor value of the scaling speed, the first kind weighted factor value are greater than 1.If the cursor Starting point is less than the cursor terminating point at a distance from preset at a distance from preset, it is determined that the weighted factor is second Class weighted factor, and adding for the scaling speed, is determined according to the corresponding relationship of the sliding speed of mouse and the second class weighted factor Weight factor value, the second class weighted factor value is between 0 to 1.
S205, processing is weighted to scaling speed using weighted factor, obtains target scale speed.
It, will be according to the weighted factor to step after terminal determines the weighted factor of scaling speed in the embodiment of the present invention The scaling speed got in S203 is weighted processing, obtains target scale speed.
S206, place is zoomed in and out to the target object according to the target scale speed, zoom mode and scaling center Reason.
In the embodiment of the present invention, after terminal determines target scale speed and zoom mode, it will be contracted according to the target It puts speed, zoom mode and scaling center and processing is zoomed in and out to the target object.Stop scaling triggering command when receiving When, stop the scaling processing to image, wherein stopping scaling triggering command can be the pressing operation for programmable button, in advance If key can be any one or more keys in keyboard, be also possible to left mouse button, right mouse button etc..Optionally, stop The triggering command of scaling processing is also possible to operation of the release to the key pressed in step S101 etc., the embodiment of the present invention Without limitation.When target object is the object being selected in current display interface, stops scaling instruction and be also possible to detect When tangent between object, stop the scaling to image.
For example, terminal contracts to image shown in Fig. 3 according to target scale speed, zoom mode and scaling center Put processing, wherein zoom mode is determined as amplification mode, and when not having object to be selected in Fig. 3, terminal carries out whole image It is as shown in Figure 4 to obtain image for enhanced processing.When object 4, object 5, object 7 are selected in Fig. 3, then by object 4, object 5, Object 7 amplifies processing, when detecting that object 4 and object 5 are tangent, stops the amplifying operation to image, obtains image such as Shown in Fig. 5.
The present invention is adjusted in implementing by the sliding of mouse come the corresponding scaling speed of rolling speed to idler wheel, It can eliminate because the limitation of roller-coaster distance is limited to image scaling bring, image is zoomed to preferably faster Size enhances the intelligence of image scaling.
It describes in detail below in conjunction with attached drawing 6 to scaling processing device provided in an embodiment of the present invention.It needs to illustrate , attached device shown in fig. 6, the method for executing Fig. 1-embodiment illustrated in fig. 2 of the present invention only shows for ease of description Go out part related to the embodiment of the present invention, it is disclosed by specific technical details, through referring to Fig. 1-of the present invention reality shown in Fig. 2 Apply example.
Fig. 6 is referred to, is a kind of structural schematic diagram of scaling processing device provided by the invention, the scaling processing device 60 Can include: obtain module 601, determining module 602, detection module 603, weighting block 604, processing module 605.
Module 601 is obtained, for obtaining the rolling for rolling instruction when receiving the rolling instruction for mouse roller Dynamic direction and rolling speed;
Determining module 602, for determining the scaling speed of target object according to the rolling speed, and according to the rolling Direction determines that the zoom mode to target object, the zoom mode include amplification mode or diminution mode;
Detection module 603 for detecting the slide for being directed to mouse, and determines the scaling according to the slide The weighted factor of speed;
Weighting block 604 obtains target contracting for being weighted processing to the scaling speed using the weighted factor Put speed;
Processing module 605, for being zoomed in and out according to the target scale speed and zoom mode to the target object Processing.
In one implementation, the detection module 603, is specifically used for,
Obtain mouse in display interface corresponding cursor with a distance from preset and the sliding speed of mouse;
If the cursor starting point is greater than the cursor terminating point at a distance from preset at a distance from preset, it is determined that The weighted factor is first kind weighted factor, and true according to the sliding speed of mouse and the corresponding relationship of first kind weighted factor The weighted factor value of the fixed scaling speed, the first kind weighted factor value are greater than 1.
In one implementation, the detection module 603, is specifically used for,
Obtain mouse in display interface corresponding cursor with a distance from preset and the sliding speed of mouse;
If the cursor starting point is less than the cursor terminating point at a distance from preset at a distance from preset, it is determined that The weighted factor is the second class weighted factor, and true according to the sliding speed of mouse and the corresponding relationship of the second class weighted factor The weighted factor value of the fixed scaling speed, the second class weighted factor value is between 0 to 1.
In one implementation, the detection module 603, is specifically used for,
Obtain the glide direction and sliding speed of mouse;
If the glide direction is the first preset direction, it is determined that the weighted factor is first kind weighted factor, and root Determine the weighted factor value of the scaling speed according to the sliding speed of mouse and the corresponding relationship of first kind weighted factor, described the A kind of weighted factor value is greater than 1.
If the glide direction is the second preset direction, it is determined that the weighted factor is the second class weighted factor, and root Determine the weighted factor value of the scaling speed according to the sliding speed of mouse and the corresponding relationship of the second class weighted factor, described the Two class weighted factor values are between 0 to 1.
In one implementation, the detection module 603, is also used to,
Detect the corresponding cursor of the mouse corresponding position in target object;
Using the position as the scaling center of target object.
In one implementation, the detection module 603, is also used to,
Whether detect in the image currently shown includes selected object;
If so, the selected object is determined as target object;
If it is not, the image currently shown is then determined as target object.
In one implementation, the acquisition module 601, is also used to,
When detect choose triggering command when, obtain mouse corresponding cursor in display interface sliding trace;
The object tag that the sliding trace is passed through is selected state.
In the embodiment of the present invention, when receiving the rolling instruction for mouse roller, obtains module 601 and obtain the rolling The rotating direction and rolling speed of dynamic instruction;Determining module 602 determines the scaling speed of target object according to the rolling speed, And determine that the zoom mode to target object, the zoom mode include amplification mode or diminution mould according to the rotating direction Formula;The detection of detection module 603 is directed to the slide of mouse, and the weighting of the scaling speed is determined according to the slide The factor;Weighting block 604 is weighted processing to the scaling speed using the weighted factor, obtains target scale speed; Processing module 605 zooms in and out processing to the target object according to the target scale speed and zoom mode.By above-mentioned Mode can be eliminated because the limitation of roller-coaster distance is limited to image scaling bring, according to the sliding speed of mouse to figure The scaling speed of picture is adjusted, and image is enabled to zoom to ideal size faster, enhances the intelligence of image scaling.
Fig. 7 is referred to, for the embodiment of the invention provides a kind of structural schematic diagrams of terminal.As shown in fig. 7, the terminal packet It includes: at least one processor 701, input equipment 703, output equipment 704, memory 705, at least one communication bus 702.Its In, communication bus 702 is for realizing the connection communication between these components.Wherein, input equipment 703 can be control panel or Person's microphone etc., output equipment 704 can be display screen etc..Wherein, memory 705 can be high speed RAM memory, can also be with It is non-labile memory (non-volatile memory), for example, at least a magnetic disk storage.Memory 705 is optional Can also be that at least one is located remotely from the storage device of aforementioned processor 701.Wherein processor 701 can combine Fig. 6 institute The device of description, batch processing code, and processor 701, input equipment 703 are stored in memory 705, and output equipment 704 is adjusted With the program code stored in memory 705, for performing the following operations:
Input equipment 703, for obtaining the rolling for rolling instruction when receiving the rolling instruction for mouse roller Dynamic direction and rolling speed;
Processor 701, for determining the scaling speed of target object according to the rolling speed, and according to the rolling square To the zoom mode determined to target object, the zoom mode includes amplification mode or diminution mode;
Processor 701 determines the scaling speed for detecting the slide for being directed to mouse, and according to the slide The weighted factor of degree;
Processor 701 obtains target scale for being weighted processing to the scaling speed using the weighted factor Speed;
Processor 701, for zooming in and out place to the target object according to the target scale speed and zoom mode Reason.
In one implementation, processor 701 is specifically used for:
Obtain mouse in display interface corresponding cursor with a distance from preset and the sliding speed of mouse;
If the cursor starting point is greater than the cursor terminating point at a distance from preset at a distance from preset, it is determined that The weighted factor is first kind weighted factor, and true according to the sliding speed of mouse and the corresponding relationship of first kind weighted factor The weighted factor value of the fixed scaling speed, the first kind weighted factor value are greater than 1.
In one implementation, processor 701 is specifically used for:
Obtain mouse in display interface corresponding cursor with a distance from preset and the sliding speed of mouse;
If the cursor starting point is less than the cursor terminating point at a distance from preset at a distance from preset, it is determined that The weighted factor is the second class weighted factor, and true according to the sliding speed of mouse and the corresponding relationship of the second class weighted factor The weighted factor value of the fixed scaling speed, the second class weighted factor value is between 0 to 1.
In one implementation, processor 701 is specifically used for:
Obtain the glide direction and sliding speed of mouse;
If the glide direction is the first preset direction, it is determined that the weighted factor is first kind weighted factor, and root Determine the weighted factor value of the scaling speed according to the sliding speed of mouse and the corresponding relationship of first kind weighted factor, described the A kind of weighted factor value is greater than 1.
If the glide direction is the second preset direction, it is determined that the weighted factor is the second class weighted factor, and root Determine the weighted factor value of the scaling speed according to the sliding speed of mouse and the corresponding relationship of the second class weighted factor, described the Two class weighted factor values are between 0 to 1.
In one implementation, before input equipment 703 obtains the rotating direction and rolling speed for rolling instruction, Processor 701 is also used to:
Detect the corresponding cursor of the mouse corresponding position in target object;
Using the position as the scaling center of target object.
In one implementation, after input equipment 703 obtains the rotating direction and rolling speed for rolling instruction, Processor 701 is also used to:
Whether detect in the image currently shown includes selected object;
If so, the selected object is determined as target object;
If it is not, the image currently shown is then determined as target object.
In one implementation, processor 701 is also used to:
When detect choose triggering command when, obtain mouse corresponding cursor in display interface sliding trace;
The object tag that the sliding trace is passed through is selected state.
In the embodiment of the present invention, when receiving the rolling instruction for mouse roller, institute is obtained by input equipment 703 State the rotating direction and rolling speed for rolling instruction;Processor 701 determines the scaling speed of target object according to the rolling speed Degree, and determine that the zoom mode includes amplification mode or diminution to the zoom mode of target object according to the rotating direction Mode;The detection of processor 701 is directed to the slide of mouse, and the weighting of the scaling speed is determined according to the slide The factor;Processor 701 is weighted processing to the scaling speed using the weighted factor, obtains target scale speed;Place Device 701 is managed, processing is zoomed in and out to the target object according to the target scale speed and zoom mode.Pass through above-mentioned side Formula can be eliminated because the limitation of roller-coaster distance is limited to image scaling bring, according to the sliding speed of mouse to image Scaling speed be adjusted, enable image to zoom to ideal size faster, enhance the intelligence of image scaling.
Module described in the embodiment of the present invention can pass through universal integrated circuit, such as CPU (Central Processing Unit, central processing unit), or pass through ASIC (Application Specific Integrated Circuit, specific integrated circuit) it realizes.
It should be appreciated that in embodiments of the present invention, alleged processor 701 can be central processing module (Central Processing Unit, CPU), which can also be other general processors, digital signal processor (Digital Signal Processor, DSP), specific integrated circuit (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic Device, discrete gate or transistor logic, discrete hardware components etc..General processor can be microprocessor or this at Reason device is also possible to any conventional processor etc..
It is total that bus 702 can be industry standard architecture (Industry Standard Architecture, ISA) Line, Peripheral Component Interconnect (Peripheral Component, PCI) bus or extended industry-standard architecture (Extended Industry Standard Architecture, EISA) bus etc., it is total which can be divided into address bus, data Line, control bus etc., for convenient for indicating, Fig. 7 is only indicated with a thick line, it is not intended that an only bus or a seed type Bus.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with Relevant hardware is instructed to complete by computer program, the program can be stored in computer storage medium, the journey Sequence is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, the computer storage medium can be magnetic Dish, CD, read-only memory (Read-Only Memory, ROM) or random access memory (Random Access Memory, RAM) etc..
The above disclosure is only the preferred embodiments of the present invention, cannot limit the right model of the present invention with this certainly It encloses, therefore equivalent changes made in accordance with the claims of the present invention, is still within the scope of the present invention.

Claims (10)

1. a kind of scaling method, which is characterized in that the described method includes:
When receiving the rolling instruction for mouse roller, the rotating direction and rolling speed for rolling instruction is obtained;
The scaling speed of target object is determined according to the rolling speed, and is determined according to the rotating direction to target object Zoom mode, the zoom mode include amplification mode or diminution mode;
Detection is directed to the slide of mouse, and the weighted factor of the scaling speed is determined according to the slide;
Processing is weighted to the scaling speed using the weighted factor, obtains target scale speed;
Processing is zoomed in and out to the target object according to the target scale speed and zoom mode.
2. the method according to claim 1, wherein the detection is directed to the slide of mouse, and according to institute State the weighted factor that slide determines the scaling speed, comprising:
Obtain mouse in display interface corresponding cursor with a distance from preset and the sliding speed of mouse;
If the cursor starting point is greater than the cursor terminating point at a distance from preset at a distance from preset, it is determined that described Weighted factor is first kind weighted factor, and determines institute according to the corresponding relationship of the sliding speed of mouse and first kind weighted factor The weighted factor value of scaling speed is stated, the first kind weighted factor value is greater than 1.
3. according to the method described in claim 2, it is characterized in that, the detection is directed to the slide of mouse, and according to institute State the weighted factor that slide determines the scaling speed, comprising:
Obtain mouse in display interface corresponding cursor with a distance from preset and the sliding speed of mouse;
If the cursor starting point is less than the cursor terminating point at a distance from preset at a distance from preset, it is determined that described Weighted factor is the second class weighted factor, and determines institute according to the corresponding relationship of the sliding speed of mouse and the second class weighted factor The weighted factor value of scaling speed is stated, the second class weighted factor value is between 0 to 1.
4. the method according to claim 1, wherein the detection is directed to the slide of mouse, and according to institute State the weighted factor that slide determines the scaling speed, comprising:
Obtain the glide direction and sliding speed of mouse;
If the glide direction is the first preset direction, it is determined that the weighted factor is first kind weighted factor, and according to mouse The corresponding relationship of target sliding speed and first kind weighted factor determines the weighted factor value of the scaling speed, the first kind Weighted factor value is greater than 1;
If the glide direction is the second preset direction, it is determined that the weighted factor is the second class weighted factor, and according to mouse The corresponding relationship of target sliding speed and the second class weighted factor determines the weighted factor value of the scaling speed, second class Weighted factor value is between 0 to 1.
5. method according to claim 1-4, which is characterized in that described to obtain the rolling square for rolling instruction To with before rolling speed, further includes:
Detect the corresponding cursor of the mouse corresponding position in target object;
Using the position as the scaling center of target object.
6. the method according to claim 1, wherein described obtain the rotating direction for rolling instruction and rolling After speed, further includes:
Whether detect in the image currently shown includes selected object;
If so, the selected object is determined as target object;
If it is not, the image currently shown is then determined as target object.
7. according to the method described in claim 6, it is characterized in that, the method also includes:
When detect choose triggering command when, obtain mouse corresponding cursor in display interface sliding trace;
The object tag that the sliding trace is passed through is selected state.
8. a kind of scaling processing device, which is characterized in that including for executing as claimed in any one of claims 1 to 7 The module of method.
9. a kind of terminal, which is characterized in that the processor, defeated including processor, input equipment, output equipment and memory Enter equipment, output equipment and memory to be connected with each other, wherein the memory is for storing computer program, the computer Program includes program instruction, and the processor is configured for calling described program instruction, is executed such as any one of claim 1-7 The method.
10. a kind of computer readable storage medium, which is characterized in that the computer storage medium is stored with computer program, The computer program includes program instruction, and described program instruction makes the processor execute such as right when being executed by a processor It is required that the described in any item methods of 1-7.
CN201810673890.0A 2018-06-26 2018-06-26 A kind of scaling method, device, terminal and medium Withdrawn CN109101174A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810673890.0A CN109101174A (en) 2018-06-26 2018-06-26 A kind of scaling method, device, terminal and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810673890.0A CN109101174A (en) 2018-06-26 2018-06-26 A kind of scaling method, device, terminal and medium

Publications (1)

Publication Number Publication Date
CN109101174A true CN109101174A (en) 2018-12-28

Family

ID=64845089

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810673890.0A Withdrawn CN109101174A (en) 2018-06-26 2018-06-26 A kind of scaling method, device, terminal and medium

Country Status (1)

Country Link
CN (1) CN109101174A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109799920A (en) * 2019-03-26 2019-05-24 珠海市智迪科技股份有限公司 The application method of the adjustable mouse of wheel speeds and mouse
CN111522479A (en) * 2020-04-24 2020-08-11 苏州云注软件技术有限公司 Method and device for operating PDF file, storage medium and electronic device
CN114153350A (en) * 2021-12-06 2022-03-08 北京金堤科技有限公司 Map scaling method and device, storage medium and electronic equipment

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6407749B1 (en) * 1999-08-04 2002-06-18 John H. Duke Combined scroll and zoom method and apparatus
CN101789234A (en) * 2009-01-23 2010-07-28 中兴通讯股份有限公司 Digital image scaling method and integrated system
CN102012755A (en) * 2010-11-23 2011-04-13 广东威创视讯科技股份有限公司 New operating method for mouse
CN102612679A (en) * 2009-11-17 2012-07-25 高通股份有限公司 Method of scrolling items on a touch screen user interface
CN102708540A (en) * 2012-04-21 2012-10-03 上海量明科技发展有限公司 Method and client side for zooming screen capturing areas
KR101355480B1 (en) * 2011-10-20 2014-02-05 주식회사 인프라웨어 Method for selecting an area of web document using mouse based on document object model tree
CN103955302A (en) * 2014-05-05 2014-07-30 沈阳工业大学 Mouse and method capable of identifying roller pressure
JP2015032095A (en) * 2013-08-01 2015-02-16 株式会社デンソー Screen display device, screen display method, and screen display program
CN104423826A (en) * 2013-09-03 2015-03-18 上海炬力集成电路设计有限公司 Method and device for zooming by middle mouse button and scroll wheel
CN104615375A (en) * 2015-02-04 2015-05-13 华为技术有限公司 Method and device for image scaling and broadcast content switching of handheld electronic equipment

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6407749B1 (en) * 1999-08-04 2002-06-18 John H. Duke Combined scroll and zoom method and apparatus
CN101789234A (en) * 2009-01-23 2010-07-28 中兴通讯股份有限公司 Digital image scaling method and integrated system
CN102612679A (en) * 2009-11-17 2012-07-25 高通股份有限公司 Method of scrolling items on a touch screen user interface
CN102012755A (en) * 2010-11-23 2011-04-13 广东威创视讯科技股份有限公司 New operating method for mouse
KR101355480B1 (en) * 2011-10-20 2014-02-05 주식회사 인프라웨어 Method for selecting an area of web document using mouse based on document object model tree
CN102708540A (en) * 2012-04-21 2012-10-03 上海量明科技发展有限公司 Method and client side for zooming screen capturing areas
JP2015032095A (en) * 2013-08-01 2015-02-16 株式会社デンソー Screen display device, screen display method, and screen display program
CN104423826A (en) * 2013-09-03 2015-03-18 上海炬力集成电路设计有限公司 Method and device for zooming by middle mouse button and scroll wheel
CN103955302A (en) * 2014-05-05 2014-07-30 沈阳工业大学 Mouse and method capable of identifying roller pressure
CN104615375A (en) * 2015-02-04 2015-05-13 华为技术有限公司 Method and device for image scaling and broadcast content switching of handheld electronic equipment

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109799920A (en) * 2019-03-26 2019-05-24 珠海市智迪科技股份有限公司 The application method of the adjustable mouse of wheel speeds and mouse
CN111522479A (en) * 2020-04-24 2020-08-11 苏州云注软件技术有限公司 Method and device for operating PDF file, storage medium and electronic device
CN111522479B (en) * 2020-04-24 2022-03-08 苏州云注软件技术有限公司 Method and device for operating PDF file, storage medium and electronic device
CN114153350A (en) * 2021-12-06 2022-03-08 北京金堤科技有限公司 Map scaling method and device, storage medium and electronic equipment
CN114153350B (en) * 2021-12-06 2023-09-29 北京金堤科技有限公司 Map scaling method and device, storage medium and electronic equipment

Similar Documents

Publication Publication Date Title
CN109087239B (en) Face image processing method and device and storage medium
US10397649B2 (en) Method of zooming video images and mobile display terminal
KR102574183B1 (en) Electronic apparatus and method for controlling display
CN105183284B (en) A kind of method and user terminal for checking short message
EP3070589B1 (en) Method and device for resizing selected region of previewing interface
US11829581B2 (en) Display control method and terminal
CN104991696B (en) A kind of information processing method and electronic equipment
KR20160143139A (en) Electronic device and method for controlling receiving of message in electronic device
CN109101174A (en) A kind of scaling method, device, terminal and medium
CN105653190B (en) Communication terminal and its one-hand operating format control method and device
CN110221753A (en) Application program downloads classification method and terminal device
CN109298909A (en) A kind of method, mobile terminal and computer readable storage medium that window is adjusted
CN106168892A (en) A kind of split screen photographic method and terminal
CN105549847B (en) A kind of image display method and user terminal at playback of songs interface
CN106651338A (en) Method for payment processing and terminal
CN107480488A (en) Solve lock control method and Related product
CN106648281B (en) Screenshot method and device
CN105159494A (en) Information display method and device
CN109254707A (en) A kind of method, mobile terminal and computer readable storage medium that window is adjusted
CN112488914A (en) Image splicing method, device, terminal and computer readable storage medium
KR102477522B1 (en) Electronic device and method for adjusting exposure of camera of the same
CN106873888A (en) A kind of method and terminal for showing user interface
CN105677081B (en) A kind of touch control method and terminal device
CN109254821A (en) Window Zoom method, device, terminal and computer readable storage medium
CN111143731B (en) Display method and device for webpage interface zooming and terminal equipment

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
CB02 Change of applicant information

Address after: 518000 Guangdong city of Shenzhen province Qianhai Shenzhen Hong Kong cooperation zone before Bay Road No. 1 building 201 room A (located in Shenzhen Qianhai business secretary Co. Ltd.)

Applicant after: Shenzhen Rongyimai Information Technology Co., Ltd.

Address before: 518000 Guangdong city of Shenzhen province Qianhai Shenzhen Hong Kong cooperation zone before Bay Road No. 1 building 201 room A (located in Shenzhen Qianhai business secretary Co. Ltd.)

Applicant before: Maimaiti Mdt InfoTech Ltd, Shenzhen

CB02 Change of applicant information
WW01 Invention patent application withdrawn after publication

Application publication date: 20181228

WW01 Invention patent application withdrawn after publication