CN103905643A - Method and system for mobile phone adaption of single background picture - Google Patents

Method and system for mobile phone adaption of single background picture Download PDF

Info

Publication number
CN103905643A
CN103905643A CN201410116971.2A CN201410116971A CN103905643A CN 103905643 A CN103905643 A CN 103905643A CN 201410116971 A CN201410116971 A CN 201410116971A CN 103905643 A CN103905643 A CN 103905643A
Authority
CN
China
Prior art keywords
height
width
background picture
mobile phone
scaling pictures
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201410116971.2A
Other languages
Chinese (zh)
Inventor
赖钧龙
毛锐
余欢
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information Technology Co Ltd
Original Assignee
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information 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 Beijing Jingdong Century Trading Co Ltd, Beijing Jingdong Shangke Information Technology Co Ltd filed Critical Beijing Jingdong Century Trading Co Ltd
Priority to CN201410116971.2A priority Critical patent/CN103905643A/en
Publication of CN103905643A publication Critical patent/CN103905643A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention discloses a method and system for mobile phone adaption of a single background picture. The method comprises the steps that the screen resolution of a mobile phone screen is obtained and the picture resolution of the background picture is obtained; if the aspect ratio of the mobile phone screen is smaller than that of the background picture, the background picture is scaled according to a selected height locking algorithm so as to obtain a scaled picture, and if the aspect ratio of the mobile phone screen is larger than that of the background picture, the background picture is scaled according to a selected width locking algorithm so as to obtain a scaled picture; after the portion, exceeding the mobile phone screen, of the scaled picture is deleted, an adaptive picture adapted to the mobile phone screen is obtained. According to the method, the single background picture is scaled for adaption, so that the effect that the single background picture is adapted to all the resolutions is achieved, resources is greatly saved, the condition that the background picture must be redesigned according to the new generated resolutions is avoided, and efficiency is greatly improved. Meanwhile, the conditions that the picture is deformed and black edges appear are avoided.

Description

A kind of single background picture mobile phone adaptation method and system
Technical field
The present invention relates to mobile phone correlative technology field, particularly a kind of single background picture mobile phone adaptation method and system.
Background technology
Generally, the mobile phone screen of different resolution need to use the background picture of different resolution.
Existing solution is generally prepared the background picture of different resolution for the mobile phone screen of different resolution, thereby cause background picture resources requirement large, need to design new background picture to the cell phone apparatus of new resolution simultaneously, and in use, also need to carry out adaptation according to different mobile phones, operating efficiency is low.
In addition also have a solution, be that picture is carried out to convergent-divergent adaptation according to mobile phone screen, but, due to the resolution of mobile phone screen and the resolution of background picture inconsistent, therefore, there will be anamorphose or occur the situations such as black surround.
Summary of the invention
Based on this, be necessary for the single picture of the prior art mobile phone screen of adaptive different resolution well, cause preparing the background picture of a large amount of different resolutions, cause the technical problem of the wasting of resources, a kind of single background picture mobile phone adaptation method and system are provided.
A kind of single background picture mobile phone adaptation method, comprising:
Obtain the screen resolution of mobile phone screen, obtain the photo resolution of described background picture;
If the ratio of width to height of described mobile phone screen is less than the ratio of width to height of described background picture, select height lock algorithms to carry out convergent-divergent to described background picture and obtain scaling pictures, the height of described scaling pictures is consistent with mobile phone screen height, and the ratio of width to height of described scaling pictures is consistent with the ratio of width to height of described background picture, if the ratio of width to height of described mobile phone screen is greater than the ratio of width to height of described background picture, select width lock algorithms to carry out convergent-divergent to described background picture and obtain scaling pictures, the width of described scaling pictures is consistent with mobile phone screen height, and the ratio of width to height of described scaling pictures is consistent with the ratio of width to height of described background picture,
The part that described scaling pictures is exceeded to mobile phone screen obtains the adaptive picture of adaptive described mobile phone screen after deleting.
A kind of single background picture mobile phone adaption system, comprising:
Resolution module, for obtaining the screen resolution of mobile phone screen, obtains the photo resolution of described background picture;
Zoom module, if be less than the ratio of width to height of described background picture for the ratio of width to height of described mobile phone screen, select height lock algorithms to carry out convergent-divergent to described background picture and obtain scaling pictures, the height of described scaling pictures is consistent with mobile phone screen height, and the ratio of width to height of described scaling pictures is consistent with the ratio of width to height of described background picture, if the ratio of width to height of described mobile phone screen is greater than the ratio of width to height of described background picture, select width lock algorithms to carry out convergent-divergent to described background picture and obtain scaling pictures, the width of described scaling pictures is consistent with mobile phone screen height, and the ratio of width to height of described scaling pictures is consistent with the ratio of width to height of described background picture,
Adaptation module, for exceeding described scaling pictures in the adaptive picture that obtains adaptive described mobile phone screen after the part of mobile phone screen is deleted.
The present invention is by carrying out convergent-divergent adaptation to single background picture, thereby reach and only use the effect of adaptive all resolution of a background picture resource, saving resource greatly, and avoid producing new resolution and must redesign the situation of background picture, greatly improve efficiency.Meanwhile, according to the relation of the ratio of width to height of the ratio of width to height of mobile phone screen and background picture, select suitable algorithm, guaranteed that the ratio of width to height of final scaling pictures and the ratio of width to height of background picture are consistent, avoided picture to be out of shape and to occur the situation of black surround.
Accompanying drawing explanation
Fig. 1 is the workflow diagram of a kind of single background picture mobile phone adaptation method of the present invention;
Fig. 2 is mobile phone screen schematic diagram;
Fig. 3 a is a background picture schematic diagram;
Fig. 3 b is that Fig. 3 a background picture is carried out the scaling pictures schematic diagram that height lock algorithms obtains;
Fig. 3 c obtains adaptive picture schematic diagram after the part beyond the black surround in Fig. 3 b is deleted;
Fig. 3 d is that Fig. 3 a background picture is carried out the scaling pictures schematic diagram that width lock algorithms obtains;
Fig. 3 e is the scaling pictures schematic diagram that Fig. 3 a background picture is directly stretched and obtained;
Fig. 4 a is another background picture schematic diagram;
Fig. 4 b is that Fig. 4 a background picture is carried out the scaling pictures schematic diagram that height lock algorithms obtains;
Fig. 4 c obtains adaptive picture schematic diagram after the part beyond the black surround in Fig. 4 b is deleted;
Fig. 4 d is that Fig. 4 a background picture is carried out the scaling pictures schematic diagram that width lock algorithms obtains;
Fig. 4 e is the scaling pictures schematic diagram that Fig. 4 a background picture is directly stretched and obtained;
Fig. 5 is the construction module figure of a kind of single background picture mobile phone adaption system of the present invention.
Embodiment
Below in conjunction with the drawings and specific embodiments, the present invention will be further described in detail.
The workflow diagram that is illustrated in figure 1 a kind of single background picture mobile phone adaptation method of the present invention, comprising:
Step S101, obtains the screen resolution of mobile phone screen, obtains the photo resolution of described background picture;
Step S102, if the ratio of width to height of described mobile phone screen is less than the ratio of width to height of described background picture, select height lock algorithms to carry out convergent-divergent to described background picture and obtain scaling pictures, the height of described scaling pictures is consistent with mobile phone screen height, and the ratio of width to height of described scaling pictures is consistent with the ratio of width to height of described background picture, if the ratio of width to height of described mobile phone screen is greater than the ratio of width to height of described background picture, select width lock algorithms to carry out convergent-divergent to described background picture and obtain scaling pictures, the width of described scaling pictures is consistent with mobile phone screen height, and the ratio of width to height of described scaling pictures is consistent with the ratio of width to height of described background picture,
Step S103, the part that described scaling pictures is exceeded to mobile phone screen obtains the adaptive picture of adaptive described mobile phone screen after deleting.
As an example, Fig. 2 is mobile phone screen schematic diagram, and wherein black surround frame table shows the frame of mobile phone screen, and Fig. 3 a is a background picture schematic diagram, and Fig. 4 a is another background picture schematic diagram.
Wherein, the ratio of width to height of mobile phone screen is e, and the ratio of width to height of Fig. 3 a background picture is f, and the ratio of width to height of Fig. 4 a background picture is g, has the following g<e<f of relation.
Fig. 3 a background picture and Fig. 4 a background picture are performed step respectively to S101~S103.
Carry out as follows to Fig. 3 a background picture:
Execution step S101, obtains screen resolution and photo resolution.
Execution step S102, due to e<f, carries out height lock algorithms, the scaling pictures of Fig. 3 b obtaining, and the scaling pictures of Fig. 3 b, its height is consistent with mobile phone screen height, and the size of mobile phone screen is the black surround in Fig. 3 b.
Execution step S103, obtains the adaptive picture as Fig. 3 c after the part beyond the black surround in Fig. 3 b is deleted.
For Fig. 3 a background picture, if select width lock algorithms, can cause occurring the black surround shown in Fig. 3 d.
Carry out as follows to Fig. 4 a background picture:
Execution step S101, obtains screen resolution and photo resolution.
Execution step S102, due to g<e, carries out width lock algorithms, the scaling pictures of Fig. 4 b obtaining, and the scaling pictures of Fig. 4 b, its width is consistent with mobile phone screen height, and the size of mobile phone screen is the black surround in Fig. 4 b.
For Fig. 4 a background picture, if select height lock algorithms, can cause occurring the black surround shown in Fig. 4 d.
Execution step S103, obtains the adaptive picture as Fig. 4 c after the part beyond the black surround in Fig. 4 b is deleted.
Can see by above-mentioned two examples, method of the present invention, because the ratio of width to height of scaling pictures and background picture is consistent, therefore obtain scaling pictures indeformable, meanwhile, by comparing the ratio of width to height of background picture and the ratio of width to height of mobile phone screen, select appropriate algorithm, make scaling pictures be full of mobile phone screen, therefore do not stay black surround.
Therein in an embodiment:
Described height lock algorithms comprises: calculating extensibility is B/N, the width of described background picture is multiplied by described extensibility and obtains the width of described scaling pictures, the height of described background picture is multiplied by described extensibility and obtains the height of described scaling pictures, the height that wherein B is screen resolution, the height that N is photo resolution;
Described width lock algorithms comprises: calculating extensibility is A/M, the width of described background picture is multiplied by described extensibility and obtains the width of described scaling pictures, the height of described background picture is multiplied by described extensibility and obtains the height of described scaling pictures, the width that wherein A is screen resolution, the width that M is photo resolution.
Screen resolution is A × B, photo resolution is M × N, work as A/B<M/N, represent that mobile phone screen is higher than picture, now select height lock algorithms, the height of scaling pictures is consistent with mobile phone screen, and owing to adopting identical extensibility, therefore the width of scaling pictures can be wider than the width of mobile phone screen, thereby guarantee there will not be black surround, scaling pictures redundance obtains adaptive picture by cutting processing, and adaptive picture can be paved with whole mobile phone screen.
Specifically, for height lock algorithms, screen resolution is A × B, and photo resolution is M × N, and width tension rate is scaleX, and high elongation rate is scaleY:
scaleX=scaleY=B/N;
The resolution of scaling pictures is:
(M×scaleX)×(N×scaleY)
=(M×B/N)×(N×B/N)
=(M×B/N)×B。
Specifically, for width lock algorithms, screen resolution is A × B, and photo resolution is M × N, and width tension rate is scaleX, and high elongation rate is scaleY:
scaleX=scaleY=A/M;
The resolution of scaling pictures is:
(M×scaleX)×(N×scaleY)
=(M×A/M)×(N×A/M)
=A×(N×A/M)。
Screen resolution is A × B, photo resolution is M × N, work as A/B>M/N, represent that mobile phone screen is wider than picture, now select width lock algorithms, the width of scaling pictures is consistent with mobile phone screen, and owing to adopting identical extensibility, therefore the height of scaling pictures can be higher than the height of mobile phone screen, thereby guarantee there will not be black surround, scaling pictures redundance obtains adaptive picture by cutting processing, and adaptive picture can be paved with whole mobile phone screen.
In an embodiment, also comprise therein:
If the ratio of width to height of described mobile phone screen equals the ratio of width to height of described background picture, select stretching algorithm to carry out convergent-divergent to described background picture and obtain scaling pictures, using described scaling pictures as adaptive picture;
Described stretching algorithm comprises:
Molded breadth extensibility is scaleX=A/M;
Computed altitude extensibility is scaleY=B/N;
The width of described background picture is multiplied by described width tension rate and obtains the width of described scaling pictures, the height of described background picture is multiplied by described high elongation rate and obtains the height of described scaling pictures, the width that wherein A is screen resolution, B is the height of screen resolution, M is the width of photo resolution, the height that N is photo resolution.
The present embodiment has increased the judgement that the ratio of width to height of described mobile phone screen is equaled to the ratio of width to height of described background picture, in the time that both are consistent, background picture directly can be zoomed to consistent with mobile phone screen.
When screen resolution is A × B, photo resolution is M × N, and width tension rate is scaleX, and high elongation rate is scaleY, and its algorithm is specially:
scaleX=A/M;
scaleY=B/N;
The resolution of scaling pictures is:
(M×scaleX)×(N×scaleY)
=(M×A/M)×(N×B/N)
=A×B。
If when the resolution of the resolution of background picture and mobile phone screen is inconsistent, adopt this algorithm to there will be distortion to a certain degree.
If select this algorithm to there will be distortion as shown in Figure 3 e for Fig. 3 a background picture;
If select this algorithm to there will be the distortion as shown in Fig. 4 e for Fig. 4 a background picture.
In an embodiment, obtain the step of the adaptive picture of adaptive described mobile phone screen after the described part deletion that described scaling pictures is exceeded to mobile phone screen therein, i.e. step S103, specifically comprises:
By after the center-aligned of the center of described scaling pictures and described mobile phone screen, the part that described scaling pictures is exceeded to mobile phone screen obtains the adaptive picture of adaptive described mobile phone screen after deleting.
In general, the core of picture is more important than the marginal portion of picture, and the present embodiment, by the center-aligned of the center of described scaling pictures and described mobile phone screen, makes the content of the former background picture of adaptive picture energy reservation as much as possible.
In an embodiment, also comprise therein:
The request showing Background Picture in response to maximum, adopts maximum display algorithm to carry out convergent-divergent to described background picture and obtains scaling pictures, the adaptive picture using described scaling pictures as the described mobile phone screen of adaptation, and described maximum display algorithm comprises:
Calculating extensibility is scale=MAX (A/M, B/N);
The width of described background picture is multiplied by described extensibility and obtains the width of described scaling pictures, the height of described background picture is multiplied by described extensibility and obtains the height of described scaling pictures, the width that wherein A is screen resolution, B is the height of screen resolution, M is the width of photo resolution, the height that N is photo resolution.
The present embodiment increases the response of the request that maximum is showed Background Picture, and in the time that user forces to select maximum to show Background Picture, adopts which.
When screen resolution is A × B, photo resolution is M × N, and width tension rate is scaleX, and high elongation rate is scaleY, and its algorithm is specially:
scaleX=scaleY=MAX(A/M,B/N);
The resolution of scaling pictures is:
(M×scaleX)×(N×scaleY)
=(M×MAX(A/M,B/N))×(N×MAX(A/M,B/N))。
Likely there is black surround in which.
For example, suppose A/M>B/N, MAX (A/M, B/N)=A/M, the resolution of scaling pictures is (M × A/M) × (N × A/M)=A × (N × A/M), if (N × A/M) <B can cause occurring black surround.
In an embodiment, also comprise therein:
In response to the request of showing background picture completely, adopt and show that algorithm carries out convergent-divergent to described background picture and obtains scaling pictures completely, the adaptive picture using described scaling pictures as the described mobile phone screen of adaptation, describedly show that algorithm comprises completely:
Calculating extensibility is scale=MIN (A/M, B/N);
The width of described background picture is multiplied by described extensibility and obtains the width of described scaling pictures, the height of described background picture is multiplied by described extensibility and obtains the height of described scaling pictures, the width that wherein A is screen resolution, B is the height of screen resolution, M is the width of photo resolution, the height that N is photo resolution.
The present embodiment increases the response of the request to showing background picture completely, in the time that user forces to select to show background picture completely, adopts which.
When screen resolution is A × B, photo resolution is M × N, and width tension rate is scaleX, and high elongation rate is scaleY, and its algorithm is specially:
scaleX=scaleY=MIN(A/M,B/N);
The resolution of scaling pictures is:
(M×scaleX)×(N×scaleY)
=(M×MIN(A/M,B/N))×(N×MIN(A/M,B/N))。
Likely there is black surround in which.
For example, suppose A/M>B/N, MIN (A/M, B/N)=B/N, the resolution of scaling pictures is (M × B/N) × (N × B/N)=(M × B/N) × B, if (M × B/N) <A can cause occurring black surround.
The construction module figure that is illustrated in figure 5 a kind of single background picture mobile phone adaption system of the present invention, comprising:
Resolution module 501, for obtaining the screen resolution of mobile phone screen, obtains the photo resolution of described background picture;
Zoom module 502, if be less than the ratio of width to height of described background picture for the ratio of width to height of described mobile phone screen, select height lock algorithms to carry out convergent-divergent to described background picture and obtain scaling pictures, the height of described scaling pictures is consistent with mobile phone screen height, and the ratio of width to height of described scaling pictures is consistent with the ratio of width to height of described background picture, if the ratio of width to height of described mobile phone screen is greater than the ratio of width to height of described background picture, select width lock algorithms to carry out convergent-divergent to described background picture and obtain scaling pictures, the width of described scaling pictures is consistent with mobile phone screen height, and the ratio of width to height of described scaling pictures is consistent with the ratio of width to height of described background picture,
Adaptation module 503, for exceeding described scaling pictures in the adaptive picture that obtains adaptive described mobile phone screen after the part of mobile phone screen is deleted.
Therein in an embodiment:
Described height lock algorithms comprises: calculating extensibility is B/N, the width of described background picture is multiplied by described extensibility and obtains the width of described scaling pictures, the height of described background picture is multiplied by described extensibility and obtains the height of described scaling pictures, the height that wherein B is screen resolution, the height that N is photo resolution;
Described width lock algorithms comprises: calculating extensibility is A/M, the width of described background picture is multiplied by described extensibility and obtains the width of described scaling pictures, the height of described background picture is multiplied by described extensibility and obtains the height of described scaling pictures, the width that wherein A is screen resolution, the width that M is photo resolution.
In an embodiment, also comprise therein:
If the ratio of width to height of described mobile phone screen equals the ratio of width to height of described background picture, select stretching algorithm to carry out convergent-divergent to described background picture and obtain scaling pictures, using described scaling pictures as adaptive picture;
Described stretching algorithm comprises:
Molded breadth extensibility is scaleX=A/M;
Computed altitude extensibility is scaleY=B/N;
The width of described background picture is multiplied by described width tension rate and obtains the width of described scaling pictures, the height of described background picture is multiplied by described high elongation rate and obtains the height of described scaling pictures, the width that wherein A is screen resolution, B is the height of screen resolution, M is the width of photo resolution, the height that N is photo resolution.
In an embodiment, after the described part deletion that described scaling pictures is exceeded to mobile phone screen, obtain the step of the adaptive picture of adaptive described mobile phone screen therein, specifically comprise:
By after the center-aligned of the center of described scaling pictures and described mobile phone screen, the part that described scaling pictures is exceeded to mobile phone screen obtains the adaptive picture of adaptive described mobile phone screen after deleting.
In an embodiment, also comprise therein:
The request showing Background Picture in response to maximum, adopts maximum display algorithm to carry out convergent-divergent to described background picture and obtains scaling pictures, the adaptive picture using described scaling pictures as the described mobile phone screen of adaptation, and described maximum display algorithm comprises:
Calculating extensibility is scale=MAX (A/M, B/N);
The width of described background picture is multiplied by described extensibility and obtains the width of described scaling pictures, the height of described background picture is multiplied by described extensibility and obtains the height of described scaling pictures, the width that wherein A is screen resolution, B is the height of screen resolution, M is the width of photo resolution, the height that N is photo resolution.
In an embodiment, also comprise therein:
In response to the request of showing background picture completely, adopt and show that algorithm carries out convergent-divergent to described background picture and obtains scaling pictures completely, the adaptive picture using described scaling pictures as the described mobile phone screen of adaptation, describedly show that algorithm comprises completely:
Calculating extensibility is scale=MIN (A/M, B/N);
The width of described background picture is multiplied by described extensibility and obtains the width of described scaling pictures, the height of described background picture is multiplied by described extensibility and obtains the height of described scaling pictures, the width that wherein A is screen resolution, B is the height of screen resolution, M is the width of photo resolution, the height that N is photo resolution.
The above embodiment has only expressed several execution mode of the present invention, and it describes comparatively concrete and detailed, but can not therefore be interpreted as the restriction to the scope of the claims of the present invention.It should be pointed out that for the person of ordinary skill of the art, without departing from the inventive concept of the premise, can also make some distortion and improvement, these all belong to protection scope of the present invention.Therefore, the protection range of patent of the present invention should be as the criterion with claims.

Claims (12)

1. a single background picture mobile phone adaptation method, is characterized in that, comprising:
Obtain the screen resolution of mobile phone screen, obtain the photo resolution of described background picture;
If the ratio of width to height of described mobile phone screen is less than the ratio of width to height of described background picture, select height lock algorithms to carry out convergent-divergent to described background picture and obtain scaling pictures, the height of described scaling pictures is consistent with mobile phone screen height, and the ratio of width to height of described scaling pictures is consistent with the ratio of width to height of described background picture, if the ratio of width to height of described mobile phone screen is greater than the ratio of width to height of described background picture, select width lock algorithms to carry out convergent-divergent to described background picture and obtain scaling pictures, the width of described scaling pictures is consistent with mobile phone screen height, and the ratio of width to height of described scaling pictures is consistent with the ratio of width to height of described background picture,
The part that described scaling pictures is exceeded to mobile phone screen obtains the adaptive picture of adaptive described mobile phone screen after deleting.
2. single background picture mobile phone adaptation method according to claim 1, is characterized in that:
Described height lock algorithms comprises: calculating extensibility is B/N, the width of described background picture is multiplied by described extensibility and obtains the width of described scaling pictures, the height of described background picture is multiplied by described extensibility and obtains the height of described scaling pictures, the height that wherein B is screen resolution, the height that N is photo resolution;
Described width lock algorithms comprises: calculating extensibility is A/M, the width of described background picture is multiplied by described extensibility and obtains the width of described scaling pictures, the height of described background picture is multiplied by described extensibility and obtains the height of described scaling pictures, the width that wherein A is screen resolution, the width that M is photo resolution.
3. single background picture mobile phone adaptation method according to claim 1, is characterized in that, also comprises:
If the ratio of width to height of described mobile phone screen equals the ratio of width to height of described background picture, select stretching algorithm to carry out convergent-divergent to described background picture and obtain scaling pictures, using described scaling pictures as adaptive picture;
Described stretching algorithm comprises:
Molded breadth extensibility is scaleX=A/M;
Computed altitude extensibility is scaleY=B/N;
The width of described background picture is multiplied by described width tension rate and obtains the width of described scaling pictures, the height of described background picture is multiplied by described high elongation rate and obtains the height of described scaling pictures, the width that wherein A is screen resolution, B is the height of screen resolution, M is the width of photo resolution, the height that N is photo resolution.
4. single background picture mobile phone adaptation method according to claim 1, is characterized in that, obtains the step of the adaptive picture of adaptive described mobile phone screen after the described part deletion that described scaling pictures is exceeded to mobile phone screen, specifically comprises:
By after the center-aligned of the center of described scaling pictures and described mobile phone screen, the part that described scaling pictures is exceeded to mobile phone screen obtains the adaptive picture of adaptive described mobile phone screen after deleting.
5. single background picture mobile phone adaptation method according to claim 1, is characterized in that, also comprises:
The request showing Background Picture in response to maximum, adopts maximum display algorithm to carry out convergent-divergent to described background picture and obtains scaling pictures, the adaptive picture using described scaling pictures as the described mobile phone screen of adaptation, and described maximum display algorithm comprises:
Calculating extensibility is scale=MAX (A/M, B/N);
The width of described background picture is multiplied by described extensibility and obtains the width of described scaling pictures, the height of described background picture is multiplied by described extensibility and obtains the height of described scaling pictures, the width that wherein A is screen resolution, B is the height of screen resolution, M is the width of photo resolution, the height that N is photo resolution.
6. single background picture mobile phone adaptation method according to claim 1, is characterized in that, also comprises:
In response to the request of showing background picture completely, adopt and show that algorithm carries out convergent-divergent to described background picture and obtains scaling pictures completely, the adaptive picture using described scaling pictures as the described mobile phone screen of adaptation, describedly show that algorithm comprises completely:
Calculating extensibility is scale=MIN (A/M, B/N);
The width of described background picture is multiplied by described extensibility and obtains the width of described scaling pictures, the height of described background picture is multiplied by described extensibility and obtains the height of described scaling pictures, the width that wherein A is screen resolution, B is the height of screen resolution, M is the width of photo resolution, the height that N is photo resolution.
7. a single background picture mobile phone adaption system, is characterized in that, comprising:
Resolution module, for obtaining the screen resolution of mobile phone screen, obtains the photo resolution of described background picture;
Zoom module, if be less than the ratio of width to height of described background picture for the ratio of width to height of described mobile phone screen, select height lock algorithms to carry out convergent-divergent to described background picture and obtain scaling pictures, the height of described scaling pictures is consistent with mobile phone screen height, and the ratio of width to height of described scaling pictures is consistent with the ratio of width to height of described background picture, if the ratio of width to height of described mobile phone screen is greater than the ratio of width to height of described background picture, select width lock algorithms to carry out convergent-divergent to described background picture and obtain scaling pictures, the width of described scaling pictures is consistent with mobile phone screen height, and the ratio of width to height of described scaling pictures is consistent with the ratio of width to height of described background picture,
Adaptation module, for exceeding described scaling pictures in the adaptive picture that obtains adaptive described mobile phone screen after the part of mobile phone screen is deleted.
8. single background picture mobile phone adaption system according to claim 7, is characterized in that:
Described height lock algorithms comprises: calculating extensibility is B/N, the width of described background picture is multiplied by described extensibility and obtains the width of described scaling pictures, the height of described background picture is multiplied by described extensibility and obtains the height of described scaling pictures, the height that wherein B is screen resolution, the height that N is photo resolution;
Described width lock algorithms comprises: calculating extensibility is A/M, the width of described background picture is multiplied by described extensibility and obtains the width of described scaling pictures, the height of described background picture is multiplied by described extensibility and obtains the height of described scaling pictures, the width that wherein A is screen resolution, the width that M is photo resolution.
9. single background picture mobile phone adaption system according to claim 7, is characterized in that, also comprises:
If the ratio of width to height of described mobile phone screen equals the ratio of width to height of described background picture, select stretching algorithm to carry out convergent-divergent to described background picture and obtain scaling pictures, using described scaling pictures as adaptive picture;
Described stretching algorithm comprises:
Molded breadth extensibility is scaleX=A/M;
Computed altitude extensibility is scaleY=B/N;
The width of described background picture is multiplied by described width tension rate and obtains the width of described scaling pictures, the height of described background picture is multiplied by described high elongation rate and obtains the height of described scaling pictures, the width that wherein A is screen resolution, B is the height of screen resolution, M is the width of photo resolution, the height that N is photo resolution.
10. single background picture mobile phone adaption system according to claim 7, is characterized in that, obtains the step of the adaptive picture of adaptive described mobile phone screen after the described part deletion that described scaling pictures is exceeded to mobile phone screen, specifically comprises:
By after the center-aligned of the center of described scaling pictures and described mobile phone screen, the part that described scaling pictures is exceeded to mobile phone screen obtains the adaptive picture of adaptive described mobile phone screen after deleting.
11. single background picture mobile phone adaption systems according to claim 7, is characterized in that, also comprise:
The request showing Background Picture in response to maximum, adopts maximum display algorithm to carry out convergent-divergent to described background picture and obtains scaling pictures, the adaptive picture using described scaling pictures as the described mobile phone screen of adaptation, and described maximum display algorithm comprises:
Calculating extensibility is scale=MAX (A/M, B/N);
The width of described background picture is multiplied by described extensibility and obtains the width of described scaling pictures, the height of described background picture is multiplied by described extensibility and obtains the height of described scaling pictures, the width that wherein A is screen resolution, B is the height of screen resolution, M is the width of photo resolution, the height that N is photo resolution.
12. single background picture mobile phone adaption systems according to claim 7, is characterized in that, also comprise:
In response to the request of showing background picture completely, adopt and show that algorithm carries out convergent-divergent to described background picture and obtains scaling pictures completely, the adaptive picture using described scaling pictures as the described mobile phone screen of adaptation, describedly show that algorithm comprises completely:
Calculating extensibility is scale=MIN (A/M, B/N);
The width of described background picture is multiplied by described extensibility and obtains the width of described scaling pictures, the height of described background picture is multiplied by described extensibility and obtains the height of described scaling pictures, the width that wherein A is screen resolution, B is the height of screen resolution, M is the width of photo resolution, the height that N is photo resolution.
CN201410116971.2A 2014-03-26 2014-03-26 Method and system for mobile phone adaption of single background picture Pending CN103905643A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410116971.2A CN103905643A (en) 2014-03-26 2014-03-26 Method and system for mobile phone adaption of single background picture

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410116971.2A CN103905643A (en) 2014-03-26 2014-03-26 Method and system for mobile phone adaption of single background picture

Publications (1)

Publication Number Publication Date
CN103905643A true CN103905643A (en) 2014-07-02

Family

ID=50996795

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410116971.2A Pending CN103905643A (en) 2014-03-26 2014-03-26 Method and system for mobile phone adaption of single background picture

Country Status (1)

Country Link
CN (1) CN103905643A (en)

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105261050A (en) * 2015-09-23 2016-01-20 北京金山安全软件有限公司 Picture compression method and device and mobile terminal
CN105930464A (en) * 2016-04-22 2016-09-07 腾讯科技(深圳)有限公司 Web rich media multi-screen adaptation method and apparatus
WO2017000647A1 (en) * 2015-06-30 2017-01-05 中兴通讯股份有限公司 Image display method and device
CN106775235A (en) * 2016-12-14 2017-05-31 北京小米移动软件有限公司 Screen wallpaper methods of exhibiting and device
CN107179947A (en) * 2017-04-26 2017-09-19 武汉斗鱼网络科技有限公司 A kind of network picture method for down loading and system for mobile terminal
CN107330853A (en) * 2016-04-28 2017-11-07 优信互联(北京)信息技术有限公司 Shoot picture method and device
CN107680038A (en) * 2017-09-14 2018-02-09 网易(杭州)网络有限公司 A kind of image processing method, medium and relevant apparatus
CN110502203A (en) * 2019-08-21 2019-11-26 京东方科技集团股份有限公司 It draws this reading partner system, display terminal and its draws this playback method
CN110706316A (en) * 2019-10-10 2020-01-17 深圳市有传科技有限公司 Electronic business card manufacturing method and device, computer equipment and storage medium
CN111190665A (en) * 2019-11-13 2020-05-22 深圳市普天宜通技术股份有限公司 Full-screen image display method, intelligent terminal and storage medium
CN111290810A (en) * 2020-01-19 2020-06-16 维沃移动通信有限公司 Image display method and electronic equipment
CN114554109A (en) * 2020-11-26 2022-05-27 华为技术有限公司 Image picture self-adaptive cutting method and electronic equipment
CN114595022A (en) * 2022-03-23 2022-06-07 平安普惠企业管理有限公司 Method, device and equipment for dynamically adapting picture to mobile terminal screen and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101118734A (en) * 2007-07-10 2008-02-06 南京Lg新港显示有限公司 Method and apparatus for regulating proportion of display image in display apparatus
US20090112980A1 (en) * 2007-10-24 2009-04-30 Funai Electric Co., Ltd. Image Data Server
CN101521004A (en) * 2008-02-29 2009-09-02 鹏智科技(深圳)有限公司 Electronic device with image processing function and image processing method thereof
CN103198121A (en) * 2013-04-02 2013-07-10 北京奇虎科技有限公司 Browser background setting method and browser

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101118734A (en) * 2007-07-10 2008-02-06 南京Lg新港显示有限公司 Method and apparatus for regulating proportion of display image in display apparatus
US20090112980A1 (en) * 2007-10-24 2009-04-30 Funai Electric Co., Ltd. Image Data Server
CN101521004A (en) * 2008-02-29 2009-09-02 鹏智科技(深圳)有限公司 Electronic device with image processing function and image processing method thereof
CN103198121A (en) * 2013-04-02 2013-07-10 北京奇虎科技有限公司 Browser background setting method and browser

Cited By (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017000647A1 (en) * 2015-06-30 2017-01-05 中兴通讯股份有限公司 Image display method and device
CN105261050A (en) * 2015-09-23 2016-01-20 北京金山安全软件有限公司 Picture compression method and device and mobile terminal
CN105261050B (en) * 2015-09-23 2018-09-14 北京金山安全软件有限公司 Picture compression method and device and mobile terminal
US10210630B2 (en) 2015-09-23 2019-02-19 Beijing Kingsoft Internet Security Software Co., Ltd. Picture compression method and apparatus, and mobile terminal
CN105930464A (en) * 2016-04-22 2016-09-07 腾讯科技(深圳)有限公司 Web rich media multi-screen adaptation method and apparatus
CN105930464B (en) * 2016-04-22 2021-07-13 腾讯科技(深圳)有限公司 Web rich media cross-screen adaptation method and device
CN107330853B (en) * 2016-04-28 2020-08-07 优信互联(北京)信息技术有限公司 Picture shooting method and device
CN107330853A (en) * 2016-04-28 2017-11-07 优信互联(北京)信息技术有限公司 Shoot picture method and device
CN106775235A (en) * 2016-12-14 2017-05-31 北京小米移动软件有限公司 Screen wallpaper methods of exhibiting and device
CN107179947A (en) * 2017-04-26 2017-09-19 武汉斗鱼网络科技有限公司 A kind of network picture method for down loading and system for mobile terminal
CN107680038A (en) * 2017-09-14 2018-02-09 网易(杭州)网络有限公司 A kind of image processing method, medium and relevant apparatus
CN110502203A (en) * 2019-08-21 2019-11-26 京东方科技集团股份有限公司 It draws this reading partner system, display terminal and its draws this playback method
CN110706316A (en) * 2019-10-10 2020-01-17 深圳市有传科技有限公司 Electronic business card manufacturing method and device, computer equipment and storage medium
CN111190665A (en) * 2019-11-13 2020-05-22 深圳市普天宜通技术股份有限公司 Full-screen image display method, intelligent terminal and storage medium
CN111290810A (en) * 2020-01-19 2020-06-16 维沃移动通信有限公司 Image display method and electronic equipment
CN111290810B (en) * 2020-01-19 2021-10-15 维沃移动通信有限公司 Image display method and electronic equipment
CN114554109A (en) * 2020-11-26 2022-05-27 华为技术有限公司 Image picture self-adaptive cutting method and electronic equipment
CN114595022A (en) * 2022-03-23 2022-06-07 平安普惠企业管理有限公司 Method, device and equipment for dynamically adapting picture to mobile terminal screen and storage medium

Similar Documents

Publication Publication Date Title
CN103905643A (en) Method and system for mobile phone adaption of single background picture
CN108111873B (en) GIS image data transmission method based on machine learning
CN105511712B (en) A kind of image presentation method and device
JP2019500687A (en) Face authentication method, apparatus, and computer storage medium
JP2016042712A (en) Generating zoomed image
CN103903292A (en) Method and system for realizing head portrait editing interface
WO2017088629A1 (en) Method and apparatus for removing image colour noise, mobile terminal, and storage medium
US9196055B2 (en) Method and apparatus for providing a mechanism for gesture recognition
EP2661145A1 (en) Device and method for video calls
US10452402B2 (en) Operation instruction response control method and terminal for human-machine interface
TW201608523A (en) Method and system for generating thumbnails of images
WO2014026623A1 (en) Method, device and terminal for adjusting widget
US20120308147A1 (en) Image processing device, image processing method, and program
WO2016202285A1 (en) Real-time video transmission method and electronic apparatus
CN105468706A (en) Page display method and device
CN104361559A (en) Image magnifying method and system based on small image memory
WO2013107306A1 (en) Image display method and device
CN102855057B (en) The method of adjustment of object hierarchy and device thereof in presentation file
US8862601B2 (en) Method and device for DRM file conversion
CN102800049A (en) Image reduction method and device
US8369637B2 (en) Image processing apparatus, image processing method, and program
CN106648515B (en) Picture display method and device
CN106530216B (en) Full-view image document handling method and system
CN104574470A (en) Simple animation simulation method based on picture
US20110216154A1 (en) Apparatus and method for omnidirectional caller detection in video call system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20140702