CN103164210B - Method and device of changing surface of application program interface - Google Patents

Method and device of changing surface of application program interface Download PDF

Info

Publication number
CN103164210B
CN103164210B CN201110425806.1A CN201110425806A CN103164210B CN 103164210 B CN103164210 B CN 103164210B CN 201110425806 A CN201110425806 A CN 201110425806A CN 103164210 B CN103164210 B CN 103164210B
Authority
CN
China
Prior art keywords
interface
application program
skin
reference colours
program interface
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.)
Expired - Fee Related
Application number
CN201110425806.1A
Other languages
Chinese (zh)
Other versions
CN103164210A (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 Oak Pacific Interactive Technology Development Co Ltd
Original Assignee
Beijing Oak Pacific Interactive Technology Development 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 Oak Pacific Interactive Technology Development Co Ltd filed Critical Beijing Oak Pacific Interactive Technology Development Co Ltd
Priority to CN201110425806.1A priority Critical patent/CN103164210B/en
Publication of CN103164210A publication Critical patent/CN103164210A/en
Application granted granted Critical
Publication of CN103164210B publication Critical patent/CN103164210B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Processing Or Creating Images (AREA)
  • Image Processing (AREA)

Abstract

The invention relates to a method and a device of changing the surface of an application program interface. The method of changing the surface of the application program interface includes the steps of dividing the application program interface into a first portion and a second portion, generating a first goal interface based on the goal surface and masking of the first portion, generating a second goal interface based on the goal surface and a standard image of the second portion, and generating a goal interface combining with the first goal interface and the second goal interface. The invention further provides a device of changing the surface of the application program interface.

Description

The method and apparatus for carrying out changing skin to Application Program Interface
Technical field
The embodiments of the present invention are related to Digital Image Processing, and more particularly, to a kind of to application program circle Face carries out the method and apparatus for changing skin.
Background technology
The user that develops into of computer technology provides increasing facility, and these are easily same in enjoyment for users When, gradually start to tend to interface of the hobby according to oneself to customize personalization.For example, for the use of Table top type operating system For family, the color or photo that user can be liked with oneself is used as desktop background.Additionally, increasing application program Start to provide various " skins " (skin) for user's selection.And many application programs also provide a user with the work for making skin Tool, can choose oneself favorite color or picture to generate skin so as to user.
When user changes the skin of application program, needs switch to purported skin from current skin.At this time, it may be necessary to root According to purported skin, and for each pixel in Application Program Interface calculating target pixel value.On the one hand, it is current most Number computer can support the resolution of up to 1280 × 1024 even more highs, if calculating and refreshing Application Program Interface one by one In each pixel, then need longer calculating and refresh time to cause poor Consumer's Experience then.On the other hand, for individual For the portable computing devices such as personal digital assistant, intelligent terminal, due to the restriction of equipment computing capability itself, cause existing skill The skin scheme of changing of art is difficult to reach good visual effect.
Based on drawbacks described above of the prior art, it is desired to be able to provide one kind and efficiently change skin scheme, and expect the party Case can be directed to the Application Program Interface offer of large-size and quickly change skin, and it is also expected to the amount of calculation needed for the program is use up May be little, so as to used in the portable computing devices such as personal digital assistant.
The content of the invention
Therefore, on the premise of expecting that the display for reusing existing application program as far as possible is configured, it is desired to be able to provide a kind of Efficiently change skin scheme.
In an embodiment of the invention, there is provided a kind of method for carrying out changing skin to Application Program Interface, The method includes:Application Program Interface is divided into into Part I and Part II;Based on purported skin and the illiteracy of Part I Version generates first object interface;Standard drawing based on purported skin and Part II generates the second target interface;And combine One target interface and the second target interface are generating target interface.
In an embodiment of the invention, Part I at least includes the background of Application Program Interface, and second Part includes at least one of Application Program Interface control.
In an embodiment of the invention, there is provided a kind of for carrying out changing the device of skin to Application Program Interface, The device includes:For Application Program Interface to be divided into the device of Part I and Part II;For based on purported skin The device at first object interface is generated with the masking-out of Part I;Generate for the standard drawing based on purported skin and Part II The device of the second target interface;And for reference to first object interface and the second target interface generating the dress of target interface Put.
In an embodiment of the invention, Part I at least includes the background of Application Program Interface, and second Part includes at least one of Application Program Interface control.
Using the embodiments of the present invention, can solve to calculate picture one by one for each pixel in Application Program Interface The time-consuming long problem of element value, and one kind can be provided efficiently change skin scheme.By methods and apparatus of the present invention, can be with Amount of calculation and time that reduction is changed needed for skin operation, and strengthen Consumer's Experience.
Description of the drawings
With reference to accompanying drawing and with reference to described further below, the feature of each embodiment of the invention, advantage and other aspects will become Must become apparent from, here shows by way of example, and not by way of limitation some embodiments of the present invention.In the accompanying drawings:
Figure 1A and Figure 1B schematically show respectively the figure of the Application Program Interface for carrying out changing before and after skin to Application Program Interface Show;
Fig. 2 is diagrammatically illustrated according to one embodiment of the present invention for carrying out changing the side of skin to Application Program Interface The flow chart of method;
Fig. 3 diagrammatically illustrates the Part I according to obtained by the method for one embodiment of the present invention is divided and second The schematic diagram for dividing;
Fig. 4 A diagrammatically illustrate a part for the masking-out according to one embodiment of the present invention, and Fig. 4 B are diagrammatically illustrated A part for the pure color target interface calculated according to the masking-out of one embodiment of the present invention;And Fig. 4 C schematically show A part for the picture target interface calculated according to the masking-out of one embodiment of the present invention;
Fig. 5 A to Fig. 5 C diagrammatically illustrate respectively the signal of the target interface generated according to one embodiment of the present invention Figure;
Fig. 6 is diagrammatically illustrated according to one embodiment of the present invention for carrying out changing the dress of skin to Application Program Interface The schematic diagram put;And
Fig. 7 shows the schematic block diagram for being suitable to the computer system for putting into practice embodiment of the present invention.
Specific embodiment
Below with reference to the accompanying drawings the embodiments of the present invention are described in detail.Flow chart and block diagram in accompanying drawing, it is illustrated that press The architectural framework in the cards of system, method and computer program product according to various embodiments of the invention, function and behaviour Make.At this point, each square frame in flow chart or block diagram can represent a part for module, program segment or a code, institute State the executable instruction of the part comprising one or more logic functions for being used to realize regulation of module, program segment or code. It should also be noted that in some realizations alternately, the function of being marked in square frame can also be with different from being marked in accompanying drawing The order of note occurs.For example, two square frames for succeedingly representing can essentially be performed substantially in parallel, and they sometimes can also Perform in the opposite order, this is depending on involved function.It is also noted that block diagram and/or each side in flow chart The combination of frame and block diagram and/or the square frame in flow chart, can be with the function or operation for performing regulation it is special based on hard The system of part is realizing, or can be realized with the combination of computer instruction with specialized hardware.
The principle and spirit of the present invention are described below with reference to some illustrative embodiments.It should be appreciated that providing this A little embodiments are of the invention just for the sake of better understood when those skilled in the art and then realizing, and not with any Mode limits the scope of the present invention.
It should be noted that hereinafter only using application client as the example of application program come illustrate the present invention Each embodiment.But the example is merely for illustrating rather than restriction purpose, methods and apparatus of the present invention and correlation computer Program product can apply to the interface of various application programs, including but not limited in desktop computer, laptop computer, individual number The various application programs performed in the applied environments such as word assistant, mobile terminal, smart phone.
Figure 1A and Figure 1B schematically show respectively the figure of the Application Program Interface for carrying out changing before and after skin to Application Program Interface Show 100A and 100B.Figure 1A shows the acquiescence pure color interface of application program, through observation shows that, interface 100A can include two Part:Control regions, such as including 4 button areas etc. of interface bottom;And background area, such as including interface in the middle part of Main part.It should be noted that control regions are generally by control (for example, the button of interface bottom, the interface top of various sizes Paging label etc.) composition, these control general sizes are less and are inserted into the diverse location at interface.Background area generally takes up Most of region of Application Program Interface, and the most normally shapes in the region are more regular.
Characteristic of the embodiments of the present invention based on various pieces in Application Program Interface, there is provided one kind is efficiently changed Skin scheme.For example, can be divided in the difference of the aspects such as size, complexity based on each several part in Application Program Interface should With the interface of program.For example, can be using region residing for the control of background area and large-size as a part, and for the portion Offer one kind is divided to change skin scheme;Using region residing for the control of remaining reduced size as another part, and offer is changed accordingly Skin scheme;It is respectively directed to after two parts are processed, is changed after skin with being formed in conjunction with data after the process in two parts Application Program Interface.
Figure 1B shows that Application Program Interface is divided into into two parts is processed and interfacial effect after being combined.To apply One advantage of program interface zoning is can to provide suitable scheme based on the characteristics of each region, without The pixel value changed after skin is calculated one by one for each pixel in whole interface.
Specifically, one of the invention embodiment there is provided a kind of for carrying out changing skin to Application Program Interface Method, including:Application Program Interface is divided into into Part I and Part II;Based on purported skin and the illiteracy of Part I Version generates first object interface;Standard drawing based on purported skin and Part II generates the second target interface;And combine One target interface and the second target interface are generating target interface.
Fig. 2 is diagrammatically illustrated according to one embodiment of the present invention for carrying out changing the side of skin to Application Program Interface Flow process Figure 200 of method.In step S202, Application Program Interface is divided into into Part I and Part II.For example, first Dividing can include the region of background area and larger control as described above, and Part II can include less control.
Because the region of Part I is generally large, can aid in changing skin using masking-out.It is using the advantage of masking-out It is not necessarily referring to each pixel and calculates the pixel value changed after skin one by one, although a disadvantage is that, needs manual manufacture masking-out.When need system Make masking-out region it is larger and complex-shaped when, it is also desirable to take more human input.
On the one hand, at zoning, due to already ensuring that the region of Part I including complex control, thus now Masking-out is made for Part I and do not need excessive manual labor.On the other hand, because Part II is only including less Control, can adopt the method for calculating pixel value one by one to calculate in the Part II and change pixel value after skin, now can't need Want large-scale amount of calculation.Hereinafter, the round button in the lower left corner in Figure 1A can be for example located part as second Point, and using remainder as Part I.It should be noted that Part I and Part II can also include different regions, Those skilled in the art can be divided based on self-demand.
In step S204, the masking-out based on purported skin and Part I generates first object interface.Based on masking-out Change the Part I that skin can be drawn in interface by the profile of masking-out, drawn based on purported skin when refreshing pure color or Picture, draws the final effect that masking-out can be completed in Part I then.
In step S206, the standard drawing based on purported skin and Part II generates the second target interface.Standard drawing can The part related to Part II region in default interface image during being application program launching.For example, when application program When default interface is the interface 100A shown in Figure 1A, standard drawing can be the default interface image being associated with round button.
In step S208, with reference to first object interface and the second target interface generating target interface.In step S204 With generated first object interface and the second target interface in S206 respectively, now only need this two parts " splicing " i.e. Final target interface can be formed.
In an embodiment of the invention, Part I at least includes the background of Application Program Interface, and second Part includes at least one of Application Program Interface control.Fig. 3 is diagrammatically illustrated according to one embodiment of the present invention The schematic diagram of Part I 310 and Part II 320 obtained by method division.In this example, for the sake of for convenience of describing, to answer It is described as an example with the round button control in the lower left corner in program interface 300.In this embodiment, the button is made For Part II 320 using the other parts in Application Program Interface 300 as Part I 310.According to other embodiment, Part II can also include all 4 button controls of bottom in Application Program Interface 300.
In one embodiment, masking-out describes light and shade change and the profile of the Part I of Application Program Interface, with And standard drawing describes the material of the Part II of Application Program Interface.
Fig. 4 A diagrammatically illustrate a part for the masking-out according to one embodiment of the present invention, and Fig. 4 B are diagrammatically illustrated A part for the pure color target interface calculated according to the masking-out of one embodiment of the present invention;And Fig. 4 C schematically show A part for the picture target interface calculated according to the masking-out of one embodiment of the present invention.For example, for shown in Fig. 3 Application Program Interface 300 upper left hand corner section, including head portrait and the frame around head portrait.It is known that when carrying out changing skin The content of head portrait keeps constant and frame of around head portrait the content corresponding by purported skin is switched to.Now, for a left side Upper corner subregion, its masking-out should include the region (as shown in Fig. 4 A inner white positive directions region) of a centre " hollow out " For showing head portrait.
It should be noted that each control in Part II can have one or more standard drawing of itself.For example when When control does not have animation effect, the space can only include single standard figure;When the control of Application Program Interface includes animation During effect, then the control can include multiple standard drawings.For example, when mouse pointer not above control when, the control can show It is shown as dark color;And when mouse pointer slips over control top, the control can be brighter face from the dark color change Color recovers original dark color then, and this is realized by switching between one group of picture.
In order that certain control still can realize animation effect after purported skin is switched to, need based on for second One group of standard drawing of the control is processed in point.It is identical for the processing mode of each picture in this group of standard drawing, under To will be described in detail in text.
In an embodiment of the invention, the masking-out based on purported skin and Part I generates first object interface Including:In the first portion, changed based on light and shade and draw the information being associated with purported skin;And illiteracy is drawn based on profile Version.For example for the example in Fig. 4 A to Fig. 4 C, when carrying out changing skin, the frame around head portrait is based on the different of purported skin Real corresponding content.For example, Fig. 4 B show the effect processed based on pure color skin and masking-out, and Fig. 4 C show and are based on The effect that picture skin and masking-out are processed.
In an embodiment of the invention, the standard drawing based on purported skin and Part II generates the second target circle Face includes:Reference colours C1 and reference colours C2 are obtained respectively for standard drawing and purported skin;Based on reference colours C1 and the difference of C2 Δ C and purported skin, calculate color C3 of each pixel in the second target interface.
In embodiments of the present invention, the color of pixel can be adopted and represented in various manners, such as with hsv color space (form and aspect, saturation, tone), either can also be using HSL color spaces (form and aspect, saturation, brightness) or HSB face representing The colour space (form and aspect, saturation, lightness) is representing.Hereinafter only illustrated as example with hsv color space.Should note Meaning, although hereinafter representing the numerical value of three passages of a pixel with (h, s, v), but numerical value v therein is not merely The tone value in HSV space is referred to, but numerical value v also may indicate that brightness value or HSB color spaces in HSL color spaces In brightness value.
Reference colours can represent impression of the user to the integral color of certain image (including solid-color image and picture), example Interface as shown in for Figure 1A, user's overall feeling to be green;And for the interface shown in Figure 1B, user's overall feeling To be brown color.In an embodiment of the invention, the reference colours of hsv color spatial description standard drawing can be adopted.
In one embodiment, reference colours C2 of purported skin need to be calculated according to the type of purported skin no matter Be purported skin be pure color skin or picture skin, be required for calculate can represent face of the user to purported skin overall feeling Color is used as reference colours.
Based on reference colours C1 and difference DELTA C and purported skin of C2, the color of each pixel in the second target interface is calculated C3.The principle of the step is, reference colours C1 based on standard drawing and discrepancy delta C between reference colours C2 of purported skin, will Each pixel-map in Part II is to the pixel value being associated with purported skin.
In an embodiment of the invention, obtaining reference colours includes:If object is pure color, by H, S, V of pure color The numerical value of passage is used as reference colours;If object is picture, each pixel of picture is traveled through to find including pixel count most Many sections;And using the mean values of H, S, V passage of each pixel in section as reference colours.
Situation when now in detail narration object is picture skin.To find color of the user to picture overall feeling, example Such as the valued space of color can be divided into multiple sections (for example, 10 sections), and travel through each pixel of picture.When a pixel Color value fall into one segmentation when, then the pixel count that the segmentation is included plus 1.Determine after the whole pixels of traversal and wherein wrap Include the segmentation of most pixels, and using this be segmented in each pixel H, S, V passage mean values as reference colours.
Because standard drawing and purported skin were all known before user carries out changing skin, said method can be in advance adopted The reference colours of standard drawing and purported skin are calculated, to save the time used by skin of changing.For example, for the skin that application program is provided Skin, can preserve the reference colours of each skin when application program is write;For user-defined skin, can be in user The reference colours of the skin are preserved during self-defined skin.
In an embodiment of the invention, difference DELTA C (dh, ds, dv) of reference colours C1 and C2 is counted as follows Calculate:
Formula 1
Wherein reference colours C1 are expressed as (bh, bs, bv), and reference colours C2 are expressed as (h, s, v).
It should be noted that difference DELTA C of reference colours C1 of the present invention and C2 absolute difference not between two pixel values, and It is the relationship factor to seek most preferably to change skin effect and calculate.Those skilled in the art can voluntarily be write based on above-mentioned formula Other formula are used for calculating difference.For example, one or more passage in for hsv color space has particular/special requirement When, can be that the difference of the passage is added coefficient or otherwise calculated.
In an embodiment of the invention, based on difference DELTA C and purported skin of reference colours C1 and C2, calculating second Color C3 (wherein, color C3 is expressed as (h ', s ', v ')) of each pixel includes in part:
Formula 2
Those skilled in the art should be noted that above-mentioned formula gives final pixel value C3 of each pixel in Part II (h ', s ', v ') and the mapping relations between reference colours C2 (h, s, v) of purported skin.Those skilled in the art can be based on upper State formula and voluntarily write other formula for the final pixel value of each pixel.For example, in for hsv color space Can be that the difference of the passage is added coefficient or otherwise calculated when one or more passage has particular/special requirement.
Fig. 5 A to Fig. 5 C diagrammatically illustrate respectively the signal of the target interface generated according to one embodiment of the present invention Figure 50 0A to 500C.When carrying out changing skin and operating, the button control using the Application Program Interface lower left corner as Part II, and Using remainder as Part I.In the first portion, using above with reference to the changing based on masking-out described in Fig. 4 A to Fig. 4 C Skin scheme;In the second portion, adopt and change skin scheme based on reference colours above with reference to described in formula 1 and formula 2.
Fig. 6 is diagrammatically illustrated according to one embodiment of the present invention for carrying out changing the dress of skin to Application Program Interface The schematic diagram 600 put.In this embodiment, there is provided a kind of for carrying out changing the device of skin to Application Program Interface, including: Device 610 is divided, for Application Program Interface to be divided into into Part I and Part II;First generating means 620, for base First object interface is generated in the masking-out of purported skin and Part I;Second generating means 630, for based on purported skin and The standard drawing of Part II generates the second target interface;And coupling apparatus 640, for reference to first object interface and the second mesh Demarcate face to generate target interface.
In an embodiment of the invention, Part I at least includes the background of Application Program Interface, and second Part includes at least one of Application Program Interface control.
In an embodiment of the invention, wherein masking-out describes the light and shade change of the Part I of Application Program Interface And profile, and standard drawing describes the material of the Part II of Application Program Interface.
In an embodiment of the invention, the first generating means 620 include:In the first portion, for based on bright The device of the information being associated with purported skin is drawn in dark change;And for drawing the device of masking-out based on profile.
In an embodiment of the invention, the second generating means 630 include:For for standard drawing and purported skin The device of reference colours C1 and reference colours C2 is obtained respectively;For difference DELTA C and purported skin, calculating based on reference colours C1 and C2 The device of color C3 of each pixel in second target interface.
In an embodiment of the invention, the device for obtaining reference colours includes:If for object be pure color, Using the numerical value of H, S, V passage of the pure color as reference colours device;For performing following device, if the object is Picture travels through each pixel of the picture to find including the most section of pixel count;And by each picture in described section The mean values of H, S, V passage of element are used as reference colours.
In an embodiment of the invention, difference DELTA C (dh, ds, dv) of reference colours C1 and C2 is counted as follows Calculate:
Wherein reference colours C1 are expressed as (bh, bs, bv), and reference colours C2 are expressed as (h, s, v).
In an embodiment of the invention, wherein for based on difference DELTA C and purported skin of reference colours C1 and C2, Calculating the device of color C3 of each pixel in Part II includes:For based on the dress that color C3 (h ', s ', v ') is calculated as below Put
Fig. 7 shows the schematic block diagram 700 for being suitable to the computer system for putting into practice embodiment of the present invention.Such as Fig. 7 Shown, computer system can include:CPU (CPU) 701, RAM (random access memorys) 702, ROM is (read-only Memorizer) 703, system bus 704, hard disk controller 705, KBC 706, serial interface controller 707, parallel interface Controller 708, display controller 709, hard disk 710, keyboard 711, serial peripheral equipment 712, concurrent peripheral equipment 713 and display Device 714.In such devices, what is coupled with system bus 704 has CPU 701, RAM 702, ROM 703, hard disk controller 705th, KBC 706, serialization controller 707, parallel controller 708 and display controller 709.Hard disk 710 and hard disk control Device processed 705 is coupled, and keyboard 711 is coupled with KBC 706, serial peripheral equipment 712 and the coupling of serial interface controller 707 Close, concurrent peripheral equipment 713 is coupled with parallel interface controller 708, and display 714 is coupled with display controller 709.Should Work as understanding, the structured flowchart shown in Fig. 7 is illustrated just to the purpose of example, rather than limitation of the scope of the invention. In some cases, can increase or reduce some equipment as the case may be.
It should be appreciated that the structured flowchart shown in Fig. 7 is illustrated just to the purpose of example, rather than to model of the present invention The restriction enclosed.In some cases, can increase or reduce some equipment as the case may be.
It should be noted that embodiments of the present invention can pass through being implemented in combination in for hardware, software or software and hardware. Hardware components can be realized using special logic;Software section can be stored in memory, and by appropriate instruction system is performed System, such as microprocessor or special designs hardware are performing.It will be understood by those skilled in the art that above-mentioned equipment Can be realized using computer executable instructions and/or be included in processor control routine with method, such as in such as magnetic The programmable memory or such as optics or electricity of the mounting medium of disk, CD or DVD-ROM, such as read only memory (firmware) Such code is provided in the data medium of subsignal carrier.The equipment and its module of the present invention can be by such as ultra-large The quasiconductor or such as field programmable gate array of integrated circuit OR gate array, logic chip, transistor etc., can compile The hardware circuit of the programmable hardware device of journey logical device etc. is realized, it is also possible to by the soft of various types of computing devices Part is realized, it is also possible to realized by the combination such as firmware of above-mentioned hardware circuit and software.
The communication network referred in description can include disparate networks, including but not limited to LAN (" LAN "), wide area Net (" WAN "), according to the network (for example, the Internet) and ad-hoc network (for example, ad hoc peer-to-peer networks) of IP agreement.
If although it should be noted that be referred to the equipment for drying or sub-device of equipment in above-detailed, this stroke Divide only not enforceable.In fact, according to the embodiment of the present invention, the feature of above-described two or more devices Can embody in one apparatus with function.Conversely, the feature and function of an above-described device can further draw It is divided into by multiple devices embodying.
Although additionally, describe the operation of the inventive method with particular order in the accompanying drawings, this do not require that or Hint must perform according to the particular order these operation, or the operation having to carry out shown in whole could realize it is desired As a result.Conversely, the step of describing in flow chart can change execution sequence.Additionally or alternatively, it is convenient to omit some steps, Multiple steps are merged into into a step to perform, and/or a step is decomposed into into execution of multiple steps.
Although describing the present invention by reference to some specific embodiments, it should be appreciated that, it is public that the present invention is not limited to institute The specific embodiment opened.It is contemplated that covering various modifications included in spirit and scope of the appended claims and equivalent Arrangement.Scope of the following claims meets broadest explanation, so as to include all such modifications and equivalent structure and function.

Claims (14)

1. a kind of method for carrying out changing skin to Application Program Interface, including:
Application Program Interface is divided into into Part I and Part II;
Masking-out based on purported skin and the Part I generates first object interface;
Standard drawing based on the purported skin and the Part II generates the second target interface, including:
Reference colours C1 and reference colours C2 are obtained respectively for the standard drawing and the purported skin;
Based on reference colours C1 and the difference △ C and the purported skin of C2, each pixel in the second target interface is calculated Color C3;And
With reference to the first object interface and second target interface generating target interface.
2. method according to claim 1, wherein the Part I is at least including the background of the Application Program Interface, And the Part II includes at least one of Application Program Interface control.
3. method according to claim 1 and 2, wherein the masking-out describes the Part I of the Application Program Interface Light and shade changes and profile, and the standard drawing describes the material of the Part II of the Application Program Interface.
4. method according to claim 3, wherein the masking-out based on purported skin and the Part I generates the One target interface includes:In the Part I,
Changed based on light and shade and draw the information being associated with the purported skin;And
The masking-out is drawn based on the profile.
5. method according to claim 1, wherein obtain reference colours including:
If object is pure color, using the numerical value of H, S, V passage of the pure color as reference colours;
If the object is picture,
Each pixel of the picture is traveled through to find including the most section of pixel count;And
Using the mean values of H, S, V passage of each pixel in described section as reference colours.
6. method according to claim 1, wherein the difference △ C (dh, ds, dv) of reference colours C1 and C2 is with such as lower section Formula is calculated:
Wherein reference colours C1 are expressed as (bh, bs, bv), and reference colours C2 are expressed as (h, s, v).
7. method according to claim 6, wherein based on reference colours C1 and the difference △ C and the target skin of C2 Color C3 of each pixel includes in skin, calculating Part II:
Wherein color C3 is expressed as (h ', s ', v ').
8. a kind of for carrying out changing the device of skin to Application Program Interface, including:
For Application Program Interface to be divided into the device of Part I and Part II;
For the device that the masking-out based on purported skin and the Part I generates first object interface;
Standard drawing for being based on the purported skin and the Part II generates the device of the second target interface, including:
For obtaining the device of reference colours C1 and reference colours C2 respectively for the standard drawing and the purported skin;
For based on each picture in the difference △ C and the purported skin of reference colours C1 and C2, the second target interface of calculating The device of color C3 of element;And
For with reference to the first object interface and second target interface generating the device of target interface.
9. device according to claim 8, wherein the Part I is at least including the background of the Application Program Interface, And the Part II includes at least one of Application Program Interface control.
10. device according to claim 8 or claim 9, wherein the masking-out describes the Part I of the Application Program Interface Light and shade change and profile, and the standard drawing describes the material of the Part II of the Application Program Interface.
11. devices according to claim 10, wherein for the masking-out based on purported skin and the Part I Generating the device at first object interface includes:In the Part I,
For changing the device for drawing the information being associated with the purported skin based on light and shade;And
For drawing the device of the masking-out based on the profile.
12. devices according to claim 8, wherein the device for obtaining the reference colours includes:
If for object be pure color, using the numerical value of H, S, V passage of the pure color as reference colours device;
For performing following device,
If the object is picture
Each pixel of the picture is traveled through to find including the most section of pixel count;And
Using the mean values of H, S, V passage of each pixel in described section as reference colours.
13. devices according to claim 8, wherein the difference △ C (dh, ds, dv) of reference colours C1 and C2 is with as follows Mode is calculated:
Wherein reference colours C1 are expressed as (bh, bs, bv), and reference colours C2 are expressed as (h, s, v).
14. devices according to claim 13, wherein for difference △ C and the mesh based on reference colours C1 and C2 The device of color C3 of each pixel includes in mark skin, calculating Part II:
For based on the device that color C3 (h ', s ', v ') is calculated as below
CN201110425806.1A 2011-12-13 2011-12-13 Method and device of changing surface of application program interface Expired - Fee Related CN103164210B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110425806.1A CN103164210B (en) 2011-12-13 2011-12-13 Method and device of changing surface of application program interface

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110425806.1A CN103164210B (en) 2011-12-13 2011-12-13 Method and device of changing surface of application program interface

Publications (2)

Publication Number Publication Date
CN103164210A CN103164210A (en) 2013-06-19
CN103164210B true CN103164210B (en) 2017-05-03

Family

ID=48587335

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110425806.1A Expired - Fee Related CN103164210B (en) 2011-12-13 2011-12-13 Method and device of changing surface of application program interface

Country Status (1)

Country Link
CN (1) CN103164210B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103823676B (en) * 2014-02-14 2018-01-30 珠海市君天电子科技有限公司 display control method, device and client
CN104978198A (en) * 2015-07-06 2015-10-14 百度在线网络技术(北京)有限公司 Method and apparatus for configuring keyboard skin
CN108153893A (en) * 2017-12-29 2018-06-12 广州天高软件科技有限公司 A kind of more exhibition Exhibition Information service platforms

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101141478A (en) * 2006-09-04 2008-03-12 三星电子株式会社 Method and system for converting skin of portable terminal
CN101295249A (en) * 2008-06-26 2008-10-29 腾讯科技(深圳)有限公司 Method and system for dynamic configuration management of software interface style
CN101751252A (en) * 2008-11-28 2010-06-23 方正国际软件(北京)有限公司 Interface generating device and interface generating method for dynamically changing skins

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6791581B2 (en) * 2001-01-31 2004-09-14 Microsoft Corporation Methods and systems for synchronizing skin properties

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101141478A (en) * 2006-09-04 2008-03-12 三星电子株式会社 Method and system for converting skin of portable terminal
CN101295249A (en) * 2008-06-26 2008-10-29 腾讯科技(深圳)有限公司 Method and system for dynamic configuration management of software interface style
CN101751252A (en) * 2008-11-28 2010-06-23 方正国际软件(北京)有限公司 Interface generating device and interface generating method for dynamically changing skins

Also Published As

Publication number Publication date
CN103164210A (en) 2013-06-19

Similar Documents

Publication Publication Date Title
US11037275B2 (en) Complex architecture for image processing
CN104076928B (en) A kind of method for adjusting text importing image
JP6483221B2 (en) 3D code generation method
CN103065338A (en) Method and device providing shadow for foreground image in background image
CN107092684A (en) Image processing method and device, storage medium
CN109345612B (en) Image generation method, device, equipment and storage medium
CN104461614B (en) The processing method and electronic equipment of a kind of subject resource
CN110443877B (en) Model rendering method, device, terminal equipment and storage medium
CN111080806B (en) Mapping processing method and device, electronic equipment and storage medium
CN103440674A (en) Method for rapidly generating crayon special effect of digital image
CN103164210B (en) Method and device of changing surface of application program interface
CN112256366A (en) Page display method and device and electronic equipment
CN103744942B (en) Web browser method and device, web page browsing terminal device
CN108471536A (en) Alpha channel transmission methods and device, terminal installation and storage medium
CN104952093A (en) Virtual hair coloring method and device
CN111369431A (en) Image processing method and device, readable medium and electronic equipment
WO2020215207A1 (en) Method and device for processing layers
WO2022078054A1 (en) Dial generation method, terminal device and computer readable storage medium
CN106681735A (en) Method, device and apparatus for generating dynamic icons based fonts
CN101127980A (en) Layout method for standby interface of mobile terminal
WO2023207454A1 (en) Image processing method, image processing apparatuses and readable storage medium
CN117112090A (en) Business page theme generation method, device, computer equipment, medium and product
CN112218006A (en) Multimedia data processing method and device, electronic equipment and storage medium
US9886767B2 (en) Method, apparatus and computer program product for segmentation of objects in images
CN106126214A (en) The determination method and device of text color on a kind of interface

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20170503

CF01 Termination of patent right due to non-payment of annual fee