A kind of self-defining image target system and method
Technical field
The present invention relates to the communications field more particularly to a kind of self-defining image target system and methods.
Background technology
Software on current mobile phone or tablet computer is roughly divided into two kinds, and one is the included softwares of mobile phone, a kind of
It is the software that user voluntarily downloads, but the software that either software of mobile phone or user voluntarily download, it cannot be certainly
The icon of row change software, this has larger limitation for smart mobile phone, the electric appliance commonly used epoch so that
User can not have better visual experience.
Invention content
For in the prior art, user cannot voluntarily change the pattern of icon this defect, the present invention devise it is a kind of from
The system and method for defining icon, can bring better visual experience to user.
The present invention adopts the following technical scheme that:
A kind of self-defining image target system is applied to replace the display icon of function module on electronic equipment, the system
Including:
Database is set in the electronic equipment, is had and is stored with graph data;
Display module is connect with the database;
Control module is connect with the database and the display module respectively, described to transfer from the database
Graph data is simultaneously shown by the display module;
Processing module is selected, connect with the control module, is selected with the graph data shown to the display module
After selecting processing, icon data is generated;And
Matching module is connect with the selection processing module;
Wherein, the matching module matches the icon data with current selected function module, by the figure
Mark data are shown as the new display icon of the current selected function module.
Preferably, the system also includes:
Module is cut, is connect respectively with the selection processing module, the matching module, for cutting the icon data
And the icon data of cutting is sent to the matching module.
Preferably, the database includes:
The value of Int type data, data is 0 or 1;
The type of binary data, data is picture, is the picture for the icon being pre-stored in the system.
Preferably, further include in the database:
The type of bitmap data, data is picture, for the icon data after cutting.
Preferably, it is that system carries icon that the value of the Int types data, which is 0 expression icon, and the value of the Int types data is
1 indicates that icon is Custom Icons.
Preferably, the selection processing module includes:
Judging unit is connect with the database, selects whether the icon data of processing is self-defined for judging
Icon.
A kind of self-defining image target method is applied to replace the display icon of function module on electronic equipment, the method
Including:
Step S1:It transfers graph data and is shown;
Step S2:After carrying out selection processing to the graph data of display, icon data is generated;
Step S3:The icon data is matched with current icon, using the icon data as described current
New display icon is shown.
Preferably, the step S3 further includes:
When the display icon of the function module is system icon, step S32 is executed;When the function module
When showing that icon is nonsystematic icon, step S31 is executed;
Step S31:The display icon of the function module is reduced to system icon, the system icon after reduction is carried out
It cuts and is changed to new Custom Icons;Or, the display icon is directly changed to new Custom Icons;
Step S32:The display icon of the function module is reverted into system icon, by the Int types of the icon data
Data value is set as 0.
Preferably, the method further includes:
Step S4:The icon data of the cutting is stored as bitmap type data;
Step S5:The bitmap types data are converted into binary data, and are stored;
Step S6:The value of the binary data is set as 1.
The beneficial effects of the invention are as follows:
The present invention can make user make the pattern of change icon by oneself, and user can voluntarily select the pattern of icon, with
When family uses mobile phone or tablet computer, user can select the icon oneself liked so that user has better vision
Experience, meanwhile, the icon of sets itself can also facilitate user quickly to search out the position of icon.
Description of the drawings
Fig. 1 is a kind of structural schematic diagram of the embodiment one of self-defining image target system of the present invention;
Fig. 2 is a kind of schematic diagram of the embodiment two of self-defining image target method of the present invention.
Specific implementation mode
It should be noted that in the absence of conflict, following technical proposals can be combined with each other between technical characteristic.
The specific implementation mode of the present invention is further described below in conjunction with the accompanying drawings:
Fig. 1 is a kind of structural schematic diagram of the embodiment one of self-defining image target system of the present invention, as shown in Figure 1:This reality
It is a kind of self-defining image target system to apply example, and this system includes:Database can store the data of icon in database,
Middle data may include three kinds:The first is Int type data, this data is that the icon of storage is classified, and can be divided into included
Icon and customized icon, wherein the inside i.e. icon image of storage when included icon is the manufacture of the equipment such as mobile phone, and
Customized icon can be the image etc. taken in mobile phone, and the data of Int types carry out above-mentioned image data
The assignment of materialization, such as the instead values of included icon are 0, self-defining image target value is 1.In addition, further including binary number
According to binary data is the data that icon is stored with graphic form, and Type division is similar with Int type data, carries icon
Instead-icon values be 0, self-defining image target instead-icon values be 1, it is such in addition there are a kind of type of data
Type is increased data type, can select to be applicable in the case of practical, and the data of this type are bitmap type data, should
Data are all the data of icon to be stored in the form of picture, but bitmap storages is to cut as binary type data
Picture after Custom Icons, and being associated between bitmap types data and binary data is, because bitmap type data are cut out
Picture after cutting is a kind of picture that can repeat to use, thus the data in bitmap can to binary data into
Row update refers to becoming binary data, and when there is no bitmap data, user can only interior storage in handset device
Icon selected, and the size dimension etc. of picture cannot be modified, here it is bitmap in icon Self-definition process
In application.
Further include control module in system, control module is used to convey the instruction of the change icon of user, the screen of mobile phone
On can set the instructions of some windows either some screen slidings so that user manually chooses the icon of the software to be changed, this
Sending out for a instruction can be that the form of voice is sent out, and can also be that user selectes in the interface of setting, can also be
User directly controls icon, as long as the instruction of some icon of the change of user is enabled to be conveyed to the shape in system
Formula.
Further include display module in system, display module is connect with database, reaches aobvious under the control instruction of control module
Show module, display module receives to enter in database after the instruction of icon to be changed and recalls the icon of storage in the database
Come, what is recalled can be the icon of whole storages, can also be the icon of a part, meanwhile, the icon recalled also may be used
It is presented on user at the moment with what classification was drawn, user is allowed therefrom to select.Further include selecting processing module in this external system, at selection
Reason module is connect with database and display module, is selected according to the icon shown, user can select therein one
A icon can also choose several icons, several icons that can be stitched together as the image of an icon.Selection processing mould
Further include a judging unit in block, for judging that the icon that user to be changed is the included icon of system or has made by oneself
The icon that justice is crossed then continues subsequent operation, if the icon to be changed is self-defined if it is the icon that system carries
Icon, then need to carry out subsequent operation again after being reduced to carry icon automatically by the icon.Such as when the icon is certainly
When defining icon, user needs to click the recovery button that the icon upper right corner is shown, system will be in database after being connected to instruction
Int type data correspond to the instead values of the icon and be revised as 0, and refresh the original icon of current icon, be allowed to go back original system
Included icon, is modified according still further to the icon that user selectes later, it is of course also possible to without restoring, is directly selected.
Further include matching module, matching module is connect with selection processing module, matching module respectively, for cutting figure in the present embodiment
The icon data of cutting is simultaneously sent to matching module by mark data, and the function of matching module is that the icon data of processing will be selected
Progress is matched with original APP icons, is replaced again after matching, which is exactly that new icon replaces old icon in fact
Process.
It is the cutting to selecting icon later, the icon chosen is carried out to the cutting of size or the change of size, to figure
Mark zooms in or out, and it can be zooming in or out in proportion that this, which is zoomed in or out, can also be the amplification or contracting of part
It is small, after the icon of selected size is determined, you can carry out the change to icon, while the icon after cutting needs to be stored in data
In library, storing path is divided into three steps, saves as bitmap data first, and the data of bitmap types are converted to binary system later
Data are stored in instead-icon, and the setting of the value of Int type data is carried out to the icon of the cutting, and value 1 is finally given again
Instead-icon assignment bitmap, and refresh bitmap types data and binary data.
Embodiment two
Fig. 2 is a kind of schematic diagram of the embodiment two of self-defining image target method of the present invention, as shown in Fig. 2, this method
Step includes step S1:It transfers graph data and is shown;Step S2:After selection processing being carried out to the graph data of display,
Generate icon data;Step S3:Icon data is matched with current icon, using icon data as current new display
Icon is shown.
Firstly, it is necessary to enter the state for replacing icon, need to increase the either sliding up and down of an entrance in a menu
The modes such as two fingers send a control instruction in this way, need the control instruction for changing icon to be sent to user
In system, the icon if necessary to paralysis has been customized, then the upper right corner of the icon shows a recovery button, user
The value of instead can be set to 0 by clicking this button, i.e., restore to wait for the state that system is included by icon, refresh current figure
It is original icon that mark, which uses,.User selects an icon as Custom Icons from many icons in database later.
Secondly, the change that user can store the icon chosen is selected in the module with clipping function
After picture range size, clicks acknowledgement key and data are stored in database, this icon is customized icon.
The process for finally relating to the Refresh Data of data store internal, after user's crop icon, in database
Bitmap type data are cut icon and refresh, and bitmap is mainly used for the bitmap file for the icon that storage is cut, and later will
Bitmap type data are converted to binary data and are stored, and are assigned a value of 1, such as 1 to the instead values of the binary data
Icon is carried for system for Custom Icons, 0, is finally refreshed bitmap types data with binary data, at this time
Bitmap types data can no longer retain the data of the icon of cutting, because the data storage is converted to binary number
According to so bitmap data are considered as being converted to a kind of intermediate file of the icon of storage for crop icon, finally cutting
Icon can still become the basis cut next time, can carry out cutting again.
In conclusion the present invention can make user make the pattern of change icon by oneself, user can voluntarily select icon
Pattern, when user uses mobile phone or tablet computer, user can select the icon oneself liked so that user has more
Good visual experience, meanwhile, the icon of sets itself can also facilitate user quickly to search out the position of icon.
By description and accompanying drawings, the exemplary embodiments of the specific structure of specific implementation mode are given, based on present invention essence
God can also make other conversions.Although foregoing invention proposes existing preferred embodiment, however, these contents are not intended as
Limitation.
For a person skilled in the art, after reading above description, various changes and modifications undoubtedly will be evident.
Therefore, appended claims should regard the whole variations and modifications for covering the true intention and range of the present invention as.It is weighing
The range and content of any and all equivalences within the scope of sharp claim, are all considered as still belonging to the intent and scope of the invention.