Image display methods, devices, storage media, and electronic devices
By identifying and generating the coordinate information of the scaled image in the display device, the inefficiency caused by waiting for image scaling to be generated is solved, and more efficient image display is achieved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-01
- Publication Date
- 2026-04-03
AI Technical Summary
Existing technologies suffer from reduced user efficiency due to the need to wait for image scaling to be generated.
By recognizing the coordinate information of the initial image on the display device, scaling coordinate information is generated according to a preset ratio, and the pre-generated image is directly displayed when a scaling command is received, avoiding waiting for the generation process.
It improves the display efficiency of image scaling, reduces user waiting time, and enhances operational efficiency.
Smart Images

Figure CN115963966B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of image processing, and more specifically, to an image display method, apparatus, storage medium, and electronic device. Background Technology
[0002] When creating images, it is sometimes necessary to zoom in or out to achieve a better viewing experience.
[0003] Currently, when zooming in and out of images, upon receiving the zoom command, the system typically needs to generate the zoomed-out version of the current image and display it on the screen in real time. However, when generating zoomed-out images, especially when displaying a large amount of image content, the image display on the screen can become sluggish. This forces users to wait for the zoomed-out image to finish generating before they can operate on it, thus reducing user efficiency.
[0004] There is currently no effective solution to the problem that users' drawing efficiency is reduced because they have to wait for the generation of scaled images in related technologies. Summary of the Invention
[0005] This application provides an image display method, apparatus, storage medium, and electronic device to solve the problem in related technologies where the user's drawing efficiency is reduced due to the need to wait for the generation of scaled images.
[0006] According to one aspect of this application, an image display method is provided. The method includes: identifying an initial display image in a display device and determining the coordinate information of the initial display image to obtain initial coordinate information; scaling the initial coordinate information according to a preset ratio to obtain scaled coordinate information, and generating a target display image based on the scaled coordinate information; acquiring an operation command received by the display device and determining whether the operation command is a scaling command; if the operation command is not a scaling command, identifying the current display image displayed by the display device after executing the operation command, adjusting the target display image based on the current display image to obtain an updated target display image, and re-executing the step of determining whether the operation command is a scaling command when the next operation command received by the display device is acquired; and if the operation command is a scaling command, sending the target display image to the display device.
[0007] Optionally, identifying the initial display image in the display device and determining the coordinate information of the initial display image, obtaining the initial coordinate information includes: identifying the initial display image in the display device and obtaining multiple graphic elements; acquiring the coordinate information of each graphic element in the initial display image to obtain multiple sets of first sub-coordinate information, and determining the multiple sets of first sub-coordinate information as the initial coordinate information; scaling the initial coordinate information according to a preset ratio to obtain scaled coordinate information includes: scaling the multiple sets of first sub-coordinate information according to a preset ratio to obtain multiple sets of first sub-scaled coordinate information, and combining the multiple sets of first sub-scaled coordinate information to determine the scaled coordinate information.
[0008] Optionally, adjusting the target display image based on the current display image to obtain an updated target display image includes: identifying multiple repeating primitives between the current display image and the initial display image; obtaining primitives in the current display image that are not covered by multiple repeating primitives, and composing the updated initial display image from the primitives not covered by multiple repeating primitives; obtaining the coordinate information of each primitive in the updated initial display image, obtaining multiple sets of second sub-coordinate information, and scaling the multiple sets of second sub-coordinate information according to a preset ratio to obtain multiple updated sub-scaled coordinate information; and combining the multiple updated sub-scaled coordinate information with the sub-coordinate information of multiple repeating primitives to obtain the updated target display image.
[0009] Optionally, adjusting the target display image based on the current display image to obtain an updated target display image includes: deleting the initial coordinate information and the target display image, determining the current display image as the updated initial display image; performing scaling on the initial coordinate information according to a preset ratio using the updated initial display image to obtain scaled coordinate information, and generating the target display image based on the scaled coordinate information, thereby obtaining the updated target display image.
[0010] Optionally, after obtaining the operation instruction received by the display device, the method further includes: if the operation instruction is a scaling instruction, determining whether the step of generating the target display image based on the scaling coordinate information has been completed; if the step of generating the target display image based on the scaling coordinate information has not been completed, sending the initial coordinate information to the target buffer, generating the target display image in the target buffer, and sending the target display image to the display device.
[0011] Optionally, the preset ratio includes a preset magnification ratio and a preset reduction ratio. Scaling the initial coordinate information according to the preset ratio to obtain the scaled coordinate information includes: obtaining the preset magnification ratio in the preset ratio and magnifying the initial coordinate information according to the preset magnification ratio to obtain magnified coordinate information; or obtaining the preset reduction ratio in the preset ratio and reducing the initial coordinate information according to the preset reduction ratio to obtain reduced coordinate information.
[0012] Optionally, when the operation instruction is a zoom instruction, sending the target display image to the display device includes: when the operation instruction is a zoom-in instruction, the target display image is a first display image generated from zoom-in coordinate information, and the first display image is sent to the display device; when the operation instruction is a zoom-out instruction, the target display image is a second display image generated from zoom-out coordinate information, and the second display image is sent to the display device.
[0013] According to another aspect of this application, an image display apparatus is provided. The apparatus includes: a first identification unit, configured to identify an initial display image in a display device and determine the coordinate information of the initial display image to obtain initial coordinate information; a generation unit, configured to scale the initial coordinate information according to a preset ratio to obtain scaled coordinate information, and generate a target display image based on the scaled coordinate information; a first judgment unit, configured to acquire an operation instruction received by the display device and determine whether the operation instruction is a scaling instruction; a second identification unit, configured to, if the operation instruction is not a scaling instruction, identify the current display image displayed by the display device after the operation instruction has been executed, adjust the target display image based on the current display image to obtain an updated target display image, and, upon acquiring another operation instruction received by the display device, again execute the step of determining whether the operation instruction is a scaling instruction; and a first sending unit, configured to send the target display image to the display device if the operation instruction is a scaling instruction.
[0014] According to another aspect of the present invention, a computer storage medium is also provided for storing a program, wherein the program, when running, controls the device where the computer storage medium is located to execute an image display method.
[0015] According to another aspect of the present invention, an electronic device is also provided, comprising one or more processors and a memory; the memory stores computer-readable instructions, and the processor is configured to execute the computer-readable instructions, wherein the computer-readable instructions execute an image display method when executed.
[0016] This application employs the following steps: identifying the initial display image on the display device and determining its coordinate information to obtain initial coordinate information; scaling the initial coordinate information according to a preset ratio to obtain scaled coordinate information, and generating a target display image based on the scaled coordinate information; acquiring an operation command received by the display device and determining whether the operation command is a scaling command; if the operation command is not a scaling command, identifying the current display image displayed by the display device after executing the operation command, adjusting the target display image based on the current display image to obtain an updated target display image, and repeating the step of determining whether the operation command is a scaling command the next time an operation command is received by the display device; if the operation command is a scaling command, sending the target display image to the display device. This solves the problem in related technologies where waiting for the generation of a scaled image reduces user drawing efficiency. By identifying the initial display image before the user issues an operation command and generating the coordinate information of the scaled image based on the coordinate information of the initial display image, a scaled or enlarged image can be generated in advance. When a scaling command is detected, the pre-generated image is directly displayed based on the scaling command, thereby improving the display efficiency of scaled images. Attached Figure Description
[0017] The accompanying drawings, which form part of this application, are used to provide a further understanding of this application. The illustrative embodiments and descriptions of this application are used to explain this application and do not constitute an undue limitation of this application. In the drawings:
[0018] Figure 1 This is a flowchart of an image display method provided according to an embodiment of this application;
[0019] Figure 2 This is a flowchart of an optional image display method provided according to an embodiment of this application;
[0020] Figure 3 This is a flowchart of an optional image display method provided according to an embodiment of this application;
[0021] Figure 4 This is a schematic diagram of an image display device provided according to an embodiment of this application. Detailed Implementation
[0022] It should be noted that, unless otherwise specified, the embodiments and features described in this application can be combined with each other. This application will now be described in detail with reference to the accompanying drawings and embodiments.
[0023] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present application, and not all embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative effort should fall within the scope of protection of the present application.
[0024] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate for the embodiments of this application described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0025] It should be noted that all information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for display, data used for analysis, etc.) involved in this disclosure are information and data authorized by the user or fully authorized by all parties. For example, this system has an interface with relevant users or organizations. Before obtaining relevant information, it is necessary to send an acquisition request to the aforementioned user or organization through the interface, and obtain the relevant information after receiving consent information from the aforementioned user or organization.
[0026] According to an embodiment of this application, an image display method is provided.
[0027] Figure 1 This is a flowchart of an image display method provided according to an embodiment of this application. For example... Figure 1 As shown, the method includes the following steps:
[0028] Step S102: Identify the initial display image in the display device and determine the coordinate information of the initial display image to obtain the initial coordinate information.
[0029] Specifically, a display device can be a device for drawing images for a user. When the user completes the image drawing, there may be a standby state, that is, the user does not issue any commands on the display device. At this time, the initial display image currently displayed on the display device can be identified, and the coordinate information of the initial display image in the display device can be determined, thereby obtaining the initial coordinate information.
[0030] Step S104: Scale the initial coordinate information according to a preset ratio to obtain scaled coordinate information, and generate the target display image based on the scaled coordinate information.
[0031] Specifically, the preset ratio is a preset scaling ratio. When scaling, since the preset scaling ratio is fixed, the display ratio after magnification and reduction can be determined according to the current image scaling ratio. Thus, the initial coordinates are scaled according to the preset scaling ratio, and multiple points in the initial display image are moved to the corresponding positions after reduction or magnification. The target display image is generated according to the adjusted scaling coordinate information. The target display image includes a reduced display image obtained by reducing the initial display image according to the preset ratio, and an enlarged display image obtained by enlarging the initial display image according to the preset ratio.
[0032] It should be noted that the generated target display data can be stored in the same buffer, or the enlarged display image and the reduced display image can be stored in two separate buffers. The storage method can be adjusted according to the number of buffers and usage.
[0033] Step S106: Obtain the operation command received by the display device and determine whether the operation command is a scaling command.
[0034] Specifically, since users may perform various operations on the display interface, such as moving the image left or right, or increasing or decreasing the number of lines, it is necessary to determine whether the user's operation command is a zoom command in order to proceed with subsequent operations.
[0035] Step S108: If the operation instruction is not a scaling instruction, identify the current display image displayed by the display device after the operation instruction is executed, adjust the target display image according to the current display image to obtain the updated target display image, and execute the step of determining whether the operation instruction is a scaling instruction again when the next operation instruction received by the display device is obtained.
[0036] Specifically, in the absence of a scaling command, this indicates a change from standby / idle state to image modification state. At this point, after the display device executes the user-sent operation command and returns to idle state, it needs to re-identify the currently displayed image and adjust the target display image accordingly to obtain an updated target display image. This ensures that when a scaling command is received again, the image returned to the display device is the scaled image corresponding to the currently displayed image.
[0037] In step S110, if the operation command is a scaling command, the target display image is sent to the display device.
[0038] Specifically, when the operation command is a scaling command, it indicates that the user needs to obtain the completed target display image. In this case, the completed target display image can be directly sent to the display device, thereby saving the generation time of the scaled image.
[0039] The image display method provided in this application embodiment identifies an initial display image in a display device and determines its coordinate information to obtain initial coordinate information; scales the initial coordinate information according to a preset ratio to obtain scaled coordinate information, and generates a target display image based on the scaled coordinate information; acquires an operation command received by the display device and determines whether the operation command is a scaling command; if the operation command is not a scaling command, identifies the current display image displayed by the display device after the operation command is executed, adjusts the target display image based on the current display image to obtain an updated target display image, and repeats the step of determining whether the operation command is a scaling command when the next operation command is acquired from the display device; if the operation command is a scaling command, the target display image is sent to the display device. This solves the problem in related technologies where waiting for the generation of a scaled image reduces user drawing efficiency. By identifying the initial display image and generating the coordinate information of the scaled image based on the coordinate information of the initial display image before the user issues an operation command, a scaled or enlarged image can be generated in advance. When a scaling command is detected, the pre-generated image is directly displayed based on the scaling command, thereby improving the display efficiency of scaled images.
[0040] Optionally, in the image display method provided in this application embodiment, identifying the initial display image in the display device and determining the coordinate information of the initial display image to obtain the initial coordinate information includes: identifying the initial display image in the display device to obtain multiple graphic elements; obtaining the coordinate information of each graphic element in the initial display image to obtain multiple sets of first sub-coordinate information, and determining the multiple sets of first sub-coordinate information as the initial coordinate information; scaling the initial coordinate information according to a preset ratio to obtain scaled coordinate information includes: scaling the multiple sets of first sub-coordinate information according to a preset ratio to obtain multiple sets of first sub-scaled coordinate information, and combining the multiple sets of first sub-scaled coordinate information to determine the scaled coordinate information.
[0041] Specifically, since the initial display image is composed of multiple primitives, when determining the coordinates of the initial display image, multiple sub-coordinate information corresponding to each primitive in the initial display image can be determined, thereby obtaining multiple sets of sub-coordinate information. Each set of sub-coordinates is then adjusted to the scaled coordinates according to preset rules, thus obtaining the scaled image corresponding to the target display image.
[0042] Optionally, in the image display method provided in this application embodiment, adjusting the target display image according to the current display image to obtain an updated target display image includes: step S202, identifying multiple repeating primitives between the current display image and the initial display image; step S204, obtaining primitives in the current display image that are not covered by multiple repeating primitives, and forming an updated initial display image from the primitives not covered by multiple repeating primitives; step S206, obtaining the coordinate information of each primitive in the updated initial display image, obtaining multiple sets of second sub-coordinate information, and scaling the multiple sets of second sub-coordinate information according to a preset ratio to obtain multiple updated sub-scaled coordinate information; step S208, combining the multiple updated sub-scaled coordinate information with the sub-coordinate information of multiple repeating primitives to obtain the updated target display image.
[0043] Specifically, Figure 2 This is a flowchart of an optional image display method provided according to an embodiment of this application, such as... Figure 2 As shown, when the operation command is not a scaling command, after the display device executes the operation command, the current displayed image is compared with the initial displayed image before the operation command was executed. This allows us to identify the common elements between the current and initial displayed images. Since the sub-scaling coordinates corresponding to the common elements have been determined, we can determine only the non-common element portion of the current displayed image and determine its coordinates and scaling coordinates to obtain updated sub-scaling coordinate information. By combining multiple updated sub-scaling coordinate information with the sub-coordinate information of multiple repeating elements, we can quickly obtain the scaling coordinates corresponding to the current displayed information.
[0044] Optionally, in the image display method provided in this application embodiment, adjusting the target display image according to the current display image to obtain an updated target display image includes: deleting the initial coordinate information and the target display image, determining the current display image as the updated initial display image; performing scaling on the initial coordinate information according to a preset ratio using the updated initial display image to obtain scaled coordinate information, and generating the target display image based on the scaled coordinate information, thereby obtaining the updated target display image.
[0045] Specifically, after executing the operation command, if the current displayed image differs too much from the initial displayed image, that is, if there are no identical graphic elements, the initial coordinate information and the target displayed image can be directly deleted, and the initial coordinate information can be regenerated based on the current displayed image. The coordinate information can then be regenerated by scaling it according to a preset ratio, thereby completing the update of the target displayed image.
[0046] Optionally, in the image display method provided in the embodiments of this application, after obtaining the operation instruction received by the display device, the method further includes: if the operation instruction is a scaling instruction, determining whether the step of generating a target display image based on scaling coordinate information has been completed; if the step of generating a target display image based on scaling coordinate information has not been completed, sending initial coordinate information to a target buffer, generating a target display image in the target buffer, and sending the target display image to the display device.
[0047] Specifically, in some scenarios, the target display image may not have been fully generated before the user issues a scaling command. In this case, the initial coordinate information needs to be sent to the target buffer. The target buffer has a higher image generation efficiency than the buffer used to generate the scaling image. However, the target buffer requires higher hardware specifications and consumes more memory, which may affect other operations. Therefore, the target buffer is only used to generate the scaling image when the user issues a scaling command before the target display image has been fully generated.
[0048] Figure 3 This is a flowchart of an optional image display method provided according to an embodiment of this application, such as... Figure 3 As shown, when an instruction message is received, it is determined whether the instruction message is a scaling instruction. If it is a scaling instruction, it is determined whether the target display image has been generated in the preset buffer. If it has been generated, the target display image is sent from the preset buffer to the display device. If the target display image has not been generated, the initial coordinate information is sent to the target buffer, and the target buffer generates and sends the target display image to the display device.
[0049] Optionally, in the image display method provided in this application embodiment, the preset ratio includes a preset magnification ratio and a preset reduction ratio. Scaling the initial coordinate information according to the preset ratio to obtain the scaled coordinate information includes: obtaining the preset magnification ratio in the preset ratio and magnifying the initial coordinate information according to the preset magnification ratio to obtain magnified coordinate information; or obtaining the preset reduction ratio in the preset ratio and reducing the initial coordinate information according to the preset reduction ratio to obtain reduced coordinate information.
[0050] Specifically, after receiving the initial coordinate information, it is necessary to confirm the magnification and reduction ratios in the preset scale, and determine the magnified coordinate information corresponding to each initial coordinate after magnification based on the magnification ratio, and determine the reduced coordinate information corresponding to each initial coordinate after reduction based on the reduction ratio, so as to obtain the magnified coordinate information and the reduced coordinate information.
[0051] Optionally, in the image display method provided in the embodiments of this application, when the operation instruction is a zoom instruction, sending the target display image to the display device includes: when the operation instruction is a zoom-in instruction, the target display image is a first display image generated by zoom-in coordinate information, and the first display image is sent to the display device; when the operation instruction is a zoom-out instruction, the target display image is a second display image generated by zoom-out coordinate information, and the second display image is sent to the display device.
[0052] Furthermore, after obtaining the zoom-in and zoom-out coordinate information, it can be determined whether the operation command is to zoom in or zoom out. In the case of zooming in, a first display image can be generated based on the zoom-in coordinate information, and the first display image can be sent to the display device as the target display image. Similarly, in the case of the command information being to zoom out, a second display image can be generated based on the zoom-out coordinate information, and the second display image can be sent to the display device as the target display image, thereby achieving the effect of quickly displaying scaled images on the display device according to the command information.
[0053] It should be noted that the steps shown in the flowchart in the accompanying 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 may be executed in a different order than that shown here.
[0054] This application also provides an image display device. It should be noted that the image display device of this application can be used to execute the image display method provided in this application. The image display device provided in this application will be described below.
[0055] Figure 4 This is a schematic diagram of an image display device provided according to an embodiment of this application. For example... Figure 4 As shown, the device includes: a first identification unit 41, a generation unit 42, a first judgment unit 43, a second identification unit 44, and a first sending unit 45.
[0056] The first identification unit 41 is used to identify the initial display image in the display device, determine the coordinate information of the initial display image, and obtain the initial coordinate information;
[0057] The generation unit 42 is used to scale the initial coordinate information according to a preset ratio to obtain scaled coordinate information, and generate a target display image based on the scaled coordinate information;
[0058] The first judgment unit 43 is used to obtain the operation instruction received by the display device and determine whether the operation instruction is a scaling instruction.
[0059] The second identification unit 44 is used to identify the current display image displayed by the display device after the operation instruction is executed when the operation instruction is not a scaling instruction, adjust the target display image according to the current display image to obtain an updated target display image, and perform the step of determining whether the operation instruction is a scaling instruction again when the operation instruction received by the display device is acquired next time.
[0060] The first sending unit 45 is used to send the target display image to the display device when the operation command is a scaling command.
[0061] The image display device provided in this application embodiment includes a first identification unit 41 for identifying an initial display image in the display device and determining the coordinate information of the initial display image to obtain initial coordinate information; a generation unit 42 for scaling the initial coordinate information according to a preset ratio to obtain scaled coordinate information, and generating a target display image based on the scaled coordinate information; a first judgment unit 43 for acquiring an operation command received by the display device and determining whether the operation command is a scaling command; a second identification unit 44 for, if the operation command is not a scaling command, identifying the current display image displayed by the display device after the operation command is executed, adjusting the target display image based on the current display image to obtain an updated target display image, and re-executing the step of determining whether the operation command is a scaling command when the next operation command received by the display device is acquired; and a first sending unit 45 for sending the target display image to the display device when the operation command is a scaling command. This solves the problem in related technologies where waiting for the generation of a scaled image leads to reduced user drawing efficiency. By recognizing the initial display image before the user issues an operation command and generating the coordinate information of the scaled image based on the coordinate information of the initial display image, the system can generate a scaled or enlarged image in advance. When the user issues a scaling command, the system can directly display the pre-generated image according to the scaling command, thereby improving the display efficiency of scaled images.
[0062] Optionally, in the image display device provided in this application embodiment, the first identification unit 41 includes: a first identification module, used to identify the initial display image in the display device and obtain multiple graphic elements; a first acquisition module, used to acquire the coordinate information of each graphic element in the initial display image, obtain multiple sets of first sub-coordinate information, and determine the multiple sets of first sub-coordinate information as initial coordinate information; the generation unit 42 includes: a first scaling module, used to scale the multiple sets of first sub-coordinate information according to a preset ratio, obtain multiple sets of first sub-scaled coordinate information, and combine the multiple sets of first sub-scaled coordinate information to determine the scaled coordinate information.
[0063] Optionally, in the image display device provided in this application embodiment, the second recognition unit 44 includes: a second recognition module, used to recognize multiple repeating graphic elements between the current display image and the initial display image; a second acquisition module, used to acquire graphic elements in the current display image that are not covered by multiple repeating graphic elements, and to form an updated initial display image from the graphic elements not covered by multiple repeating graphic elements; a third acquisition module, used to acquire the coordinate information of each graphic element in the updated initial display image, to obtain multiple sets of second sub-coordinate information, and to scale the multiple sets of second sub-coordinate information according to a preset ratio to obtain multiple updated sub-scaled coordinate information; and a combination module, used to combine the multiple updated sub-scaled coordinate information with the sub-coordinate information of multiple repeating graphic elements to obtain an updated target display image.
[0064] Optionally, in the image display device provided in this application embodiment, the second identification unit 44 includes: a deletion module, used to delete the initial coordinate information and the target display image, and determine the current display image as the updated initial display image; and a second scaling module, used to perform the steps of scaling the initial coordinate information according to a preset ratio through the updated initial display image to obtain scaled coordinate information, and generating the target display image according to the scaled coordinate information, thereby obtaining the updated target display image.
[0065] Optionally, in the image display device provided in the embodiments of this application, the device further includes: a second determining unit, configured to determine whether the step of generating a target display image based on scaling coordinate information is completed when the operation instruction is a scaling instruction; and a second sending unit, configured to send initial coordinate information to a target buffer, generate a target display image in the target buffer, and send the target display image to a display device when the step of generating a target display image based on scaling coordinate information is not completed.
[0066] Optionally, in the image display device provided in the embodiments of this application, the preset ratio includes a preset magnification ratio and a preset reduction ratio. The generation unit 42 includes: a fourth acquisition module, used to acquire the preset magnification ratio in the preset ratio, and magnify the initial coordinate information according to the preset magnification ratio to obtain magnified coordinate information; or a fifth acquisition module, used to acquire the preset reduction ratio in the preset ratio, and reduce the initial coordinate information according to the preset reduction ratio to obtain reduced coordinate information.
[0067] Optionally, in the image display device provided in the embodiments of this application, when the operation instruction is a zoom instruction, the first sending unit 45 includes: a first sending module, used to send the first display image, which is a first display image generated by zoom coordinate information, to the display device when the operation instruction is a zoom-in instruction; and a second sending module, used to send the second display image, which is a second display image generated by zoom coordinate information, to the display device when the operation instruction is a zoom-out instruction.
[0068] The aforementioned image display device includes a processor and a memory. The first recognition unit 41, the generation unit 42, the first judgment unit 43, the second recognition unit 44, the first sending unit 45, etc., are all stored in the memory as program units. The processor executes the aforementioned program units stored in the memory to realize the corresponding functions.
[0069] The processor contains a kernel, which retrieves the corresponding program units from memory. One or more kernels can be configured, and adjusting kernel parameters can address the problem of reduced user drawing efficiency caused by waiting for image scaling to be generated in related technologies.
[0070] The memory may include non-permanent memory in computer-readable media, such as random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM, and the memory includes at least one memory chip.
[0071] This invention provides a computer-readable storage medium storing a program thereon, which, when executed by a processor, implements the image display method.
[0072] This invention provides a processor for running a program, wherein the program executes the image display method during runtime.
[0073] This invention provides an electronic device, including a processor, a memory, and a program stored in the memory and executable on the processor. When the processor executes the program, it performs the following steps: identifying an initial display image in a display device and determining the coordinate information of the initial display image to obtain initial coordinate information; scaling the initial coordinate information according to a preset ratio to obtain scaled coordinate information, and generating a target display image based on the scaled coordinate information; acquiring an operation command received by the display device and determining whether the operation command is a scaling command; if the operation command is not a scaling command, identifying the current display image displayed by the display device after executing the operation command, adjusting the target display image based on the current display image to obtain an updated target display image, and repeating the step of determining whether the operation command is a scaling command the next time an operation command is received by the display device; if the operation command is a scaling command, sending the target display image to the display device. The device in this document can be a server, PC, PAD, mobile phone, etc.
[0074] This application also provides a computer program product, which, when executed on a data processing device, is suitable for executing an initialization program with the following method steps: identifying an initial display image in a display device and determining the coordinate information of the initial display image to obtain initial coordinate information; scaling the initial coordinate information according to a preset ratio to obtain scaled coordinate information, and generating a target display image based on the scaled coordinate information; acquiring an operation instruction received by the display device and determining whether the operation instruction is a scaling instruction; if the operation instruction is not a scaling instruction, identifying the current display image displayed by the display device after the operation instruction is executed, adjusting the target display image based on the current display image to obtain an updated target display image, and, upon acquiring another operation instruction received by the display device, again executing the step of determining whether the operation instruction is a scaling instruction; if the operation instruction is a scaling instruction, sending the target display image to the display device.
[0075] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0076] This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this application. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart... Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.
[0077] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.
[0078] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.
[0079] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0080] Memory may include non-persistent memory in computer-readable media, such as random access memory (RAM) and / or non-volatile memory, like read-only memory (ROM) or flash RAM. Memory is an example of computer-readable media.
[0081] Computer-readable media includes both permanent and non-permanent, removable and non-removable media that can store information using any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, CD-ROM, digital versatile optical disc (DVD) or other optical storage, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other non-transferable medium that can be used to store information accessible by a computing device. As defined herein, computer-readable media does not include transient computer-readable media, such as modulated data signals and carrier waves.
[0082] It should also be noted that the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element.
[0083] The above are merely embodiments of this application and are not intended to limit the scope of this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the scope of the claims of this application.
Claims
1. An image display method, characterized in that, include: Identify the initial display image in the display device and determine the coordinate information of the initial display image to obtain the initial coordinate information; The initial coordinate information is scaled according to a preset ratio to obtain scaled coordinate information, and a target display image is generated based on the scaled coordinate information. Obtain the operation command received by the display device, and determine whether the operation command is a scaling command; If the operation instruction is not the scaling instruction, the current display image displayed by the display device after the operation instruction is executed is identified, the target display image is adjusted according to the current display image to obtain an updated target display image, and the step of determining whether the operation instruction is a scaling instruction is executed again when the operation instruction received by the display device is obtained again. The process of adjusting the target display image based on the current display image to obtain an updated target display image includes: identifying multiple repeating primitives between the current display image and the initial display image; obtaining primitives in the current display image that are not covered by the multiple repeating primitives, and composing the updated initial display image from the primitives not covered by the multiple repeating primitives; obtaining the coordinate information of each primitive in the updated initial display image to obtain multiple sets of second sub-coordinate information, and scaling the multiple sets of second sub-coordinate information according to a preset ratio to obtain multiple updated sub-scaled coordinate information; and combining the multiple updated sub-scaled coordinate information with the sub-coordinate information of the multiple repeating primitives to obtain the updated target display image. When the operation instruction is the scaling instruction, the target display image is sent to the display device.
2. The method according to claim 1, characterized in that, Identify the initial display image in the display device and determine the coordinate information of the initial display image. The initial coordinate information includes: Identify the initial display image in the display device to obtain multiple graphic elements; The coordinate information of each graphic element in the initial display image is obtained to obtain multiple sets of first sub-coordinate information, and the multiple sets of first sub-coordinate information are determined as the initial coordinate information; The initial coordinate information is scaled according to a preset ratio to obtain scaled coordinate information, including: The multiple sets of first sub-coordinate information are scaled according to a preset ratio to obtain multiple sets of first sub-scaled coordinate information, and the multiple sets of first sub-scaled coordinate information are combined to determine the scaled coordinate information.
3. The method according to claim 1, characterized in that, The target display image is adjusted based on the currently displayed image to obtain an updated target display image, including: Delete the initial coordinate information and the target display image, and determine the current display image as the updated initial display image; The updated target display image is obtained by performing the steps of scaling the initial coordinate information according to a preset ratio to obtain scaled coordinate information and generating a target display image based on the scaled coordinate information using the updated initial display image.
4. The method according to claim 2, characterized in that, After acquiring the operation instruction received by the display device, the method further includes: If the operation instruction is a scaling instruction, determine whether the step of generating the target display image based on the scaling coordinate information has been completed; If the step of generating the target display image based on the scaling coordinate information is not completed, the initial coordinate information is sent to the target buffer, the target display image is generated in the target buffer, and the target display image is sent to the display device.
5. The method according to claim 1, characterized in that, The preset ratio includes a preset magnification ratio and a preset reduction ratio. Scaling the initial coordinate information according to the preset ratio yields scaled coordinate information, including: Obtain the preset magnification ratio from the preset ratio, and magnify the initial coordinate information according to the preset magnification ratio to obtain magnified coordinate information; or Obtain the preset reduction ratio from the preset ratio, and reduce the initial coordinate information according to the preset reduction ratio to obtain the reduced coordinate information.
6. The method according to claim 5, characterized in that, When the operation instruction is the scaling instruction, sending the target display image to the display device includes: When the operation command is a zoom-in command, the target display image is a first display image generated from the zoom-in coordinate information, and the first display image is sent to the display device; When the operation command is a zoom-out command, the target display image is a second display image generated from the zoom-out coordinate information, and the second display image is sent to the display device.
7. An image display device, characterized in that, include: The first identification unit is used to identify the initial display image in the display device and determine the coordinate information of the initial display image to obtain the initial coordinate information; The generation unit is used to scale the initial coordinate information according to a preset ratio to obtain scaled coordinate information, and generate a target display image based on the scaled coordinate information; The first judgment unit is used to acquire the operation instruction received by the display device and determine whether the operation instruction is a scaling instruction. The second identification unit is configured to, when the operation instruction is not the scaling instruction, identify the current display image displayed by the display device after the operation instruction is executed, adjust the target display image according to the current display image to obtain an updated target display image, and execute the step of determining whether the operation instruction is a scaling instruction again when the operation instruction received by the display device is obtained again in the next instance. The process of adjusting the target display image based on the current display image to obtain an updated target display image includes: identifying multiple repeating primitives between the current display image and the initial display image; obtaining primitives in the current display image that are not covered by the multiple repeating primitives, and composing the updated initial display image from the primitives not covered by the multiple repeating primitives; obtaining the coordinate information of each primitive in the updated initial display image to obtain multiple sets of second sub-coordinate information, and scaling the multiple sets of second sub-coordinate information according to a preset ratio to obtain multiple updated sub-scaled coordinate information; and combining the multiple updated sub-scaled coordinate information with the sub-coordinate information of the multiple repeating primitives to obtain the updated target display image. The first sending unit is configured to send the target display image to the display device when the operation instruction is the scaling instruction.
8. A computer storage medium, characterized in that, The computer storage medium is used to store a program, wherein the program, when running, controls the device where the computer storage medium is located to execute the image display method according to any one of claims 1 to 6.
9. An electronic device, characterized in that, It includes one or more processors and a memory, the memory being used to store one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors cause the one or more processors to implement the image display method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Drawing display method and device, storage medium and electronic equipment
CN113392246A