Screen display method and device, computer readable storage medium and electronic device

By converting logical pixels to physical pixels, dynamic elements are displayed independently, solving the high cost problem caused by splicing in screen adaptation and achieving accurate display and cost reduction.

CN115202787BActive Publication Date: 2025-12-23INDUSTRIAL AND COMMERCIAL BANK OF CHINA
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210826045.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-07-14
Publication Date
2025-12-23
Estimated Expiration
2042-07-14

AI Technical Summary

Technical Problem

In existing technologies, to adapt to different screen sizes, the images to be displayed and dynamic elements need to be spliced ​​together before being displayed on the screen, resulting in high work costs.

Method used

The display ratio is determined based on the logical pixels of the image to be displayed and the logical pixels of the screen. Combined with physical pixels and resolution multipliers, the display units of the target area are converted to display dynamic elements independently, avoiding splicing operations.

Benefits of technology

This allows for the separate display of dynamic elements and the images to be displayed, reducing workload and ensuring accurate display of dynamic elements on different screens.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115202787B_ABST
    Figure CN115202787B_ABST
Patent Text Reader

Abstract

The application discloses a screen display method and device, a computer readable storage medium and an electronic device. It is related to the field of financial technology or other related fields, and the method comprises the following steps: determining the display ratio between a picture to be displayed and a screen based on the logical pixels corresponding to the picture to be displayed and the logical pixels corresponding to the screen displaying the picture to be displayed; determining the first area range information corresponding to a target area in the picture to be displayed based on the physical pixels corresponding to the picture to be displayed; determining the second area range information corresponding to the first area range information based on the resolution multiple corresponding to the picture to be displayed; determining the display area corresponding to the target area in the screen based on the display ratio and the second area range information; and displaying a dynamic element based on the display area. The application solves the technical problem of high work cost caused by the fact that, in the prior art, in order to adapt to the screen, the picture to be displayed and the dynamic element are spliced together and then displayed in the screen.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the field of financial technology or other related fields, in particular, to a screen display method and device, a computer readable storage medium and an electronic device. BACKGROUND

[0002] In the application of electronic devices (such as mobile phones, wearable smart devices, computers, etc.), it is often necessary to display a background picture on a full page and dynamically draw some visual elements in the "vacant" position in the background picture. Due to the different screen sizes of electronic devices on the market, when adapting to multiple screen sizes, the software developers of the application use the way of splitting the full-screen large picture into several parts by the designer, and then writing code by the developer to splice the picture and dynamic visual elements into a large picture for display. Although this method can accurately display the background picture and dynamic visual elements, it causes a certain burden and inconvenience to the designers, and the software developers also need to write more code to splice the view, thereby increasing the work cost of the relevant staff.

[0003] At present, there is no effective solution to the above problems. SUMMARY

[0004] The embodiments of the present application provide a screen display method, device, computer readable storage medium and electronic device to at least solve the technical problem of high work cost caused by splicing the picture to be displayed and dynamic elements together and then displaying them on the screen in order to adapt to the screen in the prior art.

[0005] According to an aspect of an embodiment of the present application, a screen display method is provided, comprising: determining a display ratio between a picture to be displayed and a screen based on logical pixels corresponding to the picture to be displayed and logical pixels corresponding to the screen on which the picture to be displayed is displayed; determining first region range information corresponding to a target region in the picture to be displayed based on physical pixels corresponding to the picture to be displayed, wherein the target region is a region in the picture to be displayed for displaying dynamic elements; determining second region range information corresponding to the first region range information based on a resolution multiple corresponding to the picture to be displayed, wherein the second region range information is expressed in logical pixels; determining a display region in the screen corresponding to the target region based on the display ratio and the second region range information; and displaying dynamic elements based on the display region.

[0006] Further, the display ratio comprises a height ratio and a width ratio, wherein the screen display method further comprises: determining a picture logical width and a picture logical height of the picture to be displayed based on logical pixels corresponding to the picture to be displayed; determining a screen logical width and a screen logical height of the screen based on logical pixels corresponding to the screen; calculating a ratio of the picture logical width to the screen logical width to obtain the width ratio; and calculating a ratio of the picture logical height to the screen logical height to obtain the height ratio.

[0007] Further, the first region range information comprises a starting point pixel coordinate, a region pixel width and a region pixel height corresponding to the target region; and the second region range information comprises a starting point logical coordinate, a region logical width and a region logical height.

[0008] Further, the screen display method further comprises: if the resolution multiple corresponding to the picture to be displayed is a preset value, taking the starting point pixel coordinate as the starting point logical coordinate, taking the region pixel width as the region logical width, and taking the region pixel height as the region logical height.

[0009] Further, the screen display method further comprises: if the resolution multiple corresponding to the picture to be displayed is a non-preset value, calculating a ratio of coordinate values in the starting point pixel coordinate to the resolution multiple to obtain the starting point logical coordinate; calculating a ratio of the region pixel width to the resolution multiple to obtain the region logical width; and calculating a ratio of the region pixel height to the resolution multiple to obtain the region logical height.

[0010] Further, the screen display method further comprises: calculating a product of the display ratio and the coordinate values in the starting point logical coordinate to obtain a target starting point logical coordinate; calculating a product of the display ratio and the region logical width to obtain a target region logical width; calculating a product of the display ratio and the region logical height to obtain a target region logical height; and determining a display region corresponding to the target region in the screen based on the target starting point logical coordinate, the target region logical width and the target region logical height.

[0011] Further, the screen display method further comprises: obtaining a dynamic element drawn based on the display region before displaying the dynamic element based on the display region.

[0012] According to another aspect of the embodiments of the present application, a screen display apparatus is also provided, which comprises: a first determining module configured to determine a display ratio between a picture to be displayed and a screen based on logical pixels corresponding to the picture to be displayed and logical pixels corresponding to the screen on which the picture to be displayed is displayed; a second determining module configured to determine first region range information corresponding to a target region in the picture to be displayed based on physical pixels corresponding to the picture to be displayed, wherein the target region is a region in the picture to be displayed for displaying a dynamic element; a third determining module configured to determine second region range information corresponding to the first region range information based on a resolution multiple corresponding to the picture to be displayed, wherein the second region range information is expressed in logical pixels; a fourth determining module configured to determine a display region in the screen corresponding to the target region based on the display ratio and the second region range information; and a display module configured to display the dynamic element based on the display region.

[0013] According to another aspect of the embodiments of the present application, a computer readable storage medium is also provided, which stores a computer program, wherein the computer program is configured to execute the screen display method when running.

[0014] According to another aspect of the embodiments of the present application, an electronic device is also provided, which comprises one or more processors; and a memory configured to store one or more programs, which, when executed by the one or more processors, cause the one or more processors to implement a program configured to execute the screen display method when running.

[0015] In the embodiments of the present application, the dynamic element is displayed on the screen independently of the picture to be displayed, by determining a display ratio between the picture to be displayed and the screen based on logical pixels corresponding to the picture to be displayed and logical pixels corresponding to the screen on which the picture to be displayed is displayed, then determining first region range information corresponding to a target region in the picture to be displayed based on physical pixels corresponding to the picture to be displayed, and then determining second region range information corresponding to the first region range information based on a resolution multiple corresponding to the picture to be displayed, and determining a display region in the screen corresponding to the target region based on the display ratio and the second region range information, and displaying the dynamic element based on the display region. The target region is a region in the picture to be displayed for displaying the dynamic element, and the second region range information is expressed in logical pixels.

[0016] In the above process, by determining the display ratio between the to-be-displayed picture and the screen, the display relationship between the to-be-displayed picture and the screen is determined, by converting the region range information corresponding to the target region from a physical pixel unit to a logical pixel unit, the display unit of the target region and the display unit of the screen are unified, then, the display area corresponding to the target region in the screen is determined based on the display ratio and the second region range information after the pixel unit conversion, and the dynamic element is displayed based on the display area, on the one hand, the separate display of the dynamic element and the to-be-displayed picture is realized, avoiding the code writing to splice and display the picture and the visual element in the screen, thereby reducing the work cost, on the other hand, the display element is measured based on the logical pixel, avoiding the situation that the developed software program cannot match different screen electronic devices caused by measuring the display element based on the physical pixel, thereby realizing the accurate display of the dynamic element.

[0017] It can be seen that the scheme provided in the present application achieves the purpose of displaying the dynamic element independently of the to-be-displayed picture in the screen, thereby realizing the technical effect of reducing the work cost, and further solving the technical problem of high work cost caused by splicing the to-be-displayed picture and the dynamic element together and then displaying them in the screen in order to adapt to the screen in the prior art. BRIEF DESCRIPTION OF DRAWINGS

[0018] The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiments of the application and together with the description serve to explain the application. In the drawings:

[0019] Figure 1 is a schematic diagram of an optional screen display method according to an embodiment of the present application;

[0020] Figure 2 is a schematic diagram of an optional screen according to an embodiment of the present application;

[0021] Figure 3 is a schematic diagram of an optional to-be-displayed picture according to an embodiment of the present application;

[0022] Figure 4 is a schematic diagram of an optional to-be-displayed picture after display unit conversion according to an embodiment of the present application;

[0023] Figure 5 is a schematic diagram of an optional display area according to an embodiment of the present application;

[0024] Figure 6 is a schematic diagram of an optional display of the to-be-displayed picture and the dynamic element in the screen according to an embodiment of the present application;

[0025] Figure 7is a schematic diagram of an optional screen display device according to an embodiment of the present application;

[0026] Figure 8 is a schematic diagram of an optional electronic device according to an embodiment of the present application. DETAILED DESCRIPTION

[0027] In order to make the personnel in the art better understand the present application scheme, the technical scheme in the embodiments of the present application will be described clearly and completely below in combination with the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, not all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by the person skilled in the art without creative labor should belong to the scope of protection of the present application.

[0028] It should be noted that the terms "first", "second", and the like in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and do not necessarily indicate a specific order or sequence. It should be understood that the data thus used can be interchanged under appropriate circumstances, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "include" and "have" and any variations thereof are intended to cover non-exclusive inclusion, for example, a process, method, system, product or device including a series of steps or units does not necessarily have to be limited to those steps or units clearly listed, but can include other steps or units not clearly listed or inherent to these processes, methods, products or devices.

[0029] It should be noted that the screen display method, device, computer readable storage medium and electronic device determined by the present disclosure can be used in the field of financial technology, and can also be used in any field other than the field of financial technology. The application field of the screen display method, device, computer readable storage medium and electronic device determined by the present disclosure is not limited.

[0030] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data for display, analyzed data, etc.) involved in the present disclosure are all information and data authorized by the user or authorized by all parties.

[0031] Embodiment 1

[0032] According to an embodiment of the present application, an embodiment of a screen display method is provided. It should be noted that the steps shown in the flowchart of the drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described herein can be executed in an order different from that shown herein.

[0033] Figure 1 is a schematic diagram of an optional screen display method according to an embodiment of the present application, as shown in the figure, the method comprises the following steps: Figure 1

[0034] In step S101, the display ratio between the to-be-displayed picture and the screen is determined based on the logical pixels corresponding to the to-be-displayed picture and the logical pixels corresponding to the screen on which the to-be-displayed picture is displayed.

[0035] In step S102, the display ratio between the to-be-displayed picture and the screen can be determined based on an electronic device, a server, an application system or the like, and in this embodiment, the display ratio between the to-be-displayed picture and the screen is determined by an optional application system.

[0036] Optionally, the application system can determine the logical pixels corresponding to the to-be-displayed picture by using relevant picture processing software (such as PS or preview tool) or other existing methods, and can determine the logical pixels corresponding to the screen on which the to-be-displayed picture is displayed based on the logical resolution commonly used by the screen of the current electronic device, so as to determine the display ratio corresponding to the to-be-displayed picture when displayed on different screens, or when the electronic device used for displaying the to-be-displayed picture is known, the logical pixels corresponding to the screen on which the to-be-displayed picture is displayed can be determined based on relevant display parameters of the electronic device or other existing methods, and then the display ratio corresponding to the to-be-displayed picture and the screen is determined. The logical pixels are irrelevant to the electronic device, and are determined by the system software of the electronic device, and represent virtual pixels that can be controlled by programs.

[0037] It should be noted that by determining the display ratio between the to-be-displayed picture and the screen, the display relationship between the to-be-displayed picture and the screen is determined.

[0038] In step S102, the first region range information corresponding to the target region in the to-be-displayed picture is determined based on the physical pixels corresponding to the to-be-displayed picture, wherein the target region is a region in the to-be-displayed picture used for displaying dynamic elements.

[0039] In step S102, the application system can determine the physical pixels corresponding to the to-be-displayed picture based on relevant picture processing software or other existing methods, and obtain the target region divided by relevant staff, or automatically identify the target region from the to-be-displayed picture according to color zoning, relevant marks or other information in the picture.

[0040] ​Further, the application system can measure the first region range information corresponding to the target region based on a related picture processing software or other existing method, and the first region range information at least includes the corresponding range size and position of the target region, and the first region range information is expressed in physical pixels.

[0041] It should be noted that the first region range information corresponding to the target region is determined so as to determine the display region of the target region in the screen subsequently.

[0042] In step S103, the second region range information corresponding to the first region range information is determined based on the resolution multiple corresponding to the picture to be displayed, and the second region range information is expressed in logical pixels.

[0043] In step 103, the application system can determine that the picture to be displayed is a 1-time picture, a 2-time picture, a 3-time picture or other time picture based on the ID corresponding to the picture to be displayed, and then determine the resolution multiple corresponding to the picture to be displayed, which is equivalent to determining the picture multiple corresponding to the picture to be displayed. For example, when the picture to be displayed is a 1-time picture, the resolution multiple corresponding to the picture to be displayed is determined to be 1, that is, the picture multiple is 1; when the picture to be displayed is a 2-time picture, the resolution multiple corresponding to the picture to be displayed is determined to be 2; and when the picture to be displayed is a 3-time picture, the resolution multiple corresponding to the picture to be displayed is determined to be 3. Alternatively, the application system can determine the resolution multiple corresponding to the picture to be displayed based on a related picture processing software or other existing method.

[0044] Further, after the resolution multiple is determined, the application system can convert the region range information corresponding to the target region from physical pixel unit to logical pixel unit based on the resolution multiple, that is, convert the first region range information to the second region range information.

[0045] It should be noted that the region range information corresponding to the target region is converted from physical pixel unit to logical pixel unit, so that the display unit of the target region and the display unit of the screen are unified, thereby facilitating the determination of the display region of the target region in the screen.

[0046] In step S104, the display region corresponding to the target region in the screen is determined based on the display ratio and the second region range information.

[0047] In step S104, the application system can multiply or divide the display ratio and the second region range information to determine the display position and range of the target region in the screen, that is, to determine the display region.

[0048] It should be noted that, by determining the display area corresponding to the target area in the screen based on the display ratio, the second area range information, on the one hand, the display element is measured based on the logical pixel, which avoids the situation that the developed software program cannot match the electronic devices with different screens caused by measuring the display element by using the physical pixel, and on the other hand, the display position and range of the target area in the screen are accurately determined, that is, the display position and range of the dynamic element in the screen are accurately determined.

[0049] In step S105, the dynamic element is displayed based on the display area.

[0050] Optionally, the application system can feed back the display position of the target area in the screen determined in the foregoing steps to the staff, so that the staff draws a dynamic element with a corresponding size, and the application system stores the dynamic element. Before displaying the dynamic element, the application system can determine the logical pixel corresponding to the electronic device for displaying the picture to be displayed, so as to determine the dynamic element corresponding to the electronic device, and then display the corresponding dynamic element on the corresponding electronic device.

[0051] Optionally, the application system can also obtain the dynamic element drawn from the preset storage area, and compress the dynamic element without affecting the aspect ratio of the dynamic element, so that the dynamic element is displayed in the display area.

[0052] It should be noted that, by displaying the dynamic element based on the display area, the separate display of the dynamic element and the picture to be displayed is realized, which avoids writing code to splice and display the picture and the visual element in the screen, thereby reducing the working cost.

[0053] Based on the scheme defined in the foregoing steps S101 to S105, it can be known that, in the embodiment of the application, the dynamic element is displayed independently of the picture to be displayed in the screen, the display ratio between the picture to be displayed and the screen is determined based on the logical pixel corresponding to the picture to be displayed and the logical pixel corresponding to the screen for displaying the picture to be displayed, then the first area range information corresponding to the target area in the picture to be displayed is determined based on the physical pixel corresponding to the picture to be displayed, then the second area range information corresponding to the first area range information is determined based on the resolution multiple corresponding to the picture to be displayed, and the display area corresponding to the target area in the screen is determined based on the display ratio and the second area range information, so as to display the dynamic element based on the display area. The target area is an area in the picture to be displayed for displaying the dynamic element, and the second area range information is expressed by the logical pixel.

[0054] It is easy to note that in the above process, by determining the display ratio between the picture to be displayed and the screen, the determination of the display relationship between the picture to be displayed and the screen is realized, by converting the region range information corresponding to the target region from physical pixel units to logical pixel units, the display unit of the target region and the display unit of the screen are unified, then, by determining the display region corresponding to the target region in the screen based on the display ratio and the second region range information after pixel unit conversion, and displaying the dynamic element based on the display region, on the one hand, the separate display of the dynamic element and the picture to be displayed is realized, avoiding the code writing to splice and display the picture and the visual element in the screen, thereby reducing the working cost, on the other hand, the display element is measured based on the logical pixel, avoiding the situation that the developed software program cannot match different screen electronic devices caused by measuring the display element with physical pixels, thereby realizing the accurate display of the dynamic element.

[0055] Therefore, the scheme provided in the present application achieves the purpose of displaying the dynamic element independently of the picture to be displayed in the screen, thereby realizing the technical effect of reducing the working cost, and further solving the technical problem of high working cost caused by splicing and displaying the picture to be displayed and the dynamic element together in the screen in order to adapt to the screen in the prior art.

[0056] In an optional embodiment, before determining the display ratio between the picture to be displayed and the screen, the picture to be displayed can be drawn onto the screen of the electronic device in a scaled padding manner to realize the adaptation of the picture to be displayed to different screen sizes.

[0057] In an optional embodiment, in the process of determining the display ratio between the picture to be displayed and the screen based on the logical pixels corresponding to the picture to be displayed and the logical pixels corresponding to the screen on which the picture to be displayed is displayed, the picture logical width and the picture logical height of the picture to be displayed can be determined based on the logical pixels corresponding to the picture to be displayed, and then the screen logical width and the screen logical height of the screen can be determined based on the logical pixels corresponding to the screen, so as to calculate the ratio of the picture logical width to the screen logical width to obtain the width ratio, and calculate the ratio of the picture logical height to the screen logical height to obtain the height ratio. The display ratio includes the height ratio and the width ratio.

[0058] Optionally, the screen logical width and the screen logical height of the screen can be determined based on the logical resolution corresponding to the electronic device, and the picture logical width and the picture logical height corresponding to the picture to be displayed can be determined based on the related picture processing software.

[0059] Further, as Figure 2 , Figure 3As shown in FIG. 1, it is assumed that the screen logic width corresponding to the screen is screen_w, the screen logic height corresponding to the screen is screen_h, and the picture logic width corresponding to the picture to be displayed is i_w. Then, i_w / screen_w can be taken as the width ratio rate_w, and i_h / screen_h can be taken as the height ratio rate_h, so as to realize the determination of the display ratio.

[0060] It should be noted that the height ratio and the width ratio between the picture to be displayed and the screen are calculated, so as to realize the accurate and effective determination of the display ratio.

[0061] In an optional embodiment, the first region range information includes the starting point pixel coordinate corresponding to the target region, the region pixel width, and the region pixel height, and the second region range information includes the starting point logic coordinate, the region logic width, and the region logic height. The region pixel width or the region logic width can be the width calculated along the horizontal direction to the right of the starting point, and the region pixel height or the region logic height can be the width calculated along the horizontal direction downward of the starting point.

[0062] It should be noted that the starting point, the width, and the height corresponding to the target region are determined, so as to realize the accurate determination of the display position and the display range of the target region.

[0063] In an optional embodiment, in the process of determining the second region range information corresponding to the first region range information based on the resolution multiple corresponding to the picture to be displayed, if the resolution multiple corresponding to the picture to be displayed is a preset value, the application system can take the starting point pixel coordinate as the starting point logic coordinate, take the region pixel width as the region logic width, and take the region pixel height as the region logic height.

[0064] As shown in FIG. 1, it is assumed that the starting point pixel coordinate is p0(x, y), the region pixel width is w, and the region pixel height is h. As shown in FIG. 1, it is assumed that the starting point logic coordinate is p0’(x’, y’), the region logic width is w’, and the region logic height is h’. Figure 3 Figure 4

[0065] Optionally, in the embodiment, the preset value is 1, that is, when the resolution multiple corresponding to the picture to be displayed is 1, that is, the picture to be displayed is a 1-time picture, p0(x, y) is the same as p0’(x’, y’), w is the same as w’, and h is the same as h’.

[0066] It should be noted that in this way, the accurate conversion of the region range information corresponding to the target region from the physical pixel unit to the logic pixel unit is realized.

[0067] ​​In an alternative embodiment, in the process of determining the second region range information corresponding to the first region range information based on the resolution multiple corresponding to the picture to be displayed, if the resolution multiple corresponding to the picture to be displayed is not the preset value, the application system can calculate the ratio of the coordinate value in the starting point pixel coordinate to the resolution multiple to obtain the starting point logical coordinate, calculate the ratio of the region pixel width to the resolution multiple to obtain the region logical width, and calculate the ratio of the region pixel height to the resolution multiple to obtain the region logical height.

[0068] Alternatively, if the resolution multiple corresponding to the picture to be displayed is not the preset value, the application system can divide the coordinate value in the starting point pixel coordinate, the region pixel width, and the region pixel height by the value corresponding to the resolution multiple, respectively, to determine the starting point logical coordinate, the region logical width, and the region logical height.

[0069] For example, if the resolution multiple corresponding to the picture to be displayed is 2, i.e., the picture to be displayed is a 2x picture, the starting point logical coordinate p0'(x', y') is equivalent to p0(x / 2, y / 2), the region logical width w' is equivalent to w / 2, and the region logical height h' is equivalent to h / 2; if the resolution multiple corresponding to the picture to be displayed is 3, i.e., the picture to be displayed is a 3x picture, the starting point logical coordinate p0'(x', y') is equivalent to p0(x / 3, y / 3), the region logical width w' is equivalent to w / 3, and the region logical height h' is equivalent to h / 3.

[0070] Thus, the accurate conversion of the region range information corresponding to the target region from the physical pixel unit to the logical pixel unit is realized.

[0071] In an alternative embodiment, in the process of determining the display region in the screen corresponding to the target region based on the display ratio and the second region range information, the application system can calculate the product of the display ratio and the coordinate value in the starting point logical coordinate to obtain the target starting point logical coordinate, calculate the product of the display ratio and the region logical width to obtain the target region logical width, and calculate the product of the display ratio and the region logical height to obtain the target region logical height, so as to determine the display region in the screen corresponding to the target region based on the target starting point logical coordinate, the target region logical width, and the target region logical height.

[0072] Alternatively, the horizontal coordinate value in the starting point logical coordinate p0'(x', y') can be multiplied by the width ratio, and the vertical coordinate value in the starting point logical coordinate p0'(x', y') can be multiplied by the height ratio, so as to obtain the target starting point logical coordinate p0"(x", y") as shown in Figure 5 Meanwhile, the region logical width w' can be multiplied by the width ratio to obtain the target region logical width w" as shown in Figure 5The target region logical width w" is shown. The region logical height h' is multiplied by the height ratio to obtain the target region logical height h" as shown. Figure 5 The target region logical height h" is shown.

[0073] It should be noted that by multiplying the display ratio with each value in the second region range information, the display position and display range of the target region on the screen are accurately determined.

[0074] In an alternative embodiment, before displaying the dynamic element based on the display region, the application system can obtain the dynamic element drawn based on the display region.

[0075] Optionally, after determining the display region, the application system can feed back the region range information corresponding to the display region to the relevant personnel, so that the relevant personnel draw the dynamic element based on the display region, and after drawing, the application system obtains the dynamic element and displays it on the screen, thereby improving the display effect of the dynamic element. An alternative display effect is shown as Figure 6 .

[0076] As can be seen, the scheme provided in the present application achieves the purpose of displaying the dynamic element independently of the picture to be displayed on the screen, thereby achieving the technical effect of reducing the working cost, and further solving the technical problem of high working cost caused by splicing the picture to be displayed and the dynamic element together before displaying on the screen in order to adapt to the screen in the prior art.

[0077] Embodiment 2

[0078] According to an embodiment of the present application, an embodiment of a screen display device is provided, wherein, Figure 7 is a schematic diagram of an alternative screen display device according to an embodiment of the present application, as shown in Figure 7 The device comprises:

[0079] A first determination module 701 is configured to determine a display ratio between a picture to be displayed and a screen based on logical pixels corresponding to the picture to be displayed and logical pixels corresponding to the screen on which the picture to be displayed is displayed;

[0080] A second determination module 702 is configured to determine first region range information corresponding to a target region in the picture to be displayed based on physical pixels corresponding to the picture to be displayed, wherein the target region is a region in the picture to be displayed for displaying a dynamic element;

[0081] A third determination module 703 is configured to determine second region range information corresponding to the first region range information based on a resolution multiple corresponding to the picture to be displayed, wherein the second region range information is expressed in logical pixels;

[0082] The fourth determining module 704 is configured to determine a display region corresponding to the target region in the screen based on the display ratio and the second region range information.

[0083] The display module 705 is configured to display the dynamic element based on the display region.

[0084] It should be noted that the first determining module 701, the second determining module 702, the third determining module 703, the fourth determining module 704 and the display module 705 correspond to steps S101 to S105 in the above embodiment, and the four modules have the same examples and application scenarios as the corresponding steps, but are not limited to the content disclosed in the above embodiment 1.

[0085] Optionally, the display ratio includes a height ratio and a width ratio, and the first determining module includes: a first sub-determining module configured to determine a picture logical width and a picture logical height of the picture to be displayed based on logical pixels corresponding to the picture to be displayed; a second sub-determining module configured to determine a screen logical width and a screen logical height of the screen based on logical pixels corresponding to the screen; a first calculating module configured to calculate a ratio of the picture logical width to the screen logical width to obtain the width ratio; and a second calculating module configured to calculate a ratio of the picture logical height to the screen logical height to obtain the height ratio.

[0086] Optionally, the first region range information includes a starting point pixel coordinate corresponding to the target region, a region pixel width and a region pixel height, and the second region range information includes a starting point logical coordinate, a region logical width and a region logical height.

[0087] Optionally, the third determining module includes: a third sub-determining module configured to, if the resolution multiple corresponding to the picture to be displayed is a preset value, take the starting point pixel coordinate as the starting point logical coordinate, take the region pixel width as the region logical width, and take the region pixel height as the region logical height.

[0088] Optionally, the third determining module further includes: a third calculating module configured to, if the resolution multiple corresponding to the picture to be displayed is a non-pre-set value, calculate a ratio of a coordinate value in the starting point pixel coordinate to the resolution multiple to obtain the starting point logical coordinate; a fourth calculating module configured to calculate a ratio of the region pixel width to the resolution multiple to obtain the region logical width; and a fifth calculating module configured to calculate a ratio of the region pixel height to the resolution multiple to obtain the region logical height.

[0089] Optionally, the fourth determining module comprises: a sixth calculating module, configured to calculate the product of the display ratio and the coordinate value in the starting point logical coordinate to obtain a target starting point logical coordinate; a seventh calculating module, configured to calculate the product of the display ratio and the region logical width to obtain a target region logical width; an eighth calculating module, configured to calculate the product of the display ratio and the region logical height to obtain a target region logical height; and a fourth sub-determining module, configured to determine the display region corresponding to the target region in the screen based on the target starting point logical coordinate, the target region logical width and the target region logical height.

[0090] Optionally, the screen display device further comprises an obtaining module, configured to obtain the dynamic element drawn based on the display region.

[0091] Embodiment 3

[0092] According to another aspect of the embodiments of the present application, a computer readable storage medium is also provided, and the computer readable storage medium stores a computer program, wherein the computer program is configured to execute the screen display method when running.

[0093] Embodiment 4

[0094] According to another aspect of the embodiments of the present application, an electronic device is also provided, and the electronic device comprises: Figure 8 is a schematic diagram of an optional electronic device according to the embodiments of the present application, as shown in Figure 8 the electronic device comprises one or more processors; a memory, configured to store one or more programs, which make the one or more processors implement a program for running when the one or more programs are executed by the one or more processors, wherein the program is configured to execute the screen display method when running.

[0095] The above-mentioned serial numbers of the embodiments of the present application are only for description, and do not represent the advantages and disadvantages of the embodiments.

[0096] In the above-mentioned embodiments of the present application, the description of each embodiment has its own emphasis, and the parts not described in detail in a certain embodiment can be referred to the related description of other embodiments.

[0097] In the several embodiments provided in the present application, it should be understood that the disclosed technology can be implemented in other ways. Of course, the device embodiment described above is only schematic. For example, the division of the units can be a logical function division, and there can be another division manner in actual implementation, for example, a plurality of units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the coupling or direct coupling or communication connection between the shown or discussed mutual elements can be indirect coupling or communication connection through some interfaces, units or modules, and can be electrical or other forms.

[0098] The units described as separate components may or may not be physically separate, and the components displayed as units may or may not be physical units, i.e. may be located in one place, or may be distributed to multiple units. Part or all of the units may be selected according to actual needs to achieve the purpose of the embodiment.

[0099] In addition, each functional unit in each embodiment of the present application can be integrated in one processing unit, or each unit can exist physically, or two or more units can be integrated in one unit. The integrated unit can be realized in the form of hardware or in the form of a software functional unit.

[0100] If the integrated unit is realized in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer readable storage medium. Based on this understanding, the technical solutions of the present application or the part of the prior art that essentially contributes or the whole or part of the technical solutions can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes a plurality of instructions for causing a computer device (which can be a personal computer, a server or a network device, etc.) to execute all or part of the steps of the method of each embodiment of the present application. The aforementioned storage medium includes: a U disk, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), a mobile hard disk, a magnetic disk or an optical disk, and various program code storage media.

[0101] The above is only the preferred embodiment of the present application, and it should be pointed out that for those skilled in the art, without departing from the principles of the present application, a number of improvements and refinements can be made, and these improvements and refinements should be considered as the protection scope of the present application.

Claims

1. A screen display method, characterized in that, include: Based on the logical pixels corresponding to the image to be displayed and the logical pixels corresponding to the screen displaying the image to be displayed, the display ratio between the image to be displayed and the screen is determined; Based on the physical pixels corresponding to the image to be displayed, the first region range information corresponding to the target region in the image to be displayed is determined, wherein the target region is the region in the image to be displayed used to display dynamic elements; Based on the resolution multiple corresponding to the image to be displayed, determine the second region range information corresponding to the first region range information, wherein the second region range information is represented by logical pixels; Based on the display ratio and the second area range information, the display area in the screen corresponding to the target area is determined; The dynamic elements are displayed based on the display area; The first region range information includes the starting point pixel coordinates, region pixel width, and region pixel height corresponding to the target region; the first region range information is represented in physical pixels. The second region range information includes the starting point logical coordinates, the region logical width, and the region logical height; Based on the resolution multiple corresponding to the image to be displayed, determine the second region range information corresponding to the first region range information, including: If the resolution multiplier corresponding to the image to be displayed is not a preset value, then the ratio of the coordinate value in the starting point pixel coordinates to the resolution multiplier is calculated to obtain the logical coordinates of the starting point; The logical width of the region is obtained by calculating the ratio of the region's pixel width to the resolution multiple. The logical height of the region is obtained by calculating the ratio of the pixel height of the region to the resolution multiple.

2. The method according to claim 1, characterized in that, The display ratio includes a height ratio and a width ratio. Determining the display ratio between the image to be displayed and the screen based on the logical pixels corresponding to the image to be displayed and the logical pixels corresponding to the screen displaying the image to be displayed includes: Based on the logical pixels corresponding to the image to be displayed, determine the image logical width and image logical height of the image to be displayed; Based on the logical pixels corresponding to the screen, determine the screen logical width and screen logical height; Calculate the ratio of the image's logical width to the screen's logical width to obtain the width ratio; The ratio of the image's logical height to the screen's logical height is calculated to obtain the height ratio.

3. The method according to claim 1, characterized in that, Based on the resolution multiple corresponding to the image to be displayed, determine the second region range information corresponding to the first region range information, including: If the resolution multiplier corresponding to the image to be displayed is a preset value, then the starting point pixel coordinates are used as the starting point logical coordinates, the region pixel width is used as the region logical width, and the region pixel height is used as the region logical height.

4. The method according to claim 1, characterized in that, Determining the display area on the screen corresponding to the target area based on the display ratio and the second area range information includes: Calculate the product of the display scale and the coordinate value in the logical coordinates of the starting point to obtain the logical coordinates of the target starting point; The target region logical width is obtained by multiplying the display ratio by the region logical width. Calculate the product of the display ratio and the logical height of the region to obtain the logical height of the target region; The display area on the screen corresponding to the target area is determined based on the logical coordinates of the target starting point, the logical width of the target area, and the logical height of the target area.

5. The method according to claim 1, characterized in that, Before displaying the dynamic element based on the display area, the method further includes: Obtain dynamic elements drawn based on the display area.

6. A screen display device, characterized in that, include: The first determining module is used to determine the display ratio between the image to be displayed and the screen based on the logical pixels corresponding to the image to be displayed and the logical pixels corresponding to the screen displaying the image to be displayed. The second determining module is used to determine the first region range information corresponding to the target region in the image to be displayed based on the physical pixels corresponding to the image to be displayed, wherein the target region is the region in the image to be displayed used to display dynamic elements; The third determining module is used to determine the second region range information corresponding to the first region range information based on the resolution multiple of the image to be displayed, wherein the second region range information is represented by logical pixels; The fourth determining module is used to determine the display area in the screen corresponding to the target area based on the display ratio and the second area range information; A display module is used to display the dynamic elements based on the display area; The first region range information includes the starting point pixel coordinates, region pixel width, and region pixel height corresponding to the target region; the first region range information is represented in physical pixels; the second region range information includes the starting point logical coordinates, region logical width, and region logical height. The third determining module also includes: a third calculation module, used to calculate the ratio of the coordinate value in the starting point pixel coordinates to the resolution multiple if the resolution multiple corresponding to the image to be displayed is not a preset value, to obtain the logical coordinates of the starting point; a fourth calculation module, used to calculate the ratio of the region pixel width to the resolution multiple, to obtain the region logical width; and a fifth calculation module, used to calculate the ratio of the region pixel height to the resolution multiple, to obtain the region logical height.

7. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program, wherein the computer program is configured to execute the screen display method according to any one of claims 1 to 5 when it is run.

8. An electronic device, characterized in that, The electronic device includes one or more processors; A memory for storing one or more programs, which, when executed by one or more processors, cause the one or more processors to be configured to run the programs, wherein the programs are configured to execute the screen display method of any one of claims 1 to 5 at runtime.

Citation Information

Patent Citations

  • UI interface adaptation method of electronic equipment, electronic equipment and storage medium

    CN111190672A

  • Page picture display method and display device

    CN113032696A