CN107562447B - Picture processing device and method and user terminal - Google Patents

Picture processing device and method and user terminal Download PDF

Info

Publication number
CN107562447B
CN107562447B CN201610512204.2A CN201610512204A CN107562447B CN 107562447 B CN107562447 B CN 107562447B CN 201610512204 A CN201610512204 A CN 201610512204A CN 107562447 B CN107562447 B CN 107562447B
Authority
CN
China
Prior art keywords
picture
color
display state
original picture
template
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
CN201610512204.2A
Other languages
Chinese (zh)
Other versions
CN107562447A (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.)
Alibaba China Co Ltd
Original Assignee
Alibaba China 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 Alibaba China Co Ltd filed Critical Alibaba China Co Ltd
Priority to CN201610512204.2A priority Critical patent/CN107562447B/en
Publication of CN107562447A publication Critical patent/CN107562447A/en
Application granted granted Critical
Publication of CN107562447B publication Critical patent/CN107562447B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the invention provides a picture processing device, a picture processing method and a user terminal, wherein the picture processing method comprises the following steps: acquiring an original picture, wherein the original picture comprises shape data; extracting shape data of the original picture to generate a picture template of the original picture; and coating the picture template with a color matched with the current display state. The embodiment of the invention realizes the multiplexing of different skins/themes by template processing the original picture and coloring the code, reduces the size of an application program installation package, reduces the performance overhead of disk reading, and reduces the workload of research personnel and user interface designers.

Description

Picture processing device and method and user terminal
Technical Field
The invention relates to the technical field of webpage picture processing, in particular to a picture processing device and method and a user terminal.
Background
Many applications (apps) in the market have introduced functions of changing skins and switching themes, where different skins/themes need to correspond to different pictures, and even a relatively simple picture, several different pictures need to be configured according to different skins/themes. Moreover, for some pictures of the control, different states (such as a normal state, a highlighted state, a selected state, a prohibited state, and the like) of the control are further distinguished, and multiple pictures are configured, so that the configuration of multiple pictures can affect the size of an application program installation package, and the performance overhead of reading pictures from a disk can be increased when skin/theme is switched.
Disclosure of Invention
The invention aims to provide a picture processing device, a picture processing method and a user terminal, and aims to solve the technical problems that the space of an application program installation package is occupied, and the disk reading overhead is large in the page loading process.
In order to achieve the above purpose, the embodiment of the present invention adopts the following technical solutions:
in a first aspect, an embodiment of the present invention provides an image processing apparatus, where the image processing apparatus includes: an acquisition module, configured to acquire an original picture, where the original picture includes shape data; the processing module is used for extracting shape data of the original picture to generate a picture template of the original picture; and the color coating module is used for coating the color matched with the current display state on the picture template.
In a second aspect, an embodiment of the present invention further provides an image processing method, where the image processing method includes: acquiring an original picture, wherein the original picture comprises shape data; extracting shape data of the original picture to generate a picture template of the original picture; and coating the picture template with a color matched with the current display state.
In a third aspect, an embodiment of the present invention further provides a user terminal, where the user terminal includes: a memory; a memory; a processor; and a picture processing device installed in the memory and including one or more software functional modules executed by the processor, the picture processing device comprising: an acquisition module, configured to acquire an original picture, where the original picture includes shape data; the processing module is used for extracting shape data of the original picture to generate a picture template of the original picture; and the color coating module is used for coating the color matched with the current display state on the picture template.
The embodiment of the invention provides a picture processing device, a picture processing method and a user terminal, wherein the picture processing method comprises the steps of obtaining an original picture, wherein the original picture comprises shape data; extracting shape data of the original picture to generate a picture template of the original picture; and coating the picture template with a color matched with the current display state. The embodiment of the invention ignores the color data of the original picture in the rendering stage by performing template processing on the original picture, and realizes multiplexing of different skins/themes by using the codes for coloring, thereby adapting to the display effects of different skins/themes. The method has the advantages that multiple pictures in different display states are not required to be stored in the application program installation package, the size of the application program installation package is reduced, the workload of research personnel and user interface designers is reduced, the performance overhead of disk reading is reduced, and the running efficiency of the application program is optimized.
In order to make the aforementioned and other objects, features and advantages of the present invention comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained according to the drawings without inventive efforts.
FIG. 1 is a schematic diagram illustrating an application environment of an image processing apparatus, a method and a user terminal according to an embodiment of the present invention;
fig. 2 is a block diagram illustrating a structure of a user terminal according to an embodiment of the present invention;
FIG. 3 is a block diagram of a picture processing apparatus according to an embodiment of the present invention;
FIG. 4 is a flow chart of a method for processing pictures according to an embodiment of the present invention;
fig. 5 and 6 show schematic diagrams of pictures in different display states.
Detailed Description
The image processing device, the image processing method and the user terminal provided by the embodiment of the invention can be applied to the application environment shown in FIG. 1. As shown in fig. 1, the user terminal 100 and the remote server 200 are located in a wireless network or a wired network 300, and the user terminal 100 and the remote server 200 perform data interaction through the wireless network or the wired network 300. In the embodiment of the present invention, at least one Application (APP) is installed in the user terminal 100, and corresponds to the remote server 200 to provide services for the user.
In the embodiment of the present invention, the user terminal 100 is preferably a mobile terminal device, and may include a smart phone, a tablet computer, an e-book reader, a laptop portable computer, a car-mounted computer, a wearable mobile terminal, and so on.
Fig. 2 shows a block diagram of a user terminal 100 applicable to an embodiment of the present invention. As shown in fig. 2, the user terminal 100 includes a picture processing apparatus 400, a memory 102, a storage controller 104, one or more (only one shown) processors 106, a peripheral interface 108, a radio frequency module 110, an audio module 112, a touch screen 114, and the like. These components communicate with each other via one or more communication buses/signal lines 116. The picture processing apparatus 400 includes at least one software function module that may be stored in the memory 102 in the form of software or firmware (firmware) or solidified in an Operating System (OS) of the user terminal 100.
The memory 102 may be used to store software programs and modules, such as program instructions/modules corresponding to the image processing apparatus and method according to the embodiments of the present invention, and the processor 106 executes various functional applications and data processing, such as the image processing method according to the embodiments of the present invention, by running the software programs and modules stored in the memory 102.
The memory 102 may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. Access to the memory 102 by the processor 106, and possibly other components, may be under the control of the memory controller 104.
The peripheral interface 108 couples various input/output devices to the processor 106 as well as to the memory 102. In some embodiments, the peripheral interface 108, the processor 106, and the memory controller 104 may be implemented in a single chip. In other examples, they may be implemented separately from the individual chips.
The rf module 110 is used for receiving and transmitting electromagnetic waves, and implementing interconversion between the electromagnetic waves and electrical signals, so as to communicate with a communication network or other devices.
Audio module 112 provides an audio interface to a user that may include one or more microphones, one or more speakers, and audio circuitry.
The touch screen 114 provides both an output and an input interface between the user terminal 100 and a user. In the present embodiment, the touch screen 114 supports single-point and multi-point touch operations, for example, the touch screen 114 may be a capacitive touch screen or a resistive touch screen supporting single-point and multi-point touch operations. Supporting single-touch and multi-touch operations is that the touch screen 114 can sense touch operations from one or more locations on the touch screen 11 simultaneously and deliver the sensed multi-touch operations to the processor 106 for processing.
It is to be understood that the structure shown in fig. 2 is merely illustrative, and the user terminal 100 may also include more or fewer components than shown in fig. 2, or have a different configuration than shown in fig. 2. The components shown in fig. 2 may be implemented in hardware, software, or a combination thereof.
The image processing device, the image processing method and the terminal provided by the embodiment of the invention provide a new image processing method. The image processing device and the method can be suitable for platforms such as an Android operating system, an iOS operating system, a Windows Phone operating system and the like. Specifically, the image processing apparatus and method provided by the embodiment of the present invention can be applied to various application programs (such as a UC browser client, a surf microblog client, and the like) of the user terminal 100, so as to perform image processing when the display states (such as a daytime mode and a nighttime mode) of the application programs are switched, thereby implementing switching of original images (pages, controls, and the like) on the application programs.
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. The components of embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present invention, presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present invention without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures. Meanwhile, in the description of the present invention, the terms "first", "second", and the like are used only for distinguishing the description, and are not to be construed as indicating or implying relative importance.
First embodiment
Referring to fig. 3, a block diagram of a picture processing apparatus 400 according to an embodiment of the invention is shown. The image processing apparatus 400 according to an embodiment of the present invention includes: an acquisition module 410, a processing module 420, a calling module 430, and a painting module 440.
The obtaining module 410 is used for obtaining an original picture.
In an embodiment of the present invention, the application may configure a plurality of original pictures, and the original pictures may be pictures of pages (such as theme/skin) corresponding to different display states (such as day mode, night mode, etc.) of the application, or pictures of controls (such as home page control, return control, add control) of the application in different display states (such as selected state, highlighted state, and disabled state). The original picture may include color data for characterizing a color of the original picture and shape data for characterizing a shape of the original picture. The original picture may be stored in an installation package of the application program, downloaded from the remote server 200 to the user terminal 100 for display, or temporarily downloaded from the remote server 200. In addition, the original picture may also be a picture stored locally in the user terminal 100, and the source of the original picture is not limited in the present invention.
The processing module 420 is configured to extract shape data of the original picture to generate a picture template of the original picture.
In the embodiment of the invention, the original pictures in different display states have different color data, but have the same shape data. For example, a certain original picture has different color data but the same shape data when the display state is the daytime mode and when the display state is the nighttime mode; an original picture has different color data in the selected state, the highlighted state, and the disabled state, but the same shape data. The original picture may be a picture in any display state.
The processing module 420 may separate the color data and the shape data of the original picture from the original picture when the original picture is obtained for the first time, delete the color data of the original picture, and retain the shape data of the original picture. Therefore, the original picture after being processed by the processing module 420 contains only shapes and no colors. In the embodiment of the present invention, the original picture with the color data deleted and the shape data retained may be referred to as a picture template (e.g., a page or a control with the color data deleted). The picture template may be stored in a storage module of the user terminal 100, which may be the memory 102 of the user terminal 100, for later recall.
The calling module 430 is used for calling the picture template and the color code matched with the current display state in response to the trigger signal.
In the embodiment of the invention, before a picture is loaded on a page of an application program, a color code is matched according to the current display state of the picture after loading in advance and is stored in a storage module, and the color code can be a computer program code for representing colors.
In the embodiment of the present invention, the trigger signal may be generated according to a click operation of a user, or output by the light sensor according to ambient light.
For example, the user may generate the trigger signal by clicking a control, the current display state may be a control display state (e.g., selected state, highlighted state, and disabled state), and the picture template includes the control after deleting the color data. The calling module 430 may call the control from which the color data is deleted and the color code matching with the display state of the control in response to a trigger signal generated by a user clicking the control. For example, the user clicks a control of the application to display the control in the selected state, and the invoking module 430 may invoke the control with the color data deleted and the color code matching with the selected state of the control in response to a trigger signal generated by a clicking operation of the user on the control.
For another example, the user may click an operation button to generate a trigger signal, the current display state may be a page display state (e.g., a day mode or a night mode), and the picture template may be a page from which the color data is deleted. The calling module 430 may call the page after the deletion of the color data and the color code matching with the display state of the page in response to a trigger signal generated by a user clicking an operation button. For example, the user clicks the operation button to switch the page display state to the night mode, and the invoking module 430 may invoke the page with the color data deleted and the color code matched with the night mode in response to a trigger signal generated by the user clicking the operation button. The operation buttons may be a virtual button and a physical button, wherein the virtual button may also be changed in color as the control described above.
For another example, the photosensitive sensor may output a trigger signal according to the ambient light, the current display state includes a page display state (e.g., a daytime mode and a nighttime mode), and the picture template includes a page from which the color data is deleted. The calling module 430 may call the page with the deleted color data and the color code matched with the display state of the page in response to a trigger signal output by the photosensor according to ambient light. For example, when the brightness of the ambient light is less than a threshold, the page display status is a night mode, the photosensor outputs a first trigger signal, and the invoking module 430 may invoke the page with deleted color data and the color code matched with the night mode in response to the first trigger signal. When the brightness of the ambient light is greater than the threshold, the page display state is a daytime mode, the photosensitive sensor outputs a second trigger signal, and the calling module 430 may respond to the second trigger signal to call the page from which the color data is deleted and the color code matched with the daytime mode.
The calling module 430 calls the picture template and the color code matching the current display state for subsequent painting.
The color coating module 440 is configured to coat the picture template with a color matching the current display status by using the color code.
In the embodiment of the present invention, the color painting module 440 may paint the image template with the color code called by the calling module 430, so that the color of any original image may be changed to a color matching the current display state by the color painting module 440.
For example, if the original picture is red in color and square in shape, and is preset to be displayed as green (with the shape unchanged) in the daytime mode of the application program, the obtaining module 410 first obtains the original picture, the processing module 420 processes the original picture, deletes color data (red), retains shape data (square), generates a picture template as shape data including only a circular shape, and stores the picture template in the storage module of the user terminal 100. When the user clicks the operation button to start the application program, the default application program is in the daytime mode when the application program is started, the calling module 430 calls a color code representing green matched with the daytime mode from the storage module of the user terminal 100, and calls the picture template of the picture, and the coloring module 440 colors the picture template of the picture by using the color code to paint the picture template with green matched with the daytime mode. Thus, the original picture can be displayed in green in the daytime mode of the application.
For another example, when the photosensor detects that the brightness of the ambient light is less than a threshold, the current display state is a night mode, and it is preset that the picture is displayed as blue in the night mode. The photosensitive sensor outputs a first trigger signal, the calling module 430 calls a color code representing blue from a storage module of the user terminal 100 in response to the first trigger signal, and calls a processed picture template of the picture, and the painting module 440 paints the picture template of the picture with the color code to paint the picture template with blue matching the night mode. Thus, the picture can be displayed as blue in the night mode.
For another example, referring to fig. 5 and fig. 6, the control 500 in the application page is displayed in black in the normal display state (as shown in fig. 5), and the control 500 is preset to be displayed in gray when clicked (as shown in fig. 6). When the user clicks the control in the page of the application program, the calling module 430 calls a color code representing gray from the storage module of the user terminal 100, and calls a processed picture template corresponding to the control 500, and the painting module 440 paints the picture template of the control 500 with the color code to change the control 500 into gray. Thus, when control 500 is clicked, control 500 can be displayed in gray.
It should be noted that, in the above embodiment, the original picture with a pure color and a regular pattern in shape is described, and the painted color is the pure color, but in other embodiments of the present invention, the original picture may not be limited to the above, for example, the original picture may also be a color, an irregular pattern in shape, or a painted color may also be a color, and only a color code corresponding to the painted color needs to be called according to a rule matched in advance.
Second embodiment
Referring to fig. 4, a flowchart of a picture processing method according to an embodiment of the present invention is shown. The picture processing method provided by the embodiment of the invention comprises the following steps:
step S100, an original picture is acquired.
In the embodiment of the present invention, step S100 may be performed by the obtaining module 410. The application may configure a plurality of original pictures, which may be pictures of pages (e.g., theme/skin) corresponding to different display states of the application (e.g., day mode, night mode, etc.), or pictures of controls of the application (e.g., home page control, return control, add control) in different display states (e.g., selected state, highlighted state, and disabled state). The original picture may include color data for characterizing a color of the original picture and shape data for characterizing a shape of the original picture. The original picture may be stored in an installation package of the application program, downloaded from the remote server 200 to the user terminal 100 for display, or temporarily downloaded from the remote server 200. In addition, the original picture may also be a picture stored locally in the user terminal 100, and the source of the original picture is not limited in the present invention.
Step S200, extracting the shape data of the original picture to generate a picture template of the original picture.
In the embodiment of the present invention, step S200 may be performed by the processing module 420. The processing module 420 may separate the color data and the shape data of the original picture from the original picture when the original picture is obtained for the first time, delete the color data of the original picture, and retain the shape data of the original picture. Therefore, the original picture after being processed by the processing module 420 contains only shapes and no colors. In the embodiment of the present invention, the original picture with the color data deleted and the shape data retained may be referred to as a picture template (e.g., a page or a control with the color data deleted). The picture template may be stored in a storage module of the user terminal 100, which may be the memory 102 of the user terminal 100, for later recall.
And step S300, responding to a trigger signal, and calling the picture template and the color code matched with the current display state.
In the embodiment of the present invention, step S300 may be performed by the calling module 430. In the embodiment of the invention, before a picture is loaded on a page of an application program, a color code is matched according to the current display state of the picture after loading in advance and is stored in a storage module, and the color code can be a computer program code for representing colors.
In the embodiment of the present invention, the trigger signal may be generated according to a click operation of a user, or output by the light sensor according to ambient light.
For example, the user may generate the trigger signal by clicking a control, the current display state may be a control display state (e.g., selected state, highlighted state, and disabled state), and the picture template includes the control after deleting the color data. The calling module 430 may call the control from which the color data is deleted and the color code matching with the display state of the control in response to a trigger signal generated by a user clicking the control. For example, the user clicks a control of the application to display the control in the selected state, and the invoking module 430 may invoke the control with the color data deleted and the color code matching with the selected state of the control in response to a trigger signal generated by a clicking operation of the user on the control.
For another example, the user may click an operation button to generate a trigger signal, the current display state may be a page display state (e.g., a day mode or a night mode), and the picture template may be a page from which the color data is deleted. The calling module 430 may call the page after the deletion of the color data and the color code matching with the display state of the page in response to a trigger signal generated by a user clicking an operation button. For example, the user clicks the operation button to switch the page display state to the night mode, and the invoking module 430 may invoke the page with the color data deleted and the color code matched with the night mode in response to a trigger signal generated by the user clicking the operation button. The operation buttons may be a virtual button and a physical button, wherein the virtual button may also be changed in color as the control described above.
For another example, the photosensitive sensor may output a trigger signal according to the ambient light, the current display state includes a page display state (e.g., a daytime mode and a nighttime mode), and the picture template includes a page from which the color data is deleted. The calling module 430 may call the page with the deleted color data and the color code matched with the display state of the page in response to a trigger signal output by the photosensor according to ambient light. For example, when the brightness of the ambient light is less than a threshold, the page display status is a night mode, the photosensor outputs a first trigger signal, and the invoking module 430 may invoke the page with deleted color data and the color code matched with the night mode in response to the first trigger signal. When the brightness of the ambient light is greater than the threshold, the page display state is a daytime mode, the photosensitive sensor outputs a second trigger signal, and the calling module 430 may respond to the second trigger signal to call the page from which the color data is deleted and the color code matched with the daytime mode.
The calling module 430 calls the picture template and the color code matching the current display state for subsequent painting.
And step S400, coating the color matched with the current display state on the picture template by using the color code.
In the embodiment of the present invention, step S400 may be performed by the painting module 440. The color painting module 440 can paint the picture template with the color code called by the calling module 430, so that the color of any original picture can be changed to a color matching the current display state through the color painting module 440.
According to the picture processing device, the picture processing method and the user terminal provided by the embodiment of the invention, an original picture is obtained, wherein the original picture comprises color data and shape data; extracting shape data of the original picture to generate a picture template of the original picture; and coating the picture template with a color matched with the current display state. The embodiment of the invention ignores the color data of the original picture in the rendering stage by performing template processing on the original picture, and realizes multiplexing of different skins/themes by using the codes for coloring, thereby adapting to the display effects of different skins/themes. The method has the advantages that multiple pictures in different display states are not required to be stored in the application program installation package, the size of the application program installation package is reduced, the workload of research personnel and user interface designers is reduced, the performance overhead of disk reading is reduced, and the running efficiency of the application program is optimized.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method can be implemented in other ways. The apparatus embodiments described above are merely illustrative, and for example, the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, the functional modules in the embodiments of the present invention may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, 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 identical elements in a process, method, article, or apparatus that comprises the element.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention. It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.

Claims (11)

1. A picture processing apparatus, characterized in that the picture processing apparatus comprises:
an acquisition module, configured to acquire an original picture, where the original picture includes shape data;
the processing module is used for extracting shape data of the original picture to generate a picture template of the original picture;
the color coating module is used for coating the color matched with the current display state on the picture template;
the original picture also comprises color data, and the processing module is also used for separating the color data and the shape data of the original picture from the original picture and deleting the color data of the original picture so as to reserve the shape data of the original picture;
the picture processing apparatus further includes: and the calling module is used for responding to a trigger signal to call the picture template and the color code matched with the current display state.
2. The picture processing apparatus according to claim 1, wherein the trigger signal is generated according to a click operation of a user, the current display state includes a page display state, the picture template includes a page after deletion of color data, and the calling module is configured to call the page after deletion of color data and a color code matching the page display state in response to the trigger signal generated by the click operation of the operation button by the user.
3. The image processing apparatus according to claim 1, wherein the trigger signal is output by the light sensor according to an ambient light, the current display status comprises a page display status, the image template comprises a page from which color data is deleted, and the calling module is configured to call the page from which color data is deleted and a color code matching with the page display status in response to the trigger signal output by the light sensor according to the ambient light.
4. The picture processing apparatus according to claim 1, wherein the trigger signal is generated according to a click operation of a user, the current display state includes a control display state, the picture template includes a control from which color data is deleted, and the invoking module is configured to invoke the control from which color data is deleted and a color code matching the control display state in response to the trigger signal generated by the click operation of the user on the control.
5. The picture processing apparatus of claim 1, wherein the color application module is further configured to apply the picture template with a color matching a current display state using the color code.
6. A picture processing method, characterized in that the picture processing method comprises:
acquiring an original picture, wherein the original picture comprises shape data;
extracting shape data of the original picture to generate a picture template of the original picture;
coating the picture template with a color matched with the current display state;
the picture processing method further comprises the steps of separating color data and shape data of the original picture from the original picture, and deleting the color data of the original picture to reserve the shape data of the original picture;
the picture processing method further comprises the following steps: and responding to a trigger signal to call the picture template and the color code matched with the current display state.
7. The picture processing method according to claim 6, wherein the trigger signal is generated according to a click operation of a user, the current display state comprises a page display state, the picture template comprises a page from which color data is deleted, and the picture processing method further comprises: and calling the page after the color data is deleted and the color code matched with the display state of the page by a trigger signal generated by responding to the clicking operation of the user on the operation button.
8. The method of claim 6, wherein the trigger signal is output by a photosensor according to ambient light, the current display state comprises a page display state, the picture template comprises a page from which color data is deleted, and the method further comprises: and calling the page with the deleted color data and the color code matched with the display state of the page according to a trigger signal output by the photosensitive sensor according to ambient light.
9. The picture processing method according to claim 6, wherein the trigger signal is generated according to a click operation of a user, the current display state comprises a control display state, the picture template comprises a control from which color data is deleted, and the picture processing method further comprises: and calling the control with the deleted color data and the color code matched with the display state of the control by a trigger signal generated by responding to the clicking operation of the user on the control.
10. The picture processing method according to claim 6, further comprising: and coating the picture template with a color matched with the current display state by using the color code.
11. A user terminal, characterized in that the user terminal comprises:
a memory;
a processor; and
a picture processing device installed in the memory and including one or more software functional modules executed by the processor, the picture processing device comprising:
an acquisition module, configured to acquire an original picture, where the original picture includes shape data;
the processing module is used for extracting shape data of the original picture to generate a picture template of the original picture;
the color coating module is used for coating the color matched with the current display state on the picture template;
the original picture also comprises color data, and the processing module is also used for separating the color data and the shape data of the original picture from the original picture and deleting the color data of the original picture so as to reserve the shape data of the original picture;
the picture processing apparatus further includes: and the calling module is used for responding to a trigger signal to call the picture template and the color code matched with the current display state.
CN201610512204.2A 2016-06-30 2016-06-30 Picture processing device and method and user terminal Active CN107562447B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610512204.2A CN107562447B (en) 2016-06-30 2016-06-30 Picture processing device and method and user terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610512204.2A CN107562447B (en) 2016-06-30 2016-06-30 Picture processing device and method and user terminal

Publications (2)

Publication Number Publication Date
CN107562447A CN107562447A (en) 2018-01-09
CN107562447B true CN107562447B (en) 2021-07-13

Family

ID=60969753

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610512204.2A Active CN107562447B (en) 2016-06-30 2016-06-30 Picture processing device and method and user terminal

Country Status (1)

Country Link
CN (1) CN107562447B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111381916A (en) * 2018-12-29 2020-07-07 广州市百果园信息技术有限公司 Button masking method, button masking device, button masking medium and computer equipment

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103180873A (en) * 2010-10-29 2013-06-26 欧姆龙株式会社 Image-processing device, image-processing method, and control program
CN104484664A (en) * 2014-12-31 2015-04-01 小米科技有限责任公司 Human face image processing method and device

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102436374B (en) * 2011-09-29 2014-09-10 奇智软件(北京)有限公司 Method capable of customizing skin of user interface
CN104462312A (en) * 2014-11-28 2015-03-25 北京奇虎科技有限公司 Web page displaying method and browser client side
CN105426079B (en) * 2015-11-25 2018-11-23 小米科技有限责任公司 The method of adjustment and device of picture luminance
CN105468158B (en) * 2015-12-22 2020-06-05 亳州鼎源科技信息有限公司 Color adjustment method and mobile terminal
CN105701165B (en) * 2015-12-30 2019-08-13 Oppo广东移动通信有限公司 Browser model switching method and switching device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103180873A (en) * 2010-10-29 2013-06-26 欧姆龙株式会社 Image-processing device, image-processing method, and control program
CN104484664A (en) * 2014-12-31 2015-04-01 小米科技有限责任公司 Human face image processing method and device

Also Published As

Publication number Publication date
CN107562447A (en) 2018-01-09

Similar Documents

Publication Publication Date Title
US20160364888A1 (en) Image data processing method and electronic device supporting the same
KR102329862B1 (en) Method and electronic device for converting color of image
US20150286897A1 (en) Automated techniques for photo upload and selection
US20150269164A1 (en) Electronic device and contact display method therefor
CN108463799B (en) Flexible display of electronic device and operation method thereof
CN107315595B (en) Desktop layout method and device and user terminal
EP2983074B1 (en) Method and apparatus for displaying a screen in electronic devices
EP3163423B1 (en) Method and device for setting background of ui control
US10489048B2 (en) Electronic device and control method of electronic device
KR102586628B1 (en) Electronic Device AND Memory Management Method Thereof
EP3097470B1 (en) Electronic device and user interface display method for the same
US20170090725A1 (en) Selecting at least one graphical user interface item
US20170161047A1 (en) Electronic device and method for improviing installation speed of theme package
KR102607564B1 (en) Method for displying soft key and electronic device thereof
CN104516673A (en) Icon display method, equipment and mobile terminal
KR102536148B1 (en) Method and apparatus for operation of an electronic device
KR102616793B1 (en) Electronic device and method for providing scrren thereof
US10530732B2 (en) Method for using a content subscription list and electronic device supporting the same
CN107562447B (en) Picture processing device and method and user terminal
CN104793937B (en) A kind of startup control method and device
CN106610828B (en) Android system-based GIF animation playing method and device
US10956588B2 (en) Server, electronic device, and method for processing image by electronic device
CN106775445B (en) Data migration method and device
CN109089042B (en) Image processing mode identification method and device, storage medium and mobile terminal
US20180157377A1 (en) Electronic device and method for providing graphic user interface therefor

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
TA01 Transfer of patent application right

Effective date of registration: 20200528

Address after: 310052 room 508, floor 5, building 4, No. 699, Wangshang Road, Changhe street, Binjiang District, Hangzhou City, Zhejiang Province

Applicant after: Alibaba (China) Co.,Ltd.

Address before: 510627 Guangdong city of Guangzhou province Whampoa Tianhe District Road No. 163 Xiping Yun Lu Yun Ping B radio 14 floor tower square

Applicant before: GUANGZHOU UCWEB COMPUTER TECHNOLOGY Co.,Ltd.

GR01 Patent grant
GR01 Patent grant