CN108304241A - A kind of method and apparatus of display dialog box - Google Patents

A kind of method and apparatus of display dialog box Download PDF

Info

Publication number
CN108304241A
CN108304241A CN201810098927.1A CN201810098927A CN108304241A CN 108304241 A CN108304241 A CN 108304241A CN 201810098927 A CN201810098927 A CN 201810098927A CN 108304241 A CN108304241 A CN 108304241A
Authority
CN
China
Prior art keywords
width
thumbnail
dialog box
communication window
display
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.)
Granted
Application number
CN201810098927.1A
Other languages
Chinese (zh)
Other versions
CN108304241B (en
Inventor
陈金源
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Kugou Computer Technology Co Ltd
Original Assignee
Guangzhou Kugou Computer Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Kugou Computer Technology Co Ltd filed Critical Guangzhou Kugou Computer Technology Co Ltd
Priority to CN201810098927.1A priority Critical patent/CN108304241B/en
Publication of CN108304241A publication Critical patent/CN108304241A/en
Application granted granted Critical
Publication of CN108304241B publication Critical patent/CN108304241B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • User Interface Of Digital Computer (AREA)

Abstract

The invention discloses a kind of method and apparatus of display dialog box, belong to network technique field.The method includes:The Target Photo transmitted in communication process is obtained, the wide high proportion of the Target Photo is obtained;Based on current communication window width and preset dialogue width of frame ratio shared in communication window width, thumbnail width is determined;According to the thumbnail width and the wide high proportion, the corresponding thumbnail pictures of the Target Photo are generated;Display includes the dialog box of the thumbnail pictures in communication window.Using the present invention, it can prevent information from omitting.

Description

A kind of method and apparatus of display dialog box
Technical field
The present invention relates to network technique field, more particularly to a kind of method and apparatus of display dialog box.
Background technology
With the development of network technology, people use various messaging applications and communicate more and more.It is using When messaging application is communicated, it is logical that sender user can send word, voice, picture or video etc. to recipient user Content is interrogated, dialog box can be shown on receiving side terminal, the Content of communciation of sender user is shown in dialog box, meanwhile, sender Also the dialog box for the Content of communciation that sender user oneself sends can be shown in terminal.
The size of the dialog box of display depends on the size of Content of communciation.For example, sender user sends out to recipient user The picture for sending two sizes different, then can show two different size of dialogues on sending side terminal and receiving side terminal Frame.
In the implementation of the present invention, the inventor finds that the existing technology has at least the following problems:
When sender user sends more picture not of uniform size, dialogue not of uniform size can be shown on receiving side terminal Frame so that user interface is more in disorder, when some picture it is small-sized when, the dialog box of display also can very little, it is possible to lead The picture is seen in family leakage of applying, and causes user that may miss certain information.
Invention content
In order to solve problems in the prior art, an embodiment of the present invention provides a kind of method and apparatus of display dialog box. The technical solution is as follows:
According to a first aspect of the embodiments of the present invention, a kind of method of display dialog box is provided, the method includes:
The Target Photo transmitted in communication process is obtained, the wide high proportion of the Target Photo is obtained;
Based on current communication window width and preset dialogue width of frame ratio shared in communication window width, Determine thumbnail width;
According to the thumbnail width and the wide high proportion, the corresponding thumbnail pictures of the Target Photo are generated;
Display includes the dialog box of the thumbnail pictures in communication window.
Optionally, the display in communication window includes the dialog box of the thumbnail pictures, including:
If the height of the thumbnail pictures is not more than preset height, display includes the thumbnail in communication window The dialog box of piece.
Optionally, the method further includes:
If the height of the thumbnail pictures is more than preset height, the preset height is intercepted in the thumbnail pictures Part picture;
Display includes the dialog box of the part picture in communication window.
Optionally, it is described based on current communication window width and preset dialogue width of frame in communication window width Shared ratio determines thumbnail width, including:
By the communication window width and preset dialogue width of frame ratio shared in the communication window width Product is determined as thumbnail width.
Optionally, described according to the thumbnail width and the wide high proportion, it is corresponding to generate the Target Photo Thumbnail pictures, including:
By the product reciprocal of the thumbnail width and the wide high proportion, it is determined as thumbnail height;
According to the thumbnail width and the thumbnail height, the corresponding thumbnail pictures of the Target Photo are generated.
Optionally, the Target Photo is the picture frame in the target video of transmission, and the method further includes:
Obtain the video length of the target video;
The display in communication window includes the dialog box of the thumbnail pictures, including:
Dialog box of the display comprising the thumbnail pictures, broadcasting icon and the video length in communication window.
According to a second aspect of the embodiments of the present invention, a kind of device of display dialog box is provided, described device includes:
First acquisition module, for obtaining the Target Photo transmitted in communication process, the width for obtaining the Target Photo is high Ratio;
Determining module is used for based on current communication window width and preset dialogue width of frame in communication window width In shared ratio, determine thumbnail width;
Generation module, for according to the thumbnail width and the wide high proportion, generating the Target Photo and corresponding to Thumbnail pictures;
First display module, for showing the dialog box for including the thumbnail pictures in communication window.
Optionally, first display module, is used for:
If the height of the thumbnail pictures is not more than preset height, display includes the thumbnail in communication window The dialog box of piece.
Optionally, described device further includes:
Interception module is cut if the height for the thumbnail pictures is more than preset height in the thumbnail pictures Take the part picture of the preset height;
Second display module, for showing the dialog box for including the part picture in communication window.
Optionally, the determining module is used for:
By the communication window width and preset dialogue width of frame ratio shared in the communication window width Product is determined as thumbnail width.
Optionally, the generation module, is used for:
By the product reciprocal of the thumbnail width and the wide high proportion, it is determined as thumbnail height;
According to the thumbnail width and the thumbnail height, the corresponding thumbnail pictures of the Target Photo are generated.
Optionally, the Target Photo is the picture frame in the target video of transmission, and described device further includes:
Second acquisition module, the video length for obtaining the target video;
First display module, is used for:
Dialog box of the display comprising the thumbnail pictures, broadcasting icon and the video length in communication window.
According to a third aspect of the embodiments of the present invention, a kind of terminal is provided, the terminal includes processor and memory, institute It states and is stored at least one instruction, at least one section of program, code set or instruction set in memory, at least one instruction, institute At least one section of program, the code set or instruction set is stated to be loaded by the processor and executed to realize as described in relation to the first aspect The method for showing dialog box.
According to a fourth aspect of the embodiments of the present invention, a kind of computer readable storage medium is provided, in the storage medium It is stored at least one instruction, at least one section of program, code set or instruction set, described at least one instructs, is at least one section described Program, the code set or instruction set are loaded by the processor and are executed to realize display dialog box as described in relation to the first aspect Method.
The advantageous effect that technical solution provided in an embodiment of the present invention is brought is:
In the embodiment of the present invention, the Target Photo transmitted in communication process is obtained, the ratio of width to height of the Target Photo is obtained Example;Based on current communication window width and preset dialogue width of frame ratio shared in communication window width, determine Thumbnail width;According to the thumbnail width and the wide high proportion, the corresponding thumbnail pictures of the Target Photo are generated; Display includes the dialog box of the thumbnail pictures in communication window.In this way, when sender user send it is more not of uniform size When picture, the identical dialog box of meeting display width on receiving side terminal so that user interface is more neat, even if some picture When small-sized, the dialog box of display is also of same size with the dialog box of other pictures, this way it is possible to avoid the figure is seen in user's leakage Piece prevents information from omitting.
It should be understood that above general description and following detailed description is only exemplary and explanatory, not It can the limitation present invention.
Description of the drawings
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment Attached drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for For those of ordinary skill in the art, without creative efforts, other are can also be obtained according to these attached drawings Attached drawing.
Fig. 1 is a kind of flow chart of the method for display dialog box provided in an embodiment of the present invention;
Fig. 2 (a) is a kind of interface schematic diagram of display dialog box provided in an embodiment of the present invention;
Fig. 2 (b) is a kind of interface schematic diagram of display dialog box provided in an embodiment of the present invention;
Fig. 3 (a) is a kind of interface schematic diagram of display dialog box provided in an embodiment of the present invention;
Fig. 3 (b) is a kind of interface schematic diagram of display dialog box provided in an embodiment of the present invention;
Fig. 4 is a kind of structural schematic diagram of the device of display dialog box provided in an embodiment of the present invention;
Fig. 5 is a kind of structural schematic diagram of the device of display dialog box provided in an embodiment of the present invention;
Fig. 6 is a kind of structural schematic diagram of the device of display dialog box provided in an embodiment of the present invention;
Fig. 7 is a kind of terminal structure schematic diagram provided in an embodiment of the present invention.
Through the above attached drawings, it has been shown that the specific embodiment of the present invention will be hereinafter described in more detail.These attached drawings It is not intended to limit the scope of the inventive concept in any manner with verbal description, but is by referring to specific embodiments Those skilled in the art illustrate idea of the invention.
Specific implementation mode
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with attached drawing to embodiment party of the present invention Formula is described in further detail.
An embodiment of the present invention provides a kind of method of display dialog box, this method can be realized by terminal.
Terminal may include the components such as processor, memory, screen.Processor can be CPU (Central Processing Unit, central processing unit) etc., it can be used for obtaining the wide high proportion of Target Photo, generate Target Photo pair Thumbnail pictures, the control screen display answered include the dialog box of thumbnail pictures, carry out the height of thumbnail pictures and preset height Compare, intercept part picture etc. reason in thumbnail pictures.Memory, can be RAM (Random Access Memory, with Machine accesses memory), Flash (flash memory) etc. can be used for storing the data needed for the data received, processing procedure, handle The data etc. generated in the process, the Target Photo such as received, the wide high proportion of the Target Photo got, thumbnail width, The thumbnail pictures of generation, the dialog box of generation, preset height etc..Screen can be display screen, be displayed for the packet generated Dialog box etc. containing thumbnail pictures.Terminal can also include transceiver, image-detection component, audio output part and audio input Component etc..Transceiver can be used for carrying out data transmission with miscellaneous equipment, for example, sending Target Photo to server, receiving clothes The Target Photo etc. that business device is sent, may include antenna, match circuit, modem etc..Image-detection component can be taken the photograph As head etc..Audio output part can be speaker, earphone etc..Audio input means can be microphone etc..
As shown in Figure 1, the process flow of this method may include following step:
In a step 101, the Target Photo transmitted in communication process is obtained, the wide high proportion of Target Photo is obtained.
In force, it when sender user wants to send the picture to recipient user by messaging application, sends Square user can open the dialog interface with recipient user in messaging application, and then addition wants the picture sent (i.e. Target Photo), and click delivery option.
For sending side terminal while sending Target Photo, sending side terminal obtains the width and height of Target Photo, and According to the width and height of Target Photo, the wide high proportion of Target Photo is calculated, to be subsequently generated thumbnail pictures and dialogue Frame.
Target Photo is sent in the server of messaging application by sending side terminal, and server receives Target Photo Afterwards, Target Photo is sent to receiving side terminal.After reciever terminal receives Target Photo, the width and height of Target Photo are obtained Degree, and according to the width and height of Target Photo, calculate the wide high proportion of Target Photo.
It should be noted that in the above process width of Target Photo and height unit, can be pixel.For example, hair The Target Photo that Pixel Dimensions are 800 × 600 is sent to receiving side terminal by the side's of sending terminal, then sending side terminal and recipient are whole The width that end gets Target Photo respectively is 600 pixels, is highly 800 pixels, and calculate the wide high proportion of Target Photo 3:4。
In a step 102, based on current communication window width and preset dialogue width of frame in communication window width In shared ratio, determine thumbnail width.
In force, current communication window width and preset dialogue width of frame can be obtained in communication window width In shared ratio, it is shared in communication window width according to current communication window width and preset dialogue width of frame Thumbnail width is calculated in ratio.
Optionally, the method for calculating thumbnail width can be as follows:By communication window width and preset dialogue width of frame The product of shared ratio, is determined as thumbnail width in communication window width.
In force, technical staff can pre-set dialogue width of frame in communication window according to aesthetics and practicability Ratio shared by width, is stored in messaging application.When sender user sends picture to recipient user, sender Terminal and receiving side terminal can obtain Current communications window width and dialog box after the wide high proportion for obtaining Target Photo Then ratio of the width shared by communication window width calculates communication window width and dialogue width of frame in communication window width Obtained product is determined as thumbnail width by the product of shared ratio, and terminal can be according to being calculated thumbnail width Generate thumbnail.
As an example it is assumed that communication window width is 720, the dialogue width of frame of technical staff's setting is in communication window width Shared ratio is 10%, then calculates 720 × 10%=72, then can determine that thumbnail width is 72.
It should be noted that above-mentioned calculating thumbnail width and calculating the height of thumbnail pictures according to thumbnail width Process, can be happened at sending side terminal send Target Photo after show for the first time thumbnail process or receiving side terminal for the first time Process when Target Photo is received, user can also be sent in and adjust the process after communication window width, the present invention is herein not It is restricted.
In step 103, according to thumbnail width and wide high proportion, the corresponding thumbnail pictures of Target Photo are generated.
In force, after the wide high proportion for determining Target Photo through the above steps, sending side terminal and receiving side terminal Thumbnail width is obtained respectively, then, according to the wide high proportion of the thumbnail width of acquisition and the Target Photo being calculated, meter Calculate the height of the corresponding thumbnail pictures of Target Photo.
Optionally, specific calculating process can be:By the product reciprocal of thumbnail width and wide high proportion, it is determined as Thumbnail height;According to thumbnail width and thumbnail height, the corresponding thumbnail pictures of Target Photo are generated.
In force, the inverse for first determining the wide high proportion of Target Photo, that is, determine the ratio of the Gao Yukuan of Target Photo, Then the product of the ratio and thumbnail width of the Gao Yukuan of Target Photo, the thumbnail height as found out are calculated.For example, false If the wide high proportion for the Target Photo being calculated is 3:4, thumbnail width is 72 pixels, then when calculating thumbnail height, It first determines that the ratio of the Gao Yukuan of Target Photo is 4/3, then calculates the ratio and thumbnail width of the Gao Yukuan of Target Photo Product:72 × 4/3=96, thus may determine that thumbnail height is 96 pixels.
After obtaining thumbnail height, according to thumbnail width and thumbnail height, equal proportion scaling is carried out to Target Photo, The width of the thumbnail pictures of generation is set to be equal to thumbnail width, the height of the thumbnail pictures of generation is equal to the thumbnail being calculated Highly.
At step 104, the dialog box for including thumbnail pictures is shown in communication window.
In force, after the thumbnail pictures for generating Target Photo through the above steps, sending side terminal and receiving side terminal According to the Pixel Dimensions of thumbnail pictures, the Pixel Dimensions of dialog box are determined, then, according to the Pixel Dimensions of determining dialog box, It generates dialog box and then shows the dialog box of generation in communication window, and show thumbnail pictures in dialog box.In this way, hair The side of sending user can see the dialog box for the picture that oneself sends in the terminal called window of oneself, as shown in Fig. 2 (a);It connects Debit user can see the dialog box of the picture received in the terminal called window of oneself, as shown in Fig. 2 (b), realize The information interchange of picture.
Optionally, too big in order to avoid the height of thumbnail pictures, excessive interface shape is occupied, technical staff can set pre- If height, if the height of thumbnail pictures is not more than preset height, the dialogue for including thumbnail pictures is shown in communication window Frame.If the height of thumbnail pictures is more than preset height, the part picture of preset height is intercepted in thumbnail pictures;It is communicating Display includes the dialog box of part picture in window.
In force, when the height of thumbnail pictures being compared with preset height, if the height of thumbnail pictures is little In preset height, illustrate the height of thumbnail pictures in more reasonable range, therefore thumbnail pictures can all be shown, because This, can generate dialog box according to the Pixel Dimensions of thumbnail pictures, then, dialog box be shown in communication window, in dialog box Show thumbnail pictures.
If the height of thumbnail pictures is more than preset height, illustrate that the height of thumbnail pictures is too big, it, can if full figure is shown Excessive interface shape can be occupied, user is caused to be inconvenient to check message, it, can be in thumbnail pictures in order to avoid such case Default interception position, intercept the part picture of preset height, using this part picture as thumbnail pictures to be shown, and according to The Pixel Dimensions of the thumbnail pictures to be shown generate dialog box and finally show the dialog box, dialog box in communication window Middle display thumbnail pictures to be shown.
Optionally, above-mentioned steps are equally applicable to the display of video, the figure in the target video that Target Photo is transmission When as frame, corresponding processing can be as follows:Obtain the video length of target video;After the thumbnail pictures for generating video, logical Interrogate dialog box of the display comprising thumbnail pictures, broadcasting icon and video length in window.
In force, when sender user wants to send video to recipient user, sender user can open logical The dialog interface with recipient user in application program is interrogated, then the video (i.e. target video) sent is wanted in addition, and clicks Delivery option.
For sending side terminal while sending target video, sending side terminal obtains the video length of target video, then, The a certain picture frame obtained in target video generates the thumbnail pictures of the picture frame according to above-mentioned processing mode, then, according to The thumbnail pictures of generation generate dialog box, and addition plays icon and video length in dialog box, finally, show dialog box, As shown in Fig. 3 (a).
Target video is sent to the server of messaging application by sending side terminal, and server receives target video Afterwards, a certain picture frame in target video is sent to receiving side terminal.After receiving side terminal receives the picture frame, according to upper Processing mode is stated, the thumbnail pictures of the picture frame are generated, then, generates dialog box according to the thumbnail pictures of generation, and talking with Addition plays icon and video length in frame, finally, dialog box is shown, as shown in Fig. 3 (b).
Recipient user can click the thumbnail pictures in dialog box, receiving side terminal if it is intended to check target video It receives after video checks instruction, sends video to server and check request.Server receives after video checks request, by mesh Mark video is sent to receiving side terminal, and recipient user can check target video.
It should be noted that above-mentioned picture frame can be cover image in target video or first frame picture frame, Or any frame picture frame in target video, this is not restricted by the present invention.
In the embodiment of the present invention, the Target Photo transmitted in communication process is obtained, the ratio of width to height of the Target Photo is obtained Example;Based on current communication window width and preset dialogue width of frame ratio shared in communication window width, determine Thumbnail width;According to the thumbnail width and the wide high proportion, the corresponding thumbnail pictures of the Target Photo are generated; Display includes the dialog box of the thumbnail pictures in communication window.In this way, when sender user send it is more not of uniform size When picture, the identical dialog box of meeting display width on receiving side terminal so that user interface is more neat, even if some picture When small-sized, the dialog box of display is also of same size with the dialog box of other pictures, this way it is possible to avoid the figure is seen in user's leakage Piece prevents information from omitting.
Based on the same technical idea, the embodiment of the present invention additionally provides a kind of device of display dialog box, which can The electronic equipment in above-described embodiment is thought, as shown in figure 4, the device includes:First acquisition module 410, determining module 420, Generation module 430 and the first display module 440.
First acquisition module 410 is configured as obtaining the Target Photo transmitted in communication process, obtains the target figure The wide high proportion of piece;
The determining module 420 is configured as communicating based on current communication window width and preset dialogue width of frame Shared ratio, determines thumbnail width in window width;
The generation module 430 is configured as, according to the thumbnail width and the wide high proportion, generating the target The corresponding thumbnail pictures of picture;
First display module 440 is configured as showing the dialog box for including the thumbnail pictures in communication window.
Optionally, first display module 440 is configured as:
If the height of the thumbnail pictures is not more than preset height, display includes the thumbnail in communication window The dialog box of piece.
Optionally, as shown in figure 5, described device further includes:
If the height that interception module 510 is configured as the thumbnail pictures is more than preset height, in the thumbnail The part picture of the preset height is intercepted in piece;
Second display module 520 is configured as showing the dialog box for including the part picture in communication window.
Optionally, the determining module 420 is configured as:
By the communication window width and preset dialogue width of frame ratio shared in the communication window width Product is determined as thumbnail width.
Optionally, the generation module 430 is configured as:
By the product reciprocal of the thumbnail width and the wide high proportion, it is determined as thumbnail height;
According to the thumbnail width and the thumbnail height, the corresponding thumbnail pictures of the Target Photo are generated.
Optionally, the Target Photo is the picture frame in the target video of transmission, as shown in fig. 6, described device is also wrapped It includes:
Second acquisition module 610 is configured as obtaining the video length of the target video;
First display module 440 is configured as:
Dialog box of the display comprising the thumbnail pictures, broadcasting icon and the video length in communication window.
In the embodiment of the present invention, the Target Photo transmitted in communication process is obtained, the ratio of width to height of the Target Photo is obtained Example;Based on current communication window width and preset dialogue width of frame ratio shared in communication window width, determine Thumbnail width;According to the thumbnail width and the wide high proportion, the corresponding thumbnail pictures of the Target Photo are generated; Display includes the dialog box of the thumbnail pictures in communication window.In this way, when sender user send it is more not of uniform size When picture, the identical dialog box of meeting display width on receiving side terminal so that user interface is more neat, even if some picture When small-sized, the dialog box of display is also of same size with the dialog box of other pictures, this way it is possible to avoid the figure is seen in user's leakage Piece prevents information from omitting.
About the device in above-described embodiment, wherein modules execute the concrete mode of operation in related this method Embodiment in be described in detail, explanation will be not set forth in detail herein.
It should be noted that:The device for the display dialog box that above-described embodiment provides is when showing dialog box, only with above-mentioned The division progress of each function module, can be as needed and by above-mentioned function distribution by different for example, in practical application Function module is completed, i.e., the internal structure of point-like electron equipment is divided into different function modules, described above complete to complete Portion or partial function.In addition, the embodiment of the method for the device for the display dialog box that above-described embodiment provides and display dialog box Belong to same design, specific implementation process refers to embodiment of the method, and which is not described herein again.
Fig. 7 shows the structure diagram for the terminal 700 that an illustrative embodiment of the invention provides.The terminal 700 can be with It is portable mobile termianl, such as:Smart mobile phone, tablet computer, MP3 player (Moving Picture Experts Group Audio Layer III, dynamic image expert's compression standard audio level 3), MP4 (Moving Picture Experts Group Audio Layer IV, dynamic image expert's compression standard audio level 4) player.Terminal 700 may be used also It can be referred to as other titles such as user equipment, portable terminal.
In general, terminal 700 includes:Processor 701 and memory 702.
Processor 701 may include one or more processing cores, such as 4 core processors, 7 core processors etc..Place DSP (Digital Signal Processing, Digital Signal Processing), FPGA (Field- may be used in reason device 701 Programmable Gate Array, field programmable gate array), PLA (Programmable Logic Array, may be programmed Logic array) at least one of example, in hardware realize.Processor 701 can also include primary processor and coprocessor, master Processor is the processor for being handled data in the awake state, also referred to as CPU (Central Processing Unit, central processing unit);Coprocessor is the low power processor for being handled data in the standby state. In some embodiments, processor 701 can be integrated with GPU (Graphics Processing Unit, image processor), GPU is used to be responsible for the rendering and drafting of content to be shown needed for display screen.In some embodiments, processor 701 can also wrap AI (Artificial Intelligence, artificial intelligence) processor is included, the AI processors are for handling related machine learning Calculating operation.
Memory 702 may include one or more computer readable storage mediums, which can To be tangible and non-transient.Memory 702 may also include high-speed random access memory and nonvolatile memory, Such as one or more disk storage equipments, flash memory device.In some embodiments, non-transient in memory 702 Computer readable storage medium for storing at least one instruction, at least one instruction for by processor 701 it is performed with The method for realizing display dialog box provided herein.
In some embodiments, terminal 700 is also optional includes:Peripheral device interface 703 and at least one peripheral equipment. Specifically, peripheral equipment includes:Radio circuit 704, touch display screen 705, camera 706, voicefrequency circuit 707, positioning component At least one of 708 and power supply 709.
Peripheral device interface 703 can be used for I/O (Input/Output, input/output) is relevant at least one outer Peripheral equipment is connected to processor 701 and memory 702.In some embodiments, processor 701, memory 702 and peripheral equipment Interface 703 is integrated on same chip or circuit board;In some other embodiments, processor 701, memory 702 and outer Any one or two in peripheral equipment interface 703 can realize on individual chip or circuit board, the present embodiment to this not It is limited.
Radio circuit 704 is for receiving and emitting RF (Radio Frequency, radio frequency) signal, also referred to as electromagnetic signal.It penetrates Frequency circuit 704 is communicated by electromagnetic signal with communication network and other communication equipments.Radio circuit 704 turns electric signal It is changed to electromagnetic signal to be sent, alternatively, the electromagnetic signal received is converted to electric signal.Optionally, radio circuit 704 wraps It includes:Antenna system, RF transceivers, one or more amplifiers, tuner, oscillator, digital signal processor, codec chip Group, user identity module card etc..Radio circuit 704 can be carried out by least one wireless communication protocol with other terminals Communication.The wireless communication protocol includes but not limited to:WWW, Metropolitan Area Network (MAN), Intranet, each third generation mobile communication network (2G, 3G, 4G and 5G), WLAN and/or WiFi (Wireless Fidelity, Wireless Fidelity) network.In some embodiments, it penetrates Frequency circuit 704 can also include the related circuits of NFC (Near Field Communication, wireless near field communication), this Application is not limited this.
Touch display screen 705 is for showing UI (User Interface, user interface).The UI may include figure, text Sheet, icon, video and its their arbitrary combination.Touch display screen 705 also have acquisition on the surface of touch display screen 705 or The ability of the touch signal of surface.The touch signal can be used as control signal to be input to processor 701 and be handled.It touches Display screen 705 is touched for providing virtual push button and/or dummy keyboard, also referred to as soft button and/or soft keyboard.In some embodiments In, touch display screen 705 can be one, and the front panel of terminal 700 is arranged;In further embodiments, touch display screen 705 It can be at least two, be separately positioned on the different surfaces of terminal 700 or in foldover design;In still other embodiments, touch Display screen 705 can be flexible display screen, be arranged on the curved surface of terminal 700 or fold plane on.Even, touch display screen 705 can also be arranged to non-rectangle irregular figure, namely abnormity screen.LCD (Liquid may be used in touch display screen 705 Crystal Display, liquid crystal display), OLED (Organic Light-Emitting Diode, Organic Light Emitting Diode) Etc. materials prepare.
CCD camera assembly 706 is for acquiring image or video.Optionally, CCD camera assembly 706 include front camera and Rear camera.In general, front camera is for realizing video calling or self-timer, rear camera is for realizing photo or video Shooting.In some embodiments, rear camera at least two are main camera, depth of field camera, wide-angle imaging respectively Any one in head, to realize that main camera and the fusion of depth of field camera realize background blurring function, main camera and wide-angle Pan-shot and VR (Virtual Reality, virtual reality) shooting function are realized in camera fusion.In some embodiments In, CCD camera assembly 706 can also include flash lamp.Flash lamp can be monochromatic warm flash lamp, can also be double-colored temperature flash of light Lamp.Double-colored temperature flash lamp refers to the combination of warm light flash lamp and cold light flash lamp, can be used for the light compensation under different-colour.
Voicefrequency circuit 707 is used to provide the audio interface between user and terminal 700.Voicefrequency circuit 707 may include wheat Gram wind and loud speaker.Microphone is used to acquire the sound wave of user and environment, and converts sound waves into electric signal and be input to processor 701 are handled, or are input to radio circuit 704 to realize voice communication.For stereo acquisition or the purpose of noise reduction, wheat Gram wind can be multiple, be separately positioned on the different parts of terminal 700.Microphone can also be array microphone or omnidirectional's acquisition Type microphone.Loud speaker is then used to the electric signal from processor 701 or radio circuit 704 being converted to sound wave.Loud speaker can Can also be piezoelectric ceramic loudspeaker to be traditional wafer speaker.When loud speaker is piezoelectric ceramic loudspeaker, not only may be used To convert electrical signals to the audible sound wave of the mankind, the sound wave that the mankind do not hear can also be converted electrical signals to survey Away from etc. purposes.In some embodiments, voicefrequency circuit 707 can also include earphone jack.
Positioning component 708 is used for the current geographic position of positioning terminal 700, to realize navigation or LBS (Location Based Service, location based service).Positioning component 708 can be the GPS (Global based on the U.S. Positioning System, global positioning system), China dipper system or Russia Galileo system positioning group Part.
Power supply 709 is used to be powered for the various components in terminal 700.Power supply 709 can be alternating current, direct current, Disposable battery or rechargeable battery.When power supply 709 includes rechargeable battery, which can be wired charging electricity Pond or wireless charging battery.Wired charging battery is the battery to be charged by Wireline, and wireless charging battery is by wireless The battery of coil charges.The rechargeable battery can be also used for supporting fast charge technology.
In some embodiments, terminal 700 further include there are one or multiple sensors 710.The one or more sensors 710 include but not limited to:Acceleration transducer 711, gyro sensor 712, pressure sensor 713, fingerprint sensor 714, Optical sensor 715 and proximity sensor 716.
The acceleration that acceleration transducer 711 can detect in three reference axis of the coordinate system established with terminal 700 is big It is small.For example, acceleration transducer 711 can be used for detecting component of the acceleration of gravity in three reference axis.Processor 701 can With the acceleration of gravity signal acquired according to acceleration transducer 711, control touch display screen 705 is regarded with transverse views or longitudinal direction Figure carries out the display of user interface.Acceleration transducer 711 can be also used for game or the acquisition of the exercise data of user.
Gyro sensor 712 can be with the body direction of detection terminal 700 and rotational angle, and gyro sensor 712 can To cooperate with acquisition user to act the 3D of terminal 700 with acceleration transducer 711.Processor 701 is according to gyro sensor 712 Following function may be implemented in the data of acquisition:When action induction (for example changing UI according to the tilt operation of user), shooting Image stabilization, game control and inertial navigation.
The lower layer of side frame and/or touch display screen 705 in terminal 700 can be arranged in pressure sensor 713.Work as pressure The gripping signal that user can be detected in the side frame of terminal 700 to terminal 700 is arranged in sensor 713, is believed according to the gripping Number carry out right-hand man's identification or prompt operation.When pressure sensor 713 is arranged in the lower layer of touch display screen 705, Ke Yigen According to user to the pressure operation of touch display screen 705, realization controls the operability control on the interfaces UI.Operability Control includes at least one of button control, scroll bar control, icon control, menu control.
Fingerprint sensor 714 is used to acquire the fingerprint of user, with according to the identity of collected fingerprint recognition user.Knowing When the identity for not going out user is trusted identity, the user is authorized to execute relevant sensitive operation, the sensitive operation by processor 701 Including solution lock screen, check encryption information, download software, payment and change setting etc..End can be set in fingerprint sensor 714 Front, the back side or the side at end 700.When being provided with physical button or manufacturer Logo in terminal 700, fingerprint sensor 714 can To be integrated with physical button or manufacturer Logo.
Optical sensor 715 is for acquiring ambient light intensity.In one embodiment, processor 701 can be according to optics The ambient light intensity that sensor 715 acquires controls the display brightness of touch display screen 705.Specifically, when ambient light intensity is higher When, the display brightness of touch display screen 705 is turned up;When ambient light intensity is relatively low, the display for turning down touch display screen 705 is bright Degree.In another embodiment, the ambient light intensity that processor 701 can also be acquired according to optical sensor 715, dynamic adjust The acquisition parameters of CCD camera assembly 706.
Proximity sensor 716, also referred to as range sensor are generally arranged at the front of terminal 700.Proximity sensor 716 is used In the distance between the front of acquisition user and terminal 700.In one embodiment, when proximity sensor 716 detects user When the distance between front of terminal 700 tapers into, touch display screen 705 is controlled by processor 701 and is cut from bright screen state It is changed to breath screen state;When proximity sensor 716 detects user and the distance between the front of terminal 700 becomes larger, by Processor 701 controls touch display screen 705 and is switched to bright screen state from breath screen state.
It will be understood by those skilled in the art that the restriction of the not structure paired terminal 700 of structure shown in Fig. 7, can wrap It includes than illustrating more or fewer components, either combine certain components or is arranged using different components.
In the embodiment of the present invention, the Target Photo transmitted in communication process is obtained, the ratio of width to height of the Target Photo is obtained Example;Based on current communication window width and preset dialogue width of frame ratio shared in communication window width, determine Thumbnail width;According to the thumbnail width and the wide high proportion, the corresponding thumbnail pictures of the Target Photo are generated; Display includes the dialog box of the thumbnail pictures in communication window.In this way, when sender user send it is more not of uniform size When picture, the identical dialog box of meeting display width on receiving side terminal so that user interface is more neat, even if some picture When small-sized, the dialog box of display is also of same size with the dialog box of other pictures, this way it is possible to avoid the figure is seen in user's leakage Piece prevents information from omitting.
The embodiment of the present invention additionally provides a kind of computer readable storage medium, which is characterized in that in the storage medium It is stored at least one instruction, at least one section of program, code set or instruction set, described at least one instructs, is at least one section described The method that program, the code set or instruction set are loaded by the processor and execute above-mentioned display dialog box.
One of ordinary skill in the art will appreciate that realizing that all or part of step of above-described embodiment can pass through hardware It completes, relevant hardware can also be instructed to complete by program, the program can be stored in a kind of computer-readable In storage medium, storage medium mentioned above can be read-only memory, disk or CD etc..
The foregoing is merely presently preferred embodiments of the present invention, is not intended to limit the invention, it is all the present invention spirit and Within principle, any modification, equivalent replacement, improvement and so on should all be included in the protection scope of the present invention.

Claims (14)

1. a kind of method of display dialog box, which is characterized in that the method includes:
The Target Photo transmitted in communication process is obtained, the wide high proportion of the Target Photo is obtained;
Based on current communication window width and preset dialogue width of frame ratio shared in communication window width, determine Thumbnail width;
According to the thumbnail width and the wide high proportion, the corresponding thumbnail pictures of the Target Photo are generated;
Display includes the dialog box of the thumbnail pictures in communication window.
2. according to the method described in claim 1, it is characterized in that, the display in communication window includes the thumbnail pictures Dialog box, including:
If the height of the thumbnail pictures is not more than preset height, display includes the thumbnail pictures in communication window Dialog box.
3. according to the method described in claim 1, it is characterized in that, the method further includes:
If the height of the thumbnail pictures is more than preset height, the portion of the preset height is intercepted in the thumbnail pictures Component piece;
Display includes the dialog box of the part picture in communication window.
4. according to the method described in claim 1, it is characterized in that, described based on current communication window width and preset Talk with width of frame ratio shared in communication window width, determines thumbnail width, including:
By multiplying for current communication window width and preset dialogue width of frame ratio shared in the communication window width Product, is determined as the thumbnail width.
5. according to the method described in claim 1, it is characterized in that, described according to the thumbnail width and described the ratio of width to height Example, generates the corresponding thumbnail pictures of the Target Photo, including:
By the product reciprocal of the thumbnail width and the wide high proportion, it is determined as thumbnail height;
According to the thumbnail width and the thumbnail height, the corresponding thumbnail pictures of the Target Photo are generated.
6. according to the method described in claim 1, it is characterized in that, the Target Photo is the image in the target video transmitted Frame, the method further include:
Obtain the video length of the target video;
The display in communication window includes the dialog box of the thumbnail pictures, including:
Dialog box of the display comprising the thumbnail pictures, broadcasting icon and the video length in communication window.
7. a kind of device of display dialog box, which is characterized in that described device includes:
First acquisition module obtains the wide high proportion of the Target Photo for obtaining the Target Photo transmitted in communication process;
Determining module, for the institute in communication window width based on current communication window width and preset dialogue width of frame The ratio accounted for determines thumbnail width;
Generation module, for according to the thumbnail width and the wide high proportion, generating the corresponding contracting of the Target Photo Sketch map piece;
First display module, for showing the dialog box for including the thumbnail pictures in communication window.
8. device according to claim 7, which is characterized in that first display module is used for:
If the height of the thumbnail pictures is not more than preset height, display includes the thumbnail pictures in communication window Dialog box.
9. device according to claim 7, which is characterized in that described device further includes:
Interception module intercepts institute if the height for the thumbnail pictures is more than preset height in the thumbnail pictures State the part picture of preset height;
Second display module, for showing the dialog box for including the part picture in communication window.
10. device according to claim 7, which is characterized in that the determining module is used for:
By the product of the communication window width and preset dialogue width of frame ratio shared in the communication window width, It is determined as thumbnail width.
11. device according to claim 7, which is characterized in that the generation module is used for:
By the product reciprocal of the thumbnail width and the wide high proportion, it is determined as thumbnail height;
According to the thumbnail width and the thumbnail height, the corresponding thumbnail pictures of the Target Photo are generated.
12. device according to claim 7, which is characterized in that the Target Photo is the figure in the target video of transmission As frame, described device further includes:
Second acquisition module, the video length for obtaining the target video;
First display module, is used for:
Dialog box of the display comprising the thumbnail pictures, broadcasting icon and the video length in communication window.
13. a kind of terminal, which is characterized in that the terminal includes processor and memory, is stored at least in the memory One instruction, at least one section of program, code set or instruction set, at least one instruction, at least one section of program, the generation Code collection or instruction set are loaded by the processor and are executed to realize such as the display dialog box as described in claim 1 to 6 is any Method.
14. a kind of computer readable storage medium, which is characterized in that be stored at least one instruction, extremely in the storage medium Few one section of program, code set or instruction set, at least one instruction, at least one section of program, the code set or the instruction Collection is loaded by the processor and is executed the method to realize the display dialog box as described in claim 1 to 6 is any.
CN201810098927.1A 2018-01-31 2018-01-31 Method and device for displaying dialog box Active CN108304241B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810098927.1A CN108304241B (en) 2018-01-31 2018-01-31 Method and device for displaying dialog box

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810098927.1A CN108304241B (en) 2018-01-31 2018-01-31 Method and device for displaying dialog box

Publications (2)

Publication Number Publication Date
CN108304241A true CN108304241A (en) 2018-07-20
CN108304241B CN108304241B (en) 2021-05-25

Family

ID=62850687

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810098927.1A Active CN108304241B (en) 2018-01-31 2018-01-31 Method and device for displaying dialog box

Country Status (1)

Country Link
CN (1) CN108304241B (en)

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1655577A (en) * 2004-02-12 2005-08-17 施乐公司 Method and apparatus for reduced size image
CN101950239A (en) * 2010-09-14 2011-01-19 北京神州泰岳软件股份有限公司 Large size image display method and system
CN103514272A (en) * 2013-09-13 2014-01-15 北京奇虎科技有限公司 Method and device for providing thumbnail corresponding to webpage content
CN103645871A (en) * 2013-12-06 2014-03-19 四川九洲电器集团有限责任公司 Method and system for dynamically displaying local area image
CN103903221A (en) * 2012-12-24 2014-07-02 腾讯科技(深圳)有限公司 Image generation method, image generation device and image generation system
CN103916550A (en) * 2012-12-30 2014-07-09 北京新媒传信科技有限公司 Image processing method and apparatus in Android platform
CN104007947A (en) * 2014-05-19 2014-08-27 广州金山网络科技有限公司 Thumbnail display method and device
CN104063139A (en) * 2013-03-18 2014-09-24 腾讯科技(深圳)有限公司 Display adjusting method and device
CN104199920A (en) * 2014-08-30 2014-12-10 深圳市云来网络科技有限公司 Adaptation method and device for display of web application
AU2016203008A1 (en) * 2012-11-14 2016-05-26 Facebook, Inc. Animation sequence associated with content item
CN106055247A (en) * 2016-05-25 2016-10-26 努比亚技术有限公司 Picture display device, method and mobile terminal
CN106095272A (en) * 2016-06-07 2016-11-09 无锡天脉聚源传媒科技有限公司 The method and device that a kind of picture shows

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1655577A (en) * 2004-02-12 2005-08-17 施乐公司 Method and apparatus for reduced size image
CN101950239A (en) * 2010-09-14 2011-01-19 北京神州泰岳软件股份有限公司 Large size image display method and system
AU2016203008A1 (en) * 2012-11-14 2016-05-26 Facebook, Inc. Animation sequence associated with content item
CN103903221A (en) * 2012-12-24 2014-07-02 腾讯科技(深圳)有限公司 Image generation method, image generation device and image generation system
CN103916550A (en) * 2012-12-30 2014-07-09 北京新媒传信科技有限公司 Image processing method and apparatus in Android platform
CN104063139A (en) * 2013-03-18 2014-09-24 腾讯科技(深圳)有限公司 Display adjusting method and device
CN103514272A (en) * 2013-09-13 2014-01-15 北京奇虎科技有限公司 Method and device for providing thumbnail corresponding to webpage content
CN103645871A (en) * 2013-12-06 2014-03-19 四川九洲电器集团有限责任公司 Method and system for dynamically displaying local area image
CN104007947A (en) * 2014-05-19 2014-08-27 广州金山网络科技有限公司 Thumbnail display method and device
CN104199920A (en) * 2014-08-30 2014-12-10 深圳市云来网络科技有限公司 Adaptation method and device for display of web application
CN106055247A (en) * 2016-05-25 2016-10-26 努比亚技术有限公司 Picture display device, method and mobile terminal
CN106095272A (en) * 2016-06-07 2016-11-09 无锡天脉聚源传媒科技有限公司 The method and device that a kind of picture shows

Also Published As

Publication number Publication date
CN108304241B (en) 2021-05-25

Similar Documents

Publication Publication Date Title
CN108900858A (en) A kind of method and apparatus for giving virtual present
CN109982102A (en) The interface display method and system and direct broadcast server of direct broadcasting room and main broadcaster end
CN112907725B (en) Image generation, training of image processing model and image processing method and device
CN109451343A (en) Video sharing method, apparatus, terminal and storage medium
CN110427110A (en) A kind of live broadcasting method, device and direct broadcast server
CN110368689A (en) Display methods, system, electronic equipment and the storage medium of interface
CN110046018A (en) Show method, apparatus, electronic equipment and the medium of message
CN108563377A (en) The method and apparatus that switching shows the page
CN110163160A (en) Face identification method, device, equipment and storage medium
CN110121094A (en) Video is in step with display methods, device, equipment and the storage medium of template
CN108897597A (en) The method and apparatus of guidance configuration live streaming template
CN110322151A (en) Platform enters system, method, equipment and storage medium
CN110288689A (en) The method and apparatus that electronic map is rendered
CN108900925A (en) The method and apparatus of live streaming template are set
CN110032384A (en) Method, apparatus, equipment and the storage medium of resource updates
CN108848405A (en) Image processing method and device
CN108734662A (en) The method and apparatus for showing icon
CN110535890A (en) The method and apparatus that file uploads
CN109445963A (en) Content share method, device, equipment and computer readable storage medium
CN109218169A (en) Instant communication method, device and storage medium
CN109614563A (en) Show method, apparatus, equipment and the storage medium of webpage
CN109783176A (en) Switch the method and apparatus of the page
CN108664300A (en) A kind of application interface display methods under picture-in-picture mode and device
CN107943484A (en) The method and apparatus for performing business function
CN110109770A (en) Adjustment method, device, electronic equipment and medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant