CN109189971A - A kind of method of flexible special display effect number - Google Patents
A kind of method of flexible special display effect number Download PDFInfo
- Publication number
- CN109189971A CN109189971A CN201811027076.8A CN201811027076A CN109189971A CN 109189971 A CN109189971 A CN 109189971A CN 201811027076 A CN201811027076 A CN 201811027076A CN 109189971 A CN109189971 A CN 109189971A
- Authority
- CN
- China
- Prior art keywords
- digital picture
- display effect
- special display
- application program
- picture
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Studio Circuits (AREA)
Abstract
The invention discloses a kind of methods of flexible special display effect number, include the following steps: step 1: design covers digital picture;Step 2: the mapping table of one character of design to digital picture;Step 3: digital picture and mapping table are loaded when application program launching to memory;Step 4: the number of an any digit is generated at random;Step 5: this random number is converted into character string;Step 6: being array by character string cutting;Step 7: the corresponding digital picture object of each unit in array is found respectively by mapping table;Step 8: corresponding digital picture object is spliced into the complete digital picture of a width by the sequencing of array;Step 9: screen ratio special display effect digital picture is accounted for according to design.The present invention not only meets the scene demand of complicated special display effect number, in conjunction with technologies such as preloadings, moreover it is possible to quickly seamlessly be presented to user, realize optimal user experience, user is allowed to hardly feel the splicing of picture.
Description
Technical field
The present invention relates to a kind of methods of terminal display number, and in particular to a kind of method of flexible special display effect number,
Belong to intelligent terminal processing field of display technology.
Background technique
In mobile internet era, many mobile phones are applied at business end to encourage user to use or enhance user's viscosity,
Often can all design register change integral, play trivial games change long-pending grading mode.Traditional integral way generally can all preset 10,
20, several grades of the similar this fixations such as 50,100, every grade can all correspond to a fixed digital picture, obtain and integrate in user
Afterwards, front end can be fixed and will integrate corresponding digital picture and be shown in a manner of special efficacy.The display mode of this special efficacy number
Although having some superiority in display speed, it can only simply show that the number of certain several fixation, this mode are too single
With it is uninteresting, be not well positioned to meet the complicated business scenario to become increasingly abundant.In big data era, with mobile phone CPU speed
It is promoted rapidly, mobile phone can quickly handle more complicated business, and the splicing load of multiple digital picture is not bottleneck, flexible special efficacy
Number display will also be increasingly becoming trend.
Summary of the invention
Above-mentioned single special efficacy number display mode there are aiming at the problem that, the present invention provides a kind of flexible display is special
Digital technology is imitated, the number of any digit can rapidly be shown it with Special effects mode.
The present invention is implemented as follows:
A kind of method of flexible special display effect number, includes the following steps:
Step 1: design covers digital picture, and the digital picture in every set has same background and resolution ratio;
Step 2: each digital picture, all mapping table of one character of design to digital picture are directed to;
Step 3: digital picture and mapping table are loaded when application program launching to memory;
Step 4: application program generates the number of an any digit at random;
Step 5: this random number is converted to character string by application program;
Step 6: character string cutting is again array by application program, until cutting is the smallest unit;
Step 7: application program finds the corresponding digital picture pair of each unit in array by mapping table respectively
As;
Step 8: corresponding digital picture object is spliced into a width by the sequencing of array and completely counted by application program
Word picture;
Step 9: application program accounts for screen ratio special display effect digital picture according to design.
Further scheme is:
The digital picture includes the digital picture from 0 to 9.
Further scheme is:
The digital picture further includes the picture for representing decimal point.
Further scheme is:
In step 2, the mode of design map table is established corresponding between key character and digital picture using key-value pair
Mapping relations.
Further scheme is:
In step 6, the smallest unit refers to the unit for only including a number or decimal point.
By the above method, the scene demand of complicated special display effect number is not only met, in conjunction with technologies such as preloadings,
It quickly can also be seamlessly presented to user, realize optimal user experience, user is allowed to hardly feel the splicing of picture.
Also 0 to 9 picture (if there is decimal point picture, preloading together) need to be only loaded when preloading picture, and does not have to preload every
The picture of a specific number.In the case where needing digital gear to be shown very much, the present invention will have preferable experience.
Specific embodiment
The present invention is further illustrated combined with specific embodiments below.
Embodiment 1
The core of this method is that by a whole random digit (being named as R) be n minimum unit (life by digit cutting
Entitled R [0], R [1], R [2], R [3] ..., R [n-1]), its corresponding object picture (resolution ratio is matched by minimum unit respectively
It is identical, and it is named as image1, image2, image3 ...), these objects are then spliced into one by the sequencing of array
A complete picture (being named as Image), finally shows entire special effect of picture.
This method includes initialization module, random number generates and processing module, picture splicing module and special effect of picture are shown
Module.
Concrete operations process is as follows:
Step 1: initialization module load minimum unit digital picture and character to object picture mapping table;
Step 2: random number generates and a random number R is randomly generated in processing module;
Step 3: random number, which is generated, is cut into the smallest n unit, respectively R [0], R for random number R with processing module
[1],R[2],R[3],…,R[n-1];
Step 4: picture splicing module matches its corresponding object picture by minimum unit, and by the figure of same resolution ratio
Piece is spliced into a complete object picture Image;
Step 5: Image is shown presentation by digital effects mode by special effect of picture display module;
Embodiment 2
A kind of method of flexible special display effect number, includes the following steps:
Step 1: design covers digital picture and decimal point picture, and the digital picture and decimal point picture in every set have
Same background and resolution ratio, wherein digital picture includes the digital picture from 0 to 9, and represents the decimal point picture of decimal point;
Step 2: being directed to each digital picture and decimal point picture, all designs a character to digital picture and decimal point
The mapping table of picture;Wherein, simplest mode is exactly key-value pair, such as can obtain digital picture 1 by key character ' 1 ';
Step 3: digital picture, decimal point picture and mapping table are loaded when application program launching to memory;
Step 4: application program generates the number of an any digit at random;For example, below with the integer of 5 digits
86239 be example;
Step 5: this random number is converted to character string by application program;Such as it will be whole by the toString method of JS
Number 86239 is converted to character string " 86239 ";
Step 6: character string cutting is again array by application program, until cutting is the smallest unit;Such as pass through JS's
Integer cutting is character array [' 8 ', ' 6 ', ' 2 ', ' 3 ', ' 9 '] by split method, and cutting at this time is the smallest unit;
Step 7: application program finds the corresponding digitized map of each element units in array by mapping table respectively
Piece object or decimal point object picture;
Step 8: application program is spelled digital picture or decimal point picture by certain resolution ratio by the sequencing of array
It is connected into the complete digital picture of a width;
Step 9: application program accounts for screen ratio special display effect number according to design.
Although reference be made herein to invention has been described for explanatory embodiment of the invention, and above-described embodiment is only this hair
Bright preferable embodiment, embodiment of the present invention are not limited by the above embodiments, it should be appreciated that those skilled in the art
Member can be designed that a lot of other modification and implementations, these modifications and implementations will fall in principle disclosed in the present application
Within scope and spirit.
Claims (5)
1. a kind of method of flexible special display effect number, it is characterised in that include the following steps:
Step 1: design covers digital picture, and the digital picture in every set has same background and resolution ratio;
Step 2: each digital picture, all mapping table of one character of design to digital picture are directed to;
Step 3: digital picture and mapping table are loaded when application program launching to memory;
Step 4: application program generates the number of an any digit at random;
Step 5: this random number is converted to character string by application program;
Step 6: character string cutting is again array by application program, until cutting is the smallest unit;
Step 7: application program finds the corresponding digital picture object of each unit in array by mapping table respectively;
Step 8: corresponding digital picture object is spliced into the complete digitized map of a width by the sequencing of array by application program
Piece;
Step 9: application program accounts for screen ratio special display effect digital picture according to design.
2. the method for flexible special display effect number according to claim 1, it is characterised in that:
The digital picture includes the digital picture from 0 to 9.
3. the method for flexible special display effect number according to claim 2, it is characterised in that:
The digital picture further includes the picture for representing decimal point.
4. the method for flexible special display effect number according to claim 1, it is characterised in that:
In step 2, the mode of design map table is to establish the correspondence mappings between key character and digital picture using key-value pair
Relationship.
5. the method for flexible special display effect number according to claim 3, it is characterised in that:
In step 6, the smallest unit refers to the unit for only including a number or decimal point.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811027076.8A CN109189971A (en) | 2018-09-04 | 2018-09-04 | A kind of method of flexible special display effect number |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811027076.8A CN109189971A (en) | 2018-09-04 | 2018-09-04 | A kind of method of flexible special display effect number |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109189971A true CN109189971A (en) | 2019-01-11 |
Family
ID=64914428
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811027076.8A Pending CN109189971A (en) | 2018-09-04 | 2018-09-04 | A kind of method of flexible special display effect number |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109189971A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20220123949A1 (en) * | 2021-06-23 | 2022-04-21 | Intel Corporation | Side channel protection for xmss signature function |
Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6313843B1 (en) * | 1997-08-27 | 2001-11-06 | Casio Computer Co., Ltd. | Apparatus and method for controlling image display, and recording medium storing program for controlling image display |
CN102768754A (en) * | 2012-08-03 | 2012-11-07 | 网易(杭州)网络有限公司 | Method and device for implementation of picture verification code |
CN103065341A (en) * | 2012-12-19 | 2013-04-24 | 福建天晴数码有限公司 | Method for turning figure picture into verification code picture based on black color and white color |
CN103366390A (en) * | 2012-03-29 | 2013-10-23 | 展讯通信(上海)有限公司 | Terminal, image processing method and device thereof |
US20140130126A1 (en) * | 2012-11-05 | 2014-05-08 | Bjorn Markus Jakobsson | Systems and methods for automatically identifying and removing weak stimuli used in stimulus-based authentication |
CN104866135A (en) * | 2015-04-27 | 2015-08-26 | 努比亚技术有限公司 | Method and device for inputting numeric characters through frame of touch screen |
CN105323218A (en) * | 2014-06-30 | 2016-02-10 | 腾讯科技(深圳)有限公司 | Identity verifying method and device |
CN105392042A (en) * | 2015-11-13 | 2016-03-09 | 天脉聚源(北京)传媒科技有限公司 | Menu display method and menu display device |
CN106249910A (en) * | 2016-07-15 | 2016-12-21 | 广东小天才科技有限公司 | A kind of character processing method based on character library and device, user terminal |
CN107911570A (en) * | 2017-11-27 | 2018-04-13 | 公安部交通管理科学研究所 | A kind of method for being compressed and decompressing to picture feature |
CN107941256A (en) * | 2017-11-20 | 2018-04-20 | 中国电子科技集团公司第四十研究所 | A kind of numerical value personalized indication method of high precision measuring instrument |
-
2018
- 2018-09-04 CN CN201811027076.8A patent/CN109189971A/en active Pending
Patent Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6313843B1 (en) * | 1997-08-27 | 2001-11-06 | Casio Computer Co., Ltd. | Apparatus and method for controlling image display, and recording medium storing program for controlling image display |
CN103366390A (en) * | 2012-03-29 | 2013-10-23 | 展讯通信(上海)有限公司 | Terminal, image processing method and device thereof |
CN102768754A (en) * | 2012-08-03 | 2012-11-07 | 网易(杭州)网络有限公司 | Method and device for implementation of picture verification code |
US20140130126A1 (en) * | 2012-11-05 | 2014-05-08 | Bjorn Markus Jakobsson | Systems and methods for automatically identifying and removing weak stimuli used in stimulus-based authentication |
CN103065341A (en) * | 2012-12-19 | 2013-04-24 | 福建天晴数码有限公司 | Method for turning figure picture into verification code picture based on black color and white color |
CN105323218A (en) * | 2014-06-30 | 2016-02-10 | 腾讯科技(深圳)有限公司 | Identity verifying method and device |
CN104866135A (en) * | 2015-04-27 | 2015-08-26 | 努比亚技术有限公司 | Method and device for inputting numeric characters through frame of touch screen |
CN105392042A (en) * | 2015-11-13 | 2016-03-09 | 天脉聚源(北京)传媒科技有限公司 | Menu display method and menu display device |
CN106249910A (en) * | 2016-07-15 | 2016-12-21 | 广东小天才科技有限公司 | A kind of character processing method based on character library and device, user terminal |
CN107941256A (en) * | 2017-11-20 | 2018-04-20 | 中国电子科技集团公司第四十研究所 | A kind of numerical value personalized indication method of high precision measuring instrument |
CN107911570A (en) * | 2017-11-27 | 2018-04-13 | 公安部交通管理科学研究所 | A kind of method for being compressed and decompressing to picture feature |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20220123949A1 (en) * | 2021-06-23 | 2022-04-21 | Intel Corporation | Side channel protection for xmss signature function |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20210019106A1 (en) | Desktop Sharing Method and Mobile Terminal | |
CN110675479B (en) | Dynamic illumination processing method and device, storage medium and electronic device | |
CN109086126B (en) | Task scheduling processing method and device, server, client and electronic equipment | |
US20170300204A1 (en) | Method and apparatus for manufacturing interactive electronic manual | |
KR102176655B1 (en) | Server and method for generating a font file | |
CN109086020A (en) | Multi-screen display method and device | |
CN104462283A (en) | Method, device and client for requesting webpage elements in mobile terminal | |
CN112784112A (en) | Message checking method and device | |
CN111773704A (en) | Game data processing method, game data processing device, storage medium, processor and electronic device | |
CN109358927B (en) | Application program display method and device and terminal equipment | |
CN110222046B (en) | List data processing method, device, server and storage medium | |
CN109718554B (en) | Real-time rendering method and device and terminal | |
CN109189971A (en) | A kind of method of flexible special display effect number | |
CN104793937B (en) | A kind of startup control method and device | |
CN106293369B (en) | Exchange method, interactive device and user equipment based on barrage | |
CN105867868A (en) | Image display method and image display terminal | |
CN109165712A (en) | Distributed generation method, device and computer storage medium by stages number | |
CN109040848B (en) | Bullet screen reverse-playing method and device, electronic equipment and storage medium | |
CN110647371A (en) | Multi-language resource file analysis method and system based on service configuration | |
CN109522187B (en) | Method and device for quickly extracting state information | |
CN109145084B (en) | Data processing method, data processing device and server | |
CN112188177A (en) | Screen-splash prevention method, terminal device and storage medium | |
CN103618996A (en) | Position data processing method, client and server | |
US20170185270A1 (en) | Animation display method for view and terminal device | |
WO2003015885A1 (en) | Card trading system using card information, card match game system using card information, and information recording medium usable for these |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190111 |