CN109189533A - A kind of screen size adaptation method and system - Google Patents
A kind of screen size adaptation method and system Download PDFInfo
- Publication number
- CN109189533A CN109189533A CN201810991512.7A CN201810991512A CN109189533A CN 109189533 A CN109189533 A CN 109189533A CN 201810991512 A CN201810991512 A CN 201810991512A CN 109189533 A CN109189533 A CN 109189533A
- Authority
- CN
- China
- Prior art keywords
- screen
- width
- pixel
- unit region
- original text
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Controls And Circuits For Display Device (AREA)
Abstract
The present invention provides a kind of screen size adaptation method and systems, are related to mobile terminal web adaptation technique field, and screen width is calculated according to the default screen message of charging pile display screen in the method;According to screen width by the original design original text width adjustment of Webpage be target design original text width;The display area of display screen is divided into preset quantity target unit region according to preset ratio, and determines the pixel quantity in each target unit region, preset ratio is the ratio of screen width and original design original text width;The pixel quantity pixel quantity in original unit each in target design original text region being adjusted in target unit region, to solve all to be to write web page code using screen size is obtained in advance in the prior art, if user group is big, incident the technical issues of being huge workload.And a set of code may be implemented to run on different charging piles, reduce the hard work amount of application developer.
Description
Technical field
The present invention relates to mobile terminal web adaptation technique fields, more particularly, to a kind of screen size adaptation method and system.
Background technique
Currently, the appearance of new-energy automobile and shared charging unit is universal, obtain charging pile in city on a large scale
Application, but charging pile is different from mobile phone, the specification that the screen size multiplicity of charging pile is not fixed, if without a set of good
Webpage fit charging pile adaptation method, be tantamount to increase front end engineers to webpage again typesetting even to program again
Modification.It is all to write web page code using screen size is obtained in advance in the prior art, it is incident if user group is big
It is huge workload, there is no truly solve the problems, such as.
Summary of the invention
In view of this, the purpose of the present invention is to provide a kind of screen size adaptation methods and system to solve the prior art
In all be using in advance obtain screen size and write web page code, if user group is big, incident is huge work
The technical issues of amount.
In a first aspect, being applied to charging pile, the method the embodiment of the invention provides a kind of screen size adaptation method
Include the following steps:
According to the default screen message of the charging pile display screen, screen width is calculated;
Load Webpage when, according to the screen width by the original design original text width adjustment of the Webpage be mesh
Mark design original text width;
The display area of the display screen is divided into preset quantity target unit region according to preset ratio, and is determined
Pixel quantity in each target unit region, the preset ratio are the screen width and the original design original text
The ratio of width;
The pixel quantity in original unit region each in the target design original text is adjusted to the target unit region
Interior pixel quantity.
With reference to first aspect, the embodiment of the invention provides the first possible embodiments of first aspect, wherein institute
State method further include:
Determine the quantity and width on the length direction in original unit region occupied by the element in the target design original text
Quantity on direction;
By the quantity on the length direction multiplied by the pixel quantity in the target unit region, the element is obtained
The occupied pixel quantity on length direction in display screen display;
By the quantity in the width direction multiplied by the pixel quantity in the target unit region, the element is obtained
The occupied pixel quantity in width direction in display screen display.
With reference to first aspect, the embodiment of the invention provides second of possible embodiments of first aspect, wherein institute
The default screen message according to the charging pile display screen is stated, screen width is calculated, comprising:
The screen message of the charging pile display screen is obtained, the screen message includes: screen size and screen proportion;
The screen width is calculated according to the screen size and the screen proportion.
With reference to first aspect, the embodiment of the invention provides the third possible embodiments of first aspect, wherein institute
State according to the screen width by the original design original text width adjustment of the Webpage be target design original text width, comprising:
Obtain the original design original text of the Webpage;
The original design original text width setting field is searched in the design original text;
The value of the target design original text width setting field is set according to the screen width.
With reference to first aspect, the embodiment of the invention provides the 4th kind of possible embodiments of first aspect, wherein institute
It states and the display area of the display screen is divided into preset quantity target unit region according to preset ratio, and determine each institute
State the pixel quantity in target unit region, comprising:
The length direction pixel quantity and width direction for obtaining the display area are as pixel quantity;
By the length direction pixel quantity divided by the preset length ratio in the preset ratio, each unit area is obtained
The quantity for the pixel that length direction is distributed in domain;
By the width direction pixel quantity divided by the predetermined width ratio in the preset ratio, each unit area is obtained
The quantity of the pixel of domain insied width directional spreding;
The quantity for the pixel that the quantity for the pixel that the length direction is distributed is distributed multiplied by the width direction, obtains
The quantity of pixel in target unit region.
With reference to first aspect, the embodiment of the invention provides the 5th kind of possible embodiments of first aspect, wherein institute
State the picture pixel quantity in original unit region each in the target design original text being adjusted in the target unit region
Vegetarian refreshments quantity, comprising:
Obtain the setting field for occupying pixel quantity in the target design original text for original unit region to be arranged;
The value of the setting field is set according to the pixel quantity in the target unit region.
Second aspect, the embodiment of the present invention also provide a kind of screen size adaption system, are applied to charging pile, comprising:
First computing module, first computing module are used for the default screen message according to the charging pile display screen,
Screen width is calculated;
The first adjustment module, the first adjustment module when loading Webpage, with according to the screen width by institute
The original design original text width adjustment for stating Webpage is target design original text width;
The display area of the display screen is divided into preset quantity target unit area according to preset ratio by division module
Domain;
First determining module, first determining module are used to determine the pixel number in each target unit region
Amount;
Second adjustment module, the two adjustment module are used for the picture in original unit region each in the target design original text
Vegetarian refreshments quantity is adjusted to the pixel quantity in the target unit region.
In conjunction with second aspect, the embodiment of the invention provides the first possible embodiments of second aspect, wherein also
Include:
Second determining module, on the length direction for determining original unit region occupied by the element in the target design original text
Quantity and width direction on quantity;
Second computing module, by the quantity on the length direction multiplied by the pixel number in the target unit region
Amount obtains the element occupied pixel quantity on length direction when the display screen is shown;
Third computing module, by the quantity in the width direction multiplied by the pixel number in the target unit region
Amount obtains the element occupied pixel quantity in width direction when the display screen is shown.
In conjunction with second aspect, the embodiment of the invention provides second of possible embodiments of second aspect, wherein institute
State the ratio that preset ratio includes: the screen width and the original design original text width.
The embodiment of the present invention brings following the utility model has the advantages that the present invention believes according to the default screen of the charging pile display screen
Breath, is calculated screen width;When loading Webpage, the design original text of the Webpage is set according to the screen width
Width;The display area of the display screen is divided into preset quantity target unit region according to default Aspect Ratio, and really
Pixel quantity in fixed each target unit region;By the pixel number in each original unit region in the design original text
The pixel quantity being adjusted in the target unit region is measured, is all using acquisition screen ruler in advance in the prior art to solve
It is very little and write web page code, if user group is big, incident the technical issues of being huge workload.And it may be implemented
A set of code is run on different charging piles, reduces the hard work amount of application developer.
Other features and advantages of the present invention will illustrate in the following description, also, partly become from specification
It obtains it is clear that understand through the implementation of the invention.The objectives and other advantages of the invention are in specification, claims
And specifically noted structure is achieved and obtained in attached drawing.
To enable the above objects, features and advantages of the present invention to be clearer and more comprehensible, preferred embodiment is cited below particularly, and cooperate
Appended attached drawing, is described in detail below.
Detailed description of the invention
It, below will be to specific in order to illustrate more clearly of the specific embodiment of the invention or technical solution in the prior art
Embodiment or attached drawing needed to be used in the description of the prior art be briefly described, it should be apparent that, it is described below
Attached drawing is some embodiments of the present invention, for those of ordinary skill in the art, before not making the creative labor
It puts, is also possible to obtain other drawings based on these drawings.
Fig. 1 is a kind of screen size adaptation method flow chart provided in an embodiment of the present invention;
Fig. 2 is screen width calculation method flow chart provided in an embodiment of the present invention;
Fig. 3 is field setting procedure figure provided in an embodiment of the present invention;
Fig. 4 is pixel quantity calculation flow chart in unit area provided in an embodiment of the present invention;
Fig. 5 is that the pixel quantity in original unit region provided in an embodiment of the present invention adjusts flow chart;
Fig. 6 is another screen size adaptation method flow chart provided in an embodiment of the present invention.
Specific embodiment
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with attached drawing to the present invention
Technical solution be clearly and completely described, it is clear that described embodiments are some of the embodiments of the present invention, rather than
Whole embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art are not making creative work premise
Under every other embodiment obtained, shall fall within the protection scope of the present invention.
It is all to write web page code using screen size is obtained in advance in currently available technology, if user group is big, companion
With and what is come is huge workload, not solving the problems, such as truly., it is based on this, provided in an embodiment of the present invention one
Kind screen size adaptation method and system are all to write webpage generation using screen size is obtained in advance in the prior art to solve
Code, if user group is big, incident the technical issues of being huge workload.And a set of code may be implemented not
With running on charging pile, the hard work amount of application developer is reduced.
For convenient for understanding the present embodiment, first to a kind of screen size adaptation side disclosed in the embodiment of the present invention
Method describes in detail, is as shown in Figure 1 a kind of screen size adaptation method flow chart provided in an embodiment of the present invention, application
In charging pile, described method includes following steps:
Screen width is calculated according to the default screen message of the charging pile display screen in step S101;
It in embodiments of the present invention, is as shown in Figure 2 screen width calculation method process provided in an embodiment of the present invention
Screen width is calculated in figure, the default screen message according to the charging pile display screen, comprising:
Step S201, obtains the screen message of the charging pile display screen, and the screen message includes: screen size and screen
Curtain ratio;
Step S202 calculates the screen width according to the screen size and the screen proportion.
By obtaining screen message, according in screen message screen size and screen proportion calculated according to Pythagorean theorem
To screen width.Since the screen size of charging pile is different from mobile phone screen size, the screen size multiplicity of charging pile is not solid
Fixed specification, so needing to obtain the screen size of charging pile by the above method.
Step S102, it is according to the screen width that the original design original text of the Webpage is wide when loading Webpage
Degree is adjusted to target design original text width;
It in embodiments of the present invention, is as shown in Figure 3 field setting procedure figure provided in an embodiment of the present invention, it is described to press
The width of the design original text of the Webpage is set according to the screen width, comprising:
Step S301 obtains the original design original text of the Webpage;
Step S302 searches the original design original text width setting field in the design original text;
The value of the target design original text width setting field is arranged according to the screen width by step S303.
When element does not have instance object, that is, use this element of field references, design original text in element include: text,
Picture and video etc., field is to design the wide setting field of original text in embodiments of the present invention, setting design original text it is wide be equal to screen
Width, so that the width of design original text adapts to the screen width of charging pile first, the screen that user can be realized in charging pile is clear
Look at design original text when, it is only necessary to slide up and down, do not need to horizontally slip, it is easy to operate and visual experience can be optimized.
The display area of the display screen is divided into preset quantity target unit area according to preset ratio by step S103
Domain, and determine the pixel quantity in each target unit region, the preset ratio be the screen width with it is described
The ratio of original design original text width;
It in embodiments of the present invention, is as shown in Figure 4 pixel quantity in unit area provided in an embodiment of the present invention
Calculation flow chart, the display area by the display screen are divided into preset quantity target unit area according to preset ratio
Domain, and determine the pixel quantity in each target unit region, comprising:
Step S401, the length direction pixel quantity for obtaining the display area and width direction are as pixel quantity;
Step S402 is obtained by the length direction pixel quantity divided by the preset length ratio in the preset ratio
The quantity for the pixel that length direction is distributed in each unit area;
Step S403 is obtained by the width direction pixel quantity divided by the predetermined width ratio in the preset ratio
The quantity of the pixel of each unit area insied width directional spreding;
Step S404, the pixel that the quantity for the pixel that the length direction is distributed is distributed multiplied by the width direction
Quantity, obtain the quantity of pixel in target unit region.
Wherein, the preset ratio is the ratio of the screen width and the original design original text width, such as: it is original to set
The width for counting original text is 10px, and the screen width of charging pile is 100px, then needs ratio in 10:1 by the width of target design original text
It adjusts to 100px, makes visual effect reach best at this point, the width of target design original text is exactly equal to screen width.Obtain institute
The length direction pixel quantity and width direction for stating display area are as pixel quantity;Length direction pixel quantity is obtained divided by 10
The quantity for the pixel that length direction is distributed in each unit area;The width direction pixel quantity obtains each divided by 10
The quantity of the pixel of unit area insied width directional spreding;Again by the quantity for the pixel for being distributed the length direction multiplied by
The quantity of the pixel of the width direction distribution, obtains the quantity of pixel in target unit region.It is finally reached, it is original to set
The element of 1px is described on charging pile screen using 10px in meter original text original text.The example above is only one of by original design
After original text amplification the case where showing on charging pile screen, specifically there is also reducing display or sizes being waited to show, purpose exists
In the constant rate for keeping all elements inside original design original text, other situations can similarly be obtained, and details are not described herein again.
The pixel quantity in original unit region each in the target design original text is adjusted to the target by step S104
Pixel quantity in unit area.
It in embodiments of the present invention, is as shown in Figure 5 the pixel in original unit region provided in an embodiment of the present invention
Quantity adjusts flow chart;It is described by longitudinal quantity multiplied by the pixel quantity in the target unit region, obtain described
Element longitudinal occupied pixel quantity when the display screen is shown, comprising:
Step S501 obtains the setting for occupying pixel quantity in the target design original text for original unit region to be arranged
Field;
The value of the setting field is arranged according to the pixel quantity in the target unit region by step S502.
Wherein, field represents the quantity mesh of pixel in original unit area in target design original text in embodiments of the present invention
Contain several original unit regions in mark design original text, the pixel quantity in all original unit regions is adjusted to target list
Pixel quantity in the region of position, can be completed adaptation.The example above is only that one of which will fill after the amplification of original design original text
The case where showing on electric stake screen, specifically there is also reduce display or sizes waited to show, it is therefore intended that keeps original and sets
Count original text inside all elements constant rate, it is apparent to those skilled in the art that, for description convenience and
Succinctly, the specific work process of the system of foregoing description, device and unit, can be with reference to corresponding in preceding method embodiment
Journey, details are not described herein.
It is as shown in FIG. 6 for another screen size provided in an embodiment of the present invention in another embodiment of the present invention
Adaptation method flow chart, the method also includes:
Step S105 determines the number on the length direction in original unit region occupied by the element in the target design original text
Quantity in amount and width direction;
Step S106 is obtained by the quantity on the length direction multiplied by the pixel quantity in the target unit region
To the element when the display screen is shown occupied pixel quantity on length direction;
Step S107 is obtained by the quantity in the width direction multiplied by the pixel quantity in the target unit region
To the element when the display screen is shown occupied pixel quantity in width direction.
Element in the target design original text includes: text, video and picture.It illustratively can be by original unit region
It is interpreted as 1px, it is assumed that a picture is 4px × 4px, and target unit region is corresponding to indicate area of original unit using 2px × 3px
Domain indicates the picture using 8px × 12px that is, on target design original text finally on the screen of charging pile.The example above is only
It is one of which by the case where showing on charging pile screen, specifically there is also reduce display or wait big after the amplification of original design original text
The case where small display, it is therefore intended that keep the constant rate of all elements inside original design original text, those skilled in the art
It can be understood that, for convenience and simplicity of description, system, the specific work process of device and unit of foregoing description,
It can refer to corresponding processes in the foregoing method embodiment, details are not described herein.
A kind of screen size adaption system provided in an embodiment of the present invention, with a kind of screen size provided by the above embodiment
Adaptation method technical characteristic having the same reaches identical technical effect so also can solve identical technical problem.It is a kind of
Screen size adaption system is applied to charging pile, comprising:
First computing module, first computing module are used for the default screen message according to the charging pile display screen,
Screen width is calculated;
The first adjustment module, the first adjustment module when loading Webpage, with according to the screen width by institute
The original design original text width adjustment for stating Webpage is target design original text width;
The display area of the display screen is divided into preset quantity target unit area according to preset ratio by division module
Domain;
First determining module, first determining module are used to determine the pixel number in each target unit region
Amount;
Second adjustment module, the two adjustment module are used for the picture in original unit region each in the target design original text
Vegetarian refreshments quantity is adjusted to the pixel quantity in the target unit region.
Illustratively original unit region can be interpreted as 1px, it is assumed that a picture is 4px × 4px, target unit area
Domain is corresponding to indicate original unit region, the use finally on the screen of charging pile, i.e., on target design original text using 2px × 3px
8px × 12px indicates the picture.The example above is only that one of which will be shown on charging pile screen after the amplification of original design original text
The case where showing, specifically there is also reduce display or sizes waited to show, it is therefore intended that keeps all inside original design original text
The constant rate of element, it is apparent to those skilled in the art that, for convenience and simplicity of description, foregoing description
System, the specific work process of device and unit, can refer to corresponding processes in the foregoing method embodiment, it is no longer superfluous herein
It states.
In conjunction with second aspect, the embodiment of the invention provides the first possible embodiments of second aspect, wherein also
Include:
Second determining module, second determining module is for determining original unit occupied by element in the Webpage
The lateral quantity in region and longitudinal quantity;
Second computing module, second computing module are used for the lateral quantity multiplied by the target unit region
Pixel quantity, obtain the element lateral occupied pixel quantity when the display screen is shown;
Third computing module, the third computing module are used for longitudinal quantity multiplied by the target unit region
Pixel quantity, obtain the element longitudinal occupied pixel quantity when the display screen is shown.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description
Specific work process, can refer to corresponding processes in the foregoing method embodiment, details are not described herein.
In conjunction with second aspect, the embodiment of the invention provides second of possible embodiments of second aspect, wherein institute
State the ratio that preset ratio includes: the screen width and the original design original text width.
Such as: the width of original design original text is 10px, and the screen width of charging pile is 100px, then needs the ratio by 10:1
Example is by the width adjustment of target design original text to 100px, at this point, the width of target design original text, which is exactly equal to screen width, makes vision
Effect reaches best.The length direction pixel quantity and width direction for obtaining the display area are as pixel quantity;Length direction
Pixel quantity obtains the quantity for the pixel that length direction is distributed in each unit area divided by 10;The width direction pixel
Quantity obtains the quantity of the pixel of each unit area insied width directional spreding divided by 10;It again will be by the length direction point
The quantity for the pixel that the quantity of the pixel of cloth is distributed multiplied by the width direction obtains pixel in target unit region
Quantity.It is finally reached, the element of 1px is described on charging pile screen using 10px in original design original text original text.For the side of description
Just and succinctly, the specific work process of the system of foregoing description, device and unit, can be with reference to pair in preceding method embodiment
Process is answered, details are not described herein.
In several embodiments provided herein, it should be understood that disclosed systems, devices and methods, it can be with
It realizes by another way.The apparatus embodiments described above are merely exemplary, for example, the division of the unit,
Only a kind of logical function partition, there may be another division manner in actual implementation, in another example, multiple units or components can
To combine or be desirably integrated into another system, or some features can be ignored or not executed.Another point, it is shown or beg for
The mutual coupling, direct-coupling or communication connection of opinion can be through some communication interfaces, device or unit it is indirect
Coupling or communication connection can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple
In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme
's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit
It is that each unit physically exists alone, can also be integrated in one unit with two or more units.
Finally, it should be noted that embodiment described above, only a specific embodiment of the invention, to illustrate the present invention
Technical solution, rather than its limitations, scope of protection of the present invention is not limited thereto, although with reference to the foregoing embodiments to this hair
It is bright to be described in detail, those skilled in the art should understand that: anyone skilled in the art
In the technical scope disclosed by the present invention, it can still modify to technical solution documented by previous embodiment or can be light
It is readily conceivable that variation or equivalent replacement of some of the technical features;And these modifications, variation or replacement, do not make
The essence of corresponding technical solution is detached from the spirit and scope of technical solution of the embodiment of the present invention, should all cover in protection of the invention
Within the scope of.Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.
Claims (10)
1. a kind of screen size adaptation method, which is characterized in that be applied to charging pile, described method includes following steps:
According to the default screen message of the charging pile display screen, screen width is calculated;
When loading Webpage, the original design original text width adjustment of the Webpage is set for target according to the screen width
Count original text width;
The display area of the display screen is divided into preset quantity target unit region according to preset ratio, and is determined each
Pixel quantity in the target unit region, the preset ratio are the screen width and the original design original text width
Ratio;
The pixel quantity in original unit region each in the target design original text is adjusted in the target unit region
Pixel quantity.
2. screen size adaptation method according to claim 1, which is characterized in that the method also includes:
Determine the quantity and width direction on the length direction in original unit region occupied by the element in the target design original text
On quantity;
By the quantity on the length direction multiplied by the pixel quantity in the target unit region, the element is obtained in institute
Occupied pixel quantity on length direction when stating display screen display;
By the quantity in the width direction multiplied by the pixel quantity in the target unit region, the element is obtained in institute
Occupied pixel quantity in width direction when stating display screen display.
3. screen size adaptation method according to claim 1, which is characterized in that described according to the charging pile display screen
Default screen message, screen width is calculated, comprising:
The screen message of the charging pile display screen is obtained, the screen message includes: screen size and screen proportion;
The screen width is calculated according to the screen size and the screen proportion.
4. screen size adaptation method according to claim 1, which is characterized in that it is described according to the screen width by institute
The original design original text width adjustment for stating Webpage is target design original text width, comprising:
Obtain the original design original text of the Webpage;
The original design original text width setting field is searched in the design original text;
The value of the target design original text width setting field is set according to the screen width.
5. screen size adaptation method according to claim 1, which is characterized in that the viewing area by the display screen
Domain is divided into preset quantity target unit region according to preset ratio, and determines the pixel in each target unit region
Point quantity, comprising:
The length direction pixel quantity and width direction for obtaining the display area are as pixel quantity;
By the length direction pixel quantity divided by the preset length ratio in the preset ratio, obtain in each unit area
The quantity of the pixel of length direction distribution;
By the width direction pixel quantity divided by the predetermined width ratio in the preset ratio, obtain in each unit area
The quantity of the pixel of width direction distribution;
The quantity for the pixel that the quantity for the pixel that the length direction is distributed is distributed multiplied by the width direction, obtains mesh
Mark the quantity of pixel in unit area.
6. screen size adaptation method according to claim 1, which is characterized in that it is described will be every in the target design original text
The pixel quantity in a original unit region is adjusted to the pixel quantity in the target unit region, comprising:
Obtain the setting field for occupying pixel quantity in the target design original text for original unit region to be arranged;
The value of the setting field is set according to the pixel quantity in the target unit region.
7. a kind of screen size adaption system is applied to charging pile characterized by comprising
First computing module, first computing module are used for the default screen message according to the charging pile display screen, calculate
Obtain screen width;
The first adjustment module, the first adjustment module when loading Webpage, with according to the screen width by the net
The original design original text width adjustment of the page page is target design original text width;
The display area of the display screen is divided into preset quantity target unit region according to preset ratio by division module;
First determining module, first determining module are used to determine the pixel quantity in each target unit region;
Second adjustment module, the two adjustment module are used for the pixel in original unit region each in the target design original text
Quantity is adjusted to the pixel quantity in the target unit region.
8. screen size adaption system according to claim 7, which is characterized in that further include:
Second determining module determines the number on the length direction in original unit region occupied by the element in the target design original text
Quantity in amount and width direction;
Second computing module is obtained by the quantity on the length direction multiplied by the pixel quantity in the target unit region
To the element when the display screen is shown occupied pixel quantity on length direction;
Third computing module is obtained by the quantity in the width direction multiplied by the pixel quantity in the target unit region
To the element when the display screen is shown occupied pixel quantity in width direction.
9. screen size adaption system according to claim 7, which is characterized in that the preset ratio includes: the screen
The ratio of curtain width and the original design original text width.
10. a kind of computer-readable medium for the non-volatile program code that can be performed with processor, which is characterized in that described
Program code makes the processor execute described any the method for claim 1-6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810991512.7A CN109189533A (en) | 2018-08-29 | 2018-08-29 | A kind of screen size adaptation method and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810991512.7A CN109189533A (en) | 2018-08-29 | 2018-08-29 | A kind of screen size adaptation method and system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109189533A true CN109189533A (en) | 2019-01-11 |
Family
ID=64916919
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810991512.7A Pending CN109189533A (en) | 2018-08-29 | 2018-08-29 | A kind of screen size adaptation method and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109189533A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110865785A (en) * | 2019-11-21 | 2020-03-06 | 武汉真元生物数据有限公司 | Method and device for acquiring pixel size and electronic equipment |
CN111031007A (en) * | 2019-11-22 | 2020-04-17 | 珠海豹趣科技有限公司 | Communication control method and device between electronic whiteboards and server |
CN112055244A (en) * | 2020-09-04 | 2020-12-08 | 维沃移动通信有限公司 | Image acquisition method and device, server and electronic equipment |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20140118379A1 (en) * | 2012-10-26 | 2014-05-01 | Nvidia Corporation | Caching of adaptively sized cache tiles in a unified l2 cache with surface compression |
CN103970894A (en) * | 2014-05-27 | 2014-08-06 | 合一网络技术(北京)有限公司 | Method and system for displaying interface streaming layout in adaptive adjustment mode |
KR20150099679A (en) * | 2014-02-22 | 2015-09-01 | 삼성전자주식회사 | Apparatus for displaying execution screen of apllication and method thereof |
CN106776738A (en) * | 2016-11-18 | 2017-05-31 | 北京奇虎科技有限公司 | A kind of auto-building html files, display methods and device |
CN107797801A (en) * | 2017-10-20 | 2018-03-13 | 江苏电力信息技术有限公司 | A kind of adaptation method based on a variety of interface of mobile terminal |
-
2018
- 2018-08-29 CN CN201810991512.7A patent/CN109189533A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20140118379A1 (en) * | 2012-10-26 | 2014-05-01 | Nvidia Corporation | Caching of adaptively sized cache tiles in a unified l2 cache with surface compression |
KR20150099679A (en) * | 2014-02-22 | 2015-09-01 | 삼성전자주식회사 | Apparatus for displaying execution screen of apllication and method thereof |
CN103970894A (en) * | 2014-05-27 | 2014-08-06 | 合一网络技术(北京)有限公司 | Method and system for displaying interface streaming layout in adaptive adjustment mode |
CN106776738A (en) * | 2016-11-18 | 2017-05-31 | 北京奇虎科技有限公司 | A kind of auto-building html files, display methods and device |
CN107797801A (en) * | 2017-10-20 | 2018-03-13 | 江苏电力信息技术有限公司 | A kind of adaptation method based on a variety of interface of mobile terminal |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110865785A (en) * | 2019-11-21 | 2020-03-06 | 武汉真元生物数据有限公司 | Method and device for acquiring pixel size and electronic equipment |
CN110865785B (en) * | 2019-11-21 | 2023-10-13 | 武汉真元生物数据有限公司 | Pixel size acquisition method and device and electronic equipment |
CN111031007A (en) * | 2019-11-22 | 2020-04-17 | 珠海豹趣科技有限公司 | Communication control method and device between electronic whiteboards and server |
CN112055244A (en) * | 2020-09-04 | 2020-12-08 | 维沃移动通信有限公司 | Image acquisition method and device, server and electronic equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109189533A (en) | A kind of screen size adaptation method and system | |
CN104461442B (en) | The region displaying method and terminal device of flexible screen | |
DE102012013368B4 (en) | Mobile device and method for controlling its screen | |
CN104021749B (en) | A kind of display methods and electronic equipment | |
CN109783181A (en) | Screen is adapted to display methods, electronic equipment and computer storage medium | |
CN103970472A (en) | Electronic Device And Camera Switching Method Thereof | |
US10445049B2 (en) | Mobile terminal, combined terminal device and method for splicing control | |
CN104571990A (en) | Method and system for adjusting operating state of display screen | |
CN104219452A (en) | Information processing method and electronic device | |
WO2015027740A1 (en) | A method and apparatus for processing image cross-reference to related applications | |
CN105808230A (en) | Method and device for moving suspension icon | |
CN103853320A (en) | Information processing method and electronic equipment | |
CN102945144A (en) | Window layout method and device | |
CN108475122A (en) | The method and terminal device of control terminal equipment | |
CN104615300B (en) | The judgment method of image received device and its screen placement status to electronic device | |
CN105825834A (en) | Terminal and backlight brightness adjustment method thereof | |
CN106293417A (en) | Screen-picture display packing and device | |
CN107274344B (en) | Map zooming method and system based on resource distribution, memory and control equipment | |
CN103777863A (en) | Mobile terminal and display method of application program | |
CN104331225A (en) | Picture display method and picture display device | |
CN102646263A (en) | Scaling regulating method and device | |
CN105867800A (en) | Display region adjustment method and apparatus | |
CN107688414B (en) | Capacitive touch screen | |
CN103440048B (en) | Method client terminal operated according to gravity sensing and device | |
CN106168890A (en) | A kind of display packing, device and terminal of based on screen resolution regulation |
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 | ||
CB02 | Change of applicant information |
Address after: 213100 No. 39 Longhui Road, Wujin High-tech Zone, Changzhou City, Jiangsu Province Applicant after: WANBANG CHARGING EQUIPMENT Co.,Ltd. Address before: 215000 No. 39 Longhui Road, Wujin High-tech Zone, Suzhou High-tech Zone, Jiangsu Province Applicant before: WANBANG CHARGING EQUIPMENT Co.,Ltd. |
|
CB02 | Change of applicant information | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190111 |
|
RJ01 | Rejection of invention patent application after publication |