CN114489608B - Display screen icon control method and device, terminal equipment and storage medium - Google Patents

Display screen icon control method and device, terminal equipment and storage medium Download PDF

Info

Publication number
CN114489608B
CN114489608B CN202210047378.1A CN202210047378A CN114489608B CN 114489608 B CN114489608 B CN 114489608B CN 202210047378 A CN202210047378 A CN 202210047378A CN 114489608 B CN114489608 B CN 114489608B
Authority
CN
China
Prior art keywords
icon
pixel
coordinate
matrix corresponding
color value
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
CN202210047378.1A
Other languages
Chinese (zh)
Other versions
CN114489608A (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.)
Xinghe Zhilian Automobile Technology Co Ltd
Original Assignee
Xinghe Zhilian Automobile 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 Xinghe Zhilian Automobile Technology Co Ltd filed Critical Xinghe Zhilian Automobile Technology Co Ltd
Priority to CN202210047378.1A priority Critical patent/CN114489608B/en
Publication of CN114489608A publication Critical patent/CN114489608A/en
Application granted granted Critical
Publication of CN114489608B publication Critical patent/CN114489608B/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/33Intelligent editors
    • 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 relates to the technical field of display screens, and discloses a display screen icon control method, a display screen icon control device, terminal equipment and a storage medium, wherein the method comprises the following steps: numbering and color filling are carried out on each icon to obtain an icon number and an icon color value of each icon; generating an initial icon picture according to all the processed icons, and converting the initial icon picture into a bitmap; scanning each pixel point in the bitmap to obtain a pixel coordinate matrix corresponding to each icon; when an instruction for changing the icon state is received, acquiring a pixel coordinate matrix corresponding to the icon to be changed according to the icon number; and setting the pixel value of each coordinate in the pixel coordinate matrix corresponding to the icon to be changed according to the instruction. The invention can realize the display effect of all icons through one picture, reduce the occupation of system resources and simplify the software development and maintenance work.

Description

Display screen icon control method and device, terminal equipment and storage medium
Technical Field
The invention relates to the technical field of display screens, in particular to a display screen icon control method and device, terminal equipment and a storage medium.
Background
At present, with the development of modern intelligent internet automobiles, the instrument panel of the automobile is gradually replaced by a digital liquid crystal display screen. On the display screen, the instrument panel indication icon is not a traditional light-on and light-off mode any more, but needs to be realized by adopting software drawing. Due to the fact that the instrument screen indication icons are various in types, workload brought to design and software developers is large.
In the existing icon control method, a designer generally needs to draw one or more design drawings for each icon, a software developer draws images in the design drawings to corresponding positions of a display screen, and when the automobile state changes, different pictures are used for changing to present the change effect of the icons. According to the implementation mode, one or more design drawings are required to be drawn for each icon, and corresponding pictures are loaded respectively according to signals fed back by a vehicle body, so that the effects of icon display hiding, flickering and the like are achieved.
In summary, the existing icon control method needs more picture resources, which results in large system resource occupation and complex management and maintenance work.
Disclosure of Invention
The invention provides a display screen icon control method, a display screen icon control device, terminal equipment and a storage medium, which can realize the display effect of all icons through one picture, reduce the occupation of system resources and simplify the software development and maintenance work.
In a first aspect, to solve the above technical problem, the present invention provides a display screen icon control method, including:
numbering and color filling are carried out on each icon to obtain an icon number and an icon color value of each icon;
generating an initial icon picture according to all the processed icons, and converting the initial icon picture into a bitmap;
scanning each pixel point in the bitmap to obtain a pixel coordinate matrix corresponding to each icon;
when an instruction for changing the icon state is received, acquiring a pixel coordinate matrix corresponding to the icon to be changed according to the icon number;
and setting the pixel value of each coordinate in the pixel coordinate matrix corresponding to the icon to be changed according to the instruction.
Preferably, the scanning each pixel point in the bitmap to obtain a pixel coordinate matrix corresponding to each icon includes:
scanning each pixel point in the bitmap to obtain an effective pixel color value corresponding to each pixel point;
comparing the effective pixel color value with the icon color value to obtain a comparison result;
when the comparison result is within a preset error range, judging that the pixel point corresponding to the effective pixel color value belongs to the icon corresponding to the icon color value;
and obtaining a pixel coordinate matrix corresponding to each icon according to the coordinate values of all the pixel points belonging to each icon.
Preferably, the method further comprises:
when the comparison result is within a preset error range, recording the icon number corresponding to the icon color value as the number of the pixel point corresponding to the effective pixel color value;
and obtaining a pixel coordinate matrix corresponding to each icon according to the coordinate values of all the pixel points belonging to each number.
Preferably, the method further comprises:
judging whether the transparency of each pixel point is zero or not, if so, judging the pixel point to be an invalid pixel; if not, the pixel point is judged to be an effective pixel.
Preferably, the method further comprises:
determining icon size and position data of each icon according to the size data of the display screen;
and generating an initial icon picture according to the icon size, the position data and all the processed icons.
Preferably, the setting, according to the instruction, a pixel value of each coordinate in a pixel coordinate matrix corresponding to the icon to be changed includes:
when the command is that the icon is hidden, setting the pixel value of each coordinate in the pixel coordinate matrix corresponding to the icon to be changed as a background color;
when the instruction is that the icon is displayed in a normally bright mode, setting the pixel value of each coordinate in the pixel coordinate matrix corresponding to the icon to be changed to be a designated color;
and when the command is icon flashing display, setting the pixel value of each coordinate in the pixel coordinate matrix corresponding to the icon to be changed between the background color and the designated color.
In a second aspect, the present invention provides a display screen icon control apparatus, including:
the icon processing module is used for carrying out numbering and color filling on each icon to obtain an icon number and an icon color value of each icon;
the image generation module is used for generating an initial icon image according to all the processed icons and converting the initial icon image into a bitmap;
the coordinate generation module is used for scanning each pixel point in the bitmap to obtain a pixel coordinate matrix corresponding to each icon;
the matrix obtaining module is used for obtaining a pixel coordinate matrix corresponding to the icon to be changed according to the icon number when an instruction for changing the icon state is received;
and the pixel setting module is used for setting the pixel value of each coordinate in the pixel coordinate matrix corresponding to the icon to be changed according to the instruction.
Preferably, the coordinate generating module includes:
the effective pixel obtaining unit is used for scanning each pixel point in the bitmap to obtain an effective pixel color value corresponding to each pixel point;
the comparison unit is used for comparing the effective pixel color value with the icon color value to obtain a comparison result;
the judging unit is used for judging that the pixel point corresponding to the effective pixel color value belongs to the icon corresponding to the icon color value when the comparison result is within a preset error range;
and the coordinate generating unit is used for obtaining a pixel coordinate matrix corresponding to each icon according to the coordinate values of all the pixel points belonging to each icon.
In a third aspect, the present invention further provides a terminal device, including a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, where the processor implements the display screen icon control method described in any one of the above when executing the computer program.
In a fourth aspect, the present invention further provides a computer-readable storage medium, where the computer-readable storage medium includes a stored computer program, and when the computer program runs, the apparatus where the computer-readable storage medium is located is controlled to execute any one of the above display screen icon control methods.
Compared with the prior art, the invention has the following beneficial effects:
the method comprises the steps of carrying out numbering and color filling on each icon to obtain the icon number and the icon color value of each icon, generating an initial icon picture according to all processed icons, converting the initial icon picture into a bitmap, and obtaining a pixel coordinate matrix corresponding to each icon according to the bitmap. When an instruction for changing the icon state is received, a pixel coordinate matrix corresponding to the icon to be changed is obtained according to the icon number, and the pixel value of each coordinate in the pixel coordinate matrix corresponding to the icon to be changed is set according to the instruction. In the invention, the display effect of all icons can be realized through one picture, and the occupation of resources such as a system memory and the like can be realized. Meanwhile, all icons can be managed in a unified mode, and software development and maintenance work is simplified.
Drawings
FIG. 1 is a flowchart illustrating a method for controlling icons on a display screen according to a first embodiment of the present invention;
fig. 2 is a schematic structural diagram of a display screen icon control device according to a second embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, a first embodiment of the present invention provides a display screen icon control method, including the steps of:
s11, numbering and filling colors of each icon to obtain an icon number and an icon color value of each icon;
s12, generating an initial icon picture according to all the processed icons, and converting the initial icon picture into a bitmap;
s13, scanning each pixel point in the bitmap to obtain a pixel coordinate matrix corresponding to each icon;
s14, when an instruction for changing the icon state is received, acquiring a pixel coordinate matrix corresponding to the icon to be changed according to the icon number;
and S15, setting the pixel value of each coordinate in the pixel coordinate matrix corresponding to the icon to be changed according to the instruction.
It should be noted that the display screen in this embodiment may be an automobile liquid crystal instrument screen, and when the automobile running state changes, the automobile running state is displayed through different display effects of the display screen icons. Of course, in other embodiments, the display screen may be used in other apparatuses, and the present invention is not limited thereto.
Further, in the design stage, the designer can determine the icon size and position data of each icon according to the size data of the display screen according to the product requirements. Specifically, the size and position of each icon is determined by the actual distance of the icon relative to the left and right boundaries and the upper and lower boundaries of the display screen.
In step S11, each icon is numbered and color-filled, and an icon number and an icon color value of each icon are obtained. Specifically, each icon may be filled with a different color, an icon number is generated using a random number, and then the icon number and a corresponding icon color value are recorded. For example, the engine trouble light icon number is 1, and the icon color value is set to R (100) G (100) B (100); the seat belt indicator light icon number is 2, and the icon color value is set to R (100) G (100) B (0).
In step S12, after obtaining the icon size, the position data, and all the processed icons, all the icons are combined into one picture, and an initial icon picture is generated. And in the initial icon picture, adopting transparentization processing to the areas except the icon, and finally generating the icon picture in the PNG format.
Further, a developer selects a suitable image processing tool, such as a Bitmap factory of an Android system, according to a currently used computer system, converts the icon image in the PNG format into a Bitmap, and loads the Bitmap into a memory.
In step S13, scanning each pixel point in the bitmap to obtain a pixel coordinate matrix corresponding to each icon, which specifically includes:
scanning each pixel point in the bitmap to obtain an effective pixel color value corresponding to each pixel point;
comparing the effective pixel color value with the icon color value to obtain a comparison result;
when the comparison result is within a preset error range, judging that the pixel point corresponding to the effective pixel color value belongs to the icon corresponding to the icon color value;
and obtaining a pixel coordinate matrix corresponding to each icon according to the coordinate values of all the pixel points belonging to each icon.
In the specific implementation, the upper left corner of the bitmap is used as an origin, the horizontal coordinate is recorded as X, the vertical coordinate is recorded as Y, the scanning is performed on the pixel points one by one from left to right and from top to bottom, and 1 is added to the coordinate values when one pixel point is added in the horizontal direction and the vertical direction.
Judging whether the transparency of each pixel point is zero or not, if so, judging the pixel point to be an invalid pixel; if not, the pixel point is judged to be an effective pixel. Specifically, according to the color value (A: transparency, R: red, G: green, B: blue) of each pixel point, a value of A is 0 to indicate that the current pixel point is a background color, and when the value of A is not 0, the current pixel point is an effective pixel.
And further comparing the effective pixel color value with the icon color value to obtain a comparison result, when the comparison result is within a preset error range, judging that the pixel point corresponding to the effective pixel color value belongs to the icon corresponding to the icon color value, and obtaining a pixel coordinate matrix corresponding to each icon according to all pixel point coordinate values belonging to each icon. The color value is represented by an RGB value, and the error range needs to be determined according to a specific operating system, generally not greater than 10%, for example, the error range is set to 5%.
In another implementation manner, when the comparison result is within a preset error range, the icon number corresponding to the icon color value is recorded as the number of the pixel point corresponding to the effective pixel color value, and then the pixel coordinate matrix corresponding to each icon is obtained according to all the pixel point coordinate values belonging to each number.
After all the pixel points are scanned, each icon obtains a group of pixel coordinate matrixes corresponding to the icon numbers. For example, the color value of the engine trouble light icon is R (100) G (100) B (100), the icon number is 1, and when the scanned pixel value is R (95) G (105) B (95), it is considered that the current pixel belongs to the engine trouble light icon, and the number of the scanned pixel value is recorded as 1.
In steps S14 and S15, when the body signal changes and the corresponding icon needs to be displayed with different effects, the body controller generates an instruction to change the state of the icon. When an instruction for changing the icon state is received, a pixel coordinate matrix corresponding to the icon to be changed is obtained according to the icon number, and the pixel value of each coordinate in the pixel coordinate matrix corresponding to the icon to be changed is set according to the instruction, so that the display effect of all icons is controlled.
Further, the instruction comprises icon hiding, icon normally-on display and icon flashing display, and the icon hiding effect, the icon normally-on effect and the icon flashing effect are achieved respectively. The method specifically comprises the following steps:
when the command is that the icon is hidden, setting the pixel value of each coordinate in the pixel coordinate matrix corresponding to the icon to be changed as a background color;
when the instruction is that the icon is displayed in a normally bright mode, setting the pixel value of each coordinate in the pixel coordinate matrix corresponding to the icon to be changed to be a designated color;
and when the command is icon flashing display, setting the pixel value of each coordinate in the pixel coordinate matrix corresponding to the icon to be changed between the background color and the designated color.
The designated color is pre-configured by a designer according to the user requirement, and different designated colors can be set for different icons, which is not limited by the invention.
In this embodiment, the number and the color value of each icon are obtained by numbering and color filling each icon, an initial icon picture is generated according to all processed icons, the initial icon picture is converted into a bitmap, and then a pixel coordinate matrix corresponding to each icon is obtained according to the bitmap. When an instruction for changing the icon state is received, a pixel coordinate matrix corresponding to the icon to be changed is obtained according to the icon number, and the pixel value of each coordinate in the pixel coordinate matrix corresponding to the icon to be changed is set according to the instruction. In the invention, the display effect of all icons can be realized through one picture, and the occupation of resources such as a system memory and the like can be realized. Meanwhile, all icons can be managed in a unified mode, and software development and maintenance work is simplified.
Referring to fig. 2, a second embodiment of the present invention provides a display screen icon control apparatus, including:
the icon processing module is used for filling the serial number and the color of each icon to obtain the icon serial number and the icon color value of each icon;
the image generation module is used for generating an initial icon image according to all the processed icons and converting the initial icon image into a bitmap;
the coordinate generation module is used for scanning each pixel point in the bitmap to obtain a pixel coordinate matrix corresponding to each icon;
the matrix obtaining module is used for obtaining a pixel coordinate matrix corresponding to the icon to be changed according to the icon number when an instruction for changing the icon state is received;
and the pixel setting module is used for setting the pixel value of each coordinate in the pixel coordinate matrix corresponding to the icon to be changed according to the instruction.
Preferably, the coordinate generating module includes:
the effective pixel obtaining unit is used for scanning each pixel point in the bitmap to obtain an effective pixel color value corresponding to each pixel point;
the comparison unit is used for comparing the effective pixel color value with the icon color value to obtain a comparison result;
the judging unit is used for judging that the pixel point corresponding to the effective pixel color value belongs to the icon corresponding to the icon color value when the comparison result is within a preset error range;
and the coordinate generating unit is used for obtaining a pixel coordinate matrix corresponding to each icon according to the coordinate values of all the pixel points belonging to each icon.
Preferably, the apparatus further comprises:
the number recording module is used for recording the icon number corresponding to the icon color value as the number of the pixel point corresponding to the effective pixel color value when the comparison result is within a preset error range;
and the matrix generation module is used for obtaining a pixel coordinate matrix corresponding to each icon according to the coordinate values of all the pixel points belonging to each number.
Preferably, the apparatus further comprises:
the pixel judgment module is used for judging whether the transparency of each pixel point is zero or not, and if so, judging the pixel point to be an invalid pixel; if not, the pixel point is judged to be an effective pixel.
Preferably, the apparatus further comprises:
the icon data acquisition module is used for determining the icon size and position data of each icon according to the size data of the display screen;
and the icon picture generating module is used for generating an initial icon picture according to the icon size, the position data and all the processed icons.
Preferably, the pixel setting module includes:
the background color setting module is used for setting the pixel value of each coordinate in the pixel coordinate matrix corresponding to the icon to be changed as the background color when the instruction is that the icon is hidden;
the appointed color setting module is used for setting the pixel value of each coordinate in the pixel coordinate matrix corresponding to the icon to be changed into an appointed color when the instruction is that the icon is displayed in a normally bright mode;
and the alternate color setting module is used for setting the pixel value of each coordinate in the pixel coordinate matrix corresponding to the icon to be changed to be alternately changed between the background color and the designated color when the instruction is that the icon is displayed in a flashing manner.
It should be noted that, the display screen icon control apparatus provided in the embodiment of the present invention is configured to execute all the process steps of the display screen icon control method in the above embodiment, and the working principles and beneficial effects of the two are in one-to-one correspondence, so that details are not repeated.
The embodiment of the invention also provides the terminal equipment. The terminal device includes: a processor, a memory, and a computer program, such as a display screen icon control program, stored in the memory and executable on the processor. The processor implements the steps in the above-described embodiments of the display screen icon control method, such as step S11 shown in fig. 1, when executing the computer program. Alternatively, the processor, when executing the computer program, implements the functions of the modules/units in the above-described device embodiments, such as a pixel setting module.
Illustratively, the computer program may be partitioned into one or more modules/units that are stored in the memory and executed by the processor to implement the invention. The one or more modules/units may be a series of computer program instruction segments capable of performing specific functions, which are used for describing the execution process of the computer program in the terminal device.
The terminal device can be a desktop computer, a notebook, a palm computer, an intelligent tablet and other computing devices. The terminal device may include, but is not limited to, a processor, a memory. It will be appreciated by those skilled in the art that the above components are merely examples of a terminal device and do not constitute a limitation of a terminal device, and that more or fewer components than those described above may be included, or certain components may be combined, or different components may be included, for example, the terminal device may also include input output devices, network access devices, buses, etc.
The Processor may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. The general-purpose processor may be a microprocessor or the processor may be any conventional processor or the like, which is the control center of the terminal device and connects the various parts of the whole terminal device using various interfaces and lines.
The memory may be used for storing the computer programs and/or modules, and the processor may implement various functions of the terminal device by executing or executing the computer programs and/or modules stored in the memory and calling data stored in the memory. The memory may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. In addition, the memory may include high speed random access memory, and may also include non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), at least one magnetic disk storage device, a Flash memory device, or other volatile solid state storage device.
Wherein, the terminal device integrated module/unit can be stored in a computer readable storage medium if it is implemented in the form of software functional unit and sold or used as a stand-alone product. Based on such understanding, all or part of the flow of the method according to the embodiments of the present invention may also be implemented by a computer program, which may be stored in a computer-readable storage medium, and when the computer program is executed by a processor, the steps of the method embodiments may be implemented. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like. It should be noted that the computer readable medium may contain content that is subject to appropriate increase or decrease as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media does not include electrical carrier signals and telecommunications signals as is required by legislation and patent practice.
It should be noted that the above-described device embodiments are merely illustrative, where the units described as separate parts may or may not be physically separate, and the parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. In addition, in the drawings of the embodiment of the apparatus provided by the present invention, the connection relationship between the modules indicates that there is a communication connection between them, and may be specifically implemented as one or more communication buses or signal lines. One of ordinary skill in the art can understand and implement without inventive effort.
The above-mentioned embodiments are provided to further explain the objects, technical solutions and advantages of the present invention in detail, and it should be understood that the above-mentioned embodiments are only examples of the present invention and are not intended to limit the scope of the present invention. It should be understood that any modifications, equivalents, improvements and the like, which come within the spirit and principle of the invention, may occur to those skilled in the art and are intended to be included within the scope of the invention.

Claims (8)

1. A display screen icon control method is characterized by comprising the following steps:
numbering and color filling are carried out on each icon to obtain an icon number and an icon color value of each icon;
generating an initial icon picture according to all the processed icons, and converting the initial icon picture into a bitmap;
scanning each pixel point in the bitmap to obtain a pixel coordinate matrix corresponding to each icon;
when an instruction for changing the icon state is received, acquiring a pixel coordinate matrix corresponding to the icon to be changed according to the icon number;
setting a pixel value of each coordinate in a pixel coordinate matrix corresponding to the icon to be changed according to the instruction;
wherein, the scanning each pixel point in the bitmap to obtain a pixel coordinate matrix corresponding to each icon includes:
scanning each pixel point in the bitmap to obtain an effective pixel color value corresponding to each pixel point;
comparing the effective pixel color value with the icon color value to obtain a comparison result;
when the comparison result is within a preset error range, judging that the pixel point corresponding to the effective pixel color value belongs to the icon corresponding to the icon color value;
and obtaining a pixel coordinate matrix corresponding to each icon according to the coordinate values of all the pixel points belonging to each icon.
2. The display screen icon control method of claim 1, further comprising:
when the comparison result is within a preset error range, recording the icon number corresponding to the icon color value as the number of the pixel point corresponding to the effective pixel color value;
and obtaining a pixel coordinate matrix corresponding to each icon according to the coordinate values of all the pixel points belonging to each number.
3. The display screen icon control method of claim 1, further comprising:
judging whether the transparency of each pixel point is zero or not, if so, judging the pixel point to be an invalid pixel; if not, the pixel point is judged to be an effective pixel.
4. The display screen icon control method of claim 1, further comprising:
determining icon size and position data of each icon according to the size data of the display screen;
and generating an initial icon picture according to the icon size, the position data and all the processed icons.
5. The method for controlling icons on a display screen according to claim 1, wherein the setting of the pixel value of each coordinate in the pixel coordinate matrix corresponding to the icon to be changed according to the instruction comprises:
when the command is that the icon is hidden, setting the pixel value of each coordinate in the pixel coordinate matrix corresponding to the icon to be changed as a background color;
when the instruction is that the icon is displayed in a normally bright mode, setting the pixel value of each coordinate in the pixel coordinate matrix corresponding to the icon to be changed to be a designated color;
and when the command is icon flashing display, setting the pixel value of each coordinate in the pixel coordinate matrix corresponding to the icon to be changed alternately between the background color and the specified color.
6. A display screen icon control apparatus, comprising:
the icon processing module is used for carrying out numbering and color filling on each icon to obtain an icon number and an icon color value of each icon;
the image generation module is used for generating an initial icon image according to all the processed icons and converting the initial icon image into a bitmap;
the coordinate generation module is used for scanning each pixel point in the bitmap to obtain a pixel coordinate matrix corresponding to each icon;
the matrix obtaining module is used for obtaining a pixel coordinate matrix corresponding to the icon to be changed according to the icon number when an instruction for changing the icon state is received;
the pixel setting module is used for setting the pixel value of each coordinate in the pixel coordinate matrix corresponding to the icon to be changed according to the instruction;
wherein the coordinate generation module comprises:
the effective pixel obtaining unit is used for scanning each pixel point in the bitmap to obtain an effective pixel color value corresponding to each pixel point;
the comparison unit is used for comparing the effective pixel color value with the icon color value to obtain a comparison result;
the judging unit is used for judging that the pixel point corresponding to the effective pixel color value belongs to the icon corresponding to the icon color value when the comparison result is within a preset error range;
and the coordinate generating unit is used for obtaining a pixel coordinate matrix corresponding to each icon according to the coordinate values of all the pixel points belonging to each icon.
7. A terminal device comprising a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, the processor implementing the display screen icon control method of any one of claims 1 to 5 when executing the computer program.
8. A computer-readable storage medium, comprising a stored computer program, wherein the computer program, when executed, controls an apparatus in which the computer-readable storage medium is located to perform the display screen icon control method according to any one of claims 1 to 5.
CN202210047378.1A 2022-01-17 2022-01-17 Display screen icon control method and device, terminal equipment and storage medium Active CN114489608B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210047378.1A CN114489608B (en) 2022-01-17 2022-01-17 Display screen icon control method and device, terminal equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210047378.1A CN114489608B (en) 2022-01-17 2022-01-17 Display screen icon control method and device, terminal equipment and storage medium

Publications (2)

Publication Number Publication Date
CN114489608A CN114489608A (en) 2022-05-13
CN114489608B true CN114489608B (en) 2022-08-16

Family

ID=81511260

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210047378.1A Active CN114489608B (en) 2022-01-17 2022-01-17 Display screen icon control method and device, terminal equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114489608B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5515081A (en) * 1993-11-30 1996-05-07 Borland International, Inc. System and methods for improved storage and processing of BITMAP images
CN108243355A (en) * 2017-12-25 2018-07-03 四川迪佳通电子有限公司 Set-top box users interface loading method and system
CN109741280A (en) * 2019-01-04 2019-05-10 Oppo广东移动通信有限公司 Image processing method, device, storage medium and electronic equipment
CN109829859A (en) * 2018-12-05 2019-05-31 平安科技(深圳)有限公司 Image processing method and terminal device
CN111145074A (en) * 2019-11-30 2020-05-12 航天科技控股集团股份有限公司 Full liquid crystal instrument image rendering method

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113734088B (en) * 2021-08-26 2022-07-01 星河智联汽车科技有限公司 Intelligence passenger cabin and car

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5515081A (en) * 1993-11-30 1996-05-07 Borland International, Inc. System and methods for improved storage and processing of BITMAP images
CN108243355A (en) * 2017-12-25 2018-07-03 四川迪佳通电子有限公司 Set-top box users interface loading method and system
CN109829859A (en) * 2018-12-05 2019-05-31 平安科技(深圳)有限公司 Image processing method and terminal device
CN109741280A (en) * 2019-01-04 2019-05-10 Oppo广东移动通信有限公司 Image processing method, device, storage medium and electronic equipment
CN111145074A (en) * 2019-11-30 2020-05-12 航天科技控股集团股份有限公司 Full liquid crystal instrument image rendering method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于MC9S12XHZ256的汽车数字组合仪表开发;邓召文等;《拖拉机与农用运输车》;20201231;第47卷(第6期);第60-66,69页 *

Also Published As

Publication number Publication date
CN114489608A (en) 2022-05-13

Similar Documents

Publication Publication Date Title
CN108615499B (en) Display optimization and display driving method and device, display device and storage medium
CN107682682B (en) A kind of method and relevant device of the chromaticity coordinates automatically correcting display screen and brightness
CN105574918A (en) Material adding method and apparatus of 3D model, and terminal
CN103092551B (en) The method of adjustment display effect and device
CN103903587A (en) Method and device for processing picture data
US20240112615A1 (en) Gamma tuning method, apparatus, device, and storage medium
CN112925498A (en) Method and device for adjusting Gamma value in stacked screen, stacked screen and storage medium
CN109147708A (en) Gamma value adjusting method, device and the display equipment of display panel
CN111787240B (en) Video generation method, apparatus and computer readable storage medium
CN110618852A (en) View processing method, view processing device and terminal equipment
CN114489608B (en) Display screen icon control method and device, terminal equipment and storage medium
JP7462458B2 (en) Image processing device and image processing method
CN111341275A (en) Display control method, display device and storage medium
CN107330905B (en) Image processing method, device and storage medium
CN115761091A (en) Game picture rendering method and device, electronic equipment and storage medium
CN111338627B (en) Front-end webpage theme color adjustment method and device
CN111653232B (en) LED screen color gamut calibration method and device
CN108304147A (en) Two tone image generation method and device
CN113656717A (en) Webpage control rendering method, device, equipment and storage medium
CN113225877A (en) Light control system for image analysis based on screen video recording mode
CN109089113B (en) A kind of method of the automatic carry out reproduction ratio adjustment of flat panel TV
JP2001101436A (en) Device and method for processing image
CN116483359B (en) New mimicry drawing method and device, electronic equipment and readable storage medium
CN114153413B (en) Image conversion method and device and bridge chip
US11082585B1 (en) Visual content proofing on multiple target devices

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
EE01 Entry into force of recordation of patent licensing contract
EE01 Entry into force of recordation of patent licensing contract

Application publication date: 20220513

Assignee: IFLYTEK Co.,Ltd.

Assignor: Xinghe Zhilian Automobile Technology Co.,Ltd.

Contract record no.: X2023980047914

Denomination of invention: Display screen icon control method, device, terminal device, and storage medium

Granted publication date: 20220816

License type: Common License

Record date: 20231122