CN107704253A - Text color transform method, system and the electronic installation of control - Google Patents
Text color transform method, system and the electronic installation of control Download PDFInfo
- Publication number
- CN107704253A CN107704253A CN201710490394.7A CN201710490394A CN107704253A CN 107704253 A CN107704253 A CN 107704253A CN 201710490394 A CN201710490394 A CN 201710490394A CN 107704253 A CN107704253 A CN 107704253A
- Authority
- CN
- China
- Prior art keywords
- control
- color value
- background picture
- word
- notable
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/65—Updates
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Facsimile Image Signal Circuits (AREA)
- Image Processing (AREA)
- Processing Or Creating Images (AREA)
Abstract
The present invention relates to a kind of text color transform method of control.Including:After an application program on-line running, and/or, after the character background picture for the word control for having application program changes, obtain the configuration file of application program;The word control included according to configuration file recognition application, and determine according to the control structure tree of word control the view control of the superior node of each word control;Notable color value correspondingly adjusts the text color value of word control corresponding to background picture corresponding to the background picture according to corresponding to view control.The present invention can the character background picture of word control color and word control word color it is very similar in the case of, prevent user from not seeing the word content of word control, and can avoid word control can not being operated or being reduced the generation of maloperation.
Description
Technical field
The present invention relates to the control display field of application program, more particularly to a kind of text color transform method of control,
System and electronic installation.
Background technology
At present, after application program (APP) on-line running, text color corresponding to each word control of application program leads to
Be often it is fixed, and the color of character background picture corresponding to word control be it is unfixed, that character background picture
When color changes, often occur word control character background picture color and word control word color very
Similar situation, in this case, user are difficult the word content for seeing word control clearly, lead to not grasp word control
Make or often occur the situation of maloperation.
The content of the invention
It is an object of the invention to provide a kind of text color transform method of control, it is intended to which it is difficult to see to solve current user
The word content of clear control, leads to not the situation that maloperation is operated or often occurred to word control.
To achieve the above object, the invention provides a kind of text color transform method of control, this method to include as follows
Step:
A, after an application program on-line running, and/or, in the character background figure for the word control for having the application program
After piece changes, the configuration file of the application program is obtained, configuration file includes the control of each control of the application program
Part structure tree, and the attribute data of each control, control structure tree include at least one control node branch, each control node
The host node of branch to should application program first layer control, under each control node branch, control corresponding to downstream site
It is lower floor's control that corresponding superior node corresponds to control;
B, the word control that the application program includes is identified according to configuration file, and according to the control structure tree of word control
Determine the view control of the superior node of each word control;
C, notable color value corresponding to the background picture according to corresponding to view control correspondingly adjusts literary corresponding to background picture
The text color value of word control.
Preferably, step C includes:
Obtain background picture corresponding to view control;
Respectively count background picture in each pixel color value and respectively count background picture in correspond to each color
The number of the pixel of value;
The notable color value according to corresponding to statistical result determines background picture, and the notable color according to corresponding to background picture
The text color value of each word control corresponding to the corresponding adjustment background picture of value.
Preferably, include according to corresponding to statistical result determines background picture the step of notable color value:
The size of the number for the pixel that each color value is corresponded in background picture is compared respectively;
The maximum color value of the number of corresponding pixel in background picture is found out respectively, if corresponding in a background picture
The maximum color value of number of pixel have multiple, then randomly choose a color value found out as corresponding to background picture
Notable color value, if the maximum color value of the number of corresponding pixel has one in a background picture, the color found out
Value is notable color value corresponding to background picture.
Preferably, in order to improve the adjustment accuracy of the text color value of word control, step C replaces with following steps:
Background picture corresponding to view control is obtained, and determines the pixel region of each word control;
Respectively determine background picture in the pixel region of corresponding word control corresponding to notable picture region;
Each notable color value significantly corresponding to picture region is determined, and according to the notable color of each significantly picture region
The text color value of word control corresponding to the corresponding adjustment background picture of value.
Preferably, determine that significantly color value corresponding to each significantly picture region includes:
The color value of each pixel in each significantly picture region is counted respectively and counts each notable picture region respectively
The number of the pixel of each color value is corresponded in domain;
The notable color value according to corresponding to statistical result determines each significantly picture region.
To achieve the above object, the present invention also provides a kind of electronic installation, the electronic memory, processor and storage
On a memory and the text color transformation system of control that can run on a processor, the text color transformation system quilt of control
Following steps are realized during computing device:
A, after an application program on-line running, and/or, in the character background picture for the word control for having application program
After changing, the configuration file of application program is obtained, configuration file includes the control structure of each control of application program
Tree, and the attribute data of each control, control structure tree include at least one control node branch, each control node branch
Host node corresponds to the first layer control of application program, and under each control node branch, control corresponding to downstream site is corresponding
Superior node corresponds to lower floor's control of control;
B, the word control included according to configuration file recognition application, and it is true according to the control structure tree of word control
The view control of the superior node of fixed each word control;
C, notable color value corresponding to the background picture according to corresponding to view control correspondingly adjusts literary corresponding to background picture
The text color value of word control.
Preferably, step C includes:
Obtain background picture corresponding to view control;
Respectively count background picture in each pixel color value and respectively count background picture in correspond to each color
The number of the pixel of value;
The notable color value according to corresponding to statistical result determines background picture, and the notable color according to corresponding to background picture
The text color value of word control corresponding to the corresponding adjustment background picture of value.
Preferably, include according to corresponding to statistical result determines the background picture the step of notable color value:
The size of the number for the pixel that each color value is corresponded in background picture is compared respectively;
The maximum color value of the number of corresponding pixel in background picture is found out respectively, if corresponding in a background picture
The maximum color value of number of pixel have multiple, then randomly choose a color value found out as corresponding to background picture
Notable color value, if the maximum color value of the number of corresponding pixel has one in a background picture, the color found out
Value is notable color value corresponding to background picture.
Preferably, step C replaces with following steps:
Background picture corresponding to view control is obtained, and determines the pixel region of each word control;
Determine respectively in the background picture with the pixel region of corresponding word control corresponding to notable picture region;
Each notable color value significantly corresponding to picture region is determined, and according to the notable color of each significantly picture region
The text color value of word control corresponding to the corresponding adjustment background picture of value.
To achieve the above object, the present invention also provides a kind of computer-readable recording medium, the computer-readable storage medium
Matter is stored with project information presentation program, and project information presentation program can be by least one computing device, so that at least one
The step of text color transform method of computing device control described above.
The beneficial effects of the invention are as follows:By after an application program on-line running and/or having the application program
After the character background picture of word control changes, the configuration file of the application program is obtained, and is identified in configuration file
The word control that the application program includes, the control structure tree in configuration file determine the superior node of each word control
View control;Background picture corresponding to further obtaining each view control in configuration file, counts each background respectively
In picture the color value of each pixel and the number of the pixel that each color value is corresponded in each background picture is counted respectively,
The notable color value according to corresponding to statistical result determines each background picture, and the notable color according to corresponding to each background picture
The corresponding text color value for adjusting word control corresponding to each background picture of value.So as to facilitate user to see the word of control clearly
Content, it is difficult the word content for seeing control clearly to solve user, leads to not operate word control or often occur
The situation of maloperation.
Brief description of the drawings
Fig. 1 is the schematic flow sheet of one embodiment of the invention;
Fig. 2 is the refinement schematic flow sheet of step S3 shown in Fig. 1;
Fig. 3 is the refinement schematic flow sheet of step S31-3 shown in Fig. 2;
Fig. 4 is the refinement schematic flow sheets of step S3 shown in Fig. 1 in an alternative embodiment of the invention;
Fig. 5 is the refinement schematic flow sheet of step S32-3 shown in Fig. 4;
Fig. 6 is the running environment schematic diagram of service customization system one embodiment of the invention based on data source;
Fig. 7 is the structural representation of one embodiment of the invention;
Fig. 8 is the structural representation of the first color transform module shown in Fig. 7;
Fig. 9 is the structural representation of control color value adjustment unit shown in Fig. 8.
Embodiment
The principle and feature of the present invention are described below in conjunction with accompanying drawing, the given examples are served only to explain the present invention, and
It is non-to be used to limit the scope of the present invention.
Referring to Fig. 1, it is the optional hardware structure schematic diagram of electronic installation 1 one of the present invention.In the present embodiment, electronic installation
1 may include, but be not limited only to, can be in communication with each other by system bus the memory 11 of connection, processor 12, network interface 13,
Display 14.It is pointed out that Fig. 1 illustrate only the electronic installation 1 with component 11-14, it should be understood that not
It is required that implement all components shown, the more or less component of the implementation that can be substituted.
Wherein, memory 11 comprises at least a type of readable storage medium storing program for executing, and readable storage medium storing program for executing includes flash memory, hard
Disk, multimedia card, card-type memory (for example, SD or DX memories etc.), random access storage device (RAM), static random-access
Memory (SRAM), read-only storage (ROM), Electrically Erasable Read Only Memory (EEPROM), programmable read-only storage
Device (PROM), magnetic storage, disk, CD etc..In certain embodiments, memory 11 can be the inside of electronic installation 1
Memory cell, such as the hard disk or internal memory of electronic installation 1.In further embodiments, memory 11 can also be electronic installation 1
External memory equipment, such as the plug-in type hard disk being equipped with electronic installation 1, intelligent memory card (Smart Media Card,
SMC), secure digital (Secure Digital, SD) blocks, flash card (Flash Card) etc..Certainly, memory 11 can also be both
Internal storage unit including electronic installation 2 also includes its External memory equipment.In the present embodiment, memory 11 is generally used for depositing
Storage is installed on the operating system and types of applications software of electronic installation 1, such as the program of the text color transformation system 10 of control
Code etc..In addition, memory 11 can be also used for temporarily storing the Various types of data that has exported or will export.
Processor 12 can be in certain embodiments central processing unit (Central Processing Unit, CPU),
Controller, microcontroller, microprocessor or other data processing chips.Processor 12 is generally used for controlling the total of electronic installation 1
Gymnastics is made.In the present embodiment, processor 12 is used in run memory 11 program code or the processing data stored, such as transports
Text color transformation system 10 of capable control etc..
Network interface 13 may include radio network interface or wired network interface, and network interface 13 is generally used for filling in electronics
Put and communication connection is established between 1 and other electronic equipments.
Display 14 can be in certain embodiments light-emitting diode display, liquid crystal display, touch-control liquid crystal display and
OLED (Organic Light-Emitting Diode, Organic Light Emitting Diode) touches device etc..Display 14 is used to be shown in
The information that is handled in electronic installation 1 and for showing visual user interface.
So far, oneself is through describing the application environment of each embodiment of the present invention and the hardware configuration and work(of relevant device in detail
Energy.Below, above-mentioned application environment and relevant device will be based on, proposes each embodiment of the present invention.
As shown in Fig. 2 Fig. 2 is the schematic flow sheet of one embodiment of the invention, comprise the following steps:
S1, obtain the configuration file of application program.
It is to be appreciated that in actual applications, typically after an application program on-line running, obtaining as needed should
The configuration file of application program, or after the application program on-line running, if there is the word of the word control of the application program
After background picture changes, the configuration file of the application program is obtained.
S2, the word control included according to configuration file recognition application, and determine higher level's section of each word control
The view control of point.
It should be noted that the configuration file in step S1 includes the control structure tree of each control of application program, and
The attribute data of each control, control structure tree include at least one control node branch, the main section of each control node branch
The first layer control of the corresponding application program of point, under each control node branch, control corresponding to downstream site is corresponding higher level's section
Lower floor's control of the corresponding control of point.
If for example, the attribute data of a control includes control literal name, the identification of control display control program should
Control is word control.In the present embodiment, the attribute data of control includes the pixel region of control, the function of control, word
The control title of control, picture of view control etc..
Further, in the present embodiment, the subordinate control of view control is correspondingly word control, then view control is corresponding
Node corresponding to control corresponding to downstream site be word control.
In the present embodiment, step S2 is the word control included according to configuration file recognition application, and according to control
Part structure tree determines the view control of the superior node of each word control.
S3, notable color value correspondingly adjusts each background picture according to corresponding to background picture corresponding to each view control
The text color value of corresponding word control.
It should be noted that in the present embodiment, as shown in figure 3, Fig. 3 is step S3 refined flow chart.Can by Fig. 2
Know, step S3 comprises the following steps:
S31-1, obtain background picture corresponding to each view control.
S31-2, the color value of each pixel in each background picture is counted respectively and counts each background picture respectively
The number of the pixel of the middle each color value of correspondence.
S31-3, the notable color value according to corresponding to statistical result determines each background picture, and according to notable color value pair
The text color value of word control corresponding to each background picture should be adjusted.
Further, as shown in figure 4, Fig. 4 is step S31-3 refined flow chart.As shown in Figure 4, in the present embodiment,
Step S31-3 comprises the following steps:
S31-3a, the size of the number for the pixel that each color value is corresponded in each background picture is compared respectively.
S31-3b, the maximum color value of the number of corresponding pixel in each background picture is found out respectively, then pixel
The maximum color value of number be notable color value corresponding to background picture.
If it should be noted that in a background picture the maximum color value of the number of corresponding pixel have it is multiple,
A color value found out is randomly choosed as notable color value corresponding to background picture, if corresponding picture in a background picture
The maximum color value of the number of vegetarian refreshments has one, then the color value found out is notable color value corresponding to background picture.
Further, in order to ensure that the color of control word and the color of control background picture have obvious difference, carry
The identification accuracy of high control word, and then ensure that user sees clearly the word content of control, step S31-3 is refined as follows
Step:
Determine the opposite color value of notable color value corresponding to background picture;
The text color value for adjusting word control corresponding to background picture respectively is corresponding opposite color value.
For example, if opposite color value corresponding to X1 background pictures is a, opposite color value corresponding to X2 background pictures is b, then
The text color value of word control corresponding to X1 background pictures is adjusted to opposite color value a, will be literary corresponding to X2 background pictures
The text color value of word control is adjusted to opposite color value b.
Compared with prior art, the present embodiment is by obtaining the configuration file of application program, and is identified according to configuration file
The word control that the application program includes, and determine according to the control structure tree of word control the superior node of each word control
View control, correspondingly adjust each Background further according to notable color value corresponding to background picture corresponding to each view control
The text color value of word control corresponding to piece.That is, in the color and word control of the character background picture of word control
In the case of text color is very similar, user can be made to see the word content of control clearly, be further ensured that user to word control
Normal operating, avoid user from can not being operated or occurred the situation of maloperation to word control.
Further, in order to improve the adjustment accuracy of the text color value of word control, in another implementation of the present invention
In example, as shown in figure 5, Fig. 5 is the refined flow charts of step S3 in another embodiment.As shown in Figure 5, in the present embodiment,
Step S3 comprises the following steps:
S32-1, background picture corresponding to each view control is obtained, and determine the pixel region of each word control.
S32-2, determine respectively in each background picture with the pixel region of corresponding word control corresponding to notable picture
Region.
For example, in the present embodiment, the pixel of notable picture region in each background picture and corresponding word control
Region is consistent.
S32-3, each notable color value significantly corresponding to picture region is determined, and according to the aobvious of each significantly picture region
Write the text color value that color value correspondingly adjusts word control corresponding to each background picture.
Further, as shown in fig. 6, Fig. 6 is the refined flow chart of step S32-3 in Fig. 5.It will be appreciated from fig. 6 that in this implementation
In example, step S32-3 comprises the following steps:
S32-3a, the color value of each pixel in each significantly picture region is counted respectively and counts each notable respectively
The number of the pixel of each color value is corresponded in picture region.
S32-3b, the notable color value according to corresponding to statistical result determines each significantly picture region.
Compared with prior art, the present embodiment is by obtaining the configuration file of application program, and is identified according to configuration file
The word control that the application program includes, and determine according to the control structure tree of word control the superior node of each word control
View control, correspondingly adjust each Background further according to notable color value corresponding to background picture corresponding to each view control
The text color value of word control corresponding to piece.That is, in the color and word control of the character background picture of word control
In the case of text color is very similar, user can be made to see the word content of control clearly, be further ensured that user to word control
Normal operating, avoid user from can not being operated or occurred the situation of maloperation to word control.
Compared with above-described embodiment, the present embodiment will notable face corresponding to the background picture according to corresponding to each view control
The text color value that colour correspondingly adjusts word control corresponding to each background picture replaces with, determine in background picture with it is corresponding
Word control pixel region corresponding to notable picture region, and determine each significantly notable color corresponding to picture region
Value, the text color of word control according to corresponding to the notable color value of notable picture region correspondingly adjusts each background picture
Value.And then further increase the adjustment accuracy of the text color value of word control.
Referring to Fig. 7, it is the functional block diagram of the preferred embodiment of text color transformation system 10 of control of the present invention.At this
In embodiment, the text color transformation system 10 of control can be divided into one or more modules, one or more module
It is stored in memory 11, and it is performed by one or more processors (the present embodiment is processor 12), to complete this hair
It is bright.For example, in the figure 7, the text color transformation system 10 of control can be divided into the identification of the first acquisition module 101, first
The color transform module 103 of module 102 and first.Module alleged by the present invention is the series of computation for referring to complete specific function
Machine programmed instruction section, than program more suitable for describing the execution of the text color transformation system 10 of control in the electronic apparatus 1
Journey, wherein:
First acquisition module 101, for after an application program on-line running and/or having the word of application program
After the character background picture of control changes, the configuration file of application program is obtained.
First identification module 102, the word control included for recognition application, and according to the control knot of word control
Paper mulberry determines the view control of the superior node of each word control.
First color transform module 103, for notable color corresponding to the background picture according to corresponding to each view control
The corresponding text color value for adjusting word control corresponding to each background picture of value.
In a preferred embodiment, as shown in figure 8, on the basis of above-mentioned Fig. 7 embodiment, above-mentioned first color becomes
Mold changing block 103 includes:
Acquiring unit 1031, for obtaining background picture corresponding to each view control.
Statistic unit 1032, for counting the color value of each pixel in each background picture respectively and counting respectively each
The number of the pixel of each color value is corresponded in individual background picture.
Control color value adjustment unit 1033, for notable color corresponding to determining each background picture according to statistical result
Value, and notable color value correspondingly adjusts the word of word control corresponding to each background picture according to corresponding to each background picture
Color value.
Further, as shown in figure 9, on the basis of above-mentioned Fig. 8 embodiment, above-mentioned control color value adjustment unit
1033 include:
Subelement 1033a is analyzed, corresponds to of the pixel of each color value in each background picture for comparing respectively
Several sizes.
Numerical value determination subelement 1033b, the number for finding out corresponding pixel in each background picture respectively are maximum
Color value, if the maximum color value of the number of corresponding pixel has multiple in a background picture, randomly choose one
The color value found out is as notable color value corresponding to background picture, if the number of corresponding pixel is most in a background picture
Color value is divided to have one greatly, then the color value found out is notable color value corresponding to background picture.
Color value adjusts subelement 1033c, and each back of the body is correspondingly adjusted for the notable color value according to corresponding to background picture
The text color value of word control corresponding to scape picture.
Need what is illustrated, in other embodiments of the present invention, in order to improve the tune of the text color value of word control
Whole accuracy, the text color transformation system of control of the invention also include:
Second acquisition module, for obtaining background picture corresponding to each view control, and determine each word control
Pixel region.
Second identification module, for counting the color value of each pixel in each significantly picture region respectively and uniting respectively
Count the number for the pixel that each color value is corresponded in each significantly picture region.
Second statistical module, the color value for counting each pixel in each significantly picture region respectively are united respectively
Count the number for the pixel that each color value is corresponded in each significantly picture region.
Second color transform module, for determining each significantly notable color corresponding to picture region according to statistical result
Value, and according to it is each significantly picture region notable color value correspondingly adjust each background picture corresponding to word control word
Color value.
Compared with prior art, by after an application program on-line running and/or having the word of the application program
After the character background picture of control changes, the configuration file of the application program is obtained, and identification should answer in configuration file
The word control contained with program bag, the control structure tree in configuration file determine regarding for the superior node of each word control
Figure control;Background picture corresponding to further obtaining each view control in configuration file, counts each background picture respectively
In each pixel color value and count the number of the pixel that each color value is corresponded in each background picture respectively, according to
Statistical result determines notable color value corresponding to each background picture, and the notable color value pair according to corresponding to each background picture
The text color value of word control corresponding to each background picture should be adjusted.So as to, facilitate user to see the word content of control clearly,
It is difficult the word content for seeing control clearly to solve user, leads to not operate word control or often occur maloperation
Situation.
The foregoing is only presently preferred embodiments of the present invention, be not intended to limit the invention, it is all the present invention spirit and
Within principle, any modification, equivalent substitution and improvements made etc., it should be included in the scope of the protection.
Claims (10)
1. the text color transform method of a kind of control, it is characterised in that methods described comprises the following steps:
A, after an application program on-line running, and/or, in the character background picture for the word control for having the application program
After changing, the configuration file of the application program is obtained, the configuration file includes each control of the application program
The control structure tree of part, and the attribute data of each control, the control structure tree include at least one control node point
Branch, the host node of each control node branch correspond to the first layer control of the application program, each control node
Under branch, control corresponding to downstream site is lower floor's control that corresponding superior node corresponds to control;
B, the word control included according to the configuration file identification application program, and according to the control of the word control
Structure tree determines the view control of the superior node of each word control;
C, it is corresponding correspondingly to adjust the background picture for notable color value corresponding to the background picture according to corresponding to the view control
Word control text color value.
2. the text color transform method of control according to claim 1, it is characterised in that the step C includes:
Obtain background picture corresponding to the view control;
Count respectively in the background picture color value of each pixel and counting respectively corresponded in the background picture it is each
The number of the pixel of color value;
The notable color value according to corresponding to statistical result determines the background picture, and according to corresponding to the background picture significantly
Color value correspondingly adjusts the text color value of word control corresponding to the background picture.
3. the text color transform method of control according to claim 2, it is characterised in that described true according to statistical result
Include corresponding to the fixed background picture the step of notable color value:
The size of the number for the pixel that each color value is corresponded in the background picture is compared respectively;
The maximum color value of the number of corresponding pixel in the background picture is found out respectively, if in a background picture
The maximum color value of the number of corresponding pixel has multiple, then randomly chooses a color value found out as the Background
Notable color value corresponding to piece, if the maximum color value of the number of corresponding pixel has one in a background picture,
The color value then found out is notable color value corresponding to the background picture.
4. the text color transform method of control according to claim 1, it is characterised in that the step C replace with as
Lower step:
Background picture corresponding to the view control is obtained, and determines the pixel region of each word control;
Determine respectively in the background picture with the pixel region of corresponding word control corresponding to notable picture region;
Each notable color value significantly corresponding to picture region is determined, and according to the notable color value pair of each significantly picture region
The text color value of word control corresponding to the background picture should be adjusted.
5. the text color transform method of control according to claim 4, it is characterised in that described to determine each notable figure
Notable color value includes corresponding to panel region:
The color value of each pixel in each significantly picture region is counted respectively and is counted respectively in each significantly picture region
The number of the pixel of corresponding each color value;
The notable color value according to corresponding to statistical result determines each significantly picture region.
6. a kind of electronic installation, it is characterised in that the electronic installation includes memory, processor and is stored in the memory
The text color transformation system for the control gone up and can run on the processor, the text color transformation system quilt of the control
Following steps are realized during the computing device:
A, after an application program on-line running, and/or, in the character background picture for the word control for having the application program
After changing, the configuration file of the application program is obtained, the configuration file includes each control of the application program
The control structure tree of part, and the attribute data of each control, the control structure tree include at least one control node point
Branch, the host node of each control node branch correspond to the first layer control of the application program, each control node
Under branch, control corresponding to downstream site is lower floor's control that corresponding superior node corresponds to control;
B, the word control included according to the configuration file identification application program, and according to the control of the word control
Structure tree determines the view control of the superior node of each word control;
C, it is corresponding correspondingly to adjust the background picture for notable color value corresponding to the background picture according to corresponding to the view control
Word control text color value.
7. electronic installation according to claim 6, it is characterised in that the step C includes:
Obtain background picture corresponding to the view control;
Count respectively in the background picture color value of each pixel and counting respectively corresponded in the background picture it is each
The number of the pixel of color value;
The notable color value according to corresponding to statistical result determines the background picture, and according to corresponding to the background picture significantly
Color value correspondingly adjusts the text color value of word control corresponding to the background picture.
8. electronic installation according to claim 7, it is characterised in that described that the background picture is determined according to statistical result
The step of corresponding notable color value, includes:
The size of the number for the pixel that each color value is corresponded in the background picture is compared respectively;
The maximum color value of the number of corresponding pixel in the background picture is found out respectively, if in a background picture
The maximum color value of the number of corresponding pixel has multiple, then randomly chooses a color value found out as the Background
Notable color value corresponding to piece, if the maximum color value of the number of corresponding pixel has one in a background picture,
The color value then found out is notable color value corresponding to the background picture.
9. electronic installation according to claim 6, it is characterised in that the step C replaces with following steps:
Background picture corresponding to the view control is obtained, and determines the pixel region of each word control;
Determine respectively in the background picture with the pixel region of corresponding word control corresponding to notable picture region;
Each notable color value significantly corresponding to picture region is determined, and according to the notable color value pair of each significantly picture region
The text color value of word control corresponding to the background picture should be adjusted.
10. a kind of computer-readable recording medium, the computer-readable recording medium storage has project information presentation program, institute
Stating project information presentation program can be by least one computing device, so that at least one computing device such as claim
The step of text color transform method of control any one of 1-5.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710490394.7A CN107704253B (en) | 2017-06-25 | 2017-06-25 | Control character color transformation method and system and electronic device |
PCT/CN2017/108779 WO2019000746A1 (en) | 2017-06-25 | 2017-10-31 | Method for switching text color of control, and system, electronic device and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710490394.7A CN107704253B (en) | 2017-06-25 | 2017-06-25 | Control character color transformation method and system and electronic device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107704253A true CN107704253A (en) | 2018-02-16 |
CN107704253B CN107704253B (en) | 2021-05-07 |
Family
ID=61170486
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710490394.7A Active CN107704253B (en) | 2017-06-25 | 2017-06-25 | Control character color transformation method and system and electronic device |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN107704253B (en) |
WO (1) | WO2019000746A1 (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108614723A (en) * | 2018-04-28 | 2018-10-02 | 北京字节跳动网络技术有限公司 | Prevent the method and its device that the attribute information of interface control is stolen |
CN109189682A (en) * | 2018-08-27 | 2019-01-11 | 广州云测信息技术有限公司 | A kind of script method for recording and device |
CN110858153A (en) * | 2018-08-22 | 2020-03-03 | 沈阳美行科技有限公司 | Method and device for adaptively displaying control |
WO2021169991A1 (en) * | 2020-02-27 | 2021-09-02 | 华为技术有限公司 | Method and apparatus for configuring theme color of terminal device, and terminal device |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101605175A (en) * | 2009-07-13 | 2009-12-16 | 中兴通讯股份有限公司 | A kind of method of displaying colorful desktop text by mobile terminal and device |
US20110242128A1 (en) * | 2010-04-01 | 2011-10-06 | Catholic University Industry Academic Cooperation Foundation | User's preference applied feeling-based image color control method using interactive genetic algorithm |
CN103137103A (en) * | 2011-12-05 | 2013-06-05 | 中兴通讯股份有限公司 | Character display method and device |
CN105700925A (en) * | 2016-01-13 | 2016-06-22 | 深圳市华讯方舟软件信息科技有限公司 | APP interface implementation method and apparatus |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101776991B (en) * | 2009-12-28 | 2013-10-02 | 金蝶软件(中国)有限公司 | Control display text replacing method and device |
CN104808998B (en) * | 2015-05-15 | 2018-06-19 | 广东欧珀移动通信有限公司 | The method, device and mobile terminal of the global control of display |
-
2017
- 2017-06-25 CN CN201710490394.7A patent/CN107704253B/en active Active
- 2017-10-31 WO PCT/CN2017/108779 patent/WO2019000746A1/en active Application Filing
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101605175A (en) * | 2009-07-13 | 2009-12-16 | 中兴通讯股份有限公司 | A kind of method of displaying colorful desktop text by mobile terminal and device |
US20110242128A1 (en) * | 2010-04-01 | 2011-10-06 | Catholic University Industry Academic Cooperation Foundation | User's preference applied feeling-based image color control method using interactive genetic algorithm |
CN103137103A (en) * | 2011-12-05 | 2013-06-05 | 中兴通讯股份有限公司 | Character display method and device |
CN105700925A (en) * | 2016-01-13 | 2016-06-22 | 深圳市华讯方舟软件信息科技有限公司 | APP interface implementation method and apparatus |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108614723A (en) * | 2018-04-28 | 2018-10-02 | 北京字节跳动网络技术有限公司 | Prevent the method and its device that the attribute information of interface control is stolen |
CN108614723B (en) * | 2018-04-28 | 2019-09-13 | 北京字节跳动网络技术有限公司 | The method and device thereof for preventing the attribute information of interface control to be stolen |
CN110858153A (en) * | 2018-08-22 | 2020-03-03 | 沈阳美行科技有限公司 | Method and device for adaptively displaying control |
CN110858153B (en) * | 2018-08-22 | 2023-08-15 | 沈阳美行科技股份有限公司 | Control self-adaptive display method and 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 |
WO2021169991A1 (en) * | 2020-02-27 | 2021-09-02 | 华为技术有限公司 | Method and apparatus for configuring theme color of terminal device, and terminal device |
Also Published As
Publication number | Publication date |
---|---|
CN107704253B (en) | 2021-05-07 |
WO2019000746A1 (en) | 2019-01-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107704253A (en) | Text color transform method, system and the electronic installation of control | |
WO2022105179A1 (en) | Biological feature image recognition method and apparatus, and electronic device and readable storage medium | |
WO2021151270A1 (en) | Method and apparatus for extracting structured data from image, and device and storage medium | |
CN108462760A (en) | Electronic device, cluster access domain name automatic generation method and storage medium | |
CN109583392A (en) | A kind of method for detecting parking stalls, device and storage medium | |
CN112395390B (en) | Training corpus generation method of intention recognition model and related equipment thereof | |
CN109471857A (en) | Data modification method, device and storage medium based on SQL statement | |
CN108255513A (en) | Electronic device, the data-interface based on springmvc and its illustrate automatic generation method and storage medium | |
CN106155769A (en) | A kind of workflow processing method, device and workflow engine | |
CN112115145A (en) | Data acquisition method and device, electronic equipment and storage medium | |
CN113434901A (en) | Intelligent data query method and device, electronic equipment and storage medium | |
CN109871205B (en) | Interface code adjustment method, device, computer device and storage medium | |
CN114880368A (en) | Data query method and device, electronic equipment and readable storage medium | |
CN112306473B (en) | Program interface parameter transmission method, system and related equipment | |
CN113434542B (en) | Data relationship identification method and device, electronic equipment and storage medium | |
CN107766322A (en) | Entity recognition method, electronic equipment and computer-readable recording medium of the same name | |
CN109271247A (en) | Memory Optimize Method, device, computer installation and storage medium | |
CN113723280A (en) | Static face-based confrontation sample detection method, device, equipment and medium | |
CN109961516A (en) | Surface acquisition methods, device and non-transient computer-readable recording medium | |
US20200327427A1 (en) | System for deriving data in constrained environments | |
US20180278472A1 (en) | System and method for performing mass renaming of list of items at run-time with variable differentiation factor | |
TWI707289B (en) | Method and device for sending electronic tickets | |
CN105760155A (en) | Method and device for web interface layout | |
WO2023134080A1 (en) | Method and apparatus for identifying camera spoofing, device, and storage medium | |
CN106776552B (en) | File identification method, device, server and computer storage media |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |