CN104317869B - Background setting method and device based on instant messaging - Google Patents
Background setting method and device based on instant messaging Download PDFInfo
- Publication number
- CN104317869B CN104317869B CN201410555099.1A CN201410555099A CN104317869B CN 104317869 B CN104317869 B CN 104317869B CN 201410555099 A CN201410555099 A CN 201410555099A CN 104317869 B CN104317869 B CN 104317869B
- Authority
- CN
- China
- Prior art keywords
- color
- background
- bubble
- conversation
- value
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0484—Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
Abstract
The disclosure is directed to a kind of background setting method and device based on instant messaging, wherein method include:According to the color for including in Target Photo, the aim colour for the pure color as background color is obtained;Solid background is set by the background of the dialog interface using the aim colour;According to the solid background, the color of the conversation bubble is adjusted, so that the color of the conversation bubble and the aim colour differential disply.The disclosure is by, come the adjustment bubble color of adaptability, realizing the differential disply of background element and bubble element according to background color.
Description
Technical field
This disclosure relates to computer technology more particularly to a kind of background setting method and device based on instant messaging.
Background technique
In the related technology, many application software can all add background colour when in use, so that more beautiful, user experience
Preferably.By taking chat software as an example, " the chat in chat conversations window is can be set when chatting using the software and good friend in user
Background " and " chat bubble " two elements, wherein certain pre-stored picture can be used in chat background, or use is
When certain picture with scenes etc. for shooting, the pre-stored bubble with certain design and color also can be used in chat bubble.
But in actual use, it is understood that there may be following problem:The picture color for background of chatting is complicated, and part of region may also be with
Chat bubble color very close to for example user wants to replace a kind of picture that chat background uses, as a result, it has been found that two after replacement
Person's color is close, causes display effect poor, for example when user chats is difficult chat background and bubble of chatting distinguishes, and
Complicated chat background causes vision to interfere user, will affect normal chat content and reads.
Summary of the invention
To overcome the problems in correlation technique, the disclosure provide a kind of background setting method based on instant messaging and
Device adaptively adjust chat background and bubble according to the Target Photo of user's selection so that background element succinctly and with gas
The differential disply of element is steeped, realizes more comfortable network chat environment, so that chat scenario setting is more humane.
According to the first aspect of the embodiments of the present disclosure, a kind of background setting method based on instant messaging is provided, including:
According to the color for including in Target Photo, the aim colour for the pure color as background color is obtained;Wherein, described
Background color is the background color in Instant messaging conversation interface;It further include conversation content for rendering in the dialog interface
Conversation bubble;
Solid background is set by the background of the dialog interface using the aim colour;
According to the solid background, the color of the conversation bubble is adjusted, so that the color of the conversation bubble and institute
State aim colour differential disply.
According to the second aspect of an embodiment of the present disclosure, a kind of background setting device based on instant messaging is provided, including:
Picture processing unit, for obtaining for the pure color as background color according to the color for including in Target Photo
Aim colour, wherein the background color be Instant messaging conversation interface in background color;Further include in the dialog interface
The conversation bubble of conversation content for rendering;
Background setting unit, aim colour for being obtained using the picture processing unit is by the background of the dialog interface
It is set as solid background;
Bubble setting unit, the solid background for being arranged according to the background setting unit, adjusts the dialogue
The color of bubble, so that the aim colour differential disply that the color of the conversation bubble and the picture processing unit obtain.
According to the third aspect of an embodiment of the present disclosure, a kind of background setting device based on instant messaging is provided, including:
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to:
According to the color for including in Target Photo, the aim colour for the pure color as background color is obtained, wherein described
Background color is the background color in Instant messaging conversation interface;It further include conversation content for rendering in the dialog interface
Conversation bubble;Solid background is set by the background of the dialog interface using the aim colour;According to the solid background, adjust
The color of the whole conversation bubble, so that the color of the conversation bubble and the aim colour differential disply.
The technical scheme provided by this disclosed embodiment can include the following benefits:Pass through the mesh selected according to user
Piece mark on a map to obtain the interface background that the aim colour of pure color is used to be arranged instant messaging, and bubble is adjusted according to solid background,
So that background and the color of bubble have apparent difference, so that background is set with picture relative in the related technology direct,
Will be so that chat scenario setting to be more humanized, chat content can more clearly show that, realize more comfortable Internet chat
Environment.
It should be understood that above general description and following detailed description be only it is exemplary and explanatory, not
The disclosure can be limited.
Detailed description of the invention
The drawings herein are incorporated into the specification and forms part of this specification, and shows and meets implementation of the invention
Example, and be used to explain the principle of the present invention together with specification.
Fig. 1 is a kind of application signal of background setting method based on instant messaging shown according to an exemplary embodiment
Figure one;
Fig. 2 is a kind of flow chart of background setting method based on instant messaging shown according to an exemplary embodiment;
Fig. 3 is a kind of application signal of background setting method based on instant messaging shown according to an exemplary embodiment
Figure two;
Fig. 4 is the process of another background setting method based on instant messaging shown according to an exemplary embodiment
Figure;
Fig. 5 is that the application of another background setting method based on instant messaging shown according to an exemplary embodiment is shown
It is intended to three;
Fig. 6 is that the application of another background setting method based on instant messaging shown according to an exemplary embodiment is shown
It is intended to four;
Fig. 7 is the bitmap square of another background setting method based on instant messaging shown according to an exemplary embodiment
Battle array schematic diagram;
Fig. 8 is a kind of block diagram of background setting device based on instant messaging shown according to an exemplary embodiment;
Fig. 9 is the block diagram of another background setting device based on instant messaging shown according to an exemplary embodiment;
Figure 10 is a kind of background setting device including this based on instant messaging shown according to an exemplary embodiment
The block diagram of terminal.
Specific embodiment
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to
When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment
Described in embodiment do not represent all embodiments consistented with the present invention.On the contrary, they be only with it is such as appended
The example of device and method being described in detail in claims, some aspects of the invention are consistent.
The background setting method of the embodiment of the present disclosure is the method based on instant messaging, includes for instant in instant messaging
Background color can be set in the dialog interface that the both sides of communication engage in the dialogue, such as the chat interface in QQ, the dialog interface, than
The background color such as is set using certain picture;Meanwhile further including conversation bubble in dialog interface, the conversation bubble is for rendering
Conversation content.In the following example, it is illustrated by taking QQ as an example, dialog interface is the chat interface of QQ, talks with gas
Bubble is the chat bubble of QQ.Certain instant communication software is not limited to QQ, the background setting method of the embodiment of the present disclosure
It can be applied to other instant messaging scenes.
Fig. 1 is a kind of application scenarios of background setting method based on instant messaging shown according to an exemplary embodiment
Figure, as shown in Figure 1, by taking chat software as an example, it is assumed that user logs in wechat or QQ on the mobile phone of oneself, shown in Fig. 1
Interface and its good friend chat.In the interface, the picture 11 for having used user to select has used user as chat background
The chat bubble 12 of selection sends chat messages.
Wherein, picture 11 can be any image of user's selection, for example the picture that is stored in advance on mobile phone or be
The photo etc. that user shoots before storing in mobile phone, these background pictures have various colors and pattern.Chat bubble
12 be also that can have various colors and pattern, is simplest white bubble shown in Fig. 1, naturally it is also possible to be other face
Bubble of color, such as red, green, blue etc., bubble color here refers to the background color in bubble shown in Fig. 1,
The color in the region in bubble frame i.e. where text.
The case where may so occurring in actual use is the color and chat gas of the picture 11 as chat background
The color of bubble 12 is very close to for example to have taken a picture with scenes when travelling outdoors especially beautiful by user, and user likes very much
The green of the joyous photo, just using the photo as chat background, but the color of chat bubble that user uses is also green
, it thus will appear the color of background and bubble close to causing display effect undesirable, user may be not easy to distinguish.
The background setting method of the embodiment of the present disclosure, the color for the photo that user can be made to be liked using oneself also can
It avoids background and the color of bubble from showing the above problem occurred, the scheme of this method will be described below.It should be noted that the greatest extent
Pipe is still to be illustrated by taking chat software as an example, but the scheme of the embodiment of the present disclosure is having during following description
Body is not limited thereto when implementing, as long as including the background element application similar with bubble element, can use the party
Method.
Fig. 2 is a kind of flow chart of background setting method shown according to an exemplary embodiment, as shown in Fig. 2, the back
Scape setting method is applied in terminal, includes the following steps:
201, according to the color for including in Target Photo, the aim colour for the pure color as background color is obtained;
Wherein, Target Photo be exactly user want to set up for chat background picture, for example, can be user selection one
Zhang Fengjing shines, the landscape take be meadow and trees that user shoots when playing picture, the body color of photo be it is green, certainly
It may also there are also some buildings, river and animals etc. in photo.The color for including in above-mentioned Target Photo, for example including photograph
The green on the meadow in piece, the water colour in river, the white of building or the habited red of visitor institute in landscape etc. are various
Color, but the body color of the photo is green.
In the present embodiment, referred to still according to the aim colour that the color for including in Target Photo obtains pure color with above-mentioned
For landscape shines, according to the landscape according to a kind of color is obtained, which is such as green, then by the background color of chat interface
It is set as pure green.That is, user's selection is a picture, but what the present embodiment obtained according to the picture is a kind of
Color, and be pure color (i.e. single color, such as green, red), it is not secondary colour (such as including red and green), so
Afterwards set background of chatting to the background of the pure color.Than as shown in Figure 3, the chat background of Fig. 1 after treatment, just becomes
The background of solid color shown in Fig. 3.
202, solid background is set by the background of dialog interface using the aim colour;
It is to set the aim colour for the background color in chat interface using aim colour obtained above in this step
Solid background.It should be noted that 202 in the present embodiment can execute after 203, there is no stringent sequences.Than
Such as, bubble color can be adjusted according to the solid background, i.e., all by background color and bubble color after solid background is set
It is adjusted and then enters chat interface shown in FIG. 1, it is gentle that new background adjusted is shown in interface at this time
Bubble.
203, according to the solid background, the color of conversation bubble is adjusted, so that the color and aim colour of conversation bubble
Differential disply.
Wherein, differential disply refers to that bubble color and aim colour are not belonging to same colour system, it may also be said to, it keeps off.Than
Such as, if aim colour be it is light blue, it is not differential disply that bubble color, which is navy blue, this just belongs to similar color;And if
Aim colour is white, and bubble color is black, and here it is differential displies.Usual differential disply can give user relatively good vision body
It tests, can significantly distinguish the two.
Also, in the present embodiment, by by according to background color come the adjustment bubble color of adaptability, i.e. bubble color
Adjustment has foundation, and the purpose of bubble color adjustment is to realize the differential disply of background element and bubble element.
Fig. 4 is the process of another background setting method based on instant messaging shown according to an exemplary embodiment
This method will be described in more details in figure, the present embodiment, and list optional reality for specific steps therein
Apply mode.
401, Target Photo is obtained;
It is exemplified below:Assuming that user logs in certain chat software using the mobile phone of oneself, into " the chat background in the software
Setting " option, chooses certain picture into " choosing from photograph album " referring to Fig. 5, which is exactly that user wants to set up to chat
The picture of its background, referred to as Target Photo.
It should be noted that having the following two kinds feasible pattern before carrying out subsequent picture processing to the picture:
For example, choose picture as user, and after clicking " being set as background ", the present embodiment can directly be carried out the picture
Background is arranged according to the color after processing in the processing of 402 following steps.
In another example two choosings can also be arranged again in " being set as background " next stage to provide the user with more selections
Item, such as " being directly set as background " are perhaps " setting solid background " or as shown in Figure 6, directly will be above-mentioned two next
Grade option is provided in the selection of the photo, only when user has selected " setting solid background ", just enters at 402
Otherwise reason shows that user may be not intended to processing picture, that just conventionally sets chat background for picture.
Certainly, the title of the two options can freely be set.
402, Gaussian Blur is carried out to Target Photo, according to the corresponding bitmap matrix of Target Photo after Gaussian Blur,
The mean value color of the bitmap matrix is calculated, mean value color is aim colour;
The picture of this step is handled, and carries out Gaussian Blur processing to picture first, Fuzzy Processing is later according to the picture
Bitmap matrix calculates the mean value color of the matrix.For shown in Fig. 7, shown in Fig. 7 is a bitmap matrix, each small side
Lattice indicate a pixel, and the quantity of pixel is necessarily more than in Fig. 7 in certain actual picture, each pixel grid is also inevitable
Thinner than what is divided in Fig. 7, substantially a lattice only has a kind of color.
If a pixel grid is known as a cell, each cell is corresponding with the color of oneself,
Color than cell 71,72 and 73 as shown in Figure 7 is different.And each color all corresponds to a color value, this
The mean value color of embodiment is exactly to be added the color value of cell all in bitmap matrix to be averaging, as follows:
Mean value color X=(y1+y2+y3+ ... ... .+yn)/n, y1, y2 therein etc. is each cell pair respectively
The color value answered, n are the sums of the cell in Fig. 7.
Certainly, a kind of mode that aim colour is optionally determined according to picture color is as above merely provided, in specific implementation
It can also adopt and obtain aim colour with other methods, as long as obtaining a kind of pure color according to the picture.
403, judge whether the difference of the color value of the corresponding color value of bubble color and aim colour reaches color difference threshold;
In the present embodiment, if the color of background color and bubble color is kept off, the difference of the color value of the two color needs
Reach certain color difference threshold, for example, both the RGB numerical value (i.e. color value) of 16 systems when differing certain numerical value, could be from view
Color distinction is embodied in feel.The present embodiment does not limit the specific value of threshold value setting, can be in specific implementation according to reality
Situation is flexibly set.
If this step judges that the difference of the color value of the corresponding color value of bubble color and aim colour is less than the color difference threshold,
Show that the two color belongs to same colour system, color is close, continues to execute 404;Otherwise, if the difference of color value is greater than or equal to color difference
Threshold value then shows that the color of the two has had significant difference, can no longer adjust the color of bubble.
Optionally, the process that background can also can be made to be arranged without above-mentioned deterministic process, above-mentioned deterministic process
It is more automatic and more quick.In specific implementation, chat background and chat bubble can be and indicate respectively adjustment, such as above-mentioned
User the color of background picture is set by selection " chat background setting ", user can also enter back into " chat bubble
Be arranged " option triggering bubble color setting, such as selection " according to background adjust bubble ".
404, the color of bubble is adjusted according to solid background, so that bubble color and aim colour differential disply;
Wherein, the color of this step adjustment bubble, seeks to the color value so that bubble color corresponding color value and aim colour
Difference, reach preset color difference threshold.Optionally, the present embodiment provides a kind of optional modes:Use the maximum 16 of RGB numerical value
Binary value, subtract 402 obtained in aim colour color value half, obtain the corresponding color value of bubble color, it is as follows:
Y=#FFFFFF-X/2, X therein are the color values of aim colour, and Y is the color value of bubble color, #FFFFFF be 16 into
The maximum RGB numerical value of system.It can guarantee that the color of bubble belongs to different color intervals from the color of chat background in this way, have
It is very strong comparative.
405, solid background is set using the aim colour, and uses bubble adjusted.
After the color value by above-mentioned steps calculates, it is determined that the color for background of chatting and the color of bubble, this step will
Chat interface is shown according to determining above-mentioned color value, and the background and bubble of the chat interface are the corresponding face of color value of above-mentioned determination
Color.
Fig. 8 is a kind of block diagram of background setting device based on instant messaging shown according to an exemplary embodiment, should
The concrete mode that modules in device execute operation is described in detail in the embodiment of the method, this
Explanation will be not set forth in detail in place.Referring to Fig. 8, which includes that picture processing unit 81, background setting unit 82 and bubble are set
Set unit 83.
Picture processing unit 81, for obtaining for as the pure of background color according to the color for including in Target Photo
The aim colour of color;Wherein, the background color is the background color in Instant messaging conversation interface;It is also wrapped in the dialog interface
Include the conversation bubble of conversation content for rendering;
Background setting unit 82, aim colour for being obtained using the picture processing unit 81 is by the dialog interface
Background is set as solid background;
Bubble setting unit 83, the solid background for being arranged according to the background setting unit 82, described in adjustment
The color of conversation bubble, so that the aim colour difference that the color of the conversation bubble and the picture processing unit 81 obtain is aobvious
Show.
Fig. 9 is the block diagram of another background setting device based on instant messaging shown according to an exemplary embodiment,
On the basis of Fig. 8 structure, picture processing unit 81 may include:Fuzzy Processing subelement 811 and mean value computation subelement
812;
Fuzzy Processing subelement 811, for carrying out Gaussian Blur to the Target Photo;
Mean value computation subelement 812, described in after carrying out Gaussian Blur according to the Fuzzy Processing subelement 811
The corresponding bitmap matrix of Target Photo, calculates the mean value color of the bitmap matrix, and the mean value color is the aim colour.
Further, bubble setting unit 83 adjusts gas in the solid background being arranged according to the background setting unit 82
It is the color for adjusting conversation bubble when the color of bubble, so that at the corresponding color value of the color of the conversation bubble and the picture
The difference of the color value for the aim colour that reason unit 81 obtains, reaches preset color difference threshold.
Further, bubble setting unit 83 subtracts described specifically for using 16 binary value of maximum of RGB numerical value
The half of the color value for the aim colour that picture processing unit 81 obtains obtains the corresponding color value of color of the conversation bubble, according to
The color of the color value setting conversation bubble.
Further, which can also include:Color difference judging unit 84, in bubble setting unit adjustment pair
Before the color for talking about bubble, the mesh that the corresponding color value of the color of the conversation bubble and the picture processing unit 81 obtain is judged
Whether the difference for marking the color value of color reaches the color difference threshold;And when judging result is less than the color difference threshold, institute is indicated
State the color for the solid background adjustment conversation bubble that bubble setting unit is arranged according to the background setting unit 82.
Figure 10 is a kind of background setting device including this based on instant messaging shown according to an exemplary embodiment
The block diagram of terminal.For example, the terminal 800 can be mobile phone, computer, digital broadcasting terminal, messaging device, game
Console, tablet device, Medical Devices, body-building equipment, personal digital assistant etc..
Referring to Fig.1 0, terminal 800 may include following one or more components:Processing component 802, memory 804, power supply
Component 806, multimedia component 808, audio component 810, the interface 812 of input/output (I/O), sensor module 814, and
Communication component 816.
The integrated operation of the usual control device 800 of processing component 802, such as with display, telephone call, data communication, phase
Machine operation and record operate associated operation.Processing element 802 may include that one or more processors 820 refer to execute
It enables, to perform all or part of the steps of the methods described above, for example the instruction that processor can execute in memory is configured as:
According to the color for including in Target Photo, the aim colour for the pure color as background color is obtained, wherein the background color
For the background color in Instant messaging conversation interface;It further include the dialogue gas of conversation content for rendering in the dialog interface
Bubble;Solid background is set by the background of the dialog interface using the aim colour;According to the solid background, described in adjustment
The color of conversation bubble, so that the color of the conversation bubble and the aim colour differential disply.In addition, processing component 802
It may include one or more modules, convenient for the interaction between processing component 802 and other assemblies.For example, processing component 802 can
To include multi-media module, to facilitate the interaction between multimedia component 808 and processing component 802.
Memory 804 is configured as storing various types of data to support the operation in equipment 800.These data are shown
Example includes the instruction of any application or method for operating on device 800, contact data, and telephone book data disappears
Breath, picture, video etc..Memory 804 can be by any kind of volatibility or non-volatile memory device or their group
It closes and realizes, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM) is erasable to compile
Journey read-only memory (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, flash
Device, disk or CD.
Electric power assembly 806 provides electric power for the various assemblies of device 800.Electric power assembly 806 may include power management system
System, one or more power supplys and other with for device 800 generate, manage, and distribute the associated component of electric power.
Multimedia component 808 includes the screen of one output interface of offer between described device 800 and user.One
In a little embodiments, screen may include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel, screen
Curtain may be implemented as touch screen, to receive input signal from the user.Touch panel includes one or more touch sensings
Device is to sense the gesture on touch, slide, and touch panel.The touch sensor can not only sense touch or sliding action
Boundary, but also detect duration and pressure associated with the touch or slide operation.In some embodiments, more matchmakers
Body component 808 includes a front camera and/or rear camera.When equipment 800 is in operation mode, such as screening-mode or
When video mode, front camera and/or rear camera can receive external multi-medium data.Each front camera and
Rear camera can be a fixed optical lens system or have focusing and optical zoom capabilities.
Audio component 810 is configured as output and/or input audio signal.For example, audio component 810 includes a Mike
Wind (MIC), when device 800 is in operation mode, when such as call mode, recording mode, and voice recognition mode, microphone is matched
It is set to reception external audio signal.Received audio signal can be further stored in memory 804 or via communication component
816 send.In some embodiments, audio component 810 further includes a loudspeaker, is used for output audio signal.
I/O interface 812 provides interface between processing component 802 and peripheral interface module, and above-mentioned peripheral interface module can
To be keyboard, click wheel, button etc..These buttons may include, but are not limited to:Home button, volume button, start button and lock
Determine button.
Sensor module 814 includes one or more sensors, and the state for providing various aspects for device 800 is commented
Estimate.For example, sensor module 814 can detecte the state that opens/closes of equipment 800, and the relative positioning of component, for example, it is described
Component is the display and keypad of device 800, and sensor module 814 can be with 800 1 components of detection device 800 or device
Position change, the existence or non-existence that user contacts with device 800,800 orientation of device or acceleration/deceleration and device 800
Temperature change.Sensor module 814 may include proximity sensor, be configured to detect without any physical contact
Presence of nearby objects.Sensor module 814 can also include optical sensor, such as CMOS or ccd image sensor, at
As being used in application.In some embodiments, which can also include acceleration transducer, gyro sensors
Device, Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 816 is configured to facilitate the communication of wired or wireless way between device 800 and other equipment.Device
800 can access the wireless network based on communication standard, such as WiFi, 2G or 3G or their combination.In an exemplary implementation
In example, communication component 816 receives broadcast singal or broadcast related information from external broadcasting management system via broadcast channel.
In one exemplary embodiment, the communication component 816 further includes near-field communication (NFC) module, to promote short range communication.Example
Such as, NFC module can be based on radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra wide band (UWB) technology,
Bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, device 800 can be believed by one or more application specific integrated circuit (ASIC), number
Number processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD), field programmable gate array
(FPGA), controller, microcontroller, microprocessor or other electronic components are realized, for executing the above method.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instruction, example are additionally provided
It such as include the memory 804 of instruction, above-metioned instruction can be executed by the processor 820 of terminal 800 to complete the above method.For example,
The non-transitorycomputer readable storage medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk
With optical data storage devices etc..
Those skilled in the art after considering the specification and implementing the invention disclosed here, will readily occur to of the invention its
Its embodiment.This application is intended to cover any variations, uses, or adaptations of the invention, these modifications, purposes or
Person's adaptive change follows general principle of the invention and including the undocumented common knowledge in the art of the disclosure
Or conventional techniques.The description and examples are only to be considered as illustrative, and true scope and spirit of the invention are by following
Claim is pointed out.
It should be understood that the present invention is not limited to the precise structure already described above and shown in the accompanying drawings, and
And various modifications and changes may be made without departing from the scope thereof.The scope of the present invention is limited only by the attached claims.
Claims (9)
1. a kind of background setting method based on instant messaging, which is characterized in that including:
According to the color for including in Target Photo, the aim colour for the pure color as background color is obtained;Wherein, the background
Color is the background color in Instant messaging conversation interface;It further include the dialogue of conversation content for rendering in the dialog interface
Bubble;
Solid background is set by the background of the dialog interface using the aim colour;
According to the solid background, the color of the conversation bubble is adjusted, so that the color of the conversation bubble and the mesh
Mark color differential disply;
It is described that the aim colour for the pure color as background color is obtained according to the color for including in Target Photo, including:
Gaussian Blur is carried out to the Target Photo;
According to the corresponding bitmap matrix of the Target Photo after Gaussian Blur, the mean value color of the bitmap matrix is calculated,
The mean value color is the aim colour.
2. adjusting the dialogue gas the method according to claim 1, wherein described according to the solid background
The color of bubble, including:
The color of the conversation bubble is adjusted, so that the color value of the color of the conversation bubble corresponding color value and the aim colour
Difference, reach preset color difference threshold.
3. according to the method described in claim 2, it is characterized in that, the color of the adjustment conversation bubble, so that described
The difference of the corresponding color value of the color of conversation bubble and the color value of the aim colour reaches preset color difference threshold, including:
Using 16 binary value of maximum of RGB numerical value, the half of the color value of the aim colour is subtracted, the conversation bubble is obtained
The corresponding color value of color, the color of the conversation bubble is arranged according to the color value.
4. according to the method described in claim 2, it is characterized in that, further including before the color of the adjustment conversation bubble:Sentence
Whether the difference of the corresponding color value of color of the conversation bubble of breaking and the color value of the aim colour reaches the color difference threshold;
If being less than the color difference threshold, the color that conversation bubble is adjusted according to the solid background is executed;
If more than or equal to the color difference threshold, then the color of the conversation bubble is no longer adjusted.
5. device is arranged in a kind of background based on instant messaging, which is characterized in that including:
Picture processing unit, for obtaining the mesh for the pure color as background color according to the color for including in Target Photo
Mark color, wherein the background color is the background color in Instant messaging conversation interface;It further include being used in the dialog interface
The conversation bubble of conversation content is presented;
The background of the dialog interface is arranged for background setting unit, the aim colour for being obtained using the picture processing unit
For solid background;
Bubble setting unit, the solid background for being arranged according to the background setting unit, adjusts the conversation bubble
Color so that the aim colour differential disply that the color of the conversation bubble and the picture processing unit obtain;
The picture processing unit, including:
Fuzzy Processing subelement, for carrying out Gaussian Blur to the Target Photo;
Mean value computation subelement, for according to the Target Photo pair after Fuzzy Processing subelement progress Gaussian Blur
The bitmap matrix answered, calculates the mean value color of the bitmap matrix, and the mean value color is the aim colour.
6. device according to claim 5, which is characterized in that
The bubble setting unit adjusts conversation bubble in the solid background being arranged according to the background setting unit
It is the color for adjusting the conversation bubble when color, so that at the corresponding color value of the color of the conversation bubble and the picture
The difference of the color value for the aim colour that reason unit obtains, reaches preset color difference threshold.
7. device according to claim 6, which is characterized in that
The bubble setting unit subtracts the picture processing unit specifically for using 16 binary value of maximum of RGB numerical value
The half of the color value of obtained aim colour obtains the corresponding color value of color of the conversation bubble, according to color value setting pair
Talk about the color of bubble.
8. device according to claim 6, which is characterized in that further include;
Color difference judging unit, for judging the dialogue gas before the color of bubble setting unit adjustment conversation bubble
Whether the difference of the color value for the aim colour that the corresponding color value of the color of bubble and the picture processing unit obtain reaches the colour threshold
Value;And when judging result is less than the color difference threshold, it is single to indicate that the bubble setting unit is arranged according to the background
The color of the solid background adjustment conversation bubble of member setting.
9. device is arranged in a kind of background based on instant messaging, which is characterized in that including:
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to:
According to the color for including in Target Photo, the aim colour for the pure color as background color is obtained, wherein the background
Color is the background color in Instant messaging conversation interface;It further include the dialogue of conversation content for rendering in the dialog interface
Bubble;Solid background is set by the background of the dialog interface using the aim colour;According to the solid background, institute is adjusted
The color of conversation bubble is stated, so that the color of the conversation bubble and the aim colour differential disply;
It is described that the aim colour for the pure color as background color is obtained according to the color for including in Target Photo, including:
Gaussian Blur is carried out to the Target Photo;
According to the corresponding bitmap matrix of the Target Photo after Gaussian Blur, the mean value color of the bitmap matrix is calculated,
The mean value color is the aim colour.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410555099.1A CN104317869B (en) | 2014-10-17 | 2014-10-17 | Background setting method and device based on instant messaging |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410555099.1A CN104317869B (en) | 2014-10-17 | 2014-10-17 | Background setting method and device based on instant messaging |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104317869A CN104317869A (en) | 2015-01-28 |
CN104317869B true CN104317869B (en) | 2018-11-23 |
Family
ID=52373101
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410555099.1A Active CN104317869B (en) | 2014-10-17 | 2014-10-17 | Background setting method and device based on instant messaging |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104317869B (en) |
Families Citing this family (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104850395B (en) * | 2015-04-17 | 2018-11-30 | 魅族科技(中国)有限公司 | interface display method and system |
CN106406824B (en) * | 2015-07-17 | 2020-08-04 | 阿里巴巴(中国)有限公司 | Interface display method and device |
CN104991706A (en) * | 2015-07-17 | 2015-10-21 | 小米科技有限责任公司 | Chat information exhibition method and device |
CN105187295B (en) * | 2015-08-06 | 2019-05-17 | 广州华多网络科技有限公司 | A kind of method and client, server and system for realizing that bubble is shown in client |
CN106572225B (en) * | 2015-10-13 | 2021-04-06 | 北京奇虎科技有限公司 | Address book skin changing method and device |
CN106375833A (en) * | 2016-09-29 | 2017-02-01 | 北京小米移动软件有限公司 | Virtual reality (VR)-based video display method and apparatus, and terminal device |
FR3060822B1 (en) * | 2016-12-21 | 2020-10-23 | Orange | METHOD OF DETERMINING THE COLOR OF CONVERSATION BUBBLES DISPLAYED ON A SCREEN OF A COMMUNICATION TERMINAL BY AN INSTANT MESSAGING APPLICATION. |
CN107577395B (en) * | 2017-09-11 | 2019-09-17 | 竞技世界(北京)网络技术有限公司 | Chat content display methods and device based on Qt Development Framework |
CN112698901A (en) * | 2020-12-30 | 2021-04-23 | 北京搜狗科技发展有限公司 | Application program setting method and device |
CN113535310B (en) * | 2021-07-28 | 2024-04-09 | 北京达佳互联信息技术有限公司 | Chat bubble display control method and device, electronic equipment and storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101226728A (en) * | 2007-01-16 | 2008-07-23 | 乐金电子(中国)研究开发中心有限公司 | Apparatus and method for dynamically setting color theme |
CN101605175A (en) * | 2009-07-13 | 2009-12-16 | 中兴通讯股份有限公司 | A kind of method of displaying colorful desktop text by mobile terminal and device |
CN102508666A (en) * | 2011-11-11 | 2012-06-20 | 宇龙计算机通信科技(深圳)有限公司 | Method and device for adjusting application prompt message in application program |
CN104063123A (en) * | 2014-05-28 | 2014-09-24 | 小米科技有限责任公司 | Icon displaying method and device |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6917961B2 (en) * | 2000-03-30 | 2005-07-12 | Kettera Software, Inc. | Evolving interactive dialog box for an internet web page |
US20030007004A1 (en) * | 2001-06-14 | 2003-01-09 | Rajesh Kanungo | Differentiating dialog box boundaries by implementing reserved colors |
CN103137095B (en) * | 2011-11-23 | 2016-01-13 | 腾讯科技(深圳)有限公司 | The method and apparatus of electronic reading prospect and background is set |
-
2014
- 2014-10-17 CN CN201410555099.1A patent/CN104317869B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101226728A (en) * | 2007-01-16 | 2008-07-23 | 乐金电子(中国)研究开发中心有限公司 | Apparatus and method for dynamically setting color theme |
CN101605175A (en) * | 2009-07-13 | 2009-12-16 | 中兴通讯股份有限公司 | A kind of method of displaying colorful desktop text by mobile terminal and device |
CN102508666A (en) * | 2011-11-11 | 2012-06-20 | 宇龙计算机通信科技(深圳)有限公司 | Method and device for adjusting application prompt message in application program |
CN104063123A (en) * | 2014-05-28 | 2014-09-24 | 小米科技有限责任公司 | Icon displaying method and device |
Also Published As
Publication number | Publication date |
---|---|
CN104317869A (en) | 2015-01-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104317869B (en) | Background setting method and device based on instant messaging | |
EP3125530B1 (en) | Video recording method and device | |
EP3136658B1 (en) | Method, device, terminal device, computer program and recording medium for changing emoticon in chat interface | |
US20170344192A1 (en) | Method and device for playing live videos | |
WO2017028424A1 (en) | Method, apparatus and terminal device for game in chat interface | |
EP3136391B1 (en) | Method, device and terminal device for video effect processing | |
CN107204883B (en) | Network fault processing method and device | |
US10963149B2 (en) | Parameter adjustment method, apparatus and storage medium | |
EP3136699A1 (en) | Method and device for connecting external equipment | |
EP3258414B1 (en) | Prompting method and apparatus for photographing | |
CN108173744B (en) | Information processing method and device | |
EP3322227B1 (en) | Methods and apparatuses for controlling wireless connection, computer program and recording medium | |
US20180035154A1 (en) | Method, Apparatus, and Storage Medium for Sharing Video | |
EP3176984A1 (en) | Method and device for processing information | |
CN106101433B (en) | Notification message display methods and device | |
RU2615683C2 (en) | Method and device for communication identification performance | |
WO2016015404A1 (en) | Call transfer method, device and terminal | |
CN109408022A (en) | Display methods, device, terminal and storage medium | |
CN105227426B (en) | Application interface switching method and device and terminal equipment | |
CN106357504B (en) | User list method for cleaning and device | |
CN105119984B (en) | Send the method and device of file | |
CN109547323B (en) | Information processing method, device, server, terminal and storage medium | |
CN107026941B (en) | Method and device for processing reply of unread message | |
CN105391942B (en) | Automatic photographing method and device | |
CN108551459B (en) | Method and device for communication between devices and readable storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |