Image rendering method, device, equipment and storage medium

By establishing the correspondence between handle value and context value on the client, and directly rendering the image on the client, the problems of network congestion and high server computing volume when transmitting 3D images are solved, and efficient image rendering and server optimization are achieved.

CN111882629BActive Publication Date: 2025-08-22XIAN WANXIANG ELECTRONICS TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202010491777.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-06-02
Publication Date
2025-08-22
Estimated Expiration
2040-06-02

AI Technical Summary

Technical Problem

When transmitting 3D images in the prior art, the large amount of image data leads to network congestion, high server computing volume, and high performance requirements.

Method used

After the client receives the server's image rendering instructions, by establishing the correspondence between the handle value and the context value, the image is directly rendered on the client to avoid large data transmission and high computing volume.

Benefits of technology

Improve image rendering efficiency, reduce network congestion risk and server computing volume, and optimize network bandwidth and server performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111882629B_ABST
    Figure CN111882629B_ABST
Patent Text Reader

Abstract

The present disclosure provides an image rendering method, apparatus, device and storage medium, which relate to the field of image processing technology and can solve the problem that when using existing technologies to transmit 3D images, the amount of image data transmitted is very large and the amount of computing power of the server is very large. The specific technical solution is: receiving an image rendering instruction sent by a server, the image rendering instruction including identification information of an application corresponding to the image to be rendered and a first handle value of a first window; determining a second handle value corresponding to the first handle value based on a first corresponding relationship, the second handle value being the handle value of a second window; and rendering the image to be rendered in the second window based on the second handle value. The present invention is used to improve image rendering efficiency and reduce the amount of computing power of the server.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of image processing, and in particular to an image rendering method, apparatus, device, and storage medium. Background Art

[0002] Currently, when transmitting images, such as online games, 3D videos, or 3D remote desktop transmission, the server usually renders the image and sends the rendered image frame by frame to the client, which decodes and displays it.

[0003] However, when using existing technologies to transmit 3D images, the amount of image data transmitted is very large, which may cause network congestion, so the network bandwidth requirements are very high; on the other hand, the server may need to support the image rendering work of a large number of clients at the same time, and the server's computing power is very large, which places very high performance requirements on the server side. Summary of the Invention

[0004] The present disclosure provides an image rendering method, apparatus, device, and storage medium that can solve the problem of large amounts of image data and high server computational load when transmitting 3D images using existing technologies. The technical solution is as follows:

[0005] According to a first aspect of an embodiment of the present disclosure, there is provided an image rendering method, the method comprising:

[0006] Receive an image rendering instruction sent by a server, where the image rendering instruction includes identification information of an application corresponding to the image to be rendered and a first handle value of the first window;

[0007] Determining a second handle value corresponding to the first handle value according to the first corresponding relationship, where the second handle value is a handle value of the second window;

[0008] Render the image to be rendered in the second window according to the second handle value.

[0009] The image rendering method provided by the embodiment of the present disclosure can render the image to be rendered on the client, avoiding the problems of network congestion and large server computing load caused by the large amount of transmitted image data when using existing technologies to transmit 3D images, thereby improving image rendering efficiency and reducing the server computing load.

[0010] In one embodiment, before receiving the image rendering instruction sent by the server, the method includes:

[0011] Sending a rendering request to the server, wherein the rendering request includes the identification information;

[0012] receiving a window creation instruction sent by the server, where the window creation instruction includes a first handle value and the identification information;

[0013] Executing the create window instruction to generate a second handle value of a second window for rendering the image to be rendered;

[0014] A first corresponding relationship between the first handle value and the second handle value is established.

[0015] By establishing this first corresponding relationship, the client can quickly determine the second handle value of the second window used to render the image to be rendered based on the first handle. When receiving the rendering instruction sent by the server, the image to be rendered can be directly rendered in the second window according to the second handle value, thereby improving the efficiency of image rendering.

[0016] In one embodiment, before receiving the window creation instruction sent by the server, the method further includes:

[0017] receiving a first context value sent by the server;

[0018] The executing the create window instruction to generate a second handle value of the second window for rendering the image to be rendered includes:

[0019] The create window instruction is executed to generate a second handle value and a second context value of a second window for rendering the image to be rendered.

[0020] By executing the create window instruction, a second handle value and a second context value of the second window for rendering the image to be rendered are generated. The client can render the image to be rendered in the second window according to the second handle value and the second context value, thereby improving the efficiency of image rendering.

[0021] In one embodiment, before receiving the image rendering instruction sent by the server, the method further includes:

[0022] establishing a second corresponding relationship between the first context value and the second context value;

[0023] Rendering the image to be rendered in the second window according to the second handle value includes:

[0024] Render the image to be rendered in the second window according to the second handle value and the second corresponding relationship.

[0025] By establishing the second corresponding relationship, the client can render the image to be rendered in the second window according to the second handle value and the second corresponding relationship, thereby improving the efficiency of image rendering.

[0026] In one embodiment, before receiving the image rendering instruction sent by the server, the method further includes:

[0027] receiving a window drawing instruction sent by the server, where the window drawing instruction includes the identification information and the first context value;

[0028] Determine, according to the second corresponding relationship, the second context value corresponding to the first context value;

[0029] The window drawing instruction is executed in the second context value to generate the second window.

[0030] By determining the second context value corresponding to the first context value based on the second corresponding relationship, the second context value corresponding to the first context value can be quickly found. The client executes the window drawing instruction in the second context value, and can quickly generate a second window to complete the rendering of the two-dimensional image window.

[0031] According to a second aspect of an embodiment of the present disclosure, there is provided an image rendering apparatus, comprising:

[0032] An image rendering instruction receiving module is configured to receive an image rendering instruction sent by a server, wherein the image rendering instruction includes identification information of an application corresponding to an image to be rendered and a first handle value of a first window;

[0033] a second handle value determining module, configured to determine a second handle value corresponding to the first handle value according to the first corresponding relationship, wherein the second handle value is a handle value of a second window;

[0034] The image to be rendered rendering module is used to render the image to be rendered in the second window according to the second handle value.

[0035] The image rendering device provided by the embodiment of the present disclosure is capable of rendering the image to be rendered on the client, avoiding the problems of network congestion and large server computing load caused by the large amount of transmitted image data when using existing technologies to transmit 3D images, thereby improving image rendering efficiency and reducing the server computing load.

[0036] In one embodiment, the apparatus comprises:

[0037] A rendering request sending module, configured to send a rendering request to the server, wherein the rendering request includes the identification information;

[0038] A window creation instruction receiving module, configured to receive a window creation instruction sent by the server, wherein the window creation instruction includes a first handle value and the identification information;

[0039] A create window instruction execution module, configured to execute the create window instruction and generate a second handle value of a second window for rendering the image to be rendered;

[0040] The first correspondence establishing module is configured to establish a first correspondence between the first handle value and the second handle value.

[0041] By establishing this first corresponding relationship, the client can quickly determine the second handle value of the second window used to render the image to be rendered based on the first handle. When receiving the rendering instruction sent by the server, the client directly renders the image to be rendered in the second window according to the second handle value, thereby improving the efficiency of image rendering.

[0042] In one embodiment, the apparatus further comprises:

[0043] A first context value receiving module, configured to receive a first context value sent by the server;

[0044] The create window instruction execution module is used to:

[0045] The create window instruction is executed to generate a second handle value and a second context value of a second window for rendering the image to be rendered.

[0046] By executing the create window instruction, a second handle value and a second context value of the second window for rendering the image to be rendered are generated. The client can render the image to be rendered in the second window according to the second handle value and the second context value, thereby improving the efficiency of image rendering.

[0047] In one embodiment, the apparatus further comprises:

[0048] A second correspondence establishing module, configured to establish a second correspondence between the first context value and the second context value;

[0049] The image rendering module to be rendered is used for:

[0050] Render the image to be rendered in the second window according to the second handle value and the second corresponding relationship.

[0051] By establishing the second corresponding relationship, the client can render the image to be rendered in the second window according to the second handle value and the second corresponding relationship, thereby improving the efficiency of image rendering.

[0052] In one embodiment, the apparatus further comprises:

[0053] a window drawing instruction receiving module, configured to receive a window drawing instruction sent by the server, wherein the window drawing instruction includes the identification information and the first context value;

[0054] a second context value determining module, configured to determine, based on the second corresponding relationship, the first context value and the second context value corresponding to the first context value;

[0055] The window drawing instruction execution module is configured to execute the window drawing instruction in the second context value to generate the second window.

[0056] By determining the second context value corresponding to the first context value based on the second corresponding relationship, the second context value corresponding to the first context value can be quickly found. The client executes the window drawing instruction in the second context value, and can quickly generate a second window to complete the rendering of the two-dimensional image window.

[0057] According to a third aspect of an embodiment of the present disclosure, an image rendering device is provided, comprising a processor and a memory, wherein the memory stores at least one computer instruction, and the instruction is loaded and executed by the processor to implement the steps performed in the image rendering method described in any one of the first aspects.

[0058] According to a fourth aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided, wherein the storage medium stores at least one computer instruction, and the instruction is loaded and executed by a processor to implement the steps performed in any one of the image rendering methods according to the first aspect.

[0059] The disclosed embodiments provide an image rendering method, apparatus, device, and storage medium, the method comprising: receiving an image rendering instruction sent by a server, the image rendering instruction including identification information of an application corresponding to an image to be rendered and a first handle value of a first window; determining a second handle value corresponding to the first handle value based on the first correspondence, the second handle value being the handle value of a second window; and rendering the image to be rendered in the second window based on the second handle value. This technical solution can render the image to be rendered on the client, avoiding the problems of network congestion and high server computational load caused by the large amount of transmitted image data when transmitting 3D images using existing technologies, thereby improving image rendering efficiency and reducing server computational load.

[0060] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0062] Figure 1This is a process of an image rendering method provided by an embodiment of the present disclosure Figure 1 ;

[0063] Figure 2 This is a process of an image rendering method provided by an embodiment of the present disclosure Figure 2 ;

[0064] Figure 3 is a schematic diagram of an image rendering process provided by an embodiment of the present disclosure;

[0065] Figure 4 The structure of an image rendering device provided by the embodiment of the present disclosure is Figure 1 ;

[0066] Figure 5 The structure of an image rendering device provided by the embodiment of the present disclosure is Figure 2 ;

[0067] Figure 6 This is a structural diagram of an image rendering device provided by an embodiment of the present disclosure. DETAILED DESCRIPTION

[0068] Exemplary embodiments will be described in detail herein, with examples illustrated in the accompanying drawings. In the following description, when referring to the drawings, identical numerals in different figures represent identical or similar elements, unless otherwise indicated. The embodiments described in the following exemplary embodiments are not intended to represent all possible embodiments consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.

[0069] The terms "first", "second", "third" and "fourth" (if any) in the description and claims of this disclosure and the above drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence.

[0070] Figure 1 This is a process of an image rendering method provided by an embodiment of the present disclosure Figure 1 , this method is applied to the client. Figure 1 As shown, the image rendering method includes the following steps:

[0071] S101: Receive an image rendering instruction sent by a server, where the image rendering instruction includes identification information of an application corresponding to an image to be rendered and a first handle value of a first window.

[0072] A handle is a special type of smart pointer. A handle value is a unique integer value, a 4-byte (8-byte in 64-bit programs) value, used to identify different objects and instances of the same type in an application, such as a window, button, icon, scroll bar, output device, control, or file. For example, the application may be an online game or 3D video, but this embodiment does not impose any specific limitations.

[0073] In this step, the first handle value of the first window is generated by the server after receiving the rendering request sent by the client. After generating the first handle value, the server sends a create window instruction to the client, and the create window instruction includes the first handle value. The following describes how the server generates the first handle value:

[0074] The client sends a rendering request to the server, the rendering request including identification information of the application. After receiving the rendering request, the server responds to the rendering request and generates a first handle value and a first context value for the first window. After generating the first handle value and the first context value, the server sends a create window instruction to the client, the create window instruction including the first handle value and the identification information.

[0075] Exemplarily, the server can also send the first context value to the client. After the client receives the create window instruction and the first context value sent by the server, it executes the create window instruction, generates a second handle value and a second context value for the second window for rendering the image to be rendered, and then establishes a first correspondence between the first handle value and the second handle value and a second correspondence between the first context value and the second context value.

[0076] After the first corresponding relationship is established, the client can then determine the second handle value corresponding to the first handle value according to the first corresponding relationship.

[0077] After establishing the second corresponding relationship, the client can then determine the second context value corresponding to the first context value according to the first context value.

[0078] S102: Determine a second handle value corresponding to the first handle value according to the first corresponding relationship, where the second handle value is a handle value of the second window;

[0079] S103: Render the image to be rendered in the second window according to the second handle value.

[0080] The client receives an image rendering instruction sent by the server, including the identification information of the application and the first handle value. After receiving the image rendering instruction, the client determines the second handle value corresponding to the first handle value based on the first correspondence, and renders the image to be rendered in the second window based on the second handle value and the second correspondence.

[0081] In this embodiment, the image to be rendered can be rendered in the second window based on the second handle value and the second context value. If the image to be rendered fails to be rendered in the second window, the first context value corresponding to the second context value is determined based on the second correspondence. The first context value and the second context value are then compared to determine the cause of the image rendering failure, so that a rendering failure prompt message can be sent to the user. The context value is the environment in which the application runs, including the application's program state and variable status.

[0082] Exemplarily, before the client renders the image to be rendered in the second window according to the image rendering instruction, the client needs to generate the second window. How to generate the second window is described below.

[0083] The client receives a window drawing instruction sent by the server, where the window drawing instruction includes the identification information and the first context value; determines the first context value and the second context value corresponding to the first context value according to the second corresponding relationship; and executes the window drawing instruction in the second context value to generate the second window.

[0084] It should be noted that the window is a two-dimensional image, and the window drawing instruction is a two-dimensional image rendering instruction. By executing the window drawing instruction in the second context value to generate the second window, the rendering of the two-dimensional image window can be completed. Furthermore, after the second window is generated, the image to be rendered is rendered in the second window based on the second handle value and the second context value. When the image to be rendered is a three-dimensional image, the solution of the embodiment of the present disclosure can achieve the fusion of three-dimensional image rendering and two-dimensional image rendering.

[0085] The image rendering method provided by the embodiment of the present disclosure is capable of receiving an image rendering instruction sent by a server, the image rendering instruction including identification information of an application corresponding to an image to be rendered and a first handle value of a first window; determining a second handle value corresponding to the first handle value based on the first corresponding relationship, the second handle value being the handle value of a second window; rendering the image to be rendered in the second window based on the second handle value, and rendering the image to be rendered on the client, thereby avoiding the problems of network congestion and large server computing load caused by a very large amount of transmitted image data when transmitting 3D images using existing technologies, thereby improving image rendering efficiency and reducing the server computing load.

[0086] The following combination Figure 2 and Figure 3 , the image rendering method provided by the embodiment of the present disclosure is further described in detail. Figure 2 This is a process of an image rendering method provided by an embodiment of the present disclosure Figure 2 ,like Figure 2 As shown, the method includes the following steps:

[0087] S201: When a server receives a 3D rendering request from a client, the server obtains 3D rendering-related instructions from a Windows Display Driver Model (WDDM), locally executes a Create Window instruction in the 3D rendering-related instructions, and records a first handle value generated after executing the Create Window instruction.

[0088] S202: The server sends the obtained Create Window instruction and the first handle value to the client.

[0089] S203. After receiving the Create Window instruction sent by the server, the client executes the Create Window instruction and records the second handle value generated after executing the Create Window instruction.

[0090] S204: The client generates a mapping table between the second handle value and the first handle value;

[0091] S205. When the client receives the 3D rendering instruction, it searches for the corresponding second handle value according to the first handle value received at the same time.

[0092] S206: The client finds a corresponding window locally according to the second handle value, and performs 3D image rendering in the window.

[0093] The above scheme is described in detail below.

[0094] First, when a 3D application running on a server renders its image, it can be decomposed into two parts: one is the rendering of the window part (rendering of 2D images, including forms, menus, navigation bars, etc.), and the other is the rendering of 3D images.

[0095] Window rendering (including forms, menus, navigation bars, etc.) is implemented using Graphics Device Interface (GDI) functions in Windows, while 3D image rendering is handled by the graphics card via the D3D Runtime. Breaking down application image rendering into two types of rendering instructions.

[0096] Then, the 2D rendering instructions (i.e. Figure 1 Window drawing instructions in the embodiment) and 3D rendering instructions (ie Figure 1 The most important instruction here is CreateWindow, which will return the window handle that needs to be bound for the execution of future 3D instructions. This is the key to combining 2D windows and 3D image rendering operations.

[0097] Then, the server sends the 2D rendering instruction and the 3D rendering instruction (with the first handle value) to the client.

[0098] The first instruction received by the client is the Create Window instruction, which carries the first handle value and the first context value returned when executed on the server. The client also executes this instruction, generates the client window and the corresponding second handle value and obtains the second context value of the client device, and then maps the second handle value of the client window to the first handle value sent by the server (i.e. Figure 1 The first corresponding relationship is established in the embodiment), and the first context value of the server and the second context value of the client are mapped one to one (ie Figure 1 (Establishing the second corresponding relationship in the embodiment).

[0099] After the client receives a 2D rendering instruction, it searches for the corresponding second context value of the client through the first context value carried by the instruction, and then executes the 2D rendering instruction in this context to realize the drawing of the window. The context is a Windows data structure that contains the drawing properties of a device. The drawing call after the client receives the 2D rendering instruction needs to use the context value. The context value specifically encapsulates a calling interface API for Windows applications used to draw lines, shapes, text, etc. In simple terms, the context is equivalent to the canvas in the drawing process. The context determines the properties of the canvas and encapsulates the methods of drawing on the canvas, such as drawing lines, drawing points, etc. In order to draw, you need to find this canvas, and obtaining the device context value can find this canvas. Figure 3 This is a schematic diagram of an image rendering process provided by an embodiment of the present disclosure. Figure 3 In the lower left window, the 3D rendering instruction has not been executed yet, so the area in the window where 3D rendering should be performed is blank.

[0100] After receiving a 3D rendering command, the client first determines the window to which the command belongs. This is done by searching the previously saved window handle mapping table using the first handle value (server-side) carried in the command to find the second handle value of the corresponding client window. The 3D rendering command is then executed on the window corresponding to this second handle value. This allows rendering to be performed in that window, which becomes the 3D rendering area. This completes the redrawing and fusion of all 2D rendering commands and 3D rendering commands for the entire application.

[0101] This method can fully realize the remote rendering of applications running on the entire server desktop operating system.

[0102] Based on the above Figure 1 The image rendering method described in the corresponding embodiment is as follows: an embodiment of the device disclosed herein, which can be used to execute the embodiment of the method disclosed herein.

[0103] The present disclosure provides an image rendering device. Figure 4 : is a structural diagram of an image rendering device provided according to an embodiment of the present disclosure. Figure 4 As shown, the data transmission device 40 includes:

[0104] An image rendering instruction receiving module 401 is configured to receive an image rendering instruction sent by a server, wherein the image rendering instruction includes identification information of an application corresponding to an image to be rendered and a first handle value of a first window;

[0105] A second handle value determining module 402 is configured to determine a second handle value corresponding to the first handle value according to the first corresponding relationship, where the second handle value is a handle value of a second window;

[0106] The image to be rendered rendering module 403 is configured to render the image to be rendered in the second window according to the second handle value.

[0107] In one embodiment, Figure 5 As shown, Figure 5 The structure of an image rendering device provided according to an embodiment of the present disclosure is Figure 2 , the device 40 comprises:

[0108] A rendering request sending module 404 is configured to send a rendering request to the server, wherein the rendering request includes the identification information;

[0109] A window creation instruction receiving module 405 is configured to receive a window creation instruction sent by the server, wherein the window creation instruction includes a first handle value and the identification information;

[0110] A create window instruction execution module 406 is configured to execute the create window instruction and generate a second handle value of a second window for rendering the image to be rendered;

[0111] The first correspondence establishing module 407 is configured to establish a first correspondence between the first handle value and the second handle value.

[0112] In one embodiment, the apparatus 40 further comprises:

[0113] A first context value receiving module 408, configured to receive a first context value sent by the server;

[0114] The create window instruction execution module 406 is used to:

[0115] The create window instruction is executed to generate a second handle value and a second context value of a second window for rendering the image to be rendered.

[0116] In one embodiment, the apparatus further comprises:

[0117] A second correspondence establishing module 409, configured to establish a second correspondence between the first context value and the second context value;

[0118] The image rendering module 403 is used to:

[0119] Render the image to be rendered in the second window according to the second handle value and the second corresponding relationship.

[0120] In one embodiment, the apparatus 40 further comprises:

[0121] a window drawing instruction receiving module 410, configured to receive a window drawing instruction sent by the server, wherein the window drawing instruction includes the identification information and the first context value;

[0122] A second context value determining module 411 is configured to determine the second context value corresponding to the first context value and the first context value according to the second corresponding relationship;

[0123] The window drawing instruction execution module 412 is configured to execute the window drawing instruction in the second context value to generate the second window.

[0124] The image rendering device provided by the embodiment of the present disclosure is capable of receiving an image rendering instruction sent by a server, the image rendering instruction including identification information of an application corresponding to an image to be rendered and a first handle value of a first window; determining a second handle value corresponding to the first handle value based on the first correspondence, the second handle value being the handle value of a second window; rendering the image to be rendered in the second window based on the second handle value, and rendering the image to be rendered on the client, thereby avoiding the problems of network congestion and large server computing load that may be caused by a very large amount of transmitted image data when transmitting 3D images using existing technologies, thereby improving image rendering efficiency and reducing the server computing load.

[0125] Figure 6 This is a structural diagram of an image rendering device provided by an embodiment of the present disclosure. Figure 6 As shown, the image rendering device includes a processor 601 and a memory 602, wherein the memory 602 stores at least one computer instruction, which is loaded and executed by the processor 601. Figure 1 and Figure 2 The embodiments correspond to the steps performed in the image rendering method described in the embodiments.

[0126] Based on the above Figure 1 and Figure 2 In accordance with the image rendering method described in the embodiment, the present disclosure also provides a computer-readable storage medium. For example, the non-temporary computer-readable storage medium may be a read-only memory (ROM), a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, or an optical data storage device. The storage medium stores computer instructions for executing the above-mentioned Figure 1 and Figure 2 The image rendering method described in the corresponding embodiment will not be repeated here.

[0127] Those skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware, or by a program to instruct the relevant hardware, and the program may be stored in a computer-readable storage medium, which may be a read-only memory, a disk, or an optical disk, etc.

[0128] Other embodiments of the present disclosure will readily occur to those skilled in the art after considering the specification and practicing the disclosure herein. This application is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art not disclosed herein. The description and examples are to be considered as exemplary only, with the true scope and spirit of the present disclosure being indicated by the following claims.

Claims

1. An image rendering method, characterized in that: include: Receive an image rendering instruction sent by a server, where the image rendering instruction includes identification information of an application corresponding to the image to be rendered and a first handle value of the first window; Determining a second handle value corresponding to the first handle value according to the first corresponding relationship, where the second handle value is a handle value of the second window; rendering the image to be rendered in the second window according to the second handle value; Before receiving the image rendering instruction sent by the server, the method includes: Sending a rendering request to the server, wherein the rendering request includes the identification information; receiving a window creation instruction sent by the server, where the window creation instruction includes a first handle value and the identification information; Executing the create window instruction to generate a second handle value of a second window for rendering the image to be rendered; A first corresponding relationship between the first handle value and the second handle value is established.

2. The method according to claim 1, characterized in that Before receiving the window creation instruction sent by the server, the method further includes: receiving a first context value sent by the server; The executing the create window instruction to generate a second handle value of the second window for rendering the image to be rendered includes: The create window instruction is executed to generate a second handle value and a second context value of a second window for rendering the image to be rendered.

3. The method according to claim 2, characterized in that Before receiving the image rendering instruction sent by the server, the method further includes: establishing a second corresponding relationship between the first context value and the second context value; Rendering the image to be rendered in the second window according to the second handle value includes: Render the image to be rendered in the second window according to the second handle value and the second corresponding relationship.

4. The method according to claim 3, characterized in that Before receiving the image rendering instruction sent by the server, the method further includes: receiving a window drawing instruction sent by the server, where the window drawing instruction includes the identification information and the first context value; Determine, according to the second corresponding relationship, the first context value and the second context value corresponding to the first context value; The window drawing instruction is executed in the second context value to generate the second window.

5. An image rendering device, characterized in that: include: An image rendering instruction receiving module is configured to receive an image rendering instruction sent by a server, wherein the image rendering instruction includes identification information of an application corresponding to an image to be rendered and a first handle value of a first window; a second handle value determining module, configured to determine a second handle value corresponding to the first handle value according to the first corresponding relationship, wherein the second handle value is a handle value of a second window; a to-be-rendered image rendering module, configured to render the to-be-rendered image in the second window according to the second handle value; A rendering request sending module, configured to send a rendering request to the server, wherein the rendering request includes the identification information; A window creation instruction receiving module, configured to receive a window creation instruction sent by the server, wherein the window creation instruction includes a first handle value and the identification information; A create window instruction execution module, configured to execute the create window instruction and generate a second handle value of a second window for rendering the image to be rendered; The first correspondence establishing module is configured to establish a first correspondence between the first handle value and the second handle value.

6. The device according to claim 5, characterized in that The device further comprises: A first context value receiving module, configured to receive a first context value sent by the server; The create window instruction execution module is used to: The create window instruction is executed to generate a second handle value and a second context value of a second window for rendering the image to be rendered.

7. An image rendering device, characterized in that: The image rendering device includes a processor and a memory, wherein the memory stores at least one computer instruction, and the instruction is loaded and executed by the processor to implement the steps performed in the image rendering method according to any one of claims 1 to 4.

8. A computer-readable storage medium, characterized in that The storage medium stores at least one computer instruction, which is loaded and executed by the processor to implement the steps performed in the image rendering method according to any one of claims 1 to 4.

Citation Information

Patent Citations

  • Image remote projection method and related device

    CN104618733A