A method, device, equipment and storage medium for zooming and displaying a user interface

By obtaining the magnification and functional relationship of the optical sight, the target scaling coefficient is determined, which solves the problems of incomplete user interface display and unavailable functions in gun mobile games, and realizes flexible function modifications under any magnification, improving the user experience.

CN113975823BActive Publication Date: 2025-08-05YANTAI RAYTRON TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202111308003.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-11-05
Publication Date
2025-08-05
Estimated Expiration
2041-11-05

AI Technical Summary

Technical Problem

In gun mobile games, when infrared gun sighting products are used in combination with white light sighting, under different magnifications of white light sighting, the user interface display is incomplete, the functions cannot be switched, and the parameters cannot be read, which affects the user experience.

Method used

By obtaining the magnification of the optical sight, using the functional relationship between the pre-constructed magnification and the scaling coefficient, the target scaling coefficient is determined, the user interface panel in the screen is scaled, and displayed on the screen.

Benefits of technology

It solves the problems of incomplete display of the user interface panel, inability to switch functions, and inability to read parameters, and improves the user experience at any magnification.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113975823B_ABST
    Figure CN113975823B_ABST
Patent Text Reader

Abstract

This application discloses a user interface zoom display method, apparatus, device, and storage medium. The method includes: obtaining the magnification of an optical sight connected to a gun sight product currently in use on the screen; determining a target zoom factor corresponding to the magnification based on a pre-established functional relationship between the optical sight magnification and the zoom factor; and scaling each user interface panel on the screen using the target zoom factor when the gun sight product is using the optical sight, and displaying the scaled user interface panel on the screen. This method can address issues such as incomplete user interface panel display, inability to switch functions, and inability to read current parameters when the gun sight product is connected to an external optical sight.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of interface design, and in particular to a user interface zooming display method, device, equipment and storage medium. Background Art

[0002] Currently, when using infrared rifle scopes in combination with white-light scopes in mobile games, the image seen through the white-light scope at different magnifications is not complete, but rather a magnified partial image. This can cause the user interface (UI) displayed within the rifle scope image, such as battery level, brightness, and contrast, to be incompletely displayed. When opening menus for operations, the menus may also be obscured, potentially severely impacting the user experience. Summary of the Invention

[0003] In view of this, the present invention aims to provide a user interface zoom display method, device, equipment, and medium that can solve the problems of incomplete user interface display, inability to switch functions, and inability to read current parameters when a gun sight product is connected to an external optical sight. The specific solution is as follows:

[0004] In a first aspect, the present application discloses a user interface zoom display method, comprising:

[0005] Get the magnification of the external optical sight of the gun sight product currently in use on the screen;

[0006] Determining a target zoom factor corresponding to the magnification of the optical sight according to a pre-established functional relationship between the magnification and the zoom factor;

[0007] When the gun sight product uses the optical sight, each user interface panel on the screen is scaled using the target scaling factor, and the scaled user interface panels are displayed on the screen.

[0008] Optionally, scaling each user interface panel on the screen using the target scaling factor and displaying the scaled user interface panel on the screen includes:

[0009] Determining a target size of each user interface panel on the screen after scaling according to the target scaling factor and the original size of the user interface panel before scaling;

[0010] The user interface panel is displayed on the screen according to the target size.

[0011] Optionally, displaying the user interface panel on the screen according to the target size includes:

[0012] Obtaining a target vertex coordinate of the user interface panel before scaling;

[0013] The user interface panel is displayed on the screen according to the target vertex coordinates and the target size.

[0014] Optionally, scaling each user interface panel on the screen using the target scaling factor and displaying the scaled user interface panel on the screen includes:

[0015] Obtaining the coordinates of each vertex of the user interface panel before scaling;

[0016] Calculating the scaled vertex coordinates of the user interface panel through linear transformation according to the target scaling coefficient to obtain scaled vertex coordinates;

[0017] Each user interface panel on the screen is scaled according to the scaled vertex coordinates and then displayed on the screen.

[0018] Optionally, the user interface panel includes a main menu, a shortcut menu, and a permanent display icon.

[0019] Optionally, before determining the target zoom factor corresponding to the magnification according to the pre-established functional relationship between the magnification and the zoom factor of the optical sight, the method further includes:

[0020] Obtaining the display resolution of the gun sight product and determining the corresponding regional display resolution when the screen of the optical sight is clear at different magnifications;

[0021] According to the ratio of the display resolution of the area to the display resolution at different magnifications, the zoom coefficient corresponding to the optical sight at each magnification is obtained, so as to construct a functional relationship between the magnification of the optical sight and the zoom coefficient.

[0022] Optionally, constructing a functional relationship between the magnification of the optical sight and the scaling factor includes:

[0023] According to the clarity of each user interface panel at the regional display resolution, adjusting the zoom factor to obtain a zoom factor corresponding to each user interface panel at each magnification;

[0024] According to the zoom factor corresponding to each user interface panel at each magnification, a functional relationship between the optical sight magnification and the zoom factor corresponding to each user interface panel is obtained;

[0025] Accordingly, determining the target zoom factor corresponding to the magnification according to the pre-established functional relationship between the magnification and the zoom factor of the optical sight includes:

[0026] According to the pre-constructed functional relationship between the optical sight magnification and the zoom factor corresponding to each user interface panel, the target zoom factor of each user interface panel at the magnification is determined.

[0027] In a second aspect, the present application discloses a user interface zoom display device, comprising:

[0028] A magnification acquisition module is used to obtain the magnification of the optical sight connected to the gun sight product currently in use on the screen;

[0029] a target zoom factor determination module, configured to determine a target zoom factor corresponding to a magnification of the optical sight according to a pre-established functional relationship between the magnification and the zoom factor;

[0030] The user interface panel display module is used to scale each user interface panel on the screen using the target scaling factor when the gun sight product uses the optical sight, and to display the scaled user interface panel on the screen.

[0031] In a third aspect, the present application discloses an electronic device, comprising:

[0032] Memory, used to store computer programs;

[0033] The processor is configured to execute the computer program to implement the aforementioned user interface zooming and displaying method.

[0034] In a fourth aspect, the present application discloses a computer-readable storage medium for storing a computer program; wherein the computer program implements the aforementioned user interface zooming display method when executed by a processor.

[0035] In this application, the magnification of the optical sight connected to the gun sight product currently in use on the screen is obtained; a target zoom factor corresponding to the magnification is determined based on a pre-established functional relationship between the magnification of the optical sight and the zoom factor; and when the gun sight product is used with the optical sight, each user interface panel on the screen is scaled using the target zoom factor, and the scaled user interface panels are displayed on the screen. Thus, based on the magnification of the optical sight, a target zoom factor corresponding to the magnification is determined, and then each user interface panel on the screen is scaled using the target zoom factor, and then the scaled user interface panels are displayed on the screen. This eliminates the issue of user interface panels being obscured at different magnifications of the optical sight when the gun sight product is connected. This solves the issues of incomplete user interface panel display, inability to switch functions, and inability to read current parameters when the gun sight product is connected to the optical sight. Users can flexibly modify relevant functional parameters of the gun sight product at any magnification, improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are merely embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying any creative work.

[0037] Figure 1 A flowchart of a user interface zoom display method provided by this application;

[0038] Figure 2 A schematic diagram of the structure of a user interface zoom display device provided in this application;

[0039] Figure 3 This is a structural diagram of an electronic device provided in this application. DETAILED DESCRIPTION

[0040] To make the objectives, technical solutions, and advantages of the embodiments of the present invention more clear, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts shall fall within the scope of protection of the present invention.

[0041] In the prior art, when infrared rifle scopes are used in combination with white-light scopes in mobile gun games, the image viewed through the white-light scope at different magnifications is not complete, but rather a magnified partial image. This can result in the user interface displayed in the rifle scope image, such as battery level, brightness, contrast, and other parameter data, not being fully displayed. When opening a menu for operation, the menu also cannot be fully displayed, and may be obscured, seriously affecting the user experience. To overcome the above technical problems, this application proposes a user interface zoom display method that can solve the problems of incomplete display of user interface panels, inability to switch functions, and inability to read current parameters when a rifle scope product is connected to an external optical sight.

[0042] The present application discloses a user interface zoom display method, see Figure 1 As shown, the method may include the following steps:

[0043] Step S11: Obtain the magnification of the optical sight connected to the gun sight product currently in use on the screen.

[0044] In this embodiment, the magnification of the optical sight connected to the gun sight product currently in use on the screen is obtained, that is, the magnification of the optical sight connected to the gun sight product currently used by the user in the game is obtained. The gun sight product may be an infrared gun sight product, and the optical sight may be a white light sight.

[0045] Step S12: According to a pre-established functional relationship between the magnification of the optical sight and the zoom factor, a target zoom factor corresponding to the magnification is determined.

[0046] In this embodiment, after the magnification of the optical sight is determined, the target zoom factor corresponding to the magnification is determined according to a pre-established functional relationship between the magnification of the optical sight and the zoom factor.

[0047] In this embodiment, before determining the target zoom factor corresponding to the magnification according to the pre-constructed functional relationship between the magnification of the optical sight and the zoom factor, the method may further include: obtaining the display resolution of the gun sight product and determining the regional display resolution corresponding to the clear screen of the optical sight at different magnifications; obtaining the zoom factor corresponding to the optical sight at each magnification according to the ratio of the regional display resolution to the display resolution at different magnifications, so as to construct the functional relationship between the magnification of the optical sight and the zoom factor. For example, if the display resolution of a gun sight is 960*768 and corresponds to a 1x white light sight, by drawing rectangular boxes of different sizes (960*0.9*768*0.9, 960*0.8*768*0.8, 960*0.7*768*0.7, 960*0.6*768*0.6, 960*0.5*768*0.5, 960*0.4*768*0.4, or even smaller), and observing the size of the complete rectangular box visible at different magnifications of the white light sight, the display resolution of the corresponding area that can be clearly seen at different magnifications can be determined. The ratio of the display resolution of the corresponding area to the display resolution at different magnifications is obtained, i.e., the values of 0.9, 0.8, etc., and this value is used as the zoom factor to obtain the zoom factor corresponding to the optical sight at each magnification. The display resolution of the corresponding area of the gun sight is the display resolution of the area image obtained by magnification when aiming. The functional relationship between the magnification of the optical sight and the zoom factor can be roughly approximated as: zoom factor = 1 - 0.1 * magnification. The linear relationship between the magnification of the optical sight and the regional display resolution is that the greater the magnification, the smaller the display resolution.

[0048] In this embodiment, constructing a functional relationship between the magnification of the optical sight and the zoom factor may include: adjusting the zoom factor according to the clarity of each user interface panel (i.e., UI) at the regional display resolution to obtain a zoom factor corresponding to each user interface panel at each magnification; obtaining a functional relationship between the magnification of the optical sight and the zoom factor corresponding to each user interface panel at each magnification according to the zoom factor corresponding to each user interface panel at each magnification; and correspondingly, determining a target zoom factor corresponding to the magnification according to the pre-constructed functional relationship between the magnification of the optical sight and the zoom factor may include: determining a target zoom factor for each user interface panel at the magnification according to the pre-constructed functional relationship between the magnification of the optical sight and the zoom factor corresponding to each user interface panel at the magnification. The aforementioned adjusting the zoom factor according to the clarity of each user interface panel at the regional display resolution to obtain a zoom factor corresponding to each user interface panel at each magnification may be performed by simultaneously enlarging or reducing the size of the user interface panel, observing the imaging effect, and performing fine-tuning to appropriately increase or decrease the magnification factor of the partially enlarged or reduced user interface panel, thereby making the user interface more aesthetically pleasing.

[0049] It is understandable that user interface panels include different panels such as the main menu, shortcut menu, always-on icons, and other functional modules. The purpose of scaling user interface panels is to ensure that the main menu, shortcut menu, and other panels are fully displayed on the screen when zoomed in, regardless of the magnification of the optical sight. This avoids the problem of the main menu, shortcut menu, and other panels being unable to function properly when the optical sight is used to zoom in on a local area of the screen. However, since always-on icons and other functional modules, such as image movement, do not need to be scaled as long as they can still be clearly seen without obstruction on the screen, corresponding scaling values are set for different types of user interface panels. Therefore, when each user interface panel on the screen is scaled using a target scaling factor, the corresponding user interface panel is scaled using a different target scaling factor, thereby achieving overall aesthetics.

[0050] Step S13: When the optical sight is used on the gun sight product, each user interface panel on the screen is scaled using the target scaling factor, and the scaled user interface panels are displayed on the screen.

[0051] In this embodiment, when the gun sight product uses an optical sight, i.e., when zooming in and aiming to obtain a regional image, each user interface panel on the screen is scaled using the target scaling factor, and the scaled user interface panel is displayed on the screen. In this embodiment, the user interface panels may include, but are not limited to, a main menu, shortcut menus, always-on icons, and other functional modules.

[0052] In this embodiment, scaling each user interface panel on the screen using the target scaling factor and displaying the scaled user interface panel on the screen may include: determining a target size of each user interface panel on the screen after scaling based on the target scaling factor and the original size of the user interface panel before scaling; and displaying the user interface panel on the screen according to the target size. Specifically, the original size of the user interface panel before scaling is multiplied by the target scaling factor to obtain the target size of the user interface panel after scaling; and then displaying the user interface panel on the screen according to the scaled target size.

[0053] In this embodiment, displaying the user interface panel on the screen at the target size may include: obtaining a target vertex coordinate of the user interface panel before scaling; and displaying the user interface panel on the screen according to the target vertex coordinate and the target size. The target vertex coordinate of the user interface panel before scaling is obtained, such as the coordinate of the upper left corner; then, based on the target scaling factor, the coordinate of the upper left corner after scaling is obtained; and finally, displaying the user interface panel at the determined target size at the coordinate of the upper left corner after scaling, thereby achieving scaling of the user interface panel.

[0054] In this embodiment, scaling each user interface panel on the screen using the target scaling factor and displaying the scaled user interface panel on the screen may include: obtaining the coordinates of each vertex of the user interface panel before scaling; calculating the coordinates of the vertex of the user interface panel after scaling based on the target scaling factor through a linear transformation to obtain the scaled vertex coordinates; and scaling each user interface panel on the screen based on the scaled vertex coordinates and displaying them on the screen. Specifically, in this embodiment, the coordinates of each vertex of the user interface panel before scaling (i.e., the top left, bottom left, top right, and bottom right positions) may be transformed through corresponding linear transformations to obtain the four vertex positions of the scaled user interface panel. The user interface panel in its original standard state (i.e., when not using an optical sight) may then be scaled and mapped to these four vertex positions. This approach eliminates the need to calculate the scaled size of the user interface panel.

[0055] Furthermore, when the optical sight is not used, i.e., after the optical sight is removed, the user interface panel size is switched back to the original size for display. Thus, through UI scaling, the current parameter settings of the gun sight can be clearly seen within the visual range of the optical sight. When parameters need to be modified, they can be flexibly rewritten, that is, the configuration parameters can be modified even in the aiming state.

[0056] As can be seen from the above, this embodiment obtains the magnification of the optical sight connected to the gun sight product currently in use on the screen; determines a target zoom factor corresponding to the magnification based on a pre-established functional relationship between the optical sight magnification and the zoom factor; and, when the gun sight product is using the optical sight, scales each user interface panel on the screen using the target zoom factor, and then displays the scaled user interface panel on the screen. Thus, based on the magnification of the optical sight, a target zoom factor corresponding to the magnification is determined, and then each user interface panel on the screen is scaled using the target zoom factor, and then the scaled user interface panel is displayed on the screen. This eliminates the issue of user interface panels being obscured at different magnifications of the optical sight when the gun sight product is connected. This solves the issues of incomplete display of user interface panels, inability to switch functions, and inability to read current parameters when the gun sight product is connected to the optical sight. Users can flexibly modify relevant functional parameters of the gun sight product at any magnification, improving the user experience.

[0057] Correspondingly, the embodiment of the present application also discloses a user interface zoom display device, see Figure 2 As shown, the device includes:

[0058] The magnification acquisition module 11 is used to obtain the magnification of the optical sight connected to the gun sight product currently used on the screen;

[0059] a target zoom factor determination module 12 for determining a target zoom factor corresponding to the magnification according to a pre-established functional relationship between the magnification of the optical sight and the zoom factor;

[0060] The user interface panel display module 13 is used to scale each user interface panel on the screen using the target scaling factor when the gun sight product uses the optical sight, and to display the scaled user interface panel on the screen.

[0061] As can be seen from the above, the magnification of the optical sight connected to the gun sight product currently in use on the screen is obtained; a target zoom factor corresponding to the magnification is determined based on a pre-established functional relationship between the optical sight magnification and the zoom factor; and when the gun sight product is used with the optical sight, each user interface panel on the screen is scaled using the target zoom factor, and the scaled user interface panels are displayed on the screen. Thus, based on the magnification of the optical sight, a target zoom factor corresponding to the magnification is determined, and then each user interface panel on the screen is scaled using the target zoom factor, and then the scaled user interface panels are displayed on the screen. This eliminates the issue of user interface panels being obscured at different magnifications of the optical sight when the gun sight product is connected. This solves the issues of incomplete user interface panel display, inability to switch functions, and inability to read current parameters when the gun sight product is connected to the optical sight. Users can flexibly modify relevant functional parameters of the gun sight product at any magnification, improving the user experience.

[0062] In some specific embodiments, the user interface panel display module 13 may specifically include:

[0063] a target size determining unit, configured to determine a target size of each user interface panel on the screen after scaling according to the target scaling factor and the original size of the user interface panel before scaling;

[0064] A display unit is used to display the user interface panel on the screen according to the target size.

[0065] In some specific embodiments, the display unit may include:

[0066] a target vertex coordinate determining unit, configured to obtain a target vertex coordinate of the user interface panel before scaling;

[0067] The display subunit is used to display the user interface panel on the screen according to the target vertex coordinates and the target size.

[0068] In some specific embodiments, the user interface panel display module 13 may specifically include:

[0069] a vertex coordinate determining unit, configured to obtain the coordinates of each vertex of the user interface panel before scaling;

[0070] a unit for determining the coordinates of the vertices after scaling, configured to calculate the coordinates of the vertices of the user interface panel after scaling by linear transformation according to the target scaling coefficient, to obtain the coordinates of the vertices after scaling;

[0071] A display unit is used to scale each user interface panel on the screen according to the scaled vertex coordinates and then display the scaled panel on the screen.

[0072] In some specific embodiments, the user interface panel includes a main menu, a shortcut menu, and a permanent display icon.

[0073] In some specific embodiments, the user interface zooming and displaying device may specifically include:

[0074] a regional display resolution determining unit, configured to obtain the display resolution of the gun sight product and determine the regional display resolution corresponding to a clear screen of the optical sight at different magnifications;

[0075] A functional relationship construction unit is used to obtain the zoom factor corresponding to the optical sight at each magnification according to the ratio of the regional display resolution to the display resolution at different magnifications, so as to construct a functional relationship between the magnification of the optical sight and the zoom factor.

[0076] In some specific embodiments, the functional relationship construction may specifically include:

[0077] a zoom factor determining unit, configured to adjust the zoom factor according to the clarity of each user interface panel at the regional display resolution to obtain a zoom factor corresponding to each user interface panel at each magnification;

[0078] a functional relationship construction subunit for obtaining a functional relationship between the optical sight magnification and the zoom factor corresponding to each user interface panel according to the zoom factor corresponding to each user interface panel at each magnification;

[0079] Accordingly, the target scaling factor determination module includes:

[0080] The target zoom factor determination subunit is used to determine the target zoom factor of each user interface panel at the magnification according to the pre-constructed functional relationship between the optical sight magnification and the zoom factor corresponding to each user interface panel.

[0081] Furthermore, the present application also discloses an electronic device, see Figure 3 The contents in the drawings should not be considered as any limitation on the scope of use of the present application.

[0082] Figure 3This is a schematic diagram of the structure of an electronic device 20 provided in an embodiment of the present application. The electronic device 20 may include: at least one processor 21, at least one memory 22, a power supply 23, a communication interface 24, an input / output interface 25, and a communication bus 26. The memory 22 is used to store a computer program, which is loaded and executed by the processor 21 to implement the relevant steps of the user interface zoom display method disclosed in any of the aforementioned embodiments.

[0083] In this embodiment, the power supply 23 is used to provide operating voltage for each hardware device on the electronic device 20; the communication interface 24 can create a data transmission channel between the electronic device 20 and the external device. The communication protocol it follows is any communication protocol that can be applied to the technical solution of this application and is not specifically limited here; the input and output interface 25 is used to obtain external input data or output data to the outside world. Its specific interface type can be selected according to specific application needs and is not specifically limited here.

[0084] In addition, the memory 22, as a carrier for resource storage, can be a read-only memory, random access memory, disk or CD, etc. The resources stored thereon include an operating system 221, a computer program 222 and data 223 including functional relationships, etc. The storage method can be temporary storage or permanent storage.

[0085] The operating system 221 is used to manage and control the hardware devices and computer program 222 on the electronic device 20, so as to enable the processor 21 to calculate and process the massive data 223 in the memory 22. The operating system 221 can be Windows Server, NetWare, Unix, Linux, etc. In addition to including computer programs capable of implementing the user interface zooming and display method disclosed in any of the aforementioned embodiments and executed by the electronic device 20, the computer program 222 can further include computer programs capable of performing other specific tasks.

[0086] Furthermore, an embodiment of the present application also discloses a computer storage medium, in which computer executable instructions are stored. When the computer executable instructions are loaded and executed by a processor, the steps of the user interface zooming display method disclosed in any of the aforementioned embodiments are implemented.

[0087] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on its differences from the other embodiments. Reference can be made to the descriptions of the identical or similar parts between the various embodiments. For the devices disclosed in the embodiments, since they correspond to the methods disclosed in the embodiments, the descriptions are relatively simple, and the relevant parts can be referred to the descriptions of the methods.

[0088] The steps of the methods or algorithms described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), internal memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.

[0089] Finally, it should be noted that, in this document, relational terms such as first and second, etc., are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Moreover, the terms "comprises," "comprising," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or elements inherent to such process, method, article, or device. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of additional identical elements in the process, method, article, or device comprising the element.

[0090] The above is a detailed introduction to the user interface zoom display method, device, equipment and medium provided by the present invention. Specific examples are used herein to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core ideas. At the same time, for those skilled in the art, according to the ideas of the present invention, there may be changes in the specific implementation methods and application scopes. In summary, the contents of this specification should not be understood as limiting the present invention.

Claims

1. A user interface zoom display method, characterized in that: include: Get the magnification of the external optical sight of the gun sight product currently in use on the screen; Determining a target zoom factor corresponding to the magnification of the optical sight according to a pre-established functional relationship between the magnification and the zoom factor; When the gun sight product uses the optical sight, each user interface panel on the screen is scaled using the target scaling factor, and the scaled user interface panel is displayed on the screen; Before determining the target zoom factor corresponding to the magnification according to the pre-established functional relationship between the magnification and the zoom factor of the optical sight, the method further includes: Obtaining the display resolution of the gun sight product and determining the corresponding regional display resolution when the screen of the optical sight is clear at different magnifications; Obtaining a zoom factor corresponding to each magnification of the optical sight according to a ratio of the display resolution of the region to the display resolution at different magnifications, so as to construct a functional relationship between the magnification of the optical sight and the zoom factor; The step of constructing a functional relationship between the magnification and the scaling factor of the optical sight includes: According to the clarity of each user interface panel at the regional display resolution, adjusting the zoom factor to obtain a zoom factor corresponding to each user interface panel at each magnification; According to the zoom factor corresponding to each user interface panel at each magnification, a functional relationship between the optical sight magnification and the zoom factor corresponding to each user interface panel is obtained; Accordingly, determining the target zoom factor corresponding to the magnification according to the pre-established functional relationship between the magnification and the zoom factor of the optical sight includes: According to the pre-constructed functional relationship between the optical sight magnification and the zoom factor corresponding to each user interface panel, the target zoom factor of each user interface panel at the magnification is determined.

2. The user interface zoom display method according to claim 1, characterized in that: The scaling each user interface panel on the screen using the target scaling factor and displaying the scaled user interface panel on the screen includes: Determining a target size of each user interface panel on the screen after scaling according to the target scaling factor and the original size of the user interface panel before scaling; The user interface panel is displayed on the screen according to the target size.

3. The user interface zoom display method according to claim 2, characterized in that: The displaying of the user interface panel on the screen according to the target size includes: Obtaining a target vertex coordinate of the user interface panel before scaling; The user interface panel is displayed on the screen according to the target vertex coordinates and the target size.

4. The user interface zoom display method according to claim 1, wherein: The scaling each user interface panel on the screen using the target scaling factor and displaying the scaled user interface panel on the screen includes: Obtaining the coordinates of each vertex of the user interface panel before scaling; Calculating the scaled vertex coordinates of the user interface panel through linear transformation according to the target scaling coefficient to obtain scaled vertex coordinates; Each user interface panel on the screen is scaled according to the scaled vertex coordinates and then displayed on the screen.

5. The user interface zoom display method according to claim 1, characterized in that: The user interface module includes a main menu, a shortcut menu, and a permanent display icon.

6. A user interface zoom display device, characterized in that: include: A magnification acquisition module is used to obtain the magnification of the optical sight connected to the gun sight product currently in use on the screen; a target zoom factor determination module, configured to determine a target zoom factor corresponding to a magnification of the optical sight according to a pre-established functional relationship between the magnification and the zoom factor; a user interface panel display module, configured to scale each user interface panel on the screen using the target scaling factor and display the scaled user interface panel on the screen when the gun sight product uses the optical sight; The user interface zoom display device is further configured to obtain the display resolution of the gun sight product and determine the regional display resolution corresponding to a clear screen of the optical sight at different magnifications, before determining the target zoom factor corresponding to the magnification according to a pre-established functional relationship between the magnification and zoom factor of the optical sight based on the pre-established functional relationship between the magnification and zoom factor of the optical sight; and to obtain the zoom factor corresponding to each magnification of the optical sight based on the ratio of the regional display resolution to the display resolution at different magnifications, thereby establishing a functional relationship between the magnification and zoom factor of the optical sight. The user interface zoom display device is further configured to adjust the zoom factor according to the clarity of each user interface panel at the regional display resolution to obtain a zoom factor corresponding to each user interface panel at each magnification; and obtain a functional relationship between the optical sight magnification and the zoom factor corresponding to each user interface panel based on the zoom factor corresponding to each user interface panel at each magnification. Correspondingly, the target zoom factor determination module is used to determine the target zoom factor of each user interface panel at the magnification according to the pre-constructed functional relationship between the optical sight magnification and the zoom factor corresponding to each user interface panel.

7. An electronic device, characterized in that: include: Memory, used to store computer programs; A processor is configured to execute the computer program to implement the user interface zooming and displaying method according to any one of claims 1 to 5.

8. A computer-readable storage medium, characterized in that Used to store a computer program; wherein when the computer program is executed by a processor, the user interface zooming and displaying method according to any one of claims 1 to 5 is implemented.

Citation Information

Patent Citations

  • Display method and device during webpage interface zooming and terminal equipment

    CN111143731A