CN104238863B - Android-based circle selection scaling method and system - Google Patents

Android-based circle selection scaling method and system Download PDF

Info

Publication number
CN104238863B
CN104238863B CN201410438956.XA CN201410438956A CN104238863B CN 104238863 B CN104238863 B CN 104238863B CN 201410438956 A CN201410438956 A CN 201410438956A CN 104238863 B CN104238863 B CN 104238863B
Authority
CN
China
Prior art keywords
screen
area
length
width
zoom
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201410438956.XA
Other languages
Chinese (zh)
Other versions
CN104238863A (en
Inventor
任志斌
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Shirui Electronics Co Ltd
Original Assignee
Guangzhou Shirui Electronics Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Shirui Electronics Co Ltd filed Critical Guangzhou Shirui Electronics Co Ltd
Priority to CN201410438956.XA priority Critical patent/CN104238863B/en
Publication of CN104238863A publication Critical patent/CN104238863A/en
Application granted granted Critical
Publication of CN104238863B publication Critical patent/CN104238863B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • User Interface Of Digital Computer (AREA)

Abstract

The invention provides a circled zooming method and system based on Android, and the method comprises the following steps: reading data in the frame buffer memory, generating a screen capture picture according to the data and displaying the screen capture picture on a screen; monitoring a screen touch event and generating a circled area; constructing a region to be zoomed according to the screen parameters and the selection region; obtaining the distance to be moved according to the central point of the area to be zoomed and the central point of the screen; determining a scaling ratio; obtaining and generating a translation matrix according to the distance needing to be moved, and generating a scaling matrix according to the scaling; and moving and zooming the screen capture picture corresponding to the area to be zoomed according to the translation matrix and the zooming matrix. According to the invention, the data in the frame buffer memory is directly read, so that the rapid screen capture is realized, and the instantaneous picture in the video playing can be obtained; and automatically constructing an area to be amplified and a scaling ratio according to the circled area and the screen parameters, automatically carrying out mobile scaling and displaying the area at the middle position of the screen, and realizing the scaling of any interface.

Description

Circle based on Android selects Zoom method and system
【Technical field】
The present invention relates to smart machine field, more particularly to a kind of circle based on Android selects Zoom method and system.
【Background technology】
Android is a kind of freedom based on Linux and the operating system of open source code, through large-scale application On the smart machines such as smart mobile phone, tablet personal computer.And existing its function of the smart machine based on Android is also increasingly strong Greatly, such as Intelligent flat equipment, possess the functions such as writing, annotation, drawing, multimedia recreation, incorporated man-machine interaction, flat board shows Show, the multinomial technology such as multimedia signal processing and network transmission, be to handle official business, impart knowledge to students, picture and text interactive demonstration in the information age Preferred solution, the existing Intelligent flat equipment based on Android is in classroom or conference scenario in use, due to display Picture, word or video pictures it is too small, the student or staff to sit in the back row does not often see interior on Chu's screen Hold, now just need to be amplified the content shown on screen.
【The content of the invention】
Based on this, the present invention is solution the problems of the prior art, there is provided a kind of circle choosing scaling side based on Android Method.
The content of the embodiment of the present invention is as follows:
A kind of circle based on Android selects Zoom method, comprises the following steps:
After triggering command is received, the data corresponding with current screen interface in frame buffer memory are read, according to The data generate screenshot picture and are shown on screen;
Monitor screen touch event, generation circle favored area;
Zoom area is treated according to screen parameter and the circle favored area structure;
According to the central point of the central point and screen for treating zoom area, the distance that need to be moved is obtained;Treated according to described Zoom area and the screen parameter determine scaling;Translation matrix is generated according to the distance that need to be moved, according to described Scaling generates scaled matrix;
The screenshot picture according to corresponding to the translation matrix and the scaled matrix treat zoom area is moved and contracted Put.
Accordingly, the embodiment of the present invention additionally provides a kind of circle based on Android and selects panntographic system, including:
Screen capture module, for after triggering command is received, read in frame buffer memory with current screen interface pair The data answered, generate screenshot picture according to the data and be shown on screen;
Modeling block is enclosed, for monitoring screen touch event, generation circle favored area;
Treat that zoom area builds module, for treating zoom area according to screen parameter and the circle favored area structure;
Matrix generation module, for treating the central point of zoom area and the central point of screen according to, acquisition needs to move Distance;Treat that zoom area and the screen parameter determine scaling according to described;Generated according to the distance that need to be moved Translation matrix, scaled matrix is generated according to the scaling;
Mobile Zoom module, for screenshotss corresponding to treating zoom area according to the translation matrix and the scaled matrix Picture moves scaling.
The beneficial effects of the present invention are:The present invention is realized quick by directly reading the data in Android frame buffers Screenshotss, the instantaneous picture in video playback can be obtained;Build the area for needing to amplify automatically with screen parameter according to circle favored area Domain and scaling, move automatically and scale and be shown in screen centre position, realize the scaling of arbitrary interface.
【Brief description of the drawings】
Fig. 1 is the schematic flow sheet that the circle based on Android selects Zoom method in the embodiment of the present invention;
Fig. 2 is the screenshotss process schematic in the embodiment of the present invention;
Fig. 3 is a kind of schematic diagram for the method for generating circle favored area in the embodiment of the present invention;
Fig. 4 is a kind of schematic flow sheet for treating zoom area construction method in the embodiment of the present invention;
Fig. 5 is the structural representation that the circle based on Android selects panntographic system in the embodiment of the present invention;
Fig. 6 is to treat that zoom area builds a kind of structural representation of module in the embodiment of the present invention.
【Embodiment】
Present disclosure is described in detail with reference to specific embodiment.Although it is pointed out that description below Embodiment in be illustrated only for the amplification of picture, but the method for the application present invention can equally realize arbitrary interface Diminution.
As shown in figure 1, a kind of circle based on Android selects Zoom method, comprise the following steps:
S100 reads the data corresponding with current screen interface in frame buffer memory after triggering command is received, Screenshot picture is generated according to the data and is shown on screen;
S200 monitors screen touch event, generation circle favored area;
S300 treats zoom area according to screen parameter and the circle favored area structure;
S400 treats the central point of zoom area and the central point of screen according to, obtains the distance that need to be moved;According to institute State and treat that zoom area and the screen parameter determine scaling;Translation matrix is generated according to the distance that need to be moved, according to The scaling generates scaled matrix;
S500 screenshot pictures according to corresponding to the translation matrix and the scaled matrix treat zoom area move And scaling.
Specifically, after triggering command is received, screenshotss operation is carried out first.Described triggering command may be from two kinds Mode, one kind are issued in Android ccf layers (framework) PhoneWindowManager (Android window managements) The message is intercepted before upper layer application, prevents press key message from being intercepted by upper level applications.Zoom button is selected to disappear intercepting circle The screenshotss operation of triggering following after breath;Another mode is that floating apparatus is provided with screen, and floating apparatus includes floating Moving-coil selects zoom button, and that monitors that floating ring selects zoom button presses event, when receiving this and pressing event, triggering following Screenshotss operate.Above two triggering mode can use one or combined use.
Screenshotss operation in the present embodiment is based on frame buffer memory (Frame Buffer), and Fig. 2 is in the present embodiment Screenshotss process schematic.Frame buffer memory (hereinafter referred to as frame buffer) is a direct map of picture shown by screen, again Referred to as bit map (Bit Map) or grating.Each memory cell of frame buffer corresponds to a pixel on screen, and whole frame delays Deposit a corresponding two field picture.Image information in Android device is all to write what screen got on by frame buffer, therefore reads frame Raw pixel data inlet flow in caching, the input flow data is read in into original pixels array, then by the original pixels array Be converted to needed for current Android device screen color data (such as by rgb565 encode initial data, be converted into The bitmap data of rgb888 codings), Bit Map are created according to screen aspect, are arranged to picture control imageView bitmap number Shown according to and the screen the superiors, realize freezing efficiency, cheated human vision, allow spectators to think to be constantly in original interface.
After screenshotss, the circle election action of user is obtained, that is, screen touch event is monitored, according to the touch action of user's finger Generation circle favored area.Specifically, the present embodiment provides a kind of method for generating circle favored area, Fig. 3 is that the flow of this method is illustrated Figure.When listening to user's finger and pressing (MotionEvent.ACTION_DOWN), in imageView drawing practice (onDraw) the drafting rectangle method (canvas.drawRect) of Android painting canvas is called to draw rectangle in, when listening to user Change the coordinate of rectangle during finger movement (MotionEvent.ACTION_MOVE), call imageView refreshing control method (invalidate) control is redrawn, draws rectangle;When listening to user's finger and leaving, circle is generated according to the rectangle finally drawn Favored area, and rectangle is removed from interface.
After obtaining circle favored area, construct automatically according to screen parameter and circle favored area and treat zoom area, its object is to Prevent scaling pictures from causing stretcher strain, ensure the true of picture scaling.Wherein, described screen parameter include screen length, Screen width and screen aspect ratio, the interface that can be provided by Android obtain.Structure ensures area to be scaled when zoom area The length-width ratio in domain is consistent with screen aspect ratio, limits maximum magnification ratio.In other words, ensure undistorted after amplifying.
In one embodiment, zoom area construction method can be treated using as shown in Figure 4.This method includes following step Suddenly:
S301 obtains length, width and the length-width ratio of the circle favored area, into S302;
S302 judges whether the length-width ratio of the circle favored area is more than screen aspect ratio;If so, then enter S303;If it is not, Then enter S304;
S303 treats the length of the circle favored area preselected length of zoom area as described in, by the circle favored area Length divided by screen aspect are used for the preselected width for treating zoom area, into S305;
The width of the circle favored area is multiplied by screen aspect and is used for the preselected length for treating zoom area by S304, will The width of the circle favored area treats the preselected width of zoom area as described in, into S305;
Screen width divided by the preselected width for treating zoom area are obtained multiple to be amplified by S305, or screen is grown Degree divided by the preselected length for treating zoom area obtain multiple to be amplified, judge whether the multiple to be amplified is put more than maximum Big multiple;If so, then enter S306;If it is not, then enter S307;
S306 treats screen length divided by the maximum amplification length of zoom area as described in, by screen width Divided by the maximum amplification treats the width of zoom area as described in, into S308;
S307 waits the preselected length for treating zoom area the length of zoom area as described in, by the area to be scaled The preselected width in domain treats the width of zoom area as described in, into S308;
S308 treats the central point of zoom area using the central point of the circle favored area described in, according to the area to be scaled Length, width and the central point in domain treat zoom area described in building.
In the above-mentioned methods, the length-width ratio for treating zoom area finally determined is consistent with screen aspect ratio, to ensure not draw Stretch, and limit magnification ratio, it is undistorted after guarantee amplification, and treat that zoom area is not small by what the above method finally determined In circle favored area, ensure that the four corner that choosing is enclosed to user is amplified and ensures that central point is constant.
After it is determined that treating zoom area, picture corresponding to zoom area is treated by way of matrixing and is put Greatly.First according to the central point and center's point of screen for treating zoom area, carry out coordinate and subtract each other, draw the distance that need to be moved, then root According to treating that zoom area and screen parameter determine scaling, in this example, in order to which the picture for treating zoom area is amplified to entirely Screen display, therefore, by screen width divided by treat the width of zoom area, or by screen length divided by treat the length of zoom area Degree, you can obtain scaling.Using prior art, translation matrix is generated by the distance that need to be translated, is generated and contracted by scaling Matrix is put, being drawn by bitmap data for Android painting canvas is called in picture control imageView drawing practice (onDraw) The method (canvas.drawBitmap) of picture, each pixel of image after changing is calculated according to translation matrix and scaled matrix Residing coordinate points post-plot, it is achieved thereby that changing mobile and scaling pictures using matrix.
The circle based on Android in the embodiment of the present invention is selected in Zoom method by directly reading Android frame buffers In data carry out screenshotss, screenshotss speed is fast, efficiency high, can intercept and amplified video play in instantaneous picture, Er Qietong Crossing screenshotss can realize that vision is cheated, and allow spectators to take for follow-up zoom operations and be constantly in original interface;Basis of the present invention Circle favored area builds and treats zoom area automatically with screen parameter, undistorted after guarantee picture scaling, moves scaling automatically simultaneously It is shown in screen centre position.The scaling to Android smart machine arbitrary interfaces can be realized using the method for the present invention.
Present invention also offers a kind of circle based on Android to select panntographic system, as shown in figure 5, including:
Screen capture module 100, for after triggering command is received, read in frame buffer memory with current screen interface Corresponding data, generate screenshot picture according to the data and be shown on screen;
Modeling block 200 is enclosed, for monitoring screen touch event, generation circle favored area;
Treat that zoom area builds module 300, for treating zoom area according to screen parameter and the circle favored area structure;
Matrix generation module 400, for treating the central point of zoom area and the central point of screen according to, acquisition needs to move Dynamic distance;Treat that zoom area and screen parameter determine scaling according to described;It is flat according to the distance generation that need to be moved Matrix is moved, scaled matrix is generated according to the scaling;
Mobile Zoom module 500, corresponding to treating zoom area according to the translation matrix and the scaled matrix Screenshot picture moves scaling.
The circle of the present invention selects panntographic system to may also include trigger module, in one embodiment, the trigger module bag Include circle and select zoom button trigger mode, Android framework (ccf layer) pass through PhoneWindowManager (Android Window management) interceptkeyBeforeDispathing (button is intercepted before Distribution Events) method intercept circle select scaling to press Key message, the press key message is intercepted before press key message is distributed to upper layer application by Android, prevented on the press key message Layer application program intercepts.After the press key message is intercepted, Android startActivity (opening application) method is called to touch Send out screen capture module 100.
In another embodiment, the trigger module selects zoom button trigger module including floating ring, for monitoring What floating ring selected zoom button presses event, when receive it is described press event when, call Android startActivity sides Method triggers screen capture module 100.
Above two embodiment can be used in combination or take one.
The screenshotss operation of screen capture module 100 is based on frame buffer memory (Frame Buffer), screenshotss mould in the present embodiment Block 100 reads the raw pixel data inlet flow in frame buffer, and the input flow data is read in into original pixels array, then by the original Beginning array of pixels be converted to needed for current Android device screen color data (such as by rgb565 encode initial data, It is translated into the bitmap data of rgb888 codings), Bit Map are created in conjunction with the length and width of screen, are arranged to picture control ImageView bitmap data is simultaneously shown in the screen the superiors.
After screenshotss, circle modeling block 200 obtains the circle election action of user, that is, screen touch event is monitored, according to user's hand The touch action generation circle favored area of finger.In one embodiment, enclose modeling block 200 and press listening to user's finger (MotionEvent.ACTION_DOWN) when, Android painting canvas is called in control View graphing method (onDraw) Drafting rectangle method (canvas.drawRect) draw rectangle, when listen to user's finger movement (MotionEvent.ACTION_MOVE) change the coordinate of rectangle when, call view refreshing control method (invalidate) Control is redrawn, draws rectangle;When listening to user's finger and leaving, according to the rectangle generation circle favored area finally drawn, and will Rectangle removes from interface.
After obtaining circle favored area, treat that zoom area structure module 300 constructs automatically according to screen parameter and circle favored area Zoom area is treated, its object is to prevent scaling pictures from causing stretcher strain, ensures the true of picture scaling.Wherein, it is described Screen parameter includes screen length, screen width and screen aspect ratio, and the interface that can be provided by Android obtains.Structure is treated Ensure to treat that the length-width ratio of zoom area is consistent with screen aspect ratio during zoom area, limit maximum magnification ratio.In other words, protect It is undistorted after card amplification.
As shown in fig. 6, in one embodiment, treat that zoom area structure module 300 includes:
Acquisition module 301, for obtaining length, width and the length-width ratio of the circle favored area;
First judge module 302, for judging the length-width ratio of the circle favored area and the size of screen aspect ratio;
First computing module 303, for calculate it is described treat the preselected length and preselected width of zoom area, and calculate and wait to put Big multiple;If the length-width ratio of the circle favored area is more than screen aspect ratio, the preselected length for treating zoom area is equal to institute The length of circle favored area is stated, the preselected width for treating zoom area is equal to the length divided by screen aspect of the circle favored area Than;If the length-width ratio of the circle favored area is less than or equal to screen aspect ratio, the preselected length for treating zoom area is equal to The width of the circle favored area is multiplied by screen aspect ratio, and the preselected width for treating zoom area is equal to the width of the circle favored area Degree;By screen width divided by the preselected width for treating zoom area, or by screen length divided by the zoom area for the treatment of Preselected length, obtain multiple to be amplified;
Second judge module 304, for judging the size of the multiple to be amplified and maximum amplification;
Second computing module 305, for calculating the length and width for treating zoom area;If the multiple to be amplified is big In the maximum amplification, then the length for treating zoom area is equal to screen length divided by the maximum amplification, institute State and treat that the width of zoom area is equal to screen width divided by the maximum amplification;If the multiple to be amplified is less than or equal to The maximum amplification, then the length for treating zoom area be equal to preselected length, the width for treating zoom area is equal to Preselected width;
Generation module 306, for treating the central point of zoom area as described in using the central point of the circle favored area, according to institute State and treat zoom area described in the length for treating zoom area, width and central point structure.
By it is above-mentioned treat zoom area build module 300 determine it is final treat zoom area, this treats the length of zoom area It is wide more consistent than with screen aspect ratio, to ensure not stretch, and magnification ratio is limited, picture is undistorted after ensureing amplification, and By this treat zoom area build module 300 finally determine treat zoom area not less than circle favored area, ensure to user enclose select Four corner be amplified and ensure that central point is constant.
After it is determined that treating zoom area, matrix generation module 400 will treat the central point and center's point of screen of zoom area Carry out coordinate to subtract each other, draw the distance that need to be moved, further according to treating that zoom area and screen parameter determine scaling, a kind of real Apply in mode, in order to which the picture for treating zoom area is amplified into full screen display, matrix generation module 400 is by screen width divided by leads to Cross the width for treating zoom area that second computing module obtains, or by screen length divided by treat the length of zoom area Degree, obtain scaling.Translation matrix is generated by the distance that need to be translated, scaled matrix is generated by scaling.Mobile scaling mould Block 500 calls being drawn by bitmap data for Android painting canvas to scheme in picture control imageView drawing practice (onDraw) The method (canvas.drawBitmap) of piece, each pixel institute of image after changing is calculated according to translation matrix and scaled matrix The coordinate points post-plot at place, it is achieved thereby that changing mobile and scaling pictures using matrix.
Circle in the embodiment of the present invention selects the realization of its each function of panntographic system to can refer to above-mentioned method, herein no longer Repeated.
Embodiment described above only expresses the several embodiments of the present invention, and its description is more specific and detailed, but simultaneously Therefore the limitation to the scope of the claims of the present invention can not be interpreted as.It should be pointed out that for one of ordinary skill in the art For, without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to the guarantor of the present invention Protect scope.Therefore, the protection domain of patent of the present invention should be determined by the appended claims.

Claims (8)

1. a kind of circle based on Android selects Zoom method, it is characterised in that comprises the following steps:
After triggering command is received, the data corresponding with current screen interface in frame buffer memory are read, according to the number According to generation screenshot picture and it is shown on screen;
Monitor screen touch event, generation circle favored area;
Zoom area is treated according to screen parameter and the circle favored area structure;
According to the central point of the central point and screen for treating zoom area, the distance that need to be moved is obtained;Wait to scale according to described Region and the screen parameter determine scaling;Translation matrix is generated according to the distance that need to be moved, according to the scaling Ratio generates scaled matrix;
The screenshot picture according to corresponding to the translation matrix and the scaled matrix treat zoom area is moved and scaled;
It is described to build with the circle favored area according to screen parameter and treat that the process of zoom area comprises the following steps:
Obtain length, width and the length-width ratio of the circle favored area;
According to the length-width ratio of the circle favored area and the size of screen aspect ratio, treat described in judgement zoom area preselected length and Preselected width;
If the length-width ratio of the circle favored area is more than screen aspect ratio, the preselected length for treating zoom area is equal to the circle The length of favored area, the preselected width for treating zoom area are equal to the length divided by screen aspect ratio of the circle favored area;If The length-width ratio of the circle favored area is less than or equal to screen aspect ratio, then the preselected length for treating zoom area is equal to the circle The width of favored area is multiplied by screen aspect ratio, and the preselected width for treating zoom area is equal to the width of the circle favored area;
By screen width divided by the preselected width for treating zoom area, or by screen length divided by the zoom area for the treatment of Preselected length, multiple to be amplified is obtained, according to the size of the multiple to be amplified and maximum amplification, zoom area is treated in judgement Length and width;
If the multiple to be amplified is more than the maximum amplification, the length for treating zoom area is removed equal to screen length With the maximum amplification, the width for treating zoom area is equal to screen width divided by the maximum amplification;If institute State multiple to be amplified and be less than or equal to the maximum amplification, then the length for treating zoom area is equal to preselected length, institute State and treat that the width of zoom area is equal to preselected width;
The central point of zoom area is treated as described in using the central point of the circle favored area, according to the length for treating zoom area, Zoom area is treated described in width and central point structure;
The screenshot picture according to corresponding to the translation matrix and the scaled matrix treat zoom area is moved and contracted The process put includes:
Coordinate points post-plot after calculating change according to translation matrix and scaled matrix residing for each pixel of image.
2. the circle according to claim 1 based on Android selects Zoom method, it is characterised in that the monitoring screen touches Touch event, the process of generation circle favored area comprises the following steps:
When listening to user's finger and pressing, rectangle is drawn;
When listening to user's finger movement, change the coordinate of the rectangle, repaint rectangle, until listening to user's finger When leaving, according to the rectangle generation circle favored area repainted.
3. the circle according to claim 1 based on Android selects Zoom method, it is characterised in that waits to scale according to described Region and the screen parameter determine that the process of scaling comprises the following steps:
By screen width divided by the width for treating zoom area, or by screen length divided by the length for treating zoom area Degree, obtain scaling.
4. the circle according to any one of claim 1 to 3 based on Android selects Zoom method, it is characterised in that also wraps Include following steps:
Intercepted in Android ccf layers after circle selects zoom button message and judge to receive the triggering command;
And/or
That monitors that floating ring selects zoom button presses event, when receive it is described press event when, judgement receives the triggering Instruction.
5. a kind of circle based on Android selects panntographic system, it is characterised in that including:
Screen capture module, it is corresponding with current screen interface in frame buffer memory for after triggering command is received, reading Data, generate screenshot picture according to the data and be shown on screen;
Modeling block is enclosed, for monitoring screen touch event, generation circle favored area;
Treat that zoom area builds module, for treating zoom area according to screen parameter and the circle favored area structure;
Matrix generation module, for treating the central point of zoom area and the central point of screen according to, obtain need to move away from From;Treat that zoom area and screen parameter determine scaling according to described;Translation matrix is generated according to the distance that need to be moved, Scaled matrix is generated according to the scaling;
Mobile Zoom module, for screenshot picture corresponding to treating zoom area according to the translation matrix and the scaled matrix Move scaling;
The screenshot picture according to corresponding to the translation matrix and the scaled matrix treat zoom area moves scaling Process include:
Coordinate points post-plot after calculating change according to translation matrix and scaled matrix residing for each pixel of image;
It is described to treat that zoom area structure module includes:
Acquisition module, for obtaining length, width and the length-width ratio of the circle favored area;
First judge module, for judging the length-width ratio of the circle favored area and the size of screen aspect ratio;
First computing module, for calculating the preselected length and preselected width for treating zoom area, and calculate multiple to be amplified; If the length-width ratio of the circle favored area is more than screen aspect ratio, the preselected length for treating zoom area is equal to the circle constituency The length in domain, the preselected width for treating zoom area are equal to the length divided by screen aspect ratio of the circle favored area;It is if described The length-width ratio of circle favored area is less than or equal to screen aspect ratio, then the preselected length for treating zoom area is equal to the circle constituency The width in domain is multiplied by screen aspect ratio, and the preselected width for treating zoom area is equal to the width of the circle favored area;By screen Width divided by the preselected width for treating zoom area, or by screen length divided by the preselected length for treating zoom area, Obtain multiple to be amplified;
Second judge module, for judging the size of the multiple to be amplified and maximum amplification;
Second computing module, for calculating the length and width for treating zoom area;If the multiple to be amplified is more than described Maximum amplification, then the length for treating zoom area be equal to screen length divided by the maximum amplification, it is described to wait to contract The width for putting region is equal to screen width divided by the maximum amplification;If the multiple to be amplified be less than or equal to it is described most Big multiplication factor, then the length for treating zoom area be equal to preselected length, it is wide that the width for treating zoom area is equal to pre-selection Degree;
Generation module, for treating the central point of zoom area as described in using the central point of the circle favored area, wait to contract according to described Put and treat zoom area described in length, width and the central point structure in region.
6. the circle according to claim 5 based on Android selects panntographic system, it is characterised in that the circle modeling block exists When listening to user's finger and pressing, rectangle is drawn, when listening to user's finger movement, changes the coordinate of the rectangle, lays equal stress on New draw makees rectangle, when being left up to listening to user's finger, according to the rectangle generation circle favored area repainted.
7. the circle according to claim 5 based on Android selects panntographic system, it is characterised in that is given birth to by the matrix Into module, by screen width divided by by second computing module calculate described in treat the width of zoom area, or will Screen length divided by by second computing module calculate described in treat the length of zoom area, obtain scaling.
8. the circle based on Android according to any one of claim 5 to 7 selects panntographic system, it is characterised in that also wraps Trigger module is included, the trigger module selects zoom button trigger module including circle, for intercepting circle choosing in Android ccf layers Judge to receive the triggering command after zoom button message, and/or zoom button trigger module is selected including floating ring, for supervising Listen what floating ring selected zoom button to press event, when receive it is described press event when, judgement receives the triggering command.
CN201410438956.XA 2014-08-29 2014-08-29 Android-based circle selection scaling method and system Active CN104238863B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410438956.XA CN104238863B (en) 2014-08-29 2014-08-29 Android-based circle selection scaling method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410438956.XA CN104238863B (en) 2014-08-29 2014-08-29 Android-based circle selection scaling method and system

Publications (2)

Publication Number Publication Date
CN104238863A CN104238863A (en) 2014-12-24
CN104238863B true CN104238863B (en) 2018-02-16

Family

ID=52227064

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410438956.XA Active CN104238863B (en) 2014-08-29 2014-08-29 Android-based circle selection scaling method and system

Country Status (1)

Country Link
CN (1) CN104238863B (en)

Families Citing this family (24)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105988700B (en) * 2015-02-12 2019-12-27 中兴通讯股份有限公司 Terminal screen display method and device
CN104822088B (en) * 2015-04-16 2019-03-19 腾讯科技(北京)有限公司 Video image zooming method and apparatus
CN104793915B (en) * 2015-04-30 2019-08-02 魅族科技(中国)有限公司 A kind of multi-screen display method and terminal
CN104991725B (en) * 2015-07-28 2018-02-23 北京金山安全软件有限公司 Picture clipping method and system
CN105045604A (en) * 2015-08-25 2015-11-11 广州视睿电子科技有限公司 Method and system for drawing graph
CN105573702A (en) * 2015-12-16 2016-05-11 广州视睿电子科技有限公司 Method and system for synchronizing movement and scaling of remote annotation
CN105578275A (en) * 2015-12-16 2016-05-11 小米科技有限责任公司 Video display method and apparatus
CN107291346B (en) * 2016-04-12 2021-07-06 北京三星通信技术研究有限公司 Terminal device and method and device for processing drawing content of terminal device
CN106020680A (en) * 2016-05-04 2016-10-12 北京小米移动软件有限公司 Information display method and device
CN106095260B (en) * 2016-06-12 2019-11-19 福建天泉教育科技有限公司 Highlight the method and system in region
JP6458782B2 (en) * 2016-07-28 2019-01-30 カシオ計算機株式会社 Display control apparatus, display control method, and program
CN106339192B (en) * 2016-08-24 2019-12-06 腾讯科技(深圳)有限公司 Region sharing method, device and system
CN107870703B (en) * 2016-09-26 2020-09-01 北京京东尚科信息技术有限公司 Method, system and terminal equipment for full-screen display of picture
CN106802800A (en) * 2016-12-30 2017-06-06 深圳芯智汇科技有限公司 The generation method and display device of graphical interfaces
CN108509446A (en) * 2017-02-27 2018-09-07 南京橙红科技股份有限公司 Graphical data based on iOS system is drawn and the system and method for statistical analysis
CN107704176A (en) * 2017-10-30 2018-02-16 努比亚技术有限公司 A kind of picture-adjusting method and terminal
CN109963200A (en) * 2017-12-25 2019-07-02 上海全土豆文化传播有限公司 Video broadcasting method and device
CN110324656B (en) * 2018-03-28 2022-11-08 视联动力信息技术股份有限公司 Data processing method and device for video network
CN109729408B (en) * 2018-12-19 2022-03-11 四川坤和科技有限公司 Mobile terminal high-definition online video scaling method
CN109901904B (en) * 2019-02-25 2022-06-07 努比亚技术有限公司 Application picture adjusting method in wearable device and wearable device
CN110941378B (en) * 2019-11-12 2022-03-01 北京达佳互联信息技术有限公司 Video content display method and electronic equipment
CN111210387B (en) * 2019-12-27 2023-07-25 广东金赋科技股份有限公司 Picture processing method
CN111459369B (en) * 2020-04-13 2021-07-20 深圳康佳电子科技有限公司 Interface element screening method, intelligent terminal and storage medium
CN112863256B (en) * 2021-01-18 2022-09-23 焦作大学 Economic management learns teaching and uses combination formula teaching aid

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101582006A (en) * 2008-05-13 2009-11-18 明基电通有限公司 Interactive electronic device and interactive method thereof
CN101616281A (en) * 2009-06-26 2009-12-30 中兴通讯股份有限公司南京分公司 A kind of with local method and the portable terminal that amplifies of mobile TV playing picture
CN103176712A (en) * 2013-03-08 2013-06-26 北京小米科技有限责任公司 Image magnification display method and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005316558A (en) * 2004-04-27 2005-11-10 Sanyo Electric Co Ltd Screen zooming method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101582006A (en) * 2008-05-13 2009-11-18 明基电通有限公司 Interactive electronic device and interactive method thereof
CN101616281A (en) * 2009-06-26 2009-12-30 中兴通讯股份有限公司南京分公司 A kind of with local method and the portable terminal that amplifies of mobile TV playing picture
CN103176712A (en) * 2013-03-08 2013-06-26 北京小米科技有限责任公司 Image magnification display method and device

Also Published As

Publication number Publication date
CN104238863A (en) 2014-12-24

Similar Documents

Publication Publication Date Title
CN104238863B (en) Android-based circle selection scaling method and system
US20220319139A1 (en) Multi-endpoint mixed-reality meetings
CN105573702A (en) Method and system for synchronizing movement and scaling of remote annotation
EP3917131A1 (en) Image deformation control method and device and hardware device
CN108427589B (en) Data processing method and electronic equipment
WO2023116801A1 (en) Particle effect rendering method and apparatus, device, and medium
US20210150787A1 (en) Method and device for inserting image
WO2023016107A1 (en) Remote interaction method, apparatus and system, and electronic device and storage medium
CN107870703A (en) Method, system and the terminal device of full-screen picture displaying
CN107257506A (en) Many picture special efficacy loading methods and device
CN107911388B (en) Method and system for supervising mobile terminal application
US11451721B2 (en) Interactive augmented reality (AR) based video creation from existing video
WO2023231918A1 (en) Image processing method and apparatus, and electronic device and storage medium
CN112002017A (en) Virtual scene generation method, device, terminal, medium and virtual training system
CN210072615U (en) Immersive training system and wearable equipment
CN114972466A (en) Image processing method, image processing device, electronic equipment and readable storage medium
US20210286461A1 (en) Method and device for adjusting display of multimedia blackboard, medium and electronic device
CN104125497A (en) Webpage video recording method and device
CN109960562B (en) Information display method and device and computer readable storage medium
CN102012914A (en) Method and device for processing web page images
CN112804473A (en) Video conference presenting method and device, terminal equipment and storage medium
US11017565B1 (en) Method and device for adaptively controlling multimedia blackboard, medium, and electronic apparatus
CN210119873U (en) Supervision device based on VR equipment
CN107862034A (en) Method, device and equipment for rapidly saving files and storage medium
CN117292019A (en) Image processing method, device, equipment and medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant