CN107423055A - Method, apparatus, equipment and the storage medium of adaptive terminal device resolution - Google Patents

Method, apparatus, equipment and the storage medium of adaptive terminal device resolution Download PDF

Info

Publication number
CN107423055A
CN107423055A CN201710524468.4A CN201710524468A CN107423055A CN 107423055 A CN107423055 A CN 107423055A CN 201710524468 A CN201710524468 A CN 201710524468A CN 107423055 A CN107423055 A CN 107423055A
Authority
CN
China
Prior art keywords
normalization
terminal device
width
resolution
height
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201710524468.4A
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.)
Baidu Online Network Technology Beijing Co Ltd
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and 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 Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN201710524468.4A priority Critical patent/CN107423055A/en
Publication of CN107423055A publication Critical patent/CN107423055A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformation in the plane of the image
    • G06T3/40Scaling the whole image or part thereof
    • G06T3/4092Image resolution transcoding, e.g. client/server architecture
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Abstract

The embodiment of the invention discloses a kind of method, apparatus, equipment and the storage medium of adaptive terminal device resolution.Methods described includes:It is determined that using corresponding normalization width under the resolution ratio of display elements in display interface after normalization and normalization height;According to the resolution ratio after the screen resolution of terminal device, normalization, normalization width and normalization height, developed width and actual height of the display elements on the terminal device are determined;Display elements are shown on the correspondence position of the display screen of terminal device according to developed width and actual height.The embodiment of the present invention is by determining using corresponding normalization width under the resolution ratio of display elements after normalization in display interface and normalization height, and determine developed width and actual height with reference to the screen resolution of terminal device, display elements are shown on the correspondence position of the display screen of terminal device according to developed width and actual height, can precisely be adapted to the terminal device of different resolution.

Description

Method, apparatus, equipment and the storage medium of adaptive terminal device resolution
Technical field
The present embodiments relate to technical field of voice recognition, more particularly to a kind of side of adaptive terminal device resolution Method, device, equipment and storage medium.
Background technology
With developing rapidly for internet, the species of existing terminal device is also more and more, corresponding to its display screen Resolution ratio is also more and more diversified.In order that display more naturally, it is existing apply exploitation when, its corresponding application interface The resolution ratio that be directed to terminal device is developed.
At present, in existing application interface development process, be terminal device resolution ratio is divided into low resolution, in point What resolution and the class of high-resolution three were developed, still, this resolution adaptation scheme granularity is bigger, can not perfectly fit With various terminal equipment.
The content of the invention
The embodiment of the present invention provides a kind of method, apparatus, equipment and the storage medium of adaptive terminal device resolution, can be with The precisely terminal device of adaptation different resolution.
In a first aspect, the embodiments of the invention provide a kind of method of adaptive terminal device resolution, this method includes:
It is determined that using corresponding normalization width and normalizing under the resolution ratio of display elements in display interface after normalization Change height;
According to the resolution ratio after the screen resolution of terminal device, the normalization, the normalization width and described return One changes height, determines developed width and actual height of the display elements on the terminal device;
Institute is shown on the correspondence position of the display screen of the terminal device according to the developed width and actual height State display elements.
Second aspect, the embodiment of the present invention additionally provide a kind of device of precisely adaptation different resolution equipment, the device Including:
The wide high determining module of normalization, for determining to apply in display interface under the resolution ratio of display elements after normalization Corresponding normalization width and normalization height;
Actual wide high determining module, for the resolution ratio after the screen resolution according to terminal device, the normalization, institute Normalization width and the normalization height are stated, determines developed width and reality of the display elements on the terminal device Highly;
Be adapted to display module, for according to the developed width and actual height the terminal device display screen The display elements are shown on correspondence position.
The third aspect, the embodiment of the present invention additionally provide a kind of equipment, including:
One or more processors;
Storage device, for storing one or more programs,
When one or more of programs are by one or more of computing devices so that one or more of processing The method that device realizes any described adaptive terminal device resolution of the embodiment of the present invention.
Fourth aspect, the embodiment of the present invention additionally provide a kind of computer-readable recording medium, are stored thereon with computer Program, the program realizes any described adaptive terminal device resolution of embodiment of the present invention method when being executed by processor.
The embodiment of the present invention is by determining using corresponding under the resolution ratio of display elements after normalization in display interface Width and normalization height are normalized, and determines the display elements in the terminal with reference to the screen resolution of terminal device Developed width and actual height in equipment, according to the developed width and actual height the terminal device display screen Correspondence position on show display elements, can precisely be adapted to the terminal device of different resolution.
Brief description of the drawings
Fig. 1 is a kind of flow chart of the method for adaptive terminal device resolution that the embodiment of the present invention one provides;
Fig. 2A is a kind of flow chart of the method for adaptive terminal device resolution that the embodiment of the present invention two provides;
Fig. 2 B are the master catalogue signals in a kind of method for adaptive terminal device resolution that the embodiment of the present invention two provides Figure;
Fig. 2 C are the subdirectory signals in a kind of method for adaptive terminal device resolution that the embodiment of the present invention two provides Figure;
Fig. 3 is a kind of structure chart of the device for adaptive terminal device resolution that the embodiment of the present invention three provides;
Fig. 4 is a kind of structural representation for computer equipment that the embodiment of the present invention four provides.
Embodiment
In order that the object, technical solutions and advantages of the present invention are clearer, below in conjunction with the accompanying drawings to the specific reality of the present invention Example is applied to be described in further detail.It is understood that specific embodiment described herein is used only for explaining the present invention, Rather than limitation of the invention.
It also should be noted that for the ease of description, illustrate only in accompanying drawing part related to the present invention rather than Full content.It should be mentioned that some exemplary embodiments are described before exemplary embodiment is discussed in greater detail Into the processing or method described as flow chart.Although operations (or step) are described as the processing of order by flow chart, It is that many of which operation can be implemented concurrently, concomitantly or simultaneously.In addition, the order of operations can be weighed It is new to arrange.The processing can be terminated when its operations are completed, it is also possible to the extra step being not included in accompanying drawing Suddenly.The processing can correspond to method, function, code, subroutine, subprogram etc..
Embodiment one
A kind of flow chart of the method for adaptive terminal device resolution that Fig. 1 provides for the embodiment of the present invention one, this implementation Example is applicable to the situation of adaptive terminal device resolution, and this method can be different by precisely adaptation provided in an embodiment of the present invention The device of resolution device performs, and the device can realize that the device can be integrated in terminal by the way of software and/or hardware In equipment or in the application end of terminal device.Wherein, terminal device can be but be not limited to mobile terminal (tablet personal computer or intelligence Can mobile phone), fixed terminal equipment (for example, desktop computer).
Wherein, application end can be the plug-in unit for some client being embedded in terminal device, or be set for the terminal The plug-in unit of standby operating system, with the client or terminal device of the adaptive terminal device resolution being embedded in terminal device Operating system in the application program of adaptive terminal device resolution be used cooperatively;Application end can also be the terminal device In an independent client that adaptive terminal device resolution is provided, the present embodiment is not limited to this.
As shown in figure 1, the method for the present embodiment specifically includes:
S101, determine to apply in display interface under the resolution ratio of display elements after normalization corresponding normalization width and Normalization height.
Wherein, using the application program to be developed for the terminal device of various screen resolutions, including system apply and Installation application.Wherein, system application includes but is not limited to for short message application, phone application, using shop clock application etc., installation Using include but is not limited to for instant chat application (for example, QQ application, wechat application etc.), navigation application, Alipay application etc..
Using display interface for the application in terminal device, the boundary shown on the display screen of terminal device Face, display elements are using the display items included on display interface, including virtual key, input frame, recording icon etc..Each Using may correspond to it is multiple apply display interface, each may also correspond to multiple display elements using display interface.
For example, wechat application is directed to, after corresponding application display interface includes log-in interface, register interface and logined successfully Corresponding interface, user name input frame display elements and Password Input frame display elements etc. are included in login interface, and registered Interface sets input frame display elements, password confirming input frame display elements comprising user name input frame display elements, password, tested Demonstrate,prove code input frame display elements, identifying code display box display elements etc..
Specifically, the screen resolution of the terminal device of the application can be installed, it is determined that using in display interface as needed Corresponding normalization width and normalization height under the resolution ratio of display elements after normalization.For example, can advance terminal device Screen resolution, display elements width and height, normalization after resolution ratio determine display elements after normalization point Corresponding normalization width and normalization height under resolution.
Or establish corresponding normalizing under the resolution ratio of the screen resolution of terminal device and display elements after normalization Change width and normalize the mapping table of height, when needed, corresponding relation is inquired about according to the screen resolution of terminal device Table be applied in display interface under the resolution ratio of display elements after normalization it is corresponding normalization width and normalization height.
S102, the resolution ratio according to after the screen resolution of terminal device, normalization, normalization width and normalization are high Degree, determine display elements developed width on the terminal device and actual height.
Specifically, display elements developed width on the terminal device and actual height can be determined as follows:It is aobvious Show the developed width w of element on the terminal device1=w2*pw1/pw2, wherein, w1For developed width, w2For normalization width, pw1 For screen resolution width, pw2For the resolution width after normalization;The actual height h of display elements on the terminal device1= h2*ph1/ph2, wherein, h1For actual height, h2For normalization height, ph1For screen resolution height, ph2For point after normalization Resolution height.
S103, display member is shown on the correspondence position of the display screen of terminal device according to developed width and actual height Element.
Wherein, the width, highly calculated by pixel number.Specifically, respectively shown according to using display interface The developed width and actual height of element, each pixel corresponding to display elements is shown on the display screen of terminal device.Extremely , can be when display elements be normalized, by each pixel of each display elements in pixel value corresponding to each pixel Corresponding pixel value pre-saves, and when being shown on the display screen of terminal device, obtains each pixel pair first The pixel value answered, each pixel is then shown according to developed width and actual height.
The present embodiment is by determining using corresponding normalizing under the resolution ratio of display elements after normalization in display interface Change width and normalization height, and the actual width of display elements on the terminal device is determined with reference to the screen resolution of terminal device Degree and actual height, display member is shown on the correspondence position of the display screen of terminal device according to developed width and actual height Element, it can precisely be adapted to the terminal device of different resolution.
Embodiment two
Fig. 2A is a kind of flow chart of the method for adaptive terminal device resolution that the embodiment of the present invention two provides.This implementation Example is optimized based on above-described embodiment, in the present embodiment, further comprises following steps:At least one terminal is set Standby screen resolution is uniformly normalized under same default resolution ratio;Record applies each display elements in display interface presetting Corresponding normalization width and normalization height under resolution ratio, and the pixel value of each pixel.
Accordingly, as shown in Figure 2 A, the method for the present embodiment specifically includes:
S201, the screen resolution of at least one terminal device uniformly normalized under same default resolution ratio.
For ease of the exploitation of application, the screen resolution of the various terminal equipment occurred on the market can be counted in advance, will not With the screen resolution of terminal device, uniformly normalize under same default resolution ratio.For example, common resolution ratio includes but limited In following several:1100x400,1200x400,1200x480,1208x720,1216x480,1280x400 etc., will be above-mentioned various Resolution ratio is all normalized under same default resolution ratio, for example, under all normalizing to the 480x800 resolution ratio, can be by researching and developing people Member is self-defined to be set using corresponding normalization width under the resolution ratio of each display elements after normalization in display interface and returns One changes height.
S202, record apply each display elements corresponding normalization width and normalizing under default resolution ratio in display interface Change height, and the pixel value of respective pixel point.
Specifically, the width, highly being calculated by pixel number, boundary can be shown by writing script logging application Each display elements corresponding normalization width and normalization height under default resolution ratio in face, and the picture of storage respective pixel point Element value.Optionally, it can in the following way record and return using each display elements in display interface are corresponding under default resolution ratio One changes width and normalization height, and the pixel value of respective pixel point:Using the screen resolution of at least one terminal device as Master catalogue, using the normalization width of display elements under corresponding default resolution ratio and normalization height as subdirectory;By each picture The pixel value of vegetarian refreshments is stored in subdirectory.For example, as illustrated by figures 2 b and 2 c.
S203, according to the resolution ratio of terminal device determine apply display interface in the resolution ratio of display elements after normalization Normalization width corresponding to lower and normalization height.
S204, the resolution ratio according to after the screen resolution of terminal device, normalization, normalization width and normalization are high Degree, determine display elements developed width on the terminal device and actual height.
In application and development, one section of program for being used to calculate display elements developed width and actual height can be write.The journey Sequence is when detecting application installation, the resolution ratio of the terminal device by obtaining installation, according to the resolution ratio of the terminal device Automatically normalization width corresponding to being obtained from above-mentioned record and normalization height, and the pixel value of each pixel, and according to end Resolution ratio, normalization width and normalization height after the screen resolution of end equipment, normalization, are calculated display elements and exist Developed width and actual height on terminal device.
S205, display member is shown on the correspondence position of the display screen of terminal device according to developed width and actual height Element.
The present embodiment is by the way that the screen resolution of various terminal equipment is uniformly normalized under same default resolution ratio, no Only it is easy to the exploitation of application, and the application of exploitation is precisely adapted to the terminal device of different resolution.
Embodiment three
Fig. 3 is a kind of structure chart of the device for precisely adaptation different resolution equipment that the embodiment of the present invention three provides.This Embodiment is applicable to the situation of adaptive terminal device resolution, and the device can be realized by the way of software and/or hardware, should Device can be integrated in terminal device or in the application end of terminal device.Wherein, terminal device can be but be not limited to move Terminal (tablet personal computer or smart mobile phone), fixed terminal equipment (for example, desktop computer).
Wherein, application end can be the plug-in unit for some client being embedded in terminal device, or be set for the terminal The plug-in unit of standby operating system, with the client or terminal device of the adaptive terminal device resolution being embedded in terminal device Operating system in the application program of adaptive terminal device resolution be used cooperatively;Application end can also be the terminal device In an independent client that adaptive terminal device resolution is provided, the present embodiment is not limited to this.
As shown in figure 3, described device includes:Normalize wide high determining module 301, actual wide high determining module 302 and fit With display module 303, wherein:
Normalize wide high determining module 301 be used for determine using the resolution ratio of display elements after normalization in display interface Normalization width corresponding to lower and normalization height;
Actual wide high determining module 302 is used for the screen resolution according to terminal device, the resolution ratio after normalization, normalizing Change width and normalization height, determine display elements developed width on the terminal device and actual height;
Display module 303 is adapted to be used for according to developed width and actual height in the corresponding position of the display screen of terminal device Put display display elements.
The device of the accurate adaptation different resolution equipment of the present embodiment is used for the adaptive terminal for performing the various embodiments described above The method of device resolution, its technical principle is similar with caused technique effect, repeats no more here.
On the basis of the various embodiments described above, the width, highly calculated by pixel number, described device is also wrapped Include:Normalized module 304;
Normalized module 304 is same pre- for the screen resolution of at least one terminal device uniformly to be normalized to If under resolution ratio;Record applies each display elements corresponding normalization width and normalization under default resolution ratio in display interface Highly, and respective pixel point pixel value.
On the basis of the various embodiments described above, normalized module 304 is specifically used for:
Using the screen resolution of at least one terminal device as master catalogue, display elements under resolution ratio are preset by corresponding to Normalization width and normalization height be used as subdirectory;The pixel value of each pixel is stored in subdirectory.
On the basis of the various embodiments described above, actual wide high determining module 302 is specifically used for:
The developed width w of display elements on the terminal device1=w2*pw1/pw2, wherein, w1For developed width, w2For normalizing Change width, pw1For screen resolution width, pw2For the resolution width after normalization;The reality of display elements on the terminal device Border height h1=h2*ph1/ph2, wherein, h1For actual height, h2For normalization height, ph1For screen resolution height, ph2For Resolution height after normalization.
The executable present invention of the device for the accurate adaptation different resolution equipment that the various embodiments described above are provided is any to be implemented The method for the adaptive terminal device resolution that example is provided, possesses the corresponding function of method of performing adaptive terminal device resolution Module and beneficial effect.
Example IV
Fig. 4 is a kind of structural representation for equipment that the embodiment of the present invention four provides.Fig. 4 is shown suitable for being used for realizing this The block diagram of the exemplary computer device 12 of invention embodiment.The computer equipment 12 that Fig. 4 is shown is only an example, no The function and use range for tackling the embodiment of the present invention bring any restrictions.
As shown in figure 4, computer equipment 12 is showed in the form of universal computing device.The component of computer equipment 12 can be with Including but not limited to:One or more processor or processing unit 16, system storage 28, connect different system component The bus 18 of (including system storage 28 and processing unit 16).
Bus 18 represents the one or more in a few class bus structures, including memory bus or Memory Controller, Peripheral bus, graphics acceleration port, processor or the local bus using any bus structures in a variety of bus structures.Lift For example, these architectures include but is not limited to industry standard architecture (ISA) bus, MCA (MAC) Bus, enhanced isa bus, VESA's (VESA) local bus and periphery component interconnection (PCI) bus.
Computer equipment 12 typically comprises various computing systems computer-readable recording medium.These media can be it is any can be by The usable medium that computer equipment 12 accesses, including volatibility and non-volatile media, moveable and immovable medium.
System storage 28 can include the computer system readable media of form of volatile memory, such as arbitrary access Memory (RAM) 30 and/or cache memory 32.Computer equipment 12 may further include it is other it is removable/can not Mobile, volatile/non-volatile computer system storage medium.Only as an example, storage system 34 can be used for read-write not Movably, non-volatile magnetic media (Fig. 4 is not shown, is commonly referred to as " hard disk drive ").Although not shown in Fig. 4, can with There is provided for the disc driver to may move non-volatile magnetic disk (such as " floppy disk ") read-write, and to removable non-volatile The CD drive of CD (such as CD-ROM, DVD-ROM or other optical mediums) read-write.In these cases, each driving Device can be connected by one or more data media interfaces with bus 18.Memory 28 can include at least one program and produce Product, the program product have one group of (for example, at least one) program module, and these program modules are configured to perform of the invention each The function of embodiment.
Program/utility 40 with one group of (at least one) program module 42, such as memory 28 can be stored in In, such program module 42 includes --- but being not limited to --- operating system, one or more application program, other programs Module and routine data, the realization of network environment may be included in each or certain combination in these examples.Program mould Block 42 generally performs function and/or method in embodiment described in the invention.
Computer equipment 12 can also be with one or more external equipments 14 (such as keyboard, sensing equipment, display 24 Deng) communication, the equipment communication interacted with the computer equipment 12 can be also enabled a user to one or more, and/or with making Obtain any equipment that the computer equipment 12 can be communicated with one or more of the other computing device (such as network interface card, modulatedemodulate Adjust device etc.) communication.This communication can be carried out by input/output (I/O) interface 22.Also, computer equipment 12 may be used also To pass through network adapter 20 and one or more network (such as LAN (LAN), wide area network (WAN) and/or public network Network, such as internet) communication.As shown in figure 4, network adapter 20 is led to by bus 18 and other modules of computer equipment 12 Letter.It should be understood that although not shown in the drawings, can combine computer equipment 12 use other hardware and/or software module, including But it is not limited to:Microcode, device driver, redundant processing unit, external disk drive array, RAID system, tape drive And data backup storage system etc..
Processing unit 16 is stored in program in system storage 28 by operation, so as to perform various function application and Data processing, such as the method for realizing the adaptive terminal device resolution that the embodiment of the present invention is provided:
It is determined that using corresponding normalization width and normalizing under the resolution ratio of display elements in display interface after normalization Change height;
According to the resolution ratio after the screen resolution of terminal device, the normalization, the normalization width and described return One changes height, determines developed width and actual height of the display elements on the terminal device;
Institute is shown on the correspondence position of the display screen of the terminal device according to the developed width and actual height State display elements.
Further, the width, highly calculated by pixel number, methods described also includes:
The screen resolution of at least one terminal device is uniformly normalized under same default resolution ratio;
Record it is described application display interface in each display elements under the default resolution ratio it is corresponding normalization width and Normalization height, and the pixel value of respective pixel point.
Further, it is described record it is described application display interface in each display elements under the default resolution ratio corresponding to Width and normalization height are normalized, and the pixel value of respective pixel point includes:
Using the screen resolution of at least one terminal device as master catalogue, display elements under resolution ratio are preset by corresponding to Normalization width and normalization height be used as subdirectory;
The pixel value of each pixel is stored in the subdirectory.
Further, the resolution ratio after the screen resolution according to terminal device, the normalization, the normalization Width and the normalization height, determine developed width and actual height bag of the display elements on the terminal device Include:
Developed width w of the display elements on the terminal device1=w2*pw1/pw2, wherein, w1For developed width, w2For normalization width, pw1For screen resolution width, pw2For the resolution width after normalization;
Actual height h of the display elements on the terminal device1=h2*ph1/ph2, wherein, h1For actual height, h2For normalization height, ph1For screen resolution height, ph2For the resolution height after normalization.
Embodiment five
The embodiment of the present invention 5 additionally provides a kind of computer-readable recording medium, is stored thereon with computer program, the journey The method that the adaptive terminal device resolution provided such as all inventive embodiments of the application is provided when sequence is executed by processor:
It is determined that using corresponding normalization width and normalizing under the resolution ratio of display elements in display interface after normalization Change height;
According to the resolution ratio after the screen resolution of terminal device, the normalization, the normalization width and described return One changes height, determines developed width and actual height of the display elements on the terminal device;
Shown and shown on the correspondence position of the display screen of the terminal device according to the developed width and actual height Show element.
Further, the width, highly calculated by pixel number, methods described also includes:
The screen resolution of at least one terminal device is uniformly normalized under same default resolution ratio;
Record it is described application display interface in each display elements under the default resolution ratio it is corresponding normalization width and Normalization height, and the pixel value of respective pixel point.
Further, it is described to record each display elements correspondence under the default resolution ratio in the application display interface Normalization width and normalization height, and the pixel value of respective pixel point includes:
Using the screen resolution of at least one terminal device as master catalogue, display elements under resolution ratio are preset by corresponding to Normalization width and normalization height be used as subdirectory;
The pixel value of each pixel is stored in the subdirectory.
Further, the resolution ratio after the screen resolution according to terminal device, the normalization, the normalization Width and the normalization height, determine developed width and actual height bag of the display elements on the terminal device Include:
Developed width w of the display elements on the terminal device1=w2*pw1/pw2, wherein, w1For developed width, w2For normalization width, pw1For screen resolution width, pw2For the resolution width after normalization;
Actual height h of the display elements on the terminal device1=h2*ph1/ph2, wherein, h1For actual height, h2For normalization height, ph1For screen resolution height, ph2For the resolution height after normalization.
The computer-readable storage medium of the embodiment of the present invention, any of one or more computer-readable media can be used Combination.Computer-readable medium can be computer-readable signal media or computer-readable recording medium.It is computer-readable Storage medium for example may be-but not limited to-the system of electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor, device or Device, or any combination above.The more specifically example (non exhaustive list) of computer-readable recording medium includes:Tool There are the electrical connections of one or more wires, portable computer diskette, hard disk, random access memory (RAM), read-only storage (ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, portable compact disc read-only storage (CD- ROM), light storage device, magnetic memory device or above-mentioned any appropriate combination.In this document, computer-readable storage Medium can be any includes or the tangible medium of storage program, the program can be commanded execution system, device or device Using or it is in connection.
Computer-readable signal media can include in a base band or as carrier wave a part propagation data-signal, Wherein carry computer-readable program code.The data-signal of this propagation can take various forms, including but unlimited In electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be that computer can Any computer-readable medium beyond storage medium is read, the computer-readable medium, which can send, propagates or transmit, to be used for By instruction execution system, device either device use or program in connection.
The program code included on computer-readable medium can be transmitted with any appropriate medium, including --- but it is unlimited In wireless, electric wire, optical cable, RF etc., or above-mentioned any appropriate combination.
It can be write with one or more programming languages or its combination for performing the computer that operates of the present invention Program code, described program design language include object oriented program language-such as Java, Smalltalk, C++, Also include conventional procedural programming language-such as " C " language or similar programming language.Program code can be with Fully perform, partly perform on the user computer on the user computer, the software kit independent as one performs, portion Divide and partly perform or performed completely on remote computer or server on the remote computer on the user computer. Be related in the situation of remote computer, remote computer can pass through the network of any kind --- including LAN (LAN) or Wide area network (WAN)-be connected to subscriber computer, or, it may be connected to outer computer (such as carried using Internet service Pass through Internet connection for business).
Pay attention to, above are only presently preferred embodiments of the present invention and institute's application technology principle.It will be appreciated by those skilled in the art that The invention is not restricted to specific embodiment described here, can carry out for a person skilled in the art various obvious changes, Readjust and substitute without departing from protection scope of the present invention.Therefore, although being carried out by above example to the present invention It is described in further detail, but the present invention is not limited only to above example, without departing from the inventive concept, Other more equivalent embodiments can also be included, and the scope of the present invention is determined by scope of the appended claims.

Claims (10)

  1. A kind of 1. method of adaptive terminal device resolution, it is characterised in that including:
    It is it is determined that high using corresponding normalization width and normalization under the resolution ratio of display elements in display interface after normalization Degree;
    According to the resolution ratio after the screen resolution of terminal device, the normalization, the normalization width and the normalization Highly, developed width and actual height of the display elements on the terminal device are determined;
    Shown according to the developed width and actual height on the correspondence position of the display screen of the terminal device described aobvious Show element.
  2. 2. according to the method for claim 1, it is characterised in that the width, highly calculated by pixel number, institute Stating method also includes:
    The screen resolution of at least one terminal device is uniformly normalized under same default resolution ratio;
    Record each display elements corresponding normalization width and normalizing under the default resolution ratio in the application display interface Change height, and the pixel value of respective pixel point.
  3. 3. according to the method for claim 2, it is characterised in that described to record each display elements in the application display interface Corresponding normalization width and normalization height under the default resolution ratio, and the pixel value of respective pixel point include:
    Using the screen resolution of at least one terminal device as master catalogue, display elements under corresponding default resolution ratio are returned One change width and normalization height are used as subdirectory;
    The pixel value of each pixel is stored in the subdirectory.
  4. 4. according to the method described in claim any one of 1-3, it is characterised in that described to be differentiated according to the screen of terminal device Resolution ratio, the normalization width and the normalization height after rate, the normalization, determine the display elements described Developed width and actual height on terminal device include:
    Developed width w of the display elements on the terminal device1=w2*pw1/pw2, wherein, w1For developed width, w2For Normalize width, pw1For screen resolution width, pw2For the resolution width after normalization;
    Actual height h of the display elements on the terminal device1=h2*ph1/ph2, wherein, h1For actual height, h2For Normalization height, ph1For screen resolution height, ph2For the resolution height after normalization.
  5. A kind of 5. device of adaptive terminal device resolution, it is characterised in that including:
    The wide high determining module of normalization, is corresponded to for determining to apply in display interface under the resolution ratio of display elements after normalization Normalization width and normalization height;
    Actual wide high determining module, for the resolution ratio after the screen resolution according to terminal device, the normalization, described return One changes width and the normalization height, determines that developed width of the display elements on the terminal device and reality are high Degree;
    Be adapted to display module, for according to the developed width and actual height the display screen of the terminal device correspondence The display elements are shown on position.
  6. 6. device according to claim 5, it is characterised in that the width, highly calculated by pixel number, institute Stating device also includes:
    Normalized module, for the screen resolution of at least one terminal device uniformly to be normalized into same default resolution Under rate;Record each display elements corresponding normalization width and normalizing under the default resolution ratio in the application display interface Change height, and the pixel value of respective pixel point.
  7. 7. device according to claim 6, it is characterised in that the normalized module is specifically used for:
    Using the screen resolution of at least one terminal device as master catalogue, display elements under corresponding default resolution ratio are returned One change width and normalization height are used as subdirectory;The pixel value of each pixel is stored in the subdirectory.
  8. 8. according to the device described in claim any one of 5-7, it is characterised in that the actual wide high determining module is specifically used In:
    Developed width w of the display elements on the terminal device1=w2*pw1/pw2, wherein, w1For developed width, w2For Normalize width, pw1For screen resolution width, pw2For the resolution width after normalization;The display elements are at the end Actual height h in end equipment1=h2*ph1/ph2, wherein, h1For actual height, h2For normalization height, ph1Differentiated for screen Rate height, ph2For the resolution height after normalization.
  9. 9. a kind of equipment, it is characterised in that the equipment includes:
    One or more processors;
    Storage device, for storing one or more programs,
    When one or more of programs are by one or more of computing devices so that one or more of processors are real The now method of the adaptive terminal device resolution as described in any in claim 1-4.
  10. 10. a kind of computer-readable recording medium, is stored thereon with computer program, it is characterised in that the program is by processor The method that the adaptive terminal device resolution as described in any in claim 1-4 is realized during execution.
CN201710524468.4A 2017-06-30 2017-06-30 Method, apparatus, equipment and the storage medium of adaptive terminal device resolution Pending CN107423055A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710524468.4A CN107423055A (en) 2017-06-30 2017-06-30 Method, apparatus, equipment and the storage medium of adaptive terminal device resolution

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710524468.4A CN107423055A (en) 2017-06-30 2017-06-30 Method, apparatus, equipment and the storage medium of adaptive terminal device resolution

Publications (1)

Publication Number Publication Date
CN107423055A true CN107423055A (en) 2017-12-01

Family

ID=60427774

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710524468.4A Pending CN107423055A (en) 2017-06-30 2017-06-30 Method, apparatus, equipment and the storage medium of adaptive terminal device resolution

Country Status (1)

Country Link
CN (1) CN107423055A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108334391A (en) * 2017-12-31 2018-07-27 广州金十信息科技有限公司 A kind of multisystem shows adaptation method, electronic equipment and storage medium
CN108363606A (en) * 2018-03-15 2018-08-03 上海哔哩哔哩科技有限公司 Splashette display methods, device and computer readable storage medium
CN108363604A (en) * 2018-02-06 2018-08-03 四川虹美智能科技有限公司 A kind of resolution adaptation method, apparatus and operation system
CN108628656A (en) * 2018-05-09 2018-10-09 平安普惠企业管理有限公司 Interface adaptation method, device, computer equipment and storage medium on ios device
CN109032749A (en) * 2018-08-16 2018-12-18 成都市映潮科技股份有限公司 A kind of adaptive terminal device resolution method and device
CN111190672A (en) * 2019-12-20 2020-05-22 深圳市优必选科技股份有限公司 UI (user interface) adaptation method of electronic equipment, electronic equipment and storage medium
CN114443186A (en) * 2020-11-02 2022-05-06 上海博泰悦臻网络技术服务有限公司 Multi-resolution automatic adaptive display method, system, medium and terminal based on Flutter framework

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102122347A (en) * 2011-03-31 2011-07-13 汉王科技股份有限公司 Method and device for distinguishing polarity of text color in image
CN103473044A (en) * 2013-08-20 2013-12-25 广东明创软件科技有限公司 Drawing method for application program interface adaptive to mobile terminals with different resolutions
CN104123362A (en) * 2014-07-18 2014-10-29 华中师范大学 Multi-terminal-device-oriented webpage adaptation layout method
US9144378B2 (en) * 2010-06-04 2015-09-29 Canon Kabushiki Kaisha Optical coherence tomography apparatus, optical coherence tomography method, ophthalmic apparatus, method of controlling ophthalmic apparatus, and storage medium
CN106648510A (en) * 2016-12-16 2017-05-10 竞技世界(北京)网络技术有限公司 Display method and device for display resolution

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9144378B2 (en) * 2010-06-04 2015-09-29 Canon Kabushiki Kaisha Optical coherence tomography apparatus, optical coherence tomography method, ophthalmic apparatus, method of controlling ophthalmic apparatus, and storage medium
CN102122347A (en) * 2011-03-31 2011-07-13 汉王科技股份有限公司 Method and device for distinguishing polarity of text color in image
CN103473044A (en) * 2013-08-20 2013-12-25 广东明创软件科技有限公司 Drawing method for application program interface adaptive to mobile terminals with different resolutions
CN104123362A (en) * 2014-07-18 2014-10-29 华中师范大学 Multi-terminal-device-oriented webpage adaptation layout method
CN106648510A (en) * 2016-12-16 2017-05-10 竞技世界(北京)网络技术有限公司 Display method and device for display resolution

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108334391A (en) * 2017-12-31 2018-07-27 广州金十信息科技有限公司 A kind of multisystem shows adaptation method, electronic equipment and storage medium
CN108363604A (en) * 2018-02-06 2018-08-03 四川虹美智能科技有限公司 A kind of resolution adaptation method, apparatus and operation system
CN108363606A (en) * 2018-03-15 2018-08-03 上海哔哩哔哩科技有限公司 Splashette display methods, device and computer readable storage medium
CN108628656A (en) * 2018-05-09 2018-10-09 平安普惠企业管理有限公司 Interface adaptation method, device, computer equipment and storage medium on ios device
CN109032749A (en) * 2018-08-16 2018-12-18 成都市映潮科技股份有限公司 A kind of adaptive terminal device resolution method and device
CN109032749B (en) * 2018-08-16 2021-08-10 成都映潮科技股份有限公司 Method and device for adapting resolution of terminal equipment
CN111190672A (en) * 2019-12-20 2020-05-22 深圳市优必选科技股份有限公司 UI (user interface) adaptation method of electronic equipment, electronic equipment and storage medium
CN114443186A (en) * 2020-11-02 2022-05-06 上海博泰悦臻网络技术服务有限公司 Multi-resolution automatic adaptive display method, system, medium and terminal based on Flutter framework

Similar Documents

Publication Publication Date Title
CN107423055A (en) Method, apparatus, equipment and the storage medium of adaptive terminal device resolution
US10586070B2 (en) Privacy protection in captured image for distribution
US10581199B2 (en) Guided cable plugging in a network
US11012556B2 (en) Non-verbal sensitive data authentication
CN112055064B (en) Data synchronization method, device, equipment and storage medium
CN107273531A (en) Telephone number classifying identification method, device, equipment and storage medium
US20230056305A1 (en) Dynamic alignment of mobile device content
CN109933269A (en) Method, equipment and the computer storage medium that small routine is recommended
CN109558604A (en) A kind of machine translation method, device, electronic equipment and storage medium
CN110457620A (en) A kind of method, apparatus of page access, equipment and storage medium
CN107832874A (en) A kind of weather based reminding method, device, equipment and computer-readable recording medium
CN110134869A (en) A kind of information-pushing method, device, equipment and storage medium
CN109218393A (en) A kind of implementation method of push, device, equipment and computer storage medium
CN109753644A (en) A kind of RichText Edition method, apparatus, mobile terminal and storage medium
US20200218502A1 (en) Cognitive tag library for custom natural language response rendering
CN109033456A (en) A kind of condition query method, apparatus, electronic equipment and storage medium
US10614710B2 (en) Map display with directions generating and download facility
CN109684103A (en) A kind of interface call method, device, server and storage medium
CN107992457A (en) A kind of information conversion method, device, terminal device and storage medium
CN110619615A (en) Method and apparatus for processing image
CN107358076A (en) Password setting method, device, equipment and storage medium
CN109388917A (en) Method for authenticating, device, equipment and the storage medium of hardware device
CN109241059A (en) A kind of building method of point cloud data, device, electronic equipment and storage medium
CN107341017A (en) UI design methods, device, equipment and storage medium
CN107343101A (en) A kind of method, apparatus, equipment and storage medium for realizing orientation recording

Legal Events

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

Application publication date: 20171201

RJ01 Rejection of invention patent application after publication