[go: up one dir, main page]

CN109491726A - It spreads its tail rendering method, electronic equipment and the computer storage medium of file - Google Patents

It spreads its tail rendering method, electronic equipment and the computer storage medium of file Download PDF

Info

Publication number
CN109491726A
CN109491726A CN201811367859.0A CN201811367859A CN109491726A CN 109491726 A CN109491726 A CN 109491726A CN 201811367859 A CN201811367859 A CN 201811367859A CN 109491726 A CN109491726 A CN 109491726A
Authority
CN
China
Prior art keywords
file
tail
spreading
filled
screen
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
CN201811367859.0A
Other languages
Chinese (zh)
Other versions
CN109491726B (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.)
Ireader Technology Co Ltd
Zhangyue Technology Co Ltd
Original Assignee
Zhangyue 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 Zhangyue Technology Co Ltd filed Critical Zhangyue Technology Co Ltd
Priority to CN201811367859.0A priority Critical patent/CN109491726B/en
Publication of CN109491726A publication Critical patent/CN109491726A/en
Application granted granted Critical
Publication of CN109491726B publication Critical patent/CN109491726B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention discloses rendering method, electronic equipment and the computer storage mediums of a kind of file of spreading its tail.Wherein, method includes: to obtain file of spreading its tail to be presented when receiving application start instruction;Judgement spread its tail file length and width of documents than whether consistent with the screen aspect ratio of terminal device;If it is not, then determine and spread its tail the corresponding region to be filled of file, treat filling region and be filled processing according to the file display size and screen display size of file of spreading its tail, so that treated spreads its tail file for terminal device presentation.Based on scheme provided by the invention, file visual effect of spreading its tail can be promoted, and promote user experience, avoid and spread its tail between file and the screen of terminal device there are gap, causing to spread its tail, file display effect is poor, and poor user experience is unfavorable for the defect promoted.

Description

It spreads its tail rendering method, electronic equipment and the computer storage medium of file
Technical field
The present invention relates to fields of communication technology, and in particular to a kind of rendering method, electronic equipment and the calculating of file of spreading its tail Machine storage medium.
Background technique
With the development of smart machine, people more and more obtain corresponding letter by the application on terminal device Breath, some advertisers would generally spread its tail in application the dispensing of advertisement, that is, open the exhibition that will do it advertisement of spreading its tail when application Show, the mode of this advertisement of spreading its tail can play good advertisement function.
However, the diversification of the screen display size due to terminal device, spreads its tail and shows text of spreading its tail provided by party in request Part diversification, therefore, it is more likely that the feelings that the length and width of documents for the file that occurs spreading its tail is more inconsistent than with the screen aspect ratio of terminal device Condition, for example, the file display size for file of spreading its tail is less than the screen display size of terminal device, if do not appointed to file of spreading its tail Where reason, is directly presented file of spreading its tail accordingly, it is likely that occur spreading its tail between document edge and the screen edge of terminal device Have a gap, the effect that user can be visually seen may be spread its tail file edge and screen edge between gap be shown as white or black Color, visual effect is poor, the popularization for the file that is unfavorable for spreading its tail.
Summary of the invention
In view of the above problems, it proposes on the present invention overcomes the above problem or at least be partially solved in order to provide one kind State rendering method, electronic equipment and the computer storage medium of the file of spreading its tail of problem.
According to an aspect of the invention, there is provided a kind of rendering method for file of spreading its tail, comprising:
When receiving application start instruction, file of spreading its tail to be presented is obtained;Judgement spread its tail file file it is long Whether width is than consistent with the screen aspect ratio of terminal device;If it is not, then according to the file display size and screen of file of spreading its tail Display size determines the corresponding region to be filled of file of spreading its tail, treats filling region and be filled processing, so that terminal device is in It is existing that treated spreads its tail file.
According to another aspect of the present invention, provide a kind of electronic equipment, comprising: processor, memory, communication interface and Communication bus, processor, memory and communication interface complete mutual communication by communication bus;
Memory makes processor execute following operation for storing an at least executable instruction, executable instruction:
When receiving application start instruction, file of spreading its tail to be presented is obtained;Judgement spread its tail file file it is long Whether width is than consistent with the screen aspect ratio of terminal device;If it is not, then according to the file display size and screen of file of spreading its tail Display size determines the corresponding region to be filled of file of spreading its tail, treats filling region and be filled processing, so that terminal device is in It is existing that treated spreads its tail file.
According to another aspect of the invention, a kind of computer storage medium is provided, at least one is stored in storage medium Executable instruction, executable instruction make processor execute following operation:
When receiving application start instruction, file of spreading its tail to be presented is obtained;Judgement spread its tail file file it is long Whether width is than consistent with the screen aspect ratio of terminal device;If it is not, then according to the file display size and screen of file of spreading its tail Display size determines the corresponding region to be filled of file of spreading its tail, treats filling region and be filled processing, so that terminal device is in It is existing that treated spreads its tail file.
The scheme provided according to the present invention obtains file of spreading its tail to be presented when receiving application start instruction; Judgement spread its tail file length and width of documents than whether consistent with the screen aspect ratio of terminal device;If it is not, then according to file of spreading its tail File display size and screen display size, determine and spread its tail the corresponding region to be filled of file, treat filling region and filled out Processing is filled, treated spreads its tail file so that terminal device is presented.Based on scheme provided by the invention, file of spreading its tail can be promoted Visual effect, and user experience is promoted, it avoids and spreads its tail between file and the screen of terminal device there are gap, cause to spread its tail File display effect is poor, poor user experience, is unfavorable for the defect promoted.
The above description is only an overview of the technical scheme of the present invention, in order to better understand the technical means of the present invention, And it can be implemented in accordance with the contents of the specification, and in order to allow above and other objects of the present invention, feature and advantage can It is clearer and more comprehensible, the followings are specific embodiments of the present invention.
Detailed description of the invention
By reading the following detailed description of the preferred embodiment, various other advantages and benefits are common for this field Technical staff will become clear.The drawings are only for the purpose of illustrating a preferred embodiment, and is not considered as to the present invention Limitation.And throughout the drawings, the same reference numbers will be used to refer to the same parts.In the accompanying drawings:
Fig. 1 shows the flow diagram of the rendering method of file according to an embodiment of the invention of spreading its tail;
Fig. 2A shows the flow diagram of the rendering method of file in accordance with another embodiment of the present invention of spreading its tail;
Fig. 2 B, Fig. 2 D, Fig. 2 G are first to spread its tail the corresponding area schematic to be filled of file;
Fig. 2 C, Fig. 2 H are to treat the filling region schematic diagram that is filled that treated;
Fig. 2 E, Fig. 2 F are the schematic diagram that blurred picture covers region to be filled;
Fig. 2 I is that treated for the process uniform zoom of the screen display size that file display size is greater than terminal device One schematic diagram for spreading its tail file;
Fig. 2 J is to carry out cutting treated schematic diagram to the first file of spreading its tail;
Fig. 3 shows the structural schematic diagram of electronic equipment according to an embodiment of the invention.
Specific embodiment
Exemplary embodiments of the present disclosure are described in more detail below with reference to accompanying drawings.Although showing the disclosure in attached drawing Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here It is limited.On the contrary, these embodiments are provided to facilitate a more thoroughly understanding of the present invention, and can be by the scope of the present disclosure It is fully disclosed to those skilled in the art.
Fig. 1 shows the flow diagram of the rendering method of file according to an embodiment of the invention of spreading its tail.Such as Fig. 1 institute Show, method includes the following steps:
Step S100 obtains file of spreading its tail to be presented when receiving application start instruction.
Wherein, file of spreading its tail refers to file shown before presenting using homepage face during application program launching.
In the present embodiment, the start-up operation for the application program that user installs terminal device is considered as to have sent and answer With program enabled instruction, for example, user passes through end to application program image target clicking operation in terminal device desktop or user Phonetic function provided by end equipment operates the vice activation for the application program installed, and can all be considered as having sent using journey Sequence enabled instruction before presenting using homepage face, sends text of spreading its tail to server-side when receiving application start instruction Part acquisition request, server-side are requested according to the file acquisition of spreading its tail, and are returned to the response comprising file of spreading its tail, are received server-side and return Include the response of file of spreading its tail, wherein file of spreading its tail can be advertising pictures, dynamic video or other needs present it is quiet State picture is promoted accordingly by the way that file of spreading its tail is presented.
Step S101, judgement spread its tail file length and width of documents than whether consistent with the screen aspect ratio of terminal device, if It is no, then follow the steps S102;If so, thening follow the steps S103.
After getting file of spreading its tail to be presented, it is also necessary to determine the length and width of documents ratio for file of spreading its tail, wherein file is long Width is the ratio of file pixel wide and pixels tall of spreading its tail than being the length of file and the ratio of width, for example, 16:9,4: 3, it is merely illustrative of here, does not have any restriction effect.After the length and width of documents ratio for file of spreading its tail has been determined, by text of spreading its tail The length and width of documents of part is compared than the screen aspect ratio with terminal device, so determine spread its tail file length and width of documents than whether It is consistent with the screen aspect ratio of terminal device.
Here judgement spread its tail file length and width of documents than whether it is consistent with the screen aspect ratio of terminal device be in order to true Whether file of spreading its tail surely can directly be presented on the terminal device, if needs handle file of spreading its tail.
Step S102 determines that file of spreading its tail is corresponding according to the file display size for file of spreading its tail and screen display size Region to be filled treats filling region and is filled processing, and so that terminal device is presented, treated spreads its tail file.
Judge judgement spread its tail file length and width of documents than it is inconsistent with the screen aspect ratio of terminal device in the case where, It can determine that file of spreading its tail can not be directly presented on the terminal device, need to handle file of spreading its tail.
In the present embodiment, uniform zoom processing can be carried out to file of spreading its tail, so that treated spreads its tail for uniform zoom Two edges of file fit with two edges of terminal device screen, at this point, according to the file display size for file of spreading its tail With screen display size, the corresponding region to be filled of file of spreading its tail is determined, wherein region to be filled is likely distributed in terminal device Screen left and right ends are distributed in terminal device screen upper and lower ends.The corresponding region to be filled of file of spreading its tail is being determined Afterwards, it treats filling region and is filled processing, after filling processing, four edges and four sides of terminal device screen of file of spreading its tail There is no gap between edge.
File of spreading its tail is presented in terminal device in step S103.
It, can be in terminal in the case where the length and width of documents for file of spreading its tail is more consistent than with the screen aspect ratio of terminal device File of spreading its tail is presented in equipment.
The method provided according to that above embodiment of the present invention obtains to be presented when receiving application start instruction File of spreading its tail;Judgement spread its tail file length and width of documents than whether consistent with the screen aspect ratio of terminal device;If it is not, then root According to the file display size and screen display size of file of spreading its tail, the corresponding region to be filled of file of spreading its tail is determined, to be filled Region is filled processing, and so that terminal device is presented, treated spreads its tail file.Based on scheme provided by the invention, Ke Yiti File visual effect of spreading its tail is risen, and promotes user experience, avoids to spread its tail and be stayed between file and the edge of terminal device screen There is gap, the file display effect that causes to spread its tail is poor, poor user experience, is unfavorable for the defect promoted.
Fig. 2A shows the flow diagram of the rendering method of file in accordance with another embodiment of the present invention of spreading its tail.Such as figure Shown in 2A, method includes the following steps:
Step S200 sends file acquisition request of spreading its tail to server-side when receiving application start instruction.
The executing subject of the present embodiment is the application program of user's starting.
In the present embodiment, acquisition opportunity of file is spread its tail when being application program launching, when receiving application program launching When instruction, it can spread its tail to server-side transmission and inquiry request is presented, ask whether to need to present file of spreading its tail, service when spreading its tail End is after receiving and spreading its tail inquiry request is presented, it is determined whether needs are spread its tail presentation, are spread its tail accordingly for example, server-side stores Information is presented in file, can determine whether presentation of spreading its tail by inquiring file presentation information of spreading its tail, is receiving server-side After the response of spreading its tail returned, file acquisition request of spreading its tail is sent to server-side, request, which is spread its tail, shows required file of spreading its tail.
Step S201 receives the response comprising file of spreading its tail that server-side returns.
Server-side determines the file of spreading its tail for needing to present when spreading its tail, Xiang Ying after receiving file acquisition of spreading its tail and requesting File of spreading its tail accordingly is returned to program, application program receives the response comprising file of spreading its tail that server-side returns.
In the present embodiment, file of spreading its tail can be static image, is also possible to dynamic video, does not do specific limit here It is fixed.Wherein, received file of spreading its tail is file of spreading its tail to be presented, for the ease of the description of subsequent method step, wait be in Existing file of spreading its tail is specially first to spread its tail file.
Step S202, judge first spread its tail file length and width of documents than whether the screen aspect ratio phase one with terminal device It causes, if it is not, thening follow the steps S203;If so, thening follow the steps S213.
It spreads its tail after file getting first, it is also necessary to determine the first length and width of documents ratio for spreading its tail file, wherein file is long Width is the first ratio for spreading its tail file pixel wide and pixels tall than being the length of file and the ratio of width, for example, 16: 9,4:3 is merely illustrative of here, determined first spread its tail file length and width of documents ratio after, the text of spreading its tail file for first Part length-width ratio is compared with the screen aspect ratio of terminal device, so determine first spread its tail file length and width of documents than whether with The screen aspect ratio of terminal device is consistent.
Here judge first spread its tail file length and width of documents than whether it is consistent with the screen aspect ratio of terminal device be as Whether determining terminal device, which can directly be presented first, spreads its tail file, if needs to spread its tail file process to first.
In a kind of optional embodiment of the present invention, if the first file of spreading its tail is dynamic video, first spreads its tail file Length and width of documents than with file display size according to the length-width ratio and display size of the corresponding picture of any one frame of dynamic video and Determine, specifically, the corresponding picture of any frame of dynamic video can be intercepted, determine the intercepted corresponding length-width ratio of picture and Display size.
Step S203, the picture material that file is spread its tail in identification first.
Judgement first spread its tail file length and width of documents than it is inconsistent with the screen aspect ratio of terminal device in the case where, One spread its tail file picture material difference, determine processing mode difference, therefore, it is necessary to first spread its tail file carry out image Content recognition processing specifically, can extract the first image for spreading its tail file to identify the first picture material for spreading its tail file Feature, the picture material that file is spread its tail according to characteristics of image identification first.
Step S204 obtains the first screen for meeting terminal device if picture material is personage or single object from caching Second file of spreading its tail of curtain display demand is presented;First file of spreading its tail is cached.
First screen shows that demand refers to that second spreads its tail between four edges of file and four edges of terminal device screen There is no gap.
In the case where identifying picture material is personage or single object, the length and width of documents ratio of spreading its tail file due to first Inconsistent with the screen aspect ratio of terminal device, the first file of spreading its tail can not be directly on the screen of terminal device It is existing, it needs to handle the first file of spreading its tail, in order to guarantee to present file of spreading its tail in time, the time required to reduction is spread its tail, It can be obtained from caching and meet the first screen of terminal device and show that the second file of spreading its tail of demand is presented, that is, caching Middle stored second file of spreading its tail is file of spreading its tail that the first screen for meeting terminal device after treatment shows demand, Second spread its tail file length and width of documents it is more consistent than with the screen aspect ratio of terminal device.
Since the filling processing for spreading its tail file to first not only consumes memory, and it is longer the time required to filling processing, because This, determine first spread its tail file length and width of documents than it is inconsistent with the screen aspect ratio of terminal device in the case where, by One file of spreading its tail is cached, rather than is waited and being spread its tail file process to first, then is presented that treated and first is spread its tail file, from And the response time of spreading its tail is shortened, under the premise of file is spread its tail in presentation, allows users to be rapidly introduced into application program and make With application program, avoid causing user to use using journey due to causing holding time longer first file online processing of spreading its tail The problem of sequence experience difference.
Step S205 extracts first from caching and spreads its tail file, the file display size and screen for spreading its tail file according to first Curtain display size, judge first spread its tail file whether meet the second screen display demand, if it is not, thening follow the steps S206;If so, Then follow the steps S207.
The first file display size for spreading its tail file is file pixel wide value and pixels tall value, for example, 1024 × 768,1280 × 960, it is merely illustrative of here, does not have any restriction effect.
In the present embodiment, first spread its tail file length and width of documents than with the inconsistent possibility of the screen aspect ratio of terminal device There are following situations: first spreads its tail between four edges of file and four edges of terminal device screen, and there are the feelings in gap Condition, alternatively, first spreads its tail between two edges of file and two edges of terminal device screen there are gap, first spreads its tail text The case where other two edge of part is bonded with other two edge of terminal device screen, alternatively, first spreads its tail the four of file A edge exceeds the case where four edges of terminal device, alternatively, first two edges for spreading its tail file exceed terminal device Two edges of screen, feelings that other two edge of file is bonded with other two edge of terminal device screen that first spreads its tail Condition, alternatively, first two edges for spreading its tail file exceed two edges of terminal device screen, first spreads its tail other the two of file The case where there are gaps between a edge and other two edge of terminal device screen.
It spreads its tail before file is filled processing to first, needs first to determine that first spreads its tail the corresponding pending district of file Domain specifically extracts first from caching and spreads its tail file, spreads its tail the file display size of file according to first and screen shows ruler It is very little, judge whether the first file of spreading its tail meets the second screen and show demand, wherein the second screen shows that demand refers to that first spreads its tail text Two edges of part are bonded with two edges of terminal device screen, and second other two edge for spreading its tail file is set with terminal There is the screen in gap to show demand between other two edge of standby screen, for example, the first edge of left and right two for spreading its tail file Be bonded with the edge of left and right two of terminal device screen, first spread its tail file two edges up and down and terminal device screen it is upper There are gaps between lower two edges;Alternatively, first spread its tail file two edges up and down and terminal device screen up and down two A edge fitting, first spreads its tail between the edge of left and right two of file and the edge of left and right two of terminal device screen, and there are skies Gap.
Here judge first spread its tail file whether meet the second screen show demand be in order to determine region to be filled, and Subsequent when treating filling region and being filled processing, used filling mode, the first file of spreading its tail meets the second screen and shows need When asking, first can be quickly determined out and spread its tail the corresponding region to be filled of file.
Step S206, to first spread its tail file carry out uniform zoom processing.
Judge first spread its tail file be unsatisfactory for the second screen display demand in the case where, first to first spread its tail file into Row uniform zoom processing, wherein to first spread its tail file carry out uniform zoom processing, be by first spread its tail file equal proportion amplification Or reduce, not will cause first spread its tail file picture material distortion the case where, scaling is according to the screen of terminal device Length-width ratio determine (if two scalings have been determined according to the screen aspect ratio of terminal device, it is preferential select scaling compared with Small value carries out uniform zoom processing), after uniform zoom processing, the first file of spreading its tail meets the second screen and shows demand, that is, the One two edges of file of spreading its tail are bonded with two edges of terminal device screen, and second other two edge for spreading its tail file There is gap between other two edge of terminal device screen.
Step S207 shows demand or uniform zoom treated the first file for spreading its tail file according to the second screen is met The difference of display size and screen display size determines that first spreads its tail the corresponding region to be filled of file.
Specifically, it can first determine the screen display size of terminal device and meet the second screen and show demand or wait than contracting Put that treated first spread its tail file file display size between difference, which can be understood as first and spreads its tail file The pixel wide or pixels tall in gap between the edge of the screen of edge and terminal device, wherein difference can be denoted as DP, root Determine that first spreads its tail the corresponding region to be filled of file according to the difference, region to be filled is to need to fill out the first file of spreading its tail Fill the region of processing.
Specifically, Fig. 2 B, Fig. 2 D, Fig. 2 G are first to spread its tail the corresponding area schematic to be filled of file, in fig. 2b, to Filling region is first to spread its tail and gap between the left edge of file and the left edge of the screen of terminal device and first spread its tail Gap between the right hand edge of the screen of the right hand edge and terminal device of file, region to be filled are distributed in terminal device screen Left and right ends;
In figure 2d, region to be filled is spread its tail between the top edge of file and the top edge of the screen of terminal device for first Gap and the first gap for spreading its tail between the lower edge of file and the lower edge of the screen of terminal device, region to be filled It is distributed in the upper and lower ends of terminal device screen;
In fig 2g, region to be filled is spread its tail between the left edge of file and the left edge of the screen of terminal device for first Gap and the first gap for spreading its tail between the right hand edge of file and the right hand edge of the screen of terminal device, region to be filled It is distributed in the left and right ends of terminal device screen.Here it only schematically illustrates, does not have any restriction effect.
It in the present embodiment, can be according to the difference of screen display size and the difference of file display size, to be filled Region carries out different processing, specifically, difference can be compared with the preset threshold of setting, and it is pre- to be provided with first here If threshold value and the second preset threshold, according to the comparison result of difference and the first preset threshold and the second preset threshold, determine Treat the processing method of filling region:
Step S208, if difference is less than or equal to the first preset threshold, the color value pair for spreading its tail document edge according to first Region to be filled is filled processing.
First preset threshold can determine rule of thumb, for example, set the first preset threshold as 50, if difference be less than or Equal to the first preset threshold, the gap for showing that first spreads its tail between file and the screen of terminal device is smaller, as shown in Figure 2 B, this When, the color value that can spread its tail document edge according to first treats filling region and is filled processing, for example, first spreads its tail text Part edge color is skipper (color is not shown in Fig. 2 B), and corresponding color value is #00008B, then can spread its tail text according to first The color value #00008B at part edge treats filling region and is filled processing, and region to be filled is filled with skipper, filling processing Afterwards as shown in Figure 2 C.
Step S209, if difference is greater than the first preset threshold and difference and is less than or equal to the second preset threshold, according to the One file of spreading its tail obtains blurred picture;Region to be filled is covered using blurred picture.
Second preset threshold can determine rule of thumb, for example, setting the first preset threshold as 200, if difference is greater than First preset threshold and difference are less than or equal to the second preset threshold, show that first spreads its tail between file and the screen of terminal device Gap it is wider, as shown in Figure 2 D, at this point, being filled out if the color value for also spreading its tail document edge using first treats filling region Processing is filled, first is will affect and spreads its tail file visual effect, at this point it is possible to using other processing methods, for example, spreading its tail according to first File obtains blurred picture, then, covers region to be filled using blurred picture.
Specifically, it can be handled using following three kinds of methods:
Method one: to first after scaling processing spread its tail file carry out Gaussian Blur processing, obtain corresponding blurred picture, Wherein, to first spread its tail file carry out Gaussian Blur processing be only to first spread its tail file picture material carry out Fuzzy Processing, Without change file display size, that is, the file display size of obtained blurred picture with first spread its tail file file show Show that size is identical, it is to be filled to cover to carry out stretch processing (for example, the lower edges to blurred picture stretch) to blurred picture Region, as shown in Figure 2 E;Using the blurred picture after stretch processing as background, the file of spreading its tail of first after scaling processing is covered on On blurred picture after stretch processing, so that the blurred picture after stretch processing, which treats filling region, completes filling processing.
Method two: the edge of left and right two for spreading its tail file here with first is bonded with the left and right edges of terminal device screen, And first spreads its tail up and down between two edges and the lower edges of terminal device screen there are being illustrated for gap of file, When being filled, first the first file of spreading its tail can be carried out etc. than enhanced processing, to cover terminal device screen (at this point, One spreads its tail between four edges of file and four edges of terminal device screen, and no longer there are gaps, in fact it could happen that first spreads its tail The edge of left and right two of file exceeds the edge of left and right two of terminal device screen, first spread its tail file two edges up and down with The case where two edge fittings up and down of terminal device screen, cutting processing can be carried out to beyond part, or do not do any Processing, in the case where without any processing, for terminal device in display, display does not exceed part);Equity compares enhanced processing First afterwards spread its tail file carry out Fuzzy Processing, obtain blurred picture;Using blurred picture as background, by first after scaling processing File of spreading its tail is covered on blurred picture, so that blurred picture, which treats filling region, completes filling processing.
Method three: to first after scaling spread its tail file carry out Fuzzy Processing, obtain blurred picture, Fuzzy Processing here And the size for file of spreading its tail is had not been changed, it is that Fuzzy Processing is carried out to the picture material for file of spreading its tail;When region to be filled is distributed in When terminal device screen left and right ends, blurred picture is divided into left and right two parts, left and right two parts blurred picture is left respectively It moves right to terminal device screen edge, covers region to be filled as background;When region to be filled is distributed in terminal device screen When curtain upper and lower ends, blurred picture is divided into two parts up and down, upper and lower two parts blurred picture was moved up and down respectively to end End equipment screen edge covers region to be filled as background.For example, as shown in Figure 2 D, region to be filled is distributed in end Blurred picture is divided into two parts up and down, by upper and lower two parts mould after obtaining blurred picture by end equipment screen upper and lower ends Paste picture is moved up and down respectively to terminal device screen edge, and covering region to be filled as background will scale as shown in Figure 2 F Treated, and the first file of spreading its tail is covered on up and down on two parts blurred picture (background picture).
Step S210, if difference be greater than the second preset threshold, to first spread its tail file carry out stretch processing with fill to Filling region.
If difference is greater than the second preset threshold, show gap that first spreads its tail between file and the screen of terminal device very Width, as shown in Figure 2 G, at this point, if the color value for also spreading its tail document edge using first treats filling region and is filled processing, Or to first spread its tail file carry out Fuzzy Processing, will affect file visual effect of spreading its tail, at this point it is possible to using other processing sides Method, for example, spreading its tail file progress stretch processing to fill region to be filled, as illustrated in figure 2h to first.
Step S211, will filling treated that the first file of spreading its tail caches.
Spread its tail after file is filled processing to first, can will filling treated that the first file of spreading its tail delays It deposits, with use when subsequent spread its tail.
Will filling treated first spreads its tail after file cached, when next application program launching, need to present and spread its tail When file, judge first spread its tail file length and width of documents than it is inconsistent with the screen aspect ratio of terminal device in the case where, It can be obtained from caching and meet the first screen of terminal device and show that the second of demand spreads its tail that (herein refer to the last time spreads its tail file When presentation, treated first spreads its tail file for filling) it is presented.
First file of spreading its tail is shown centered at end by step S212 if picture material is non-personage or non-single object In the screen of end equipment, uniform zoom processing is carried out to the first file of spreading its tail, to cover terminal device screen, and it is aobvious according to screen Show that size equity carries out cutting processing than the file of spreading its tail of first after scaling processing.
It is non-personage or non-single object for picture material, if also spread its tail the to be filled of file by determining first Region, using filling processing method treat filling region be filled processing may will affect first spread its tail file vision imitate Therefore fruit is non-personage or non-single object for picture material, other processing modes will be used, for example, first is spread its tail File is shown centered in the screen of terminal device, to first spread its tail file carry out uniform zoom processing, to cover terminal device Screen, and cutting processing is carried out than the file of spreading its tail of first after scaling processing according to screen display size equity.
For example, Fig. 2 I is at the process uniform zoom for the screen display size that file display size is greater than terminal device First after the reason schematic diagram for spreading its tail file is identifying that the picture material that first spreads its tail file is non-personage or non-single object In the case where, the first file of spreading its tail is shown centered in the screen of terminal device, uniform zoom is carried out to the first file of spreading its tail Processing to cover terminal device screen, and is carried out according to screen display size equity than the file of spreading its tail of first after scaling processing Cutting processing, as shown in fig. 2j.
Step S213 is presented first in terminal device and spreads its tail file.
First display size for spreading its tail file meets under the screen display conditions of demand of terminal device, can be in terminal device First is presented to spread its tail file.
In a kind of optional embodiment of the present invention, after according to the second screen display demand or uniform zoom processing is met File of spreading its tail file display size and screen display size difference, determine spread its tail the corresponding region to be filled of file it It afterwards, can be the corresponding frame of file addition of spreading its tail according to difference, wherein the color pair of border color and document edge of spreading its tail It answers.In addition, the pattern of frame is associated with the picture material for file of spreading its tail, for example, carrying out for red-letter days such as the Spring Festival or Christmas File popularization of spreading its tail, the pattern of frame is associated with the picture material for file of spreading its tail, for example, during the Spring Festival, for text of spreading its tail The pattern of frame added by part can be new Year scroll pattern, fireworks pattern etc., no longer be described in detail here.
The method provided according to that above embodiment of the present invention, first spread its tail file length and width of documents than with terminal device It, can be from caching when the first picture material for spreading its tail file is personage or single object in the case that screen aspect ratio is inconsistent Middle obtain meets the first screen of terminal device and shows that the second file of spreading its tail of demand is presented;By first spread its tail file carry out Caching extracts first from caching and spreads its tail file, spreads its tail according to meeting the second screen and showing demand or uniform zoom treated The difference of the file display size of file and screen display size determines that first spreads its tail the corresponding region to be filled of file, treats Filling region is filled processing, not only shortens the response time of spreading its tail in this way, but also promote file visual effect of spreading its tail, with And user experience is promoted, under the premise of file is spread its tail in presentation, allow users to be rapidly introduced into application program and using application Program avoids causing user to experience using application program due to causing holding time longer first file online processing of spreading its tail The problem of difference, and also avoid first and spread its tail between file and the screen of terminal device there are gap causes first to spread its tail text Part display effect is poor, poor user experience, is unfavorable for the defect promoted.
The embodiment of the present application also provides a kind of nonvolatile computer storage media, computer storage medium be stored with to The presentation side of the file of spreading its tail in above-mentioned any means embodiment can be performed in a few executable instruction, the computer executable instructions Method.
Executable instruction specifically can be used for so that processor executes following operation:
When receiving application start instruction, file of spreading its tail to be presented is obtained;Judgement spread its tail file file it is long Whether width is than consistent with the screen aspect ratio of terminal device;If it is not, then according to the file display size and screen of file of spreading its tail Display size determines the corresponding region to be filled of file of spreading its tail, treats filling region and be filled processing, so that terminal device is in It is existing that treated spreads its tail file.
In a kind of optional embodiment, file of spreading its tail to be presented is specially first to spread its tail file;
Executable instruction also makes processor execute following operation: when the length and width of documents ratio and terminal device of the file that determines to spread its tail Screen aspect ratio it is inconsistent when, obtained from caching and meet the first screen of terminal device and show that the second of demand spreads its tail file It is presented;First file of spreading its tail is cached;First is extracted from caching to spread its tail file, determines that the first file of spreading its tail is corresponding Region to be filled, processing is filled to the first corresponding region to be filled of file of spreading its tail, will filling treated first opens Screen file is cached.
In a kind of optional embodiment, executable instruction also makes processor execute following operation: according to file of spreading its tail File display size and screen display size, judgement spread its tail file whether meet the second screen show demand, if it is not, then split Shield file and carries out uniform zoom processing;Demand or uniform zoom are shown treated the text of file of spreading its tail according to the second screen is met The difference of part display size and screen display size determines the corresponding region to be filled of file of spreading its tail.
In a kind of optional embodiment, executable instruction further makes processor execute following operation: if difference is small In or equal to the first preset threshold, then filling region is treated according to the color value for document edge of spreading its tail and be filled processing.
In a kind of optional embodiment, executable instruction further makes processor execute following operation: if difference is big In the first preset threshold and difference is less than or equal to the second preset threshold, then obtains blurred picture according to file of spreading its tail;Utilize mould It pastes picture and covers region to be filled.
In a kind of optional embodiment, executable instruction further makes processor execute following operation: to text of spreading its tail Part carries out etc. than enhanced processing, to cover terminal device screen;Equity carries out Fuzzy Processing than the file of spreading its tail after enhanced processing, Obtain blurred picture;Using blurred picture as background, the file of spreading its tail after scaling processing is covered on blurred picture, so that mould Paste picture treats filling region and completes filling processing, and treated spreads its tail file for display.
In a kind of optional embodiment, executable instruction further makes processor execute following operation: after scaling Spread its tail file carry out Fuzzy Processing, obtain blurred picture;When region to be filled is distributed in terminal device screen left and right ends, Blurred picture is divided into left and right two parts, left and right two parts blurred picture is moved left and right respectively to terminal device screen side Edge covers region to be filled as background;When region to be filled is distributed in terminal device screen upper and lower ends, by blurred picture Two parts up and down are divided into, upper and lower two parts blurred picture is moved up and down respectively to terminal device screen edge, as background Cover region to be filled.
In a kind of optional embodiment, executable instruction further makes processor execute following operation: if difference is big In the second preset threshold, then stretch processing is carried out to fill region to be filled to file of spreading its tail.
In a kind of optional embodiment, executable instruction further makes processor execute following operation: according to difference To spread its tail, file adds corresponding frame, wherein border color is corresponding with the color for document edge of spreading its tail.
In a kind of optional embodiment, the pattern of frame is associated with the picture material for file of spreading its tail.
In a kind of optional embodiment, executable instruction also makes processor execute following operation: identifying file of spreading its tail Picture material;If picture material is personage or single object, according to spreading its tail the file display size of file and screen is shown Size determines the corresponding region to be filled of file of spreading its tail, treats filling region and be filled processing, at terminal device presentation File of spreading its tail after reason;If picture material is non-personage or non-single object, the file that will spread its tail is shown centered in terminal device Screen in, to spreading its tail, file carries out uniform zoom processing, to cover terminal device screen, and according to screen display size equity Cutting processing is carried out than the file of spreading its tail after scaling processing.
In a kind of optional embodiment, file of spreading its tail to be presented is dynamic video;It spreads its tail the length and width of documents of file Than being determined with file display size according to the length-width ratio and display size of the corresponding picture of any one frame of dynamic video.
In a kind of optional embodiment, executable instruction also makes processor execute following operation: sending to server-side File acquisition of spreading its tail request;Receive the response comprising file of spreading its tail that server-side returns.
Fig. 3 shows the structural schematic diagram of electronic equipment according to an embodiment of the invention, the specific embodiment of the invention The specific implementation of electronic equipment is not limited.
As shown in figure 3, the electronic equipment may include: processor (processor) 302, communication interface (Communications Interface) 304, memory (memory) 306 and communication bus 308.
Wherein: processor 302, communication interface 304 and memory 306 complete mutual lead to by communication bus 308 Letter.
Communication interface 304, for being communicated with the network element of other equipment such as client or other servers etc..
Processor 302, for executing program 310, in the rendering method embodiment that can specifically execute above-mentioned file of spreading its tail Correlation step.
Specifically, program 310 may include program code, which includes computer operation instruction.
Processor 302 may be central processor CPU or specific integrated circuit ASIC (Application Specific Integrated Circuit), or be arranged to implement the integrated electricity of one or more of the embodiment of the present invention Road.The one or more processors that electronic equipment includes can be same type of processor, such as one or more CPU;It can also To be different types of processor, such as one or more CPU and one or more ASIC.
Memory 306, for storing program 310.Memory 306 may include high speed RAM memory, it is also possible to further include Nonvolatile memory (non-volatile memory), for example, at least a magnetic disk storage.
Program 310 specifically can be used for so that processor 302 executes following operation: when receiving application start instruction When, obtain file of spreading its tail to be presented;Judgement spread its tail file length and width of documents than whether the screen aspect ratio phase with terminal device Unanimously;If it is not, determining that file of spreading its tail is corresponding to be filled then according to the file display size and screen display size of file of spreading its tail Region treats filling region and is filled processing, and so that terminal device is presented, treated spreads its tail file.
In a kind of optional embodiment, file of spreading its tail to be presented is specially first to spread its tail file;
Program 310 also makes processor 302 execute following operation: when determining spread its tail the length and width of documents ratio and terminal device of file Screen aspect ratio it is inconsistent when, obtained from caching and meet the first screen of terminal device and show that the second of demand spreads its tail file It is presented;First file of spreading its tail is cached;First is extracted from caching to spread its tail file, determines that the first file of spreading its tail is corresponding Region to be filled, processing is filled to the first corresponding region to be filled of file of spreading its tail, will filling treated first opens Screen file is cached.
In a kind of optional embodiment, program 310 also makes processor 302 execute following operation: according to file of spreading its tail File display size and screen display size, judgement spread its tail file whether meet the second screen show demand, if it is not, then split Shield file and carries out uniform zoom processing;Demand or uniform zoom are shown treated the text of file of spreading its tail according to the second screen is met The difference of part display size and screen display size determines the corresponding region to be filled of file of spreading its tail.
In a kind of optional embodiment, program 310 further makes processor 302 execute following operation: if difference is small In or equal to the first preset threshold, then filling region is treated according to the color value for document edge of spreading its tail and be filled processing.
In a kind of optional embodiment, program 310 further makes processor 302 execute following operation: if difference is big In the first preset threshold and difference is less than or equal to the second preset threshold, then obtains blurred picture according to file of spreading its tail;Utilize mould It pastes picture and covers region to be filled.
In a kind of optional embodiment, program 310 further makes processor 302 execute following operation: to text of spreading its tail Part carries out etc. than enhanced processing, to cover terminal device screen;Equity carries out Fuzzy Processing than the file of spreading its tail after enhanced processing, Obtain blurred picture;
Using blurred picture as background, the file of spreading its tail after scaling processing is covered on blurred picture, so that fuzzy graph Piece treats filling region and completes filling processing, and treated spreads its tail file for display.
In a kind of optional embodiment, program 310 further makes processor 302 execute following operation: after scaling Spread its tail file carry out Fuzzy Processing, obtain blurred picture;When region to be filled is distributed in terminal device screen left and right ends, Blurred picture is divided into left and right two parts, left and right two parts blurred picture is moved left and right respectively to terminal device screen side Edge covers region to be filled as background;When region to be filled is distributed in terminal device screen upper and lower ends, by blurred picture Two parts up and down are divided into, upper and lower two parts blurred picture is moved up and down respectively to terminal device screen edge, as background Cover region to be filled.
In a kind of optional embodiment, program 310 further makes processor 302 execute following operation: if difference is big In the second preset threshold, then stretch processing is carried out to fill region to be filled to file of spreading its tail.
In a kind of optional embodiment, program 310 further makes processor 302 execute following operation: according to difference To spread its tail, file adds corresponding frame, wherein border color is corresponding with the color for document edge of spreading its tail.
In a kind of optional embodiment, the pattern of frame is associated with the picture material for file of spreading its tail.
In a kind of optional embodiment, program 310 also makes processor 302 execute following operation: identifying file of spreading its tail Picture material;If picture material is personage or single object, according to spreading its tail the file display size of file and screen is shown Size determines the corresponding region to be filled of file of spreading its tail, treats filling region and be filled processing, at terminal device presentation File of spreading its tail after reason;If picture material is non-personage or non-single object, the file that will spread its tail is shown centered in terminal device Screen in, to spreading its tail, file carries out uniform zoom processing, to cover terminal device screen, and according to screen display size equity Cutting processing is carried out than the file of spreading its tail after scaling processing.
In a kind of optional embodiment, file of spreading its tail to be presented is dynamic video;It spreads its tail the length and width of documents of file Than being determined with file display size according to the length-width ratio and display size of the corresponding picture of any one frame of dynamic video.
In a kind of optional embodiment, program 310 also makes processor 302 execute following operation: sending to server-side File acquisition of spreading its tail request;Receive the response comprising file of spreading its tail that server-side returns.
Algorithm and display are not inherently related to any particular computer, virtual system, or other device provided herein. Various general-purpose systems can also be used together with teachings based herein.As described above, it constructs required by this kind of system Structure be obvious.In addition, the present invention is also not directed to any particular programming language.It should be understood that can use various Programming language realizes summary of the invention described herein, and the description done above to language-specific is to disclose this hair Bright preferred forms.
In the instructions provided here, numerous specific details are set forth.It is to be appreciated, however, that implementation of the invention Example can be practiced without these specific details.In some instances, well known method, structure is not been shown in detail And technology, so as not to obscure the understanding of this specification.
Similarly, it should be understood that in order to simplify the disclosure and help to understand one or more of the various inventive aspects, Above in the description of exemplary embodiment of the present invention, each feature of the invention is grouped together into single implementation sometimes In example, figure or descriptions thereof.However, the disclosed method should not be interpreted as reflecting the following intention: i.e. required to protect Shield the present invention claims features more more than feature expressly recited in each claim.More precisely, as following Claims reflect as, inventive aspect is all features less than single embodiment disclosed above.Therefore, Thus the claims for following specific embodiment are expressly incorporated in the specific embodiment, wherein each claim itself All as a separate embodiment of the present invention.
Those skilled in the art will understand that can be carried out adaptively to the module in the equipment in embodiment Change and they are arranged in one or more devices different from this embodiment.It can be the module or list in embodiment Member or component are combined into a module or unit or component, and furthermore they can be divided into multiple submodule or subelement or Sub-component.Other than such feature and/or at least some of process or unit exclude each other, it can use any Combination is to all features disclosed in this specification (including adjoint claim, abstract and attached drawing) and so disclosed All process or units of what method or apparatus are combined.Unless expressly stated otherwise, this specification is (including adjoint power Benefit require, abstract and attached drawing) disclosed in each feature can carry out generation with an alternative feature that provides the same, equivalent, or similar purpose It replaces.
In addition, it will be appreciated by those of skill in the art that although some embodiments described herein include other embodiments In included certain features rather than other feature, but the combination of the feature of different embodiments mean it is of the invention Within the scope of and form different embodiments.For example, in the following claims, embodiment claimed is appointed Meaning one of can in any combination mode come using.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and ability Field technique personnel can be designed alternative embodiment without departing from the scope of the appended claims.In the claims, Any reference symbol between parentheses should not be configured to limitations on claims.Word "comprising" does not exclude the presence of not Element or step listed in the claims.Word "a" or "an" located in front of the element does not exclude the presence of multiple such Element.The present invention can be by means of including the hardware of several different elements and being come by means of properly programmed computer real It is existing.The use of word first, second, and third does not indicate any sequence.These words can be construed to title.
The invention discloses:
A1, a kind of rendering method for file of spreading its tail, comprising:
When receiving application start instruction, file of spreading its tail to be presented is obtained;Judgement spread its tail file file it is long Whether width is than consistent with the screen aspect ratio of terminal device;If it is not, then according to the file display size and screen of file of spreading its tail Display size determines the corresponding region to be filled of file of spreading its tail, treats filling region and be filled processing, so that terminal device is in It is existing that treated spreads its tail file.
A2. method according to a1, wherein the file of spreading its tail to be presented is specially first to spread its tail file;
The judgement spread its tail file length and width of documents than after whether consistent with the screen aspect ratio of terminal device, it is described Method further include: when determine spread its tail file length and width of documents than it is inconsistent with the screen aspect ratio of terminal device when, from caching It obtains and meets the first screen of terminal device and show that the second file of spreading its tail of demand is presented;By described first spread its tail file into Row caching;
The determination is spread its tail the corresponding region to be filled of file, is treated filling region and is filled processing specifically: postpones Deposit it is middle extract first and spread its tail file, determine that first spreads its tail the corresponding region to be filled of file, to first spread its tail file it is corresponding to Filling region is filled processing, will filling treated that the first file of spreading its tail caches.
A3. method according to a1 or a2, wherein the basis spread its tail file file display size and screen it is aobvious Show size, before determining the corresponding region to be filled of file of spreading its tail, the method also includes: it is shown according to the file for file of spreading its tail Size and screen display size, whether judgement file of spreading its tail meets the second screen and shows demand, if it is not, then carrying out to file of spreading its tail Uniform zoom processing;
The determination is spread its tail the corresponding region to be filled of file specifically: is shown demand according to the second screen is met or is waited ratios The file display size of file of spreading its tail after scaling processing and the difference of screen display size determine that file of spreading its tail is corresponding wait fill out Fill region.
A4. method according to a3, wherein treat filling region and be filled processing and further comprise: if the difference Value is less than or equal to the first preset threshold, then treats filling region according to the color value for document edge of spreading its tail and be filled processing.
A5. method according to a3, wherein treat filling region and be filled processing and further comprise: if the difference Value is greater than the first preset threshold and the difference is less than or equal to the second preset threshold, then obtains fuzzy graph according to file of spreading its tail Piece;The region to be filled is covered using the blurred picture.
A6. method according to a5, wherein basis file of spreading its tail obtains blurred picture and further comprises: split Screen file carries out etc. than enhanced processing, to cover terminal device screen;Equity is obscured than the file of spreading its tail after enhanced processing Processing, obtains blurred picture;
The filling region for the treatment of is filled processing, and so that terminal device is presented, treated spreads its tail file, comprising: with The blurred picture is background, the file of spreading its tail after the scaling processing is covered on the blurred picture, so that described Blurred picture completes filling processing to the region to be filled, and treated spreads its tail file for display.
A7. method according to a5, wherein basis file of spreading its tail obtains blurred picture and further comprises: to institute File of spreading its tail after stating scaling carries out Fuzzy Processing, obtains blurred picture;
It is described to further comprise using the blurred picture covering region to be filled: when the region to be filled is distributed in end When end equipment screen left and right ends, the blurred picture is divided into left and right two parts, by left and right two parts blurred picture It is moved left and right respectively to terminal device screen edge, covers the region to be filled as background;When the region to be filled point Cloth is divided into two parts up and down in terminal device screen upper and lower ends, by the blurred picture, by two parts mould up and down Paste picture is moved up and down respectively to terminal device screen edge, covers the region to be filled as background.
A8. method according to a3, wherein treat filling region and be filled processing and further comprise: if the difference Value is greater than the second preset threshold, then carries out stretch processing to file of spreading its tail to fill region to be filled.
A9. method according to a3, wherein treat filling region and be filled processing and further comprise: according to described Difference is the corresponding frame of file addition of spreading its tail, wherein border color is corresponding with the color for document edge of spreading its tail.
A10. the method according to A9, wherein the pattern of the frame is associated with the picture material for file of spreading its tail.
A11. method according to a1, wherein judgement spread its tail file length and width of documents than the screen with terminal device After length-width ratio is inconsistent, the method also includes: identify the picture material for file of spreading its tail;
If picture material is personage or single object, execute according to spreading its tail the file display size of file and screen is shown Size determines the corresponding region to be filled of file of spreading its tail, treats filling region and be filled processing, at terminal device presentation After reason spread its tail file the step of;
If picture material is non-personage or non-single object, file of spreading its tail is shown centered on the screen in terminal device In, to spreading its tail, file carries out uniform zoom processing, to cover terminal device screen, and according to screen display size to uniform zoom Treated, and file of spreading its tail carries out cutting processing.
A12. the method according to any one of A1-A11, wherein the file of spreading its tail to be presented is dynamic video; The length and width of documents of the file of spreading its tail is than the length and width with file display size according to the corresponding picture of any one frame of dynamic video Than being determined with display size.
A13. the method according to any one of A1-A12, wherein described before obtaining file of spreading its tail to be presented Method further include: file acquisition request of spreading its tail is sent to server-side;
Acquisition file of spreading its tail to be presented further comprises: receiving the sound comprising file of spreading its tail that server-side returns It answers.
B14. a kind of electronic equipment, comprising: processor, memory, communication interface and communication bus, the processor, institute It states memory and the communication interface completes mutual communication by the communication bus;
For the memory for storing an at least executable instruction, it is following that the executable instruction executes the processor Operation: when receiving application start instruction, file of spreading its tail to be presented is obtained;Judgement is spread its tail the length and width of documents ratio of file It is whether consistent with the screen aspect ratio of terminal device;If it is not, then according to spreading its tail the file display size of file and screen is shown Size determines the corresponding region to be filled of file of spreading its tail, treats filling region and be filled processing, at terminal device presentation File of spreading its tail after reason.
B15. electronic equipment according to b14, wherein the file of spreading its tail to be presented is specially first to spread its tail text Part;
The executable instruction also makes the processor execute following operation: when the file that determines to spread its tail length and width of documents ratio with When the screen aspect ratio of terminal device is inconsistent, the second of the first screen display demand for meeting terminal device is obtained from caching File of spreading its tail is presented;Described first file of spreading its tail is cached;
First is extracted from caching to spread its tail file, is determined that first spreads its tail the corresponding region to be filled of file, is spread its tail to first The corresponding region to be filled of file is filled processing, will filling treated that the first file of spreading its tail caches.
B16. the electronic equipment according to B14 or B15, wherein the executable instruction also executes the processor Operate below: according to the file display size for file of spreading its tail and screen display size, whether the file that judges to spread its tail meets the second screen Curtain display demand, if it is not, then carrying out uniform zoom processing to file of spreading its tail;Demand is shown according to the second screen of satisfaction or is waited than contracting It puts that treated and spreads its tail the file display size of file and the difference of screen display size, determine that file of spreading its tail is corresponding to be filled Region.
B17. the electronic equipment according to B16, wherein the executable instruction further execute the processor with Lower operation: if the difference is less than or equal to the first preset threshold, filling region is treated according to the color value for document edge of spreading its tail It is filled processing.
B18. the electronic equipment according to B16, wherein the executable instruction further execute the processor with Lower operation: if the difference is greater than the first preset threshold and the difference is less than or equal to the second preset threshold, basis is spread its tail File obtains blurred picture;The region to be filled is covered using the blurred picture.
B19. the electronic equipment according to B18, wherein the executable instruction further execute the processor with Lower operation: file of spreading its tail is carried out etc. than enhanced processing, to cover terminal device screen;Equity is than the text of spreading its tail after enhanced processing Part carries out Fuzzy Processing, obtains blurred picture;Using the blurred picture as background, the file of spreading its tail after the scaling processing is covered It covers on the blurred picture, so that the blurred picture completes filling processing to the region to be filled, after display processing File of spreading its tail.
B20. the electronic equipment according to B18, wherein the executable instruction further execute the processor with Lower operation: Fuzzy Processing is carried out to the file of spreading its tail after the scaling, obtains blurred picture;When the region to be filled is distributed in When terminal device screen left and right ends, the blurred picture is divided into left and right two parts, by left and right two parts fuzzy graph Piece is moved left and right respectively to terminal device screen edge, covers the region to be filled as background;When the region to be filled When being distributed in terminal device screen upper and lower ends, the blurred picture is divided into two parts up and down, by described two parts up and down Blurred picture is moved up and down respectively to terminal device screen edge, covers the region to be filled as background.
B21. the electronic equipment according to B16, wherein the executable instruction further execute the processor with Lower operation: if the difference is greater than the second preset threshold, stretch processing is carried out to fill region to be filled to file of spreading its tail.
B22. the electronic equipment according to B16, wherein the executable instruction further execute the processor with Lower operation: being the corresponding frame of file addition of spreading its tail according to the difference, wherein the color of border color and document edge of spreading its tail It is corresponding.
B23. the electronic equipment according to B22, wherein the pattern of the frame is related to the picture material for file of spreading its tail Connection.
B24. electronic equipment according to b14, wherein the executable instruction also makes the processor execute following behaviour Make: identifying the picture material for file of spreading its tail;If picture material is personage or single object, shown according to the file for file of spreading its tail Size and screen display size, the determining corresponding region to be filled of file of spreading its tail, treat filling region and are filled processing, for Terminal device is presented that treated spreads its tail file;If picture material is non-personage or non-single object, the file that will spread its tail is placed in the middle It is shown in the screen of terminal device, to spreading its tail, file carries out uniform zoom processing, to cover terminal device screen, and according to screen Curtain display size equity carries out cutting processing than the file of spreading its tail after scaling processing.
B25. the electronic equipment according to any one of B14-B24, wherein the file of spreading its tail to be presented is dynamic Video;The length and width of documents of the file of spreading its tail than with file display size according to the corresponding picture of any one frame of dynamic video Length-width ratio and display size and determine.
B26. the electronic equipment according to any one of B14-B25, wherein the executable instruction also makes the processing Device executes following operation: file acquisition request of spreading its tail is sent to server-side;Receive the sound comprising file of spreading its tail that server-side returns It answers.
C27. a kind of computer storage medium is stored with an at least executable instruction in the storage medium, described to hold Row instruction makes processor execute following operation: when receiving application start instruction, obtaining file of spreading its tail to be presented;Sentence The length and width of documents of screen file is disconnected than whether consistent with the screen aspect ratio of terminal device;If it is not, then according to file of spreading its tail File display size and screen display size determine the corresponding region to be filled of file of spreading its tail, treat filling region and be filled Processing, so that terminal device is presented, treated spreads its tail file.
C28. the computer storage medium according to C27, wherein the file of spreading its tail to be presented is specially first to open Shield file;
The executable instruction also makes the processor execute following operation: when the file that determines to spread its tail length and width of documents ratio with When the screen aspect ratio of terminal device is inconsistent, the second of the first screen display demand for meeting terminal device is obtained from caching File of spreading its tail is presented;Described first file of spreading its tail is cached;First is extracted from caching to spread its tail file, determines first The corresponding region to be filled of file of spreading its tail is filled processing to the first corresponding region to be filled of file of spreading its tail, at filling First after reason file of spreading its tail is cached.
C29. the computer storage medium according to C27 or C28, wherein the executable instruction also makes the processing Device executes following operation: according to the file display size for file of spreading its tail and screen display size, whether the file that judges to spread its tail meets Second screen shows demand, if it is not, then carrying out uniform zoom processing to file of spreading its tail;According to meet the second screen show demand or Treated spreads its tail the file display size of file and the difference of screen display size for uniform zoom, determines that file of spreading its tail is corresponding Region to be filled.
C30. the computer storage medium according to C29, wherein the executable instruction further makes the processor It executes following operation: if the difference is less than or equal to the first preset threshold, being treated and filled out according to the color value for document edge of spreading its tail It fills region and is filled processing.
C31. the computer storage medium according to C29, wherein the executable instruction further makes the processor Execute following operation: if the difference is greater than the first preset threshold and the difference is less than or equal to the second preset threshold, root According to spreading its tail, file obtains blurred picture;The region to be filled is covered using the blurred picture.
C32. the computer storage medium according to C31, wherein the executable instruction further makes the processor It executes following operation: file of spreading its tail being carried out etc. than enhanced processing, to cover terminal device screen;After equity is than enhanced processing File of spreading its tail carries out Fuzzy Processing, obtains blurred picture;Using the blurred picture as background, by spreading its tail after the scaling processing File is covered on the blurred picture, so that the blurred picture completes filling processing, display to the region to be filled Treated spreads its tail file.
C33. the computer storage medium according to C31, wherein the executable instruction further makes the processor It executes following operation: Fuzzy Processing being carried out to the file of spreading its tail after the scaling, obtains blurred picture;When the region to be filled When being distributed in terminal device screen left and right ends, the blurred picture is divided into left and right two parts, by described left and right two parts Blurred picture is moved left and right respectively to terminal device screen edge, covers the region to be filled as background;When described wait fill out Area distribution is filled in terminal device screen upper and lower ends, and the blurred picture is divided into upper and lower two parts, it will be described upper and lower Two parts blurred picture is moved up and down respectively to terminal device screen edge, covers the region to be filled as background.
C34. the computer storage medium according to C29, wherein the executable instruction further makes the processor It executes following operation: if the difference is greater than the second preset threshold, it is to be filled to fill that stretch processing being carried out to file of spreading its tail Region.
C35. the computer storage medium according to C29, wherein the executable instruction further makes the processor It executes following operation: being the corresponding frame of file addition of spreading its tail according to the difference, wherein border color and document edge of spreading its tail Color it is corresponding.
C36. the computer storage medium according to C35, wherein in the image of the pattern of the frame and file of spreading its tail Hold associated.
C37. the computer storage medium according to C27, wherein the executable instruction also executes the processor It operates below: identifying the picture material for file of spreading its tail;If picture material is personage or single object, according to the text for file of spreading its tail Part display size and screen display size determine the corresponding region to be filled of file of spreading its tail, treat filling region and be filled place Reason, so that terminal device is presented, treated spreads its tail file;If picture material is non-personage or non-single object, will spread its tail text Part is shown centered in the screen of terminal device, and to spreading its tail, file carries out uniform zoom processing, to cover terminal device screen, and Cutting processing is carried out than the file of spreading its tail after scaling processing according to screen display size equity.
C38. the computer storage medium according to any one of C27-C37, wherein the file of spreading its tail to be presented For dynamic video;The length and width of documents of the file of spreading its tail is more corresponding according to any one frame of dynamic video than with file display size Length-width ratio and the display size of picture and determine.
C39. the computer storage medium according to any one of C27-C38, wherein the executable instruction also makes institute It states processor and executes following operation: sending file acquisition request of spreading its tail to server-side;Receive server-side return includes text of spreading its tail The response of part.

Claims (10)

1. a kind of rendering method for file of spreading its tail, comprising:
When receiving application start instruction, file of spreading its tail to be presented is obtained;
Judgement spread its tail file length and width of documents than whether consistent with the screen aspect ratio of terminal device;
If it is not, determining that file of spreading its tail is corresponding to be filled then according to the file display size and screen display size of file of spreading its tail Region treats filling region and is filled processing, and so that terminal device is presented, treated spreads its tail file.
2. according to the method described in claim 1, wherein, the file of spreading its tail to be presented is specially first to spread its tail file;
The judgement spread its tail file length and width of documents than after whether consistent with the screen aspect ratio of terminal device, the method Further include: when determine spread its tail file length and width of documents than it is inconsistent with the screen aspect ratio of terminal device when, obtained from caching The first screen for meeting terminal device shows that the second file of spreading its tail of demand is presented;Described first file of spreading its tail is delayed It deposits;
The determination is spread its tail the corresponding region to be filled of file, is treated filling region and is filled processing specifically: from caching It extracts first to spread its tail file, determines that first spreads its tail the corresponding region to be filled of file, it is corresponding to be filled to the first file of spreading its tail Region is filled processing, will filling treated that the first file of spreading its tail caches.
3. method according to claim 1 or 2, wherein spread its tail the file display size and screen of file in the basis Display size, before determining the corresponding region to be filled of file of spreading its tail, the method also includes: it is aobvious according to the file for file of spreading its tail Show size and screen display size, whether judgement file of spreading its tail meets the second screen and shows demand, if it is not, then to spread its tail file into The processing of row uniform zoom;
The determination is spread its tail the corresponding region to be filled of file specifically: shows demand or uniform zoom according to the second screen is met Treated spreads its tail the file display size of file and the difference of screen display size, determines the corresponding area to be filled of file of spreading its tail Domain.
4. according to the method described in claim 3, wherein, treat filling region and be filled processing and further comprise: if described Difference is less than or equal to the first preset threshold, then treats filling region according to the color value for document edge of spreading its tail and be filled processing.
5. according to the method described in claim 3, wherein, treat filling region and be filled processing and further comprise: if described Difference is greater than the first preset threshold and the difference is less than or equal to the second preset threshold, then obtains fuzzy graph according to file of spreading its tail Piece;The region to be filled is covered using the blurred picture.
6. according to the method described in claim 5, wherein, basis file of spreading its tail obtains blurred picture and further comprises:
File of spreading its tail is carried out etc. than enhanced processing, to cover terminal device screen;
Equity carries out Fuzzy Processing than the file of spreading its tail after enhanced processing, obtains blurred picture;
The filling region for the treatment of is filled processing, and so that terminal device is presented, treated spreads its tail file, comprising: with described Blurred picture is background, and the file of spreading its tail after the scaling processing is covered on the blurred picture, so that described fuzzy Picture completes filling processing to the region to be filled, and treated spreads its tail file for display.
7. according to the method described in claim 5, wherein, basis file of spreading its tail obtains blurred picture and further comprises: right File of spreading its tail after the scaling carries out Fuzzy Processing, obtains blurred picture;
It is described to further comprise using the blurred picture covering region to be filled:
When the region to be filled is distributed in terminal device screen left and right ends, the blurred picture is divided into left and right two Point, left and right two parts blurred picture is moved left and right respectively to terminal device screen edge, as background covering it is described to Filling region;When the region to be filled is distributed in terminal device screen upper and lower ends, the blurred picture is divided into Two parts blurred picture up and down is moved up and down respectively to terminal device screen edge, is covered as background by lower two parts The region to be filled.
8. according to the method described in claim 3, wherein, treat filling region and be filled processing and further comprise: if described Difference is greater than the second preset threshold, then carries out stretch processing to file of spreading its tail to fill region to be filled.
9. a kind of electronic equipment, comprising: processor, memory, communication interface and communication bus, the processor, the storage Device and the communication interface complete mutual communication by the communication bus;
The memory makes the processor execute following behaviour for storing an at least executable instruction, the executable instruction Make: when receiving application start instruction, obtaining file of spreading its tail to be presented;
Judgement spread its tail file length and width of documents than whether consistent with the screen aspect ratio of terminal device;
If it is not, determining that file of spreading its tail is corresponding to be filled then according to the file display size and screen display size of file of spreading its tail Region treats filling region and is filled processing, and so that terminal device is presented, treated spreads its tail file.
10. a kind of computer storage medium, an at least executable instruction, the executable instruction are stored in the storage medium Processor is set to execute following operation:
When receiving application start instruction, file of spreading its tail to be presented is obtained;
Judgement spread its tail file length and width of documents than whether consistent with the screen aspect ratio of terminal device;
If it is not, determining that file of spreading its tail is corresponding to be filled then according to the file display size and screen display size of file of spreading its tail Region treats filling region and is filled processing, and so that terminal device is presented, treated spreads its tail file.
CN201811367859.0A 2018-11-16 2018-11-16 Method for presenting open screen file, electronic device and computer storage medium Active CN109491726B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811367859.0A CN109491726B (en) 2018-11-16 2018-11-16 Method for presenting open screen file, electronic device and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811367859.0A CN109491726B (en) 2018-11-16 2018-11-16 Method for presenting open screen file, electronic device and computer storage medium

Publications (2)

Publication Number Publication Date
CN109491726A true CN109491726A (en) 2019-03-19
CN109491726B CN109491726B (en) 2021-11-09

Family

ID=65696052

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811367859.0A Active CN109491726B (en) 2018-11-16 2018-11-16 Method for presenting open screen file, electronic device and computer storage medium

Country Status (1)

Country Link
CN (1) CN109491726B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110060203A (en) * 2019-04-22 2019-07-26 京东方科技集团股份有限公司 Image display method, image display apparatus, electronic equipment and storage medium
CN110580678A (en) * 2019-09-10 2019-12-17 北京百度网讯科技有限公司 Image processing method and device
CN111723052A (en) * 2020-05-09 2020-09-29 厦门亿联网络技术股份有限公司 Editing method and device for large file data
CN114489915A (en) * 2022-02-17 2022-05-13 平安国际智慧城市科技股份有限公司 Open screen picture display method, device, equipment and medium based on mobile equipment

Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0540077B1 (en) * 1991-10-16 1997-08-13 Philips Electronique Grand Public Image display device with an aspect ratio of 16 to 9 adapted to receive images with an aspect ratio of 4 to 3
US20020056083A1 (en) * 2000-03-29 2002-05-09 Istvan Anthony F. System and method for picture-in-browser scaling
CN1414554A (en) * 2001-10-25 2003-04-30 三星电子株式会社 Storage medium suitable for change of screen long-wide specific and its reproducing method
CN1852403A (en) * 2006-04-11 2006-10-25 宇龙计算机通信科技(深圳)有限公司 Film converting edition apparatus and method
CN101673535A (en) * 2008-09-11 2010-03-17 鸿富锦精密工业(深圳)有限公司 Electronic device with picture adjustment function and picture adjustment method
CN101848346A (en) * 2009-03-27 2010-09-29 深圳市中彩联科技有限公司 Television and image display method thereof
CN101521004B (en) * 2008-02-29 2011-12-14 鹏智科技(深圳)有限公司 Electronic device with image processing function and image processing method thereof
CN102436392A (en) * 2011-09-09 2012-05-02 华勇 System for displaying animation content with three-dimensional effect on mobile terminal
CN102802129A (en) * 2011-05-24 2012-11-28 腾讯科技(深圳)有限公司 Method and system for transmitting picture through mobile equipment
CN103678259A (en) * 2013-12-18 2014-03-26 小米科技有限责任公司 Page matching method and device and terminal equipment
CN103678357A (en) * 2012-09-13 2014-03-26 腾讯科技(深圳)有限公司 Method and device for obtaining picture thumbnail through mobile terminal
US20150244755A1 (en) * 2012-10-10 2015-08-27 Huawei Device Co., Ltd. Method, apparatus, and home network system for presenting multiple images, and mobile terminal
CN106970753A (en) * 2017-03-15 2017-07-21 福建中金在线信息科技有限公司 A kind of picture amplifying method and device
CN107657587A (en) * 2017-10-23 2018-02-02 北京嗨动视觉科技有限公司 Image processing method, apparatus and system
CN108322644A (en) * 2018-01-18 2018-07-24 努比亚技术有限公司 A kind of image processing method, mobile terminal and computer readable storage medium

Patent Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0540077B1 (en) * 1991-10-16 1997-08-13 Philips Electronique Grand Public Image display device with an aspect ratio of 16 to 9 adapted to receive images with an aspect ratio of 4 to 3
US20020056083A1 (en) * 2000-03-29 2002-05-09 Istvan Anthony F. System and method for picture-in-browser scaling
CN1414554A (en) * 2001-10-25 2003-04-30 三星电子株式会社 Storage medium suitable for change of screen long-wide specific and its reproducing method
CN1852403A (en) * 2006-04-11 2006-10-25 宇龙计算机通信科技(深圳)有限公司 Film converting edition apparatus and method
CN101521004B (en) * 2008-02-29 2011-12-14 鹏智科技(深圳)有限公司 Electronic device with image processing function and image processing method thereof
CN101673535A (en) * 2008-09-11 2010-03-17 鸿富锦精密工业(深圳)有限公司 Electronic device with picture adjustment function and picture adjustment method
CN101848346A (en) * 2009-03-27 2010-09-29 深圳市中彩联科技有限公司 Television and image display method thereof
CN102802129A (en) * 2011-05-24 2012-11-28 腾讯科技(深圳)有限公司 Method and system for transmitting picture through mobile equipment
CN102436392A (en) * 2011-09-09 2012-05-02 华勇 System for displaying animation content with three-dimensional effect on mobile terminal
CN103678357A (en) * 2012-09-13 2014-03-26 腾讯科技(深圳)有限公司 Method and device for obtaining picture thumbnail through mobile terminal
US20150244755A1 (en) * 2012-10-10 2015-08-27 Huawei Device Co., Ltd. Method, apparatus, and home network system for presenting multiple images, and mobile terminal
CN103678259A (en) * 2013-12-18 2014-03-26 小米科技有限责任公司 Page matching method and device and terminal equipment
CN106970753A (en) * 2017-03-15 2017-07-21 福建中金在线信息科技有限公司 A kind of picture amplifying method and device
CN107657587A (en) * 2017-10-23 2018-02-02 北京嗨动视觉科技有限公司 Image processing method, apparatus and system
CN108322644A (en) * 2018-01-18 2018-07-24 努比亚技术有限公司 A kind of image processing method, mobile terminal and computer readable storage medium

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110060203A (en) * 2019-04-22 2019-07-26 京东方科技集团股份有限公司 Image display method, image display apparatus, electronic equipment and storage medium
CN110580678A (en) * 2019-09-10 2019-12-17 北京百度网讯科技有限公司 Image processing method and device
CN111723052A (en) * 2020-05-09 2020-09-29 厦门亿联网络技术股份有限公司 Editing method and device for large file data
CN111723052B (en) * 2020-05-09 2022-05-24 厦门亿联网络技术股份有限公司 Editing method and device for large file data
CN114489915A (en) * 2022-02-17 2022-05-13 平安国际智慧城市科技股份有限公司 Open screen picture display method, device, equipment and medium based on mobile equipment
CN114489915B (en) * 2022-02-17 2024-09-17 平安国际智慧城市科技股份有限公司 Mobile equipment-based open screen picture display method, device, equipment and medium

Also Published As

Publication number Publication date
CN109491726B (en) 2021-11-09

Similar Documents

Publication Publication Date Title
CN109491726A (en) It spreads its tail rendering method, electronic equipment and the computer storage medium of file
US10565757B2 (en) Multimodal style-transfer network for applying style features from multi-resolution style exemplars to input images
CN107507155B (en) Real-time processing method, device and computing device for edge optimization of video segmentation results
Stengel et al. Adaptive image‐space sampling for gaze‐contingent real‐time rendering
CN107343211B (en) Method of video image processing, device and terminal device
US10198801B2 (en) Image enhancement using self-examples and external examples
CN107610149B (en) Image segmentation result edge optimization processing method and device and computing equipment
CN108109161B (en) Method and device for real-time processing of video data based on adaptive threshold segmentation
CN109903291A (en) Image processing method and relevant apparatus
CN108111911B (en) Video data real-time processing method and device based on self-adaptive tracking frame segmentation
CN107547803A (en) Video segmentation result edge optimization processing method, device and computing device
CN108009147B (en) Electronic book cover generation method, electronic device and computer storage medium
CN110187816A (en) The automatic page turning method of caricature sorts of electronic book calculates equipment and storage medium
AU2017206290B2 (en) Correspondence labels for improved patch match
Akyüz High dynamic range imaging pipeline on the gpu
WO2018040964A1 (en) Network image loading method, device and system
CN115082384A (en) Image processing method, model training method, body shaping method, image processing device, body shaping device, and storage medium
US20190189158A1 (en) Video processing architectures which provide looping video
CN117391775A (en) Floor page generation method and device, electronic equipment and storage medium
CN107563962A (en) Video data real-time processing method and device, computing device
CN109241930B (en) Method and apparatus for processing eyebrow image
CN107578369A (en) Video data processing method and device, computing device
CN110909506A (en) Method and device for generating planar design material
Song et al. Multi-curve translator for high-resolution photorealistic image translation
CN108170391A (en) Page display method, device and electronic equipment

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