CN112463150B - Font and background color adjusting method, device, equipment and readable medium - Google Patents

Font and background color adjusting method, device, equipment and readable medium Download PDF

Info

Publication number
CN112463150B
CN112463150B CN202011112613.6A CN202011112613A CN112463150B CN 112463150 B CN112463150 B CN 112463150B CN 202011112613 A CN202011112613 A CN 202011112613A CN 112463150 B CN112463150 B CN 112463150B
Authority
CN
China
Prior art keywords
font
color
default
background
background color
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011112613.6A
Other languages
Chinese (zh)
Other versions
CN112463150A (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.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN202011112613.6A priority Critical patent/CN112463150B/en
Publication of CN112463150A publication Critical patent/CN112463150A/en
Application granted granted Critical
Publication of CN112463150B publication Critical patent/CN112463150B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/38Creation or generation of source code for implementing user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The invention discloses a method for adjusting the colors of fonts and backgrounds, which comprises the following steps: reading the identified data information, and judging whether to use a default font color and a default background color based on the data information; if the default font color and the default background color are not used, further reading pixel data corresponding to the font part area and the background part area of the prompt message in the mark; calculating font RGB values and background RGB values of prompt information based on pixel data; and updating the font color of the hint information based on the font RGB value, and updating the background color of the hint information based on the background RGB value. The invention also discloses a font and background color adjusting device, a computer device and a readable storage medium. According to the invention, the prompt font color and the background color are dynamically adjusted by analyzing the identified data information, the BIOS code and compiling are not required to be modified, the time and labor investment for modifying and developing the BIOS version by software personnel are reduced, the version quality is improved, and the customization demands of different clients are flexibly met.

Description

Font and background color adjusting method, device, equipment and readable medium
Technical Field
The present invention relates to the field of server technologies, and in particular, to a method, an apparatus, a device, and a readable medium for adjusting font and background colors.
Background
In the current social life, along with the rapid development of science and technology and productivity, the application of high and new technologies such as artificial intelligence, the Internet, big data and the like is more and more widespread, and a server system is used as a key infrastructure of the emerging technology, so that a great deal of deployment and application are obtained. Server manufacturers are increasing, customer demands are finer and finer, and customer customizations are increasing year by year. In recent years, more and more server clients with active design and customization awareness can put forward respective different customization demands on server products, namely, the personalized design and realization of the whole server are as small as the private customization of a character string and a Logo picture of an opening machine, and even a plurality of indexes are brought into the range of collection test. Therefore, how to make a product meet the needs of different customers as much as possible is an important consideration for server design and manufacturers.
At present, a plurality of companies buying a server hope that Logo pictures displayed in the POST process of the BIOS in the server system can be replaced by pictures displaying own company names and logos, the default logos of server manufacturers are not used, other BIOS functions of the server manufacturers are used, and currently, the logos of most server systems in the POST process support static modification through tools provided by IBVs, so that customization of the logos can be realized through the method. However, when the Logo of the BIOS is displayed, prompt information of some hot keys is displayed below the screen, for example, a Setup interface entering the BIOS is started according to F2, PXE is started according to F9, fonts and backgrounds of the prompt information are colored, and default conditions are black background color and white font color; when the Logo of the client is 1024x768 resolution and needs to be displayed in a full screen mode, if the Logo is not a black background, the fonts and the backgrounds of the prompt information are uncoordinated with the Logo, bad client physical examination can be brought visually, and at the moment, the client can propose to modify the background color and the font color of the prompt information to be coordinated with the Logo presentation.
Because the font color and the background color of the hot key prompt information displayed by the BIOS in the POST process are written in the BIOS code by default and are formulated according to the default Logo size and Logo style, when the font color and the background color are not coordinated with the Logo and need to be adjusted, the BIOS code is often required to be modified, the font color and the background color setting of the prompt information are adjusted according to the new Logo, then the BIOS version is compiled, and release is performed after verification is passed. The very small requirement of the clients for changing Logo leads to the need of modifying codes and releasing versions for research and development personnel, and the customization mode of testing by testing personnel greatly increases the cost of research and development manpower and testing manpower, increases the time of customization development, and increases the version quality and flow risk.
Disclosure of Invention
Accordingly, an object of the embodiments of the present invention is to provide a method, an apparatus, a device, and a readable medium for adjusting font and background colors, by parsing and formulating a Logo size and a color pattern, calculating colors required by a prompt message font and a background, dynamically adjusting hot key prompt font colors and background colors in a BIOS power-on self-test process, and using colors consistent or similar to colors of Logo areas where prompt messages are located, especially for a Logo with a large area of solid color background, so as to maintain consistency of colors and vision on the whole; the BIOS mirror image is subjected to static modification through the Logo replacement tool, BIOS codes and compiling are not required to be modified, time and labor investment for modifying and developing BIOS versions by software personnel can be reduced, workload and cost of testers are reduced, version quality is improved, and customization requirements of different clients are flexibly met.
Based on the above object, an aspect of the embodiments of the present invention provides a method for adjusting font and background colors, including the following steps: reading the identified data information, and judging whether to use a default font color and a default background color based on the data information; if the default font color and the default background color are not used, further reading pixel data corresponding to the font part area and the background part area of the prompt message in the mark; calculating font RGB values and background RGB values of prompt information based on pixel data; and updating the font color of the hint information based on the font RGB value, and updating the background color of the hint information based on the background RGB value.
In some implementations, determining whether to use the default font color and the default background color based on the data information includes: and judging whether the data information is updated or not, and if the data information is not updated, confirming the use of default font color and default background color.
In some implementations, determining whether to use the default font color and the default background color based on the data information includes: judging whether the resolution of the mark is smaller than a preset resolution or not based on the data information; and if the resolution of the mark is smaller than the preset resolution, confirming to use the default font color and the default background color.
In some embodiments, further comprising: and if the resolution of the mark is not smaller than the preset resolution, confirming that the default font and the default background color are not used.
In some embodiments, calculating font RGB values and background RGB values for hinting information based on pixel data includes: and calculating font RGB values of the prompt information according to an inverse processing algorithm of the image based on the pixel data.
In some embodiments, calculating font RGB values and background RGB values for hinting information based on pixel data includes: and calculating the background RGB value of the prompt information according to a smoothing algorithm of the image based on the pixel data.
In some embodiments, further comprising: if the identified data information is updated, the identified data information is read again and whether the default font color and the default background color are used or not is judged based on the data information.
In another aspect of the embodiment of the present invention, there is also provided a device for adjusting font and background color, including: the judging module is configured for reading the identified data information and judging whether to use the default font color and the default background color based on the data information; the processing module is configured to further read pixel data corresponding to the prompt information font part area and the background part area in the identifier if the default font color and the default background color are not used; the calculating module is configured to calculate font RGB values and background RGB values of the prompt information based on the pixel data; and an execution module configured to update a font color of the hint information based on the font RGB value and to update a background color of the hint information based on the background RGB value.
In some embodiments, the determination module is further configured to: and judging whether the data information is updated or not, and if the data information is not updated, confirming the use of default font color and default background color.
In some embodiments, the determination module is further configured to: judging whether the resolution of the mark is smaller than a preset resolution or not based on the data information; and if the resolution of the mark is smaller than the preset resolution, confirming to use the default font color and the default background color.
In some embodiments, the determination module is further configured to: and if the resolution of the mark is not smaller than the preset resolution, confirming that the default font and the default background color are not used.
In some implementations, the computing module is further configured to: and calculating font RGB values of the prompt information according to an inverse processing algorithm of the image based on the pixel data.
In some implementations, the computing module is further configured to: and calculating the background RGB value of the prompt information according to a smoothing algorithm of the image based on the pixel data.
In some embodiments, the determination module is further configured to: if the identified data information is updated, the identified data information is read again and whether the default font color and the default background color are used or not is judged based on the data information.
In still another aspect of the embodiment of the present invention, there is also provided a computer apparatus, including: at least one processor; and a memory storing computer instructions executable on the processor, the instructions when executed by the processor performing the steps of the method described above.
In yet another aspect of the embodiments of the present invention, there is also provided a computer-readable storage medium storing a computer program which, when executed by a processor, implements the method steps as described above.
The invention has the following beneficial technical effects: the color of the key area where the prompting information is located is the same as or similar to the color of the key area where the prompting information is located, and especially for the Logo with a large area of pure color background, the color consistency and the visual consistency of the whole color can be maintained; the BIOS mirror image is subjected to static modification through the Logo replacement tool, BIOS codes and compiling are not required to be modified, time and labor investment for modifying and developing BIOS versions by software personnel can be reduced, workload and cost of testers are reduced, version quality is improved, and customization requirements of different clients are flexibly met.
Drawings
In order to more clearly illustrate the embodiments of the invention or the technical solutions in the prior art, the drawings that are necessary for the description of the embodiments or the prior art will be briefly described, it being obvious that the drawings in the following description are only some embodiments of the invention and that other embodiments may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic diagram of an embodiment of a method for adjusting font and background color provided by the present invention;
FIG. 2 is a schematic diagram of an embodiment of a font and background color adjustment apparatus provided by the present invention;
FIG. 3 is a schematic diagram of an embodiment of a computer device provided by the present invention;
fig. 4 is a schematic diagram of an embodiment of a computer readable storage medium provided by the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the following embodiments of the present invention will be described in further detail with reference to the accompanying drawings.
It should be noted that, in the embodiments of the present invention, all the expressions "first" and "second" are used to distinguish two entities with the same name but different entities or different parameters, and it is noted that the "first" and "second" are only used for convenience of expression, and should not be construed as limiting the embodiments of the present invention, and the following embodiments are not described one by one.
Based on the above object, in a first aspect of the embodiments of the present invention, embodiments of a method for adjusting font and background colors are provided. Fig. 1 is a schematic diagram of an embodiment of a method for adjusting font and background colors provided by the present invention. As shown in fig. 1, the embodiment of the present invention includes the following steps:
s01, reading data information of Logo (identification), and judging whether a default font color and a default background color are used or not based on the data information;
s02, if the default font color and the default background color are not used, further reading pixel data corresponding to the font part area and the background part area of the prompt message in the Logo;
s03, calculating font RGB values and background RGB values of prompt information based on pixel data; and
s04, updating the font color of the prompt message based on the font RGB value, and updating the background color of the prompt message based on the background RGB value.
In this embodiment, the AMI BIOS supporting the Intel Whitley platform server is described, but due to the scalability and portability of the solution, the method is not limited to the Whitley platform, and is not limited to the BIOS of the AMI, and still has a general reference application value on server products using other BIOS codes.
In this embodiment, when customizing Logo for a customer, some hot key prompt messages are displayed under the screen, for example, F2 will start to enter the Setup interface of BIOS, F9 will enter PXE to start, etc., the fonts and the backgrounds of these prompt messages are colored, and the default is black background color and white font color; when the Logo of the client is 1024x768 resolution and needs to be displayed in a full screen mode, if the Logo is not a black background, the fonts and the backgrounds of the prompt information are uncoordinated with the Logo, bad client physical examination can be brought visually, and at the moment, the client can propose to modify the background color and the font color of the prompt information to be coordinated with the Logo presentation. In order to solve the problem that the customization of the client Logo needs to modify BIOS codes and compile and release the BIOS codes, the colors required by the fonts and the backgrounds of the prompt information are calculated by analyzing the size and the color patterns of the customized Logo, the hot key prompt font colors and the background colors of the BIOS in the POST process are dynamically adjusted, colors consistent with or similar to the colors of Logo areas where the prompt information is located are used, and especially for the Logo with a large-area pure-color background, the consistency of the colors and the consistency of vision on the whole can be maintained. By using the scheme, the BIOS image can be statically modified only through the Logo replacing tool of the IBV, BIOS codes and compilations do not need to be modified, the time and labor investment for modifying and developing BIOS versions by software personnel can be reduced, the workload and cost of testers are reduced, the version quality is improved, and the customization demands of different clients are flexibly met.
In the embodiment, reading Logo data in the power-on self-test process; judging the resolution and display setting of Logo, if the resolution is less than 1024×768 and the display setting is centered, using the default prompt information font color and background color of BIOS; if not, reading and calculating pixel data of the Logo part area occupied by the font and the background of the hot key prompt information; calculating RGB Value1 required by the prompt information background according to a smoothing algorithm of the image; calculating RGB Value2 required by the prompt message fonts according to an inverse processing algorithm of the image; and updating RGB variables of the BIOS prompt information font and the background respectively by using Value1 and Value 2.
In some embodiments of the invention, determining whether to use a default font color and a default background color based on the data information comprises: and judging whether the data information is updated or not, and if the data information is not updated, confirming the use of default font color and default background color.
In this embodiment, the default font color is white and the default background color is black.
In some embodiments of the invention, determining whether to use a default font color and a default background color based on the data information comprises: judging whether the resolution of Logo is smaller than a preset resolution or not based on the data information; if the resolution of Logo is smaller than the preset resolution, confirming that the default font color and the default background color are used.
In some embodiments of the invention, further comprising: if the resolution of Logo is not smaller than the preset resolution, confirming that the default font and the default background color are not used.
In some embodiments of the present invention, calculating font RGB values and background RGB values for hinting information based on pixel data comprises: and calculating font RGB values of the prompt information according to an inverse processing algorithm of the image based on the pixel data.
In this embodiment, the inverse processing algorithm of the image is as follows: let r, g, b be the red, green, blue component values of the source image pixel f (i, j), respectively, and rr, gg, bb be the red, green, blue component values of the processed pixel g (i, j), respectively. Rr=255-r, gg=255-g, bb=255-b.
In some embodiments of the present invention, calculating font RGB values and background RGB values for hinting information based on pixel data comprises: and calculating the background RGB value of the prompt information according to a smoothing algorithm of the image based on the pixel data.
In the present embodiment, the smoothing algorithm of the image is as follows: the smoothing process refers to replacing the color value of each pixel of the original image with the average value of n×n pixels adjacent to the color value. For example, for the 3*3 dot matrix, assuming that a pixel of the original image has a value f (i, j) and the pixel has a value g (i, j) after the smoothing process, g (i, j) = (f (i, j) +f (i-1, j) +f (i+1, j) +f (i-1, j-1) +f (i, j-1) +f (i+1, j-1) +f (i-1, j+1) +f (i, j+1) +f (i+1, j+1))/9.
In some embodiments of the invention, further comprising: if the data information of the Logo is updated, the data information of the Logo is read again, and whether the default font color and the default background color are used or not is judged based on the data information.
It should be noted that, in the above embodiments of the font and background color adjustment method, the steps may be intersected, replaced, added and deleted, so that the reasonable permutation and combination transformation is also included in the protection scope of the present invention, and the protection scope of the present invention should not be limited to the embodiments.
Based on the above object, a second aspect of the embodiments of the present invention provides a font and background color adjustment device. Fig. 2 is a schematic diagram of an embodiment of the font and background color adjustment device provided by the present invention. As shown in fig. 2, the embodiment of the invention includes the following modules: the judging module S11 is configured to read the data information of the Logo and judge whether to use the default font color and the default background color based on the data information; the processing module S12 is configured to further read pixel data corresponding to the font part area and the background part area of the hint information in the Logo if the default font color and the default background color are not used; a calculating module S13 configured to calculate a font RGB value and a background RGB value of the hint information based on the pixel data; and an execution module S14 configured to update a font color of the hint information based on the font RGB values, and update a background color of the hint information based on the background RGB values.
In some embodiments, the determining module S11 is further configured to: and judging whether the data information is updated or not, and if the data information is not updated, confirming the use of default font color and default background color.
In some embodiments, the determining module S11 is further configured to: judging whether the resolution of Logo is smaller than a preset resolution or not based on the data information; if the resolution of Logo is smaller than the preset resolution, confirming that the default font color and the default background color are used.
In some embodiments, the determining module S11 is further configured to: if the resolution of Logo is not smaller than the preset resolution, confirming that the default font and the default background color are not used.
In some embodiments, the computing module S13 is further configured to: and calculating font RGB values of the prompt information according to an inverse processing algorithm of the image based on the pixel data.
In some embodiments, the computing module S13 is further configured to: and calculating the background RGB value of the prompt information according to a smoothing algorithm of the image based on the pixel data.
In some embodiments, the determining module S11 is further configured to: if the data information of the Logo is updated, the data information of the Logo is read again, and whether the default font color and the default background color are used or not is judged based on the data information.
Based on the above object, a third aspect of the embodiments of the present invention proposes a computer device. Fig. 3 is a schematic diagram of an embodiment of a computer device provided by the present invention. As shown in fig. 3, an embodiment of the present invention includes the following means: at least one processor S21; and a memory S22, the memory S22 storing computer instructions S23 executable on the processor, which when executed by the processor, implement the steps of the above method.
The invention also provides a computer readable storage medium. Fig. 4 is a schematic diagram of an embodiment of a computer-readable storage medium provided by the present invention. As shown in fig. 4, the computer-readable storage medium stores S31 a computer program S32 which, when executed by a processor, performs the method as above.
Finally, it should be noted that, as will be understood by those skilled in the art, implementing all or part of the above-described methods in the embodiments may be implemented by a computer program to instruct related hardware, and the program of the font and background color adjustment method may be stored in a computer readable storage medium, where the program may include the flow of the embodiments of the above-described methods when executed. The storage medium of the program may be a magnetic disk, an optical disk, a read-only memory (ROM), a random-access memory (RAM), or the like. The computer program embodiments described above may achieve the same or similar effects as any of the method embodiments described above.
Furthermore, the method disclosed according to the embodiment of the present invention may also be implemented as a computer program executed by a processor, which may be stored in a computer-readable storage medium. The above-described functions defined in the methods disclosed in the embodiments of the present invention are performed when the computer program is executed by a processor.
Furthermore, the above-described method steps and system units may also be implemented using a controller and a computer-readable storage medium storing a computer program for causing the controller to implement the above-described steps or unit functions.
Those of skill would further appreciate that the various illustrative logical blocks, modules, circuits, and algorithm steps described in connection with the disclosure herein may be implemented as electronic hardware, computer software, or combinations of both. To clearly illustrate this interchangeability of hardware and software, various illustrative components, blocks, modules, circuits, and steps have been described above generally in terms of their functionality. Whether such functionality is implemented as software or hardware depends upon the particular application and design constraints imposed on the overall system. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present disclosure.
In one or more exemplary designs, the functions may be implemented in hardware, software, firmware, or any combination thereof. If implemented in software, the functions may be stored on or transmitted over as one or more instructions or code on a computer-readable medium. Computer-readable media includes both computer storage media and communication media including any medium that facilitates transfer of a computer program from one location to another. A storage media may be any available media that can be accessed by a general purpose or special purpose computer. By way of example, and not limitation, such computer-readable media can comprise RAM, ROM, EEPROM, CD-ROM or other optical disk storage, magnetic disk storage or other magnetic storage devices, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a general purpose or special purpose computer or general purpose or special purpose processor. Further, any connection is properly termed a computer-readable medium. For example, if the software is transmitted from a website, server, or other remote source using a coaxial cable, fiber optic cable, twisted pair, digital Subscriber Line (DSL), or wireless technologies such as infrared, radio, and microwave, then the coaxial cable, fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, radio, and microwave are included in the definition of medium. Disk and disc, as used herein, includes Compact Disc (CD), laser disc, optical disc, digital Versatile Disc (DVD), floppy disk, blu-ray disc where disks usually reproduce data magnetically, while discs reproduce data optically with lasers. Combinations of the above should also be included within the scope of computer-readable media.
The foregoing is an exemplary embodiment of the present disclosure, but it should be noted that various changes and modifications could be made herein without departing from the scope of the disclosure as defined by the appended claims. The functions, steps and/or actions of the method claims in accordance with the disclosed embodiments described herein need not be performed in any particular order. Furthermore, although elements of the disclosed embodiments may be described or claimed in the singular, the plural is contemplated unless limitation to the singular is explicitly stated.
It should be understood that as used herein, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly supports the exception. It should also be understood that "and/or" as used herein is meant to include any and all possible combinations of one or more of the associated listed items.
The foregoing embodiment of the present invention has been disclosed with reference to the number of embodiments for the purpose of description only, and does not represent the advantages or disadvantages of the embodiments.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program for instructing relevant hardware, and the program may be stored in a computer readable storage medium, where the storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
Those of ordinary skill in the art will appreciate that: the above discussion of any embodiment is merely exemplary and is not intended to imply that the scope of the disclosure of embodiments of the invention, including the claims, is limited to such examples; combinations of features of the above embodiments or in different embodiments are also possible within the idea of an embodiment of the invention, and many other variations of the different aspects of the embodiments of the invention as described above exist, which are not provided in detail for the sake of brevity. Therefore, any omission, modification, equivalent replacement, improvement, etc. of the embodiments should be included in the protection scope of the embodiments of the present invention.

Claims (8)

1. A method for adjusting the color of fonts and background, comprising the steps of:
reading the identified data information, and judging whether to use a default font color and a default background color based on the data information;
if the default font color and the default background color are not used, further reading pixel data corresponding to the font part area and the background part area of the prompt message in the mark;
calculating font RGB values and background RGB values of the prompt information based on the pixel data; and
updating the font color of the prompt message based on the font RGB value, and updating the background color of the prompt message based on the background RGB value;
wherein determining whether to use a default font color and a default background color based on the data information includes:
judging whether the data information is updated or not, if so, confirming the use of default font color and default background color;
the calculating the font RGB value and the background RGB value of the prompt information based on the pixel data comprises the following steps:
and calculating the background RGB value of the prompt information according to a smoothing algorithm of the image based on the pixel data.
2. The method of adjusting font and background colors according to claim 1, wherein determining whether to use a default font color and a default background color based on the data information comprises:
judging whether the resolution of the mark is smaller than a preset resolution or not based on the data information;
and if the resolution of the mark is smaller than the preset resolution, confirming to use the default font color and the default background color.
3. The method for adjusting font and background color according to claim 2, further comprising:
and if the resolution of the mark is not smaller than the preset resolution, confirming that the default font and the default background color are not used.
4. The method of claim 1, wherein calculating font RGB values and background RGB values of the hinting information based on the pixel data comprises:
and calculating the font RGB value of the prompt information according to an inverse processing algorithm of the image based on the pixel data.
5. The method for adjusting font and background color according to claim 1, further comprising:
and if the identified data information is updated, re-reading the identified data information and judging whether to use the default font color and the default background color based on the data information.
6. An apparatus for adjusting font and background color, comprising:
the judging module is configured to read the identified data information and judge whether to use the default font color and the default background color based on the data information;
the processing module is configured to further read pixel data corresponding to the prompt information font part area and the background part area in the identifier if the default font color and the default background color are not used;
the calculating module is configured to calculate a font RGB value and a background RGB value of the prompt information based on the pixel data; and
and the execution module is configured to update the font color of the prompt information based on the font RGB value and update the background color of the prompt information based on the background RGB value.
7. A computer device, comprising:
at least one processor; and
a memory storing computer instructions executable on the processor, which when executed by the processor, perform the steps of the method of any one of claims 1-5.
8. A computer readable storage medium storing a computer program, characterized in that the computer program when executed by a processor implements the steps of the method of any one of claims 1-5.
CN202011112613.6A 2020-10-16 2020-10-16 Font and background color adjusting method, device, equipment and readable medium Active CN112463150B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011112613.6A CN112463150B (en) 2020-10-16 2020-10-16 Font and background color adjusting method, device, equipment and readable medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011112613.6A CN112463150B (en) 2020-10-16 2020-10-16 Font and background color adjusting method, device, equipment and readable medium

Publications (2)

Publication Number Publication Date
CN112463150A CN112463150A (en) 2021-03-09
CN112463150B true CN112463150B (en) 2023-06-13

Family

ID=74833158

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011112613.6A Active CN112463150B (en) 2020-10-16 2020-10-16 Font and background color adjusting method, device, equipment and readable medium

Country Status (1)

Country Link
CN (1) CN112463150B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113064648B (en) * 2021-03-26 2023-03-17 山东英信计算机技术有限公司 Link equalization vernier coefficient configuration system, method and medium
CN113608793A (en) * 2021-08-10 2021-11-05 深圳豪杰创新电子有限公司 BIOS parameter modification method, device, tool and readable storage medium
CN114896007A (en) * 2022-04-29 2022-08-12 钉钉(中国)信息技术有限公司 Color adjustment method, device, storage medium and system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104778047A (en) * 2015-04-29 2015-07-15 魅族科技(中国)有限公司 Content display method and terminal
CN105549928A (en) * 2015-12-02 2016-05-04 广州阿里巴巴文学信息技术有限公司 Color matching method and device of display content
CN107291334A (en) * 2017-06-27 2017-10-24 努比亚技术有限公司 A kind of icon font color determines method and apparatus

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104778047A (en) * 2015-04-29 2015-07-15 魅族科技(中国)有限公司 Content display method and terminal
CN105549928A (en) * 2015-12-02 2016-05-04 广州阿里巴巴文学信息技术有限公司 Color matching method and device of display content
CN107291334A (en) * 2017-06-27 2017-10-24 努比亚技术有限公司 A kind of icon font color determines method and apparatus

Also Published As

Publication number Publication date
CN112463150A (en) 2021-03-09

Similar Documents

Publication Publication Date Title
CN112463150B (en) Font and background color adjusting method, device, equipment and readable medium
US6009209A (en) Automated removal of red eye effect from a digital image
US11064149B1 (en) Blended integration of quick response codes into images and video
JP4863346B2 (en) Color image superimposed barcode generation method and apparatus
CN104978198A (en) Method and apparatus for configuring keyboard skin
US20200294177A1 (en) Systems and methods for providing a visible watermark in a remote session
CN111897503A (en) Display control method and display control terminal
CN114416056A (en) Page generation method, system, computer equipment and readable storage medium
CN110503653A (en) Image partition method and device
CN105677266A (en) Electronic equipment and icon display method thereof
CN111507895B (en) Image processing method and device, computer storage medium and electronic equipment
JP4174133B2 (en) Image generation method
CN106528140A (en) Specification adaptation method and device
CN114896175A (en) Automatic test method, device, equipment and medium for report export function
CN109872277A (en) Information processing method and device
CN114153442A (en) Large-screen visualization page configuration method and system based on visualization component
CN112257134B (en) Model management method and device and electronic equipment
CN101467436B (en) System and method for analyzing and marking cinema
CN110548290B (en) Image-text mixed arrangement method and device, electronic equipment and storage medium
EP0612054A1 (en) Invisible marking of electronic images
CN111091606A (en) Solution based on map overlay gradual change
CN113946306A (en) Method, device and equipment for lighting box body of display screen
CN111711805A (en) High-contrast film projection system and method
CN111078176A (en) Display screen lighting method, display device and storage medium
CN111787402A (en) Startup picture compiling method and device, electronic equipment and storage medium

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