CN113626120A - Method and device for determining display page, electronic equipment and storage medium - Google Patents

Method and device for determining display page, electronic equipment and storage medium Download PDF

Info

Publication number
CN113626120A
CN113626120A CN202110890061.XA CN202110890061A CN113626120A CN 113626120 A CN113626120 A CN 113626120A CN 202110890061 A CN202110890061 A CN 202110890061A CN 113626120 A CN113626120 A CN 113626120A
Authority
CN
China
Prior art keywords
page
target
display
display parameters
parameters
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110890061.XA
Other languages
Chinese (zh)
Inventor
徐丽婷
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guahao Net Hangzhou Technology Co Ltd
Original Assignee
Guahao Net Hangzhou Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guahao Net Hangzhou Technology Co Ltd filed Critical Guahao Net Hangzhou Technology Co Ltd
Priority to CN202110890061.XA priority Critical patent/CN113626120A/en
Publication of CN113626120A publication Critical patent/CN113626120A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

The embodiment of the invention provides a method, a device, electronic equipment and a storage medium for determining a display page, wherein the method comprises the following steps: acquiring equipment display parameters of current display equipment, and determining target reference display parameters corresponding to the equipment display parameters; determining target display parameters of the target page to be displayed according to the target reference display parameters and the page display parameters of the target page to be displayed; and adjusting the display size of the target page to be displayed based on the target display parameters to obtain a target page, and displaying the target page on the current display equipment. According to the technical scheme, the problems that in the prior art, when the same image is displayed on different display devices, images corresponding to the different display devices need to be manufactured, or the display size of the image is manually adjusted to be matched with the different display devices, so that the cost is high and the efficiency is low are solved, the parameters of the page to be displayed are automatically adjusted according to the device parameters of the display devices, and the adaptability of the target page and the display devices is improved.

Description

Method and device for determining display page, electronic equipment and storage medium
Technical Field
The embodiment of the invention relates to the technical field of computers, in particular to a method and a device for determining a display page, electronic equipment and a storage medium.
Background
Currently, the display of each image and page is displayed by a display device. In practical applications, the specification and model of each display device are different.
In order to adapt each image to the corresponding display device, the image displayed on the display device can be adjusted manually, but the manual adjustment needs to be carried out for a long time, and the size of the adjusted image is not necessarily matched with the display device completely, so that a certain error rate exists.
Disclosure of Invention
The invention provides a method and a device for determining a display page, electronic equipment and a storage medium, which are used for automatically adjusting display parameters of a page to be displayed according to equipment parameters of the display equipment, so that the adaptability between a target display page and the display equipment is improved.
In a first aspect, an embodiment of the present invention provides a method for determining a display page, where the method includes:
acquiring equipment display parameters of current display equipment, and determining target reference display parameters corresponding to the equipment display parameters;
determining target display parameters of the target page to be displayed according to the target reference display parameters and the page display parameters of the target page to be displayed;
and adjusting the display size of the target page to be displayed based on the target display parameters to obtain a target page, and displaying the target page on the current display equipment.
In a second aspect, an embodiment of the present invention further provides an apparatus for determining a display page, where the apparatus includes:
the device comprises a reference display parameter determining module, a reference display parameter determining module and a display parameter setting module, wherein the reference display parameter determining module is used for acquiring the device display parameters of the current display device and determining target reference display parameters corresponding to the device display parameters;
the target display parameter determining module is used for determining the target display parameters of the target page to be displayed according to the target reference display parameters and the page display parameters of the target page to be displayed;
and the target display page determining module is used for adjusting the display size of the target page to be displayed based on the target display parameters to obtain a target page, and displaying the target page on the current display equipment.
In a third aspect, an embodiment of the present invention further provides an electronic device, where the electronic device includes:
one or more processors;
a storage device for storing one or more programs,
when the one or more programs are executed by the one or more processors, the one or more processors implement the method for determining a target presentation page according to any one of the embodiments of the present invention.
In a fourth aspect, the present invention further provides a storage medium containing computer-executable instructions, which when executed by a computer processor, are configured to perform the method for determining a target presentation page according to any one of the embodiments of the present invention.
According to the technical scheme of the embodiment of the invention, the device display parameters of the current display device are obtained, the target reference display parameters corresponding to the device display parameters are determined, the page display parameters are determined how to adjust the page display parameters according to the target reference display parameters and the page display parameters of the target page to be displayed, so that the target display parameters of the target page to be displayed are obtained, and the target page to be displayed is displayed on the current display device based on the target display parameters, so that the display page parameters are automatically adjusted according to the device parameters of the display device, the adaptability between the target page and the display device is improved, and the technical effect of the user experience is further improved.
Drawings
In order to more clearly illustrate the technical solutions of the exemplary embodiments of the present invention, a brief description is given below of the drawings used in describing the embodiments. It should be clear that the described figures are only views of some of the embodiments of the invention to be described, not all, and that for a person skilled in the art, other figures can be derived from these figures without inventive effort.
Fig. 1 is a schematic flowchart illustrating a method for determining a display page according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of a method for determining a display page according to a second embodiment of the present invention;
fig. 3 is a schematic structural diagram of an apparatus for determining a display page according to a third embodiment of the present invention;
fig. 4 is a schematic structural diagram of an electronic device according to a fourth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Example one
Fig. 1 is a flowchart of a method for determining a display page according to an embodiment of the present invention, where the method is applicable to a situation where display parameters of a target page to be displayed are automatically adjusted to adapt to a corresponding display device when the target page to be displayed is displayed on devices with different resolutions, and the method may be implemented by a device for determining a display page, where the device may be implemented in the form of software and/or hardware, and the hardware may be an electronic device, such as a mobile terminal or a PC.
Before the technical solution is introduced, an application scenario of the technical solution may be exemplarily described. When the chart or the image is displayed based on the display device, the optimal display parameter of the image to be displayed when the image is displayed on the current display device can be determined by adopting the technical scheme, so that the chart or the image to be displayed is displayed on the display device based on the optimal display parameter.
As shown in fig. 1, the method of this embodiment includes:
s110, obtaining the equipment display parameters of the current display equipment, and determining the target reference display parameters corresponding to the equipment display parameters.
Wherein, the device currently displaying the page can be used as the current display device. That is, the current display device may be a device that presents a page to be displayed. For example, if the application scene is a medical scene and a page corresponding to a CT image is displayed, the current display device may be a CT display device corresponding to the CT image. The device display parameter may be a device resolution of the current display device. The target reference display parameter may be an optimal display parameter corresponding to the current display device.
The device resolution may be directly used as the optimum display parameter, or may be a predetermined optimum display ratio when an image is displayed on a device having this resolution. That is, the target reference display parameter may be a resolution parameter of the device, or may be an optimal display scale parameter corresponding to the resolution of the device, for example, an optimal display scale parameter obtained by scaling the resolution of the device, or a display parameter obtained by scaling the horizontal and vertical values of the resolution of the device by preset values.
In this embodiment, the acquiring device display parameters of the current display device and determining reference display parameters corresponding to the device display parameters includes: when a control triggering display of a target page is detected, acquiring equipment display parameters of the current display equipment based on a preset program code; and determining target reference display parameters corresponding to the equipment display parameters according to the pre-established corresponding relationship between the equipment display parameters and the reference display parameters.
The display page can include a control corresponding to the display target page, and when the user triggers the control, the corresponding target display page can be displayed. The program code for executing the technical scheme can be written in advance, and the device display parameters of the current display device can be acquired based on the code segments in the program code. Meanwhile, reference display parameters corresponding to different display devices may be predetermined, and optionally, a device having a resolution of 1 may have a corresponding reference display parameter of 1 or 1 ', and a device having a resolution of 2 may have a corresponding reference display parameter of 1 or 1'. That is, optimal display parameters may be configured in advance for different display devices, and a correspondence between the device resolution and the optimal display parameters may be established. Based on the corresponding relationship and the device parameters of the current display device, the optimal display parameters most suitable for the current display device can be determined, and the determined display parameters are used as target reference display parameters.
And S120, determining target display parameters of the target page to be displayed according to the target reference display parameters and the page display parameters of the target page to be displayed.
The page to be displayed may be understood as a page to be displayed on the display device. Each page to be displayed has a display parameter corresponding to the page, and the display parameter may be a display size of the page or a page width parameter and a page height parameter of the page. It should be noted that the page display parameters are original display parameters of the target page to be displayed, that is, height parameters and width parameters used when the target page to be displayed is manufactured. After the page display parameters of the target page to be displayed are adjusted, the page display parameters can be displayed on the current display equipment, and then the page parameters of the target page to be displayed can be the target display parameters when the page display parameters are displayed on the current display equipment. That is, the target display parameter is a display parameter obtained by adjusting the page display parameter. It can be understood that: and determining the target display parameters of the target page to be displayed finally displayed on the display equipment according to the target reference display parameters and the page display parameters corresponding to the current display equipment.
Specifically, after the target reference display parameter and the page display parameter of the target page to be displayed are determined, the reference display parameter and the page display parameter may be processed to obtain the target display parameter of the target page to be displayed.
In this embodiment, the determining the target display parameter of the target page to be displayed according to the target reference display parameter and the page display parameter of the target page to be displayed includes: acquiring the target page to be displayed, and determining a page width parameter and a page height parameter of the target page to be displayed; and determining target display parameters of the target page to be displayed according to the reference width and the reference height in the target reference display parameters and the page width parameters and the page height parameters of the target page to be displayed.
After the target reference parameter of the current display device is determined, the target page to be displayed can be obtained. The target page to be displayed may be a specific page or a specific image. The page to be displayed may or may not be adapted to the display device. If the page is matched with the display screen, the page to be displayed can be directly displayed. If the page display parameters are not matched, the page display parameters of the page to be displayed can be obtained, so that the page display parameters are adjusted to obtain the target display parameters.
It should be noted that before determining whether the target page to be displayed is adapted to the current display device, page display parameters of the target page to be displayed need to be acquired, so as to determine whether processing is needed according to the page display parameters.
The page display parameters may include a page height parameter and a page width parameter. The target reference display parameter is a parameter corresponding to the display device. The target reference parameter may include a reference width and a reference height. The reference height may be a length of the display device and the reference width may be a width of the display device. Accordingly, the page height parameter may be a length of the page and the page width parameter may be an actual width of the page.
Specifically, a page width parameter and a page height parameter of a target page to be displayed are obtained, meanwhile, a reference width parameter and a reference height parameter in a target reference parameter can also be obtained, and the page width parameter, the page height parameter, the reference height parameter and the reference width parameter are processed to determine whether the page display parameter needs to be processed currently, optionally, the processing may be amplification processing or reduction processing, and if the processing needs to be processed (that is, the page display parameter of the target page to be displayed is not adapted to the current display device), the target display parameter of the target page to be displayed can be determined according to the parameters.
In this embodiment, the determining the target display parameter of the target page to be displayed according to the reference width and the reference height in the target reference display parameter, and the page width parameter and the page height parameter of the target page to be displayed includes: determining a width difference value according to the reference width and the page width parameter; determining a height difference value according to the reference height and the page height parameter; and determining target display parameters of the target page to be displayed based on the height difference and the width difference.
Specifically, the difference between the reference width and the page width parameter may be calculated to obtain a width difference; meanwhile, the difference between the reference height and the page height parameter can be calculated to obtain a height difference. Whether the target page to be displayed is matched with the current display equipment in display can be determined according to the width difference and the height difference, and whether the page display parameters are subjected to zooming processing is further determined, so that the target display parameters are obtained.
In this embodiment, the determining, based on the height difference and the width difference, a target display parameter of the target page to be displayed includes: when the height difference and/or the width difference are/is larger than a preset difference threshold, determining a height difference rate according to the reference height and the page height parameters; determining a width difference rate according to the reference width and the page width parameter; and adjusting the target display parameters of the target page to be displayed according to the height difference rate and the width difference rate to obtain the target display parameters.
It should be noted that, whether the page display parameters need to be adjusted currently may be determined according to the height difference and the width difference.
The preset difference threshold is determined according to actual experience, optionally, the optimum display ratio is determined through multiple experiments when the pages or images with different display ratios are displayed on the display device, and then the range of the difference threshold is determined. If the height difference or the width difference is larger than the preset difference threshold, the actual size of the target image to be displayed is smaller, and the target image to be displayed can be amplified. Correspondingly, if the height difference or the width difference is smaller than the preset difference threshold, it indicates that the actual size of the target page or image to be displayed is larger, and the target page or image to be displayed cannot be displayed completely when displayed on the current display device, and at this time, the page display parameters of the target page to be displayed can be reduced. The width difference rate may be a rate determined from the page width parameter and the reference width. The altitude difference rate is a rate determined from the page altitude parameter and the reference altitude. The width difference rate may be a value obtained by dividing the reference width by the page width parameter. Accordingly, the height difference rate may be a value obtained by dividing the reference height by the page height parameter.
Specifically, if the height difference or the width difference is greater than the preset difference threshold, it indicates that the page display parameter of the target page to be displayed needs to be adjusted. That is, the target page to be displayed does not fit the size of the current display device. At this time, the ratio between the reference height and the page height parameter may be calculated to obtain the height difference rate, and the ratio between the reference width and the page width parameter may be calculated to obtain the width difference rate. The target display parameters of the target page to be displayed can be adjusted according to the height difference rate and the width difference rate to obtain the target display parameters.
In this embodiment, the adjusting the page display parameters according to the height difference rate and the width difference rate may be: when the height difference rate and/or the width difference rate are/is larger than a preset difference rate threshold, amplifying the page display parameters to obtain the target display parameters; and when the height difference rate and/or the width difference rate are/is smaller than a preset difference rate threshold, carrying out reduction processing on the page display parameters to obtain the target display parameters.
Specifically, if the height difference rate or the width difference rate is greater than the preset difference rate threshold, it indicates that the page display parameter of the target page to be displayed needs to be amplified. Correspondingly, if the height difference value and the width difference value are smaller than the preset difference value threshold, it indicates that the page display parameters of the target page to be displayed need to be reduced.
Illustratively, if the height difference rate or the width difference rate is smaller than a preset difference rate threshold 1, the page display parameter is enlarged. Otherwise, it indicates that the reduction process is required. If the height difference rate or the width difference rate is equal to the preset difference rate threshold, it is indicated that the display may be directly displayed without processing.
In the present embodiment, after it is determined that the enlargement or reduction process is required, a specific enlargement or reduction ratio may be determined. Optionally, the enlarging and reducing processes include: determining a minimum difference rate according to the width difference rate and the length difference rate; and amplifying or reducing the page display parameters based on the minimum difference rate to obtain the target display parameters.
Specifically, after the difference between the width difference rate and the length difference rate is calculated to obtain the minimum difference rate, the minimum difference rate may be used as the scale for enlarging or reducing, and the page width parameter or the page height parameter may be enlarged or reduced based on the minimum difference rate.
In the present embodiment, the reason why the height difference rate and the width difference rate are determined is that: when the page display parameters are amplified or reduced, the specific amplification or reduction proportion of the page display parameters needs to be determined, the optimal amplification or reduction proportion can be determined based on the difference between the height difference rate and the width difference rate, and then the page display parameters are amplified or reduced based on the optimal proportion, so that the target display parameters are obtained, and the target display parameters are matched with the current display equipment.
S130, adjusting the display size of the target page to be displayed based on the target display parameters to obtain a target page, and displaying the target page on the current display equipment.
And the target page is a page obtained after page display parameters are adjusted.
Specifically, the page display parameters of the target page to be displayed are adjusted according to the page width and the page height in the target display parameters, so that the target page is obtained. The target page may be displayed on the current display device.
According to the technical scheme of the embodiment of the invention, the device display parameters of the current display device are obtained, the target reference display parameters corresponding to the device display parameters are determined, the page display parameters are determined how to adjust the page display parameters according to the target reference display parameters and the page display parameters of the target page to be displayed, so that the target display parameters of the target page to be displayed are obtained, and the target page to be displayed is displayed on the current display device based on the target display parameters, so that the display page parameters are automatically adjusted according to the device parameters of the display device, the adaptability between the target page and the display device is improved, and the technical effect of the user experience is further improved.
Example two
As an optional embodiment of the foregoing embodiment, fig. 2 is a flowchart illustrating a method for determining a target display page according to a second embodiment of the present invention.
Referring to fig. 2, when an operation of triggering a display target page to be displayed is detected, device parameters, i.e., device resolution, of a current display device are obtained based on a pre-developed program script, and optionally, a reference width and a reference height corresponding to a display screen of the current display device. Meanwhile, the page display parameters of the target page to be displayed, namely the page width parameter and the page height parameter, can be obtained. For each display device with a different resolution, a trigger adjustment threshold corresponding to the current display device may be determined. Optionally, when it is determined that the difference between the page width parameter and the reference width is greater than the preset difference threshold, or when the difference between the page height parameter and the reference height is greater than the preset difference threshold, it indicates that the page display parameter of the target page to be displayed needs to be processed to obtain the target display parameter. Optionally, if it is determined that the page parameter needs to be processed, the ratio between the reference width and the page height parameter may be calculated to obtain a width difference rate, and meanwhile, the ratio between the reference height and the page height may be calculated to obtain a height difference rate. If the height difference rate or the width difference rate is larger than a preset difference rate threshold, it indicates that the zooming-in process is needed, otherwise, it indicates that the zooming-out process is needed. Of course, if the width difference rate or the height difference rate is equal to the preset difference rate threshold, it indicates that it is not necessary to process it. After the determination is the enlargement or reduction processing, the optimum enlargement or reduction magnification may be determined, optionally, the difference between the height difference rate and the width difference rate is calculated to obtain the minimum difference rate, the page display parameter may be enlarged or reduced based on the minimum difference rate to obtain the target display parameter, and the target page to be displayed may be adjusted based on the target display parameter to obtain the target page displayed on the current display device.
It should be noted that, as long as the corresponding page or image is displayed on the display device, the technical solution disclosed in the embodiments of the present invention may be adopted to determine the optimal display ratio, so as to improve the display effect and further improve the technical effect of the user experience.
That is to say, after the dynamic adjustment, the target page is very adaptive to the current display device, so that the user experience can be improved when the user browses the corresponding page based on the current display device.
The technical scheme can be as follows: dynamically acquiring the resolution of the equipment by the script; setting a threshold value for triggering adjustment aiming at each screen resolution, and when the difference value between the length or width of the screen resolution and the width or height of the page content is larger than the set threshold value; calculating a length difference rate and a height difference rate; dividing the length of the screen resolution by the width of the page content to obtain a length difference rate, and dividing the width of the screen resolution by the height of the page content to obtain a height difference rate; when the length difference rate and the height difference rate are both greater than 1, the page needs to be amplified; when the length difference rate and the height difference rate are both equal to 1, no processing is required to be carried out on the page; otherwise, the reduction process is needed in other situations. And comparing the length difference rate with the height difference rate to obtain the minimum difference rate, namely the optimal multiple of the page needing to be amplified or reduced. And amplifying or reducing the target page to be displayed based on the optimal multiple to obtain the target page.
According to the technical scheme of the embodiment of the invention, the device display parameters of the current display device are obtained, the target reference display parameters corresponding to the device display parameters are determined, the page display parameters are determined how to adjust the page display parameters according to the target reference display parameters and the page display parameters of the target page to be displayed, so that the target display parameters of the target page to be displayed are obtained, and the target page to be displayed is displayed on the current display device based on the target display parameters, so that the display page parameters are automatically adjusted according to the device parameters of the display device, the adaptability between the target page and the display device is improved, and the technical effect of the user experience is further improved.
EXAMPLE III
Fig. 3 is a schematic structural diagram of an indicator light control device applied to a vehicle according to a third embodiment of the present invention, where the device includes: a baseline display parameter determination module 310, a target display parameter determination module 320, and a target display page determination module 330.
The reference display parameter determining module 310 is configured to obtain a device display parameter of a current display device, and determine a target reference display parameter corresponding to the device display parameter; a target display parameter determining module 320, configured to determine a target display parameter of a target page to be displayed according to the target reference display parameter and a page display parameter of the target page to be displayed; and the target display page determining module 330 is configured to adjust the display size of the target page to be displayed based on the target display parameter to obtain a target page, and display the target page on the current display device.
According to the technical scheme of the embodiment of the invention, the device display parameters of the current display device are obtained, the target reference display parameters corresponding to the device display parameters are determined, the page display parameters are determined to be adjusted according to the target reference display parameters and the page display parameters of the target page to be displayed, so that the target display parameters of the target page to be displayed are obtained, and the target page to be displayed is displayed on the current display device based on the target display parameters, so that the display page parameters are automatically adjusted according to the device parameters of the display device, the adaptability between the target page and the display device is improved, and the technical effect of user experiment experience is further improved.
On the basis of the above technical solution, the reference display parameters include:
the device display parameter determining unit is used for acquiring the device display parameters of the current display device based on a preset program code when the control for displaying the target page is detected;
and the reference display parameter determining unit is used for determining target reference display parameters corresponding to the equipment display parameters according to the pre-established corresponding relation between the equipment display parameters and the reference display parameters.
On the basis of the above technical solution, the target display parameter determining module includes:
the parameter determining unit is used for acquiring the target page to be displayed and determining a page width parameter and a page height parameter of the target page to be displayed;
and the target display parameter determining unit is used for determining the target display parameters of the target page to be displayed according to the reference width and the reference height in the target reference display parameters and the page width parameters and the page height parameters of the target page to be displayed.
On the basis of the above technical solution, the target display parameter determining module includes:
a width difference determining unit, configured to determine a width difference according to the reference width and the page width parameter;
the height difference value determining unit is used for determining a height difference value according to the reference height and the page height parameter;
and the target display parameter determining unit is used for determining the target display parameters of the target page to be displayed based on the height difference value and the width difference value.
On the basis of the technical scheme, the target display parameter determining unit is used for determining a height difference rate according to the reference height and the page height parameter when the height difference and/or the width difference is larger than a preset difference threshold; and according to the reference width and the page width parameters, determining a width difference rate, and according to the height difference rate and the width difference rate, adjusting target display parameters of the target page to be displayed to obtain the target display parameters.
On the basis of the above technical solution, the target display parameter determining unit is configured to, when the height difference rate and/or the width difference rate is greater than a preset difference rate threshold, perform amplification processing on the page display parameter to obtain the target display parameter;
and when the height difference rate and/or the width difference rate are/is smaller than a preset difference rate threshold, carrying out reduction processing on the page display parameters to obtain the target display parameters.
On the basis of the above technical solution, the apparatus further includes a processing module, and the enlarging processing and the reducing processing include:
determining a minimum difference rate according to the width difference rate and the length difference rate; and amplifying or reducing the page display parameters based on the minimum difference rate to obtain the target display parameters.
According to the technical scheme of the embodiment of the invention, the device display parameters of the current display device are obtained, the target reference display parameters corresponding to the device display parameters are determined, the page display parameters are determined to be adjusted according to the target reference display parameters and the page display parameters of the target page to be displayed, so that the target display parameters of the target page to be displayed are obtained, and the target page to be displayed is displayed on the current display device based on the target display parameters, so that the display page parameters are automatically adjusted according to the device parameters of the display device, the adaptability between the target page and the display device is improved, and the technical effect of user experiment experience is further improved.
The device for determining the display page provided by the embodiment of the invention can execute the method for determining the display page provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method.
It should be noted that, the units and modules included in the apparatus are merely divided according to functional logic, but are not limited to the above division as long as the corresponding functions can be implemented; in addition, specific names of the functional units are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the embodiment of the invention.
Example four
Fig. 4 is a schematic structural diagram of an electronic device according to a fourth embodiment of the present invention. FIG. 4 illustrates a block diagram of an exemplary electronic device 40 suitable for use in implementing embodiments of the present invention. The electronic device 40 shown in fig. 4 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiment of the present invention.
As shown in fig. 4, electronic device 40 is embodied in the form of a general purpose computing device. The components of electronic device 40 may include, but are not limited to: one or more processors or processing units 401, a system memory 402, and a bus 403 that couples the various system components (including the system memory 402 and the processing unit 401).
Bus 403 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures. By way of example, such architectures include, but are not limited to, Industry Standard Architecture (ISA) bus, micro-channel architecture (MAC) bus, enhanced ISA bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
Electronic device 40 typically includes a variety of computer system readable media. Such media may be any available media that is accessible by electronic device 40 and includes both volatile and nonvolatile media, removable and non-removable media.
The system memory 402 may include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM)404 and/or cache memory 405. The electronic device 40 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 406 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 4, and commonly referred to as a "hard drive"). Although not shown in FIG. 4, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to the bus 403 by one or more data media interfaces. Memory 402 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the invention.
A program/utility 408 having a set (at least one) of program modules 407 may be stored, for example, in memory 402, such program modules 407 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which examples or some combination thereof may comprise an implementation of a network environment. Program modules 407 generally perform the functions and/or methods of the described embodiments of the invention.
The electronic device 40 may also communicate with one or more external devices 409 (e.g., keyboard, pointing device, display 410, etc.), with one or more devices that enable a user to interact with the electronic device 40, and/or with any devices (e.g., network card, modem, etc.) that enable the electronic device 40 to communicate with one or more other computing devices. Such communication may be through input/output (I/O) interface 411. Also, the electronic device 40 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the internet) via the network adapter 412. As shown, the network adapter 412 communicates with the other modules of the electronic device 40 over the bus 403. It should be appreciated that although not shown in FIG. 4, other hardware and/or software modules may be used in conjunction with electronic device 40, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
The processing unit 401 executes various functional applications and data processing by executing programs stored in the system memory 402, for example, to implement the method for determining a display page provided by the embodiment of the present invention.
EXAMPLE five
Embodiments of the present invention also provide a storage medium containing computer-executable instructions that, when executed by a computer processor, perform a method of determining a display page.
The method comprises the following steps:
acquiring equipment display parameters of current display equipment, and determining target reference display parameters corresponding to the equipment display parameters;
determining target display parameters of the target page to be displayed according to the target reference display parameters and the page display parameters of the target page to be displayed;
and adjusting the display size of the target page to be displayed based on the target display parameters to obtain a target page, and displaying the target page on the current display equipment.
Computer storage media for embodiments of the invention may employ any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for embodiments of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (10)

1. A method for determining a display page, comprising:
acquiring equipment display parameters of current display equipment, and determining target reference display parameters corresponding to the equipment display parameters;
determining target display parameters of the target page to be displayed according to the target reference display parameters and the page display parameters of the target page to be displayed;
and adjusting the display size of the target page to be displayed based on the target display parameters to obtain a target page, and displaying the target page on the current display equipment.
2. The method of claim 1, wherein obtaining device display parameters of a current display device and determining reference display parameters corresponding to the device display parameters comprises:
when a control triggering display of a target page is detected, acquiring equipment display parameters of the current display equipment based on a preset program code;
and determining target reference display parameters corresponding to the equipment display parameters according to the pre-established corresponding relationship between the equipment display parameters and the reference display parameters.
3. The method according to claim 1, wherein the determining the target display parameter of the target page to be displayed according to the target reference display parameter and the page display parameter of the target page to be displayed comprises:
acquiring the target page to be displayed, and determining a page width parameter and a page height parameter of the target page to be displayed;
and determining target display parameters of the target page to be displayed according to the reference width and the reference height in the target reference display parameters and the page width parameters and the page height parameters of the target page to be displayed.
4. The method according to claim 3, wherein the determining the target display parameters of the target page to be displayed according to the reference width and the reference height in the target reference display parameters and the page width parameter and the page height parameter of the target page to be displayed comprises:
determining a width difference value according to the reference width and the page width parameter;
determining a height difference value according to the reference height and the page height parameter;
and determining target display parameters of the target page to be displayed based on the height difference and the width difference.
5. The method according to claim 4, wherein the determining the target display parameter of the target page to be displayed based on the height difference value and the width difference value comprises:
when the height difference and/or the width difference is larger than a preset difference threshold, determining a height difference rate according to the reference height and the page height parameters; and the number of the first and second groups,
determining a width difference rate according to the reference width and the page width parameter;
and adjusting the target display parameters of the target page to be displayed according to the height difference rate and the width difference rate to obtain the target display parameters.
6. The method according to claim 5, wherein the adjusting the target display parameter of the target page to be displayed according to the height difference rate and the width difference rate to obtain the target display parameter comprises:
when the height difference rate and/or the width difference rate are/is larger than a preset difference rate threshold, amplifying the page display parameters to obtain the target display parameters;
and when the height difference rate and/or the width difference rate are/is smaller than a preset difference rate threshold, carrying out reduction processing on the page display parameters to obtain the target display parameters.
7. The method according to claim 6, wherein the enlarging process and the reducing process include:
determining a minimum difference rate according to the width difference rate and the height difference rate;
and amplifying or reducing the page display parameters based on the minimum difference rate to obtain the target display parameters.
8. An apparatus for determining a display page, comprising:
the device comprises a reference display parameter determining module, a reference display parameter determining module and a display parameter setting module, wherein the reference display parameter determining module is used for acquiring the device display parameters of the current display device and determining target reference display parameters corresponding to the device display parameters;
the target display parameter determining module is used for determining the target display parameters of the target page to be displayed according to the target reference display parameters and the page display parameters of the target page to be displayed;
and the target display page determining module is used for adjusting the display size of the target page to be displayed based on the target display parameters to obtain a target page, and displaying the target page on the current display equipment.
9. An electronic device, characterized in that the electronic device comprises:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement a method of determining display pages as claimed in any one of claims 1-7.
10. A storage medium containing computer-executable instructions for performing the method of determining display pages of any of claims 1-7 when executed by a computer processor.
CN202110890061.XA 2021-08-04 2021-08-04 Method and device for determining display page, electronic equipment and storage medium Pending CN113626120A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110890061.XA CN113626120A (en) 2021-08-04 2021-08-04 Method and device for determining display page, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110890061.XA CN113626120A (en) 2021-08-04 2021-08-04 Method and device for determining display page, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN113626120A true CN113626120A (en) 2021-11-09

Family

ID=78382520

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110890061.XA Pending CN113626120A (en) 2021-08-04 2021-08-04 Method and device for determining display page, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113626120A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023142998A1 (en) * 2022-01-27 2023-08-03 京东方科技集团股份有限公司 Page configuration method, page configuration system, electronic device and readable storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102662616A (en) * 2012-03-28 2012-09-12 北京邮电大学 Screen graphics self-adaption method and system used for mobile terminal
CN107220050A (en) * 2017-05-25 2017-09-29 努比亚技术有限公司 Adaptive display method, terminal and computer-readable recording medium
CN109254813A (en) * 2018-08-20 2019-01-22 中国平安人寿保险股份有限公司 Screen adaptation method, device, computer equipment and storage medium
CN109582549A (en) * 2017-09-28 2019-04-05 北京国双科技有限公司 A kind of recognition methods of device type and device
CN109783181A (en) * 2019-01-31 2019-05-21 掌阅科技股份有限公司 Screen is adapted to display methods, electronic equipment and computer storage medium
CN112764752A (en) * 2020-02-24 2021-05-07 微民保险代理有限公司 Page display method and device, storage medium and electronic device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102662616A (en) * 2012-03-28 2012-09-12 北京邮电大学 Screen graphics self-adaption method and system used for mobile terminal
CN107220050A (en) * 2017-05-25 2017-09-29 努比亚技术有限公司 Adaptive display method, terminal and computer-readable recording medium
CN109582549A (en) * 2017-09-28 2019-04-05 北京国双科技有限公司 A kind of recognition methods of device type and device
CN109254813A (en) * 2018-08-20 2019-01-22 中国平安人寿保险股份有限公司 Screen adaptation method, device, computer equipment and storage medium
CN109783181A (en) * 2019-01-31 2019-05-21 掌阅科技股份有限公司 Screen is adapted to display methods, electronic equipment and computer storage medium
CN112764752A (en) * 2020-02-24 2021-05-07 微民保险代理有限公司 Page display method and device, storage medium and electronic device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023142998A1 (en) * 2022-01-27 2023-08-03 京东方科技集团股份有限公司 Page configuration method, page configuration system, electronic device and readable storage medium

Similar Documents

Publication Publication Date Title
CN108733336B (en) Page display method and device
CN107204023B (en) Method and apparatus for avoiding distortion of graphics drawn in canvas
CN109618225B (en) Video frame extraction method, device, equipment and medium
CN113626743A (en) Method and device for determining target display page, electronic equipment and storage medium
CN110032701B (en) Image display control method and device, storage medium and electronic equipment
CN107315729B (en) Data processing method, medium, device and computing equipment for chart
CN108008876B (en) Display method, device and equipment of floating window and storage medium
CN107301220B (en) Method, device and equipment for data driving view and storage medium
CN111241043A (en) Multimedia file sharing method, terminal and storage medium
CN111603767A (en) Method, terminal and storage medium for adjusting resolution
CN113626120A (en) Method and device for determining display page, electronic equipment and storage medium
CN109165372B (en) Webpage loading method, device, equipment and storage medium
CN107862035B (en) Network reading method and device for conference record, intelligent tablet and storage medium
CN111008934B (en) Scene construction method, device, equipment and storage medium
CN111966473B (en) Operation method and device of linear regression task and electronic equipment
CN111063011B (en) Face image processing method, device, equipment and medium
CN108259958B (en) Remote control key response method, device, equipment and storage medium
CN114356475B (en) Display processing method, device, equipment and storage medium
CN111696154B (en) Coordinate positioning method, device, equipment and storage medium
CN114528509A (en) Page display processing method and device, electronic equipment and storage medium
CN108563605B (en) Method and device for adjusting refresh rate of electronic reader and computer storage medium
CN114490266A (en) Data acquisition method, device, equipment and storage medium
CN113919997A (en) Watermark processing method and device, electronic equipment and storage medium
CN109756696B (en) Station caption adding method, video conference image generating method, system, device and medium
CN109739403B (en) Method and apparatus for processing information

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination