CN101071555B - Method and device for adjusting background image colour parameter - Google Patents

Method and device for adjusting background image colour parameter Download PDF

Info

Publication number
CN101071555B
CN101071555B CN2007100983563A CN200710098356A CN101071555B CN 101071555 B CN101071555 B CN 101071555B CN 2007100983563 A CN2007100983563 A CN 2007100983563A CN 200710098356 A CN200710098356 A CN 200710098356A CN 101071555 B CN101071555 B CN 101071555B
Authority
CN
China
Prior art keywords
background
color parameter
parameter
layer
color
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
CN2007100983563A
Other languages
Chinese (zh)
Other versions
CN101071555A (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 CN2007100983563A priority Critical patent/CN101071555B/en
Publication of CN101071555A publication Critical patent/CN101071555A/en
Application granted granted Critical
Publication of CN101071555B publication Critical patent/CN101071555B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Color Image Communication Systems (AREA)
  • Image Processing (AREA)

Abstract

This invention provides a method to adjust color parameter of map background, and the method including: When the background color map of the parameters do not meet preset parameters of the first color, the increase in background map with a second preset parameters of color layer; preset weight through redistribution described above background map and the color layer parameters, and referred to the redistribution of the background map and referred to the color layer parameters and update above background map and map Synthesis of the new background color map parameters. Corresponding to this method, the invention also provides a map background color adjustment parameters of devices, the device include: judgment modules layer modules, acquisition modules calculation modules, synthesis module, update modules. A method and device the present invention provided enables users to easily adjust the map background color, meet to the satisfaction of user.

Description

A kind of method and apparatus of adjusting background image colour parameter
Technical field
The present invention relates to communication field, relate in particular to a kind of method and apparatus of adjusting background image colour parameter.
Background technology
In the daily use of mobile phone, the user has been not only to have solved basic communication problem to the demand of mobile phone at present.Increasing user begins to pay close attention to the theme setting of own mobile phone.The called handset theme, i.e. the inner skin setting that shows of mobile phone is such as the homepage Background of mobile phone one start, enter page function Background, the icon of each application program, clock Background, electric weight Background behind the function choosing-item.The user passes through to change the theme of own mobile phone, thereby reaches the personalized more effect of mobile phone that makes oneself.
Though but the user can upgrade own personalized mobile phone theme easily, after the user is upgrading homepage Background and page function Background, the color of finding Background partially more deeply, the literal on the mobile phone picture can not see Chu so; Perhaps the Background color is too shallow, and this time, the user can not adjust the color parameter of the homepage Background or the page function Background of renewal voluntarily.
Summary of the invention
In order to solve the color parameter problem that above-mentioned user can not adjust the homepage Background or the page function Background of renewal voluntarily, the embodiment of the invention solves by following proposal:
When the color parameter of Background does not meet the first color parameter scope that presets, on Background, increase by one and meet the second figure layer that presets color parameter; Redistribute the color parameter of described Background and described figure layer: RB=RA * T+RM * (1-T) in the following way; GB=GA * T+GM * (1-T); BB=BA * T+BM * (1-T); Wherein, RA, GA, BA represent the color parameter component value of described each pixel of Background respectively, and RM, GM, BM represent that respectively second of described figure layer presets the color parameter component value, and T represents the preset weight value, and 0≤T≤1; RB, GB, BB represent the described one-component value that is used to upgrade background image colour parameter respectively; With the color parameter of described Background of redistributing and described figure layer and, upgrade described Background and the color parameter of scheming the laminated new Background that becomes.
Correspondence and said method, the embodiment of the invention also provide a kind of device of adjusting background image colour parameter, and this device comprises: judging unit is used to judge whether the color parameter of Background does not meet the first color parameter scope that presets; A figure layer unit is used for when color parameter that judgment unit judges obtains Background does not meet the first color parameter scope that presets, and one of increase meets the second figure layer that presets color parameter on Background; Acquiring unit is used to obtain the color parameter of Background; Computing unit, be used for by the preset weight value, the color parameter component value of each pixel of Background, and described figure layer second preset the color parameter that the color parameter component value is redistributed described Background and described figure layer, and calculate described Background of redistributing and described figure layer color parameter and; Synthesis unit is used for the synthetic new Background of figure layer unit figure layer that increases and the Background that presets; Updating block, be used for the color parameter of described Background of redistributing and described figure layer and, upgrade the color parameter of the synthetic new Background of described synthesis unit; Described computing unit comprises: first computing unit is used for calculating by RA * T+RM * (1-T) the one-component value of the synthetic new background image colour parameter of synthesis unit; Second computing unit is used for calculating by GA * T+GM * (1-T) the one-component value of the synthetic new background image colour parameter of synthesis unit; The 3rd computing unit is used for calculating by BA * T+BM * (1-T) the one-component value of the synthetic new background image colour parameter of synthesis unit; Wherein, RA, GA, BA represent the color parameter component value of described each pixel of Background respectively, and RM, GM, BM represent that respectively second of described figure layer presets the color parameter component value, and T represents the preset weight value, and 0≤T≤1.
According to the embodiment of the invention, by presetting first color parameter, whether the color of discerning Background voluntarily is suitable, can be if improper by increase figure layer, recomputate color parameter by the preset weight value, owing to recomputate color parameter by the preset weight value and can adjust color parameter, so again by the figure layer of the new parameter update increase that obtains and the new background image colour parameter that original Background synthesizes, so just make the user to have adjusted the color of Background very easily, thereby improved user's satisfaction.And the embodiment of the invention can also be applied in other occasions that needs to adjust flexibly background image colour, is not restricted to adjust the mobile phone background image colour.
Description of drawings
Fig. 1 is the embodiment of the invention one process flow diagram;
Fig. 2 is embodiment of the invention two devices figure.
Embodiment
For making the purpose, technical solutions and advantages of the present invention clearer, the present invention is described in further detail below in conjunction with accompanying drawing.
Embodiment one, and referring to Fig. 1, the embodiment of the invention provides a kind of method of adjusting background image colour parameter:
Step 101: receive Background;
Step 102: whether the color parameter (RGB) of judging Background meets the first color parameter scope that presets; If then execution in step 103; Execution in step 104 then if not:
Step 103: jump out this flow process;
Step 104: increase by one on the Background and meet the second figure layer that presets color parameter, just cover plate;
Step 105: redistribute the color parameter of described Background and described figure layer by preset weight, and calculate the Background redistributed and described figure layer color parameter and;
Described in this step redistribute color parameter with calculate color parameter and concrete grammar be:
RB=RA×T+RM×(1-T);
GB=GA×T+GM×(1-T);
BB=BA×T+BM×(1-T);
Wherein, RA, GA, BA represent the color parameter component value of described each pixel of Background respectively, and RM, GM, BM represent that respectively second of described figure layer presets the color parameter component value.T represents the preset weight value, and 0≤T≤1; RB, GB, BB represent the described one-component value that is used to upgrade background image colour parameter respectively.
Step 106: redistribute the color parameter of described Background and described figure layer by preset weight, and with the color parameter of described Background of redistributing and described figure layer and, upgrade described Background and the color parameter of scheming the laminated new Background that becomes.
For example, when this method was applied to the color parameter adjustment of mobile phone Background, the first color parameter scope that we preset was 50≤R≤205; 50≤G≤205; 50≤B≤205; If the color parameter of the Background that receive this moment has exceeded this scope; So just meet the second figure layer that presets color parameter with increasing by one on the Background; This second presets color parameter and sets in advance for the user, is RM:255, GM:255, BM:255; And the user can set in advance a weighted value T, and the meaning of this weighted value T is exactly when showing the figure layer that increases, the transparency of this figure layer color.And the span of this weighted value is 0≤T≤1.If T gets 1, then described figure layer just expression is transparent fully, so just can't see the color of covering plate fully; If T gets 0, then expression is opaque fully, so just only sees the color of figure layer, and can't see the color of Background fully.If T is set to 0.5, then to represent translucently, the color of so described figure layer and Background can both be in sight.Therefore by the numerical range of weighted value T is set, when figure layer and Background were synthesized a new Background and upgrade the color parameter of Background, the color relation of new Background can reach the effect that the user envisions.
If original background image colour parameter is RA:30, GA:30, BA:30; Second to preset color parameter be RM:255, GM:255, BM:255; Preset weight T is 0.5; Calculate by following three formula:
RB=RA×T+RM×(1-T)=30×0.5+255×0.5=142.5
GB=GA×T+GM×(1-T)=30×0.5+255×0.5=142.5
BB=BA×T+BM×(1-T)=30×0.5+255×0.5=142.5
So new RB, GB, BB are respectively 142.5,142.5,142.5; New RB, GB, BB numerical value are upgraded described figure layer and the synthetic new background image colour parameter of Background, just reached the purpose of desalination background image colour value.
Can certainly reach desalination Background and the purpose of deepening background image colour by different T values being set, presetting the first different color parameter scopes.
Embodiment two, and corresponding to embodiment 1, the present invention also provides a kind of device of adjusting background image colour parameter, and this device comprises:
Judging unit 201 is used to judge whether the color parameter of Background does not meet the first color parameter scope that presets;
A figure layer unit 202 is used for when color parameter that judgment unit judges obtains Background does not meet the first color parameter scope that presets, and one of increase meets the second figure layer that presets color parameter on Background;
Acquiring unit 203 is used to obtain the color parameter of Background;
Computing unit 204 is used for redistributing by preset weight the color parameter of described Background and described figure layer, and calculate described Background of redistributing and described figure layer color parameter and;
Synthesis unit 205 is used for the synthetic new Background of figure layer unit figure layer that increases and the Background that presets;
Updating block 206, be used for the color parameter of described Background of redistributing and described figure layer and, upgrade the color parameter of the synthetic new Background of described synthesis unit.
Wherein computing unit 204 specifically comprises: the first computing unit 204A, the second computing unit 204B, the 3rd computing unit 204C;
The first computing unit 204A is used for calculating by RA * T+RM * (1-T) the one-component value of the synthetic new background image colour parameter of synthesis unit;
The second computing unit 204B is used for calculating by GA * T+GM * (1-T) the one-component value of the synthetic new background image colour parameter of synthesis unit;
The 3rd computing unit 204C is used for calculating by BA * T+BM * (1-T) the one-component value of the synthetic new background image colour parameter of synthesis unit;
Wherein, RA, GA, BA represent the color parameter component value of described each pixel of Background respectively, and RM, GM, BM represent that respectively second of described figure layer presets the color parameter component value.T represents the preset weight value, and 0≤T≤1.
In sum, by presetting first color parameter, whether the color of discerning Background voluntarily is suitable, can be if improper by increase figure layer, recomputate color parameter by the preset weight value, owing to recomputate color parameter by the preset weight value and can adjust color parameter, so again by the figure layer of the new parameter update increase that obtains and the new background image colour parameter that original Background synthesizes, so just make the user to have adjusted the color of Background very easily, thereby improved user's satisfaction.And the embodiment of the invention can also be applied in other occasions that needs to adjust flexibly background image colour, is not restricted to adjust the mobile phone background image colour.
The explanation of above embodiment just is used for helping to understand method of the present invention and thought thereof; Simultaneously, for one of ordinary skill in the art, according to thought of the present invention, part in specific embodiments and applications all can change.In sum, this description should not be construed as limitation of the present invention.

Claims (6)

1. a method of adjusting background image colour parameter is characterized in that, this method comprises:
When the color parameter of Background does not meet the first color parameter scope that presets, on Background, increase by one and meet the second figure layer that presets color parameter;
Redistribute the color parameter of described Background and described figure layer in the following way:
RB=RA×T+RM×(1-T);
GB=GA×T+GM×(1-T);
BB=BA×T+BM×(1-T);
Wherein, RA, GA, BA represent the color parameter component value of described each pixel of Background respectively, and RM, GM, BM represent that respectively second of described figure layer presets the color parameter component value, and T represents the preset weight value, and 0≤T≤1; RB, GB, BB represent the described one-component value that is used to upgrade background image colour parameter respectively;
With the color parameter of described Background of redistributing and described figure layer and, upgrade described Background and the color parameter of scheming the laminated new Background that becomes.
2. the method for adjustment background image colour parameter according to claim 1 is characterized in that, described weighted value is 0.5.
3. the method for adjustment background image colour parameter according to claim 1 is characterized in that, described second presets color parameter is: RM is 255; GM is 255; BM is 255.
4. a device of adjusting background image colour parameter is characterized in that, this device comprises:
Judging unit is used to judge whether the color parameter of Background does not meet the first color parameter scope that presets;
A figure layer unit is used for when color parameter that judgment unit judges obtains Background does not meet the first color parameter scope that presets, and one of increase meets the second figure layer that presets color parameter on Background;
Acquiring unit is used to obtain the color parameter of Background;
Computing unit, be used for by the preset weight value, the color parameter component value of each pixel of Background, and described figure layer second preset the color parameter that the color parameter component value is redistributed described Background and described figure layer, and calculate described Background of redistributing and described figure layer color parameter and;
Synthesis unit is used for the synthetic new Background of figure layer unit figure layer that increases and the Background that presets;
Updating block, be used for the color parameter of described Background of redistributing and described figure layer and, upgrade the color parameter of the synthetic new Background of described synthesis unit;
Described computing unit comprises:
First computing unit is used for calculating by RA * T+RM * (1-T) the one-component value of the synthetic new background image colour parameter of synthesis unit;
Second computing unit is used for calculating by GA * T+GM * (1-T) the one-component value of the synthetic new background image colour parameter of synthesis unit;
The 3rd computing unit is used for calculating by BA * T+BM * (1-T) the one-component value of the synthetic new background image colour parameter of synthesis unit;
Wherein, RA, GA, BA represent the color parameter component value of described each pixel of Background respectively, and RM, GM, BM represent that respectively second of described figure layer presets the color parameter component value, and T represents the preset weight value, and 0≤T≤1.
5. the device of adjustment background image colour parameter according to claim 4 is characterized in that, described weighted value is 0.5.
6. the device of adjustment background image colour parameter according to claim 4 is characterized in that, described second presets color parameter is: RM is 255; GM is 255; BM is 255.
CN2007100983563A 2007-04-19 2007-04-19 Method and device for adjusting background image colour parameter Active CN101071555B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2007100983563A CN101071555B (en) 2007-04-19 2007-04-19 Method and device for adjusting background image colour parameter

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2007100983563A CN101071555B (en) 2007-04-19 2007-04-19 Method and device for adjusting background image colour parameter

Publications (2)

Publication Number Publication Date
CN101071555A CN101071555A (en) 2007-11-14
CN101071555B true CN101071555B (en) 2010-06-23

Family

ID=38898751

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2007100983563A Active CN101071555B (en) 2007-04-19 2007-04-19 Method and device for adjusting background image colour parameter

Country Status (1)

Country Link
CN (1) CN101071555B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103176761B (en) * 2011-12-23 2016-08-10 中国移动通信集团公司 A kind of screen background method to set up and mobile terminal

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6809741B1 (en) * 1999-06-09 2004-10-26 International Business Machines Corporation Automatic color contrast adjuster

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6809741B1 (en) * 1999-06-09 2004-10-26 International Business Machines Corporation Automatic color contrast adjuster

Also Published As

Publication number Publication date
CN101071555A (en) 2007-11-14

Similar Documents

Publication Publication Date Title
CN101916168B (en) Method and system for displaying application icon
CN101706718A (en) Method and device for automatically changing desktop text color
CN103064713A (en) Method of changing terminal wallpaper automatically with weather
CN101866621A (en) LED display screen correction system and method
CN103888833B (en) A kind of smart television accesses the method and system of TV programme and application program
DE212011100048U1 (en) Device with display screen
CN103533244A (en) Shooting device and automatic visual effect processing shooting method thereof
CN105678686A (en) Picture processing method and device
WO2018048177A1 (en) Electronic device and method for processing multiple images
CN104182967B (en) image processing method, device and terminal
CN106610761A (en) Icon color adjusting method and device
CN103472997A (en) Method for automatically switching software interface display styles according to horizontal and vertical screens
CN105244008A (en) Display equipment and brightness adjusting method thereof
CN102402367A (en) Method for implementing dynamic theme in mobile phone terminal
CN105224162A (en) The matching process of terminal demonstration style and system
CN104020976A (en) Method and device for adjusting screen brightness
CN101902531A (en) Method and device for switching contextual model and mobile terminal
CN101071555B (en) Method and device for adjusting background image colour parameter
CN106453965B (en) The adaptive regulation method and device of terminal backlight
CN103686423B (en) For the collocation method and device of the visible image quality parameter of user
CN104090711A (en) Base plate color display method and device for icon
CN106406449A (en) Deformation method and device for smart wearing device
US9143250B2 (en) Blood glucose monitoring system having wireless communication module to which time synchronization method is applied
CN105450860A (en) Time adjusting method and time adjusting device
CN106856542A (en) The method and device of Icon Color is automatically adjusted according to wallpaper color

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