CN114860366A - Optimized display method, device, equipment and medium for multi-state icon - Google Patents

Optimized display method, device, equipment and medium for multi-state icon Download PDF

Info

Publication number
CN114860366A
CN114860366A CN202210474032.XA CN202210474032A CN114860366A CN 114860366 A CN114860366 A CN 114860366A CN 202210474032 A CN202210474032 A CN 202210474032A CN 114860366 A CN114860366 A CN 114860366A
Authority
CN
China
Prior art keywords
picture
icon
state
initial
information
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.)
Pending
Application number
CN202210474032.XA
Other languages
Chinese (zh)
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.)
BDstar Intelligent and Connected Vehicle Technology Co Ltd
Original Assignee
BDstar Intelligent and Connected Vehicle 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 BDstar Intelligent and Connected Vehicle Technology Co Ltd filed Critical BDstar Intelligent and Connected Vehicle Technology Co Ltd
Priority to CN202210474032.XA priority Critical patent/CN114860366A/en
Publication of CN114860366A publication Critical patent/CN114860366A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/04817Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance using icons
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04847Interaction techniques to control parameter settings, e.g. interaction with sliders or dials

Abstract

The invention discloses an optimized display method, device, equipment and medium of multi-state icons, wherein the method comprises the following steps: starting a program according to the starting instruction; acquiring an initial picture file corresponding to each icon in the program and loading the initial picture file into a memory; acquiring state information corresponding to each icon; analyzing the initial picture file of each icon according to the picture parameter corresponding to the state information of each icon to obtain a state picture corresponding to each icon; and displaying the state picture in an interface of the program. The invention relates to the technical field of image display, and the method can load the initial icon file of each icon in a program into a memory, wherein each icon only needs to store one initial icon file, and the corresponding state picture can be obtained by analyzing according to picture parameters for use, so that the interface fluency is greatly improved, and the hardware overhead cost is reduced.

Description

Optimized display method, device, equipment and medium for multi-state icon
Technical Field
The invention relates to the technical field of image display, in particular to an optimized display method, device, equipment and medium for multi-state icons.
Background
With the development and progress of society, the user is brought with the extreme human-computer interaction experience, and related electronic products are continuously upgraded and iterated. The vehicle-mounted electronic product has the characteristics of low cost, high cost performance and high reliability, and can enable a user to obtain better human-computer interaction experience. The low-cost hardware environment leads to the fact that hardware equipment cannot meet the requirements of flow operation of multiple functions after multiple required functions are added. In the application program configured in the terminal, one picture is corresponding to each state in a multi-state icon display mode, and the corresponding picture is loaded to display when the state is changed. The method greatly increases the cost of hardware overhead, and the problem of blocking can also occur in lower hardware environments, thereby bringing poorer interactive experience to users. Therefore, the problem of high hardware overhead cost exists when the state icon is displayed by the prior art method.
Disclosure of Invention
The embodiment of the invention provides an optimized display method, device, equipment and medium for multi-state icons, and aims to solve the problem that hardware overhead cost is high when the state icons are displayed by the prior art.
In a first aspect, an embodiment of the present invention provides an optimized display method for a multi-state icon, where the method includes:
starting a program according to the starting instruction;
acquiring an initial picture file corresponding to each icon in the program and loading the initial picture file into a memory;
acquiring state information corresponding to each icon;
analyzing the initial picture file of each icon according to the picture parameter corresponding to the state information of each icon to obtain a state picture corresponding to each icon;
and displaying the state picture in an interface of the program.
In a second aspect, an embodiment of the present invention provides an optimized display device for multi-state icons, including:
the program starting unit is used for starting a program according to a starting instruction;
the image file loading unit is used for acquiring an initial image file corresponding to each icon in the program and loading the initial image file into the memory;
the state information acquisition unit is used for acquiring state information corresponding to each icon;
the picture file analysis unit is used for analyzing the initial picture file of the icon according to the picture parameter corresponding to the state information of each icon to obtain a state picture corresponding to each icon;
and the state picture display unit is used for displaying the state picture in the interface of the program.
In a third aspect, an embodiment of the present invention further provides a computer device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the optimized display method for the multi-state icon according to the first aspect when executing the computer program.
In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, where the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the processor is caused to execute the method for optimally displaying the multi-state icon according to the first aspect.
The embodiment of the invention provides an optimized display method, device, equipment and medium for multi-state icons, wherein a program is started according to a starting instruction; acquiring an initial picture file corresponding to each icon in the program and loading the initial picture file into a memory; acquiring state information corresponding to each icon; analyzing the initial picture file of each icon according to the picture parameter corresponding to the state information of each icon to obtain a state picture corresponding to each icon; and displaying the state picture in an interface of the program. By the method, the initial icon file of each icon in the program can be loaded into the memory, each icon only needs to store one initial icon file, and the corresponding state picture can be obtained through analysis according to the picture parameters for use, so that interface fluency is greatly improved, and hardware overhead cost is reduced.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic flowchart of a method for optimally displaying a multi-state icon according to an embodiment of the present invention;
FIG. 2 is a sub-flow diagram illustrating a method for optimized display of a multi-state icon according to an embodiment of the present invention;
FIG. 3 is a schematic view of another sub-flow chart of the optimized display method for multi-state icons according to an embodiment of the present invention;
FIG. 4 is a schematic view of another sub-flow chart of the optimized display method for multi-state icons according to the embodiment of the present invention;
FIG. 5 is another schematic flow chart illustrating a method for optimized display of a multi-state icon according to an embodiment of the present invention;
fig. 6 is a schematic flowchart of a method for optimally displaying a multi-state icon according to an embodiment of the present invention;
FIG. 7 is a schematic block diagram of an optimized display device for multi-state icons according to an embodiment of the present invention;
FIG. 8 is a schematic block diagram of a computer device provided by an 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 some, not all, embodiments of the present invention. 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.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It is also to be understood that the terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in the specification of the present invention and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be further understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
Referring to fig. 1, fig. 1 is a schematic flow chart illustrating an optimized display method of a multi-state icon according to an embodiment of the present invention; the optimized display method of the multi-state icon is applied to the user terminal and is executed through application software installed in the user terminal; the user terminal can be used for executing the optimized display method of the multi-state icon to display the corresponding state picture according to the state information of the icon, and can be terminal equipment such as a vehicle-mounted computer, a desktop computer, a notebook computer, a tablet computer or a mobile phone. As shown in fig. 1, the method includes steps S110 to S150.
And S110, starting the program according to the starting instruction.
A user can send a starting instruction for starting a program to the user terminal, for example, the user clicks a program image on a mobile phone screen to input the starting instruction; or after the user terminal is powered on, the electric voltage signal is used as a starting instruction to automatically start the program, and for example, after the vehicle-mounted computer is powered on, the electric voltage signal is used as a starting instruction to automatically start the program configured on the vehicle-mounted computer; if receiving the starting instruction, the user terminal can start the program.
And S120, acquiring an initial picture file corresponding to each icon in the program and loading the initial picture file into a memory.
And acquiring an initial picture file corresponding to each icon in the program and loading the initial picture file into a memory. Specifically, a nonvolatile memory is configured in the user terminal, the nonvolatile memory can be used as a main memory of the user terminal, program files, such as code files, configuration files, picture files and the like, are stored in the nonvolatile memory, the user terminal can obtain an initial picture file corresponding to each icon in the program from the nonvolatile memory and load the initial picture file into a memory, the volatile memory is configured in the user terminal, the volatile memory can be used as the memory, and the memory is used for temporarily storing data information to be operated and processed in the user terminal. And storing the initial picture file in a binary mode in the memory.
The icon is a component in a program for displaying a specific function, and one or more icons can be displayed simultaneously in the program, for example, for an on-board computer, the icon can be a fuel tank status icon, a seat belt status icon, an engine temperature icon, and the like. The corresponding state pictures can be displayed at the positions corresponding to the icons in the program interface, each state picture can display one state corresponding to the icon, one icon corresponds to at least two state pictures, different states corresponding to the icons are indicated by switching and displaying among the state pictures corresponding to the icons, and a user can quickly acquire corresponding information by viewing the state pictures corresponding to the icons. Each icon may correspond to one piece of initial state information, that is, the initial picture file corresponds to the initial state information of the icon, and the picture is stored in the nonvolatile memory in the form of the picture file, that is, the initial picture file corresponding to each icon may be read from the nonvolatile memory, and the content of the initial picture file is loaded into the memory.
And S130, acquiring the state information corresponding to each icon.
The user terminal may obtain status information corresponding to each icon, for example, the status information may be information obtained by a user clicking a corresponding area in the program interface, and for example, when the user clicks a positioning button in the map program interface, the status of the icon corresponding to the "positioning" function changes. The corresponding sensing signal may be obtained through a sensor connected to the user terminal, and the user terminal analyzes the sensing signal to obtain the corresponding state information, for example, whether the connector of the seat belt is fastened is detected through the sensor, so as to obtain the state information corresponding to the seat belt state icon.
S140, analyzing the initial picture file of each icon according to the picture parameter corresponding to the state information of each icon to obtain a state picture corresponding to each icon.
The program file also stores picture parameters corresponding to each icon, each picture parameter of the icon corresponds to one state information of the icon, the picture parameter corresponding to the current state of each icon can be determined according to the state information of the icon, the initial picture file of the icon is analyzed according to the picture parameter of the icon, and a state picture corresponding to each icon can be obtained through analysis.
In an embodiment, as shown in fig. 2, step S140 includes sub-steps S141, S142, S143, and S144.
And S141, analyzing the initial picture file to obtain corresponding basic picture information.
Firstly, analyzing an initial picture file to obtain basic picture information; specifically, the binary data corresponding to the initial picture file may be analyzed, so as to obtain basic picture information that may be used to characterize the picture characteristics. The initial picture file comprises a plurality of picture elements, and the picture elements contained in the initial picture file can be analyzed to obtain the specific information of each picture element.
The basic picture information includes picture elements included in the initial picture file, and information such as the overall dimension, position, color, transparency, display level and the like of each picture element. The outline size is information for describing the outline and size of the picture element, the position is a coordinate position of a center point of the picture element (a pixel position where the center point is located), and the display hierarchy is hierarchy information displayed by the picture element, such as a top layer, a middle layer, a bottom layer, and the like.
For example, the basic picture information corresponding to a certain initial picture file obtained by analysis is shown in table 1.
TABLE 1
Element name Overall dimension Position of Colour(s) Transparency Display hierarchy
Background Rectangle: 80X 80 Is free of #E6E6FA 70% Bottom layer
Main display Circular: diameter 60 XX,XX #4169E1 0% Top layer
And S142, performing parameter adjustment on the basic picture information according to the picture parameters corresponding to the state information to obtain adjusted picture information corresponding to the picture parameters.
The parameter adjustment can be performed on the basic picture information corresponding to the same icon according to the group of picture parameters corresponding to the icon, so that the adjusted picture information corresponding to the icon and the group of picture parameters is obtained, and the picture parameters can correspond to the adjusted picture information. The parameter adjustment can be carried out on the basic picture information according to the picture parameters, picture elements contained in the basic picture information are kept unchanged in the adjustment process, and only the numerical values of all information in the picture elements are adjusted. The adjustment picture information also describes specific information of picture elements included in the status picture to be generated.
And S143, drawing a state picture corresponding to the adjustment picture information of each icon.
The corresponding state pictures can be respectively drawn according to the information of each adjusting picture, namely, each adjusting picture corresponds to one state picture, the process of drawing the state pictures is that pixels of the pictures are filled according to the information of the adjusting pictures to obtain the state pictures consistent with the description of the information of the adjusting pictures, and the format of the state pictures can be bmp, jpg, png and the like.
And S144, configuring the state picture of each icon as a display type.
After the state pictures are obtained through drawing, the state picture of each icon can be configured as a display type, so that the state pictures can be presented in a displayable complete picture form.
In one embodiment, as shown in fig. 3, step S145 is further included after step S144.
And S145, loading the state picture of the display type into a memory.
In order to improve the display efficiency of the state picture, the generated state picture can be loaded into the memory so as to store the data of the state picture in a binary mode and store the data in the memory space, and during subsequent use, the data of the state picture can be directly obtained from the memory and displayed in a program interface, so that the display efficiency of the state picture is further improved.
In an embodiment, as shown in fig. 4, steps S1411 and S1412 are further included after step S141.
S1411, judging whether the state information of each icon is initial state information or not; and if the state information of the icon is not the initial state information, performing parameter adjustment on the basic picture information according to the picture parameters corresponding to the state information to obtain adjusted picture information corresponding to the picture parameters.
The user terminal may determine whether the state information of the icon is the initial state information, that is, the default state information corresponding to the icon, and if the state information of the icon is not the initial state information, step S142 may be executed.
And S1412, if the state information of the icon is the initial state information, drawing an initial state picture corresponding to the initial picture file and displaying the initial state picture.
If the state information of the icon is the initial state information, the corresponding initial state picture can be directly drawn based on the initial picture file of the icon without changing the parameter information of each picture element in the initial state file, and the initial state picture is displayed at the position, corresponding to the icon, of the program interface, namely, the picture for performing state display on the initial state during the initial state information.
And S150, displaying the state picture in the interface of the program.
The position of the icon corresponding to the state picture in the program interface can be determined, and each obtained state picture is displayed at the corresponding position of the program interface.
In one embodiment, as shown in fig. 5, step S150 is followed by steps S1501 and S1502.
S1501, judging whether the state information of each icon is changed; s1502, if the state information of the icon changes, hiding the current state picture of the displayed icon; and returning to execute the analysis of the initial picture file of the icon according to the picture parameter corresponding to the state information of each icon so as to obtain the state picture corresponding to each icon.
Whether the state information of the icon changes or not can be judged, namely whether the state information of the current icon is the same as the last state information of the icon or not is judged, and if the state information of the current icon is the same as the last state information of the icon, the state information of the icon is not changed; if not, the state information of the icon is changed.
If the state information of the icon changes, the current state picture of the icon with the changed state information can be hidden, namely the current state picture is not displayed. If the state information of the icon is not changed, the current state picture does not need to be changed.
The steps S140 and S150 may be executed again, so as to analyze the initial picture file of the icon according to the picture parameter corresponding to the changed state information of the icon, obtain a state picture corresponding to the changed state information of the icon, and display the newly obtained state picture at the corresponding position of the program interface.
In an embodiment, as shown in fig. 6, step S160 is further included after step S150.
And S160, destroying the state pictures of all the icons according to the exit instruction and exiting the program.
The user can send an exit instruction for exiting the program to the user terminal, wherein the exit instruction corresponds to the starting instruction, for example, the user clicks a closing button of a program interface to input the starting instruction; or after the user terminal is powered off, the power-off voltage signal is taken as an exit instruction to automatically close the program; if the exit instruction is received, the user terminal can destroy the state pictures corresponding to all the icons, namely delete the state pictures, and then exit the current program.
In the optimized display method of the multi-state icon provided by the embodiment of the invention, a program is started according to a starting instruction; acquiring an initial picture file corresponding to each icon in the program and loading the initial picture file into a memory; analyzing the initial picture file of the icon according to the picture parameter corresponding to each icon to obtain a state picture corresponding to each icon; acquiring state information corresponding to each icon; and displaying a state picture corresponding to the state information in the icon according to the state information of each icon. By the method, the initial icon file of each icon in the program can be loaded into the memory, each icon only needs to store one initial icon file, and the corresponding state picture can be obtained through analysis according to the picture parameters for use, so that interface fluency is greatly improved, and hardware overhead cost is reduced.
The embodiment of the present invention further provides an optimized display device for a multi-state icon, where the optimized display device for a multi-state icon can be configured in a user terminal, and the optimized display device for a multi-state icon is used to implement any of the foregoing optimized display methods for a multi-state icon. Specifically, referring to fig. 7, fig. 7 is a schematic block diagram of an optimized display device for multi-state icons according to an embodiment of the present invention.
As shown in fig. 7, the optimized display device 100 for multi-state icons includes a program start unit 110, a picture file loading unit 120, a state information acquisition unit 130, a picture file parsing unit 140, and a state picture display unit 150.
A program starting unit 110, configured to start a program according to a starting instruction.
The picture file loading unit 120 is configured to obtain an initial picture file corresponding to each icon in the program and load the initial picture file into the memory.
A status information obtaining unit 130, configured to obtain status information corresponding to each icon.
The picture file parsing unit 140 is configured to parse the initial picture file of each icon according to the picture parameter corresponding to the status information of each icon, so as to obtain a status picture corresponding to each icon.
In an embodiment, the picture file parsing unit 140 includes sub-units: a basic picture information obtaining unit, configured to parse the initial picture file to obtain corresponding basic picture information; an adjusted picture information obtaining unit, configured to perform parameter adjustment on the basic picture information according to a picture parameter corresponding to the state information, so as to obtain adjusted picture information corresponding to the picture parameter; the state picture drawing unit is used for drawing a state picture corresponding to the adjustment picture information of each icon; and the display type configuration unit is used for configuring the state picture of each icon as a display type.
In an embodiment, the picture file parsing unit 140 further includes sub-units: and the state picture loading unit is used for loading the state picture of the display type into the memory.
In an embodiment, the picture file parsing unit 140 further includes sub-units: the state information judging unit is used for judging whether the state information of each icon is initial state information or not; and the initial state picture display unit is used for drawing and displaying an initial state picture corresponding to the initial picture file if the state information of the icon is the initial state information.
A status picture display unit 150, configured to display the status picture in the interface of the program.
In an embodiment, the apparatus 100 for optimizing and displaying a multi-state icon further includes a sub-unit: a change judging unit for judging whether the state information of each icon is changed; the hiding unit is used for hiding the current state picture of the displayed icon if the state information of the icon changes; and returning to execute the method steps executed by the return picture file parsing unit 140, where the initial picture file of the icon is parsed according to the picture parameter corresponding to the state information of each icon to obtain the state picture corresponding to each icon.
In an embodiment, the apparatus 100 for optimizing and displaying a multi-state icon further includes a sub-unit: and the state picture destroying unit is used for destroying all the state pictures of the icons according to the exit instruction and exiting the program.
The optimized display device of the multi-state icon provided by the embodiment of the invention applies the optimized display method of the multi-state icon and starts a program according to a starting instruction; acquiring an initial picture file corresponding to each icon in the program and loading the initial picture file into a memory; acquiring state information corresponding to each icon; analyzing the initial picture file of each icon according to the picture parameter corresponding to the state information of each icon to obtain a state picture corresponding to each icon; and displaying the state picture in an interface of the program. By the method, the initial icon file of each icon in the program can be loaded into the memory, each icon only needs to store one initial icon file, and the corresponding state picture can be obtained through analysis according to the picture parameters for use, so that interface fluency is greatly improved, and hardware overhead cost is reduced.
The optimized display means of the multi-state icon described above may be implemented in the form of a computer program which may be run on a computer device as shown in fig. 8.
Referring to fig. 8, fig. 8 is a schematic block diagram of a computer device according to an embodiment of the present invention. The computer device may be a user terminal for performing an optimized display method of a multi-state icon to display a corresponding state picture according to state information of the icon.
Referring to fig. 8, the computer device 500 includes a processor 502, memory, and a network interface 505 connected by a system bus 501, where the memory may include a storage medium 503 and an internal memory 504.
The storage medium 503 may store an operating system 5031 and a computer program 5032. The computer program 5032, when executed, may cause the processor 502 to perform a method for optimized display of multi-state icons, wherein the storage medium 503 may be a volatile storage medium or a non-volatile storage medium.
The processor 502 is used to provide computing and control capabilities that support the operation of the overall computer device 500.
The internal memory 504 provides an environment for running the computer program 5032 in the storage medium 503, and when the computer program 5032 is executed by the processor 502, the processor 502 can be enabled to execute the optimized display method of the multi-state icon.
The network interface 505 is used for network communication, such as providing transmission of data information. Those skilled in the art will appreciate that the configuration shown in fig. 8 is a block diagram of only a portion of the configuration associated with aspects of the present invention and is not intended to limit the computing device 500 to which aspects of the present invention may be applied, and that a particular computing device 500 may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
The processor 502 is configured to run the computer program 5032 stored in the memory to implement the corresponding functions in the optimized display method of the multi-state icon.
Those skilled in the art will appreciate that the embodiment of a computer device illustrated in fig. 8 does not constitute a limitation on the specific construction of the computer device, and that in other embodiments a computer device may include more or fewer components than those illustrated, or some components may be combined, or a different arrangement of components. For example, in some embodiments, the computer device may only include a memory and a processor, and in such embodiments, the structures and functions of the memory and the processor are consistent with those of the embodiment shown in fig. 8, and are not described herein again.
It should be understood that, in the embodiment of the present invention, the Processor 502 may be a Central Processing Unit (CPU), and the Processor 502 may also be other general-purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components, and the like. Wherein a general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
In another embodiment of the invention, a computer-readable storage medium is provided. The computer readable storage medium may be a volatile or non-volatile computer readable storage medium. The computer readable storage medium stores a computer program, wherein the computer program, when executed by a processor, implements the steps included in the above-described method for optimized display of multi-state icons.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described apparatuses, devices and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again. Those of ordinary skill in the art will appreciate that the elements and algorithm steps of the examples described in connection with the embodiments disclosed herein may be embodied in electronic hardware, computer software, or combinations of both, and that the components and steps of the examples have been described in a functional general in the foregoing description for the purpose of illustrating clearly the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. 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 invention.
In the embodiments provided by the present invention, it should be understood that the disclosed apparatus, device and method can be implemented in other ways. For example, the above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only a logical division, and there may be other divisions when the actual implementation is performed, or units having the same function may be grouped into one unit, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may also be an electric, mechanical or other form of connection.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment of the present invention.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention essentially contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product stored in a computer-readable storage medium, which includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned computer-readable storage media comprise: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a magnetic disk, or an optical disk.
While the invention has been described with reference to specific embodiments, the invention is not limited thereto, and various equivalent modifications and substitutions can be easily made by those skilled in the art within the technical scope of the invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (10)

1. A method for optimized display of multi-state icons, the method comprising:
starting a program according to the starting instruction;
acquiring an initial picture file corresponding to each icon in the program and loading the initial picture file into a memory;
acquiring state information corresponding to each icon;
analyzing the initial picture file of each icon according to the picture parameter corresponding to the state information of each icon to obtain a state picture corresponding to each icon;
and displaying the state picture in an interface of the program.
2. The method for optimized display of multi-state icons according to claim 1, wherein the parsing the initial picture file of the icon according to the picture parameter corresponding to the state information of each icon to obtain the state picture corresponding to each icon comprises:
analyzing the initial picture file to obtain corresponding basic picture information;
performing parameter adjustment on the basic picture information according to picture parameters corresponding to the state information to obtain adjusted picture information corresponding to the picture parameters;
drawing a state picture corresponding to the adjustment picture information of each icon;
and configuring the state picture of each icon as a display type.
3. The method for optimized display of multi-state icons according to claim 2, wherein after configuring the state picture of each icon as a display type, the method further comprises:
and loading the state picture of the display type into a memory.
4. The method of claim 2, wherein after parsing the initial picture file to obtain corresponding base picture information, the method further comprises:
judging whether the state information of each icon is initial state information or not;
and if the state information of the icon is initial state information, drawing an initial state picture corresponding to the initial picture file for displaying.
5. The method for optimized display of multi-state icons according to claim 1, wherein after displaying the state picture in the program interface, further comprising:
judging whether the state information of each icon is changed or not;
if the state information of the icon changes, hiding the current state picture of the displayed icon;
and returning to execute the step of analyzing the initial picture file of the icon according to the picture parameter corresponding to the state information of each icon so as to obtain the state picture corresponding to each icon.
6. The method for optimized display of multi-state icons according to claim 1, further comprising:
and destroying the state pictures of all the icons according to an exit instruction and exiting the program.
7. An apparatus for optimized display of multi-state icons, the apparatus comprising:
the program starting unit is used for starting a program according to a starting instruction;
the image file loading unit is used for acquiring an initial image file corresponding to each icon in the program and loading the initial image file into the memory;
the state information acquisition unit is used for acquiring state information corresponding to each icon;
the picture file analysis unit is used for analyzing the initial picture file of the icon according to the picture parameter corresponding to the state information of each icon to obtain a state picture corresponding to each icon;
and the state picture display unit is used for displaying the state picture in the interface of the program.
8. The apparatus for optimized display of multi-state icons according to claim 7, wherein the picture file parsing unit comprises:
a basic picture information obtaining unit, configured to parse the initial picture file to obtain corresponding basic picture information;
an adjusted picture information obtaining unit, configured to perform parameter adjustment on the basic picture information according to a picture parameter corresponding to the state information, so as to obtain adjusted picture information corresponding to the picture parameter;
the state picture drawing unit is used for drawing a state picture corresponding to the adjustment picture information of each icon;
and the display type configuration unit is used for configuring the state picture of each icon as a display type.
9. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the method for optimized display of a multi-state icon according to any one of claims 1 to 6 when executing the computer program.
10. A computer-readable storage medium, characterized in that it stores a computer program which, when executed by a processor, implements the method for optimized display of a multi-state icon according to any one of claims 1 to 6.
CN202210474032.XA 2022-04-29 2022-04-29 Optimized display method, device, equipment and medium for multi-state icon Pending CN114860366A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210474032.XA CN114860366A (en) 2022-04-29 2022-04-29 Optimized display method, device, equipment and medium for multi-state icon

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210474032.XA CN114860366A (en) 2022-04-29 2022-04-29 Optimized display method, device, equipment and medium for multi-state icon

Publications (1)

Publication Number Publication Date
CN114860366A true CN114860366A (en) 2022-08-05

Family

ID=82636313

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210474032.XA Pending CN114860366A (en) 2022-04-29 2022-04-29 Optimized display method, device, equipment and medium for multi-state icon

Country Status (1)

Country Link
CN (1) CN114860366A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014090116A1 (en) * 2012-12-11 2014-06-19 广州华多网络科技有限公司 Method for displaying icon, microprocessor and mobile terminal
CN108920229A (en) * 2018-06-11 2018-11-30 网易(杭州)网络有限公司 Information processing method, device and storage medium and terminal
CN108984060A (en) * 2018-06-07 2018-12-11 阿里巴巴集团控股有限公司 A kind of icon display method and terminal device
CN109765793A (en) * 2018-12-07 2019-05-17 深圳绿米联创科技有限公司 Equipment state display methods, device, terminal and storage medium
CN111275607A (en) * 2020-01-17 2020-06-12 腾讯科技(深圳)有限公司 Interface display method and device, computer equipment and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014090116A1 (en) * 2012-12-11 2014-06-19 广州华多网络科技有限公司 Method for displaying icon, microprocessor and mobile terminal
CN108984060A (en) * 2018-06-07 2018-12-11 阿里巴巴集团控股有限公司 A kind of icon display method and terminal device
CN108920229A (en) * 2018-06-11 2018-11-30 网易(杭州)网络有限公司 Information processing method, device and storage medium and terminal
CN109765793A (en) * 2018-12-07 2019-05-17 深圳绿米联创科技有限公司 Equipment state display methods, device, terminal and storage medium
CN111275607A (en) * 2020-01-17 2020-06-12 腾讯科技(深圳)有限公司 Interface display method and device, computer equipment and storage medium

Similar Documents

Publication Publication Date Title
CN110764850B (en) Interface display method, parameter assignment method, system and equipment
CN109885314B (en) Automatic layout method and device for small programs
CN105988837B (en) Application program installation method and device
CN111681291A (en) Image processing method, device, equipment and computer readable storage medium
CN107908604B (en) Report form graph generation method and device, computer equipment and storage medium
CN111694572A (en) Code format conversion method, device, computer equipment and storage medium
CN112434330A (en) Method, system and device for displaying front-end page and readable storage medium
US20150220316A1 (en) Application program evanescence on a computing device
CN107332991B (en) Screen locking interface information processing method and device
CN111507063A (en) Text processing method, device and equipment and computer readable storage medium
CN111400633A (en) Page resource loading method and device
US20140013320A1 (en) Techniques for providing information regarding software components available for installation
CN112905943B (en) Dynamic chart display method and system based on mobile terminal
CN114860366A (en) Optimized display method, device, equipment and medium for multi-state icon
CN111367518A (en) Page layout method and device, computing equipment and computer storage medium
CN111695004B (en) Application information processing method, device, computer equipment and storage medium
CN111061414A (en) Skin replacement method and device, electronic equipment and readable storage medium
CN114416243A (en) Interface display method and device of vehicle-mounted terminal and electronic equipment
CN114240132A (en) Business process arrangement execution method and device, computer equipment and storage medium
CN113987241A (en) Image display method, image display device, electronic apparatus, and readable storage medium
CN109725799B (en) Advertisement display control method and device and intelligent terminal
CN112988663A (en) File storage method and electronic equipment
CN113010815A (en) Display method and electronic device
CN111767102A (en) Application program display method, information processing method and device and electronic equipment
CN114064177B (en) Application program hiding method and device, storage medium and terminal equipment

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