CN102902460B - Screen display brightness adjusting method and terminal - Google Patents

Screen display brightness adjusting method and terminal Download PDF

Info

Publication number
CN102902460B
CN102902460B CN201110210857.2A CN201110210857A CN102902460B CN 102902460 B CN102902460 B CN 102902460B CN 201110210857 A CN201110210857 A CN 201110210857A CN 102902460 B CN102902460 B CN 102902460B
Authority
CN
China
Prior art keywords
external environment
brightness
environment condition
value
terminal
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
CN201110210857.2A
Other languages
Chinese (zh)
Other versions
CN102902460A (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201110210857.2A priority Critical patent/CN102902460B/en
Publication of CN102902460A publication Critical patent/CN102902460A/en
Application granted granted Critical
Publication of CN102902460B publication Critical patent/CN102902460B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses screen display brightness adjusting method and terminal. After a user opens an optional application program on the terminal, the terminal acquires external ambient brightness in real time and adjusts screen display brightness according to the acquired external ambient brightness. The higher the external ambient brightness is, the higher the screen display brightness is. The lower the external ambient brightness is, the lower the screen display brightness is. The screen display brightness can be adjusted simply and conveniently by the method and terminal.

Description

Screen display luminance regulating method and terminal thereof
Technical field
The present invention relates to terminal browser technology, particularly screen display luminance regulating method and terminal thereof.
Background technology
When user opens a terminal as arbitrary application program on mobile phone, under different light condition, conveniently read, may need to adjust the screen display brightness of terminal.
Existing adjustment mode is mainly manual adjustment, namely needs user to participate in, and adjusting, implementing very inconvenient by clicking menu etc. layer by layer.
Summary of the invention
In view of this, fundamental purpose of the present invention is to provide a kind of screen display luminance regulating method, implements simple and convenient.
Another object of the present invention is to provide a kind of terminal, the adjustment for screen display brightness can be realized simply and easily.
For achieving the above object, technical scheme of the present invention is achieved in that
A kind of screen display luminance regulating method, comprising:
When after the arbitrary application program on user opens a terminal, the brightness value of terminal Real-time Obtaining external environment condition, and adjust screen display brightness according to the brightness value of the external environment condition got;
Wherein, the brightness value of external environment condition is larger, and screen display brightness is higher, and the brightness value of external environment condition is less, and screen display brightness is lower.
A kind of terminal, comprising:
Acquiring unit, after open the arbitrary application program in described terminal as user, the brightness value of Real-time Obtaining external environment condition, and send to adjustment unit;
Described adjustment unit, for adjusting the screen display brightness of described terminal according to the brightness value of the external environment condition received.
Visible, adopt technical scheme of the present invention, terminal can automatically adjust screen display brightness according to the light situation of change of external environment condition, participates in, implement simple and convenient without the need to user.
Accompanying drawing explanation
Fig. 1 is the process flow diagram of screen display luminance regulating method embodiment of the present invention.
Fig. 2 is the composition structural representation of terminal embodiment of the present invention.
Fig. 3 is the effect schematic diagram after adopting scheme of the present invention to adjust screen display brightness.
Embodiment
For problems of the prior art, a kind of scheme that automatically can adjust screen display brightness according to the light situation of change of external environment condition is proposed in the present invention, namely when after the arbitrary application program on user opens a terminal, terminal obtains the brightness value of external environment condition in real time, and adjusts screen display brightness according to the brightness value of the external environment condition got; Wherein, the brightness value of external environment condition is larger, and screen display brightness is higher, and the brightness value of external environment condition is less, and screen display brightness is lower.
Specifically, can be terminal and be pre-created a shade (Mask View), when after the arbitrary application program on user opens a terminal, start this Mask View, cover the user interface (UI of this application program, User Interface) layer, follow-up, when after the brightness value getting external environment condition at every turn, according to the mapping relations between the brightness value of the external environment condition of preserving in advance and alpha value, determine the alpha value that the brightness value of the external environment condition got is corresponding, and determine that whether the alpha value of this correspondence is consistent with the alpha value of the background color of Mask View, if inconsistent, then the alpha value of the background color of Mask View is adjusted to the alpha value of this correspondence.
For make technical scheme of the present invention clearly, understand, to develop simultaneously embodiment referring to accompanying drawing, scheme of the present invention be described in further detail.
Fig. 1 is the process flow diagram of screen display luminance regulating method embodiment of the present invention.
Step 11: for terminal creates a Mask View.
How creating Mask View is prior art.
In simple terms, Mask View itself is the picture of a portable network graphics format (PNG, Portable Network Graphic Format), is drawn out by a translucent PNG picture, namely define Mask View on UI layer.
Step 12: when after the arbitrary application program on user opens a terminal, terminal starts the Mask View created, and the brightness value of Real-time Obtaining external environment condition.
Mask View can cover the UI layer of the application program that user opens, and make screen display effect out more soft, convenient user browses.
For example, suppose that user is browsing a webpage, so namely Mask View is equivalent on this webpage, add the soft cover of one deck.
For terminals such as existing comparatively high-end mobile phones, wherein can be provided with a light intensity sensor (Light Intensity Sensor), this Light Intensity Sensor can be utilized to carry out the brightness value of real-time detection external environment condition; If do not arrange Light Intensity Sensor in terminal, then need to carry out certain transformation to it, namely add Light Intensity Sensor.Here mentioned real-time detection is a relative concept, does not refer to and detects incessantly always, and refer at regular intervals, within such as 1 minute, once detect.
Step 13: terminal is after the brightness value at every turn getting external environment condition, according to the mapping relations between the brightness value of the external environment condition of preserving in advance and alpha value, determine the alpha value that the brightness value of the external environment condition got is corresponding, and determine that whether the alpha value of this correspondence is consistent with the alpha value of the background color of Mask View, if inconsistent, then the alpha value of the background color of Mask View is adjusted to the alpha value of this correspondence.
Each PNG picture has the parameter of a characterizing transparent degree, be called alpha value, how adjusting alpha value is prior art, in simple terms, application programming interfaces (API, Application Programming Interface) by picture adjust alpha value.
The adjustment of alpha value will directly affect the transparency of Mask View, and then affects the screen display brightness of terminal.Specifically, alpha value is larger, and transparency is larger, and screen display brightness is higher; Otherwise alpha value is less, and transparency is less, screen display brightness is lower.Relation below demand fulfillment between the brightness value of external environment condition and alpha value: the brightness value of external environment condition is larger, and alpha value is larger; Otherwise the brightness value of external environment condition is less, alpha value is less.Like this, if in the strong outdoor of light, so then need screen display brightness to heighten, if in the indoor of relative darkness, then need screen display brightness to turn down.
Usually, the span of brightness value is the span of 0 ~ 100, alpha value is 0 ~ 1.
In actual applications, different range of luminance values alpha value corresponding different respectively can be set; Or, the alpha value that different brightness values is corresponding different respectively.Which kind of mode of concrete employing can be decided according to the actual requirements, for avoiding adjusting continually, and a kind of mode before many employings.
In addition, how which range of luminance values which alpha value corresponding is set, which brightness value which alpha value corresponding all can be determined according to practical experience, be not construed as limiting in the present invention.Such as: can arrange when range of luminance values is 0 ~ 10, corresponding alpha value is 0.1, and when range of luminance values is 11 ~ 20, corresponding alpha value is 0.2, and when range of luminance values is 21 ~ 30, corresponding brightness value is 0.3, the like; Or, the corresponding alpha value 0 of brightness value 0 is set, the corresponding alpha value 0.01 of brightness value 1, the corresponding alpha value 0.02 of brightness value 2, the like.
Have again, if arrange the alpha value that different range of luminance values is corresponding different respectively, so will likely there is following situation, namely double even more times brightness value got of terminal is all positioned at same range of luminance values, such as: the brightness value got for the N time is 24, after the alpha value of the background color of Mask View is adjusted to 0.3 by the brightness value got according to this time, the brightness value got for the N+1 time is 25, because the alpha value of brightness value 24 and 25 correspondence is 0.3, therefore, by without the need to adjusting the alpha value of the background color of Mask View again, obviously, if the brightness value got for the N+1 time is 35, then need the alpha value of the background color of Mask View to be adjusted to 0.4.
So far, the introduction about the inventive method embodiment is namely completed.
Based on above-mentioned introduction, Fig. 2 is the composition structural representation of terminal embodiment of the present invention.As shown in Figure 2, comprising:
Acquiring unit 21, after the arbitrary application program on opening a terminal as user, the brightness value of Real-time Obtaining external environment condition, sends to adjustment unit 22;
Adjustment unit 22, for the screen display brightness of the brightness value adjustment terminal according to the external environment condition received.
Also can comprise further in terminal shown in Fig. 2: light intensity sensor 23;
When after the arbitrary application program on user opens a terminal, acquiring unit 21 notifies that light intensity sensor 23 starts; The brightness value of light intensity sensor 23 real-time detection external environment condition, and result of detection is sent to acquiring unit 21.
Above-mentioned adjustment unit 22 also can be further used for, and when after the arbitrary application program on user opens a terminal, starts the shade Mask View be pre-created, covers the UI layer of this application program; When after the brightness value receiving external environment condition at every turn, according to the mapping relations between the brightness value of the external environment condition of preserving in advance and alpha value, determine the alpha value that the brightness value of the external environment condition got is corresponding, and determine that whether the alpha value of this correspondence is consistent with the alpha value of the background color of Mask View, if inconsistent, then the alpha value of the background color of Mask View is adjusted to the alpha value of this correspondence.Described mapping relations comprise: the alpha value that different range of luminance values is corresponding different respectively; Or, the alpha value that different brightness values is corresponding different respectively.
In actual applications, the terminal in the various embodiments described above is generally mobile phone.
The specific works flow process of the embodiment of terminal shown in Fig. 2 please refer to the respective description in embodiment of the method shown in Fig. 1, repeats no more herein.
In a word, adopt technical scheme of the present invention, terminal can automatically adjust screen display brightness according to the light situation of change of external environment condition, participates in, implement simple and convenient without the need to user.
Fig. 3 is the effect schematic diagram after adopting scheme of the present invention to adjust screen display brightness.As shown in Figure 3, suppose that, according to order from left to right, the brightness value of external environment condition is increasing, so correspondingly, screen display brightness is also more and more stronger.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, within the spirit and principles in the present invention all, any amendment made, equivalent replacement, improvement etc., all should be included within the scope of protection of the invention.

Claims (7)

1. a screen display luminance regulating method, is characterized in that, comprising:
When after the arbitrary application program on user opens a terminal, terminal starts the shade that is pre-created to cover the user interface layer of this application program, and the brightness value of Real-time Obtaining external environment condition, according to the mapping relations between the brightness value of the external environment condition of preserving in advance and alpha value, determine the alpha value that the brightness value of the external environment condition got is corresponding, and determine that whether the alpha value of described correspondence is consistent with the alpha value of the background color of described shade, if inconsistent, then the alpha value of the background color of described shade is adjusted to the alpha value of described correspondence;
Wherein, the brightness value of external environment condition is larger, and screen display brightness is higher, and the brightness value of external environment condition is less, and screen display brightness is lower.
2. method according to claim 1, is characterized in that, the brightness value of described Real-time Obtaining external environment condition comprises: the brightness value of the light intensity sensor real-time detection external environment condition utilizing self to install.
3. method according to claim 1, is characterized in that, described mapping relations comprise:
The alpha value that different range of luminance values is corresponding different respectively; Or, the alpha value that different brightness values is corresponding different respectively.
4. a terminal, is characterized in that, comprising:
Acquiring unit, after open the arbitrary application program in described terminal as user, the brightness value of Real-time Obtaining external environment condition, and send to adjustment unit;
Described adjustment unit, after open the arbitrary application program in described terminal as user, the shade that startup is pre-created is to cover the user interface layer of this application program, and after the brightness value at every turn receiving external environment condition, according to the mapping relations between the brightness value of the external environment condition of preserving in advance and alpha value, determine the alpha value that the brightness value of the external environment condition got is corresponding, and determine that whether the alpha value of described correspondence is consistent with the alpha value of the background color of described shade, if inconsistent, then the alpha value of the background color of described shade is adjusted to the alpha value of described correspondence, wherein, the brightness value of external environment condition is larger, screen display brightness is higher, the brightness value of external environment condition is less, screen display brightness is lower.
5. terminal according to claim 4, is characterized in that, described terminal comprises further: light intensity sensor;
Open the arbitrary application program in described terminal as user after, described acquiring unit notifies that described light intensity sensor starts; Described light intensity sensor, for starting the brightness value of rear real-time detection external environment condition, and sends to described acquiring unit by result of detection.
6. terminal according to claim 4, is characterized in that, described mapping relations comprise:
The alpha value that different range of luminance values is corresponding different respectively; Or, the alpha value that different brightness values is corresponding different respectively.
7. the terminal according to claim 4,5 or 6, is characterized in that, described terminal is mobile phone.
CN201110210857.2A 2011-07-26 2011-07-26 Screen display brightness adjusting method and terminal Active CN102902460B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110210857.2A CN102902460B (en) 2011-07-26 2011-07-26 Screen display brightness adjusting method and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110210857.2A CN102902460B (en) 2011-07-26 2011-07-26 Screen display brightness adjusting method and terminal

Publications (2)

Publication Number Publication Date
CN102902460A CN102902460A (en) 2013-01-30
CN102902460B true CN102902460B (en) 2015-01-14

Family

ID=47574714

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110210857.2A Active CN102902460B (en) 2011-07-26 2011-07-26 Screen display brightness adjusting method and terminal

Country Status (1)

Country Link
CN (1) CN102902460B (en)

Families Citing this family (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104346057B (en) * 2013-08-02 2021-10-12 腾讯科技(深圳)有限公司 Background color adjusting method and device
CN106919355B (en) * 2014-06-10 2018-11-27 掌阅科技股份有限公司 A kind of eye care method and device for smart machine
CN104078028A (en) * 2014-06-27 2014-10-01 联想(北京)有限公司 Screen brightness adjusting method and electronic equipment
CN104347051A (en) * 2014-06-30 2015-02-11 腾讯科技(深圳)有限公司 Method and system for adjusting screen brightness
CN104461303B (en) * 2014-12-25 2018-02-02 小米科技有限责任公司 Adjust the method and device at interface
CN104699388A (en) * 2015-03-25 2015-06-10 广东欧珀移动通信有限公司 Terminal theme adjusting method and system
CN105183481B (en) * 2015-09-22 2018-09-25 北京金山安全软件有限公司 Method and device for adjusting display mode of third-party application program
CN106060245A (en) * 2016-05-17 2016-10-26 乐视控股(北京)有限公司 Automatic regulating method, apparatus and mobile terminal of browsing mode
CN106201417A (en) * 2016-07-04 2016-12-07 广东欧珀移动通信有限公司 Adjust the method for screen display brightness, device and mobile terminal
CN106251827B (en) * 2016-07-26 2018-09-11 广东欧珀移动通信有限公司 Control method and control device
CN107123399A (en) * 2017-06-29 2017-09-01 厦门美图移动科技有限公司 The method of adjustment and mobile terminal of mobile terminal screen brightness
CN107895563B (en) * 2017-11-02 2021-03-16 珠海市魅族科技有限公司 Display control method and device, terminal and computer readable storage medium
CN107808363B (en) * 2017-11-23 2020-12-25 杭州电魂网络科技股份有限公司 Image mask processing method and device
CN109587334B (en) * 2018-11-30 2021-07-27 努比亚技术有限公司 Display method of flexible terminal, flexible terminal and computer readable storage medium
CN109739609B (en) * 2019-01-03 2021-01-15 腾讯科技(深圳)有限公司 Image processing method, image processing device, computer-readable storage medium and computer equipment
CN109922207B (en) * 2019-01-21 2021-01-01 竞技世界(北京)网络技术有限公司 Method for dynamically adjusting application software interactive interface
CN115248652B (en) * 2021-04-25 2024-01-12 极米科技股份有限公司 Image self-adaption method, device, equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1874447A (en) * 2005-06-01 2006-12-06 三星电子株式会社 Display apparatus having adjustable pip function and control method thereof
CN2881691Y (en) * 2005-10-15 2007-03-21 王永顺 Screen system capable of automatic regulating brightless according to scene claim
CN101211554A (en) * 2006-12-28 2008-07-02 海尔集团公司 Screen brightness control method and system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1874447A (en) * 2005-06-01 2006-12-06 三星电子株式会社 Display apparatus having adjustable pip function and control method thereof
CN2881691Y (en) * 2005-10-15 2007-03-21 王永顺 Screen system capable of automatic regulating brightless according to scene claim
CN101211554A (en) * 2006-12-28 2008-07-02 海尔集团公司 Screen brightness control method and system

Also Published As

Publication number Publication date
CN102902460A (en) 2013-01-30

Similar Documents

Publication Publication Date Title
CN102902460B (en) Screen display brightness adjusting method and terminal
US10650790B2 (en) System, apparatus, and method for optimizing viewing experience on an intelligent terminal
KR102353766B1 (en) Apparatus and method for controlling display
CN103019560B (en) Control the method for interface of mobile terminal, device and mobile terminal
WO2020207314A1 (en) Screen-off display control method and terminal device
KR101958870B1 (en) Display control method and apparatus for power saving
CN102193783B (en) Method and system for adjusting skin brightness of browser and electronic equipment
CN103747134B (en) The display packing of user interface and terminal
CN101446883B (en) Method for controlling mobile equipment by touch screen and mobile equipment
EP2669792A1 (en) Method and device for implementing many display modes for general icon
CN104483806B (en) The method and apparatus for facilitating user to autodyne
KR20070086954A (en) System and method for viewing digital visual content on a device
KR102583929B1 (en) Display apparatus and control method thereof
CN106126725B (en) Page display method and device
CN102508861B (en) A kind of webpage color setting method, web browser and web page server
CN103064713A (en) Method of changing terminal wallpaper automatically with weather
CN101576804A (en) Method for setting electronic reader
WO2021093829A1 (en) Screen brightness adjustment method and mobile terminal
CN104516644A (en) Method for free screen capture and terminal
CN104580657A (en) A sensor user self-configuring method, and device and mobile terminal
CN107743203A (en) A kind of parameter regulation means, terminal and computer-readable recording medium
CN109785815B (en) Screen brightness adjusting method and mobile terminal
CN102270427B (en) Method and apparatus for enhancing reading effect of electronic book and electronic terminal
CN103295560B (en) terminal device and display adjusting method thereof
CN112114929A (en) Display apparatus and image display method thereof

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant