CN105957125A - Icon character processing method and mobile terminal - Google Patents

Icon character processing method and mobile terminal Download PDF

Info

Publication number
CN105957125A
CN105957125A CN201610345441.4A CN201610345441A CN105957125A CN 105957125 A CN105957125 A CN 105957125A CN 201610345441 A CN201610345441 A CN 201610345441A CN 105957125 A CN105957125 A CN 105957125A
Authority
CN
China
Prior art keywords
color parameter
text
word
difference
parameter
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
CN201610345441.4A
Other languages
Chinese (zh)
Other versions
CN105957125B (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201610345441.4A priority Critical patent/CN105957125B/en
Publication of CN105957125A publication Critical patent/CN105957125A/en
Application granted granted Critical
Publication of CN105957125B publication Critical patent/CN105957125B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/60Editing figures and text; Combining figures or text

Abstract

The invention discloses an icon character processing method and a mobile terminal. The method may comprise that character display areas of icons are determined in a preset interface; character and background color parameters of the character display areas are obtained; and if the difference between the character color parameter and the background color parameter of certain character display area satisfies a preset condition, corresponding character shadows are added to the character display area according to the difference and the character color parameter. According to the invention, when the character color is relatively similar to the background color, different character shadows can be added to the character display area adaptively, and the identification degree of icon characters is improved.

Description

The processing method of a kind of icon word and mobile terminal
Technical field
The present invention relates to user interface techniques field, particularly relate to processing method and the movement of a kind of icon word Terminal.
Background technology
Along with the development in pluralism of terminal applies, the application program that terminal is installed also gets more and more.For side Just user uses application program, usual terminal is often installed an application program, all can show in system desktop Show the icon of this application program, below icon, show the title of icon.
The color of general icon title determines that, e.g. white, the background patterns of system desktop is then Can change along with the setting of user.The color of background patterns and the color of icon title when system desktop Time relatively, the identification of icon title can be reduced, make user be difficult to recognition graph entitling and claim.To this end, it is existing The solution having technology is all to add the word shade of dark color to all icon titles, can highlight the figure of white Mark word, makes it easy to identification.But, icon word is not necessarily white sometimes, and when dark color When word shade is bigger with the colour contrast of background patterns, the visual effect of system desktop can be affected.
Summary of the invention
The embodiment of the present invention provides processing method and the mobile terminal of a kind of icon word, can improve icon word Identification.
Embodiment of the present invention first aspect provides the processing method of a kind of icon word, it may include:
Determine the text importing region of each icon in default interface;
Obtain text color parameter and the background color parameter in described text importing region;
Preset if the difference between the text color parameter in described text importing region and background color parameter meets Condition, then add corresponding civilian according to described difference and described text color parameter in described text importing region Word shade.
In the embodiment that some are feasible, described according to described difference and described text color parameter described Word shade is added in text importing region, including:
Determine the preset difference value rank corresponding to described difference;
The shadow color parameter corresponding to described preset difference value rank is determined according to default corresponding relation;
Add the word shade of respective color in described text importing region according to described shadow color parameter.
In the embodiment that some are feasible, described method also includes:
Corresponding relation between text color parameter, preset difference value rank and shadow color parameter is set, wherein:
When text color parameter is in default pale coloration parameter area, if preset difference value rank is the lowest, The gray scale of corresponding shadow color is the biggest;
When text color parameter is in the range of default dark color parameter, if preset difference value rank is the lowest, The gray scale of corresponding shadow color is the least.
In the embodiment that some are feasible, the text color parameter in described acquisition described text importing region and Background color parameter, including:
Described text importing region is divided into multiple zonules of predetermined number;
The Target cell territory containing word is selected from the plurality of zonule;
Obtain text color parameter and the background color parameter in described Target cell territory;
After the text color parameter in described acquisition described text importing region and background color parameter, described side Method also includes:
Calculate the difference between text color parameter and the background color parameter in each described Target cell territory;
Judge that whether the described difference quantity less than the Target cell territory of predetermined threshold value is more than the amount threshold preset;
If the determination result is YES, then text color parameter and the background color ginseng in described text importing region are judged Number.
In the embodiment that some are feasible, described color parameter includes in rgb value and HSV value at least one Kind.
Embodiment of the present invention second aspect provides a kind of mobile terminal, it may include:
Determine module, for determining the text importing region of each icon in default interface;
Acquisition module, for obtaining text color parameter and the background color parameter in described text importing region;
Add module, between the text color parameter and background color parameter in described text importing region Difference when meeting pre-conditioned, according to described difference and described text color parameter in described text importing district Corresponding word shade is added in territory.
In the embodiment that some are feasible, described interpolation module includes:
First determines unit, for determining the preset difference value rank corresponding to described difference;
Second determines unit, for determining corresponding to described preset difference value rank according to the corresponding relation preset Shadow color parameter;
Adding device, is used for according to described shadow color parameter in described text importing region interpolation respective color Word shade.
In the embodiment that some are feasible, described mobile terminal also includes:
Module is set, for arranging between text color parameter, preset difference value rank and shadow color parameter Corresponding relation, wherein:
When text color parameter is in default pale coloration parameter area, if preset difference value rank is the lowest, The gray scale of corresponding shadow color is the biggest;
When text color parameter is in the range of default dark color parameter, if preset difference value rank is the lowest, The gray scale of corresponding shadow color is the least.
In the embodiment that some are feasible,
Described acquisition module includes:
Division unit, for being divided into multiple zonules of predetermined number by described text importing region;
Select unit, for selecting the Target cell territory containing word from the plurality of zonule;
Acquiring unit, for obtaining text color parameter and the background color parameter in described Target cell territory;
Described mobile terminal also includes:
Computing module, for calculating text color parameter and the background color parameter in each described Target cell territory Between difference;
Judge module, for judging whether described difference is more than less than the quantity in the Target cell territory of predetermined threshold value The amount threshold preset;
Described judge module is additionally operable to when judged result is for being, it is determined that the word face in described text importing region Color parameter and background color parameter.
In the embodiment that some are feasible, described color parameter includes in rgb value and HSV value at least one Kind.
The embodiment of the present invention third aspect provides a kind of mobile terminal, it may include input equipment, at least one output Equipment, processor and memorizer, wherein said input equipment, described outut device, described processor and institute Stating memorizer to be connected by total, described memorizer is used for storing batch processing code, and described processor is used for adjusting The described program code stored with described memorizer, to perform embodiment of the present invention first aspect or first party The method described in embodiment that any one of face is feasible.
In the embodiment of the present invention, it may be determined that preset the text importing region of each icon in interface;Obtain described literary composition The text color parameter of word viewing area and background color parameter;If the text color in described text importing region Difference between parameter and background color parameter meets pre-conditioned, then according to described difference and described word face Color parameter adds corresponding word shade in described text importing region.Use the embodiment of the present invention, work as word Color and background color relatively time, being adapted to property is that different word shade is added in text importing region, Improve the identification of icon word.
Accompanying drawing explanation
In order to be illustrated more clearly that embodiment of the present invention technical scheme, required in embodiment being described below The accompanying drawing used is briefly described, it should be apparent that, the accompanying drawing in describing below is some realities of the present invention Execute example, for those of ordinary skill in the art, on the premise of not paying creative work, it is also possible to Other accompanying drawing is obtained according to these accompanying drawings.
Fig. 1 is the schematic flow sheet of the processing method of the icon word that one embodiment of the present of invention provides;
Fig. 2 is the schematic flow sheet of the processing method of the icon word that an alternative embodiment of the invention provides;
Fig. 3 is the structural representation of the mobile terminal that one embodiment of the present of invention provides;
Fig. 4 is the structural representation of the mobile terminal that an alternative embodiment of the invention provides;
Fig. 5 is the structural representation of the mobile terminal of another embodiment offer of the present invention.
Detailed description of the invention
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clearly Chu, it is fully described by, it is clear that described embodiment is a part of embodiment of the present invention rather than all Embodiment.Based on the embodiment in the present invention, those of ordinary skill in the art are not making creative labor The every other embodiment obtained under dynamic premise, broadly falls into the scope of protection of the invention.
Embodiments provide processing method and the mobile terminal of a kind of icon word, icon literary composition can be improved The identification of word.In implementing, the mobile terminal described in the embodiment of the present invention comprises the steps that mobile phone, puts down Plate computer or notebook computer etc., above-mentioned mobile terminal is only citing, and non exhaustive, including but not limited to Above-mentioned terminal.The processing method of the icon word embodiment of the present invention provided below in conjunction with accompanying drawing and movement Terminal is specifically described.
See Fig. 1, be the schematic flow sheet of the processing method of the icon word that one embodiment of the present of invention provides. As it is shown in figure 1, the processing method of this icon word can comprise the steps:
S101, determines the text importing region of each icon in default interface.
Wherein, default interface can be the interface that any one of interface of mobile terminal comprises multiple icon, Such as system desktop, comprise the file interface etc. of multiple application icon.
In being embodied as, preset interface and include multiple icon, near each icon, be related to this icon Word describes, such as the icon title below icon.In the embodiment of the present invention, text importing region is pre- If for showing that the region of this article WD claims in interface.
In the embodiment that some are feasible, multiple functional area can be marked off in advance in default interface, bag Include the text importing region of territory, icon display area and icon, when newly adding an icon in default interface, will Icon is placed on territory, icon display area, and the word of icon describes the text importing region being placed on this icon. Alternatively, the text importing region of icon can above icon, lower section, left or right.
S102, obtains text color parameter and the background color parameter in described text importing region.
Wherein, above-mentioned text color parameter refers to the color parameter of word shown in text importing region; Above-mentioned background color parameter refers to the color parameter of the background patterns corresponding to text importing region.Alternatively, Color parameter can include at least one in rgb value and HSV value.Wherein, rgb value refers to the red of color (R), green (G), blue (B) tristimulus values, HSV value refers to the tone (H) of color, saturation (S) With lightness (V).
In the embodiment that some are feasible, in a text importing region, the color parameter of word is one Causing, and background patterns may have multiple color parameter, now it is alternatively possible to by text importing region The color parameter average of background patterns is as the background color parameter of this word viewing area;Or, can be by The color parameter that in text importing region, the color of area coverage maximum is corresponding is as the back of the body of this word viewing area Scape color parameter;Or, can be further divided into text importing region multiple zonule, being covered by word The background color parameter of the long-pending bigger zonule of capping is as the background color parameter of this word viewing area.
S103, if the difference between the text color parameter in described text importing region and background color parameter is full Foot is the most pre-conditioned, then add phase in described text importing region according to described difference and described text color parameter The word shade answered.
In the embodiment that some are feasible, pre-conditioned is according to text color parameter and background color parameter Between difference pre-set, when meet above-mentioned pre-conditioned time, it is believed that the text color in text importing district It is closer to background color.Alternatively, above-mentioned pre-conditioned can be this difference less than predetermined threshold value, or Person can be that in text importing region, this difference is more than, less than the quantity of the zonule of predetermined threshold value, the quantity preset Threshold value etc..
In the embodiment that some are feasible, for different differences and different text color parameters, can increase Add different word shades.Such as, if text color is light color, when this difference belongs within the specific limits During higher value, the word shade of light color can be increased, when this difference belongs to smaller value within the specific limits, The word shade of dark color can be increased.And for example, if text color is dark, when this difference is in certain limit When inside belonging to higher value, the word shade of darker can be increased, when this difference belongs to relatively within the specific limits During little value, the word shade of light color can be increased.
In the embodiment of the present invention, it may be determined that preset the text importing region of each icon in interface;Obtain described literary composition The text color parameter of word viewing area and background color parameter;If the text color in described text importing region Difference between parameter and background color parameter meets pre-conditioned, then according to described difference and described word face Color parameter adds corresponding word shade in described text importing region.Use the embodiment of the present invention, work as word Color and background color relatively time, being adapted to property is that different word shade is added in text importing region, Improve the identification of icon word.
See Fig. 2, be the schematic flow sheet of the processing method of the icon word that one embodiment of the present of invention provides. As in figure 2 it is shown, the processing method of this icon word can comprise the steps:
S201, determines the text importing region of each icon in default interface.
Wherein, the detailed description of the invention of step S201 refers to the reality of step S101 in embodiment illustrated in fig. 1 Existing mode, here is omitted.
S202, is divided into multiple zonules of predetermined number by described text importing region.
As a kind of feasible implementation, the size in each text importing region is the same, but different Text importing region in the quantity of word and covering position can be different.The word of such as some icon is retouched State less, then the area covered by word in the text importing region of this icon is less, and the literary composition of some icon WD is more, then the area covered by word in the text importing region of this icon is bigger.
In the embodiment that some are feasible, text importing region can be divided into the multiple little of predetermined number Region, wherein predetermined number can be the size according to text importing region and length-width ratio determines.Such as, Each text importing region can be divided into 2*8 community by size and length-width ratio according to text importing region Territory, it is also possible to be divided into 3*6 zonule.
S203, selects the Target cell territory containing word from the plurality of zonule.
As a kind of feasible implementation, in order to save calculating resource, can select from multiple zonules Zonule containing word is as Target cell territory, according to text color parameter and the background face in Target cell territory Difference between color parameter decides whether text importing region is added word shade.Wherein, above-mentioned Can be a part of stroke containing word containing word, it is also possible to be containing whole word.Such as, if one There is the area covered by word in individual zonule, then this zonule is Target cell territory.
S204, obtains text color parameter and the background color parameter in described Target cell territory.
Wherein, above-mentioned text color parameter refers to the color parameter of word shown in text importing region; Above-mentioned background color parameter refers to the color parameter of the background patterns corresponding to text importing region.Alternatively, Color parameter can include at least one in rgb value and HSV value.Wherein, rgb value refers to the red of color (R), green (G), blue (B) tristimulus values, HSV value refers to the tone (H) of color, saturation (S) With lightness (V).
In the embodiment that some are feasible, in a Target cell territory, the color parameter of word is consistent , and background patterns may have multiple color parameter, now it is alternatively possible to by background in Target cell territory The color parameter average of pattern is as the background color parameter in this Target cell territory;Or, can be little by target The color parameter that in region, the color of area coverage maximum is corresponding is as the background color parameter in this Target cell territory; Or, Target cell territory can be further divided into multiple zonule, by bigger for word area coverage little The background color parameter in region is as the background color parameter in this Target cell territory.
S205, calculates the difference between text color parameter and the background color parameter in each described Target cell territory Value.
Alternatively, above-mentioned difference can include the difference of hue value, the difference of saturation, the difference of brightness value, RGB tri- In the difference of primary color value at least one.Or, above-mentioned difference can be by the difference of above-mentioned hue value, saturation it Difference, the difference of brightness value, RGB tristimulus values difference at least one one obtained according to certain weight calculation Comprehensive difference.
S206, it is judged that whether described difference is more than the number preset less than the quantity in the Target cell territory of predetermined threshold value Amount threshold value, if the determination result is YES, performs step S207.
In being embodied as, above-mentioned default amount threshold is more than or equal to 1, and less than each text importing district The quantity of the zonule that territory is divided.
In the embodiment that some are feasible, can pre-set one the most close for judging two kinds of colors Predetermined threshold value, when the above-mentioned difference in Target cell territory is less than this predetermined threshold value, it is believed that in this Target cell territory Text color and background color close.If text color and the quantity in the close Target cell territory of background color More than the amount threshold preset, it is believed that text color and the background color in whole text importing region are close.
S207, determines the preset difference value rank corresponding to described difference.
In being embodied as, at least two difference rank, every kind of corresponding different difference of difference rank can be pre-set Value scope.
Alternatively, if the difference in multiple Target cell territories in a text importing region is in different difference stage , the difference in the plurality of Target cell territory can not taken average, the difference rank corresponding to average is defined as this The difference rank in text importing region.Or, can be true by difference ranks most for corresponding Target cell territory quantity It is set to the difference rank in text importing region.Or, the highest or minimum difference rank can be defined as word The difference rank of viewing area.
S208, determines the shadow color parameter corresponding to described preset difference value rank according to default corresponding relation.
In the embodiment that some are feasible, text color parameter, preset difference value rank and the moon can be pre-set Corresponding relation between shadow color parameter, wherein: when text color parameter is at default pale coloration parameter model When enclosing interior, if preset difference value rank is the lowest, the gray scale of corresponding shadow color is the biggest;When text color is joined When number is in the range of default dark color parameter, if preset difference value rank is the lowest, corresponding shadow color Gray scale the least.
Generally, text color parameter determines that, therefore in the difference determining text importing region After rank, the shadow color parameter corresponding to difference rank can be further determined that according to default corresponding relation.
S209, adds word the moon of respective color according to described shadow color parameter in described text importing region Shadow.
As a kind of feasible embodiment, the different shadow color parameters corresponding to text importing region can With identical or different, therefore it is that the word shade of the word interpolation of different icons can also be identical or different.Example As, the word shade that the text importing region of some icon is added is white, the text importing of some icon The word shade that region is added is grayish.
In the embodiment of the present invention, it may be determined that preset the text importing region of each icon in interface, by described word Viewing area is divided into multiple zonules of predetermined number, selects containing word from the plurality of zonule Target cell territory, obtains text color parameter and the background color parameter in described Target cell territory, calculates each Difference between text color parameter and the background color parameter in described Target cell territory, when described difference is less than When the quantity in the Target cell territory of predetermined threshold value is more than the amount threshold preset, determine corresponding to described difference Preset difference value rank, determines the shadow color corresponding to described preset difference value rank according to default corresponding relation Parameter, and add the word shade of respective color in described text importing region according to described shadow color parameter. Use the embodiment of the present invention, when text color and background color relatively time, being adapted to property be word show Show that different word shades is added in region, improve the identification of icon word.
See Fig. 3, be the structural representation of the mobile terminal that one embodiment of the present of invention provides.Such as Fig. 3 institute Showing, this terminal can include with lower module:
Determine module 301, for determining the text importing region of each icon in default interface.
Wherein, default interface can be the interface that any one of interface of mobile terminal comprises multiple icon, Such as system desktop, comprise the file interface etc. of multiple application icon.
In being embodied as, preset interface and include multiple icon, near each icon, be related to this icon Word describes, such as the icon title below icon.In the embodiment of the present invention, text importing region is pre- If for showing that the region of this article WD claims in interface.
In the embodiment that some are feasible, multiple functional area can be marked off in advance in default interface, bag Include the text importing region of territory, icon display area and icon, when newly adding an icon in default interface, will Icon is placed on territory, icon display area, and the word of icon describes the text importing region being placed on this icon. Alternatively, the text importing region of icon can above icon, lower section, left or right.
Acquisition module 302, for obtaining text color parameter and the background color parameter in described text importing region.
Wherein, above-mentioned text color parameter refers to the color parameter of word shown in text importing region; Above-mentioned background color parameter refers to the color parameter of the background patterns corresponding to text importing region.Alternatively, Color parameter can include at least one in rgb value and HSV value.Wherein, rgb value refers to the red of color (R), green (G), blue (B) tristimulus values, HSV value refers to the tone (H) of color, saturation (S) With lightness (V).
In the embodiment that some are feasible, in a text importing region, the color parameter of word is one Causing, and background patterns may have multiple color parameter, now it is alternatively possible to by text importing region The color parameter average of background patterns is as the background color parameter of this word viewing area;Or, can be by The color parameter that in text importing region, the color of area coverage maximum is corresponding is as the back of the body of this word viewing area Scape color parameter;Or, can be further divided into text importing region multiple zonule, being covered by word The background color parameter of the long-pending bigger zonule of capping is as the background color parameter of this word viewing area.
Add module 303, for when the text color parameter in described text importing region and background color parameter it Between difference when meeting pre-conditioned, according to described difference and described text color parameter at described text importing Corresponding word shade is added in region.
In the embodiment that some are feasible, pre-conditioned is according to text color parameter and background color parameter Between difference pre-set, when meet above-mentioned pre-conditioned time, it is believed that the text color in text importing district It is closer to background color.Alternatively, above-mentioned pre-conditioned can be this difference less than predetermined threshold value, or Person can be that in text importing region, this difference is more than, less than the quantity of the zonule of predetermined threshold value, the quantity preset Threshold value etc..
In the embodiment that some are feasible, for different differences and different text color parameters, can increase Add different word shades.Such as, if text color is light color, when this difference belongs within the specific limits During higher value, the word shade of light color can be increased, when this difference belongs to smaller value within the specific limits, The word shade of dark color can be increased.And for example, if text color is dark, when this difference is in certain limit When inside belonging to higher value, the word shade of darker can be increased, when this difference belongs to relatively within the specific limits During little value, the word shade of light color can be increased.
In the embodiment of the present invention, it may be determined that preset the text importing region of each icon in interface;Obtain described literary composition The text color parameter of word viewing area and background color parameter;If the text color in described text importing region Difference between parameter and background color parameter meets pre-conditioned, then according to described difference and described word face Color parameter adds corresponding word shade in described text importing region.Use the embodiment of the present invention, work as word Color and background color relatively time, being adapted to property is that different word shade is added in text importing region, Improve the identification of icon word.
See Fig. 4, be the structural representation of the mobile terminal that an alternative embodiment of the invention provides.Such as Fig. 4 Shown in, this terminal can include with lower module:
Determine module 401, for determining the text importing region of each icon in default interface.
Wherein it is determined that the detailed description of the invention of module 401 refers to determine module 301 in embodiment illustrated in fig. 3 Implementation, here is omitted.
Acquisition module 402, for obtaining text color parameter and the background color parameter in described text importing region.
In the embodiment that some are feasible, described acquisition module 402 can include such as lower unit:
Division unit 4021, for being divided into multiple zonules of predetermined number by described text importing region.
As a kind of feasible implementation, the size in each text importing region is the same, but different Text importing region in the quantity of word and covering position can be different.The word of such as some icon is retouched State less, then the area covered by word in the text importing region of this icon is less, and the literary composition of some icon WD is more, then the area covered by word in the text importing region of this icon is bigger.
In the embodiment that some are feasible, text importing region can be divided into the multiple little of predetermined number Region, wherein predetermined number can be the size according to text importing region and length-width ratio determines.Such as, Each text importing region can be divided into 2*8 community by size and length-width ratio according to text importing region Territory, it is also possible to be divided into 3*6 zonule.
Select unit 4022, for selecting the Target cell territory containing word from the plurality of zonule.
As a kind of feasible implementation, in order to save calculating resource, can select from multiple zonules Zonule containing word is as Target cell territory, according to text color parameter and the background face in Target cell territory Difference between color parameter decides whether text importing region is added word shade.Wherein, above-mentioned Can be a part of stroke containing word containing word, it is also possible to be containing whole word.Such as, if one There is the area covered by word in individual zonule, then this zonule is Target cell territory.
Acquiring unit 4023, for obtaining text color parameter and the background color parameter in described Target cell territory.
Wherein, above-mentioned text color parameter refers to the color parameter of word shown in text importing region; Above-mentioned background color parameter refers to the color parameter of the background patterns corresponding to text importing region.Alternatively, Color parameter can include at least one in rgb value and HSV value.Wherein, rgb value refers to the red of color (R), green (G), blue (B) tristimulus values, HSV value refers to the tone (H) of color, saturation (S) With lightness (V).
In the embodiment that some are feasible, in a Target cell territory, the color parameter of word is consistent , and background patterns may have multiple color parameter, now it is alternatively possible to by background in Target cell territory The color parameter average of pattern is as the background color parameter in this Target cell territory;Or, can be little by target The color parameter that in region, the color of area coverage maximum is corresponding is as the background color parameter in this Target cell territory; Or, Target cell territory can be further divided into multiple zonule, by bigger for word area coverage little The background color parameter in region is as the background color parameter in this Target cell territory.
Computing module 403, for calculating text color parameter and the background color ginseng in each described Target cell territory Difference between number.
Alternatively, above-mentioned difference can include the difference of hue value, the difference of saturation, the difference of brightness value, RGB tri- In the difference of primary color value at least one.Or, above-mentioned difference can be by the difference of above-mentioned hue value, saturation it Difference, the difference of brightness value, RGB tristimulus values difference at least one one obtained according to certain weight calculation Comprehensive difference.
Judge module 404, for judging that described difference is the biggest less than the quantity in the Target cell territory of predetermined threshold value In default amount threshold.Described judge module is additionally operable to when judged result is for being, it is determined that described word shows Show text color parameter and the background color parameter in region.
In being embodied as, above-mentioned default amount threshold is more than or equal to 1, and less than each text importing district The quantity of the zonule that territory is divided.
In the embodiment that some are feasible, can pre-set one the most close for judging two kinds of colors Predetermined threshold value, when the above-mentioned difference in Target cell territory is less than this predetermined threshold value, it is believed that in this Target cell territory Text color and background color close.If text color and the quantity in the close Target cell territory of background color More than the amount threshold preset, it is believed that text color and the background color in whole text importing region are close.
Add module 405, for when the text color parameter in described text importing region and background color parameter it Between difference when meeting pre-conditioned, according to described difference and described text color parameter at described text importing Corresponding word shade is added in region.
In the embodiment that some are feasible, described interpolation module 405 can include such as lower unit:
First determines unit 4051, for determining the preset difference value rank corresponding to described difference.
In being embodied as, at least two difference rank, every kind of corresponding different difference of difference rank can be pre-set Value scope.
Alternatively, if the difference in multiple Target cell territories in a text importing region is in different difference stage , the difference in the plurality of Target cell territory can not taken average, the difference rank corresponding to average is defined as this The difference rank in text importing region.Or, can be true by difference ranks most for corresponding Target cell territory quantity It is set to the difference rank in text importing region.Or, the highest or minimum difference rank can be defined as word The difference rank of viewing area.
Second determines unit 4052, right for determining described preset difference value rank institute according to the corresponding relation preset The shadow color parameter answered.
In the embodiment that some are feasible, mobile terminal can include arranging module 406, and arranging module 406 can Pre-set the corresponding relation between text color parameter, preset difference value rank and shadow color parameter, wherein: When text color parameter is in default pale coloration parameter area, if preset difference value rank is the lowest, institute is right The gray scale of the shadow color answered is the biggest;When text color parameter is in the range of default dark color parameter, If preset difference value rank is the lowest, the gray scale of corresponding shadow color is the least.
Generally, text color parameter determines that, therefore in the difference determining text importing region After rank, the shadow color parameter corresponding to difference rank can be further determined that according to default corresponding relation.
Adding device 4053, for adding corresponding according to described shadow color parameter in described text importing region The word shade of color.
As a kind of feasible embodiment, the different shadow color parameters corresponding to text importing region can With identical or different, therefore it is that the word shade of the word interpolation of different icons can also be identical or different.Example As, the word shade that the text importing region of some icon is added is white, the text importing of some icon The word shade that region is added is grayish.
In the embodiment of the present invention, it may be determined that preset the text importing region of each icon in interface, by described word Viewing area is divided into multiple zonules of predetermined number, selects containing word from the plurality of zonule Target cell territory, obtains text color parameter and the background color parameter in described Target cell territory, calculates each Difference between text color parameter and the background color parameter in described Target cell territory, when described difference is less than When the quantity in the Target cell territory of predetermined threshold value is more than the amount threshold preset, determine corresponding to described difference Preset difference value rank, determines the shadow color corresponding to described preset difference value rank according to default corresponding relation Parameter, and add the word shade of respective color in described text importing region according to described shadow color parameter. Use the embodiment of the present invention, when text color and background color relatively time, being adapted to property be word show Show that different word shades is added in region, improve the identification of icon word.
See the structural representation of the mobile terminal that another embodiment that Fig. 5, Fig. 5 are the present invention provides.As Shown in Fig. 5, described mobile terminal may also include at least one input equipment 1000;At least one outut device 2000;At least one processor 3000, such as CPU;With memorizer 4000, above-mentioned input equipment 1000, Outut device 2000, processor 3000 and memorizer 4000 are connected by bus 5000.
Wherein, touch control screen, button or the phonetic entry of above-mentioned input equipment 1000 concretely terminal Module etc..In embodiments of the present invention, input equipment 1000 can be used for receive user input touch control operation, Speech message or Word message etc..
The display screen of above-mentioned outut device 2000 concretely terminal or voice playing module etc., real in the present invention Executing in example, above-mentioned outut device 2000 can be used for showing icon or icon word.
Above-mentioned memorizer 4000 can be high-speed RAM memorizer, it is possible to for non-labile memorizer (non-volatile memory), such as disk memory.Above-mentioned memorizer 4000 is used for storing batch processing Code.
Above-mentioned processor 3000 can be used for calling the program code of storage in memorizer 4000, performs following behaviour Make:
Determine the text importing region of each icon in default interface;
Obtain text color parameter and the background color parameter in described text importing region;
Preset if the difference between the text color parameter in described text importing region and background color parameter meets Condition, then add corresponding civilian according to described difference and described text color parameter in described text importing region Word shade.
In the embodiment that some are feasible, above-mentioned processor 3000 is according to described difference and described text color Parameter adds the step of word shade in described text importing region, it may include:
Determine the preset difference value rank corresponding to described difference;
The shadow color parameter corresponding to described preset difference value rank is determined according to default corresponding relation;
Add the word shade of respective color in described text importing region according to described shadow color parameter.
In the embodiment that some are feasible, above-mentioned processor 3000 can be additionally used in and calls in memorizer 4000 The program code of storage, performs to operate as follows:
Corresponding relation between text color parameter, preset difference value rank and shadow color parameter is set, wherein:
When text color parameter is in default pale coloration parameter area, if preset difference value rank is the lowest, The gray scale of corresponding shadow color is the biggest;
When text color parameter is in the range of default dark color parameter, if preset difference value rank is the lowest, The gray scale of corresponding shadow color is the least.
In the embodiment that some are feasible, above-mentioned processor 3000 obtains the word in described text importing region The step of color parameter and background color parameter comprises the steps that
Described text importing region is divided into multiple zonules of predetermined number;
The Target cell territory containing word is selected from the plurality of zonule;
Obtain text color parameter and the background color parameter in described Target cell territory;
After the text color parameter obtaining described text importing region and background color parameter, above-mentioned process Device 3000 can be additionally used in and calls the program code of storage in memorizer 4000, performs to operate as follows:
Calculate the difference between text color parameter and the background color parameter in each described Target cell territory;
Judge that whether the described difference quantity less than the Target cell territory of predetermined threshold value is more than the amount threshold preset;
If the determination result is YES, then text color parameter and the background color ginseng in described text importing region are judged Number.
In the embodiment that some are feasible, described color parameter includes in rgb value and HSV value at least one Kind.
In the embodiment of the present invention, it may be determined that preset the text importing region of each icon in interface;Obtain described literary composition The text color parameter of word viewing area and background color parameter;If the text color in described text importing region Difference between parameter and background color parameter meets pre-conditioned, then according to described difference and described word face Color parameter adds corresponding word shade in described text importing region.Use the embodiment of the present invention, work as word Color and background color relatively time, being adapted to property is that different word shade is added in text importing region, Improve the identification of icon word.
Module in all embodiments of the invention or submodule, can pass through universal integrated circuit, such as CPU (Central Processing Unit, central processing unit), or by ASIC (Application Specific Integrated Circuit, special IC) realize.
Step in embodiment of the present invention method can carry out order according to actual needs and adjust, merges and delete.
Unit in embodiment of the present invention device can merge according to actual needs, divides and delete.
One of ordinary skill in the art will appreciate that all or part of flow process realizing in above-described embodiment method, Can be by computer program and complete to instruct relevant hardware, described program can be stored in a calculating In machine read/write memory medium, this program is upon execution, it may include such as the stream of the embodiment of above-mentioned each method Journey.Wherein, described storage medium can be magnetic disc, CD, read-only store-memory body (Read-Only Memory, Or random store-memory body (Random Access Memory, RAM) etc. ROM).
Above disclosed be only present pre-ferred embodiments, certainly can not with this limit the present invention it Interest field, the equivalent variations therefore made according to the claims in the present invention, still belong to the scope that the present invention is contained.

Claims (10)

1. the processing method of an icon word, it is characterised in that described method includes:
Determine the text importing region of each icon in default interface;
Obtain text color parameter and the background color parameter in described text importing region;
Preset if the difference between the text color parameter in described text importing region and background color parameter meets Condition, then add corresponding civilian according to described difference and described text color parameter in described text importing region Word shade.
Method the most according to claim 1, it is characterised in that described according to described difference with described literary composition Word color parameter adds word shade in described text importing region, including:
Determine the preset difference value rank corresponding to described difference;
The shadow color parameter corresponding to described preset difference value rank is determined according to default corresponding relation;
Add the word shade of respective color in described text importing region according to described shadow color parameter.
Method the most according to claim 2, it is characterised in that described method also includes:
Corresponding relation between text color parameter, preset difference value rank and shadow color parameter is set, wherein:
When text color parameter is in default pale coloration parameter area, if preset difference value rank is the lowest, The gray scale of corresponding shadow color is the biggest;
When text color parameter is in the range of default dark color parameter, if preset difference value rank is the lowest, The gray scale of corresponding shadow color is the least.
Method the most according to claim 1, it is characterised in that described acquisition described text importing region Text color parameter and background color parameter, including:
Described text importing region is divided into multiple zonules of predetermined number;
The Target cell territory containing word is selected from the plurality of zonule;
Obtain text color parameter and the background color parameter in described Target cell territory;
After the text color parameter in described acquisition described text importing region and background color parameter, described side Method also includes:
Calculate the difference between text color parameter and the background color parameter in each described Target cell territory;
Judge that whether the described difference quantity less than the Target cell territory of predetermined threshold value is more than the amount threshold preset;
If the determination result is YES, then text color parameter and the background color ginseng in described text importing region are judged Number.
Method the most according to claim 1, it is characterised in that described color parameter includes rgb value With in HSV value at least one.
6. a mobile terminal, it is characterised in that described mobile terminal includes:
Determine module, for determining the text importing region of each icon in default interface;
Acquisition module, for obtaining text color parameter and the background color parameter in described text importing region;
Add module, between the text color parameter and background color parameter in described text importing region Difference when meeting pre-conditioned, according to described difference and described text color parameter in described text importing district Corresponding word shade is added in territory.
Mobile terminal the most according to claim 6, it is characterised in that described interpolation module includes:
First determines unit, for determining the preset difference value rank corresponding to described difference;
Second determines unit, for determining corresponding to described preset difference value rank according to the corresponding relation preset Shadow color parameter;
Adding device, is used for according to described shadow color parameter in described text importing region interpolation respective color Word shade.
Mobile terminal the most according to claim 7, it is characterised in that described mobile terminal also includes:
Module is set, for arranging between text color parameter, preset difference value rank and shadow color parameter Corresponding relation, wherein:
When text color parameter is in default pale coloration parameter area, if preset difference value rank is the lowest, The gray scale of corresponding shadow color is the biggest;
When text color parameter is in the range of default dark color parameter, if preset difference value rank is the lowest, The gray scale of corresponding shadow color is the least.
Mobile terminal the most according to claim 6, it is characterised in that
Described acquisition module includes:
Division unit, for being divided into multiple zonules of predetermined number by described text importing region;
Select unit, for selecting the Target cell territory containing word from the plurality of zonule;
Acquiring unit, for obtaining text color parameter and the background color parameter in described Target cell territory;
Described mobile terminal also includes:
Computing module, for calculating text color parameter and the background color parameter in each described Target cell territory Between difference;
Judge module, for judging whether described difference is more than less than the quantity in the Target cell territory of predetermined threshold value The amount threshold preset;
Described judge module is additionally operable to when judged result is for being, it is determined that the word face in described text importing region Color parameter and background color parameter.
Mobile terminal the most according to claim 6, it is characterised in that described color parameter includes RGB Value and HSV value at least one.
CN201610345441.4A 2016-05-20 2016-05-20 A kind of processing method and mobile terminal of icon text Active CN105957125B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610345441.4A CN105957125B (en) 2016-05-20 2016-05-20 A kind of processing method and mobile terminal of icon text

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610345441.4A CN105957125B (en) 2016-05-20 2016-05-20 A kind of processing method and mobile terminal of icon text

Publications (2)

Publication Number Publication Date
CN105957125A true CN105957125A (en) 2016-09-21
CN105957125B CN105957125B (en) 2019-02-22

Family

ID=56910453

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610345441.4A Active CN105957125B (en) 2016-05-20 2016-05-20 A kind of processing method and mobile terminal of icon text

Country Status (1)

Country Link
CN (1) CN105957125B (en)

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106528384A (en) * 2016-09-30 2017-03-22 维沃移动通信有限公司 Method and terminal for displaying state information of application program
CN106713655A (en) * 2017-01-11 2017-05-24 努比亚技术有限公司 Mobile terminal and character display method
CN107358637A (en) * 2017-06-28 2017-11-17 广州酷狗计算机科技有限公司 Word-Drawing method and device, terminal and storage medium
CN107943546A (en) * 2016-10-12 2018-04-20 阿里巴巴集团控股有限公司 A kind of method to set up of background, device, intelligent terminal and operating system
CN109062462A (en) * 2018-06-21 2018-12-21 维沃移动通信有限公司 A kind of display control method and terminal device
CN109189682A (en) * 2018-08-27 2019-01-11 广州云测信息技术有限公司 A kind of script method for recording and device
CN109814977A (en) * 2019-02-02 2019-05-28 珠海金山网络游戏科技有限公司 A kind of character displaying method, calculates equipment and storage medium at device
CN109859283A (en) * 2018-12-22 2019-06-07 Oppo广东移动通信有限公司 One kind taking color method, takes color device, electronic equipment and can storage medium
CN110442313A (en) * 2019-06-27 2019-11-12 华为技术有限公司 A kind of display properties method of adjustment and relevant device
CN110780961A (en) * 2019-10-15 2020-02-11 深圳创维-Rgb电子有限公司 Method for adjusting character color of application interface, storage medium and terminal equipment
CN112949249A (en) * 2021-02-20 2021-06-11 山东英信计算机技术有限公司 Method, system and device for determining element placing position
CN113542494A (en) * 2020-04-21 2021-10-22 中兴通讯股份有限公司 Information display method, device, terminal and storage medium
WO2022160946A1 (en) * 2021-01-28 2022-08-04 北京字跳网络技术有限公司 Text shadow effect processing method and apparatus, device and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103065338A (en) * 2011-10-19 2013-04-24 北京千橡网景科技发展有限公司 Method and device providing shadow for foreground image in background image
CN103259961A (en) * 2012-02-21 2013-08-21 精工爱普生株式会社 Image processing apparatus, image processing method, and program
CN103927772A (en) * 2014-04-30 2014-07-16 厦门美图之家科技有限公司 Icon synthesizing method
US20140362105A1 (en) * 2013-06-09 2014-12-11 Apple Inc. Content adjustment in graphical user interface based on background content
CN104391691A (en) * 2014-11-07 2015-03-04 久邦计算机技术(广州)有限公司 Icon and text processing method
CN104851122A (en) * 2015-05-08 2015-08-19 北京金山安全软件有限公司 Method and device for generating shadow special effect graph

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103065338A (en) * 2011-10-19 2013-04-24 北京千橡网景科技发展有限公司 Method and device providing shadow for foreground image in background image
CN103259961A (en) * 2012-02-21 2013-08-21 精工爱普生株式会社 Image processing apparatus, image processing method, and program
US20140362105A1 (en) * 2013-06-09 2014-12-11 Apple Inc. Content adjustment in graphical user interface based on background content
CN103927772A (en) * 2014-04-30 2014-07-16 厦门美图之家科技有限公司 Icon synthesizing method
CN104391691A (en) * 2014-11-07 2015-03-04 久邦计算机技术(广州)有限公司 Icon and text processing method
CN104851122A (en) * 2015-05-08 2015-08-19 北京金山安全软件有限公司 Method and device for generating shadow special effect graph

Cited By (22)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106528384B (en) * 2016-09-30 2019-12-27 维沃移动通信有限公司 Application program state information display method and terminal
CN106528384A (en) * 2016-09-30 2017-03-22 维沃移动通信有限公司 Method and terminal for displaying state information of application program
CN107943546A (en) * 2016-10-12 2018-04-20 阿里巴巴集团控股有限公司 A kind of method to set up of background, device, intelligent terminal and operating system
CN106713655A (en) * 2017-01-11 2017-05-24 努比亚技术有限公司 Mobile terminal and character display method
CN107358637A (en) * 2017-06-28 2017-11-17 广州酷狗计算机科技有限公司 Word-Drawing method and device, terminal and storage medium
CN107358637B (en) * 2017-06-28 2020-09-25 广州酷狗计算机科技有限公司 Character drawing method and device, terminal and storage medium
CN109062462A (en) * 2018-06-21 2018-12-21 维沃移动通信有限公司 A kind of display control method and terminal device
CN109189682A (en) * 2018-08-27 2019-01-11 广州云测信息技术有限公司 A kind of script method for recording and device
CN109189682B (en) * 2018-08-27 2022-03-22 北京云测信息技术有限公司 Script recording method and device
CN109859283B (en) * 2018-12-22 2024-01-09 Oppo广东移动通信有限公司 Color taking method, color taking device, electronic equipment and storable medium
CN109859283A (en) * 2018-12-22 2019-06-07 Oppo广东移动通信有限公司 One kind taking color method, takes color device, electronic equipment and can storage medium
CN109814977A (en) * 2019-02-02 2019-05-28 珠海金山网络游戏科技有限公司 A kind of character displaying method, calculates equipment and storage medium at device
CN110442313A (en) * 2019-06-27 2019-11-12 华为技术有限公司 A kind of display properties method of adjustment and relevant device
WO2020259517A1 (en) * 2019-06-27 2020-12-30 华为技术有限公司 Display attribute adjusting method and related device
CN110442313B (en) * 2019-06-27 2021-09-21 华为技术有限公司 Display attribute adjusting method and related equipment
CN113920912B (en) * 2019-06-27 2023-03-03 华为技术有限公司 Display attribute adjusting method and related equipment
CN113920912A (en) * 2019-06-27 2022-01-11 华为技术有限公司 Display attribute adjusting method and related equipment
CN110780961A (en) * 2019-10-15 2020-02-11 深圳创维-Rgb电子有限公司 Method for adjusting character color of application interface, storage medium and terminal equipment
CN113542494A (en) * 2020-04-21 2021-10-22 中兴通讯股份有限公司 Information display method, device, terminal and storage medium
WO2022160946A1 (en) * 2021-01-28 2022-08-04 北京字跳网络技术有限公司 Text shadow effect processing method and apparatus, device and storage medium
CN112949249B (en) * 2021-02-20 2023-06-02 山东英信计算机技术有限公司 Method, system and device for determining element placement position
CN112949249A (en) * 2021-02-20 2021-06-11 山东英信计算机技术有限公司 Method, system and device for determining element placing position

Also Published As

Publication number Publication date
CN105957125B (en) 2019-02-22

Similar Documents

Publication Publication Date Title
CN105957125A (en) Icon character processing method and mobile terminal
CN104978186B (en) A kind of rendering intent and device of interface skin
CN104076928B (en) A kind of method for adjusting text importing image
JP5318587B2 (en) Gradation creating method, program and apparatus
CN104778047A (en) Content display method and terminal
CN106855797A (en) The method to set up and device of a kind of interface element color
CN106095447A (en) A kind of generation method of application interface, equipment and the equipment of calculating
CN103207778B (en) A kind of modification figure calibration method, device and mobile terminal
CN110865856B (en) Interface element color display method and device
CN103065338A (en) Method and device providing shadow for foreground image in background image
WO2023045857A1 (en) Image processing method and apparatus, electronic device and storage medium
CN103838578A (en) Data processing method, data processing device and electronic equipment
CN104267933A (en) Flashlight adjusting method
CN105549829B (en) A kind of setting project processing method and its device
CN104915971A (en) Method and terminal for obtaining color values
CN109410295A (en) Color setting method, device, equipment and computer readable storage medium
CN106652046B (en) Model dyeing method and device
JP2015179995A (en) Image processing device and program
CN110444181A (en) Display methods, device, terminal and computer readable storage medium
CN111562955B (en) Method and device for configuring theme colors of terminal equipment and terminal equipment
CN106445501A (en) Display method of notification bar, and terminal
US8462171B2 (en) Saturation contrast image enhancement
CN112541955A (en) Image processing method, device and equipment
CN108198123A (en) Watermark embedding method and terminal
CN106875356A (en) The method and terminal of a kind of image procossing

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong

Applicant after: OPPO Guangdong Mobile Communications Co., Ltd.

Address before: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong

Applicant before: Guangdong OPPO Mobile Communications Co., Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant