Summary of the invention
The technical problem to be solved in the present invention is, a kind of back light brightness regulating method and system of mobile terminal is provided, be intended to solve in existing mobile terminal backlight illumination degree of regulation low, cannot carry out to backlight illumination the problem of meticulous adjusting.
The technical scheme that technical solution problem of the present invention adopts is as follows:
A back light brightness regulating method for mobile terminal, wherein, comprises the following steps:
A, the first control strip that is provided in advance adjusting backlight luminance on the display screen of mobile terminal and the second control strip;
B, when described the first control strip and the second control strip being detected and be touched simultaneously, according to the position calculation that is touched on described the first control strip and the second control strip, go out backlight brightness values;
C, according to the corresponding backlight illumination that regulates described mobile terminal of described backlight brightness values.
The back light brightness regulating method of described mobile terminal, wherein, described steps A specifically comprises:
A1, the first control strip is set on the touch-screen of mobile terminal, the length of described the first control strip represents with R1, and the upper left corner coordinate of described the first control strip is (x11, y11), the coordinate in the lower right corner of described the 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 described the second control strip represents with R2, and the upper left corner coordinate of described the second control strip is (x21, y21), the coordinate in the lower right corner of described the second control strip is (x22, y22), wherein, x22-x21=R2;
A3, the backlight brightness values of mobile terminal is associated with the length of described the first control strip.
The back light brightness regulating method of described mobile terminal, wherein, in described step B, when touch point coordinate (x, y) on touch-screen being detected meets x11≤x≤x12 and y11≤y≤y12, this touch point (x, y) is positioned at the first tune control strip;
When touch point coordinate (x, y) being detected and meet x21≤x≤x22 and y21≤y≤y22, this touch point (x, y) is positioned at the second control strip.
The back light brightness regulating method of described mobile terminal, wherein, described step B specifically comprises:
B1, when described the first control strip and the second control strip being detected and be touched simultaneously, obtain on the first control strip the minimum value x1min of horizontal ordinate and the maximal value x1max of horizontal ordinate in touch point; And obtain on the second control strip the minimum value x2min of horizontal ordinate and the maximal value x2max of horizontal ordinate in touch point;
B2, take on the second control strip the minimum value of horizontal ordinate and peaked arithmetic mean in touch point and determine that the second regulated value in the second control strip is as (x2min+x2max)/2-x21;
B3, according to the ratio of the length of the maximal value of horizontal ordinate in touch point on the first control strip and the difference of minimum value and the second control strip, described the second regulated value is converted to the first regulated value on the first control strip, and described the first regulated value is: [(x2min+x2max)/2-x21] * (x1max-x1min)/R2;
B4, according to described the first regulated value, determine that the final regulated value M on described the first control strip is: x1min-x11+[(x2min+x2max)/2-x21] * (x1max-x1min)/R2;
B5, according to described final regulated value, show that the backlight brightness values L of described mobile terminal is: L=M*Lmax/R1, wherein, and the backlight brightness values that L is mobile terminal, M is the final regulated value on described the first control strip; Lmax is the maximum backlight brightness values of mobile terminal.
A backlight illumination regulating system for mobile terminal, wherein, comprising:
Set in advance module, for be provided in advance the first control strip and second control strip of adjusting backlight luminance on the display screen of mobile terminal;
Backlight brightness values computing module, for when described the first control strip and the second control strip being detected and be touched simultaneously, goes out backlight brightness values according to the position calculation that is touched on described the first control strip and the second control strip;
Backlight illumination adjustment module, for regulating the backlight illumination of described mobile terminal according to described backlight brightness values correspondence.
The backlight illumination regulating system of described mobile terminal, wherein, described in set in advance module and comprise:
The first control strip setting unit, for the first control strip is set on the touch-screen of mobile terminal, the length of described the first control strip represents with R1, the upper left corner coordinate of described the first control strip is (x11, y11), the coordinate in the lower right corner of described the first control strip is (x12, y12), wherein, x12-x11=R1;
The second control strip setting unit, for the second control strip is set on mobile terminal touch screen, the length of described the second control strip represents with R2, the upper left corner coordinate of described the second control strip is (x21, y21), the coordinate in the lower right corner of described the second control strip is (x22, y22), wherein, x22-x21=R2;
Associative cell, for associated with the length of described the first control strip by the backlight brightness values of mobile terminal.
The backlight illumination regulating system of described mobile terminal, wherein, described backlight brightness values computing module comprises:
Touch detection unit, in the time touch point coordinate (x, y) on touch-screen being detected and meet x11≤x≤x12 and y11≤y≤y12, this touch point (x, y) is positioned at the first tune control strip; When touch point coordinate (x, y) being detected and meet x21≤x≤x22 and y21≤y≤y22, this touch point (x, y) is positioned at the second control strip.
The backlight illumination regulating system of described mobile terminal, wherein, described backlight brightness values computing module also comprises:
Coordinate acquiring unit, for when described the first control strip and the second control strip being detected and be touched simultaneously, obtains on the first control strip the minimum value x1min of horizontal ordinate and the maximal value x1max of horizontal ordinate in touch point; And obtain on the second control strip the minimum value x2min of horizontal ordinate and the maximal value x2max of horizontal ordinate in touch point;
The second regulated value computing unit, determines that for take the minimum value of touch point horizontal ordinate on the second control strip and peaked arithmetic mean the second regulated value in the second control strip is as (x2min+x2max)/2-x21;
The first regulated value computing unit, be used for according to the ratio of the length of the maximal value of touch point horizontal ordinate on the first control strip and the difference of minimum value and the second control strip, described the second regulated value is converted to the first regulated value on the first control strip, and described the first regulated value is: [(x2min+x2max)/2-x21] * (x1max-x1min)/R2;
Final regulated value computing unit, for determining that according to described the first regulated value the final regulated value M on described the first control strip is: x1min-x11+[(x2min+x2max)/2-x21] * (x1max-x1min)/R2;
Backlight brightness values computing unit, for showing that according to described final regulated value the backlight brightness values L of described mobile terminal is: L=M*Lmax/R1, wherein, the backlight brightness values that L is mobile terminal, M is the final regulated value on described the first control strip; Lmax is the maximum backlight brightness values of mobile terminal.
The back light brightness regulating method of a kind of mobile terminal provided by the present invention and system, effectively solved in existing mobile terminal backlight illumination degree of regulation low, cannot carry out to backlight illumination the problem of meticulous adjusting, by be provided in advance the first control strip and second control strip of adjusting backlight luminance on the display screen of mobile terminal; When described the first control strip and the second control strip being detected and be touched simultaneously, according to the position calculation that is touched on described the first control strip and the second control strip, go out backlight brightness values; According to the corresponding backlight illumination that regulates described mobile terminal of described backlight brightness values; By two control strips are set, carry out adjusting backlight luminance, make backlight brightness degree of regulation higher, realized the meticulous adjusting to backlight illumination, it is convenient greatly to user, to have brought.
Embodiment
The invention provides a kind of back light brightness regulating method and system of mobile terminal, for making object of the present invention, technical scheme and advantage clearer, clear and definite, referring to accompanying drawing, developing simultaneously, the present invention is described in more detail for embodiment.Should be appreciated that specific embodiment described herein, only in order to explain the present invention, is not intended to limit the present invention.
Refer to Fig. 1, the process flow diagram of the back light brightness regulating method preferred embodiment that Fig. 1 is mobile terminal provided by the invention, as shown in the figure, said method comprising the steps of:
Step S100, the first control strip that is provided in advance adjusting backlight luminance on the display screen of mobile terminal and the second control strip;
Step S200, when described the first control strip and the second control strip being detected and be touched simultaneously, according to the position calculation that is touched on described the first control strip and the second control strip, go out backlight brightness values;
Step S300, according to the corresponding backlight illumination that regulates described mobile terminal of described backlight brightness values.
Below in conjunction with specific embodiment, above-mentioned steps is described in detail.
In step S100, on the display screen of mobile terminal, be provided in advance the first control strip and second control strip of adjusting backlight luminance.Specifically, described mobile terminal can be the mobile terminals such as mobile phone, panel computer.Described mobile terminal is provided with touch-screen, is used for receiving user's touch operation and slide.Existing mobile terminal is generally that display screen and touch-screen stack are arranged.
Refer to Fig. 2, in the back light brightness regulating method that Fig. 2 is mobile terminal provided by the invention, touch the schematic diagram detecting.As shown in the figure, it is the first control strip of R1 that length is set on the touch-screen of mobile terminal, the length of described the first control strip represents with R1, the upper left corner coordinate of described the first control strip is (x11, y11), the coordinate in the lower right corner of described the first control strip is (x12, y12), wherein, x12-x11=R1.Coordinate system is as shown in Figure 2 chosen, and x12 is greater than x11, and y12 is greater than y11.Like this, these two points have formed the touch area of described the first control strip.As shown in Figure 2, when touch point coordinate (x, y) on touch-screen being detected meets x11≤x≤x12 and y11≤y≤y12, this touch point (x, y) is positioned at the first tune control strip.
The second control strip is set on mobile terminal touch screen, and the length of described the second control strip represents with R2, and the upper left corner coordinate of described the second control strip is (x21, y21), the coordinate in the lower right corner of described the second control strip is (x22, y22), wherein, x22-x21=R2.In like manner, the touch area of the second control strip is that upper left corner coordinate is the rectangle that (x22, y22) forms for (x21, y21) with the coordinate in the lower right corner.As shown in Figure 2, when touch point coordinate (x, y) being detected and meet x21≤x≤x22 and y21≤y≤y22, this touch point (x, y) is positioned at the second control strip.
In described step S100, also that the backlight brightness values L of mobile terminal is associated with the length of described the first control strip.Specifically, identical with control strip control volume and the brightness size of existing mobile terminal, by the length linear dependence of the backlight brightness values L of mobile terminal and described the first control strip.When the point of the touch of user on described the first control strip more left, backlight brightness values is less, more to the right, backlight brightness values is larger, until the position of touch point is in shown in horizontal ordinate x12(Fig. 2) time, while being namely described the first control strip the rightest, the backlight brightness values of mobile terminal is adjusted to maximum, i.e. Lmax.
In step S200, when described the first control strip and the second control strip being detected and be touched simultaneously, according to the position calculation that is touched on described the first control strip and the second control strip, go out backlight brightness values.Specifically, the present invention needs user to touch the first control strip and the second control strip simultaneously, by the slip on the first control strip and the second control strip, realizes adjusting backlight.Owing to there is certain area in people's finger, when touching touch-screen, user tends to touch a plurality of touch points simultaneously, when described the first control strip and the second control strip being detected and be touched simultaneously, obtain on the first control strip the minimum value x1min of horizontal ordinate and the maximal value x1max of horizontal ordinate in touch point; And obtain on the second control strip the minimum value x2min of horizontal ordinate and the maximal value x2max of horizontal ordinate in touch point.
Then, take on the second control strip the minimum value of horizontal ordinate and peaked arithmetic mean in touch point determines that the second regulated value in the second control strip is as (x2min+x2max)/2-x21.Described the second regulated value, refers to the central point of user's finger touch on the second control strip apart from the distance of the point at horizontal ordinate minimum value place on the second control strip.
Again according to the ratio of the length of the maximal value of horizontal ordinate in touch point on the first control strip and the difference of minimum value and the second control strip, described the second regulated value is converted to the first regulated value on the first control strip, and described the first regulated value is: [(x2min+x2max)/2-x21] * (x1max-x1min)/R2.That is to say, the second regulated value in the second control strip is transformed in the first control strip: the ratio of x1min to x1max in the length by the second control strip and the first control strip, the length (x1max-x1min) that is about to user touch area in the first control strip is amplified R2/ (x1max-x1min) doubly, obtains the length R2 of the second control strip.Therefore, described the second regulated value is converted to the first regulated value on the first control strip, described the first regulated value is: [(x2min+x2max)/2-x21] * (x1max-x1min)/R2.
According to described the first regulated value, determine that the final regulated value M on described the first control strip is: x1min-x11+[(x2min+x2max)/2-x21 again] * (x1max-x1min)/R2.The first regulated value that is about to obtain adds that x1min-x11 is the final regulated value on the first control strip, is specially: x1min-x11+[(x2min+x2max)/2-x21] * (x1max-x1min)/R2.
Finally, according to described final regulated value, show that the backlight brightness values L of described mobile terminal is: L=M*Lmax/R1, wherein, and the backlight brightness values that L is mobile terminal, M is the final regulated value on described the first control strip; Lmax is the maximum backlight brightness values of mobile terminal.
In step S300, according to the corresponding backlight illumination that regulates described mobile terminal of described backlight brightness values.Specifically, regulate exactly the backlight illumination of current mobile terminal, be described backlight brightness values.
As from the foregoing, the present invention is by user between the Petting Area on the first control strip, first the backlight brightness values of mobile terminal is carried out to coarse adjustment, then user is mapped with the second control strip between the Petting Area on the first control strip, according to the touch location of user's while on the second control strip, be converted on the first control strip, thereby realized the fine setting to backlight brightness values, thereby by two control strips, more brightness regulation progression that can adapt to backlight illumination, improve the precision that backlight illumination regulates, realized the meticulous adjusting to backlight illumination.
Back light brightness regulating method based on above-mentioned mobile terminal, the present invention also provides a kind of backlight illumination regulating system of mobile terminal, and as shown in Figure 3, described system comprises:
Set in advance module 100, for be provided in advance the first control strip and second control strip of adjusting backlight luminance on the display screen of mobile terminal; Specifically as described in step S100;
Backlight brightness values calculates 200, for when described the first control strip and the second control strip being detected and be touched simultaneously, according to the position calculation that is touched on described the first control strip and the second control strip, goes out backlight brightness values; Specifically as described in step S200;
Backlight illumination adjustment module 300, for according to the corresponding backlight illumination that regulates described mobile terminal of described backlight brightness values; Specifically as described in step S300.
Further, described in, setting in advance module 200 comprises:
The first control strip setting unit, for the first control strip is set on the touch-screen of mobile terminal, the length of described the first control strip represents with R1, the upper left corner coordinate of described the first control strip is (x11, y11), the coordinate in the lower right corner of described the first control strip is (x12, y12), wherein, x12-x11=R1; The second control strip setting unit, for the second control strip is set on mobile terminal touch screen, the length of described the second control strip represents with R2, the upper left corner coordinate of described the second control strip is (x21, y21), the coordinate in the lower right corner of described the second control strip is (x22, y22), wherein, x22-x21=R2; Associative cell, for associated with the length of described the first control strip by the backlight brightness values of mobile terminal.
Further, described backlight brightness values computing module 200 comprises:
Touch detection unit, in the time touch point coordinate (x, y) on touch-screen being detected and meet x11≤x≤x12 and y11≤y≤y12, this touch point (x, y) is positioned at the first tune control strip; When touch point coordinate (x, y) being detected and meet x21≤x≤x22 and y21≤y≤y22, this touch point (x, y) is positioned at the second control strip.
Further, described backlight brightness values computing module 200 also comprises:
Coordinate acquiring unit, for when described the first control strip and the second control strip being detected and be touched simultaneously, obtains on the first control strip the minimum value x1min of horizontal ordinate and the maximal value x1max of horizontal ordinate in touch point; And obtain on the second control strip the minimum value x2min of horizontal ordinate and the maximal value x2max of horizontal ordinate in touch point;
The second regulated value computing unit, determines that for take the minimum value of touch point horizontal ordinate on the second control strip and peaked arithmetic mean the second regulated value in the second control strip is as (x2min+x2max)/2-x21;
The first regulated value computing unit, be used for according to the ratio of the length of the maximal value of touch point horizontal ordinate on the first control strip and the difference of minimum value and the second control strip, described the second regulated value is converted to the first regulated value on the first control strip, and described the first regulated value is: [(x2min+x2max)/2-x21] * (x1max-x1min)/R2;
Final regulated value computing unit, for determining that according to described the first regulated value the final regulated value M on described the first control strip is: x1min-x11+[(x2min+x2max)/2-x21] * (x1max-x1min)/R2;
Backlight brightness values computing unit, for showing that according to described final regulated value the backlight brightness values L of described mobile terminal is: L=M*Lmax/R1, wherein, the backlight brightness values that L is mobile terminal, M is the final regulated value on described the first control strip; Lmax is the maximum backlight brightness values of mobile terminal.
In sum, the back light brightness regulating method of a kind of mobile terminal provided by the invention and system, by being provided in advance the first control strip and second control strip of adjusting backlight luminance on the display screen of mobile terminal; When described the first control strip and the second control strip being detected and be touched simultaneously, according to the position calculation that is touched on described the first control strip and the second control strip, go out backlight brightness values; According to the corresponding backlight illumination that regulates described mobile terminal of described backlight brightness values; By two control strips are set, carry out adjusting backlight luminance, make backlight brightness degree of regulation higher, realized the meticulous adjusting to backlight illumination, it is convenient greatly to user, to have brought.
Should be understood that, application of the present invention is not limited to above-mentioned giving an example, and for those of ordinary skills, can be improved according to the above description or convert, and all these improvement and conversion all should belong to the protection domain of claims of the present invention.