CN104615331A - Corner mark processing method - Google Patents

Corner mark processing method Download PDF

Info

Publication number
CN104615331A
CN104615331A CN201510008271.6A CN201510008271A CN104615331A CN 104615331 A CN104615331 A CN 104615331A CN 201510008271 A CN201510008271 A CN 201510008271A CN 104615331 A CN104615331 A CN 104615331A
Authority
CN
China
Prior art keywords
icon
pixel value
pixel
footmark
icon image
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
CN201510008271.6A
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.)
Shenzhen Jinli Communication Equipment Co Ltd
Original Assignee
Shenzhen Jinli Communication Equipment 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 Shenzhen Jinli Communication Equipment Co Ltd filed Critical Shenzhen Jinli Communication Equipment Co Ltd
Priority to CN201510008271.6A priority Critical patent/CN104615331A/en
Publication of CN104615331A publication Critical patent/CN104615331A/en
Pending legal-status Critical Current

Links

Abstract

The embodiment of the invention discloses a corner mark processing method. The method comprises the following steps that when triggering information for an application icon display corner mark of a current application program of a terminal is detected, an icon image corresponding to an application icon is obtained; the icon image is scanned, and the display area of the icon image is determined after scanning processing; the corner mark is displayed at the corresponding preset display position of the application icon. The corner mark can be displayed according to the actual icon image display area of the application icon, the corner mark is reasonably displayed, and the clear directivity of the corner mark is guaranteed.

Description

A kind of footmark disposal route
Technical field
The present invention relates to user interface techniques field, particularly relate to a kind of footmark disposal route.
Background technology
Along with electronic technology is constantly developed and perfect, the terminal such as mobile phone and panel computer has become a part indispensable in people's life, and people not only can utilize these terminals to carry out communication, can also carry out file transfer, make a video recording, play games.
Nowadays along with the development of technology, user can carry out personalized setting to terminal, such as: arrange the theme of terminal demonstration, arrange etc. the prompting audio frequency that terminal exports.When personalized theme is arranged, because personalized theme carries the viewing area of the application icon to application program in terminal usually, the displaying scheme (comprising the pattern etc. of viewing area, display size, indicating template) of original application icon namely can be changed to embody the characteristic of personalized theme.Then to application icon display footmark in (such as: when terminal receives a note, corresponding meeting shows the footmark of " 1 " on the application icon of short message application program), because the position of footmark is relatively fixing, therefore the change of the application icon that personalized theme brings cannot be adapted to, easily occur that application icon becomes large, footmark is presented on application icon, hinder the situation of the identification of application icon, or occur that application icon diminishes, footmark is presented at the position away from application icon, affect the situation of the pointing clearly to property of footmark, and then the use that have impact on terminal.
Summary of the invention
The embodiment of the present invention provides a kind of footmark disposal route, can show according to the icon image viewing area of practical application icon to footmark, realizes diagonal angle target and rationalizes display, ensure the pointing clearly to property of footmark.
Embodiments provide a kind of footmark disposal route, can comprise:
When the trigger message of application icon display footmark of current application program in terminal being detected, obtain the icon image that described application icon is corresponding;
Scan process is carried out to described icon image, and after scan process, determines the viewing area of described icon image;
According to described viewing area, described footmark is presented on default display position corresponding to described application icon.
In embodiments of the present invention, when the trigger message of application icon display footmark of current application program in terminal being detected, by obtaining icon image corresponding to application icon, and after scan process is carried out to icon image, obtain the viewing area of the reality of icon image, final according to viewing area, footmark is shown.By the icon image that scanning application icon is corresponding, accurately obtain the viewing area of icon image, achieve diagonal angle target and rationalize display, ensure that the pointing clearly to property of footmark, and then ensure that the use to terminal.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme of the embodiment of the present invention, below the accompanying drawing used required in describing embodiment is briefly described, apparently, accompanying drawing in the following describes is some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the schematic flow sheet of a kind of footmark disposal route that the embodiment of the present invention provides;
Fig. 2 is the schematic flow sheet of the another kind of footmark disposal route that the embodiment of the present invention provides;
Fig. 3 is the example schematic of the terminal pattern that the embodiment of the present invention provides;
Fig. 4 is the example schematic of the icon image that provides of the embodiment of the present invention and viewing area;
Fig. 5 is the example schematic of the footmark display that the embodiment of the present invention provides;
Fig. 6 is the structural representation of a kind of terminal that the embodiment of the present invention provides;
Fig. 7 is the structural representation of the first area determining unit that the embodiment of the present invention provides;
Fig. 8 is the structural representation of the picture sweep unit that the embodiment of the present invention provides;
Fig. 9 is the structural representation of the first footmark display unit that the embodiment of the present invention provides;
Figure 10 is the structural representation of the another kind of terminal that the embodiment of the present invention provides.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
The footmark disposal route that the embodiment of the present invention provides can be applied to the scene of the footmark display of the application icon that application programs is corresponding in terminal, such as: when the trigger message of application icon display footmark of current application program in terminal being detected, described terminal obtains icon image corresponding to described application icon, described terminal carries out scan process to described icon image, and after scan process, determine the viewing area of described icon image, described terminal is according to described viewing area, described footmark is presented at the scene etc. on default display position corresponding to described application icon.By the icon image that scanning application icon is corresponding, the viewing area of accurate acquisition icon image, achieve diagonal angle target and rationalize display, avoid the size due to personalized theme change application icon, cause footmark cannot be presented at the correct position of application icon, cause application icon None-identified or affect the situation of directive property of footmark, ensure that the pointing clearly to property of footmark, and then ensure that the use to terminal.
The terminal that the embodiment of the present invention relates to can comprise: the terminal devices such as computing machine, panel computer, smart mobile phone, notebook computer, palm PC and mobile internet device (MID).
Below in conjunction with accompanying drawing 1 and accompanying drawing 2, the footmark disposal route that the embodiment of the present invention provides is described in detail.
Refer to Fig. 1, for embodiments providing a kind of schematic flow sheet of footmark disposal route.As shown in Figure 1, the described method of the embodiment of the present invention can comprise the following steps S101-step S103.
S101, when the trigger message of application icon display footmark of current application program in terminal being detected, obtains the icon image that described application icon is corresponding;
Concrete, when terminal detects the trigger message of application icon display footmark of current application program in described terminal, such as: when receiving a short message, need to show footmark on the application icon of information, or when there is the telephone number do not connect, need to show footmark etc. on the application icon of message registration, described terminal can obtain icon image corresponding to described application icon.
Be understandable that, user can by arranging to described terminal the theme changing described terminal, comprise the replacement etc. of display format of the replacement of the background picture to terminal demonstration, the replacement of text formatting and application icon, because the display format of the application icon under different themes there are differences, therefore, when described terminal detects the trigger message of application icon display footmark of current application program in described terminal, described terminal can obtain based on icon image corresponding to described application icon under present terminal theme form.
S102, carries out scan process to described icon image, and after scan process, determine the viewing area of described icon image;
Concrete, after obtaining icon image corresponding to described application icon, described terminal can carry out scan process to described icon image, and after scan process, determine the viewing area of described icon image, further, described terminal can adopt pre-set image processing mode to scan described icon image, and obtains the actual icons region in described icon image after scanning, and determines the viewing area of described icon image according to described actual icons region.Concrete can carry out obtaining the process analyzed for the pixel value corresponding to the coordinates of icon point of described icon image to the process that described icon image scans.
It should be noted that, described viewing area is the actual icons region of described application icon, comprises the shape in described actual icons region and the size in described actual icons region.Please also refer to the actual icons region that the viewing area (i.e. dash area) in icon image shown in Fig. 4, Fig. 4 is described application icon.
S103, according to described viewing area, is presented on default display position corresponding to described application icon by described footmark;
Concrete, described terminal is according to the shape in described actual icons region and size, described footmark is presented on default display position corresponding to described application icon, further, can show with different shapes and/or size for the application icon under same subject, namely under same subject, different application icons can with different shapes and identical size show, or can with identical shape and different sizes show, or can also with different shapes and different sizes show.Therefore different footmarks and different default display positions can also be set for different application icons, described terminal can obtain footmark corresponding to described viewing area and default display position, and is shown on the default display position that described application icon is corresponding by described footmark.
Further, for same subject, for different application icons, unified viewing area can be set, also different viewing areas can be set, different footmarks and different default display positions can also be set for different viewing areas simultaneously, described terminal can obtain footmark corresponding to described viewing area and default display position, and described default display position can be the boundary position of described viewing area, and the size of footmark is as the criterion not block described application icon.Described footmark shows by described terminal on the default display position that described application icon is corresponding.Please also refer to Fig. 5, for different viewing areas, can arrange the footmark of its correspondence and default display position, described terminal can show described footmark according to default display position on described application icon.The default display position of footmark shown in Fig. 5 is only citing, and its default display position can include but not limited to upper right corner boundary position, lower right corner boundary position, upper left corner boundary position, lower left corner boundary position etc.
In embodiments of the present invention, when the trigger message of application icon display footmark of current application program in terminal being detected, by obtaining icon image corresponding to application icon, and after scan process is carried out to icon image, obtain the viewing area of the reality of icon image, final according to viewing area, footmark is shown.By the icon image that scanning application icon is corresponding, the viewing area of accurate acquisition icon image, achieve diagonal angle target and rationalize display, avoid the size due to personalized theme change application icon, cause footmark cannot be presented at the correct position of application icon, cause application icon None-identified or affect the situation of directive property of footmark, ensure that the pointing clearly to property of footmark, and then ensure that the use to terminal.
Refer to Fig. 2, for embodiments providing the schematic flow sheet of another kind of footmark disposal route.As shown in Figure 2, the described method of the embodiment of the present invention can comprise the following steps S201-step S206.
S201, when the trigger message of application icon display footmark of current application program in terminal being detected, obtains the icon image that described application icon is corresponding;
Concrete, when terminal detects the trigger message of application icon display footmark of current application program in described terminal, such as: when receiving a short message, need to show footmark on the application icon of information, or when there is the telephone number do not connect, need to show footmark etc. on the application icon of message registration, described terminal can obtain icon image corresponding to described application icon.
Be understandable that, user can by arranging to described terminal the theme changing described terminal, comprise the replacement etc. of display format of the replacement of the background picture to terminal demonstration, the replacement of text formatting and application icon, because the display format of the application icon under different themes there are differences, therefore, when described terminal detects the trigger message of application icon display footmark of current application program in described terminal, described terminal can obtain based on icon image corresponding to described application icon under present terminal theme form.
S202, adopts pre-set image processing mode to scan described icon image;
Concrete, described terminal can obtain according to the terminal pattern of described terminal the pixel value that at least one icon pixel of described icon image, each icon pixel is corresponding, described terminal pattern can comprise perpendicular screen pattern and horizontal screen pattern, described pixel value can comprise at least one in transverse axis pixel value and longitudinal axis pixel value, please also refer to Fig. 3, for different terminal patterns, the distribution of icon pixel on planimetric coordinates axle can be different, namely corresponding horizontal ordinate is different with ordinate, but the transverse axis pixel value that each icon pixel is corresponding is all identical with longitudinal axis pixel value, wherein, transverse axis pixel value represents the pixel value that the transverse axis coordinate points of certain icon pixel is corresponding, longitudinal axis pixel value represents the pixel value that the ordinate of orthogonal axes point of certain icon pixel is corresponding.Certainly, planimetric coordinates axle can be bound with described terminal pattern, and namely planimetric coordinates axle and described terminal pattern are changed in the lump, ensures that the transverse axis coordinate points of described each icon pixel and ordinate of orthogonal axes point all can not change.Concrete setting up procedure can be configured when dispatching from the factory by described terminal.
The pixel value that often kind of Color pair is answered is pre-set in described terminal, described terminal can obtain nontransparent region in described icon image by the pixel value corresponding according to described each icon pixel, be understandable that, transparent region and nontransparent region can be comprised in described icon image, the actual icons region of icon image described in the domain representation of described non-transparent area, described transparent region is the transparent background surrounding described nontransparent region, certainly, because the size of icon image set under same subject is identical, if therefore described nontransparent region is enough large, then described icon image can not comprise described transparent region.Described terminal can at least one in the pixel value corresponding according to the transverse axis coordinate points that described each icon pixel is corresponding and pixel value corresponding to ordinate of orthogonal axes point, obtains the nontransparent region in described icon image.
When described pixel value is pixel value corresponding to transverse axis coordinate points, described terminal can obtain and reject pixel value that at least one icon pixel described, transverse axis coordinate points the is corresponding icon pixel identical with presetted pixel value, and the region that remaining icon pixel at least one icon pixel described generates is defined as nontransparent region.
When described pixel value is pixel value corresponding to ordinate of orthogonal axes point, described terminal can obtain and reject pixel value that at least one icon pixel described, ordinate of orthogonal axes point the is corresponding icon pixel identical with presetted pixel value, and the region that remaining icon pixel at least one icon pixel described generates is defined as nontransparent region.
Certainly, in order to determine nontransparent region more accurately, when described pixel value is pixel value corresponding to pixel value corresponding to transverse axis coordinate points and ordinate of orthogonal axes point, described terminal obtains and rejects at least one icon pixel described, pixel value corresponding to transverse axis coordinate points and icon pixel that pixel value that ordinate of orthogonal axes point corresponding with second presetted pixel value identical identical with the first presetted pixel value, and the region that remaining icon pixel at least one icon pixel described generates is defined as nontransparent region.
Wherein, described presetted pixel value represents the pixel value that the transparent Color pair pre-set is answered, described first presetted pixel value represent pre-set be transparent color for transverse axis coordinate points place time corresponding pixel value, described second presetted pixel value represent pre-set be transparent color for ordinate of orthogonal axes point place time corresponding pixel value, described first presetted pixel value can be identical pixel value with described second presetted pixel value, and concrete value can according to people for setting.
Obtained nontransparent region is defined as the actual icons region in described icon image by described terminal.
S203, obtains the actual icons region in described icon image;
Concrete, described terminal obtains the actual icons region in determined described icon image.
S204, determines the viewing area of described icon image according to described actual icons region;
Concrete, described terminal can determine the viewing area of described icon image according to described actual icons region, described viewing area can comprise the shape in described actual icons region and the size in described actual icons region.
Please also refer to Fig. 4, icon image shown in Fig. 4 comprises transparent region and nontransparent region, wherein dash area represents the nontransparent region of described icon image, described terminal is by obtaining and rejecting the transparent region in described icon image, obtain the nontransparent region in described icon image, described terminal determines that described nontransparent region is the actual icons region of described icon image, and determines its shape and size size according to described actual icons region.The viewing area of kind of the icon image of four shown in Fig. 4 is only citing, and its shape and size are specifically determined by set theme.
S205, obtains footmark corresponding to described viewing area and default display position;
Concrete, for same subject, for different application icons, unified viewing area can be set, also different viewing areas can be set, different footmarks and different default display positions can also be set for different viewing areas simultaneously, described terminal can obtain footmark corresponding to described viewing area and default display position, and described default display position can be the boundary position of described viewing area, and the size of footmark is as the criterion not block described application icon.
S206, shows described footmark on the default display position that described application icon is corresponding;
Concrete, described footmark shows by described terminal on the default display position that described application icon is corresponding.Please also refer to Fig. 5, for different viewing areas, can arrange the footmark of its correspondence and default display position, described terminal can show described footmark according to default display position on described application icon.The default display position of footmark shown in Fig. 5 is only citing, and its default display position can include but not limited to upper right corner boundary position, lower right corner boundary position, upper left corner boundary position, lower left corner boundary position etc.
In embodiments of the present invention, when the trigger message of application icon display footmark of current application program in terminal being detected, by obtaining icon image corresponding to application icon, and after scan process is carried out to icon image, obtain the viewing area of the reality of icon image, final according to viewing area, footmark is shown.By the icon image that scanning application icon is corresponding, the viewing area of accurate acquisition icon image, achieve diagonal angle target and rationalize display, avoid the size due to personalized theme change application icon, cause footmark cannot be presented at the correct position of application icon, cause application icon None-identified or affect the situation of directive property of footmark, ensure that the pointing clearly to property of footmark, and then ensure that the use to terminal; By the pixel value of scanning icon pixel, improve the accuracy of the viewing area obtaining icon image; By arranging for the footmark of different viewing area and default display position, achieving the personal settings of terminal, improving Consumer's Experience.
Below in conjunction with accompanying drawing 6-accompanying drawing 9, the terminal that the embodiment of the present invention provides is described in detail.It should be noted that, the terminal shown in accompanying drawing 6-accompanying drawing 9, for performing Fig. 1 of the present invention and method embodiment illustrated in fig. 2, for convenience of explanation, illustrate only the part relevant to the embodiment of the present invention, concrete ins and outs do not disclose, and please refer to the embodiment shown in Fig. 1 and Fig. 2 of the present invention.
Refer to Fig. 6, for embodiments providing a kind of structural representation of terminal.As shown in Figure 6, the described terminal 1 of the embodiment of the present invention can comprise: image acquisition unit 11, first area determining unit 12 and the first footmark display unit 13.
Image acquisition unit 11, for when the trigger message of application icon display footmark of current application program in terminal 1 being detected, obtains the icon image that described application icon is corresponding;
In specific implementation, when terminal 1 detects the trigger message of application icon display footmark of current application program in described terminal 1, such as: when receiving a short message, need to show footmark on the application icon of information, or when there is the telephone number do not connect, need to show footmark etc. on the application icon of message registration, described image acquisition unit 11 can obtain icon image corresponding to described application icon.
Be understandable that, user can by arranging to described terminal 1 theme changing described terminal 1, comprise terminal 1 is shown the replacement of background picture, the replacement of text formatting and application icon the replacement etc. of display format, because the display format of the application icon under different themes there are differences, therefore, when described terminal 1 detects the trigger message of application icon display footmark of current application program in described terminal 1, described image acquisition unit 11 can obtain based on icon image corresponding to described application icon under present terminal 1 theme form.
First area determining unit 12, for carrying out scan process to described icon image, and determines the viewing area of described icon image after scan process;
In specific implementation, after obtaining icon image corresponding to described application icon, described first area determining unit 12 can carry out scan process to described icon image, and after scan process, determine the viewing area of described icon image, further, described first area determining unit 12 can adopt pre-set image processing mode to scan described icon image, and the actual icons region obtained after scanning in described icon image, and determine the viewing area of described icon image according to described actual icons region.Concrete can carry out obtaining the process analyzed for the pixel value corresponding to the coordinates of icon point of described icon image to the process that described icon image scans.
It should be noted that, described viewing area is the actual icons region of described application icon, comprises the shape in described actual icons region and the size in described actual icons region.Please also refer to the actual icons region that the viewing area (i.e. dash area) in icon image shown in Fig. 4, Fig. 4 is described application icon.
Concrete, please also refer to Fig. 7, for embodiments providing the structural representation of first area determining unit.As shown in Figure 7, described first area determining unit 12 can comprise:
Picture sweep unit 121, scans described icon image for adopting pre-set image processing mode;
In specific implementation, described picture sweep unit 121 can obtain according to the terminal pattern of described terminal 1 pixel value that at least one icon pixel of described icon image, each icon pixel is corresponding, described terminal pattern can comprise perpendicular screen pattern and horizontal screen pattern, described pixel value can comprise at least one in transverse axis pixel value and longitudinal axis pixel value, please also refer to Fig. 3, for different terminal patterns, the distribution of icon pixel on planimetric coordinates axle can be different, namely corresponding horizontal ordinate is different with ordinate, but the transverse axis pixel value that each icon pixel is corresponding is all identical with longitudinal axis pixel value, wherein, transverse axis pixel value represents the pixel value that the transverse axis coordinate points of certain icon pixel is corresponding, longitudinal axis pixel value represents the pixel value that the ordinate of orthogonal axes point of certain icon pixel is corresponding.Certainly, planimetric coordinates axle can be bound with described terminal pattern, and namely planimetric coordinates axle and described terminal pattern are changed in the lump, ensures that the transverse axis coordinate points of described each icon pixel and ordinate of orthogonal axes point all can not change.Concrete setting up procedure can be configured when dispatching from the factory by described terminal 1.
The pixel value that often kind of Color pair is answered is pre-set in described terminal 1, described picture sweep unit 121 can obtain nontransparent region in described icon image by the pixel value corresponding according to described each icon pixel, be understandable that, transparent region and nontransparent region can be comprised in described icon image, the actual icons region of icon image described in the domain representation of described non-transparent area, described transparent region is the transparent background surrounding described nontransparent region, certainly, because the size of icon image set under same subject is identical, if therefore described nontransparent region is enough large, then described icon image can not comprise described transparent region.Described picture sweep unit 121 can at least one in the pixel value corresponding according to the transverse axis coordinate points that described each icon pixel is corresponding and pixel value corresponding to ordinate of orthogonal axes point, obtains the nontransparent region in described icon image.
When described pixel value is pixel value corresponding to transverse axis coordinate points, described picture sweep unit 121 can obtain and reject pixel value that at least one icon pixel described, transverse axis coordinate points the is corresponding icon pixel identical with presetted pixel value, and the region that remaining icon pixel at least one icon pixel described generates is defined as nontransparent region.
When described pixel value is pixel value corresponding to ordinate of orthogonal axes point, described picture sweep unit 121 can obtain and reject pixel value that at least one icon pixel described, ordinate of orthogonal axes point the is corresponding icon pixel identical with presetted pixel value, and the region that remaining icon pixel at least one icon pixel described generates is defined as nontransparent region.
Certainly, in order to determine nontransparent region more accurately, when described pixel value is pixel value corresponding to pixel value corresponding to transverse axis coordinate points and ordinate of orthogonal axes point, described picture sweep unit 121 obtains and rejects at least one icon pixel described, pixel value corresponding to transverse axis coordinate points and icon pixel that pixel value that ordinate of orthogonal axes point corresponding with second presetted pixel value identical identical with the first presetted pixel value, and the region that remaining icon pixel at least one icon pixel described generates is defined as nontransparent region.
Wherein, described presetted pixel value represents the pixel value that the transparent Color pair pre-set is answered, described first presetted pixel value represent pre-set be transparent color for transverse axis coordinate points place time corresponding pixel value, described second presetted pixel value represent pre-set be transparent color for ordinate of orthogonal axes point place time corresponding pixel value, described first presetted pixel value can be identical pixel value with described second presetted pixel value, and concrete value can according to people for setting.
Obtained nontransparent region is defined as the actual icons region in described icon image by described picture sweep unit 121.
Concrete, please also refer to Fig. 8, for embodiments providing the structural representation of picture sweep unit.Described picture sweep unit 121 can comprise:
Pixel value acquiring unit 1211, for obtain described icon image according to the terminal pattern of described terminal 1 at least one icon pixel in pixel value corresponding to each icon pixel;
In specific implementation, described pixel value acquiring unit 1211 can obtain according to the terminal pattern of described terminal 1 pixel value that at least one icon pixel of described icon image, each icon pixel is corresponding, described terminal pattern can comprise perpendicular screen pattern and horizontal screen pattern, described pixel value can comprise at least one in transverse axis pixel value and longitudinal axis pixel value, please also refer to Fig. 3, for different terminal patterns, the distribution of icon pixel on planimetric coordinates axle can be different, namely corresponding horizontal ordinate is different with ordinate, but the transverse axis pixel value that each icon pixel is corresponding is all identical with longitudinal axis pixel value, wherein, transverse axis pixel value represents the pixel value that the transverse axis coordinate points of certain icon pixel is corresponding, longitudinal axis pixel value represents the pixel value that the ordinate of orthogonal axes point of certain icon pixel is corresponding.Certainly, planimetric coordinates axle can be bound with described terminal pattern, and namely planimetric coordinates axle and described terminal pattern are changed in the lump, ensures that the transverse axis coordinate points of described each icon pixel and ordinate of orthogonal axes point all can not change.Concrete setting up procedure can be configured when dispatching from the factory by described terminal 1.
Nontransparent area acquisition unit 1212, obtains the nontransparent region in described icon image for the pixel value corresponding according to described each icon pixel;
In specific implementation, the pixel value that often kind of Color pair is answered is pre-set in described terminal 1, described nontransparent area acquisition unit 1212 can obtain nontransparent region in described icon image by the pixel value corresponding according to described each icon pixel, be understandable that, transparent region and nontransparent region can be comprised in described icon image, the actual icons region of icon image described in the domain representation of described non-transparent area, described transparent region is the transparent background surrounding described nontransparent region, certainly, because the size of icon image set under same subject is identical, if therefore described nontransparent region is enough large, then described icon image can not comprise described transparent region.Described nontransparent area acquisition unit 1212 can at least one in the pixel value corresponding according to the transverse axis coordinate points that described each icon pixel is corresponding and pixel value corresponding to ordinate of orthogonal axes point, obtains the nontransparent region in described icon image.
When described pixel value is pixel value corresponding to transverse axis coordinate points, described nontransparent area acquisition unit 1212 can obtain and reject pixel value that at least one icon pixel described, transverse axis coordinate points the is corresponding icon pixel identical with presetted pixel value, and the region that remaining icon pixel at least one icon pixel described generates is defined as nontransparent region.
When described pixel value is pixel value corresponding to ordinate of orthogonal axes point, described nontransparent area acquisition unit 1212 can obtain and reject pixel value that at least one icon pixel described, ordinate of orthogonal axes point the is corresponding icon pixel identical with presetted pixel value, and the region that remaining icon pixel at least one icon pixel described generates is defined as nontransparent region.
Certainly, in order to determine nontransparent region more accurately, when described pixel value is pixel value corresponding to pixel value corresponding to transverse axis coordinate points and ordinate of orthogonal axes point, described nontransparent area acquisition unit 1212 obtains and rejects at least one icon pixel described, pixel value corresponding to transverse axis coordinate points and icon pixel that pixel value that ordinate of orthogonal axes point corresponding with second presetted pixel value identical identical with the first presetted pixel value, and the region that remaining icon pixel at least one icon pixel described generates is defined as nontransparent region.
Wherein, described presetted pixel value represents the pixel value that the transparent Color pair pre-set is answered, described first presetted pixel value represent pre-set be transparent color for transverse axis coordinate points place time corresponding pixel value, described second presetted pixel value represent pre-set be transparent color for ordinate of orthogonal axes point place time corresponding pixel value, described first presetted pixel value can be identical pixel value with described second presetted pixel value, and concrete value can according to people for setting.
Icon area determining unit 1213, for being defined as the actual icons region in described icon image by described nontransparent region;
In specific implementation, obtained nontransparent region is defined as the actual icons region in described icon image by described icon area determining unit 1213.
Icon area acquiring unit 122, for obtaining the actual icons region in described icon image;
In specific implementation, described icon area acquiring unit 122 obtains the actual icons region in determined described icon image.
Second area determining unit 123, for determining the viewing area of described icon image according to described actual icons region;
In specific implementation, described second area determining unit 123 can determine the viewing area of described icon image according to described actual icons region, and described viewing area can comprise the shape in described actual icons region and the size in described actual icons region.
First footmark display unit 13, for according to described viewing area, is presented on default display position corresponding to described application icon by described footmark;
In specific implementation, described first footmark display unit 13 is according to the shape in described actual icons region and size, described footmark is presented on default display position corresponding to described application icon, further, can show with different shapes and/or size for the application icon under same subject, namely under same subject, different application icons can with different shapes and identical size show, or can with identical shape and different sizes show, or can also with different shapes and different sizes show.Therefore different footmarks and different default display positions can also be set for different application icons, described terminal 1 can obtain footmark corresponding to described viewing area and default display position, and is shown on the default display position that described application icon is corresponding by described footmark.
Further, for same subject, for different application icons, unified viewing area can be set, also different viewing areas can be set, different footmarks and different default display positions can also be set for different viewing areas simultaneously, described first footmark display unit 13 can obtain footmark corresponding to described viewing area and default display position, described default display position can be the boundary position of described viewing area, and the size of footmark is as the criterion not block described application icon.Described footmark shows by described first footmark display unit 13 on the default display position that described application icon is corresponding.Please also refer to Fig. 5, for different viewing areas, can arrange the footmark of its correspondence and default display position, described first footmark display unit 13 can show described footmark according to default display position on described application icon.The default display position of footmark shown in Fig. 5 is only citing, and its default display position can include but not limited to upper right corner boundary position, lower right corner boundary position, upper left corner boundary position, lower left corner boundary position etc.
Concrete, please also refer to Fig. 9, for embodiments providing the structural representation of the first footmark display unit.As shown in Figure 9, described first footmark display unit 13 can comprise:
Footmark position acquisition unit 131, for obtaining footmark corresponding to described viewing area and default display position;
In specific implementation, for same subject, for different application icons, unified viewing area can be set, also different viewing areas can be set, different footmarks and different default display positions can also be set for different viewing areas simultaneously, described footmark position acquisition unit 131 can obtain footmark corresponding to described viewing area and default display position, described default display position can be the boundary position of described viewing area, and the size of footmark is as the criterion not block described application icon.
Second footmark display unit 132, for showing described footmark on the default display position that described application icon is corresponding;
In specific implementation, described footmark shows by described second footmark display unit 132 on the default display position that described application icon is corresponding.Please also refer to Fig. 5, for different viewing areas, can arrange the footmark of its correspondence and default display position, described second footmark display unit 132 can show described footmark according to default display position on described application icon.The default display position of footmark shown in Fig. 5 is only citing, and its default display position can include but not limited to upper right corner boundary position, lower right corner boundary position, upper left corner boundary position, lower left corner boundary position etc.
In embodiments of the present invention, when the trigger message of application icon display footmark of current application program in terminal being detected, by obtaining icon image corresponding to application icon, and after scan process is carried out to icon image, obtain the viewing area of the reality of icon image, final according to viewing area, footmark is shown.By the icon image that scanning application icon is corresponding, the viewing area of accurate acquisition icon image, achieve diagonal angle target and rationalize display, avoid the size due to personalized theme change application icon, cause footmark cannot be presented at the correct position of application icon, cause application icon None-identified or affect the situation of directive property of footmark, ensure that the pointing clearly to property of footmark, and then ensure that the use to terminal; By the pixel value of scanning icon pixel, improve the accuracy of the viewing area obtaining icon image; By arranging for the footmark of different viewing area and default display position, achieving the personal settings of terminal, improving Consumer's Experience.
Refer to Figure 10, for embodiments providing the structural representation of another kind of terminal.As shown in Figure 10, this terminal comprises: at least one processor 1001, such as CPU, input equipment 1003, output device 1004, storer 1005, at least one communication bus 1002.Wherein, communication bus 1002 is for realizing the connection communication between these assemblies.Wherein, storer 1005 can be high-speed RAM storer, also can be non-labile storer (non-volatile memory), such as at least one magnetic disk memory.Storer 1004 can also be optionally that at least one is positioned at the memory storage away from aforementioned processor 1001.Wherein processor 1001 can terminal described by composition graphs 6-Fig. 9, store batch processing code, and processor 1001 calls the program code stored in storer 1005, for performing following operation in storer 1005:
When described input equipment 1003 detects the trigger message of application icon display footmark of current application program in terminal, obtain the icon image that described application icon is corresponding;
Scan process is carried out to described icon image, and after scan process, determines the viewing area of described icon image;
According to described viewing area, control described output device 1004 and described footmark is presented on default display position corresponding to described application icon.
In an alternate embodiment of the invention, processor 1001 calls the program code stored in storer 1004 and performs when obtaining icon image corresponding to described application icon, specifically performs following steps:
Obtain based on icon image corresponding to described application icon under present terminal theme form.
In an alternate embodiment of the invention, processor 1001 calls the program code execution stored in storer 1004 and carries out scan process to described icon image, and when determining the viewing area of described icon image after scan process, specifically performs following steps:
Pre-set image processing mode is adopted to scan described icon image;
Obtain the actual icons region in described icon image;
The viewing area of described icon image is determined according to described actual icons region.
In an alternate embodiment of the invention, processor 1001 calls the program code stored in storer 1004 and performs when adopting pre-set image processing mode to scan described icon image, specifically performs following steps:
The pixel value that at least one icon pixel of described icon image, each icon pixel is corresponding is obtained according to the terminal pattern of described terminal;
The pixel value corresponding according to described each icon pixel obtains the nontransparent region in described icon image;
Described nontransparent region is defined as the actual icons region in described icon image.
In an alternate embodiment of the invention, described pixel value comprises at least one in pixel value corresponding to transverse axis coordinate points and pixel value corresponding to ordinate of orthogonal axes point.
In an alternate embodiment of the invention, when described pixel value is pixel value corresponding to transverse axis coordinate points, processor 1001 calls the program code stored in storer 1004 and performs the pixel value corresponding according to described each icon pixel when obtaining the nontransparent region in described icon image, specifically performs following steps:
Obtain and reject pixel value that at least one icon pixel described, transverse axis coordinate points the is corresponding icon pixel identical with presetted pixel value, and the region that remaining icon pixel at least one icon pixel described generates is defined as nontransparent region.
In an alternate embodiment of the invention, when described pixel value is pixel value corresponding to ordinate of orthogonal axes point, processor 1001 calls the program code stored in storer 1004 and performs the pixel value corresponding according to described each icon pixel when obtaining the nontransparent region in described icon image, specifically performs following steps:
Obtain and reject pixel value that at least one icon pixel described, ordinate of orthogonal axes point the is corresponding icon pixel identical with presetted pixel value, and the region that remaining icon pixel at least one icon pixel described generates is defined as nontransparent region.
In an alternate embodiment of the invention, when described pixel value is pixel value corresponding to pixel value corresponding to transverse axis coordinate points and ordinate of orthogonal axes point, processor 1001 calls the program code stored in storer 1004 and performs the pixel value corresponding according to described each icon pixel when obtaining the nontransparent region in described icon image, specifically performs following steps:
Obtain and reject at least one icon pixel described, pixel value corresponding to transverse axis coordinate points and icon pixel that pixel value that ordinate of orthogonal axes point corresponding with second presetted pixel value identical identical with the first presetted pixel value, and the region that remaining icon pixel at least one icon pixel described generates is defined as nontransparent region.
In an alternate embodiment of the invention, processor 1001 calls the program code stored in storer 1004 and performs according to described viewing area, when being presented at by described footmark on default display position corresponding to described application icon, specifically performs following steps:
Obtain footmark corresponding to described viewing area and default display position;
Control described output device 1004 described footmark is shown on the default display position that described application icon is corresponding.
In an alternate embodiment of the invention, described default display position is the boundary position of described viewing area.
In embodiments of the present invention, when the trigger message of application icon display footmark of current application program in terminal being detected, by obtaining icon image corresponding to application icon, and after scan process is carried out to icon image, obtain the viewing area of the reality of icon image, final according to viewing area, footmark is shown.By the icon image that scanning application icon is corresponding, the viewing area of accurate acquisition icon image, achieve diagonal angle target and rationalize display, avoid the size due to personalized theme change application icon, cause footmark cannot be presented at the correct position of application icon, cause application icon None-identified or affect the situation of directive property of footmark, ensure that the pointing clearly to property of footmark, and then ensure that the use to terminal; By the pixel value of scanning icon pixel, improve the accuracy of the viewing area obtaining icon image; By arranging for the footmark of different viewing area and default display position, achieving the personal settings of terminal, improving Consumer's Experience.
Module described in the embodiment of the present invention or unit, universal integrated circuit can be passed through, such as CPU (Central Processing Unit, central processing unit), or realized by ASIC (Application SpecificIntegrated Circuit, special IC).
Step in embodiment of the present invention method can be carried out order according to actual needs and be adjusted, merges and delete.
Module in embodiment of the present invention terminal or unit can carry out merging, divide and deleting according to actual needs.
One of ordinary skill in the art will appreciate that all or part of flow process realized in above-described embodiment method, that the hardware that can carry out instruction relevant by computer program has come, described program can be stored in a computer read/write memory medium, this program, when performing, can comprise the flow process of the embodiment as above-mentioned each side method.Wherein, described storage medium can be magnetic disc, CD, read-only store-memory body (Read-Only Memory, ROM) or random store-memory body (Random Access Memory, RAM) etc.
Above disclosedly be only present pre-ferred embodiments, certainly can not limit the interest field of the present invention with this, therefore according to the equivalent variations that the claims in the present invention are done, still belong to the scope that the present invention is contained.

Claims (10)

1. a footmark disposal route, is characterized in that, comprising:
When the trigger message of application icon display footmark of current application program in terminal being detected, obtain the icon image that described application icon is corresponding;
Scan process is carried out to described icon image, and after scan process, determines the viewing area of described icon image;
According to described viewing area, described footmark is presented on default display position corresponding to described application icon.
2. method according to claim 1, is characterized in that, the icon image that the described application icon of described acquisition is corresponding, comprising:
Obtain based on icon image corresponding to described application icon under present terminal theme form.
3. method according to claim 1, is characterized in that, describedly carries out scan process to described icon image, and after scan process, determine the viewing area of described icon image, comprising:
Pre-set image processing mode is adopted to scan described icon image;
Obtain the actual icons region in described icon image;
The viewing area of described icon image is determined according to described actual icons region.
4. method according to claim 3, is characterized in that, described employing pre-set image processing mode scans described icon image, comprising:
The pixel value that at least one icon pixel of described icon image, each icon pixel is corresponding is obtained according to the terminal pattern of described terminal;
The pixel value corresponding according to described each icon pixel obtains the nontransparent region in described icon image;
Described nontransparent region is defined as the actual icons region in described icon image.
5. method according to claim 4, is characterized in that, described pixel value comprises at least one in pixel value corresponding to transverse axis coordinate points and pixel value corresponding to ordinate of orthogonal axes point.
6. method according to claim 5, is characterized in that, when described pixel value is pixel value corresponding to transverse axis coordinate points, the described pixel value corresponding according to described each icon pixel obtains the nontransparent region in described icon image, comprising:
Obtain and reject pixel value that at least one icon pixel described, transverse axis coordinate points the is corresponding icon pixel identical with presetted pixel value, and the region that remaining icon pixel at least one icon pixel described generates is defined as nontransparent region.
7. method according to claim 5, is characterized in that, when described pixel value is pixel value corresponding to ordinate of orthogonal axes point, the described pixel value corresponding according to described each icon pixel obtains the nontransparent region in described icon image, comprising:
Obtain and reject pixel value that at least one icon pixel described, ordinate of orthogonal axes point the is corresponding icon pixel identical with presetted pixel value, and the region that remaining icon pixel at least one icon pixel described generates is defined as nontransparent region.
8. method according to claim 5, it is characterized in that, when described pixel value is pixel value corresponding to pixel value corresponding to transverse axis coordinate points and ordinate of orthogonal axes point, the described pixel value corresponding according to described each icon pixel obtains the nontransparent region in described icon image, comprising:
Obtain and reject at least one icon pixel described, pixel value corresponding to transverse axis coordinate points and icon pixel that pixel value that ordinate of orthogonal axes point corresponding with second presetted pixel value identical identical with the first presetted pixel value, and the region that remaining icon pixel at least one icon pixel described generates is defined as nontransparent region.
9. method according to claim 1, is characterized in that, described according to described viewing area, is presented at by described footmark on default display position corresponding to described application icon, comprises:
Obtain footmark corresponding to described viewing area and default display position;
Described footmark is shown on the default display position that described application icon is corresponding.
10. method according to claim 9, is characterized in that, described default display position is the boundary position of described viewing area.
CN201510008271.6A 2015-01-07 2015-01-07 Corner mark processing method Pending CN104615331A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510008271.6A CN104615331A (en) 2015-01-07 2015-01-07 Corner mark processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510008271.6A CN104615331A (en) 2015-01-07 2015-01-07 Corner mark processing method

Publications (1)

Publication Number Publication Date
CN104615331A true CN104615331A (en) 2015-05-13

Family

ID=53149807

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510008271.6A Pending CN104615331A (en) 2015-01-07 2015-01-07 Corner mark processing method

Country Status (1)

Country Link
CN (1) CN104615331A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104965639A (en) * 2015-06-30 2015-10-07 努比亚技术有限公司 Corner mark management method and apparatus for application icon
CN105159661A (en) * 2015-07-24 2015-12-16 小米科技有限责任公司 Corner mark display method and apparatus for icon
CN105208329A (en) * 2015-09-06 2015-12-30 广东威创视讯科技股份有限公司 Image data selection method and related device
CN106383631A (en) * 2016-09-12 2017-02-08 深圳市金立通信设备有限公司 Corner mark management method and terminal
CN106547539A (en) * 2016-10-10 2017-03-29 深圳市金立通信设备有限公司 A kind of footmark display packing and terminal
CN112614572A (en) * 2020-12-28 2021-04-06 深圳开立生物医疗科技股份有限公司 Focus marking method and device, image processing equipment and medical system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090305732A1 (en) * 2008-06-06 2009-12-10 Chris Marcellino Managing notification service connections and displaying icon badges
CN102043562A (en) * 2009-10-19 2011-05-04 英业达股份有限公司 System, interface and method for separately displaying program icons and program execution results
CN103530127A (en) * 2013-10-22 2014-01-22 北京奇虎科技有限公司 Icon display method and device
CN104077183A (en) * 2014-07-08 2014-10-01 广东欧珀移动通信有限公司 Reminding and operating method and device for reading of new software message
CN104238875A (en) * 2014-08-15 2014-12-24 小米科技有限责任公司 Application corner mark addition method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090305732A1 (en) * 2008-06-06 2009-12-10 Chris Marcellino Managing notification service connections and displaying icon badges
CN102043562A (en) * 2009-10-19 2011-05-04 英业达股份有限公司 System, interface and method for separately displaying program icons and program execution results
CN103530127A (en) * 2013-10-22 2014-01-22 北京奇虎科技有限公司 Icon display method and device
CN104077183A (en) * 2014-07-08 2014-10-01 广东欧珀移动通信有限公司 Reminding and operating method and device for reading of new software message
CN104238875A (en) * 2014-08-15 2014-12-24 小米科技有限责任公司 Application corner mark addition method and device

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104965639A (en) * 2015-06-30 2015-10-07 努比亚技术有限公司 Corner mark management method and apparatus for application icon
CN104965639B (en) * 2015-06-30 2019-06-28 努比亚技术有限公司 The footmark management method and device of application icon
CN105159661A (en) * 2015-07-24 2015-12-16 小米科技有限责任公司 Corner mark display method and apparatus for icon
CN105159661B (en) * 2015-07-24 2018-09-04 小米科技有限责任公司 The footmark display methods and device of icon
US10095377B2 (en) 2015-07-24 2018-10-09 Xiaomi Inc. Method and device for displaying icon badge
CN105208329A (en) * 2015-09-06 2015-12-30 广东威创视讯科技股份有限公司 Image data selection method and related device
CN105208329B (en) * 2015-09-06 2019-01-29 广东威创视讯科技股份有限公司 A kind of image data selecting method and relevant apparatus
CN106383631A (en) * 2016-09-12 2017-02-08 深圳市金立通信设备有限公司 Corner mark management method and terminal
CN106547539A (en) * 2016-10-10 2017-03-29 深圳市金立通信设备有限公司 A kind of footmark display packing and terminal
CN112614572A (en) * 2020-12-28 2021-04-06 深圳开立生物医疗科技股份有限公司 Focus marking method and device, image processing equipment and medical system

Similar Documents

Publication Publication Date Title
CN104615331A (en) Corner mark processing method
US20180232135A1 (en) Method for window displaying on a mobile terminal and mobile terminal
CN109298909B (en) Window adjusting method, mobile terminal and computer readable storage medium
CN110362242B (en) Map display method and terminal equipment
EP3163423A1 (en) Method and device for setting background of ui control and terminal
CN106296617A (en) The processing method and processing device of facial image
CN110853488B (en) POI (Point of interest) label display method, device and equipment
CN105808035B (en) Icon display method and device
CN109542278B (en) Touch data processing method and device and touch equipment
CN104914979A (en) Display control method and terminal
US20160012302A1 (en) Image processing apparatus, image processing method and non-transitory computer readable medium
CN104484856A (en) Picture labeling display control method and processor
CN110795019A (en) Key identification method and device of soft keyboard and storage medium
CN104615357A (en) Terminal
CN104317539A (en) Information processing method and electronic equipment
CN110458954B (en) Contour line generation method, device and equipment
CN111638849A (en) Screenshot method and device and electronic equipment
CN110738185A (en) Form object identification method and device and storage medium
CN105549829A (en) Setting project processing method and apparatus
CN103236042A (en) Self-adaptive picture processing method and device
CN109407955B (en) User interface interaction method, computer device and computer readable storage medium
CN114356264B (en) Signal generation method, device, equipment and readable storage medium
CN104918073A (en) Image display method and terminal
CN115829929A (en) Method, device and equipment for detecting defects of product surface image and storage medium
CN113066134A (en) Calibration method and device of visual sensor, electronic equipment and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20150513