CN104035665A - Method and device for performing color processing on desktop icons - Google Patents

Method and device for performing color processing on desktop icons Download PDF

Info

Publication number
CN104035665A
CN104035665A CN201410264407.5A CN201410264407A CN104035665A CN 104035665 A CN104035665 A CN 104035665A CN 201410264407 A CN201410264407 A CN 201410264407A CN 104035665 A CN104035665 A CN 104035665A
Authority
CN
China
Prior art keywords
desktop
max
colour
row
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.)
Granted
Application number
CN201410264407.5A
Other languages
Chinese (zh)
Other versions
CN104035665B (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.)
TCL Corp
Original Assignee
TCL Corp
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 TCL Corp filed Critical TCL Corp
Priority to CN201410264407.5A priority Critical patent/CN104035665B/en
Publication of CN104035665A publication Critical patent/CN104035665A/en
Application granted granted Critical
Publication of CN104035665B publication Critical patent/CN104035665B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention provides a method and a device for performing color processing on desktop icons and aims at solving the technical problems of singleness in desktop icon color and high cost in desktop icon color and style changing. The method includes determining color value intervals (C1 and C2) acting on the desktop icons according to input of a user; replacing respective color values of the desktop icons by any color values in the color intervals (C1 and C2); storing background color values of respective positions where the desktop icons after replacement are positioned to enable colors of the desktop icons after being display on the desktop to be gradually-changing colors. By the method, on one hand, the problems of singleness of desktop icon color and low in desktop icon seeking efficiency of the user are solved; on the other hand, theme icons can be switched at any time without occupying internal memory, software development personnel is enabled not to depend on a graphical user interface to provide cut images when modifying schemes, development cost is lowered, and advantages of the processing mode in iterative development of terminal equipment are highlighted.

Description

A kind of method and apparatus that desktop icons is carried out to color processing
Technical field
The invention belongs to field, multimedia terminal, relate in particular to a kind of method and apparatus that desktop icons is carried out to color processing.
Background technology
The cut-throat competition of multimedia terminal has been no longer the competition that is confined to hardware aspect, but pays close attention to more and more the competition of software and system.Along with passing in informationization, exploitation threshold reduces and the appearing of the aspect advantages such as terminal device that can mate different resolution, the product of more and more companies adds the competition in this field, the diversity of the design of product and development difficulty are difficult to take into account.
At following lane terminal, industry needs better to experience and present larger more information, allows content revealing vitality.Yet it is more and more huger to be accompanied by interface information, personalized functional requirement and good user also experience and do not launch well.Unconformable with it, the application icon on terminal desktop (icon) is numerous but color is single, if user will find one of them icon, will not be a thing easily.If switch theme icon and interface color, when program design, to consider problems such as the management of internal memory and/or consumption, for example, before handover success, need to take partial memory original icon is preserved.
Summary of the invention
The object of the present invention is to provide a kind of method and apparatus that desktop icons is carried out to color processing, be intended to solve to find desktop icons inconvenience, and change desktop icons color and the higher technical matters of pattern cost.
The present invention is achieved in that a kind of method of desktop icons being carried out to color processing, and described method comprises:
According to user's input, define the interval (C of colour that acts on desktop icons 1, C 2), described C 1for the threshold value in described colour interval, described C 2end point values for described colour interval;
Described desktop icons colour is separately replaced as to the interval (C of described colour 1, C 2) in any colour;
The desktop icons of preservation after described displacement are the background colour of position separately, so that described desktop icons color after desktop shows is gradual change color.
Another object of the present invention is to provide a kind of device that desktop icons is carried out to color processing, described device comprises:
Module is defined in colour interval, for according to user's input, defines the interval (C of colour that acts on desktop icons 1, C 2), described C 1for the threshold value in described colour interval, described C 2end point values for described colour interval;
Replacement module, for being replaced as described desktop icons colour separately interval (the C of described colour 1, C 2) in any colour;
First preserves module, for preserving desktop icons after the described replacement module displacement background colour of position separately, so that described desktop icons color after desktop shows is gradual change color.
From the invention described above embodiment, after defining the colour interval that acts on desktop icons, process is to the colour of desktop position, desktop icons place through simply replacing and preserving, and when load next time, can make described desktop icons color after desktop shows is gradual change color.On the one hand, because desktop icons color after desktop shows is gradual change color, solved the problem that desktop icons color is single, user finds desktop icons inefficiency, on the other hand, need to through simple displacement, be only replaceable desktop icons color to the colour of desktop icons, therefore, can the in the situation that of committed memory not, switch at any time theme icon, making software developer when modification, no longer rely on graphic user interface provides and cuts figure, reduce cost of development, also highlighted the advantage of this processing mode in terminal device iterative development.
Accompanying drawing explanation
Fig. 1 be the embodiment of the present invention one provide desktop icons are carried out to the realization flow schematic diagram of the method for color processing;
Fig. 2 be the embodiment of the present invention two provide desktop icons are carried out to the realization flow schematic diagram of the method for color processing;
Fig. 3 be the embodiment of the present invention three provide desktop icons are carried out to the realization flow schematic diagram of the method for color processing;
Fig. 4 be one embodiment of the invention provide according to user's input, define the realization flow schematic diagram in the colour interval that acts on desktop icons;
Fig. 5 be the embodiment of the present invention four provide desktop icons are carried out to the structural representation of the device of color processing;
Fig. 6 be the embodiment of the present invention five provide desktop icons are carried out to the structural representation of the device of color processing;
Fig. 7 be the embodiment of the present invention six provide desktop icons are carried out to the structural representation of the device of color processing;
Fig. 8-a be the embodiment of the present invention seven provide desktop icons are carried out to the structural representation of the device of color processing;
Fig. 8-b be the embodiment of the present invention eight provide desktop icons are carried out to the structural representation of the device of color processing;
Fig. 8-c be the embodiment of the present invention nine provide desktop icons are carried out to the structural representation of the device of color processing.
Embodiment
In order to make object of the present invention, technical scheme and beneficial effect clearer, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein, only in order to explain the present invention, is not intended to limit the present invention.
The embodiment of the present invention provides a kind of method of desktop icons being carried out to color processing, and described method comprises: according to user's input, define the interval (C of colour that acts on desktop icons 1, C 2), described C 1for the threshold value in described colour interval, described C 2end point values for described colour interval; Described desktop icons colour is separately replaced as to the interval (C of described colour 1, C 2) in any colour; The desktop icons of preservation after described displacement are the background colour of position separately, so that described desktop icons color after desktop shows is gradual change color.The embodiment of the present invention also provides the device that accordingly desktop icons is carried out to color processing.Below be elaborated respectively.
Refer to accompanying drawing 1, be the embodiment of the present invention one provide desktop icons are carried out to the realization flow of the method for color processing, it can be applied to terminal device, for example, televisor, PC or mobile terminal etc.The method that desktop icons are carried out to color processing of accompanying drawing 1 example mainly comprises the following steps S101 to step S103:
S101, according to user's input, defines the interval (C of colour that acts on desktop icons 1, C 2), described C 1for the threshold value in described colour interval, described C 2end point values for described colour interval.
It should be noted that, in the present embodiment, the interval (C of colour 1, C 2) two end points C 1and C 2also can equate.Work as C 1and C 2while equating, show the input according to user, only determined that a kind of color replaces the colour of current desktop icons.At C 1and C 2when unequal, desktop icons show by the effect that is gradual change color.
S102, is replaced as the interval (C of the colour defining in step S101 by desktop icons colour separately 1, C 2) in any colour.
It should be noted that, because desktop remains picture in essence, and in embodiments of the present invention, desktop icons are considered as to picture process, therefore, the desktop of terminal also can be considered as icon.In other words, the method that the embodiment of the present invention is processed the color of desktop icons is also applicable to desktop.
S103, the desktop icons of preservation after step S102 displacement colour separately, so that desktop icons color after desktop shows is gradual change color.Gradual change color described here can be any direction, can certainly provide the option of several directions to select for user.
Through above-mentioned steps S101 and S102, the color of desktop icons has in fact changed new color into, only the colour separately of the desktop icons after step S102 displacement need to be kept under the particular category of system automatically, follow-up need to show desktop icons time, find background picture under this catalogue to load and just can realize the effect of gradual change color.
The method that desktop icons are carried out to color processing providing from the invention described above embodiment, after defining the colour interval that acts on desktop icons, process is to the background colour of desktop position, desktop icons place through simply replacing and preserving, and when load next time, can make described desktop icons color after desktop shows is gradual change color.On the one hand, because desktop icons color after desktop shows is gradual change color, solved desktop icons color single, user finds the problem of desktop icons inefficiency, on the other hand, need to through simple displacement, be only replaceable desktop icons color to the background colour of desktop position, desktop icons place, therefore, can the in the situation that of committed memory not, switch at any time theme icon, making software developer when modification, no longer rely on graphic user interface provides and cuts figure, reduced cost of development, also highlighted the advantage of this processing mode in terminal device iterative development.
In one embodiment of the invention, desktop icons color after desktop shows is that gradual change color is specially: in desktop icons, individual desktop icon is shown as pure color and take all desktop icons at desktop and at desktop, is shown as gradual change color during as integral body.That is to say, take individual desktop icon during as the object of observation, this individual desktop icon is a kind of color, for example, blueness, still, if during using all desktop icons on desktop as a whole observation object, what this integral body showed is a kind of effect of gradual change color.
Corresponding to individual desktop icon in above-mentioned desktop icons, at desktop, be shown as pure color and take all desktop icons and at desktop, be shown as the embodiment of gradual change color during as integral body, the embodiment of the present invention two provide to desktop icons carry out color processing method realization flow as shown in Figure 2, it can be applied to terminal device, for example, televisor, PC or mobile terminal etc.The method that desktop icons are carried out to color processing of accompanying drawing 2 examples mainly comprises the following steps S201 to step S204:
S201, according to user's input, defines the interval (C of colour that acts on desktop icons 1, C 2), described C 1for the threshold value in described colour interval, described C 2end point values for described colour interval.
It should be noted that, in the present embodiment, the interval (C of colour 1, C 2) two end points C 1and C 2also can equate.Work as C 1and C 2while equating, show the input according to user, only determined that a kind of color replaces the colour of current desktop icons.At C 1and C 2when unequal, desktop icons show by the effect that is gradual change color.
S202, determines that any one desktop icons is at the position of desktop (N i, M i).
In the present embodiment, (N i, M i) represent that any one desktop icons is at N maxrow M maxn in the matrix A that row form irow M irow, and the element position of matrix A represents the N that whole desktop can hold max* M maxdesktop position, individual icon place.In other words, the N that whole desktop can hold max* M maxeach desktop position, icon place and N of individual icon maxrow M maxposition in each element place matrix A in the matrix A that row form is corresponding one by one, that is, and and N on desktop irow M ithe icon of row is corresponding to N in matrix A irow M ithe element of row, wherein, N ifor [1, N max] in integer, M ifor [1, M max] in integer.
S203, by N irow M ithe colour assignment of the desktop icons of row is (C 2-C 1) * (N i/ N max) * (M i/ M max)+C 1.
By N irow M ithe colour assignment of the desktop icons of row is (C 2-C 1) * (N i/ N max) * (M i/ M max)+C 1, mean N max* M maxthe color of individual each desktop icons of desktop icons is by difference.
If desired each row icon all carries out the gradual change of color with same gradual manner, and for example, each row icon is the object of observation as a whole, is all to fade to darkviolet from lilac, only needs (C 2-C 1) * (N i/ N max) * (M i/ M max)+C 1in M ibe any N irow M ithe row of row desktop icons number unified assignment is M max, that is, and as by N irow M ithe colour assignment of the desktop icons of row is (C 2-C 1) * (N i/ N max) * (M i/ M max)+C 1special case, if desired each row icon all carries out the gradual change of color with same gradual manner, by N irow M ithe colour assignment of the desktop icons of row is (C 2-C 1) * (N i/ N max)+C 1.
Similarly, if desired every a line icon all carries out the gradual change of color with same gradual manner, and for example, every a line icon is the object of observation as a whole, is all to fade to darkviolet from lilac, only needs (C 2-C 1) * (N i/ N max) * (M i/ M max)+C 1in N ibe any N irow M iit is N that the line number of row desktop icons is unified assignment max, that is, and as by N irow M ithe colour assignment of the desktop icons of row is (C 2-C 1) * (N i/ N max) * (M i/ M max)+C 1special case, if desired every a line icon all carries out the gradual change of color with same gradual manner, by N irow M ithe colour assignment of the desktop icons of row is (C 2-C 1) * M i/ M max+ C 1.
S204, the desktop icons of preservation after step S202 and S203 displacement colour separately, so that desktop icons color after desktop shows is gradual change color.
Through above-mentioned steps S201 to S203, the color of desktop icons has in fact changed new color into, only the colour separately of the desktop icons after step S202 and S203 displacement need to be kept under the particular category of system, follow-up need to show desktop icons time, find background picture under this catalogue to load and just can realize the effect of gradual change color.
In another embodiment of the present invention, desktop icons color after desktop shows is that gradual change color is specially: in desktop icons, individual desktop icon is shown as gradual change color at desktop,, take individual desktop icon during as the object of observation, what this individual desktop icon showed is a kind of effect of gradual change color, this also means, each desk-top picture indicates between its color zones.Convenient for following description, will between the color zones of each desktop icons, use (C here b1, C b2) represent.
Corresponding to individual desktop icon in above-mentioned desktop icons, at desktop, be shown as the embodiment of gradual change color, the embodiment of the present invention three provide to desktop icons carry out color processing method realization flow as shown in Figure 3, it can be applied to terminal device, for example, televisor, PC or mobile terminal etc.The method that desktop icons are carried out to color processing of accompanying drawing 3 examples mainly comprises the following steps S301 to step S305:
S301, according to user's input, defines the interval (C of colour that acts on desktop icons 1, C 2), described C 1for the threshold value in described colour interval, described C 2end point values for described colour interval.
It should be noted that, in the present embodiment, the interval (C of colour 1, C 2) two end points C 1and C 2also can equate.Work as C 1and C 2while equating, show the input according to user, only determined that a kind of color replaces the colour of current desktop icons.At C 1and C 2when unequal, desktop icons show by the effect that is gradual change color.
S302, determines that any one desktop icons is at the position of desktop (N i, M i).
In the present embodiment, (N i, M i) represent that any one desktop icons is at N maxrow M maxn in the matrix A that row form irow M irow, and the element position of matrix A represents the N that whole desktop can hold max* M maxdesktop position, individual icon place.In other words, the N that whole desktop can hold max* M maxeach desktop position, icon place and N of individual icon maxrow M maxposition in each element place matrix A in the matrix A that row form is corresponding one by one, that is, and and N on desktop irow M ithe desktop icons of row are corresponding to N in matrix A irow M ithe element of row, wherein, N ifor [1, N max] in integer, M ifor [1, M max] in integer.
S303, by N irow M i(C between the color zones of the desktop icons of row b1, C b2) lower limit C b1assignment is (C 2-C 1) * (N i/ N max) * (M i/ 2M max)+C 1, by N irow M i(C between the color zones of the desktop icons of row b1, C b2) upper limit C b2assignment is (C 2-C 1) * (N i/ N max) * (3M i/ 2M max)+C 1.
Although N in the present embodiment, irow M ithe desktop icons of row have (C between color zones b1, C b2) be that its display effect is gradual change color, but for thering is (C between color zones b1, C b2) N irow M ithe desktop icons of row, if get intermediate value (C to its color b1+ C b2)/2=C b3, for color, get intermediate value C b3n irow M ithe desktop icons of row, are equivalent to be shown as pure color at desktop.Therefore, if N irow M ithe color of the desktop icons of row is got intermediate value C b3, copying accompanying drawing 2 is the processing of bis-pairs of individual desktop icons of embodiment when desktop is shown as pure color, can be first by N irow M ithe intermediate value C of the color of the desktop icons of row b3assignment is (C 2-C 1) * (N i/ N max) * (M i/ M max)+C 1, i.e. C b3=(C 2-C 1) * (N i/ N max) * (M i/ M max)+C 1, again because (C b1+ C b2)/2=C b3, obtain first about C b1and C b2equation:
(C b1+ C b2)/2=(C 2-C 1) * (N i/ N max) * (M i/ M max)+C 1(formula 1)
(C between note color zones b1, C b2) difference be C s, have:
C s=C b2-C b1(formula 2)
And according to N irow M ithe desktop icons of row are known in the definition of desktop position:
C s=(C 2-C 1) * (N i/ N max) * (M i/ M max), convolution 2, obtains:
C b2-C b1=(C 2-C 1) * (N i/ N max) * (M i/ M max) ... (formula 3)
Association type 1 and formula 3, obtain about C b1and C b2the solution of equation:
C b1=(C 2-C 1) * (N i/ N max) * (M i/ 2M max)+C 1, that is, and N irow M i(C between the color zones of the desktop icons of row b1, C b2) lower limit C b1be assigned (C 2-C 1) * (N i/ N max) * (M i/ 2M max)+C 1, and
C b2=(C 2-C 1) * (N i/ N max) * (3M i/ 2M max)+C 1, that is, and N irow M i(C between the color zones of the desktop icons of row b1, C b2) upper limit C b2be assigned (C 2-C 1) * (N i/ N max) * (3M i/ 2M max)+C 1.
As similar in previous embodiment two, in the present embodiment, if desired each row icon all carries out the gradual change of color with same gradual manner, and for example, in each row icon, each single icon is to fade to darkviolet from lilac as the object of observation, has C s=(C 2-C 1)/N max, and C s=C b2-C b1thereby:
C b2-C b1=(C 2-C 1)/N max(formula 4)
For each row icon, all with same gradual manner, carry out this situation of gradual change of color, M iby assignment M maxfor, i.e. M i=M max, therefore, formula 1 is evolved into:
(C b1+ C b2)/2=(C 2-C 1) * (N i/ N max)+C 1(formula 5)
Association type 4 and formula 5 obtain:
C b1=(C 2-C 1)/N max* (N i-0.5)+C 1(formula 6)
C b2=(C 2-C 1)/N max* (N i+ 0.5)+C 1(formula 7)
That is, if desired each row icon all carries out the gradual change of color, N with same gradual manner irow M i(C between the color zones of the desktop icons of row b1, C b2) lower limit C b1be assigned (C 2-C 1)/N max* (N i-0.5)+C 1, N irow M i(C between the color zones of the desktop icons of row b1, C b2) upper limit C b2be assigned (C 2-C 1)/N max* (N i+ 0.5)+C 1.
If desired every a line icon all carries out the gradual change of color with same gradual manner, and for example, in every a line icon, each single icon is to fade to darkviolet from lilac as the object of observation, has C s=(C 2-C 1)/M max, and C s=C b2-C b1thereby:
C b2-C b1=(C 2-C 1)/M max(formula 8)
For every a line icon, all with same gradual manner, carry out this situation of gradual change of color, N iby assignment N maxfor, i.e. N i=N max, therefore, formula 1 is evolved into:
(C b1+ C b2)/2=(C 2-C 1) * (M i/ M max)+C 1(formula 9)
Association type 8 and formula 9 obtain:
C b1=(C 2-C 1)/M max* (M i-0.5)+C 1(formula 10)
C b2=(C 2-C 1)/M max* (M i+ 0.5)+C 1(formula 11)
That is, if desired every a line icon all carries out the gradual change of color, N with same gradual manner irow M i(C between the color zones of the desktop icons of row b1, C b2) lower limit C b1be assigned (C 2-C 1)/M max* (M i-0.5)+C 1, N irow M i(C between the color zones of the desktop icons of row b1, C b2) upper limit C b2be assigned (C 2-C 1)/M max* (M i+ 0.5)+C 1.
S304, by N irow M iin the desktop icons of row, the color value assignment of any one pixel is (C b2-C b1) * (y/H max) * (x/W max)+C b1, described x and y are that described pixel is at horizontal ordinate and the ordinate of the position of desktop, described W maxand H maxbe respectively the maximal value of width and the height of desktop.
Remember N irow M iin the desktop icons of row, the color value of any one pixel is R (x, y):
For by N irow M i(C between the color zones of the desktop icons of row b1, C b2) lower limit C b1assignment is (C 2-C 1) * (N i/ N max) * (M i/ 2M max)+C 1, by N irow M i(C between the color zones of the desktop icons of row b1, C b2) upper limit C b2assignment is (C 2-C 1) * (N i/ N max) * (3M i/ 2M max)+C 1this situation, R (x, y)=(C 2-C 1) * (N i/ N max) * (M i/ M max) * ((y/H max) * (x/W max)+1/2)+C 1;
For each row icon, all with same gradual manner, carry out this situation of gradual change of color, R (x, y)=(C 2-C 1)/N max* (x/W max+ N i-0.5)+C 1;
For every a line icon, all with same gradual manner, carry out this situation of gradual change of color, R (x, y)=(C 2-C 1)/M max* (y/H max+ M i-0.5)+C 1
S305, the desktop icons of preservation after step S302 to S304 displacement colour separately, so that desktop icons color after desktop shows is gradual change color.
Through above-mentioned steps S301 to S305, the color of desktop icons has in fact changed new color into, only the colour separately of the desktop icons after step S301 to S305 displacement need to be kept under the particular category of system, follow-up need to show desktop icons time, find background picture under this catalogue to load and just can realize the effect of gradual change color.
The method that desktop icons are carried out to color processing for accompanying drawing 1 to accompanying drawing 3 arbitrary examples, as one embodiment of the invention, according to user's input, defines the interval (C of colour that acts on desktop icons 1, C 2) can comprise the steps that S401, to step S403, as shown in Figure 4, is described as follows:
S401, after listening to double-click event, obtains the click location while double-clicking, and wherein, double-click is the double-click to colour piece.
S402, the click location of obtaining in step S401 of take is the center of circle, obtains within the scope of predetermined radii all colour pieces and amplifies the shared region of described predetermined radii scope.
S403, the colour of the colour piece that user is selected in all colour pieces in the region of amplifying is as the interval (C of colour 1, C 2) threshold value preserve, the colour of another colour piece that user is selected in all colour pieces in the region of amplifying is as the interval (C of colour 1, C 2) end point values preserve.
Refer to accompanying drawing 5, be the embodiment of the present invention four provide desktop icons are carried out to the structural representation of the device of color processing.For convenience of explanation, only show the part relevant to the embodiment of the present invention.The device that desktop icons are carried out to color processing of accompanying drawing 5 examples mainly comprises that module 501 is defined in colour interval, replacement module 502 and first is preserved module 503, and each functional module is described in detail as follows:
Module 501 is defined in colour interval, for according to user's input, defines the interval (C of colour that acts on desktop icons 1, C 2), described C 1for the threshold value in described colour interval, described C 2end point values for described colour interval;
Replacement module 502, for being replaced as described desktop icons colour separately interval (the C of described colour 1, C 2) in any colour;
First preserves module 503, for preserving desktop icons after described displacement colour separately, so that described desktop icons color after desktop shows is gradual change color.
Accompanying drawing 5 examples desktop icons are carried out in the device of color processing, desktop icons color after desktop shows is that gradual change color can be: in desktop icons, individual desktop icon is shown as pure color and take all desktop icons at desktop and at desktop, is shown as gradual change color during as integral body.That is to say, take individual desktop icon during as the object of observation, this individual desktop icon is a kind of color, for example, blueness, still, if during using all desktop icons on desktop as a whole observation object, what this integral body showed is a kind of effect of gradual change color.
Corresponding to individual desktop icon in desktop icons, at desktop, be shown as pure color and take all desktop icons and at desktop, be shown as the embodiment of gradual change color during as integral body, the replacement module 502 of accompanying drawing 5 examples can comprise determining unit 601 and the first assignment unit 602, the device that desktop icons are carried out to color processing that the embodiment of the present invention five provides as shown in Figure 6, wherein:
Determining unit 601, for determining that any one desktop icons is at the position of desktop (N i, M i), described (N i, M i) represent that described any one desktop icons are at N maxrow M maxn in the matrix A that row form irow M irow, the element position of described matrix A represents the N that whole desktop can hold max* M maxdesktop position, individual icon place, described N ifor [1, N max] in integer, described M ifor [1, M max] in integer;
The first assignment unit 602, for by N irow M ithe colour assignment of the desktop icons of row is (C 2-C 1) * (N i/ N max) * (M i/ M max)+C 1.
Accompanying drawing 5 examples desktop icons are carried out in the device of color processing, desktop icons color after desktop shows is that gradual change color can be: in desktop icons, individual desktop icon is shown as gradual change color at desktop,, take individual desktop icon during as the object of observation, what this individual desktop icon showed is a kind of effect of gradual change color, this also means, each desk-top picture indicates between its color zones.Convenient for following description, will between the color zones of each desktop icons, use (C here b1, C b2) represent.
Corresponding to individual desktop icon in above-mentioned desktop icons, at desktop, be shown as the embodiment of gradual change color, the replacement module 502 of accompanying drawing 5 examples can comprise determining unit 701, the second assignment unit 702 and the 3rd assignment unit 703, the device that desktop icons are carried out to color processing that the embodiment of the present invention six provides as shown in Figure 7, wherein:
Determining unit 701, for determining that any one desktop icons is at the position of desktop (N i, M i), described (N i, M i) represent that described any one desktop icons are at N maxrow M maxn in the matrix A that row form irow M irow, the element position of described matrix A represents the N that whole desktop can hold max* M maxdesktop position, individual icon place, described N ifor [1, N max] in integer, described M ifor [1, M max] in integer;
The second assignment unit 702, for by described N irow M i(C between the color zones of the desktop icons of row b1, C b2) lower limit C b1assignment is (C 2-C 1) * (N i/ N max) * (M i/ 2M max)+C 1, by described N irow M i(C between the color zones of the desktop icons of row b1, C b2) upper limit C b2assignment is (C 2-C 1) * (N i/ N max) * (3M i/ 2M max)+C 1;
The 3rd assignment unit 703, for by described N irow M iin the desktop icons of row, the color value assignment of any one pixel is (C b2-C b1) * (y/H max) * (x/W max)+C b1, described x and y are that described pixel is at horizontal ordinate and the ordinate of the position of desktop, described W maxand H maxbe respectively the maximal value of width and the height of desktop.
Module 501 is defined in accompanying drawing 5 to the colour interval that the arbitrary example of accompanying drawing 7 provides can comprise position acquisition unit 801, region amplifying unit 802 and the second storage unit 803, the device that desktop icons are carried out to color processing providing to embodiment seven to embodiment nine arbitrary examples of accompanying drawing 8-c as accompanying drawing 8-a, wherein:
Position acquisition unit 801, for after listening to double-click event, the click location while obtaining described double-click, described double-click is the double-click to colour piece;
Region amplifying unit 802, for take described click location as the center of circle, obtains within the scope of predetermined radii all colour pieces and amplifies the shared region of described predetermined radii scope;
The second storage unit 803, for the threshold value using the colour of the described user colour piece that all colour pieces are selected in described region as described colour interval, preserve, the colour of another colour piece that described user is selected in all colour pieces in described region is preserved as the end point values in described colour interval.
It should be noted that, the contents such as the information interaction between each module/unit of said apparatus, implementation, due to the inventive method embodiment based on same design, its technique effect bringing is identical with the inventive method embodiment, particular content can, referring to the narration in the inventive method embodiment, repeat no more herein.
One of ordinary skill in the art will appreciate that all or part of step in the whole bag of tricks of above-described embodiment is to come the hardware that instruction is relevant to complete by program, this program can be stored in a computer-readable recording medium, storage medium can comprise: ROM (read-only memory) (ROM, Read Only Memory), random access memory (RAM, Random Access Memory), disk or CD etc.
The method and apparatus that desktop icons are carried out to color the processing above embodiment of the present invention being provided is described in detail, applied specific case herein principle of the present invention and embodiment are set forth, the explanation of above embodiment is just for helping to understand method of the present invention and core concept thereof; , for one of ordinary skill in the art, according to thought of the present invention, all will change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention meanwhile.

Claims (12)

1. desktop icons are carried out to a method for color processing, it is characterized in that, described method comprises:
According to user's input, define the interval (C of colour that acts on desktop icons 1, C 2), described C 1for the threshold value in described colour interval, described C 2end point values for described colour interval;
Described desktop icons colour is separately replaced as to the interval (C of described colour 1, C 2) in any colour;
The desktop icons of preservation after described displacement colour separately, so that described desktop icons color after desktop shows is gradual change color.
2. the method for claim 1, it is characterized in that, described desktop icons color after desktop shows is that gradual change color is specially: in described desktop icons, individual desktop icon is shown as pure color and take all described desktop icons at desktop and at desktop, is shown as gradual change color during as integral body.
3. method as claimed in claim 2, is characterized in that, described described desktop icons colour is separately replaced as to the interval (C of described colour 1, C 2) in any colour, comprising:
Determine that any one desktop icons is at the position of desktop (N i, M i), described (N i, M i) represent that described any one desktop icons are at N maxrow M maxn in the matrix A that row form irow M irow, the element position of described matrix A represents the N that whole desktop can hold max* M maxdesktop position, individual icon place, described N ifor [1, N max] in integer, described M ifor [1, M max] in integer;
By described N irow M ithe colour assignment of the desktop icons of row is (C 2-C 1) * (N i/ N max) * (M i/ M max)+C 1.
4. the method for claim 1, is characterized in that, described desktop icons color after desktop shows is that gradual change color is specially: in described desktop icons, individual desktop icon is shown as gradual change color at desktop.
5. method as claimed in claim 4, is characterized in that, described described desktop icons colour is separately replaced as to the interval (C of described colour 1, C 2) in any colour, comprising:
Determine that any one desktop icons is at the position of desktop (N i, M i), described (N i, M i) represent that described any one desktop icons are at N maxrow M maxn in the matrix A that row form irow M irow, the element position of described matrix A represents the N that whole desktop can hold max* M maxdesktop position, individual icon place, described N ifor [1, N max] in integer, described M ifor [1, M max] in integer;
By described N irow M i(C between the color zones of the desktop icons of row b1, C b2) lower limit C b1assignment is (C 2-C 1) * (N i/ N max) * (M i/ 2M max)+C 1, by described N irow M i(C between the color zones of the desktop icons of row b1, C b2) upper limit C b2assignment is (C 2-C 1) * (N i/ N max) * (3M i/ 2M max)+C 1;
By described N irow M iin the desktop icons of row, the color value assignment of any one pixel is (C b2-C b1) * (y/H max) * (x/W max)+C b1, described x and y are that described pixel is at horizontal ordinate and the ordinate of the position of desktop, described W maxand H maxbe respectively the maximal value of width and the height of desktop.
6. the method as described in claim 1 to 5 any one, is characterized in that, described according to user's input, defines the interval (C of colour that acts on desktop icons 1, C 2), comprising:
After listening to double-click event, the click location while obtaining described double-click, described double-click is the double-click to colour piece;
Take described click location as the center of circle, obtain within the scope of predetermined radii all colour pieces and amplify the shared region of described predetermined radii scope;
The colour of the colour piece that described user is selected in all colour pieces in described region is preserved as the threshold value in described colour interval, and the colour of another colour piece that described user is selected in all colour pieces in described region is preserved as the end point values in described colour interval.
7. desktop icons are carried out to a device for color processing, it is characterized in that, described device comprises:
Module is defined in colour interval, for according to user's input, defines the interval (C of colour that acts on desktop icons 1, C 2), described C 1for the threshold value in described colour interval, described C 2end point values for described colour interval;
Replacement module, for being replaced as described desktop icons colour separately interval (the C of described colour 1, C 2) in any colour;
First preserves module, for preserving desktop icons after described displacement colour separately, so that described desktop icons color after desktop shows is gradual change color.
8. device as claimed in claim 7, it is characterized in that, described desktop icons color after desktop shows is that gradual change color is specially: in described desktop icons, individual desktop icon is shown as pure color and take all described desktop icons at desktop and at desktop, is shown as gradual change color during as integral body.
9. device as claimed in claim 8, is characterized in that, described replacement module comprises:
Determining unit, for determining that any one desktop icons is at the position of desktop (N i, M i), described (N i, M i) represent that described any one desktop icons are at N maxrow M maxn in the matrix A that row form irow M irow, the element position of described matrix A represents the N that whole desktop can hold max* M maxdesktop position, individual icon place, described N ifor [1, N max] in integer, described M ifor [1, M max] in integer;
The first assignment unit, for by described N irow M ithe colour assignment of the desktop icons of row is (C 2-C 1) * (N i/ N max) * (M i/ M max)+C 1.
10. device as claimed in claim 7, is characterized in that, described desktop icons color after desktop shows is that gradual change color is specially: in described desktop icons, individual desktop icon is shown as gradual change color at desktop.
11. devices as claimed in claim 10, is characterized in that, described replacement module comprises:
Determining unit, for determining that any one desktop icons is at the position of desktop (N i, M i), described (N i, M i) represent that described any one desktop icons are at N maxrow M maxn in the matrix A that row form irow M irow, the element position of described matrix A represents the N that whole desktop can hold max* M maxdesktop position, individual icon place, described N ifor [1, N max] in integer, described M ifor [1, M max] in integer;
The second assignment unit, for by described N irow M i(C between the color zones of the desktop icons of row b1, C b2) lower limit C b1assignment is (C 2-C 1) * (N i/ N max) * (M i/ 2M max)+C 1, by described N irow M i(C between the color zones of the desktop icons of row b1, C b2) upper limit C b2assignment is (C 2-C 1) * (N i/ N max) * (3M i/ 2M max)+C 1;
The 3rd assignment unit, for by described N irow M iin the desktop icons of row, the color value assignment of any one pixel is (C b2-C b1) * (y/H max) * (x/W max)+C b1, described x and y are that described pixel is at horizontal ordinate and the ordinate of the position of desktop, described W maxand H maxbe respectively the maximal value of width and the height of desktop.
12. devices as described in claim 7 to 11 any one, is characterized in that, described colour interval is defined module and comprised:
Position acquisition unit, for after listening to double-click event, the click location while obtaining described double-click, described double-click is the double-click to colour piece;
Region amplifying unit, for take described click location as the center of circle, obtains within the scope of predetermined radii all colour pieces and amplifies the shared region of described predetermined radii scope;
The second storage unit, for the threshold value using the colour of the described user colour piece that all colour pieces are selected in described region as described colour interval, preserve, the colour of another colour piece that described user is selected in all colour pieces in described region is preserved as the end point values in described colour interval.
CN201410264407.5A 2014-06-13 2014-06-13 A kind of method and apparatus that desktop icons are carried out with colors countenance Active CN104035665B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410264407.5A CN104035665B (en) 2014-06-13 2014-06-13 A kind of method and apparatus that desktop icons are carried out with colors countenance

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410264407.5A CN104035665B (en) 2014-06-13 2014-06-13 A kind of method and apparatus that desktop icons are carried out with colors countenance

Publications (2)

Publication Number Publication Date
CN104035665A true CN104035665A (en) 2014-09-10
CN104035665B CN104035665B (en) 2017-12-01

Family

ID=51466459

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410264407.5A Active CN104035665B (en) 2014-06-13 2014-06-13 A kind of method and apparatus that desktop icons are carried out with colors countenance

Country Status (1)

Country Link
CN (1) CN104035665B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104657465A (en) * 2015-02-10 2015-05-27 腾讯科技(深圳)有限公司 Webpage display control method and device
CN110471524A (en) * 2019-07-31 2019-11-19 维沃移动通信有限公司 Display control method and terminal device
WO2021129213A1 (en) * 2019-12-24 2021-07-01 华为技术有限公司 Theme icon generation method and apparatus therefor, and computer device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100107120A1 (en) * 2008-10-27 2010-04-29 Microsoft Corporation Painting user controls
CN101916168A (en) * 2010-08-31 2010-12-15 宇龙计算机通信科技(深圳)有限公司 Method and system for displaying application icon and mobile terminal
CN103137095A (en) * 2011-11-23 2013-06-05 腾讯科技(深圳)有限公司 Method and device for setting foreground and background of electronic reading
CN103544004A (en) * 2013-08-01 2014-01-29 Tcl集团股份有限公司 Method and terminal for adjusting background color of icon according to color wheel

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100107120A1 (en) * 2008-10-27 2010-04-29 Microsoft Corporation Painting user controls
CN101916168A (en) * 2010-08-31 2010-12-15 宇龙计算机通信科技(深圳)有限公司 Method and system for displaying application icon and mobile terminal
CN103137095A (en) * 2011-11-23 2013-06-05 腾讯科技(深圳)有限公司 Method and device for setting foreground and background of electronic reading
CN103544004A (en) * 2013-08-01 2014-01-29 Tcl集团股份有限公司 Method and terminal for adjusting background color of icon according to color wheel

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104657465A (en) * 2015-02-10 2015-05-27 腾讯科技(深圳)有限公司 Webpage display control method and device
CN104657465B (en) * 2015-02-10 2018-01-23 腾讯科技(深圳)有限公司 The display control method and device of a kind of webpage
CN110471524A (en) * 2019-07-31 2019-11-19 维沃移动通信有限公司 Display control method and terminal device
CN110471524B (en) * 2019-07-31 2021-07-27 维沃移动通信有限公司 Display control method and terminal equipment
WO2021129213A1 (en) * 2019-12-24 2021-07-01 华为技术有限公司 Theme icon generation method and apparatus therefor, and computer device

Also Published As

Publication number Publication date
CN104035665B (en) 2017-12-01

Similar Documents

Publication Publication Date Title
US9354779B2 (en) Providing theme variations in a user interface
US8013869B2 (en) Color selection interface
CN103176702B (en) A kind of display of form category information, method of operating being applied to B/S structure
CN102255820B (en) Instant communication method and device
US20150154763A1 (en) Control system and method for controlling background colors for mobile terminal
US9836203B2 (en) Grid-based visual design environment
US20120284648A1 (en) Cascading Data Displays and Methods
US10157370B2 (en) Graphical user interface for adjusting elements of a wizard facility displayed on a user device
CN103425452A (en) Multi-layer overlapping display method and device for mobile terminal
CN105786435A (en) Wallpaper picture display method and device
CN104035665A (en) Method and device for performing color processing on desktop icons
CN107272984A (en) Application icon preview method and device and electronic equipment
CN104462516A (en) Information prompt method and mobile terminal
CN104793835A (en) System for changing interface colors and implementation method thereof
CN103472989A (en) Wallpaper switching method and wallpaper switching terminal
CN104461614A (en) Method for processing theme resource and electronic device
CN106569652A (en) Android multi-window displaying method and Android multi-window displaying device
CN104778022A (en) Data processing method and electronic equipment
CN104077091A (en) Information processing method and electronic equipment
CN106371694A (en) Intelligent image capture method and apparatus used for optional global or local image capture, and terminal device
US8584008B1 (en) Method and system for layout of annotation data
CN103513855B (en) Method and device for updating display pages
CN107943362B (en) User interface display method and device of mobile terminal
US20160282957A1 (en) Keyboard output setting system and method
CN107526576A (en) The methods of exhibiting and device of the view component of the page

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
EXSB Decision made by sipo to initiate substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant