CN105573580A - Display method and device for image-text hybrid message - Google Patents

Display method and device for image-text hybrid message Download PDF

Info

Publication number
CN105573580A
CN105573580A CN201510917951.XA CN201510917951A CN105573580A CN 105573580 A CN105573580 A CN 105573580A CN 201510917951 A CN201510917951 A CN 201510917951A CN 105573580 A CN105573580 A CN 105573580A
Authority
CN
China
Prior art keywords
viewing area
width
picture
mixed messaging
height
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201510917951.XA
Other languages
Chinese (zh)
Inventor
刘万春
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Netease Hangzhou Network Co Ltd
Original Assignee
Netease Hangzhou Network 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 Netease Hangzhou Network Co Ltd filed Critical Netease Hangzhou Network Co Ltd
Priority to CN201510917951.XA priority Critical patent/CN105573580A/en
Publication of CN105573580A publication Critical patent/CN105573580A/en
Pending legal-status Critical Current

Links

Classifications

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

Abstract

The invention provides a display method and device for an image-text hybrid message. The display method for the image-text hybrid message comprises the following steps of receiving a hybrid message of an image and a character; determining the maximum width and the maximum height of a display region where the hybrid message is located according to set size information of the image and/or the character of each line in the hybrid message; and displaying the hybrid message in the display region according to the position information of the display region and the maximum width and the maximum height of the display region. With the display method and device, the hybrid message of the image and the character can be displayed in the display region, and a user experience is relatively good.

Description

The display packing of picture and text mixed messaging and device
Technical field
The present invention relates to communication technical field, particularly relate to a kind of display packing and device of picture and text mixed messaging.
Background technology
Along with popularizing of network, instant messaging (InstantMessaging is called for short IM) instrument has become a kind of major way that people carry out information interaction, comprises the message of character information, image information and character and picture mixing in IM message.
In prior art, process user input comprise picture and character mixed messaging time, the IM instrument of transmitting terminal is usually rolled over the picture of user's input and character mixed messaging in order and is divided into several independent character informations and independent image information comes and shows, but the picture and text mixed messaging of user's input is split into several independent character informations and the display of independent image information lacks dirigibility, that can cause information displaying to user isolates sense.
Summary of the invention
The invention provides a kind of display packing and device of picture and text mixed messaging, the picture and text mixed messaging of user's input is split into several independent character informations and the display of independent image information lacks dirigibility to overcome in prior art, the problem of isolating sense of information displaying can be caused to user.
First aspect, the invention provides a kind of display packing of picture and text mixed messaging, comprising:
Receive the mixed messaging of picture and character;
According to the picture of often going in described mixed messaging and/or the setting dimension information of character, determine breadth extreme and the maximum height of the viewing area at described mixed messaging place;
According to the positional information of described viewing area and the breadth extreme of described viewing area and maximum height, in described viewing area, show described mixed messaging.
Second aspect, the invention provides a kind of display device of picture and text mixed messaging, comprising:
Receiver module, for receiving the mixed messaging of picture and character;
Determination module, for the setting dimension information according to the picture of often going in described mixed messaging and/or character, determines breadth extreme and the maximum height of the viewing area at described mixed messaging place;
Processing module, for according to the positional information of described viewing area and the breadth extreme of described viewing area and maximum height, shows described mixed messaging in described viewing area.
The display packing of picture and text mixed messaging of the present invention and device, by receiving the mixed messaging of picture and character; According to the picture of often going in mixed messaging and/or the setting dimension information of character, determine breadth extreme and the maximum height of the viewing area at mixed messaging place; And according to the positional information of viewing area and the breadth extreme of viewing area and maximum height, mixed messaging is shown in viewing area, finally achieve and the mixed messaging of picture and character can be shown in a viewing area, compared to existing technologies, the mixed messaging of picture and character can not be split into several independent characters and image information, better user experience.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the schematic flow sheet of display packing one embodiment of picture and text mixed messaging of the present invention;
Fig. 2 is the message display schematic diagram one of the inventive method embodiment;
Fig. 3 is the message display schematic diagram two of the inventive method embodiment;
Fig. 4 is the schematic flow sheet of another embodiment of display packing of picture and text mixed messaging of the present invention;
Fig. 5 is the structural representation of display device one embodiment of picture and text mixed messaging of the present invention;
Fig. 6 is the structural representation of subscriber equipment one embodiment of the present invention.
Embodiment
For making the object of the embodiment of the present invention, technical scheme and advantage clearly, below in conjunction with the accompanying drawing in the embodiment of the present invention, technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
The method of the embodiment of the present invention can be applied in subscriber equipment, this subscriber equipment can include but not limited to the mobile communication equipment such as smart mobile phone, panel computer, can also comprise and both have the mobile terminal that touch-screen also has physical button, the embodiment of the present invention does not limit.
With embodiment particularly, technical scheme of the present invention is described in detail below.These specific embodiments can be combined with each other below, may repeat no more for same or analogous concept or process in some embodiment.
Fig. 1 is the schematic flow sheet of display packing one embodiment of picture and text mixed messaging of the present invention.As shown in Figure 1, the method for the present embodiment, comprising:
The mixed messaging of step 101, reception picture and character;
Step 102, according to the picture of often going in mixed messaging and/or the setting dimension information of character, determine breadth extreme and the maximum height of the viewing area at mixed messaging place;
Step 103, according to the positional information of viewing area and the breadth extreme of viewing area and maximum height, in viewing area, show mixed messaging.
Specifically, first, receive the picture of user's input and the mixed messaging of character, want the display realizing picture and text mixed messaging, need the size of the viewing area first determining picture and text mixed messaging place, namely breadth extreme and the maximum height of the viewing area at mixed messaging place is first determined, this mixed messaging may comprise multiple line content, then according to the width of every row content and the breadth extreme of viewing area and the maximum height of highly determining mixed messaging place, particularly, whether mixed messaging comprises how many row content can according to having newline to determine, finally according to breadth extreme and the maximum height of the positional information of viewing area and the viewing area at mixed messaging place, mixed messaging is shown in viewing area.
Wherein, the positional information of viewing area can be represented by the coordinate on the summit of viewing area, such as, represent the positional information of viewing area with the coordinate on the summit in the upper left corner of viewing area.
Often row content width and height, can be specifically determine according to the picture of this row content in mixed messaging and/or the setting dimension information of character.
Wherein, in actual applications, the setting dimension information of character portion comprises: the font of character, font size, word space;
The setting dimension information of Picture section comprises: width threshold value.
Such as, often the width of row content equals the width of character portion all in this row and/or the width sum of all Picture section, the width of all character portion is that the width of each character adds word space sum, and the width of all Picture section is the width sum of each picture.
Fig. 2 is the message display schematic diagram one of the inventive method embodiment.Fig. 3 is the message display schematic diagram two of the inventive method embodiment.The effect of mixed messaging is shown as shown in Figure 2 and Figure 3 in viewing area, a line content split during final display in Fig. 2 had both comprised character and had also comprised picture, the newline added when specifically can be and input according to user splits, and also can be to split according to the width threshold value restriction of the viewing area of mixed messaging; In Fig. 3, during final display, often row content only comprises character or only comprises picture, and the newline added when also can be and input according to user splits, or split according to the width threshold value restriction of the viewing area of mixed messaging.
As shown in Figure 2 and Figure 3, the viewing area of mixed messaging is the round rectangle region of certain mixed messaging display.
The display packing of the picture and text mixed messaging of the present embodiment, by receiving the mixed messaging of picture and character; According to the picture of often going in mixed messaging and/or the setting dimension information of character, determine breadth extreme and the maximum height of the viewing area at mixed messaging place; And according to the positional information of viewing area with the breadth extreme of viewing area and maximum height, mixed messaging is shown in viewing area, finally achieve and the mixed messaging of picture and character can be shown in a viewing area, compared to existing technologies, the mixed messaging of picture and character can not be split into several independent characters and image information, better user experience.
Adopt several specific embodiment below, the technical scheme of embodiment of the method shown in Fig. 1 is described in detail.
Fig. 4 is the schematic flow sheet of another embodiment of display packing of picture and text mixed messaging of the present invention.On basis embodiment illustrated in fig. 1, further, in actual applications, the specific implementation of step 102 can have multiple, and as the enforceable mode of one, as shown in Figure 4, step 102 specifically can comprise the steps:
Step 1021, by mixed messaging by newline split embark on journey, often go content comprise character portion and/or Picture section;
Step 1022, according to the width of the setting dimension information determination character portion of every line character part and height, according to width and the height of the every setting dimension information determination Picture section of row Picture section;
Step 1023, according to the width of this row content in viewing area in the width sum determination mixed messaging of the width of every line character part and/or every row Picture section, according to the height of this row content in viewing area in the height determination mixed messaging of the height of every line character part and/or every row Picture section;
Step 1024, breadth extreme according to the viewing area at the width determination mixed messaging place of row content each in mixed messaging in viewing area, according to the maximum height of the viewing area at the height determination mixed messaging place of row content each in mixed messaging in viewing area.
Specifically, mixed messaging may be one section of message that user inputs, and comprises multiple line content, and split by newline and embark on journey, often row content comprises character and/or picture;
If certain row content had both comprised character and also comprised picture, then according to the setting dimension information of character portion, determine width and the height of this line character part, the setting dimension information of character portion, as font, font size, the word space of character; Determine width and the height of this row Picture section according to the setting dimension information of this row Picture section, the setting dimension information of Picture section is as width threshold value; Then determining the width of this row content in viewing area according to the width of this line character part and the width sum of this row Picture section, can be specifically the width of character portion and the width sum of Picture section; Maximal value according to the height of this line character part and the height of this row Picture section determines the width of this row content in viewing area;
If certain row content only comprises character, then according to the setting dimension information of character portion, determine width and the height of this line character part, the setting dimension information of character portion, as font, font size, the word space of character; Then determine the width of this row content in viewing area according to the width of this line character part, namely the width of this line character part is as the width of this row content in viewing area; Using the height of this line character part this row content height in viewing area in mixed messaging;
If certain row content only comprises picture, then according to the setting dimension information of Picture section, determine width and the height of this row Picture section, the setting dimension information of Picture section, as width threshold value; Then determine the width of this row content in viewing area according to the width of this row Picture section, namely the width of this row Picture section is the width of this row content in viewing area; Using the height of this row Picture section this row content height in viewing area in mixed messaging;
Wherein, if the former width of picture is greater than the width threshold value of described setting dimension information in described Picture section, then the width of described picture is set as described width threshold value, and geometric ratio compression is carried out to the height of described picture;
Using the width of the width sum of the picture after compression in described Picture section as described Picture section, using the height of the maximal value of the height of the picture after compression in described Picture section as described Picture section.
Concrete, the Picture section comprised in certain row content can comprise plurality of pictures, if the former width of certain pictures is greater than the width threshold value of described setting dimension information, then the width of this picture is set as described width threshold value, and geometric ratio compression is carried out to the height of this picture, using the width of the width sum of the picture in described Picture section as described Picture section, and using the height of the maximal value of the height of the picture in described Picture section as described Picture section; The width of picture now and be highly width after overcompression and highly, or, if the former width of picture does not exceed width threshold value, be then former width and former height.
Finally according to the maximal value of the width of each row content in viewing area in the above-mentioned mixed messaging determined, determine the breadth extreme of the viewing area at mixed messaging place, according to the maximum height of the viewing area at the height sum of row content each in mixed messaging in viewing area and default line space sum determination mixed messaging place.
In actual applications, when determining breadth extreme and the maximum height of the viewing area at mixed messaging place, default back gauge can also be added.
In above-mentioned embodiment, achieve the setting dimension information specifically how according to the picture in mixed messaging and character, determine breadth extreme and the maximum height of the viewing area at mixed messaging place.
Further, after according to the width of this row content in viewing area in the width sum determination mixed messaging of the width of every line character part and/or every row Picture section, also comprise the steps:
If wherein the width of the character portion of a line and/or the width sum of Picture section are greater than the width threshold value preset viewing area in mixed messaging, then using the width of width threshold value this row content in mixed messaging, and newly-increased next line will exceed the character portion of width threshold value and/or the Picture section content as next line in this row content.
Specifically, after determining the width of often row content in mixed messaging, also need to judge whether the width threshold value preset beyond viewing area, if exceed, using the breadth extreme of this width threshold value as this row content, and newly-increased next line will exceed the content of part as next line, if do not exceed, then this row content is just as the criterion with the width determined.
Wherein, as shown in Figure 3, the message content of whole viewing area be a line content originally, middle not newline, but has exceeded the default width threshold value of viewing area due to width, then the content of content as newly-increased next line will be exceeded, now using this width threshold value after the breadth extreme of this row content, also to judge, exceed part whether be a complete character or a picture, if not complete, then whole complete character or picture are all placed on newly-increased next line.
On the basis of above-described embodiment, further, the specific implementation of step 103 can have multiple, as the enforceable mode of one, specifically can realize in the following way:
According to positional information and the default back gauge information of viewing area, determine the position of mixed messaging in viewing area;
The starting point coordinate of each row in viewing area is determined according to the height of each row in the position of mixed messaging in viewing area, mixed messaging and default line space.
According to the starting point coordinate of each row of mixed messaging in viewing area, show mixed messaging often row content successively.
Specifically, first, according to position positional information and the default back gauge information of viewing area, determine the position of mixed messaging in viewing area, back gauge information is the distance on the border of whole mixed messaging distance viewing area, can have four borders; Wherein, the positional information of viewing area can be represented by the coordinate on the summit of viewing area, such as, represent the positional information of viewing area with the coordinate on the summit in the upper left corner of viewing area.
The starting point horizontal ordinate of each row content of mixed messaging is that the horizontal ordinate of the left margin of viewing area adds left side distance;
The starting point ordinate of certain a line content of mixed messaging is the height sum that the ordinate of the coboundary of viewing area adds top margin and all row before this row, adds the line space between each row;
According to the starting point horizontal ordinate of each row of mixed messaging in viewing area and ordinate, to show in mixed messaging often row content successively.
It should be noted that, the back gauge preset in other embodiments of the present invention can be also 0, and the present invention does not limit this.
Fig. 5 is the structural representation of display device one embodiment of picture and text mixed messaging of the present invention.As shown in Figure 5, the display device of the picture and text mixed messaging of the present embodiment can be arranged in subscriber equipment, comprising: receiver module 501, determination module 502, processing module 503;
Wherein, receiver module 501, for receiving the mixed messaging of picture and character;
Determination module 502, for the setting dimension information according to the picture of often going in described mixed messaging and/or character, determines breadth extreme and the maximum height of the viewing area at described mixed messaging place;
Processing module 503, for according to the positional information of described viewing area and the breadth extreme of described viewing area and maximum height, shows described mixed messaging in described viewing area.
Alternatively, as the enforceable mode of one, described determination module 502, specifically for:
Split by newline by described mixed messaging and embark on journey, the content of often going comprises character portion and/or Picture section;
Determining width and the height of described character portion according to often going the setting dimension information of described character portion, determining width and the height of described Picture section according to often going the setting dimension information of described Picture section;
Determining the width of this row content in described viewing area in described mixed messaging according to often going the width of described character portion and/or the width sum of described Picture section of often going, determining the height of this row content in described viewing area in described mixed messaging according to often going the height of described character portion and/or the height of described Picture section of often going;
Determine the breadth extreme of the viewing area at described mixed messaging place according to the width of each row content in described viewing area in described mixed messaging, determine the maximum height of the viewing area at described mixed messaging place according to the height sum of row content each in described mixed messaging in described viewing area.
Alternatively, as the enforceable mode of one, described determination module 502, specifically for:
If the former width of picture is greater than the width threshold value of described setting dimension information in described Picture section, then the width of described picture is set as described width threshold value, and geometric ratio compression is carried out to the height of described picture;
Using the width of the width sum of the picture after compression in described Picture section as described Picture section, using the height of the maximal value of the height of the picture after compression in described Picture section as described Picture section.
Alternatively, as the enforceable mode of one, described determination module 502, also specifically for:
If described mixed messaging wherein the width of the described character portion of a line and/or described Picture section width sum be greater than the width threshold value preset described viewing area, then using the width of described width threshold value as this row content in described mixed messaging, and newly-increased next line will exceed the character portion of described width threshold value and/or the Picture section content as described next line in this row content described.
Alternatively, as the enforceable mode of one, described processing module 503, specifically for:
According to positional information and the default back gauge information of described viewing area, determine the position of described mixed messaging in described viewing area;
The starting point coordinate of each row in described viewing area is determined according to the height of each row in the position of described mixed messaging in described viewing area, described mixed messaging and described default line space.
According to the starting point coordinate of each row of described mixed messaging in described viewing area, to show in described mixed messaging often row content successively.
Alternatively, as the enforceable mode of one, the setting dimension information of described character portion comprises: the font of character, font size, word space;
The setting dimension information of described Picture section comprises: width threshold value.
It should be noted that, for device embodiment, because it is substantially corresponding to embodiment of the method, so relevant part illustrates see the part of embodiment of the method.
Fig. 6 is the structural representation of subscriber equipment one embodiment of the present invention.As shown in Figure 6, the subscriber equipment of the present embodiment, can comprise: storer 601, processor 602 and communication interface 603;
Wherein, storer 601, for storage program; Particularly, program can comprise program code, and described program code comprises computer-managed instruction.Storer 601 may comprise random access memory (randomaccessmemory is called for short RAM), still may comprise nonvolatile memory (non-volatilememory), such as at least one magnetic disk memory.
Processor 602, for the program that execute store 601 stores, for performing the technical scheme that the inventive method embodiment provides, it realizes principle and technique effect is similar, with reference to the embodiment of the method shown in figure 1-Fig. 4, can repeat no more herein.
Described processor 602 by integrated circuit (IntegratedCircuit is called for short IC) composition, such as, can be made up of the IC of single encapsulation, also can be made up of the encapsulation IC connecting many identical functions or difference in functionality.For example, processor 602 can be central processing unit (CentralProcessingUnit, be called for short CPU), also can be digital signal processor (DigitalSignalProcessor, be called for short DSP), special IC (ASIC), field programmable gate array (FPGA) or other programmable logic device (PLD), discrete gate or transistor logic, discrete hardware components.
Communication interface 603, for receiving character and the mixed messaging of picture of user's input; The function of above-mentioned receiver module can have communication interface to realize.
Above-mentioned parts are communicated by one or more bus.
The function of above-mentioned determination module and processing module can be realized by processor.
One of ordinary skill in the art will appreciate that: all or part of step realizing said method embodiment can have been come by the hardware that programmed instruction is relevant, aforesaid program can be stored in a computer read/write memory medium, this program, when performing, performs the step comprising said method embodiment; And aforesaid storage medium comprises: ROM, RAM, magnetic disc or CD etc. various can be program code stored medium.
Last it is noted that above each embodiment is only in order to illustrate technical scheme of the present invention, be not intended to limit; Although with reference to foregoing embodiments to invention has been detailed description, those of ordinary skill in the art is to be understood that: it still can be modified to the technical scheme described in foregoing embodiments, or carries out equivalent replacement to wherein some or all of technical characteristic; And these amendments or replacement, do not make the essence of appropriate technical solution depart from the scope of various embodiments of the present invention technical scheme.

Claims (12)

1. a display packing for picture and text mixed messaging, is characterized in that, comprising:
Receive the mixed messaging of picture and character;
According to the picture of often going in described mixed messaging and/or the setting dimension information of character, determine breadth extreme and the maximum height of the viewing area at described mixed messaging place;
According to the positional information of described viewing area and the breadth extreme of described viewing area and maximum height, in described viewing area, show described mixed messaging.
2. method according to claim 1, is characterized in that, described picture according to often going in described mixed messaging and/or the setting dimension information of character, determines breadth extreme and the maximum height of the viewing area at described mixed messaging place, specifically comprises:
Split by newline by described mixed messaging and embark on journey, the content of often going comprises character portion and/or Picture section;
Determining width and the height of described character portion according to often going the setting dimension information of described character portion, determining width and the height of described Picture section according to often going the setting dimension information of described Picture section;
Determining the width of this row content in described viewing area in described mixed messaging according to often going the width of described character portion and/or the width sum of described Picture section of often going, determining the height of this row content in described viewing area in described mixed messaging according to often going the height of described character portion and/or the height of described Picture section of often going;
Determine the breadth extreme of the viewing area at described mixed messaging place according to row content each in described mixed messaging at the width of described viewing area, determine the maximum height of the viewing area at described mixed messaging place according to the height sum of row content each in described mixed messaging in described viewing area.
3. method according to claim 2, is characterized in that, determines to comprise width and the height of described Picture section according to often going the setting dimension information of described Picture section:
If the former width of picture is greater than the width threshold value of described setting dimension information in described Picture section, then the width of described picture is set as described width threshold value, and geometric ratio compression is carried out to the height of described picture;
Using the width of the width sum of the picture after compression in described Picture section as described Picture section, using the height of the maximal value of the height of the picture after compression in described Picture section as described Picture section.
4. method according to claim 3, is characterized in that, to determine in described mixed messaging, after the width of this row content in described viewing area, also to comprise according to often going the width of described character portion and/or the width sum of described Picture section of often going:
If the described mixed messaging wherein width of the described character portion of a line and/or the width sum of described Picture section is greater than the width threshold value preset described viewing area, then using the width of described width threshold value as this row content in described mixed messaging, and newly-increased next line will exceed the character portion of described width threshold value and/or the Picture section content as described next line in this row content described.
5. the method according to any one of claim 1-4, is characterized in that, the breadth extreme of the described positional information according to described viewing area and described viewing area and maximum height, show described mixed messaging, comprising in described viewing area:
According to positional information and the default back gauge information of described viewing area, determine the position of described mixed messaging in described viewing area;
The starting point coordinate of each row in described viewing area is determined according to the height of each row in the position of described mixed messaging in described viewing area, described mixed messaging and described default line space.
According to the starting point coordinate of each row of described mixed messaging in described viewing area, to show in described mixed messaging often row content successively.
6. the method according to any one of claim 1-4, is characterized in that, the setting dimension information of described character portion comprises: the font of character, font size, word space;
The setting dimension information of described Picture section comprises: width threshold value.
7. a display device for picture and text mixed messaging, is characterized in that, comprising:
Receiver module, for receiving the mixed messaging of picture and character;
Determination module, for the setting dimension information according to the picture of often going in described mixed messaging and/or character, determines breadth extreme and the maximum height of the viewing area at described mixed messaging place;
Processing module, for according to the positional information of described viewing area and the breadth extreme of described viewing area and maximum height, shows described mixed messaging in described viewing area.
8. device according to claim 7, is characterized in that, described determination module, specifically for:
Split by newline by described mixed messaging and embark on journey, the content of often going comprises character portion and/or Picture section;
Determining width and the height of described character portion according to often going the setting dimension information of described character portion, determining width and the height of described Picture section according to often going the setting dimension information of described Picture section;
Determining the width of this row content in described viewing area in described mixed messaging according to often going the width of described character portion and/or the width sum of described Picture section of often going, determining the height of this row content in described viewing area in described mixed messaging according to often going the height of described character portion and/or the height of described Picture section of often going;
Determine the breadth extreme of the viewing area at described mixed messaging place according to the width of each row content in described viewing area in described mixed messaging, determine the maximum height of the viewing area at described mixed messaging place according to the height sum of row content each in described mixed messaging in described viewing area.
9. device according to claim 8, is characterized in that, described determination module, specifically for:
If the former width of picture is greater than the width threshold value of described setting dimension information in described Picture section, then the width of described picture is set as described width threshold value, and geometric ratio compression is carried out to the height of described picture;
Using the width of the width sum of the picture after compression in described Picture section as described Picture section, using the height of the maximal value of the height of the picture after compression in described Picture section as described Picture section.
10. device according to claim 9, is characterized in that, described determination module, also specifically for:
If described mixed messaging wherein the width of the described character portion of a line and/or described Picture section width sum be greater than the width threshold value preset described viewing area, then using the width of described width threshold value as this row content in described mixed messaging, and newly-increased next line will exceed the character portion of described width threshold value and/or the Picture section content as described next line in this row content described.
11. devices according to any one of claim 7-10, is characterized in that, described processing module, specifically for:
According to positional information and the default back gauge information of described viewing area, determine the position of described mixed messaging in described viewing area;
The starting point coordinate of each row in described viewing area is determined according to the height of each row in the position of described mixed messaging in described viewing area, described mixed messaging and described default line space.
According to the starting point coordinate of each row of described mixed messaging in described viewing area, to show in described mixed messaging often row content successively.
12. devices according to any one of claim 7-10, it is characterized in that, the setting dimension information of described character portion comprises: the font of character, font size, word space;
The setting dimension information of described Picture section comprises: width threshold value.
CN201510917951.XA 2015-12-10 2015-12-10 Display method and device for image-text hybrid message Pending CN105573580A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510917951.XA CN105573580A (en) 2015-12-10 2015-12-10 Display method and device for image-text hybrid message

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510917951.XA CN105573580A (en) 2015-12-10 2015-12-10 Display method and device for image-text hybrid message

Publications (1)

Publication Number Publication Date
CN105573580A true CN105573580A (en) 2016-05-11

Family

ID=55883789

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510917951.XA Pending CN105573580A (en) 2015-12-10 2015-12-10 Display method and device for image-text hybrid message

Country Status (1)

Country Link
CN (1) CN105573580A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106873925A (en) * 2015-12-10 2017-06-20 北京国双科技有限公司 The display methods and device of label text
CN110196673A (en) * 2019-06-04 2019-09-03 北京达佳互联信息技术有限公司 Picture exchange method, device, terminal and storage medium
CN112507257A (en) * 2020-12-07 2021-03-16 北京达佳互联信息技术有限公司 Webpage display method, device, equipment and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1980137A (en) * 2005-12-09 2007-06-13 腾讯科技(深圳)有限公司 Method for fully displaying received picture and subscriber terminal thereof
CN102487362A (en) * 2010-12-03 2012-06-06 腾讯科技(深圳)有限公司 Instant messaging (IM) message display method and device
CN103118342A (en) * 2013-01-22 2013-05-22 中兴通讯股份有限公司 Multi-media information sending, receiving and transmission method and card sending and receiving terminal
KR20130124111A (en) * 2012-05-04 2013-11-13 엘지전자 주식회사 Mobile terminal and control method therof
CN103457825A (en) * 2012-05-31 2013-12-18 华为技术有限公司 Method, device and system for achieving instant message communication
CN103905292A (en) * 2012-12-28 2014-07-02 厦门亿联网络技术股份有限公司 A method and system for transmitting an instant messaging message with pictures
CN104159203A (en) * 2014-08-29 2014-11-19 蓝信工场(北京)科技有限公司 Method and device of carrying out mixed arrangement on multimedia information in chat dialog box

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1980137A (en) * 2005-12-09 2007-06-13 腾讯科技(深圳)有限公司 Method for fully displaying received picture and subscriber terminal thereof
CN102487362A (en) * 2010-12-03 2012-06-06 腾讯科技(深圳)有限公司 Instant messaging (IM) message display method and device
KR20130124111A (en) * 2012-05-04 2013-11-13 엘지전자 주식회사 Mobile terminal and control method therof
CN103457825A (en) * 2012-05-31 2013-12-18 华为技术有限公司 Method, device and system for achieving instant message communication
CN103905292A (en) * 2012-12-28 2014-07-02 厦门亿联网络技术股份有限公司 A method and system for transmitting an instant messaging message with pictures
CN103118342A (en) * 2013-01-22 2013-05-22 中兴通讯股份有限公司 Multi-media information sending, receiving and transmission method and card sending and receiving terminal
CN104159203A (en) * 2014-08-29 2014-11-19 蓝信工场(北京)科技有限公司 Method and device of carrying out mixed arrangement on multimedia information in chat dialog box

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106873925A (en) * 2015-12-10 2017-06-20 北京国双科技有限公司 The display methods and device of label text
CN110196673A (en) * 2019-06-04 2019-09-03 北京达佳互联信息技术有限公司 Picture exchange method, device, terminal and storage medium
CN112507257A (en) * 2020-12-07 2021-03-16 北京达佳互联信息技术有限公司 Webpage display method, device, equipment and storage medium
CN112507257B (en) * 2020-12-07 2024-03-26 北京达佳互联信息技术有限公司 Webpage display method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
US10834424B2 (en) Method and device for compressing image, and electronic device
CN103297855B (en) Application display method and terminal
US10484639B2 (en) Image generation method and device
US9959652B2 (en) Display method and terminal
US9686672B2 (en) Method for prompting identification card information, mobile terminal and electronic device
CN104571877A (en) Display processing method and device for pages
US9983764B2 (en) Method, electronic device, and non-transitory storage medium for adjusting icons
US11231836B2 (en) Multi-window displaying apparatus and method and mobile electronic equipment
CN105573484A (en) Projection method and terminal
CN112055244B (en) Image acquisition method and device, server and electronic equipment
CN105573580A (en) Display method and device for image-text hybrid message
CN113590066A (en) Full-automatic multi-screen splicing method, device, equipment and storage medium
JP2024504053A (en) Two-dimensional code display method, apparatus, device and medium
CN116719598A (en) Tree data virtual rolling processing method and device
CN104093061A (en) Content sharing method and device
CN108847120B (en) Drawing method based on electronic fence map order thermodynamic diagram distribution
CN114265653A (en) Interface display method, device, equipment, storage medium and program product
US10321321B2 (en) Method and device for displaying locked interface and mobile terminal
CN109214977B (en) Image processing apparatus and control method thereof
CN106780295A (en) Image processing method and device
CN104918073A (en) Image display method and terminal
CN112153409B (en) Live broadcast method and device, live broadcast receiving end and storage medium
CN114219812A (en) Label avoiding method and device, electronic equipment and storage medium
CN104615357A (en) Terminal
CN114003191A (en) Screen display method, device and 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
RJ01 Rejection of invention patent application after publication

Application publication date: 20160511

RJ01 Rejection of invention patent application after publication