Detailed Description
For a better understanding of the above technical solutions, exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
The main solution of the invention is: the terminal acquires the icon number of the icons of the current display interface; determining a target icon to be subjected to mirror image processing in the icons of the current display interface according to the number of the icons; and carrying out mirror image processing on the target icon.
The icons are subjected to mirror image processing according to the number of the icons on the current display interface, so that the display effect of the icons is improved, and the intelligent degree of the terminal is improved.
As an implementation, the apparatus may be as in fig. 1.
The embodiment scheme of the invention relates to a device, which comprises: aprocessor 101, e.g. a CPU, amemory 102, acommunication bus 103. Wherein acommunication bus 103 is used for enabling the connection communication between these components.
Thememory 102 may be a high-speed RAM memory or a non-volatile memory (e.g., a disk memory). As in fig. 1, a detection program may be included in thememory 103 as a kind of computer storage medium; and theprocessor 101 may be configured to call the detection program stored in thememory 102 and perform the following operations:
acquiring the icon number of the icons of the current display interface;
determining a target icon to be subjected to mirror image processing in the icons of the current display interface according to the number of the icons;
and carrying out mirror image processing on the target icon.
In one embodiment, theprocessor 101 may be configured to call a detection program stored in thememory 102 and perform the following operations:
generating a random number according to the number of the icons;
and determining the target icon according to the random number.
In one embodiment, theprocessor 101 may be configured to call a detection program stored in thememory 102 and perform the following operations:
determining a user type, the user type including at least one of juvenile, adolescent, and old;
and carrying out mirror image processing on the target icon according to the mirror image processing parameters corresponding to the user type.
In one embodiment, theprocessor 101 may be configured to call a detection program stored in thememory 102 and perform the following operations:
generating a mirror image icon corresponding to the target icon;
a mirror image icon is displayed.
In one embodiment, theprocessor 101 may be configured to call a detection program stored in thememory 102 and perform the following operations:
generating a display icon corresponding to the target icon;
generating a reverse image picture corresponding to the target icon;
and overlapping the display icon corresponding to the target icon with the inverted image corresponding to the target icon to obtain a mirror image icon corresponding to the target icon.
In one embodiment, theprocessor 101 may be configured to call a detection program stored in thememory 102 and perform the following operations:
generating a mirror image matrix corresponding to the target icon;
acquiring a height parameter, a width parameter and a rotation angle corresponding to the target icon;
generating a bitmap corresponding to the target icon according to the height parameter, the width parameter and the rotation angle corresponding to the target icon;
and generating a display icon of the target icon according to the bitmap corresponding to the target icon and the mirror image matrix corresponding to the target icon.
In one embodiment, theprocessor 101 may be configured to call a detection program stored in thememory 102 and perform the following operations:
creating an object of a mirror matrix;
and generating a mirror image matrix corresponding to the target icon according to the objects of the mirror image matrix and the number of the target icons.
In one embodiment, theprocessor 101 may be configured to call a detection program stored in thememory 102 and perform the following operations:
acquiring a height parameter, a width parameter and a rotation angle corresponding to the target icon;
generating a mirror image bitmap corresponding to the target icon according to the height parameter, the width parameter and the rotation angle corresponding to the target icon;
and generating a reflection picture corresponding to the target icon according to the mirror image bitmap corresponding to the target icon and preset display parameters, wherein the display parameters comprise a color parameter, a style parameter and a transparency parameter.
In the technical scheme provided by the embodiment, the terminal acquires the icon number of the icons of the current display interface; determining a target icon to be subjected to mirror image processing in the icons of the current display interface according to the number of the icons; and carrying out mirror image processing on the target icon. The icons are subjected to mirror image processing according to the number of the icons on the current display interface, so that the display effect of the icons is improved, and the intelligent degree of the terminal is improved.
In order to better understand the technical solution, the technical solution will be described in detail with reference to the drawings and the specific embodiments.
Referring to fig. 2, fig. 2 is a first embodiment of a method for controlling icon display effect according to the present invention, the method comprising the steps of:
in step S10, the terminal obtains the number of icons of the icon of the current display interface.
In this embodiment, the terminal includes electronic devices of the types of an intelligent display system, a computer, a mobile phone, and the like, and is not limited herein, because the levels of various applications are infinite, the displays of various applications are presented by icons (icon), and one display page has thousands of icons of applications, and because the icons are displayed singly, and a reverse rotation effect cannot be automatically drawn according to the number of icons displayed on the current page, the requirements on user experience and the degree of intelligence in the development of the intelligent display system are affected, and by improving the diversity of the terminal displays, not only the user experience can be improved, but also the degree of intelligence of the terminal can be improved.
In this embodiment, the number of the icons is the total number of the icons of the current display interface of the terminal, and the terminal can acquire the icons through a built-in detection program.
Optionally, the number of icons of a current display page of the terminal is acquired, the terminal automatically generates an offset angle or a rotation angle of the icons, the terminal starts a random selection module to acquire the total number of names corresponding to the background application packages of the current display page, and the acquired number of the icons is stored.
Optionally, the icons include, but are not limited to, magnetic card types, specifically, the magnetic card is an operating system Windows 8 published by microsoft 2012, and is a grid under a brand new Modern start interface, where english is Tile, and chinese is preceded by spammer called Tile and also called Tile.
And step S20, the terminal determines a target icon to be subjected to mirror image processing in the icons of the current display interface according to the number of the icons.
In this embodiment, the mirroring refers to adding a display effect to an icon on a current display interface of the terminal, further, not all icons increase the display effect, but selectively mirroring the corresponding icon, where the icon to be mirrored is the target icon, for example: if 10 icons exist in the current display interface of the terminal, mirror image processing can be selectively carried out on 0-10 icons.
Further, after the target icon is determined, the terminal adds an identifier to the target icon, adds corresponding identifiers to the remaining non-target icons, and subsequently, the terminal can directly determine the target icon according to the identifier, and further subsequently perform mirror image processing on the target image, for example: and when the terminal finds that the identifier of the icon stored in the memory is 1, the icon is considered to need to be subjected to mirror image processing, and otherwise, when the terminal finds that the identifier of the icon stored in the memory is 0, the icon is considered to be not required to be subjected to mirror image processing.
In the second case: the display system finds a 0 in the storage 33 and the current system icon is not mirrored.
In step S30, the terminal performs mirroring on the target icon.
In this embodiment, after determining the target icon, the terminal performs mirror image processing on the target icon, and further, the mirror image processing may further include mirror image reflection processing, mirror image reflection rotation processing, and mirror image offset processing.
In the technical scheme provided by the embodiment, the terminal acquires the icon number of the icons of the current display interface; determining a target icon to be subjected to mirror image processing in the icons of the current display interface according to the number of the icons; and carrying out mirror image processing on the target icon. The icons are subjected to mirror image processing according to the number of the icons on the current display interface, so that the display effect of the icons is improved, and the intelligent degree of the terminal is improved.
Referring to fig. 3, fig. 3 is a second embodiment of the method for controlling icon display effect according to the present invention, and based on the first embodiment, step S20 includes:
in step S21, the terminal generates a random number according to the number of icons.
In this embodiment, the random number is the result of a special random trial. Random numbers are used in different techniques of statistics, such as when a representative sample is drawn from a statistical population, or during the assignment of experimental animals to different experimental groups, or when monte carlo simulation calculations are performed, etc. There are many different ways to generate random numbers. These methods are called random number generators. The most important property of a random number is that it generates a number that is subsequent to and unrelated to a number that was previous to the random number. The value range of the random number is an integer between 0 and the number of icons, and can be determined by a random number generation algorithm.
In step S22, the terminal determines a target icon according to the random number.
In this embodiment, after the random number is determined, the number of icons corresponding to the random number may be further determined to be subjected to mirroring.
In the technical scheme of the embodiment, the random number of icons to be selected is subjected to mirror image processing, and the execution efficiency of the embodiment can be improved by selecting the icons through the random number generation algorithm module, so that the control efficiency of the icon display effect is improved.
Referring to fig. 4, fig. 4 is a third embodiment of the method for controlling icon display effect according to the present invention, and step S30 includes:
in step S31, the terminal determines a user type, the user type including at least one of young, and old.
In this embodiment, because the display effects of the icons are various, the display parameters corresponding to the mirroring process are also various, and the terminal can select the display effect corresponding to the target icon according to the user type.
And step S32, the terminal performs mirror image processing on the target icon according to the mirror image processing parameters corresponding to the user type.
In this embodiment, when it is determined that the target icon is to be subjected to the mirror image processing, the user type corresponding to the terminal may be determined, and then the mirror image processing parameter corresponding to the user type is called to perform the mirror image processing on the target icon, for example: and when the user type corresponding to the terminal is the old, calling the mirror image processing parameters corresponding to the old to realize the display effect corresponding to the target icon.
Further, the corresponding relation between the user type and the mirror image processing parameter is predefined and stored; for the user type, the user may set the terminal in advance, for example: the user a sets the terminal to the old person mode by default.
In the technical scheme of the embodiment, different mirror processing can be performed according to the user type, so that the display effect corresponding to the target icon is matched with the user, and the intelligent degree of the terminal is improved while the user experience is improved.
Referring to fig. 5, fig. 5 is a fourth embodiment of the method for controlling icon display effect according to the present invention, and based on any one of the first to third embodiments, step 30 further includes:
and step S33, generating a mirror image icon corresponding to the target icon.
In step S34, the terminal displays a mirror icon.
In this embodiment, the mirror image icon is an icon carrying a display effect obtained after performing mirror image processing on the target icon, and the terminal may display the mirror image icon at a corresponding position on the display interface, for example: and displaying the mirror image icon at the position of the original icon.
Optionally, when it is determined that the icon mirror image corresponding to the target icon is successfully created, the terminal acquires the mirror image icon stored in the memory, and starts the reflection effect display module to transmit the picture of the width, height and mirror image of the canvas in the memory to the image display layout, and the terminal installs random numbers to arrange all the mirror image icons from small to large and display the icons on the current display interface of the terminal.
In the technical scheme of this embodiment, the mirror image icon is generated by adding the display effect to the target icon, and then the mirror image icon is displayed, so that the user experience can be improved, and the intelligent degree of the terminal is further improved.
Referring to fig. 6, fig. 6 is a fifth embodiment of the method for controlling icon display effect according to the present invention, and based on any one of the first to fourth embodiments, step S33 includes:
in step S331, the terminal generates a display icon corresponding to the target icon.
In this embodiment, the display icon is generated according to the target icon, specifically, a reduced or enlarged picture may be generated according to a scale of the target icon to obtain the display icon, and the scaling ratio may be preset.
In step S332, the terminal generates a reversed image corresponding to the target icon.
In this embodiment, the reflection picture is generated according to the target icon, and specifically, an inverted picture may be generated according to the ratio of the target icon to obtain the above reflection picture.
And S333, overlapping the display icon corresponding to the target icon and the inverted image corresponding to the target icon by the terminal to obtain a mirror image icon corresponding to the target icon.
In this embodiment, the mirror image icon can be obtained by superimposing the display icon and the inverted image, so as to achieve the inverted image effect of the target icon.
Optionally, the terminal obtains a display icon and an inverted image which are drawn in advance and stored, overlaps the display icon and the inverted image to obtain the mirror image icon, and stores the mirror image icon in the memory.
Further, when the target icon has an offset angle or a rotation angle, the inverted image will also change along with the display icon corresponding to the target icon, for example: when the target icon rotates or shifts, the inverted picture also follows the corresponding rotation and shift.
In the technical scheme of this embodiment, the display icon and the reflection picture are generated through the target icon, and then the display icon and the reflection picture are overlapped, so that the reflection effect of the target icon can be generated, and the user experience is improved.
Referring to fig. 7, fig. 7 is a sixth embodiment of the method for controlling icon display effect according to the present invention, and based on any one of the first to fifth embodiments, step S331 includes:
step S3311, the terminal generates a mirror image matrix corresponding to the target icon.
Step S3312, the terminal acquires the height parameter, the width parameter and the rotation angle corresponding to the target icon.
Step S3313, the terminal generates a bitmap corresponding to the target icon according to the height parameter, the width parameter and the rotation angle corresponding to the target icon.
Step S3314, the terminal generates a display icon of the target icon according to the bitmap corresponding to the target icon and the mirror image matrix corresponding to the target icon.
In this embodiment, a mirror image matrix corresponding to each target icon is obtained first, and then the display icon corresponding to each target icon is drawn according to the bitmap corresponding to the target icon and the obtained mirror image matrix.
In the technical scheme of the embodiment, the display icon corresponding to the target icon is generated through the mirror image matrix and the bitmap, and the bitmap occupies less space, so that the pressure of the terminal on controlling the icon display effect can be effectively reduced.
Referring to fig. 8, fig. 8 is a sixth embodiment of the method for controlling icon display effect according to the present invention, and based on any one of the first to sixth embodiments, step S3311 includes:
in step S33111, the terminal creates an object of the mirror matrix.
Step S33112, the terminal generates a mirror image matrix corresponding to the target icon according to the object of the mirror image matrix and the number of the target icons.
In this embodiment, an object of a mirror matrix is created first, and then each target icon is substituted into the object of the mirror matrix to obtain a mirror matrix corresponding to each target icon, specifically, the terminal creates an object of a mirror matrix, stores the object of a mirror matrix in the memory, and the display system obtains the number of target icons and multiplies the object of the mirror matrix in the memory by the number of target icons.
In the technical solution of this embodiment, creating an object of a mirror matrix may generate a mirror matrix of corresponding data according to the number of target icons, thereby improving the simplicity of implementation of this embodiment.
Referring to fig. 9, fig. 9 is a sixth embodiment of the method for controlling icon display effect according to the present invention, and based on any one of the first to seventh embodiments, step S332 includes:
step S3321, the terminal obtains the height parameter, the width parameter and the rotation angle corresponding to the target icon.
And step S3322, the terminal generates a mirror image bitmap corresponding to the target icon according to the height parameter, the width parameter and the rotation angle corresponding to the target icon.
Step S3323, the terminal generates a reflection picture corresponding to the target icon according to the mirror image bitmap corresponding to the target icon and preset display parameters, wherein the display parameters comprise a color parameter, a style parameter and a transparency parameter.
In this embodiment, the mirror image bitmap is generated according to a mirror image of the target icon, and specifically, after the mirror image icon is obtained, the mirror image bitmap is adjusted according to preset display parameters, so that a reflection effect of the target icon can be achieved.
Optionally, the terminal obtains the width and twice the height of the target icon stored in the memory, the display system creates a bitmap (bitmap) corresponding to the target icon, the width parameter, the height parameter and the preset display parameter of the target icon are stored in the memory, and the terminal creates a canvas by using the value in the memory as a parameter to obtain the inverted image.
In the technical scheme of this embodiment, the mirror image bitmap corresponding to the target icon is adjusted through the preset display parameters, so that the reflection effect corresponding to the target icon is more vivid, the style of the reflection effect can be customized, and the flexibility of generating the reflection effect is improved.
To achieve the above object, the present invention provides a control device for icon display effect, comprising: the device comprises an acquisition unit, a determination unit and a processing unit, wherein the acquisition unit is used for acquiring the icon number of the icons of the current display interface; the determining unit is used for determining a target icon to be subjected to mirror image processing in the icons of the current display interface according to the number of the icons; the processing unit is used for carrying out mirror image processing on the target icon.
In order to achieve the above object, the present invention provides a terminal, including: the control method comprises the following steps of storing the icon display effect, storing the icon display effect in the storage, and executing the icon display effect by the processor.
To achieve the above object, the present invention provides a computer-readable storage medium, characterized in that a computer program is stored on the computer-readable storage medium, and the computer program, when executed by a processor, implements the steps of the control method of the icon display effect as above.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It should be noted that in the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The usage of the words first, second and third, etcetera do not indicate any ordering. These words may be interpreted as names.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the invention.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.