The back light brightness regulating method and system of a kind of mobile terminal
Technical field
The present invention relates to technical field of mobile terminals, more particularly to a kind of back light brightness regulating method of mobile terminal
And system.
Background technology
As the use of the mobile terminals such as the continuous development of mobile terminal technology, mobile phone is increasingly popularized.Existing movement
Display brightness in terminal(That is the backlight illumination of display screen)All by control strip come what is adjusted, user is by touching slide
To control control strip, so as to realize that the backlight illumination of mobile terminal is adjusted.Although this method comparison is directly perceived, due to mobile whole
End screen is smaller, and control strip length is usually no more than ten centimetres, and backlight illumination is typically all that hundreds of grades of brightness are adjustable(Poor
Backlight lamp control chip is all to control brightness of backlight with the register of a byte, and a byte is 8, it is possible to achieve
255 grades of brightness adjustments;The series of preferable backlight lamp control chip brightness regulation is more), therefore, with so short control strip come
Regulation backlight show can only coarse adjustment, backlight illumination can not be fine-tuned, in the prior art the backlight of mobile terminal
Brightness regulation precision is relatively low.
Therefore, prior art has yet to be improved and developed.
The content of the invention
The technical problem to be solved in the present invention is, there is provided the back light brightness regulating method and system of a kind of mobile terminal,
Aim to solve the problem that backlight illumination degree of regulation is low in existing mobile terminal, the problem of can not being fine-tuned to backlight illumination.
The technical proposal for solving the technical problem of the invention is as follows:
A kind of back light brightness regulating method of mobile terminal, wherein, comprise the following steps:
A, the first control strip and the second control of adjusting backlight luminance are provided on the display screen of mobile terminal in advance
Bar;
B, when detecting first control strip and the second control strip while when being touched, according to first control strip and
Backlight brightness values are gone out by touch location calculation on second control strip;
C, the backlight illumination of the mobile terminal is correspondingly adjusted according to the backlight brightness values.
The back light brightness regulating method of described mobile terminal, wherein, the step A is specifically included:
A1, the first control strip is set on the touch-screen of mobile terminal, the length of first control strip is represented with R1, institute
The top left co-ordinate for stating the first control strip is(X11, y11), the coordinate in the lower right corner of first control strip is(X12, y12),
Wherein, x12- x11=R1;
A2, the second control strip is set on mobile terminal touch screen, the length of second control strip is represented with R2, described
The top left co-ordinate of second control strip is(X21, y21), the coordinate in the lower right corner of second control strip is(X22, y22), its
In, x22- x21=R2;
A3, the backlight brightness values of mobile terminal are associated with the length of first control strip.
The back light brightness regulating method of described mobile terminal, wherein, in the step B, when detecting on touch-screen
Touch point coordinates(X, y)When meeting x11≤x≤x12 and y11≤y≤y12, then the touch point(X, y)Positioned at the first regulation and control system
In bar;
When detecting touch point coordinates(X, y)When meeting x21≤x≤x22 and y21≤y≤y22, then the touch point(X, y)
In the second control strip.
The back light brightness regulating method of described mobile terminal, wherein, the step B is specifically included:
B1, when detecting first control strip and the second control strip while when being touched, obtain and touched on the first control strip
The maximum x1max of the minimum value x1min of abscissa and abscissa in touching a little;And obtain on the second control strip horizontal seat in touch point
Target minimum value x2min and abscissa maximum x2max;
B2, with the minimum value of abscissa in touch point on the second control strip and the arithmetic mean of instantaneous value of maximum determine second
The second regulated value in control strip is:(x2min+x2max)/2-x21;
B3, according to the difference of the maximum of abscissa and minimum value in touch point on the first control strip and the second control strip
The ratio of length, second regulated value is converted to the first regulated value on the first control strip, and first regulated value is:
[(x2min+x2max)/2-x21]*(x1max-x1min)/R2;
B4, according to first regulated value determine that the final regulated value M on first control strip is:x1min-x11+
[(x2min+x2max)/2-x21]*(x1max-x1min)/R2;
B5, according to the final regulated value show that the backlight brightness values L of the mobile terminal is:L=M*Lmax/R1, its
In, L is the backlight brightness values of mobile terminal, and M is the final regulated value on first control strip;Lmax be mobile terminal most
Big backlight brightness values.
A kind of backlight illumination regulating system of mobile terminal, wherein, including:
Module is pre-set, for being provided for the first control of adjusting backlight luminance on the display screen of mobile terminal in advance
Bar processed and the second control strip;
Backlight brightness values computing module, detect that first control strip and the second control strip are touched simultaneously for working as
When, backlight brightness values are gone out by touch location calculation according on first control strip and the second control strip;
Backlight illumination adjustment module, the backlight for correspondingly adjusting the mobile terminal according to the backlight brightness values are bright
Degree.
The backlight illumination regulating system of described mobile terminal, wherein, the module that pre-sets includes:
First control strip setting unit, for setting the first control strip, first control on the touch-screen of mobile terminal
The length of bar processed represents that the top left co-ordinate of first control strip is with R1(X11, y11), the bottom right of first control strip
The coordinate at angle is(X12, y12), wherein, x12- x11=R1;
Second control strip setting unit, for setting the second control strip, second control on mobile terminal touch screen
The length of bar represents that the top left co-ordinate of second control strip is with R2(X21, y21), the lower right corner of second control strip
Coordinate be(X22, y22), wherein, x22- x21=R2;
Associative cell, for the backlight brightness values of mobile terminal to be associated with the length of first control strip.
The backlight illumination regulating system of described mobile terminal, wherein, the backlight brightness values computing module includes:
Touch detection unit, for working as the touch point coordinates detected on touch-screen(X, y)Meet x11≤x≤x12 and
During y11≤y≤y12, then the touch point(X, y)Adjusted positioned at first in control strip;When detecting touch point coordinates(X, y)Meet
X21≤x≤x22 and during y21≤y≤y22, the then touch point(X, y)In the second control strip.
The backlight illumination regulating system of described mobile terminal, wherein, the backlight brightness values computing module also includes:
Coordinate acquiring unit, for when detecting first control strip and the second control strip while being touched, obtaining
The maximum x1max of the minimum value x1min of abscissa and abscissa in touch point on first control strip;And obtain the second control strip
The maximum x2max of the minimum value x2min of abscissa and abscissa in upper touch point;
Second regulated value computing unit, for the minimum value of abscissa in touch point on the second control strip and maximum
Arithmetic mean of instantaneous value is come the second regulated value determined in the second control strip:(x2min+x2max)/2-x21;
First regulated value computing unit, for the maximum and minimum value according to abscissa in touch point on the first control strip
Difference and the second control strip length ratio, second regulated value is converted to the first regulation on the first control strip
Value, first regulated value are:[(x2min+x2max)/2-x21]*(x1max-x1min)/R2;
Final regulated value computing unit, for determining the final tune on first control strip according to first regulated value
Section value M is:x1min-x11+[(x2min+x2max)/2-x21]*(x1max-x1min)/R2;
Backlight brightness values computing unit, for drawing the backlight brightness values of the mobile terminal according to the final regulated value
L is:L=M*Lmax/R1, wherein, L is the backlight brightness values of mobile terminal, and M is the final regulated value on first control strip;
Lmax is the maximum backlight brightness values of mobile terminal.
The back light brightness regulating method and system of a kind of mobile terminal provided by the present invention, are efficiently solved existing
Backlight illumination degree of regulation is low in mobile terminal, the problem of can not being fine-tuned to backlight illumination, by advance in movement
The first control strip and the second control strip of adjusting backlight luminance are provided on the display screen of terminal;When detect it is described first control
Bar processed and the second control strip are touched simultaneously when, according on first control strip and the second control strip by touch location calculation
Go out backlight brightness values;The backlight illumination of the mobile terminal is correspondingly adjusted according to the backlight brightness values;By setting two controls
Bar processed carrys out adjusting backlight luminance so that backlight brightness degree of regulation is higher, realizes the fine tune to backlight illumination
Section, brings to user and greatly facilitates.
Brief description of the drawings
Fig. 1 is the flow chart of the back light brightness regulating method preferred embodiment of mobile terminal provided by the invention.
Fig. 2 be mobile terminal provided by the invention back light brightness regulating method in touch detection schematic diagram.
Fig. 3 is the structured flowchart of the backlight illumination regulating system preferred embodiment of mobile terminal provided by the invention.
Embodiment
The present invention provides a kind of back light brightness regulating method and system of mobile terminal, to make the purpose of the present invention, technology
Scheme and advantage are clearer, clear and definite, and the present invention is described in more detail for the embodiment that develops simultaneously referring to the drawings.It should manage
Solution, the specific embodiments described herein are merely illustrative of the present invention, is not intended to limit the present invention.
Referring to Fig. 1, Fig. 1 is the flow of the back light brightness regulating method preferred embodiment of mobile terminal provided by the invention
Figure, as illustrated, the described method comprises the following steps:
Step S100, the first control strip and of adjusting backlight luminance is provided on the display screen of mobile terminal in advance
Two control strips;
Step S200, when detecting first control strip and the second control strip while being touched, according to described first
Backlight brightness values are gone out by touch location calculation on control strip and the second control strip;
Step S300, the backlight illumination of the mobile terminal is correspondingly adjusted according to the backlight brightness values.
Above-mentioned steps are described in detail with reference to specific embodiment.
In the step s 100, the first control strip of adjusting backlight luminance is provided on the display screen of mobile terminal in advance
With the second control strip.Specifically, the mobile terminal can be the mobile terminals such as mobile phone, tablet personal computer.The mobile terminal is set
Touch-screen is equipped with, for receiving the touch operation of user and slide.Existing mobile terminal be usually by display screen and
Touch-screen superposition is set.
Referring to Fig. 2, signals of the Fig. 2 for touch detection in the back light brightness regulating method of mobile terminal provided by the invention
Figure.As illustrated, the first control strip that length is R1, the length of first control strip are set on the touch-screen of mobile terminal
Represented with R1, the top left co-ordinate of first control strip is(X11, y11), the coordinate in the lower right corner of first control strip is
(X12, y12), wherein, x12- x11=R1.Coordinate system as shown in Figure 2 is chosen, and x12 is more than x11, and y12 is more than y11.So,
The two put the touch area for constituting first control strip.As shown in Fig. 2 work as the touch point coordinates detected on touch-screen
(X, y)When meeting x11≤x≤x12 and y11≤y≤y12, then the touch point(X, y)Adjusted positioned at first in control strip.
Second control strip is set on mobile terminal touch screen, the length of second control strip is represented with R2, described
The top left co-ordinate of two control strips is(X21, y21), the coordinate in the lower right corner of second control strip is(X22, y22), wherein,
x22- x21=R2.Similarly, the touch area of the second control strip is that top left co-ordinate is(X21, y21)Coordinate with the lower right corner is
(X22, y22)The rectangle of composition.Touch point coordinates is detected as shown in Fig. 2 working as(X, y)Meet x21≤x≤x22 and y21≤y
During≤y22, then the touch point(X, y)In the second control strip.
In the step S100, also the backlight brightness values L of mobile terminal is associated with the length of first control strip.
Specifically, control volume and brightness size identical with the control strip of existing mobile terminal, by the backlight of mobile terminal
Brightness value L is linearly related with the length of first control strip.When touch of the user on first control strip point more to
A left side, then backlight brightness values are smaller, and more to the right, then backlight brightness values are bigger, until the position of touch point is in abscissa x12(Fig. 2
It is shown)When, that is, for first control strip it is most right when, the backlight brightness values of mobile terminal are adjusted to maximum, i.e. Lmax.
In step s 200, when detecting first control strip and the second control strip while being touched, according to described
Backlight brightness values are gone out by touch location calculation on first control strip and the second control strip.Specifically, the present invention needs user
The first control strip and the second control strip are touched simultaneously, and backlight is realized by the slip on the first control strip and the second control strip
Regulation.Because the finger of people has certain area, often multiple touches are touched simultaneously when user touches touch-screen
Point, when detecting first control strip and the second control strip while being touched, obtain horizontal in touch point on the first control strip
The minimum value x1min of the coordinate and maximum x1max of abscissa;And obtain the minimum of abscissa in touch point on the second control strip
Value x2min and abscissa maximum x2max.
Then, is determined with the minimum value of abscissa in touch point on the second control strip and the arithmetic mean of instantaneous value of maximum
The second regulated value in two control strips is:(x2min+x2max)/2-x21.Second regulated value, refers to the second control strip
The distance of point on the control strip of central point distance second that upper user's finger touches where abscissa minimum value.
The difference of maximum and minimum value further according to abscissa in touch point on the first control strip and the second control strip
The ratio of length, second regulated value is converted to the first regulated value on the first control strip, and first regulated value is:
[(x2min+x2max)/2-x21]*(x1max-x1min)/R2.That is, the second regulated value in the second control strip is turned
Change in the first control strip:By the length of the second control strip and the ratio of x1min to x1max in the first control strip, i.e., by the
Length (x1max-x1min) amplification R2/ (x1max-x1min) times of user touch area, obtains the second control in one control strip
The length R2 of bar.Therefore, second regulated value is converted to the first regulated value on the first control strip, first regulated value
For:[(x2min+x2max)/2-x21]*(x1max-x1min)/R2.
Determine that the final regulated value M on first control strip is further according to first regulated value:x1min-x11+
[(x2min+x2max)/2-x21]*(x1max-x1min)/R2.The first regulated value that will be obtained is plus x1min-x11
Final regulated value on first control strip, it is specially:x1min-x11+[(x2min+x2max)/2-x21]*(x1max-
x1min)/R2。
Finally, show that the backlight brightness values L of the mobile terminal is according to the final regulated value:L=M*Lmax/R1, its
In, L is the backlight brightness values of mobile terminal, and M is the final regulated value on first control strip;Lmax be mobile terminal most
Big backlight brightness values.
In step S300, the backlight illumination of the mobile terminal is correspondingly adjusted according to the backlight brightness values.It is specific next
Say, exactly adjust the backlight illumination of current mobile terminal, be the backlight brightness values.
From the foregoing, it will be observed that touch section of the present invention by user on the first control strip, first bright to the backlight of mobile terminal
Angle value carries out coarse adjustment, then touch section of the user on the first control strip is mapped with the second control strip, according to user
The touch location on the second control strip is converted on the first control strip simultaneously, it is achieved thereby that the fine setting to backlight brightness values,
So as to by two control strips, can adapt to more brightness regulation series of backlight illumination, improve the essence of backlight illumination regulation
Degree, realizes and backlight illumination is fine-tuned.
Based on the back light brightness regulating method of above-mentioned mobile terminal, present invention also offers a kind of backlight of mobile terminal is bright
Regulating system is spent, as shown in figure 3, the system includes:
Module 100 is pre-set, for being provided for the of adjusting backlight luminance on the display screen of mobile terminal in advance
One control strip and the second control strip;Specifically as described in step S100;
Backlight brightness values calculate 200, for when detecting first control strip and the second control strip while when being touched,
Backlight brightness values are gone out by touch location calculation according on first control strip and the second control strip;Specifically such as step S200 institutes
State;
Backlight illumination adjustment module 300, the backlight for correspondingly adjusting the mobile terminal according to the backlight brightness values
Brightness;Specifically as described in step S300.
Further, the module 200 that pre-sets includes:
First control strip setting unit, for setting the first control strip, first control on the touch-screen of mobile terminal
The length of bar processed represents that the top left co-ordinate of first control strip is with R1(X11, y11), the bottom right of first control strip
The coordinate at angle is(X12, y12), wherein, x12- x11=R1;Second control strip setting unit, in mobile terminal touch screen
The second control strip of upper setting, the length of second control strip represent that the top left co-ordinate of second control strip is with R2
(X21, y21), the coordinate in the lower right corner of second control strip is(X22, y22), wherein, x22- x21=R2;Associative cell,
For the backlight brightness values of mobile terminal to be associated with the length of first control strip.
Further, the backlight brightness values computing module 200 includes:
Touch detection unit, for working as the touch point coordinates detected on touch-screen(X, y)Meet x11≤x≤x12 and
During y11≤y≤y12, then the touch point(X, y)Adjusted positioned at first in control strip;When detecting touch point coordinates(X, y)Meet
X21≤x≤x22 and during y21≤y≤y22, the then touch point(X, y)In the second control strip.
Further, the backlight brightness values computing module 200 also includes:
Coordinate acquiring unit, for when detecting first control strip and the second control strip while being touched, obtaining
The maximum x1max of the minimum value x1min of abscissa and abscissa in touch point on first control strip;And obtain the second control strip
The maximum x2max of the minimum value x2min of abscissa and abscissa in upper touch point;
Second regulated value computing unit, for the minimum value of abscissa in touch point on the second control strip and maximum
Arithmetic mean of instantaneous value is come the second regulated value determined in the second control strip:(x2min+x2max)/2-x21;
First regulated value computing unit, for the maximum and minimum value according to abscissa in touch point on the first control strip
Difference and the second control strip length ratio, second regulated value is converted to the first regulation on the first control strip
Value, first regulated value are:[(x2min+x2max)/2-x21]*(x1max-x1min)/R2;
Final regulated value computing unit, for determining the final tune on first control strip according to first regulated value
Section value M is:x1min-x11+[(x2min+x2max)/2-x21]*(x1max-x1min)/R2;
Backlight brightness values computing unit, for drawing the backlight brightness values of the mobile terminal according to the final regulated value
L is:L=M*Lmax/R1, wherein, L is the backlight brightness values of mobile terminal, and M is the final regulated value on first control strip;
Lmax is the maximum backlight brightness values of mobile terminal.
In summary, the back light brightness regulating method and system of a kind of mobile terminal provided by the invention, by existing in advance
The first control strip and the second control strip of adjusting backlight luminance are provided on the display screen of mobile terminal;When detecting described
One control strip and the second control strip are touched simultaneously when, according on first control strip and the second control strip by touch location
Calculate backlight brightness values;The backlight illumination of the mobile terminal is correspondingly adjusted according to the backlight brightness values;By setting two
Individual control strip carrys out adjusting backlight luminance so that backlight brightness degree of regulation is higher, realizes the essence to backlight illumination
Thin tuning, bring to user and greatly facilitate.
It should be appreciated that the application of the present invention is not limited to above-mentioned citing, for those of ordinary skills, can
To be improved or converted according to the above description, all these modifications and variations should all belong to the guarantor of appended claims of the present invention
Protect scope.