Screen resolution adjusting method and device

By automatically matching the zoom multiples and logical resolution of the screen, the problem of cumbersome users' manual adjustment of screen resolution is solved, and the user experience and screen display effect are improved.

CN119007690AActive Publication Date: 2024-11-22BEIJING ZITIAO NETWORK TECH CO LTD
View PDF 9 Cites 0 Cited by

Patent Information

Application Number
CN202310574443.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-05-19
Publication Date
2024-11-22
Estimated Expiration
2043-05-19

AI Technical Summary

Technical Problem

In the prior art, users need to manually adjust the screen zoom multiple to adapt to different screen resolutions. The process is cumbersome and difficult for ordinary users, resulting in poor user experience.

Method used

By determining the target pixels per inch (PPI) of the screen and the preset mapping relationship, the appropriate scaling multiple is automatically matched, and the logical resolution is adjusted according to the physical resolution to automatically set the appropriate screen display effect.

Benefits of technology

Simplifies user operations, improves user experience, reduces the tedious steps of manual adjustment, and ensures the best results of the screen display.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119007690A_ABST
    Figure CN119007690A_ABST
Patent Text Reader

Abstract

The invention provides a screen resolution adjusting method and device.The method is applied to electronic device.According to the method, a target PPI in a screen of the electronic device is determined, a target zoom multiple of the screen is determined according to the target PPI and a preset mapping relation, and the mapping relation is used for indicating zoom multiple corresponding to a plurality of PPI threshold ranges; and adjusting the logic resolution of the screen according to the physical resolution of the screen and the target zooming multiple. According to the technical scheme, after the target PPI is determined, the appropriate zooming multiple is automatically matched in the zooming multiple corresponding to the preset PPI threshold range, so that the purpose of automatically setting the appropriate physical resolution for a user is achieved, the user experience is improved, and tedious steps of manual operation are avoided.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of computer technology, and in particular to a method and device for adjusting screen resolution. Background Art

[0002] With the popularization of electronic products and the advancement of technology, the screen sizes and resolutions of electronic devices are becoming more and more diverse. Icons or fonts of the same size may be displayed completely differently on different screens, causing inconvenience to users.

[0003] In the prior art, in order to solve this problem, the operating system of the electronic device provides a zoom function, allowing users to adapt to different screens by adjusting the zoom factor. Specifically, they need to manually control the control device of the screen to adjust the zoom factor, that is, to find a suitable zoom factor based on their own feelings to show the best display effect of the screen, that is, the electronic device renders the page data on the screen according to the resolution corresponding to the zoom factor.

[0004] However, the manual adjustment method requires the user to continuously select the zoom factor using a control device, and most users do not have relevant technical knowledge, which increases the difficulty of manual zooming. Summary of the invention

[0005] The present disclosure provides a method and device for adjusting screen resolution to solve the problem in the prior art that the steps for users to manually adjust the screen are complicated.

[0006] In a first aspect, an embodiment of the present disclosure provides a method for adjusting screen resolution, which is applied to an electronic device, and the method includes:

[0007] Determine a target number of pixels per inch (PPI) of a screen of the electronic device;

[0008] Determining a target zoom factor of the screen according to the target PPI and a preset mapping relationship, wherein the mapping relationship is used to indicate zoom factors corresponding to a plurality of PPI threshold ranges;

[0009] The logical resolution of the screen is adjusted according to the physical resolution of the screen and the target zoom factor.

[0010] In a second aspect, an embodiment of the present disclosure provides a device for adjusting screen resolution, which is applied to an electronic device, and the device includes:

[0011] A first determination module is used to determine a target number of pixels per inch (PPI) on the screen of the electronic device;

[0012] A second determination module is used to determine a target zoom factor of the screen according to the target PPI and a preset mapping relationship, wherein the mapping relationship is used to indicate zoom factors corresponding to a plurality of PPI threshold ranges;

[0013] The adjustment module is used to adjust the logical resolution of the screen according to the physical resolution of the screen and the target zoom factor.

[0014] In a third aspect, an embodiment of the present disclosure provides an electronic device, including: a processor, and a memory communicatively connected to the processor;

[0015] The memory stores computer-executable instructions;

[0016] The processor executes the computer-executable instructions stored in the memory to implement the method for adjusting the screen resolution as described in the first aspect above.

[0017] In a fourth aspect, an embodiment of the present disclosure provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer execution instructions, and when the computer execution instructions are executed by a processor, they are used to implement the method for adjusting the screen resolution described in the first aspect above.

[0018] In a fifth aspect, an embodiment of the present disclosure provides a computer program product, including a computer program, which, when executed by a processor, implements the method for adjusting the screen resolution as described in the first aspect above.

[0019] The screen resolution adjustment method and device provided by the embodiments of the present disclosure are applied to electronic devices. The method determines the target PPI in the screen of the electronic device, and determines the target zoom factor of the screen according to the target PPI and a preset mapping relationship. The mapping relationship is used to indicate the zoom factors corresponding to multiple PPI threshold ranges, and adjusts the logical resolution of the screen according to the physical resolution of the screen and the target zoom factor. In this technical solution, after determining the target PPI, the appropriate zoom factor is automatically matched among the zoom factors corresponding to the pre-configured PPI threshold ranges, so as to achieve the purpose of automatically setting the appropriate physical resolution for the user, thereby increasing the user experience and avoiding the cumbersome steps of manual operation. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.

[0021] Figure 1 A schematic diagram of an application scenario of a method for adjusting screen resolution provided by an embodiment of the present disclosure;

[0022] Figure 2 A flowchart of a method for adjusting screen resolution provided in an embodiment of the present disclosure Figure 1 ;

[0023] Figure 3 A flowchart of a method for adjusting screen resolution provided in an embodiment of the present disclosure Figure 2 ;

[0024] Figure 4 A schematic diagram of the structure of a device for adjusting screen resolution provided in an embodiment of the present disclosure;

[0025] Figure 5 A schematic diagram of the structure of an electronic device provided in an embodiment of the present disclosure.

[0026] The above drawings show clear embodiments of the present disclosure, which will be described in more detail below. These drawings and text descriptions are not intended to limit the scope of the present disclosure in any way, but to illustrate the concepts of the present disclosure to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION

[0027] In order to make the purpose, technical solution and advantages of the embodiments of the present disclosure clearer, the technical solution in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are part of the embodiments of the present disclosure, not all of the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present disclosure.

[0028] Before introducing the embodiments of the present disclosure, the terms and application backgrounds involved in the embodiments of the present disclosure are first explained:

[0029] Dots per inch (DPI): usually refers to the number of dots printed per inch at logical resolution. For example, a 300DPI printer can print 300 dots per inch, while a 600DPI printer can print more detailed images;

[0030] Pixels per inch (PPI): Usually used for the resolution of screens or digital images. For example, a 1920 x 1080 resolution screen can display about 96 pixels per inch, while a 3840 x 2160 resolution screen can display a clearer image.

[0031] Physical resolution: also called standard resolution, refers to the original resolution of the image displayed by the light-emitting diode (LED) screen, also called true resolution. The optimal resolution of the screen, that is, the mathematical expression of the number of pixel rows and columns actually existing on the screen, is an inherent parameter of the display and cannot be adjusted. It means the maximum number of pixels that can be displayed on the screen.

[0032] Logical resolution: Display resolution, which is calculated by the scaling factor (English: Scale Factor) compared to the physical resolution. Usually, physical resolution > logical resolution, and physical resolution * scaling factor = logical resolution.

[0033] Among them, the common logical resolutions (width, height) are: (768, 1024); (1024, 640); (1280, 800); (1200, 675); (1080, 675); (1200, 750); (1366, 768); (1280, 720); (1536, 864); (1440, 810); (1536, 960); (1920, 1200); (1920, 1080); (1600, 900); (1366, 912); (1280, 850); (1332, 888); (1410, 940).

[0034] Screen size: Usually measured in inches, the diagonal length of the display portion is used as the measurement standard, and the maximum viewable area is the maximum range of graphics that the monitor can display.

[0035] With the popularization of electronic devices and the advancement of technology, the size and resolution of electronic device screens, i.e. displays, are becoming more and more diverse. Icons or fonts of the same size may be displayed completely differently on different displays, which brings inconvenience to users. In other words, visually, the user experience is poor because the resolution is not suitable for the current viewing experience.

[0036] To solve this problem, a common approach is for technicians to provide a zoom function for the operating system of the electronic device when it leaves the factory, that is, allowing the user to determine the logical resolution that is suitable for the current screen by adjusting the zoom factor, and use this resolution to render the data that needs to be displayed on the current screen.

[0037] However, for many users, there are the following technical problems:

[0038] First, the manual adjustment method is cumbersome and the experience is poor;

[0039] Secondly, for most users, if they do not have the relevant knowledge of the zoom function, they need to try many times to determine the appropriate zoom factor to achieve a better screen rendering effect.

[0040] Based on the above-mentioned technical problems, the inventor's technical conception is as follows: although a zoom function, that is, a zoom value, is provided in the prior art for users to choose, users need to try randomly or traverse to get a suitable zoom factor to adjust the logical resolution of the current screen. If prior knowledge can be used, that is, the PPI is first determined according to the size and physical resolution of the display, and for different PPIs, the most suitable zoom factor of the screen can be obtained through experiments, when the user needs to adjust the screen, the PPI of the current screen can be automatically matched to obtain the most suitable zoom factor, and then the relevant logical resolution is determined based on this zoom factor, thereby showing a better display interface for the user, improving the user experience, and eliminating the need for tedious manual operations by the user.

[0041] Before introducing the method embodiment of the present invention, an application scenario involved in the method of the present invention is first described. Figure 1 A schematic diagram of an application scenario of a method for adjusting screen resolution provided by an embodiment of the present disclosure is shown in FIG. Figure 1 As shown, the application scenario includes: an electronic device 11, a processing unit 12 of the electronic device 11, a screen 13 of the electronic device 11, and a storage unit 14 of the electronic device 11.

[0042] Among them, the screen 13 can be an external screen (i.e., a display outside the electronic device 11) or a built-in screen of the electronic device 11 (i.e., the display of the electronic device 11 itself). This application scenario is explained using the external screen as an example. The implementation of the built-in screen is similar and will not be repeated here.

[0043] In one possible implementation, the processing unit 12 obtains parameters such as the physical resolution and size of the screen 13, calculates the PPI of the screen 13, and then determines a suitable zoom factor based on the PPI and a mapping relationship between multiple PPIs and zoom factors pre-stored in the storage unit 14 of the electronic device. The processing unit 12 then adjusts the resolution of the screen 13 according to the zoom factor to provide the user with a better screen display mode.

[0044] The technical solution of the present disclosure is described in detail below through specific embodiments. It should be noted that the following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments.

[0045] It is worth noting that the application fields of the screen resolution adjustment method and device disclosed in the present invention are not limited and may include: the technical field of screen resolution adjustment. Among them, the execution subject of the present invention is an electronic device, which may be a mobile phone, a tablet, a computer, a server and other devices. In some implementations, the electronic device may be connected to an external screen or may have a built-in screen.

[0046] Figure 2 A flowchart of a method for adjusting screen resolution provided in an embodiment of the present disclosure Figure 1 ,like Figure 2 As shown, the method may include the following steps:

[0047] Step 21, determining a target PPI on the screen of the electronic device;

[0048] In this step, the target PPI is the original PPI of the screen of the electronic device.

[0049] That is, the original PPI of the screen can be the PPI corresponding to the physical resolution that has been designed before leaving the factory, which is related to the size of the screen.

[0050] Step 22: Determine a target zoom factor of the screen according to a target PPI and a preset mapping relationship, where the mapping relationship is used to indicate zoom factors corresponding to a plurality of PPI threshold ranges;

[0051] In this step, a mapping relationship is built into the electronic device for indicating the zoom factors corresponding to multiple PPI threshold ranges. The mapping relationship can be determined through multiple experiments to ensure that when the target PPI is within the corresponding PPI threshold range, the corresponding zoom factor is suitable for the current screen.

[0052] In one possible implementation, if the target PPI is determined to be 270, each PPI threshold range can be traversed in the mapping relationship. For example, if a PPI threshold range is matched that is less than 290 and greater than or equal to 230, the target zoom factor corresponding to the target PPI is determined to be 2.0, which is the zoom factor corresponding to the PPI threshold range. Then, the target zoom factor of the screen is determined to be 2.0.

[0053] Optionally, the screen includes a built-in screen and / or an external screen.

[0054] In actual application, the electronic device itself may include one or more screens, that is, the built-in screen of the electronic device, such as a laptop computer, a mobile phone, etc.; the electronic device can also be connected to other displays wirelessly or wired, that is, as an external screen of the electronic device, for example, the host of a desktop computer can be connected to the display via a data cable.

[0055] Correspondingly, the mapping relationship includes: a first mapping relationship of the built-in screen and / or a second mapping relationship of the external screen, the first mapping relationship is the scaling factors corresponding to multiple PPI threshold ranges determined when the DPI corresponding to the logical resolution of the built-in screen is closer to the second value than the first value, and the second mapping relationship is the scaling factors corresponding to multiple PPI threshold ranges determined when the DPI corresponding to the logical resolution of the external screen is closer to the first value than the second value.

[0056] It should be understood that: since the screen categories include built-in screens and external screens, the built-in screens and the external screens have their own mapping relationships, namely the first mapping relationship of the built-in screen and the second mapping relationship of the external screen. The establishment of these two mapping relationships needs to satisfy that after the physical resolution is scaled by the corresponding scaling factor, the DPI corresponding to the logical resolution is close to the second value and the first value respectively. Multiple tests have proved that the screen display effect is better when they are close to the corresponding values ​​(this example is given in step 23, and the number of times will not be repeated).

[0057] Optionally, DPI is calculated as:

[0058]

[0059] Among them, C is the width of the logical resolution, D is the height of the logical resolution, and E is the diagonal size of the screen.

[0060] In a possible implementation, the first value is smaller than the second value; the first value is 90, and the second value is 120.

[0061] Optionally, as an example, the first mapping relationship corresponding to the built-in screen includes:

[0062] The PPI threshold range is greater than or equal to 290, and the corresponding zoom factor is 2.5;

[0063] The PPI threshold range is less than 290 and greater than or equal to 230, and the corresponding zoom factor is 2;

[0064] The PPI threshold range is less than 230 and greater than or equal to 200, and the corresponding zoom factor is 1.666;

[0065] The PPI threshold range is less than 200 and greater than or equal to 170, and the corresponding zoom factor is 1.5;

[0066] The PPI threshold range is less than 170 and greater than or equal to 140, and the corresponding zoom factor is 1.25;

[0067] The PPI threshold range is less than 140 and greater than or equal to 0, and the corresponding zoom factor is 1.

[0068] That is, Table 1 is a schematic table of the first mapping relationship corresponding to the built-in screen provided in the embodiment of the present disclosure, as shown in Table 1:

[0069] Table 1:

[0070] PPI Threshold Range Zoom factor Greater than or equal to 290 2.5 Less than 290 and greater than or equal to 230 2 Less than 230 and greater than or equal to 200 1.666 Less than 200 and greater than or equal to 170 1.5 Less than 170 and greater than or equal to 140 1.25 Less than 140 and greater than or equal to 0 1

[0071] Generally speaking, the scaling factor should meet the condition: scale = x / 8, where scale is the scaling factor and x is any natural number. The above scaling factor basically meets this condition (the same applies to the second mapping relationship diagram below). When the scaling factor is 1.666, in order to ensure that the subsequently calculated logical resolution is one of the existing common logical resolutions (that is, to ensure that the horizontal and vertical logical resolutions are integers after scaling as much as possible), the corresponding scaling factor is set to 1.666 when the PPI threshold range is less than 230 and greater than or equal to 200.

[0072] Optionally, the second mapping relationship corresponding to the external screen includes:

[0073] The PPI threshold range is greater than or equal to 175, and the corresponding zoom factor is 2;

[0074] The PPI threshold range is less than 175 and greater than or equal to 150, and the corresponding zoom factor is 1.875;

[0075] The PPI threshold range is less than 150 and greater than or equal to 125, and the corresponding zoom factor is 1.5;

[0076] The PPI threshold range is less than 125 and greater than or equal to 100, and the corresponding zoom factor is 1.25;

[0077] The PPI threshold range is less than 100 and greater than or equal to 0, and the corresponding zoom factor is 1.

[0078] That is, Table 2 is a schematic table of the second mapping relationship corresponding to the built-in screen provided in the embodiment of the present disclosure, as shown in Table 2:

[0079] Table 2:

[0080]

[0081]

[0082] It should also be understood that since the screen can be a built-in screen and / or an external screen, in actual application, the adjustment of the screen resolution may involve one or more built-in screens, one or more external screens, and one or more built-in screens and one or more external screens.

[0083] Step 23: Adjust the logical resolution of the screen according to the physical resolution of the screen and the target zoom factor.

[0084] In this step, the physical resolution is the original resolution of the screen when it leaves the factory. After the target scaling factor is determined in the above step, the physical resolution is scaled based on the target scaling factor to adjust the logical resolution of the screen.

[0085] Optionally, step 23 may be implemented by the following steps:

[0086] Step 1: Adjust the ratio of the physical resolution width to the target zoom factor to the logical resolution width;

[0087] Step 2: Adjust the ratio of the physical resolution height to the target zoom factor to the logical resolution height.

[0088] As an example, Table 3 is a schematic diagram of a scaling example of a built-in screen provided in an embodiment of the present disclosure (also showing that the DPI is closer to the second value, such as 120, taking the size of 14' as an example), as shown in Table 3:

[0089] Table 3:

[0090] Physical resolution PPI Zoom factor Logical resolution DPI 1920,1080 157.35 1.25 1536,864 125.88 2160,1440 185 1.5 1440,960 123.62 2560,1440 209.8 1.666 1536,864 125.88 3840,2160 314.7 2.5 1536,864 125.88

[0091] For example, if the width of the physical resolution is 1920, then the width of the logical resolution is 1920 / 1.25=1536, and if the height of the physical resolution is 1080, then the height of the logical resolution is 1080 / 1.25=864; the principles of other examples are similar.

[0092] As an example, Table 4 is a schematic diagram of an example of scaling of an external screen provided in an embodiment of the present disclosure (also showing that the DPI is closer to the first value, such as 90), as shown in Table 4:

[0093] Table 4:

[0094]

[0095]

[0096] For example, if the width of the physical resolution is 1920, then the width of the logical resolution is 1920 / 1=1920, and if the height of the physical resolution is 1080, then the height of the logical resolution is 1080 / 1=1080; the principles of other examples are similar.

[0097] It should be understood that the calculation process of PPI in Table 3 and Table 4 is given by the following embodiment.

[0098] Optionally, the specific implementation module for adjusting the logical resolution of the screen to complete the scaling of the screen may be: a computer bottom-layer Graphic module.

[0099] The screen resolution adjustment method provided by the embodiment of the present disclosure is applied to electronic devices. The method determines the target PPI in the screen of the electronic device, determines the target zoom factor of the screen according to the target PPI and a preset mapping relationship, and the mapping relationship is used to indicate the zoom factors corresponding to multiple PPI threshold ranges, and adjusts the logical resolution of the screen according to the physical resolution of the screen and the target zoom factor. In this technical solution, after determining the target PPI, the appropriate zoom factor is automatically matched in the zoom factors corresponding to the pre-configured PPI threshold ranges, so as to achieve the purpose of automatically setting the appropriate physical resolution for the user, thereby improving the user experience and avoiding the cumbersome steps of manual operation.

[0100] Based on the above embodiments, Figure 3 A flowchart of a method for adjusting screen resolution provided in an embodiment of the present disclosure Figure 2 ,like Figure 3 As shown, the above step 21 may include the following steps:

[0101] Step 31, obtaining the physical resolution of the screen and the diagonal size of the screen;

[0102] In this step, the physical resolution of the screen and the diagonal size of the screen can be obtained from the device information.

[0103] For example, the physical resolution of some screens and the diagonal size of the screen can be obtained.

[0104] As an example, Table 5 is a schematic table of physical resolution and size examples of the built-in screen provided in an embodiment of the present disclosure, as shown in Table 5:

[0105] Table 5:

[0106]

[0107]

[0108] As an example, Table 6 is a schematic table of physical resolution and size examples of an external screen provided in an embodiment of the present disclosure, as shown in Table 6 (same as Table 4):

[0109] Table 6:

[0110] size Physical resolution 24' 1920,1080 27' 1920,1080 27'2K 2560,1440 27'4K 3840,2160

[0111] Step 32: Determine the target PPI based on the physical resolution and the diagonal size.

[0112] In this step, after the physical resolution and diagonal size are determined as described above, the target PPI of the corresponding screen is determined.

[0113] Optionally, PPI is calculated as:

[0114]

[0115] Among them, A is the width of the physical resolution, B is the height of the physical resolution, and E is the diagonal size of the screen.

[0116] For example, if the physical resolution width is 1920, the physical resolution height is 1080, and the size is 14', the target PPI can be calculated by the above PPI formula to be 157.35; if the physical resolution width is 1920, the physical resolution height is 1080, and the size is 24', the target PPI can be calculated by the above PPI formula to be 91.79; other examples are similar and are not listed here.

[0117] The screen resolution adjustment method provided by the embodiment of the present disclosure obtains the physical resolution of the screen and the diagonal size of the screen, and then determines the target PPI according to the physical resolution and the diagonal size. This technical solution realizes the determination of the PPI of the current screen.

[0118] The following are embodiments of the device disclosed herein, which can be used to execute the method embodiments disclosed herein. For details not disclosed in the device embodiments disclosed herein, please refer to the method embodiments disclosed herein.

[0119] Figure 4 This is a schematic diagram of the structure of a device for adjusting screen resolution provided by an embodiment of the present disclosure. Figure 4 As shown, the adjustment device includes:

[0120] A first determination module 41 is used to determine a target number of pixels per inch (PPI) of the screen of the electronic device;

[0121] A second determination module 42 is used to determine a target zoom factor of the screen according to the target PPI and a preset mapping relationship, where the mapping relationship is used to indicate zoom factors corresponding to a plurality of PPI threshold ranges;

[0122] The adjustment module 43 is used to adjust the logical resolution of the screen according to the physical resolution of the screen and the target zoom factor.

[0123] In a possible design of the embodiment of the present disclosure, the screen includes a built-in screen and / or an external screen;

[0124] Correspondingly, the mapping relationship includes: a first mapping relationship of the built-in screen and / or a second mapping relationship of the external screen, the first mapping relationship is the scaling factors corresponding to the multiple PPI threshold ranges respectively determined when the dots per inch DPI corresponding to the logical resolution of the built-in screen is closer to the second value than the first value, and the second mapping relationship is the scaling factors corresponding to the multiple PPI threshold ranges respectively determined when the DPI corresponding to the logical resolution of the external screen is closer to the first value than the second value;

[0125] The first value is smaller than the second value.

[0126] In another possible design of the embodiment of the present disclosure, the first mapping relationship corresponding to the built-in screen includes:

[0127] The PPI threshold range is greater than or equal to 290, and the corresponding zoom factor is 2.5;

[0128] The PPI threshold range is less than 290 and greater than or equal to 230, and the corresponding zoom factor is 2;

[0129] The PPI threshold range is less than 230 and greater than or equal to 200, and the corresponding zoom factor is 1.666;

[0130] The PPI threshold range is less than 200 and greater than or equal to 170, and the corresponding zoom factor is 1.5;

[0131] The PPI threshold range is less than 170 and greater than or equal to 140, and the corresponding zoom factor is 1.25;

[0132] The PPI threshold range is less than 140 and greater than or equal to 0, and the corresponding zoom factor is 1.

[0133] In another possible design of the embodiment of the present disclosure, the second mapping relationship corresponding to the external screen includes:

[0134] The PPI threshold range is greater than or equal to 175, and the corresponding zoom factor is 2;

[0135] The PPI threshold range is less than 175 and greater than or equal to 150, and the corresponding zoom factor is 1.875;

[0136] The PPI threshold range is less than 150 and greater than or equal to 125, and the corresponding zoom factor is 1.5;

[0137] The PPI threshold range is less than 125 and greater than or equal to 100, and the corresponding zoom factor is 1.25;

[0138] The PPI threshold range is less than 100 and greater than or equal to 0, and the corresponding zoom factor is 1.

[0139] In another possible design of the embodiment of the present disclosure, the first determination module 41 determines the target PPI on the screen of the electronic device, specifically for:

[0140] Get the physical resolution of the screen and the diagonal size of the screen;

[0141] Determine the target PPI based on the physical resolution and diagonal size.

[0142] In another possible design of the embodiment of the present disclosure, the adjustment module 43 adjusts the logical resolution of the screen according to the physical resolution of the screen and the target zoom factor, specifically for:

[0143] Adjust the ratio of the physical resolution width to the target zoom factor to the logical resolution width;

[0144] Adjust the ratio of the height of the physical resolution to the target zoom factor to the height of the logical resolution.

[0145] In another possible design of the embodiment of the present disclosure, the first value is 90 and the second value is 120.

[0146] The screen resolution adjustment device provided in the embodiments of the present disclosure may be used to execute the screen resolution adjustment method involved in any of the above embodiments, and its implementation principle and technical effects are similar and will not be described in detail herein.

[0147] It should be noted that it should be understood that the division of the various modules of the above devices is only a division of logical functions. In actual implementation, they can be fully or partially integrated into one physical entity, or they can be physically separated. And these modules can all be implemented in the form of software calling through processing elements; they can also be all implemented in the form of hardware; some modules can also be implemented in the form of software calling through processing elements, and some modules can be implemented in the form of hardware. In addition, all or part of these modules can be integrated together or implemented independently. The processing element described here can be an integrated circuit with signal processing capabilities. In the implementation process, each step of the above method or each module above can be completed by an integrated logic circuit of hardware in the processor element or instructions in the form of software.

[0148] Figure 5 A schematic diagram of the structure of an electronic device provided in an embodiment of the present disclosure, such as Figure 5, which shows a schematic diagram of the structure of an electronic device suitable for implementing the embodiments of the present disclosure, and the electronic device may be a terminal device or a server. The terminal device may include but is not limited to mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, personal digital assistants (PDAs), tablet computers (Portable Android Devices, PADs), portable multimedia players (PMPs), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc.

[0149] Figure 5 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.

[0150] like Figure 5 As shown, the electronic device may include a processing device (e.g., a central processing unit, a graphics processor, etc.) 51 (which may be the above-mentioned processing unit 12), which may perform various appropriate actions and processes (which may be the above-mentioned storage unit 14) according to a program stored in a read-only memory (ROM) 52 or a program loaded from a storage device 58 to a random access memory (RAM) 53. Various programs and data required for the operation of the electronic device are also stored in the RAM 53. The processing device 51, the ROM 52, and the RAM 53 are connected to each other via a bus 54. An input / output (I / O) interface 55 is also connected to the bus 54.

[0151] Typically, the following devices may be connected to the I / O interface 55: input devices 56 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; output devices 57 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; storage devices 58 including, for example, a magnetic tape, a hard disk, etc.; and communication devices 59. The communication device 59 may allow the electronic device to communicate with other devices wirelessly or by wire to exchange data. Although Figure 5 An electronic device having various devices is shown, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead.

[0152] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program contains program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication device 59, or installed from the storage device 58, or installed from the ROM 52. When the computer program is executed by the processing device 51, the above-mentioned functions defined in the method of the embodiment of the present disclosure are executed.

[0153] It should be noted that the computer-readable medium disclosed above may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, device or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.

[0154] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.

[0155] The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device executes the method shown in the above embodiment.

[0156] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as an independent software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0157] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0158] The units involved in the embodiments described in the present disclosure may be implemented by software or hardware. The name of a unit does not limit the unit itself in some cases. For example, the first acquisition unit may also be described as a "unit for acquiring at least two Internet Protocol addresses".

[0159] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.

[0160] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0161] The electronic device provided in the embodiments of the present disclosure may be used to execute the method for adjusting the screen resolution provided in any of the above method embodiments, and its implementation principle and technical effects are similar and will not be described in detail herein.

[0162] An embodiment of the present disclosure provides a computer-readable storage medium, in which computer instructions are stored. When the computer instructions are executed on a computer, the computer executes the above-mentioned method for adjusting the screen resolution.

[0163] The computer-readable storage medium mentioned above can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory, electrically erasable programmable read-only memory, erasable programmable read-only memory, programmable read-only memory, read-only memory, magnetic memory, flash memory, magnetic disk or optical disk. The readable storage medium can be any available medium that can be accessed by a general or special-purpose computer.

[0164] Optionally, a readable storage medium is coupled to a processor so that the processor can read information from the readable storage medium and write information to the readable storage medium. Of course, the readable storage medium can also be a component of the processor. The processor and the readable storage medium can be located in an application specific integrated circuit (ASIC). Of course, the processor and the readable storage medium can also exist in the device as discrete components.

[0165] The embodiments of the present disclosure also provide a computer program product, which includes a computer program. The computer program is stored in a computer-readable storage medium. At least one processor can read the computer program from the computer-readable storage medium. When the at least one processor executes the computer program, the above-mentioned method for adjusting the screen resolution can be implemented.

[0166] also:

[0167] In a first aspect, an embodiment of the present disclosure provides a method for adjusting screen resolution, which is applied to an electronic device, and the method includes:

[0168] Determine a target number of pixels per inch (PPI) of a screen of the electronic device;

[0169] Determining a target zoom factor of the screen according to the target PPI and a preset mapping relationship, wherein the mapping relationship is used to indicate zoom factors corresponding to a plurality of PPI threshold ranges;

[0170] The logical resolution of the screen is adjusted according to the physical resolution of the screen and the target zoom factor.

[0171] In a possible design of the first aspect, the screen includes a built-in screen and / or an external screen;

[0172] Correspondingly, the mapping relationship includes: a first mapping relationship of the built-in screen and / or a second mapping relationship of the external screen, the first mapping relationship is the scaling factors corresponding to multiple PPI threshold ranges respectively determined when the dots per inch DPI corresponding to the logical resolution of the built-in screen is closer to the second value than the first value, and the second mapping relationship is the scaling factors corresponding to multiple PPI threshold ranges respectively determined when the DPI corresponding to the logical resolution of the external screen is closer to the first value than the second value;

[0173] The first value is smaller than the second value.

[0174] In another possible design of the first aspect, the first mapping relationship corresponding to the built-in screen includes:

[0175] The PPI threshold range is greater than or equal to 290, and the corresponding zoom factor is 2.5;

[0176] The PPI threshold range is less than 290 and greater than or equal to 230, and the corresponding zoom factor is 2;

[0177] The PPI threshold range is less than 230 and greater than or equal to 200, and the corresponding zoom factor is 1.666;

[0178] The PPI threshold range is less than 200 and greater than or equal to 170, and the corresponding zoom factor is 1.5;

[0179] The PPI threshold range is less than 170 and greater than or equal to 140, and the corresponding zoom factor is 1.25;

[0180] The PPI threshold range is less than 140 and greater than or equal to 0, and the corresponding zoom factor is 1.

[0181] In another possible design of the first aspect, the second mapping relationship corresponding to the external screen includes:

[0182] The PPI threshold range is greater than or equal to 175, and the corresponding zoom factor is 2;

[0183] The PPI threshold range is less than 175 and greater than or equal to 150, and the corresponding zoom factor is 1.875;

[0184] The PPI threshold range is less than 150 and greater than or equal to 125, and the corresponding zoom factor is 1.5;

[0185] The PPI threshold range is less than 125 and greater than or equal to 100, and the corresponding zoom factor is 1.25;

[0186] The PPI threshold range is less than 100 and greater than or equal to 0, and the corresponding zoom factor is 1.

[0187] In yet another possible design of the first aspect, determining a target PPI on a screen of the electronic device includes:

[0188] Acquire the physical resolution of the screen and the diagonal size of the screen;

[0189] The target PPI is determined according to the physical resolution and the diagonal size.

[0190] In yet another possible design of the first aspect, adjusting the logical resolution of the screen according to the physical resolution of the screen and the target zoom factor includes:

[0191] Adjusting the ratio of the width of the physical resolution to the target zoom factor to the width of the logical resolution;

[0192] The ratio of the height of the physical resolution to the target zoom factor is adjusted to the height of the logical resolution.

[0193] In another possible design of the first aspect, the first value is 90 and the second value is 120.

[0194] In a second aspect, an embodiment of the present disclosure provides a device for adjusting screen resolution, which is applied to an electronic device, and the device includes:

[0195] A first determination module is used to determine a target number of pixels per inch (PPI) on the screen of the electronic device;

[0196] A second determination module is used to determine a target zoom factor of the screen according to the target PPI and a preset mapping relationship, wherein the mapping relationship is used to indicate zoom factors corresponding to a plurality of PPI threshold ranges;

[0197] The adjustment module is used to adjust the logical resolution of the screen according to the physical resolution of the screen and the target zoom factor.

[0198] In a possible design of the second aspect, the screen includes a built-in screen and / or an external screen;

[0199] Correspondingly, the mapping relationship includes: a first mapping relationship of the built-in screen and / or a second mapping relationship of the external screen, the first mapping relationship is the scaling factors corresponding to multiple PPI threshold ranges respectively determined when the dots per inch DPI corresponding to the logical resolution of the built-in screen is closer to the second value than the first value, and the second mapping relationship is the scaling factors corresponding to multiple PPI threshold ranges respectively determined when the DPI corresponding to the logical resolution of the external screen is closer to the first value than the second value;

[0200] The first value is smaller than the second value.

[0201] In another possible design of the second aspect, the first mapping relationship corresponding to the built-in screen includes:

[0202] The PPI threshold range is greater than or equal to 290, and the corresponding zoom factor is 2.5;

[0203] The PPI threshold range is less than 290 and greater than or equal to 230, and the corresponding zoom factor is 2;

[0204] The PPI threshold range is less than 230 and greater than or equal to 200, and the corresponding zoom factor is 1.666;

[0205] The PPI threshold range is less than 200 and greater than or equal to 170, and the corresponding zoom factor is 1.5;

[0206] The PPI threshold range is less than 170 and greater than or equal to 140, and the corresponding zoom factor is 1.25;

[0207] The PPI threshold range is less than 140 and greater than or equal to 0, and the corresponding zoom factor is 1.

[0208] In another possible design of the second aspect, the second mapping relationship corresponding to the external screen includes:

[0209] The PPI threshold range is greater than or equal to 175, and the corresponding zoom factor is 2;

[0210] The PPI threshold range is less than 175 and greater than or equal to 150, and the corresponding zoom factor is 1.875;

[0211] The PPI threshold range is less than 150 and greater than or equal to 125, and the corresponding zoom factor is 1.5;

[0212] The PPI threshold range is less than 125 and greater than or equal to 100, and the corresponding zoom factor is 1.25;

[0213] The PPI threshold range is less than 100 and greater than or equal to 0, and the corresponding zoom factor is 1.

[0214] In yet another possible design of the second aspect, the first determining module determines a target PPI on a screen of the electronic device, specifically for:

[0215] Acquire the physical resolution of the screen and the diagonal size of the screen;

[0216] The target PPI is determined according to the physical resolution and the diagonal size.

[0217] In yet another possible design of the second aspect, the adjustment module adjusts the logical resolution of the screen according to the physical resolution of the screen and the target zoom factor, specifically for:

[0218] Adjusting the ratio of the width of the physical resolution to the target zoom factor to the width of the logical resolution;

[0219] The ratio of the height of the physical resolution to the target zoom factor is adjusted to the height of the logical resolution.

[0220] In another possible design of the second aspect, the first value is 90 and the second value is 120.

[0221] In a third aspect, an embodiment of the present disclosure provides an electronic device, comprising: a processor, and a memory and a transceiver communicatively connected to the processor;

[0222] The memory stores computer-executable instructions; the transceiver is used to send and receive data;

[0223] The processor executes the computer-executable instructions stored in the memory to implement the method for adjusting the screen resolution as described in the first aspect and various possible designs above.

[0224] In a fourth aspect, an embodiment of the present disclosure provides a computer-readable storage medium, in which computer execution instructions are stored. When the computer execution instructions are executed by a processor, they are used to implement the method for adjusting the screen resolution described in the first aspect and various possible designs.

[0225] In a fifth aspect, an embodiment of the present disclosure provides a computer program product, including a computer program, which, when executed by a processor, implements the method for adjusting the screen resolution as described in the first aspect and various possible designs above.

[0226] The above description is only a preferred embodiment of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of disclosure involved in the present disclosure is not limited to the technical solutions formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosed concept. For example, the above features are replaced with the technical features with similar functions disclosed in the present disclosure (but not limited to) by each other to form a technical solution.

[0227] In addition, although each operation is described in a specific order, this should not be understood as requiring these operations to be performed in the specific order shown or in a sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details are included in the above discussion, these should not be interpreted as limiting the scope of the present disclosure. Some features described in the context of a separate embodiment can also be implemented in a single embodiment in combination. On the contrary, the various features described in the context of a single embodiment can also be implemented in multiple embodiments individually or in any suitable sub-combination mode.

[0228] Although the subject matter has been described in language specific to structural features and / or methodological logical actions, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. On the contrary, the specific features and actions described above are merely example forms of implementing the claims.

Claims

1. A method for adjusting screen resolution, characterized in that: Applied to electronic equipment, the method comprises: Determine a target number of pixels per inch (PPI) of a screen of the electronic device; Determining a target zoom factor of the screen according to the target PPI and a preset mapping relationship, wherein the mapping relationship is used to indicate zoom factors corresponding to a plurality of PPI threshold ranges; The logical resolution of the screen is adjusted according to the physical resolution of the screen and the target zoom factor.

2. The method according to claim 1, characterized in that The screen includes a built-in screen and / or an external screen; Correspondingly, the mapping relationship includes: a first mapping relationship of the built-in screen and / or a second mapping relationship of the external screen, the first mapping relationship is the scaling factors corresponding to multiple PPI threshold ranges respectively determined when the dots per inch DPI corresponding to the logical resolution of the built-in screen is closer to the second value than the first value, and the second mapping relationship is the scaling factors corresponding to multiple PPI threshold ranges respectively determined when the DPI corresponding to the logical resolution of the external screen is closer to the first value than the second value; The first value is smaller than the second value.

3. The method according to claim 2, characterized in that The first mapping relationship corresponding to the built-in screen includes: The PPI threshold range is greater than or equal to 290, and the corresponding zoom factor is 2.5; The PPI threshold range is less than 290 and greater than or equal to 230, and the corresponding zoom factor is 2; The PPI threshold range is less than 230 and greater than or equal to 200, and the corresponding zoom factor is 1.666; The PPI threshold range is less than 200 and greater than or equal to 170, and the corresponding zoom factor is 1.5; The PPI threshold range is less than 170 and greater than or equal to 140, and the corresponding zoom factor is 1.25; The PPI threshold range is less than 140 and greater than or equal to 0, and the corresponding zoom factor is 1.

4. The method according to claim 2, characterized in that: The second mapping relationship corresponding to the external screen includes: The PPI threshold range is greater than or equal to 175, and the corresponding zoom factor is 2; The PPI threshold range is less than 175 and greater than or equal to 150, and the corresponding zoom factor is 1.875; The PPI threshold range is less than 150 and greater than or equal to 125, and the corresponding zoom factor is 1.5; The PPI threshold range is less than 125 and greater than or equal to 100, and the corresponding zoom factor is 1.25; The PPI threshold range is less than 100 and greater than or equal to 0, and the corresponding zoom factor is 1.

5. The method according to any one of claims 1 to 4, characterized in that: The determining a target PPI on a screen of the electronic device includes: Acquire the physical resolution of the screen and the diagonal size of the screen; The target PPI is determined according to the physical resolution and the diagonal size.

6. The method according to any one of claims 1 to 4, characterized in that: The adjusting the logical resolution of the screen according to the physical resolution of the screen and the target zoom factor includes: Adjusting the ratio of the width of the physical resolution to the target zoom factor to the width of the logical resolution; The ratio of the height of the physical resolution to the target zoom factor is adjusted to the height of the logical resolution.

7. The method according to any one of claims 2 to 4, characterized in that: The first value is 90, and the second value is 120.

8. A device for adjusting screen resolution, characterized in that: Applied to electronic equipment, the adjustment device comprises: A first determination module is used to determine a target number of pixels per inch (PPI) on the screen of the electronic device; A second determination module is used to determine a target zoom factor of the screen according to the target PPI and a preset mapping relationship, wherein the mapping relationship is used to indicate zoom factors corresponding to a plurality of PPI threshold ranges; The adjustment module is used to adjust the logical resolution of the screen according to the physical resolution of the screen and the target zoom factor.

9. An electronic device, characterized in that: include: A processor, and a memory communicatively connected to the processor; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory to implement the method according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, which are used to implement the method according to any one of claims 1 to 7 when executed by a processor.

11. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.

Citation Information

Patent Citations

  • Method and device for graphics interchange format (GIF) recording

    CN105138694A

  • Page display method and apparatus

    CN108733336A

  • Application picture display method and device, storage medium and electronic device

    CN111258704A

  • Computer system and display control method thereof

    CN113253958A

  • Electronic device and method of displaying content thereon

    CN113597595A