CN106843649B - Icon processing method and device and terminal - Google Patents

Icon processing method and device and terminal Download PDF

Info

Publication number
CN106843649B
CN106843649B CN201710025502.3A CN201710025502A CN106843649B CN 106843649 B CN106843649 B CN 106843649B CN 201710025502 A CN201710025502 A CN 201710025502A CN 106843649 B CN106843649 B CN 106843649B
Authority
CN
China
Prior art keywords
icon
pixel point
color
value
opaque
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710025502.3A
Other languages
Chinese (zh)
Other versions
CN106843649A (en
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.)
BEIJING SHUKE WANGWEI TECHNOLOGY Co.,Ltd.
Original Assignee
Beijing Shuke Wangwei Technology 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 Beijing Shuke Wangwei Technology Co ltd filed Critical Beijing Shuke Wangwei Technology Co ltd
Priority to CN201710025502.3A priority Critical patent/CN106843649B/en
Publication of CN106843649A publication Critical patent/CN106843649A/en
Application granted granted Critical
Publication of CN106843649B publication Critical patent/CN106843649B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/04817Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance using icons
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention discloses an icon processing method, which comprises the following steps: reading pixel points of the icon line by line, determining a first opaque pixel point of each line, calculating a color complementing rule for performing color complementing processing on the icon according to the first opaque pixel point through a preset algorithm, performing color complementing processing on the icon according to the calculated color complementing rule, and cutting the icon after color complementing processing into the icon of the target model. The invention also discloses an icon processing device and a terminal, which solve the problem of complicated operation steps for synthesizing the icons into the uniform style in the related technology, and the icons are simply and quickly cut into the icons with the uniform style by cutting the transparent pixel area into the icons of the target model after color complementing treatment, so that the user experience is improved.

Description

Icon processing method and device and terminal
Technical Field
The invention relates to the technical field of terminals, in particular to an icon processing method, an icon processing device and a terminal.
Background
Along with the development of the internet and the popularization of the terminal, the user group of the terminal is larger and larger, and meanwhile, more intelligent and humanized requirements are provided for software.
Most intelligent terminal operating systems support third-party developers to develop various application programs and enable the third-party developers to use the application programs in the system, so that the operating systems have to provide a scheme for enabling the users to distinguish the third-party applications. In almost all graphical operating systems, it is supported to identify a third party application by a specific picture (abbreviated as icon), which is usually provided by the third party application developer.
Just because icons of different third-party application programs are provided by different developers, the styles of a plurality of icons are difficult to be consistent, and finally, the display of a program icon list in an operating system is very cluttered, and the use experience of a user is reduced. The existing operating system presets a limited number of picture resources, randomly selects a plurality of pictures for each third-party application program, and generates a new icon by fusing the pictures with the program icon in a certain way, so that the consistency of the global icon style is achieved to a certain extent. However, the randomly selected picture resources of the operating system are irrelevant to the icon content of the third-party application program, the basically fused icon is not attractive, and the finally generated icon has no predictability for a third-party application program developer.
The icons synthesized by the existing icon synthesis method of the mobile terminal desktop are relatively hard, have different styles and are not unified. The icon generating method in the related technology comprises the steps of firstly adjusting a primary icon to a preset size, calculating the keytone of the primary icon, then generating a background color according to the keytone, applying the background color to a gradient template to generate an icon bottom plate, finally cutting the adjusted icon, overlapping the icon bottom plate, the cut icon and a preset icon foreground template to generate a final icon, wherein the style of the icon synthesized by the method is uniform, but the keytone of the icon is calculated to generate the corresponding icon bottom plate, and then the icon bottom plate is combined, so that the steps are complex.
Aiming at the problem that the operation steps for synthesizing the icons into the unified style in the related art are complicated, no solution is proposed at present.
Disclosure of Invention
In view of this, the present invention provides an icon processing method, an icon processing device, and a terminal, and aims to solve the problem that the operation steps for synthesizing icons into a unified style in the related art are complicated.
In order to achieve the above object, the present invention provides an icon processing method, including:
reading pixel points of the icon line by line, and determining a first opaque pixel point of each line;
calculating a color complementing rule for performing color complementing treatment on the icon according to the first opaque pixel point through a preset algorithm;
performing color complementing treatment on the icon according to the calculated color complementing rule;
and cutting the icon subjected to the complementary color processing into an icon of the target model.
Optionally, reading pixel points of the icon line by line, and determining a first opaque pixel point of each line includes:
reading the pixel value of the pixel point of each row of the icon;
and when the pixel value of the pixel point is 255, determining the pixel point as the first opaque pixel point.
Optionally, the calculating, according to the first opaque pixel point, a color-complementing rule for performing color-complementing processing on the icon by using a predetermined algorithm includes:
determining a candidate pixel point according to the position of the first opaque pixel point;
and calculating the complementary color rule through a preset algorithm according to the candidate pixel points.
Optionally, determining the candidate pixel point according to the position of the first opaque pixel point includes:
determining N opaque pixel points Pi according to the position of the first opaque pixel point P (x, y), wherein N is an integer greater than 3, and i is N;
when N is 12, 4 pixels in the same row are P1(x +1, y), P2(x +3, y), P3(x +2, y), and P4(x +4, y), 4 pixels in the same column are P5(x, y +1), P6(x, y +2), P7(x, y +3), and P8(x, y +4), and 4 pixels in the diagonal are P9(x +1, y +1), P10(x +2, y +2), P11(x +3, y +3), and P12(x +4, y + 4);
calculating a mean value M1 of pixel values of P1, P2, P3 and P4, a mean value M2 of pixel values of P5, P6, P7 and P8, and a mean value M3 of pixel values of P9, P10, P11 and P12;
and calculating the difference value between the pixel value of the first opaque pixel point P (x, y) and M1, M2 and M3, and determining the value with the minimum difference value as the candidate pixel point.
Optionally, the calculating the color complementing rule according to the candidate pixel point by using a predetermined algorithm includes:
in the case where the value of the minimum difference is M1, it is determined to perform completion in a row manner;
in the case where the value of the minimum difference is M2, it is determined that completion is performed in a columnar manner;
in the case where the value of the minimum difference is M3, it is determined that completion is performed in a diagonal manner.
Optionally, the cutting the icon after the color complementing processing into the icon of the target model includes:
acquiring relevant parameters of an icon of the target model, wherein the relevant parameters comprise four corners and four radians of the icon of the target model;
and cutting the icon subjected to color complementing processing into an icon of a target model according to the related parameters.
According to another aspect of the present invention, there is also provided an icon processing apparatus including:
the determining module is used for reading pixel points of the icons line by line and determining the first opaque pixel point of each line;
the calculation module is used for calculating a color complementing rule for performing color complementing processing on the icon according to the first opaque pixel point through a preset algorithm;
the complementary color processing module is used for performing complementary color processing on the icon according to the calculated complementary color rule;
and the cutting module is used for cutting the icon subjected to the color complementing processing into the icon of the target model.
Optionally, the determining module includes:
the reading unit is used for reading the pixel value of the pixel point of each row of the icon;
a first determining unit, configured to determine, when a pixel value of a pixel is 255, that the pixel is the first opaque pixel.
Optionally, the calculation module includes:
a second determining unit, configured to determine a candidate pixel point according to a position of the first opaque pixel point;
and the calculating unit is used for calculating the complementary color rule according to the candidate pixel points through a preset algorithm.
Optionally, the second determining unit includes:
a first determining subunit, configured to determine, according to a position of the first opaque pixel point P (x, y), N opaque pixel points Pi, where N is an integer greater than 3, and i is equal to N; when N is 12, 4 pixels in the same row are P1(x +1, y), P2(x +3, y), P3(x +2, y), and P4(x +4, y), 4 pixels in the same column are P5(x, y +1), P6(x, y +2), P7(x, y +3), and P8(x, y +4), and 4 pixels in the diagonal are P9(x +1, y +1), P10(x +2, y +2), P11(x +3, y +3), and P12(x +4, y + 4);
a calculating subunit, configured to calculate a mean value M1 of pixel values of P1, P2, P3, P4, a mean value M2 of pixel values of P5, P6, P7, P8, and a mean value M3 of pixel values of P9, P10, P11, P12;
and the second determining subunit is used for calculating the difference between the pixel value of the first opaque pixel point P (x, y) and M1, M2 and M3, and determining the value with the minimum difference as the candidate pixel point.
Optionally, the computing unit is further configured to
In the case where the value of the minimum difference is M1, it is determined to perform completion in a row manner;
in the case where the value of the minimum difference is M2, it is determined that completion is performed in a columnar manner;
in the case where the value of the minimum difference is M3, it is determined that completion is performed in a diagonal manner.
Optionally, the cutting module includes:
the acquisition unit is used for acquiring relevant parameters of the icon of the target model, wherein the relevant parameters comprise four corners and four radians of the icon of the target model;
and the cutting unit is used for cutting the icon subjected to color complementing processing into the icon of the target model according to the related parameters.
According to another aspect of the present invention, there is also provided a terminal including one of the above-described apparatuses.
According to the method and the device, the pixel points of the icon are read line by line, the first opaque pixel point of each line is determined, the color complementing rule for color complementing processing of the icon is calculated according to the first opaque pixel point through a preset algorithm, the color complementing processing is performed on the icon according to the calculated color complementing rule, the icon after the color complementing processing is cut into the icon of the target model, the problem that the operation steps for synthesizing the icon into a unified style in the related technology are complex is solved, the icon is cut into the icon of the target model after the color complementing processing is performed on the transparent pixel area, the icon is simply and quickly cut into the icon with the unified style, and user experience is improved.
Drawings
Fig. 1 is a schematic diagram of a hardware structure of an optional mobile terminal for implementing various embodiments of the present invention;
FIG. 2 is a diagram of a wireless communication system for the mobile terminal shown in FIG. 1;
FIG. 3 is a flow diagram of an icon processing method according to an embodiment of the present invention;
FIG. 4 is a first diagram illustrating unified style processing for icons, according to an embodiment of the present invention;
FIG. 5 is a diagram illustrating a unified style processing for icons two in accordance with an embodiment of the present invention;
FIG. 6 is a third schematic diagram of unified style processing for icons according to an embodiment of the present invention;
FIG. 7 is a fourth schematic diagram of unified style processing for icons according to an embodiment of the present invention;
FIG. 8 is a block diagram of an icon processing apparatus according to an embodiment of the present invention;
FIG. 9 is a first block diagram of an icon processing apparatus according to a preferred embodiment of the present invention;
FIG. 10 is a block diagram two of an icon processing apparatus according to a preferred embodiment of the present invention;
fig. 11 is a block diagram three of an icon processing apparatus according to a preferred embodiment of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
A mobile terminal implementing various embodiments of the present invention will now be described with reference to the accompanying drawings. In the following description, suffixes such as "module", "component", or "unit" used to denote elements are used only for facilitating the explanation of the present invention, and have no specific meaning in themselves. Thus, "module" and "component" may be used in a mixture.
The mobile terminal may be implemented in various forms. For example, the terminal described in the present invention may include a mobile terminal such as a mobile phone, a smart phone, a notebook computer, a digital broadcast receiver, a PDA (personal digital assistant), a PAD (tablet computer), a PMP (portable multimedia player), a navigation device, and the like, and a stationary terminal such as a digital TV, a desktop computer, and the like. In the following, it is assumed that the terminal is a mobile terminal. However, it will be understood by those skilled in the art that the configuration according to the embodiment of the present invention can be applied to a fixed type terminal in addition to elements particularly used for moving purposes.
Fig. 1 is a schematic diagram of a hardware structure of an optional mobile terminal for implementing various embodiments of the present invention.
The mobile terminal 100 may include a wireless communication unit 110, an a/V (audio/video) input unit 120, a user input unit 130, a sensing unit 140, an output unit 150, a memory 160, an interface unit 170, a controller 180, and a power supply unit 190, etc.
Fig. 1 illustrates the mobile terminal 100 having various components, but it is to be understood that not all illustrated components are required to be implemented. More or fewer components may alternatively be implemented. The elements of the mobile terminal 100 will be described in detail below.
The wireless communication unit 110 may generally include one or more components that allow radio communication between the mobile terminal 100 and a wireless communication system or network. For example, the wireless communication unit 110 may include at least one of a broadcast receiving module 111, a mobile communication module 112, a wireless internet module 113, a short-range communication module 114, and a location information module 115.
The broadcast receiving module 111 receives a broadcast signal and/or broadcast associated information from an external broadcast management server via a broadcast channel. The broadcast channel may include a satellite channel and/or a terrestrial channel. The broadcast management server may be a server that generates and transmits a broadcast signal and/or broadcast associated information or a server that receives a previously generated broadcast signal and/or broadcast associated information and transmits it to a terminal. The broadcast signal may include a TV broadcast signal, a radio broadcast signal, a data broadcast signal, and the like. Also, the broadcast signal may further include a broadcast signal combined with a TV or radio broadcast signal. The broadcast associated information may also be provided via a mobile communication network, and in this case, the broadcast associated information may be received by the mobile communication module 112. The broadcast signal may exist in various forms, for example, it may exist in the form of an Electronic Program Guide (EPG) of Digital Multimedia Broadcasting (DMB), an Electronic Service Guide (ESG) of digital video broadcasting-handheld (DVB-H), and the like. The broadcast receiving module 111 may receive a signal broadcast by using various types of broadcasting systems. In particular, the broadcast receiving module 111 may receive digital broadcasting by using a digital broadcasting system such as a data broadcasting system of multimedia broadcasting-terrestrial (DMB-T), digital multimedia broadcasting-satellite (DMB-S), digital video broadcasting-handheld (DVB-H), forward link media (MediaFLO @), terrestrial digital broadcasting integrated service (ISDB-T), and the like. The broadcast receiving module 111 may be constructed to be suitable for various broadcasting systems that provide broadcast signals as well as the above-mentioned digital broadcasting systems. The broadcast signal and/or broadcast associated information received via the broadcast receiving module 111 may be stored in the memory 160 (or other type of storage medium).
The mobile communication module 112 transmits and/or receives radio signals to and/or from at least one of a base station (e.g., access point, node B, etc.), an external terminal, and a server. Such radio signals may include voice call signals, video call signals, or various types of data transmitted and/or received according to text and/or multimedia messages.
The wireless internet module 113 supports wireless internet access of the mobile terminal. The module may be internally or externally coupled to the terminal. The wireless internet access technology to which the module relates may include WLAN (wireless LAN) (Wi-Fi), Wibro (wireless broadband), Wimax (worldwide interoperability for microwave access), HSDPA (high speed downlink packet access), and the like.
The short-range communication module 114 is a module for supporting short-range communication. Some examples of short-range communication technologies include bluetooth (TM), Radio Frequency Identification (RFID), infrared data association (IrDA), Ultra Wideband (UWB), zigbee (TM), and the like.
The location information module 115 is a module for checking or acquiring location information of the mobile terminal. A typical example of the location information module 115 is a GPS (global positioning system). According to the current technology, the GPS calculates distance information and accurate time information from three or more satellites and applies triangulation to the calculated information, thereby accurately calculating three-dimensional current location information according to longitude, latitude, and altitude. Currently, a method for calculating position and time information uses three satellites and corrects an error of the calculated position and time information by using another satellite. In addition, the GPS can calculate speed information by continuously calculating current position information in real time.
The a/V input unit 120 is used to receive an audio or video signal. The a/V input unit 120 may include a camera 121 and a microphone 122, and the camera 121 processes image data of still pictures or video obtained by an image capturing apparatus in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 151. The image frames processed by the cameras 121 may be stored in the memory 160 (or other storage medium) or transmitted via the wireless communication unit 110, and two or more cameras 121 may be provided according to the construction of the mobile terminal 100. The microphone 122 may receive sounds (audio data) via the microphone 122 in a phone call mode, a recording mode, a voice recognition mode, or the like, and is capable of processing such sounds into audio data. The processed audio (voice) data may be converted into a format output transmittable to a mobile communication base station via the mobile communication module 112 in case of a phone call mode. The microphone 122 may implement various types of noise cancellation (or suppression) algorithms to cancel (or suppress) noise or interference generated in the course of receiving and transmitting audio signals.
The user input unit 130 may generate key input data to control various operations of the mobile terminal 100 according to a command input by a user. The user input unit 130 allows a user to input various types of information, and may include a keyboard, dome sheet, touch pad (e.g., a touch-sensitive member that detects changes in resistance, pressure, capacitance, and the like due to being touched), scroll wheel, joystick, and the like. In particular, when the touch pad is superimposed on the display unit 151 in the form of a layer, a touch screen may be formed.
The sensing unit 140 detects a current state of the mobile terminal 100 (e.g., an open or closed state of the mobile terminal 100), a position of the mobile terminal 100, presence or absence of contact (i.e., touch input) by a user with the mobile terminal 100, an orientation of the mobile terminal 100, acceleration or deceleration movement and direction of the mobile terminal 100, and the like, and generates a command or signal for controlling an operation of the mobile terminal 100. For example, when the mobile terminal 100 is implemented as a slide-type mobile phone, the sensing unit 140 may sense whether the slide-type phone is opened or closed. In addition, the sensing unit 140 can detect whether the power supply unit 190 supplies power or whether the interface unit 170 is coupled with an external device. The sensing unit 140 may include a proximity sensor 141.
The interface unit 170 serves as an interface through which at least one external device is connected to the mobile terminal 100. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The identification module may store various information for authenticating a user using the mobile terminal 100 and may include a User Identity Module (UIM), a Subscriber Identity Module (SIM), a Universal Subscriber Identity Module (USIM), and the like. In addition, a device having an identification module (hereinafter, referred to as an "identification device") may take the form of a smart card, and thus, the identification device may be connected with the mobile terminal 100 via a port or other connection means. The interface unit 170 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the mobile terminal 100 or may be used to transmit data between the mobile terminal 100 and the external device.
In addition, when the mobile terminal 100 is connected with an external cradle, the interface unit 170 may serve as a path through which power is supplied from the cradle to the mobile terminal 100 or may serve as a path through which various command signals input from the cradle are transmitted to the mobile terminal 100. Various command signals or power input from the cradle may be used as a signal for identifying whether the mobile terminal 100 is accurately mounted on the cradle. The output unit 150 is configured to provide output signals (e.g., audio signals, video signals, alarm signals, vibration signals, etc.) in a visual, audio, and/or tactile manner. The output unit 150 may include a display unit 151, an audio output module 152, an alarm unit 153, and the like.
The display unit 151 may display information processed in the mobile terminal 100. For example, when the mobile terminal 100 is in a phone call mode, the display unit 151 may display a User Interface (UI) or a Graphical User Interface (GUI) related to a call or other communication (e.g., text messaging, multimedia file downloading, etc.). When the mobile terminal 100 is in a video call mode or an image capturing mode, the display unit 151 may display a captured image and/or a received image, a UI or GUI showing a video or an image and related functions, and the like.
Meanwhile, when the display unit 151 and the touch pad are overlapped with each other in the form of a layer to form a touch screen, the display unit 151 may serve as an input device and an output device. The display unit 151 may include at least one of a Liquid Crystal Display (LCD), a thin film transistor LCD (TFT-LCD), an Organic Light Emitting Diode (OLED) display, a flexible display, a three-dimensional (3D) display, and the like. Some of these displays may be configured to be transparent to allow a user to view from the outside, which may be referred to as transparent displays, and a typical transparent display may be, for example, a TOLED (transparent organic light emitting diode) display or the like. Depending on the particular desired implementation, mobile terminal 100 may include two or more display units (or other display devices), for example, mobile terminal 100 may include an external display unit (not shown) and an internal display unit (not shown). The touch screen may be used to detect a touch input pressure as well as a touch input position and a touch input area.
The audio output module 152 may convert audio data received by the wireless communication unit 110 or stored in the memory 160 into an audio signal and output as sound when the mobile terminal 100 is in a call signal reception mode, a call mode, a recording mode, a voice recognition mode, a broadcast reception mode, or the like. Also, the audio output module 152 may provide audio output related to a specific function performed by the mobile terminal 100 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output module 152 may include a speaker, a buzzer, and the like.
The alarm unit 153 may provide an output to notify the mobile terminal 100 of the occurrence of an event. Typical events may include call reception, message reception, key signal input, touch input, and the like. In addition to audio or video output, the alarm unit 153 may provide output in different ways to notify the occurrence of an event. For example, the alarm unit 153 may provide an output in the form of vibration, and when a call, a message, or some other incoming communication (communicating communication) is received, the alarm unit 153 may provide a tactile output (i.e., vibration) to inform the user thereof. By providing such a tactile output, the user can recognize the occurrence of various events even when the user's mobile phone is in the user's pocket. The alarm unit 153 may also provide an output notifying the occurrence of an event via the display unit 151 or the audio output module 152.
The memory 160 may store software programs and the like for processing and controlling operations performed by the controller 180, or may temporarily store data (e.g., a phonebook, messages, still images, videos, and the like) that has been or will be output. Also, the memory 160 may store data regarding various ways of vibration and audio signals output when a touch is applied to the touch screen.
The memory 160 may include at least one type of storage medium including a flash memory, a hard disk, a multimedia card, a card-type memory (e.g., SD or DX memory, etc.), a Random Access Memory (RAM), a Static Random Access Memory (SRAM), a read-only memory (ROM), an electrically erasable programmable read-only memory (EEPROM), a programmable read-only memory (PROM), a magnetic memory, a magnetic disk, an optical disk, and the like. Also, the mobile terminal 100 may cooperate with a network storage device that performs a storage function of the memory 160 through a network connection.
The controller 180 generally controls the overall operation of the mobile terminal. For example, the controller 180 performs control and processing related to voice calls, data communications, video calls, and the like. In addition, the controller 180 may include a multimedia module 181 for reproducing (or playing back) multimedia data, and the multimedia module 181 may be constructed within the controller 180 or may be constructed separately from the controller 180. The controller 180 may perform a pattern recognition process to recognize a handwriting input or a picture drawing input performed on the touch screen as a character or an image.
The power supply unit 190 receives external power or internal power and provides appropriate power required to operate various elements and components under the control of the controller 180.
The various embodiments described herein may be implemented in a computer-readable medium using, for example, computer software, hardware, or any combination thereof. For a hardware implementation, the embodiments described herein may be implemented using at least one of an Application Specific Integrated Circuit (ASIC), a Digital Signal Processor (DSP), a Digital Signal Processing Device (DSPD), a Programmable Logic Device (PLD), a Field Programmable Gate Array (FPGA), a processor, a controller, a microcontroller, a microprocessor, an electronic unit designed to perform the functions described herein, and in some cases, such embodiments may be implemented in the controller 180. For a software implementation, the implementation such as a process or a function may be implemented with a separate software module that allows performing at least one function or operation. The software codes may be implemented by software applications (or programs) written in any suitable programming language, which may be stored in the memory 160 and executed by the controller 180.
Up to this point, the mobile terminal 100 has been described in terms of its functionality. In addition, the mobile terminal 100 in the embodiment of the present invention may be a mobile terminal such as a folder type, a bar type, a swing type, a slide type, and other various types, and is not limited herein.
The mobile terminal 100 as shown in fig. 1 may be configured to operate with communication systems such as wired and wireless communication systems and satellite-based communication systems that transmit data via frames or packets.
A communication system in which a mobile terminal according to the present invention is operable will now be described with reference to fig. 2.
Such communication systems may use different air interfaces and/or physical layers. For example, the air interface used by the communication system includes, for example, Frequency Division Multiple Access (FDMA), Time Division Multiple Access (TDMA), Code Division Multiple Access (CDMA), and Universal Mobile Telecommunications System (UMTS) (in particular, Long Term Evolution (LTE)), global system for mobile communications (GSM), and the like. By way of non-limiting example, the following description relates to a CDMA communication system, but such teachings are equally applicable to other types of systems.
Referring to fig. 2, a CDMA wireless communication system may include a plurality of intelligent terminals 100, a plurality of Base Stations (BSs) 270, Base Station Controllers (BSCs) 275, and a Mobile Switching Center (MSC) 280. The MSC 280 is configured to interface with a Public Switched Telephone Network (PSTN) 290. The MSC 280 is also configured to interface with a BSC275, which may be coupled to the base station 270 via a backhaul. The backhaul line may be constructed according to any of several known interfaces, which may include, for example, european/american standard high capacity digital lines (E1/T1), Asynchronous Transfer Mode (ATM), network protocol (IP), point-to-point protocol (PPP), frame relay, high-rate digital subscriber line (HDSL), Asymmetric Digital Subscriber Line (ADSL), or various types of digital subscriber lines (xDSL). It will be understood that a system as shown in fig. 2 may include multiple BSCs 275.
Each BS 270 may serve one or more sectors (or regions), each sector covered by a multi-directional antenna or an antenna pointing in a particular direction being radially distant from the BS 270. Alternatively, each partition may be covered by two or more antennas for diversity reception. Each BS 270 may be configured to support multiple frequency allocations, with each frequency allocation having a particular frequency spectrum (e.g., 1.25MHz, 5MHz, etc.).
The intersection of partitions with frequency allocations may be referred to as a CDMA channel. The BS 270 may also be referred to as a Base Transceiver Subsystem (BTS) or other equivalent terminology. In such a case, the term "base station" may be used to generically refer to a single BSC275 and at least one BS 270. The base stations may also be referred to as "cells". Alternatively, each partition of a particular BS 270 may be referred to as a plurality of cell sites.
As shown in fig. 2, a Broadcast Transmitter (BT)295 transmits a broadcast signal to the mobile terminal 100 operating within the system. A broadcast receiving module 111 as shown in fig. 1 is provided at the mobile terminal 100 to receive a broadcast signal transmitted by the BT 295. In fig. 2, several Global Positioning System (GPS) satellites 300 are shown. The satellite 300 assists in locating at least one of the plurality of mobile terminals 100.
In fig. 2, a plurality of satellites 300 are depicted, but it is understood that useful positioning information may be obtained with any number of satellites. The location information module 115 (e.g., GPS) as shown in fig. 1 is generally configured to cooperate with the satellites 300 to obtain desired positioning information. Other techniques that can track the location of the mobile terminal may be used instead of or in addition to GPS tracking techniques. In addition, at least one GPS satellite 300 may selectively or additionally process satellite DMB transmission.
As a typical operation of the wireless communication system, the BS 270 receives reverse link signals from various mobile terminals 100. The mobile terminal 100 is generally engaged in conversations, messaging, and other types of communications. Each reverse link signal received by a particular base station is processed within a particular BS 270. The obtained data is forwarded to the associated BSC 275. The BSC provides call resource allocation and mobility management functions including coordination of soft handoff procedures between BSs 270. The BSCs 275 also route the received data to the MSC 280, which provides additional routing services for interfacing with the PSTN 290. Similarly, the PSTN290 interfaces with the MSC 280, the MSC interfaces with the BSCs 275, and the BSCs 275 accordingly control the BS 270 to transmit forward link signals to the mobile terminal 100.
Based on the foregoing mobile terminal, an embodiment of the present invention provides an icon processing method, and fig. 3 is a flowchart of the icon processing method according to the embodiment of the present invention, as shown in fig. 3, the method includes the following steps:
step S302, reading pixel points of the icon line by line, and determining the first opaque pixel point of each line;
step S304, calculating a color complementing rule for performing color complementing treatment on the icon according to the first opaque pixel point through a preset algorithm;
step S306, performing color complementing processing on the icon according to the calculated color complementing rule;
and step S308, cutting the icon subjected to the color complementing processing into an icon of the target model.
Through the steps, pixel points of the icon are read line by line, the first opaque pixel point of each line is determined, the color complementing rule for color complementing processing of the icon is calculated according to the preset algorithm, color complementing processing is carried out on the icon according to the calculated color complementing rule, the icon after color complementing processing is cut into the icon of the target model, the problem that operation steps for synthesizing the icon into a unified style in the related technology are complex is solved, the icon is cut into the icon of the target model after color complementing processing is carried out on the transparent pixel area, the icon is cut into the icon with the unified style simply and quickly, and user experience is improved.
Fig. 4 is a first schematic diagram illustrating a unified style processing of icons according to an embodiment of the present invention, as shown in fig. 4, various forms exist for applying icon shapes, and in order to unify one shape and improve the aesthetic feeling, a completion processing is performed on the icons. The icon a is transformed into an icon b by a complementary color, and then is clipped into an icon c to uniformly apply the icon shape. Reading image pixels line by line to find a first opaque pixel point P, fig. 5 is a schematic diagram two of an icon unification style process according to an embodiment of the present invention, as shown in fig. 5, marking the pixel position as (x, y); through the opaque pixel point P and its position (x, y), a candidate pixel S and a complementary color rule are calculated according to a predetermined algorithm, and the transparent pixel is complemented into S processing. For example, according to a predetermined algorithm: the complementary color rule is a line and then the resulting map of the complementary color of candidate pixel S is used.
Reading the pixel points of the icon line by line, and determining the first opaque pixel point of each line may include: reading the pixel value of the pixel point of each row of the icon, determining the pixel point as the first opaque pixel point when the pixel value of the pixel point is 255, indicating that the pixel point is a semi-transparent pixel point or a transparent pixel point when the pixel value is less than 255, and determining that the pixel point is an edge pixel point when the pixel value is closer to 255.
In an alternative embodiment, calculating a complementary color rule for performing complementary color processing on the icon according to a predetermined algorithm may include: and determining a candidate pixel point according to the position of the first opaque pixel point, and calculating the complementary color rule according to the candidate pixel point through a preset algorithm. Further, determining a candidate pixel point by the position of the first opaque pixel point may include: determining N opaque pixel points Pi according to the position of the first opaque pixel point P (x, y), wherein N is an integer greater than 3, and i is N; when N is 12, 4 pixels in the same row are P1(x +1, y), P2(x +3, y), P3(x +2, y), and P4(x +4, y), 4 pixels in the same column are P5(x, y +1), P6(x, y +2), P7(x, y +3), and P8(x, y +4), and 4 pixels in the diagonal are P9(x +1, y +1), P10(x +2, y +2), P11(x +3, y +3), and P12(x +4, y + 4); and calculating the difference value between the pixel value of the first opaque pixel point P (x, y) and M1, M2 and M3, and determining the value with the minimum difference value as the candidate pixel point. In the case where the value of the minimum difference is M1, it is determined to perform completion in a row manner; in the case where the value of the minimum difference is M2, it is determined that completion is performed in a columnar manner; in the case where the value of the minimum difference is M3, it is determined that completion is performed in a diagonal manner. For example, the pixel values of P1, P2, P3, and P4 are 255, 253, 254, and 255, the pixel values of P5, P6, P7, and P8 are 252, 253, 255, and 253, the pixel values of P9, P10, P11, and P12 are 255, 254, 252, and 255, the mean value M1 of the pixel values of P1, P2, P3, and P4 is 254.25, the mean value M2 of the pixel values of P5, P6, P7, and P8 is 253.25, and the mean value M3 of the pixel values of P9, P10, P11, and P12 is 254; if the pixel value of the opaque pixel point P (x, y) is 254, the difference values between the opaque pixel point P (x, y) and M1, M2 and M3 are respectively 0.25, -0.75 and 0, the value M3 with the minimum difference value is determined to be the candidate pixel point, and the completion is determined in a diagonal mode.
In another optional embodiment, calculating a complementary color rule for performing complementary color processing on the icon according to a predetermined algorithm may further include: determining N opaque pixel points Pi according to the position of the first opaque pixel point P (x, y), wherein N is an integer greater than 3, and i is N; when N is 8, 4 pixels in the same row are P1(x +1, y), P2(x +3, y), P3(x +2, y), and P4(x +4, y), and 4 pixels in the same column are P5(x, y +1), P6(x, y +2), P7(x, y +3), and P8(x, y + 4); calculating a mean value M1 of pixel values of P1, P2, P3 and P4, a mean value M2 of pixel values of P5, P6, P7 and P8, calculating a difference value between the pixel value of the opaque pixel P (x, y) and the pixel values of M1 and M2, determining that the value with the minimum difference value is the candidate pixel, and determining to complete in a row mode when the value with the minimum difference value is M1; in the case where the value of the difference is the minimum M2; alternatively, the first and second electrodes may be,
the 4 pixels in the same row are P1(x +1, y), P2(x +3, y), P3(x +2, y) and P4(x +4, y), the 4 pixels on the diagonal are P9(x +1, y +1), P10(x +2, y +2), P11(x +3, y +3) and P12(x +4, y +4), the mean value M1 of the pixel values of P1, P2, P3 and P4, and the mean value M3 of the pixel values of P9, P10, P11 and P12 are calculated; and calculating the difference value between the pixel value of the opaque pixel point P (x, y) and M1, M3, and determining the value with the minimum difference value as the candidate pixel point. In the case where the value of the minimum difference is M1, it is determined to perform completion in a row manner; in the case where the value of the minimum difference is M2, it is determined that completion is performed in a columnar manner; in the case where the value of the minimum difference is M3, it is determined that completion is performed in a diagonal manner. The completion is done in a diagonal manner. Alternatively, the first and second electrodes may be,
the 4 pixels in the same column are P5(x, y +1), P6(x, y +2), P7(x, y +3) and P8(x, y +4), the 4 pixels on the diagonal are P9(x +1, y +1), P10(x +2, y +2), P11(x +3, y +3) and P12(x +4, y +4), the mean value M2 of the pixel values of P5, P6, P7 and P8, and the mean value M3 of the pixel values of P9, P10, P11 and P12 are calculated; and calculating the difference value between the pixel value of the opaque pixel point P (x, y) and M2, M3, and determining the value with the minimum difference value as the candidate pixel point. In the case where the value of the minimum difference is M2, it is determined that completion is performed in a columnar manner; in the case where the value of the minimum difference is M3, it is determined that completion is performed in a diagonal manner. For example, the pixel values of P1, P2, P3 and P4 are 255, 253, 254 and 255, the pixel values of P5, P6, P7 and P8 are 252, 253, 255 and 253, the mean value M1 of the pixel values of P1, P2, P3 and P4 is 254.25, the mean value M2 of the pixel values of P5, P6, P7 and P8 is 253.25, if the pixel value of the opaque pixel point P (x, y) is 254, the difference between the pixel value P (x, y) and the pixel values of M1, M2 and M3 are 0.25 and 0.75, the value M1 with the smallest difference is determined as the candidate pixel point, and the row-by-row complementation is determined.
Of course, at least two of the three methods, i.e., the row method, the column method, and the diagonal method, may be directly and simultaneously completed, and the transparent pixel regions may be completely completed, so that the final effect is not affected even if the transparent pixel regions are repeated.
The clipping the icon after the complementary color processing into the icon of the target model comprises the following steps: and obtaining relevant parameters of the icon of the target model, wherein the relevant parameters comprise four corners and four radians of the icon of the target model, and cutting the icon subjected to color complementing processing into the icon of the target model according to the relevant parameters. Selecting an icon of a target model, setting adaptation parameters of the icon of the target model, acquiring other icons except the icon of the target model, comparing the acquired other icons with the icon of the target model, and adjusting corresponding parameters of the other icons to be consistent with the adaptation parameters of the icon of the target model according to the adaptation parameters of the icon of the target model. The adaptation parameters of the icon of the target model comprise the size and the dimension of the icon of the target model, the adaptation parameters of the icon of the target model also comprise the color of the icon of the target model, and the adaptation parameters of the icon of the target model are the shape of the icon also comprising the target model.
And when the obtained icon is compared with the icon of the target model, specifically, the comparison is carried out according to the preset adaptive parameters of the icon of the target model. For example, when the adaptation parameter is the size of the icon, firstly analyzing and comparing whether the size of the obtained icon is consistent with that of the icon of the target model, and if so, not adjusting; if not, the size of the icon is adjusted to be consistent with the size of the icon of the target model, or an adjustment proportion of the size can be set, and the size of the obtained icon is adjusted according to the adaptive parameters and the adjustment proportion, so that the obtained icon is matched with the icon of the target model and has a uniform style with the size of the icon of the target model. Or when the adaptive parameter is color, firstly identifying the color of the obtained icon, then comparing the color with the color of the icon of the target model, and adjusting the color to be consistent with the color of the icon of the target model, thereby keeping consistency, wherein the adaptive parameter is shape.
Of course, the adaptation parameter may be the size dimension of the icon of the target model alone, or a combination of the size dimension and the color, or a combination of the size dimension, the color, and the shape. When the adaptation parameter is the size of the icon of the target model alone, the obtained other icons only need to be compared and adjusted in size. When the adaptation parameter is a combination of size and color, a comparison and adjustment of both size and color is required. When the adaptation parameter is a combination of size, color and shape, the size, color and shape need to be adjusted in contrast.
Fig. 6 is a third schematic diagram illustrating a unified style processing of icons according to an embodiment of the present invention, as shown in fig. 6, various forms exist for applying icon shapes, and in order to unify one shape and improve the aesthetic feeling, a completion processing is performed on the icons. The icon a is transformed into an icon b by a complementary color, and then is clipped into an icon c to uniformly apply the icon shape. Reading image pixels line by line, finding a first opaque pixel P, and marking the pixel position as (x, y); through the opaque pixel P and the position (x, y) thereof, a candidate pixel S and a complementary color rule are calculated according to a predetermined algorithm, and the transparent pixel is subjected to complementary processing. For example, a manner in which the complementary color rule is column-wise is calculated according to a predetermined algorithm, and then a result map of the complementary colors of the candidate pixels is used.
Fig. 7 is a fourth schematic diagram illustrating a unified style processing of icons according to an embodiment of the present invention, as shown in fig. 7, various forms exist for applying icon shapes, and in order to unify the shapes into one shape and improve the aesthetic feeling, the icon is subjected to a completion processing. And completing the icon a or the icon b into a uniform application icon shape. Reading image pixels line by line, finding a first opaque pixel P, and marking the pixel position as (x, y); through the opaque pixel P and the position (x, y) thereof, a candidate pixel S and a complementary color rule are calculated according to a predetermined algorithm, and the transparent pixel is subjected to complementary processing.
According to another aspect of the present invention, there is also provided an icon processing apparatus, and fig. 8 is a block diagram of an icon processing apparatus according to an embodiment of the present invention, as shown in fig. 8, including:
a determining module 82, configured to read pixel points of the icon line by line, and determine a first opaque pixel point of each line;
a calculating module 84, configured to calculate, according to the first opaque pixel point, a color-complementing rule for performing color-complementing processing on the icon through a predetermined algorithm;
a complementary color processing module 86, configured to perform complementary color processing on the icon according to the calculated complementary color rule;
and a clipping module 88, configured to clip the icon after the color complementing processing into an icon of the target model.
Fig. 9 is a block diagram one of an icon processing apparatus according to a preferred embodiment of the present invention, and as shown in fig. 9, the determining module 82 includes:
a reading unit 92, configured to read pixel values of pixel points in each row of the icon;
the first determining unit 94 is configured to determine a pixel point as the first opaque pixel point when a pixel value of the pixel point is 255.
Fig. 10 is a block diagram ii of the icon processing apparatus according to the preferred embodiment of the present invention, and as shown in fig. 10, the calculating module 84 includes:
a second determining unit 102, configured to determine a candidate pixel point according to a position of the first opaque pixel point;
and the calculating unit 104 is configured to calculate the complementary color rule according to the candidate pixel point through a predetermined algorithm.
Optionally, the second determining unit 102 includes:
a first determining subunit, configured to determine, according to a position of the first opaque pixel point P (x, y), N opaque pixel points Pi, where N is an integer greater than 3, and i is equal to N; when N is 12, 4 pixels in the same row are P1(x +1, y), P2(x +3, y), P3(x +2, y), and P4(x +4, y), 4 pixels in the same column are P5(x, y +1), P6(x, y +2), P7(x, y +3), and P8(x, y +4), and 4 pixels in the diagonal are P9(x +1, y +1), P10(x +2, y +2), P11(x +3, y +3), and P12(x +4, y + 4);
a calculating subunit, configured to calculate a mean value M1 of pixel values of P1, P2, P3, P4, a mean value M2 of pixel values of P5, P6, P7, P8, and a mean value M3 of pixel values of P9, P10, P11, P12;
and the second determining subunit is used for calculating the difference between the pixel value of the first opaque pixel point P (x, y) and M1, M2 and M3, and determining the value with the minimum difference as the candidate pixel point.
Optionally, the computing unit 104 is further configured to
In the case where the value of the minimum difference is M1, it is determined to perform completion in a row manner;
in the case where the value of the minimum difference is M2, it is determined that completion is performed in a columnar manner;
in the case where the value of the minimum difference is M3, it is determined that completion is performed in a diagonal manner.
Fig. 11 is a block diagram three of the icon processing apparatus according to the preferred embodiment of the present invention, and as shown in fig. 11, the cropping module 88 includes:
an obtaining unit 112, configured to obtain relevant parameters of an icon of the target model, where the relevant parameters include four corners and four radians of the icon of the target model;
and a clipping unit 114, configured to clip the icon after the color complementing processing into an icon of the target model according to the relevant parameter.
According to another aspect of the embodiments of the present invention, there is also provided a terminal including one of the above-mentioned apparatuses.
According to the embodiment of the invention, pixel points of the icon are read line by line, the first opaque pixel point of each line is determined, the color complementing rule for performing color complementing processing on the icon is calculated according to the preset algorithm, the color complementing processing is performed on the icon according to the calculated color complementing rule, and the icon after color complementing processing is cut into the icon of the target model, so that the problem that the operation steps for synthesizing the icon into a unified style in the related technology are complicated is solved, the icon is simply and quickly cut into the icon of the target model after the color complementing processing is performed on the transparent pixel region, and the user experience is improved.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
It will be apparent to those skilled in the art that the modules or steps of the present invention described above may be implemented by a general purpose computing device, they may be centralized on a single computing device or distributed across a network of multiple computing devices, and alternatively, they may be implemented by program code executable by a computing device, such that they may be stored in a storage device and executed by a computing device, and in some cases, the steps shown or described may be performed in an order different than that described herein, or they may be separately fabricated into individual integrated circuit modules, or multiple ones of them may be fabricated into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (7)

1. An icon processing method, comprising:
reading pixel points of the icon line by line, and determining a first opaque pixel point of each line;
calculating a color complementing rule for performing color complementing treatment on the icon according to the first opaque pixel point through a preset algorithm;
performing color complementing treatment on the icon according to the calculated color complementing rule;
cutting the icon subjected to color complementing processing into an icon of a target model;
calculating a color complementing rule for performing color complementing processing on the icon according to the first opaque pixel point through a preset algorithm, wherein the color complementing rule comprises the following steps:
determining a candidate pixel point according to the position of the first opaque pixel point;
calculating the complementary color rule through a preset algorithm according to the candidate pixel points;
determining a candidate pixel point by the location of the first opaque pixel point comprises:
determining N opaque pixel points Pi according to the position of the first opaque pixel point P (x, y), wherein N is an integer greater than 3, and i is N;
when N is 12, 4 pixels in the same row are P1(x +1, y), P2(x +2, y), P3(x +3, y), and P4(x +4, y), 4 pixels in the same column are P5(x, y +1), P6(x, y +2), P7(x, y +3), and P8(x, y +4), and 4 pixels in the diagonal are P9(x +1, y +1), P10(x +2, y +2), P11(x +3, y +3), and P12(x +4, y + 4);
calculating a mean value M1 of pixel values of P1, P2, P3 and P4, a mean value M2 of pixel values of P5, P6, P7 and P8, and a mean value M3 of pixel values of P9, P10, P11 and P12;
and calculating the difference value between the pixel value of the first opaque pixel point P (x, y) and M1, M2 and M3, and determining the value with the minimum difference value as the candidate pixel point.
2. The method of claim 1, wherein pixel points of the icons are read line by line, and wherein determining the first opaque pixel point for each line comprises:
reading the pixel value of the pixel point of each row of the icon;
and when the pixel value of the pixel point is 255, determining the pixel point as the first opaque pixel point.
3. The method of claim 1, wherein calculating the color-complementing rule according to the candidate pixel point by a predetermined algorithm comprises:
in the case where the value of the minimum difference is M1, it is determined to perform completion in a row manner;
in the case where the value of the minimum difference is M2, it is determined that completion is performed in a columnar manner;
in the case where the value of the minimum difference is M3, it is determined that completion is performed in a diagonal manner.
4. The method of any of claims 1-3, wherein clipping the complementary color processed icon to an icon of a target model comprises:
acquiring relevant parameters of an icon of the target model, wherein the relevant parameters comprise four corners and four radians of the icon of the target model;
and cutting the icon subjected to color complementing processing into an icon of a target model according to the related parameters.
5. An icon processing apparatus, comprising:
the determining module is used for reading pixel points of the icons line by line and determining the first opaque pixel point of each line;
the calculation module is used for calculating a color complementing rule for performing color complementing processing on the icon according to the first opaque pixel point through a preset algorithm;
the complementary color processing module is used for performing complementary color processing on the icon according to the calculated complementary color rule;
the cutting module is used for cutting the icon subjected to color complementing processing into an icon of the target model;
calculating a color complementing rule for performing color complementing processing on the icon according to the first opaque pixel point through a preset algorithm, wherein the color complementing rule comprises the following steps:
determining a candidate pixel point according to the position of the first opaque pixel point;
calculating the complementary color rule through a preset algorithm according to the candidate pixel points;
determining a candidate pixel point by the location of the first opaque pixel point comprises:
determining N opaque pixel points Pi according to the position of the first opaque pixel point P (x, y), wherein N is an integer greater than 3, and i is N;
when N is 12, 4 pixels in the same row are P1(x +1, y), P2(x +2, y), P3(x +3, y), and P4(x +4, y), 4 pixels in the same column are P5(x, y +1), P6(x, y +2), P7(x, y +3), and P8(x, y +4), and 4 pixels in the diagonal are P9(x +1, y +1), P10(x +2, y +2), P11(x +3, y +3), and P12(x +4, y + 4);
calculating a mean value M1 of pixel values of P1, P2, P3 and P4, a mean value M2 of pixel values of P5, P6, P7 and P8, and a mean value M3 of pixel values of P9, P10, P11 and P12;
and calculating the difference value between the pixel value of the first opaque pixel point P (x, y) and M1, M2 and M3, and determining the value with the minimum difference value as the candidate pixel point.
6. The apparatus of claim 5, wherein the cropping module comprises:
the acquisition unit is used for acquiring relevant parameters of the icon of the target model, wherein the relevant parameters comprise four corners and four radians of the icon of the target model;
and the cutting unit is used for cutting the icon subjected to color complementing processing into the icon of the target model according to the related parameters.
7. A terminal, characterized in that it comprises the apparatus of any of claims 5 to 6.
CN201710025502.3A 2017-01-13 2017-01-13 Icon processing method and device and terminal Active CN106843649B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710025502.3A CN106843649B (en) 2017-01-13 2017-01-13 Icon processing method and device and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710025502.3A CN106843649B (en) 2017-01-13 2017-01-13 Icon processing method and device and terminal

Publications (2)

Publication Number Publication Date
CN106843649A CN106843649A (en) 2017-06-13
CN106843649B true CN106843649B (en) 2020-07-03

Family

ID=59123478

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710025502.3A Active CN106843649B (en) 2017-01-13 2017-01-13 Icon processing method and device and terminal

Country Status (1)

Country Link
CN (1) CN106843649B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107423066A (en) * 2017-07-27 2017-12-01 深圳依偎控股有限公司 A kind of amending method of application icon pattern and modification device
CN109389659B (en) * 2018-09-11 2023-08-25 广州视源电子科技股份有限公司 Rendering method and device of mathematical formula in PPT, storage medium and terminal equipment

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102289353A (en) * 2011-09-26 2011-12-21 宇龙计算机通信科技(深圳)有限公司 Terminal and icon management method
CN103389856A (en) * 2013-07-22 2013-11-13 广东欧珀移动通信有限公司 Icon display method and system

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102541414A (en) * 2010-12-28 2012-07-04 英华达(上海)科技有限公司 Mobile terminal device capable of automatically switching operation mode
CN102932519B (en) * 2011-08-08 2016-06-29 中兴通讯股份有限公司 The display packing of a kind of terminal interface and terminal
CN106201212B (en) * 2016-07-19 2019-05-03 厦门美图移动科技有限公司 A kind of generation method of application icon, device and mobile terminal

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102289353A (en) * 2011-09-26 2011-12-21 宇龙计算机通信科技(深圳)有限公司 Terminal and icon management method
CN103389856A (en) * 2013-07-22 2013-11-13 广东欧珀移动通信有限公司 Icon display method and system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
第六章-图像变换-卷积边界(cvCopyMakeBorder);hitwengqi;《CSDN》;20111016;全文 *

Also Published As

Publication number Publication date
CN106843649A (en) 2017-06-13

Similar Documents

Publication Publication Date Title
CN105426097B (en) Real-time split screen size adjusting method and split screen device
CN105468158B (en) Color adjustment method and mobile terminal
CN104750420A (en) Screen capturing method and device
CN106651867B (en) Method, device and terminal for realizing interactive image segmentation
CN107092418B (en) Terminal and method for operating application floating window
CN106648324B (en) Hidden icon control method and device and terminal
CN106657579B (en) Content sharing method and device and terminal
CN106372264B (en) Map data migration device and method
CN106534560B (en) Mobile terminal control device and method
CN106455009B (en) Network searching device and method
CN105791541B (en) Screenshot method and mobile terminal
CN109168029B (en) Method, device and computer-readable storage medium for adjusting resolution
CN106873981B (en) Icon processing method and device and terminal
CN104639428B (en) Self-adaptive method for session scene in instant messaging and mobile terminal
CN107197084B (en) Method for projection between mobile terminals and first mobile terminal
CN106843649B (en) Icon processing method and device and terminal
CN107025158B (en) Sliding operation testing method and device and terminal
CN106897044B (en) Screen color temperature consistency fault-tolerant method and terminal
CN107071275B (en) Image synthesis method and terminal
CN106658116B (en) Play control method, device and terminal
CN106550116B (en) Interface display device and method and mobile terminal
CN106569670B (en) Device and method for processing application
CN105094733B (en) Split screen display method and device
CN109041197B (en) Communication method of terminal, terminal and computer readable storage medium
CN106896988B (en) Application icon alignment device, terminal and method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right

Effective date of registration: 20200603

Address after: Room 601, floor 6, building 1, Lane ditch 1, Haidian District, Beijing 100089

Applicant after: BEIJING SHUKE WANGWEI TECHNOLOGY Co.,Ltd.

Address before: 518057 Guangdong Province, Shenzhen high tech Zone of Nanshan District City, No. 9018 North Central Avenue's innovation building A, 6-8 layer, 10-11 layer, B layer, C District 6-10 District 6 floor

Applicant before: NUBIA TECHNOLOGY Co.,Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant