CN106708348B - Dynamic color icon display method and device - Google Patents
Dynamic color icon display method and device Download PDFInfo
- Publication number
- CN106708348B CN106708348B CN201510419048.0A CN201510419048A CN106708348B CN 106708348 B CN106708348 B CN 106708348B CN 201510419048 A CN201510419048 A CN 201510419048A CN 106708348 B CN106708348 B CN 106708348B
- Authority
- CN
- China
- Prior art keywords
- color icon
- color
- icon
- control table
- file
- 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
Links
Images
Landscapes
- Instructional Devices (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The invention is suitable for the field of dynamic color icon display, and provides a dynamic color icon display method and a dynamic color icon display device, wherein the dynamic color icon display method comprises the following steps: acquiring a pre-established color icon control table, wherein the color icon control table comprises the number of each color icon, the designated initial position and the designated size of each color icon in a color icon file, and a plurality of color icons are integrated in each color icon file in advance; when the color icon is displayed, acquiring the designated initial position and the designated size of the color icon in the color icon file in the color icon control table according to the number of the color icon; and intercepting the content with the specified size from the specified initial position of the acquired color icon file, and refreshing the intercepted content to the specified position of the screen. The invention provides a convenient and high-quality icon display means for a middle-low end embedded platform, and improves the icon display quality on the premise of not occupying excessive resource overhead.
Description
Technical Field
The invention belongs to the field of dynamic color icon display, and particularly relates to a dynamic color icon display method and device.
Background
The good display picture and abundant suggestion guide information can promote the ease for use of product greatly, improve people's experience level. The color icon is a visual graph to indicate the running state of the equipment, and is a very human guide prompting means.
However, in the embedded system, the processing time is long when the color icon is displayed, and the display efficiency is reduced. The reason is that the resource overhead of the embedded system is limited, and no existing technical support exists, and when a color icon is displayed, a bitmap variable needs to be adopted to directly draw the color icon on a screen. Because the processor draws the color icon, the data for processing the color icon is more, so the processing time is longer, the display is slow, and the display efficiency is reduced.
Disclosure of Invention
The embodiment of the invention aims to provide a dynamic color icon display method, and aims to solve the problems that in the existing embedded system, the processing time is longer and the display efficiency is reduced when a color icon is displayed.
The embodiment of the invention is realized in such a way that a dynamic color icon display method comprises the following steps:
acquiring a pre-established color icon control table, wherein the color icon control table comprises the number of each color icon, the designated initial position and the designated size of each color icon in a color icon file, and a plurality of color icons are integrated in each color icon file in advance;
when the color icon is displayed, acquiring the designated initial position and the designated size of the color icon in the color icon file in the color icon control table according to the number of the color icon;
and intercepting the content with the specified size from the specified initial position of the acquired color icon file, and refreshing the intercepted content to the specified position of the screen.
Another object of an embodiment of the present invention is to provide a dynamic color icon display device, including:
the system comprises a color icon control table acquisition module, a color icon control table acquisition module and a color icon control module, wherein the color icon control table acquisition module is used for acquiring a pre-established color icon control table, the color icon control table comprises the number of each color icon, the appointed initial position and the appointed size of each color icon in a color icon file, and a plurality of color icons are pre-integrated in each color icon file;
the color icon display module is used for displaying a color icon, and acquiring the designated initial position and the designated size of the color icon in the color icon file in the color icon control table according to the number of the color icon;
and the refreshing module is used for intercepting the content with the specified size from the specified initial position of the obtained color icon file and refreshing the intercepted content to the specified position of the screen.
In the embodiment of the invention, the content with the specified size is intercepted from the specified initial position of the obtained color icon file, and the intercepted content is refreshed to the specified position of the screen, thereby solving the problems of longer processing time and lower display efficiency when the color icon is displayed in the existing embedded system. The method is simple and can ensure the display effect of the color icons, provides support for the color icon display based on the middle and low-end embedded platform, improves the state display quality of the color icons, and improves the user experience level.
Drawings
FIG. 1 is a flowchart illustrating an implementation of a method for displaying dynamic color icons according to an embodiment of the present invention;
FIG. 2 is a flow chart of an implementation of creating a color icon control table according to an embodiment of the present invention;
FIG. 3 is a flowchart illustrating a step S102 of a dynamic color icon display method according to an embodiment of the present invention;
FIG. 4 is a flowchart illustrating an implementation of color icon update according to an embodiment of the present invention;
fig. 5 is a block diagram of a dynamic color icon display device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Example one
Fig. 1 is a flowchart of an implementation of a method for displaying dynamic color icons according to an embodiment of the present invention, which is detailed as follows:
s101, acquiring a pre-established color icon control table, wherein the color icon control table comprises the number of each color icon, the designated initial position and the designated size of each color icon in a color icon file, and a plurality of color icons are integrated in each color icon file in advance;
integrating a plurality of color icons in each of the color icon files before acquiring a pre-established color icon control table.
S102, when the color icon is displayed, acquiring the designated initial position and the designated size of the color icon in the color icon file in the color icon control table according to the number of the color icon;
s103, intercepting the content with the specified size from the specified initial position of the acquired color icon file, and refreshing the intercepted content to the specified position of the screen.
The color icons are icons with different colors.
Acquiring adjustment time preset by a user or default by a system;
when the adjusted time is reached, the icons on the screen are refreshed.
The refreshing of the color icons on the screen specifically comprises the following steps:
refreshing the color icons on the screen and rotating the color icons in a clockwise direction, or refreshing the color icons on the screen and rotating the color icons in a counterclockwise direction,
in the embodiment of the invention, the content with the specified size is intercepted from the specified initial position of the obtained color icon file, and the intercepted content is refreshed to the specified position of the screen, thereby solving the problems of longer processing time and lower display efficiency when the color icon is displayed in the existing embedded system. Under the condition that the embedded system is normally used, the intercepted content can be directly loaded and refreshed to the appointed position of the screen, so that the processing time is saved, the display efficiency of the color icons is improved, a convenient and high-quality icon display means is provided for a middle-low end embedded platform, and the icon display quality is improved on the premise of not occupying excessive resource overhead.
Example two
FIG. 2 is a flow chart of the implementation of creating a color icon control table according to the embodiment of the present invention, which is detailed as follows:
in step S201, the number of each color icon is written;
in step S202, a designated start position and a designated size of each color icon in the color icon file are written;
in step S203, the number, the designated initial position and the designated size of each color icon are mapped and recorded to create a color icon control table.
In the embodiment of the invention, the color icon control table is established, so that the subsequent calling is convenient, the processing time is saved, and the display efficiency of the color icons is improved.
EXAMPLE III
Fig. 3 is a flowchart of the step S102 of the dynamic color icon displaying method according to the embodiment of the present invention, which is detailed as follows:
in step S301, the color icons are displayed, and the numbers of the color icons are sorted according to the size of the numbers;
in step S302, according to the sorting result, the designated start position and the designated size of the color icon in the color icon file are sequentially obtained in the color icon control table.
In the embodiment of the invention, the color icon control table is established, so that the subsequent calling is convenient, the processing time is saved, and the display efficiency of the color icons is improved.
Example four
Fig. 4 is a flowchart of an implementation of color icon update according to an embodiment of the present invention, which is detailed as follows:
in step S401, reading the system time and the configured update time limit, and determining whether the update time limit is reached;
in step S402, when the update time limit is reached, a preset server is connected to update the stored color icon.
In the embodiment of the invention, the stored color icons are updated, so that diversified requirements are met, and the operation experience of a client is improved.
EXAMPLE five
Fig. 5 is a block diagram of a dynamic color icon display device according to an embodiment of the present invention, which can be operated in an electronic device with an embedded system. Electronic devices include, but are not limited to, smart phones, tablets, laptops. For convenience of explanation, only the portions related to the present embodiment are shown.
Referring to fig. 5, the dynamic color icon display device includes:
a color icon control table acquiring module 51, configured to acquire a pre-established color icon control table, where the color icon control table includes a number of each color icon, a designated initial position and a designated size of each color icon in a color icon file, and a plurality of color icons are pre-integrated in each color icon file;
a color icon display module 52, configured to obtain, in the color icon control table, a designated starting position and a designated size of a color icon in a color icon file according to the number of the color icon when displaying the color icon;
and a refreshing module 53, configured to intercept content of a specified size starting at a specified start position of the obtained color icon file, and refresh the intercepted content to a specified position of the screen.
In one implementation manner of this embodiment, the dynamic color icon display device further includes:
the first writing module is used for writing the number of each color icon;
the second writing module is used for writing the appointed initial position and the appointed size of each color icon in the color icon file;
and the color icon control table establishing module is used for establishing a corresponding relation and recording and storing the serial number, the designated initial position and the designated size of each color icon so as to establish a color icon control table.
In one implementation manner of this embodiment, the dynamic color icon display device further includes:
and the color icon integration module is used for integrating a plurality of color icons in each color icon file.
In an implementation manner of this embodiment, the color icon display module includes:
the number sequencing unit is used for sequencing the numbers of the color icons according to the sizes of the numbers when the color icons are displayed;
and the acquisition unit is used for sequentially acquiring the designated initial position and the designated size of the color icon in the color icon file in the color icon control table according to the sorting result.
In an implementation manner of this embodiment, the dynamic color icon display module further includes:
the judging module is used for reading the system time and the configured updating time limit and judging whether the updating time limit reaches or not;
and the updating module is used for connecting a preset server and updating the stored color icons when the updating time limit is reached.
The apparatus provided in the embodiment of the present invention may be applied to the corresponding method embodiments, and for details, reference is made to the description of the embodiments above, and details are not repeated here.
Through the above description of the embodiments, those skilled in the art will clearly understand that the present invention can be implemented by software plus necessary general hardware. The program may be stored in a readable storage medium, such as a random access memory, a flash memory, a read only memory, a programmable read only memory, an electrically erasable programmable memory, a register, and the like. The storage medium is located in a memory, and a processor reads information in the memory and performs the method according to the embodiments of the present invention in combination with hardware thereof.
The above description is only for the specific embodiment of the present invention, but the scope of the present invention is not limited thereto, and any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope of the present invention are included in the scope of the present 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 displaying a dynamic color icon, comprising:
acquiring a pre-established color icon control table, wherein the color icon control table comprises the number of each color icon, the designated initial position and the designated size of each color icon in a color icon file, and a plurality of color icons are integrated in each color icon file in advance;
when the color icon is displayed, acquiring the designated initial position and the designated size of the color icon in the color icon file in the color icon control table according to the number of the color icon;
and starting from the appointed initial position of the acquired color icon file, intercepting the content with the appointed size, refreshing the intercepted content to the appointed position of the screen, refreshing the color icon on the screen when the adjustment time is reached, and rotating the color icon in a clockwise direction or rotating the color icon in a counterclockwise direction.
2. The dynamic color icon display method as claimed in claim 1, wherein before said obtaining a pre-established color icon control table, said dynamic color icon display method further comprises:
writing the number of each color icon;
writing the appointed initial position and the appointed size of each color icon in the color icon file;
and establishing a corresponding relation and recording and storing the serial number, the designated initial position and the designated size of each color icon so as to establish a color icon control table.
3. The dynamic color icon display method as claimed in claim 1, wherein before said obtaining a pre-established color icon control table, said dynamic color icon display method further comprises:
integrating a plurality of color icons in each of the color icon files.
4. The method as claimed in claim 1, wherein said displaying the color icons includes obtaining the designated start positions and designated sizes of the color icons in the color icon file in the color icon control table according to the numbers of the color icons, specifically:
when the color icons are displayed, the numbers of the color icons are sequenced according to the sizes of the numbers;
and according to the sorting result, sequentially acquiring the designated initial position and the designated size of the color icon in the color icon file in the color icon control table.
5. The dynamic color icon display method as claimed in claim 1, further comprising:
reading the system time and the configured updating time limit, and judging whether the updating time limit is reached;
and when the updating time limit is reached, connecting a preset server, and updating the stored color icons.
6. A dynamic color icon display device, comprising:
the system comprises a color icon control table acquisition module, a color icon control table acquisition module and a color icon control module, wherein the color icon control table acquisition module is used for acquiring a pre-established color icon control table, the color icon control table comprises the number of each color icon, the appointed initial position and the appointed size of each color icon in a color icon file, and a plurality of color icons are pre-integrated in each color icon file;
the color icon display module is used for displaying a color icon, and acquiring the designated initial position and the designated size of the color icon in the color icon file in the color icon control table according to the number of the color icon;
and the refreshing module is used for intercepting the content with the specified size from the specified initial position of the obtained color icon file, refreshing the intercepted content to the specified position of the screen, refreshing the color icon on the screen when the adjustment time is reached, and rotating the color icon in a clockwise direction or rotating the color icon in a counterclockwise direction.
7. The dynamic color icon display device as recited in claim 6, further comprising:
the first writing module is used for writing the number of each color icon;
the second writing module is used for writing the appointed initial position and the appointed size of each color icon in the color icon file;
and the color icon control table establishing module is used for establishing a corresponding relation and recording and storing the serial number, the designated initial position and the designated size of each color icon so as to establish a color icon control table.
8. The dynamic color icon display device as recited in claim 6, further comprising:
and the color icon integration module is used for integrating a plurality of color icons in each color icon file.
9. The dynamic color icon display device of claim 6 wherein the color icon display module comprises:
the number sequencing unit is used for sequencing the numbers of the color icons according to the sizes of the numbers when the color icons are displayed;
and the acquisition unit is used for sequentially acquiring the designated initial position and the designated size of the color icon in the color icon file in the color icon control table according to the sorting result.
10. The dynamic color icon display device of claim 6 wherein the dynamic color icon display module further comprises:
the judging module is used for reading the system time and the configured updating time limit and judging whether the updating time limit reaches or not;
and the updating module is used for connecting a preset server and updating the stored color icons when the updating time limit is reached.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510419048.0A CN106708348B (en) | 2015-07-16 | 2015-07-16 | Dynamic color icon display method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510419048.0A CN106708348B (en) | 2015-07-16 | 2015-07-16 | Dynamic color icon display method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106708348A CN106708348A (en) | 2017-05-24 |
CN106708348B true CN106708348B (en) | 2020-04-14 |
Family
ID=58894344
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510419048.0A Active CN106708348B (en) | 2015-07-16 | 2015-07-16 | Dynamic color icon display method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106708348B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111328391B (en) * | 2017-09-13 | 2023-10-20 | 深圳传音通讯有限公司 | Icon display method and icon display device of intelligent terminal |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5797139A (en) * | 1995-12-14 | 1998-08-18 | International Business Machines Corporation | Method, memory and apparatus for designating a file's type by building unique icon borders |
CN101281465A (en) * | 2008-05-26 | 2008-10-08 | 中兴通讯股份有限公司 | Method for managing picture mark of mobile terminal |
CN102368214A (en) * | 2011-10-17 | 2012-03-07 | 深圳和而泰智能控制股份有限公司 | Automatic interface generation method and system |
CN102567492A (en) * | 2011-12-22 | 2012-07-11 | 哈尔滨工程大学 | Method for sea-land vector map data integration and fusion |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20140032616A1 (en) * | 2008-08-29 | 2014-01-30 | John Nack | Creation and sharing of user annotations |
-
2015
- 2015-07-16 CN CN201510419048.0A patent/CN106708348B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5797139A (en) * | 1995-12-14 | 1998-08-18 | International Business Machines Corporation | Method, memory and apparatus for designating a file's type by building unique icon borders |
CN101281465A (en) * | 2008-05-26 | 2008-10-08 | 中兴通讯股份有限公司 | Method for managing picture mark of mobile terminal |
CN102368214A (en) * | 2011-10-17 | 2012-03-07 | 深圳和而泰智能控制股份有限公司 | Automatic interface generation method and system |
CN102567492A (en) * | 2011-12-22 | 2012-07-11 | 哈尔滨工程大学 | Method for sea-land vector map data integration and fusion |
Also Published As
Publication number | Publication date |
---|---|
CN106708348A (en) | 2017-05-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR102454196B1 (en) | Method for controlling display and electronic device supporting the same | |
KR102353766B1 (en) | Apparatus and method for controlling display | |
US9665247B2 (en) | Method and device for applying a new skin to a display environment | |
CN107092453B (en) | Screen display control method and device and terminal | |
AU2013324179A1 (en) | Intelligent window placement | |
US9959652B2 (en) | Display method and terminal | |
CN113010252B (en) | Application page display method, electronic equipment and storage medium | |
CN110750664B (en) | Picture display method and device | |
US20140380213A1 (en) | Location adjustment system and related method | |
CN106598410B (en) | Display methods, device and the terminal device of e-book | |
US9030378B2 (en) | Sharing display processing system, display processing system, and display method | |
KR20180014498A (en) | Electronic device for improving a visibility of text and method of operating the same | |
CN106156132B (en) | Picture loading display method and device | |
CN111104178A (en) | Dynamic library loading method, terminal device and storage medium | |
CN106708348B (en) | Dynamic color icon display method and device | |
CN106713962B (en) | Video display method, apparatus and terminal device | |
CN107391148B (en) | View element saving method and device, electronic equipment and computer storage medium | |
KR20160027699A (en) | Method for processing image and electronic device thereof | |
US20150293679A1 (en) | Method and Device for Controlling Switching of Virtual Navigation Bar | |
US20240104811A1 (en) | Image editing method and device | |
CN108776669B (en) | Map display method, map display device, computer device and storage medium | |
EP2953058A1 (en) | Method for displaying images and electronic device for implementing the same | |
CN107133022B (en) | Control display method and device in terminal equipment | |
KR20150033786A (en) | Method and apparatus for improving readability of contents | |
CN113703653A (en) | Image processing method, device, equipment and computer readable storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CP03 | Change of name, title or address |
Address after: 518000 zones 102, 103, 202 and 302a, No. 336-1, Xiangshan Avenue, Luotian community, Yanluo street, Bao'an District, Shenzhen, Guangdong Province Patentee after: Shenzhen jinqihui Electric Co.,Ltd. Address before: 518000 Guangdong city of Shenzhen province Nanshan District Xili Guan Long Village Second Industrial Zone 8 Patentee before: SHENZHEN QIHUI ELECTRICAL Co.,Ltd. |
|
CP03 | Change of name, title or address |