Floating transparent window drawing method based on multi-point input device
Through the floating transparent window drawing method based on multi-point input device, a diverse content interaction and display method is provided, which solves the problem of the singleness of combining writing carriers with computer content in the prior art, and realizes the flexible interaction between device content and screen content. and display.
Patent Information
- Application Number
- CN202411403558.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-09
- Publication Date
- 2025-01-03
AI Technical Summary
Existing writing carriers such as blackboards cannot be effectively combined with computer content, and the existing artboard software has a single function and cannot achieve diversified content interaction and display methods.
Using a floating transparent window drawing method based on a multi-point input device, through a multi-point input device, a data transceiver module, a drawing module and a presentation module, three presentation methods are provided: ordinary, picture-in-picture and annotation, allowing users to not interfere with the content of the screen. In case of viewing and interactive devices synchronized content and displaying contents can be moved.
It realizes diversified interaction and display of device content and screen content, and users can intuitively see and modify synchronous content, with diverse functions and wide use scope, solving the problem of single content combination and display methods in the prior art.
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of computer application, in particular to a method for drawing floating transparent windows based on a multi-point input device. Background Art
[0002] In real life, blackboard (or whiteboard) is a common writing medium, but the most common problem with this writing medium is that the writing results cannot be saved and the writing cannot be combined with the content on the computer. Although there are various drawing board software on PC that can be combined with the content, this combination method either can only display one of the two separately, or can be combined and displayed together, with single functions and great limitations. Summary of the invention
[0003] The technical problem to be solved by the present invention is to overcome the existing defects and provide a method for drawing a floating transparent window based on a multi-point input device. The ordinary presentation method can intuitively see the content synchronized from the device and can also modify the synchronized content; the picture-in-picture presentation method can see the content synchronized from the device without interfering with the screen content and the device content; the annotation presentation method can interactively superimpose the device content and the screen content, and can be directly moved so that the user can display the content synchronized from the device at any position. It has diverse functions and a wide range of uses, and can effectively solve the problems in the background technology.
[0004] To achieve the above-mentioned purpose, the present invention provides the following technical solutions: a method for drawing a floating transparent window based on a multi-point input device, comprising a multi-point input device, a data transceiver module, a drawing module, a presentation module and a display terminal, wherein the data transceiver module receives data written by the multi-point input device and sends it to the drawing module for drawing, and finally the drawing drawn by the drawing module is displayed on the display terminal through the presentation module.
[0005] The presenting module includes three presenting modes, each of which requires displaying drawings. The displaying drawing mode is to display the line objects established in the drawing module in this module through the display terminal, specifically:
[0006] 1) Initialization: Define the size (W, H) to be displayed according to the device used by the data transceiver module;
[0007] 2) The drawing presentation method uses InkCanvas to display lines and implements multi-page management (upper and lower page switching);
[0008] 3) Normal presentation mode: Displayed on the display terminal according to the size of (W, H), and lines can be drawn using the mouse in the InkCanvas;
[0009] 4) Picture-in-picture presentation: Place the InkCanvas in a small top window with adjustable position and transparency, and take a screenshot of the entire display terminal’s display interface;
[0010] 5) Annotation presentation method: Place the InkCanvas in a fully transparent window on top. The window size is displayed on the PC screen according to the size of (W, H). At the same time, the display interface of the entire display terminal can be captured.
[0011] As a preferred technical solution of the present invention, the data received by the data transceiver module includes brush data, erasure data with erase size, and the data received by the data transceiver module also includes other data written using various common PCs and external devices.
[0012] As a preferred technical solution of the present invention, the brush data includes input data with IDs of multi-point input and single-point input, and the input data includes a press command, a move command, and a pop-up command.
[0013] As a preferred technical solution of the present invention, the drawing module includes a line drawing module and an wiping module. When the drawing module receives the brush data sent by the data transceiver module, the line drawing module processes the data in the following manner:
[0014] S1. After the line drawing module is initialized, two array drawing object arrays are first established, and a press flag array (indicating whether the corresponding input data with id executes the press command), and the input data of single-point input is processed below (the processing method of input data of multi-point input is the same);
[0015] S2. When there is a press command in the brush data, the corresponding id will be set for it, and the corresponding id will also be set for the pop-up command;
[0016] S3, when the press command is executed, a line object is created, and when the move command is executed, the line object adds the moving point, and displays it on the display terminal through the presentation module;
[0017] S4. When the number of points in a line object exceeds the set upper limit, the line object is re-established, and the line object that has been drawn will not be destroyed.
[0018] As a preferred technical solution of the present invention, when the drawing module receives the erasing data sent by the data transceiver module, the erasing module is used to erase the brush currently displayed on the presentation module according to the erasing size.
[0019] Compared with the prior art, the present invention has the following beneficial effects:
[0020] The method of drawing a floating transparent window based on a multi-point input device exemplified in the present invention can intuitively see the content synchronized from the device in the ordinary presentation mode, and can also modify the synchronized content; the picture-in-picture presentation mode can see the content synchronized from the device without interfering with the screen content and the device content; the annotation presentation mode can interactively superimpose the device content and the screen content, and can be directly moved so that the user can display the content synchronized from the device at any position. It has diverse functions and a wide range of uses. DETAILED DESCRIPTION
[0021] The technical solutions in the embodiments of the present invention are described clearly and completely below. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0022] The present invention provides a technical solution: a method for drawing a floating transparent window based on a multi-point input device, comprising a multi-point input device, a data transceiver module, a drawing module, a presentation module and a display terminal, wherein the data transceiver module receives data written by the multi-point input device and sends the data to the drawing module for drawing, and finally the drawing drawn by the drawing module is displayed on the display terminal through the presentation module.
[0023] The presentation module includes three presentation modes, each of which requires displaying drawings. The displaying drawing mode is to display the line objects created in the drawing module in this module through the display terminal, specifically:
[0024] 1) Initialization: Define the size (W, H) to be displayed according to the device used by the data transceiver module;
[0025] 2) The drawing presentation method uses InkCanvas to display lines and implements multi-page management (upper and lower page switching);
[0026] 3) Normal presentation mode: Displayed on the display terminal according to the size of (W, H), and lines can be drawn using the mouse in the InkCanvas;
[0027] 4) Picture-in-picture presentation: Place the InkCanvas in a small top window with adjustable position and transparency, and take a screenshot of the entire display terminal’s display interface;
[0028] 5) Annotation presentation method: Place the InkCanvas in a fully transparent window on top. The window size is displayed on the PC screen according to the size of (W, H). At the same time, the display interface of the entire display terminal can be captured.
[0029] Furthermore, the data received by the data transceiver module includes brush data, erase data with erase size, and the data received by the data transceiver module also includes other data written by using various common PCs and external devices.
[0030] Furthermore, the brush data includes input data with IDs of multi-point input and single-point input, and the input data includes a press command, a move command, and a pop-up command.
[0031] Furthermore, the drawing module includes a line drawing module and an wiping module. When the drawing module receives the brush data sent by the data transceiver module, the line drawing module processes the data in the following manner:
[0032] S1. After the line drawing module is initialized, two array drawing object arrays are first established, and a press flag array (indicating whether the corresponding input data with id executes the press command), and the input data of single-point input is processed below (the processing method of input data of multi-point input is the same);
[0033] S2. When there is a press command in the brush data, the corresponding id will be set for it, and the corresponding id will also be set for the pop-up command;
[0034] S3, when the press command is executed, a line object is created, and when the move command is executed, the line object adds the moving point, and displays it on the display terminal through the presentation module;
[0035] S4. When the number of points in the line object exceeds the set upper limit (the upper limit is determined by setting), the line object is re-established, and the line object that has been drawn will not be destroyed.
[0036] Furthermore, when the drawing module receives the erasing data sent by the data transceiver module, the erasing module is used to erase the brush currently displayed on the presentation module according to the erasing size.
[0037] The ordinary presentation method of the present invention can intuitively view the content synchronized from the device, and can also modify the synchronized content; the picture-in-picture presentation method can view the content synchronized from the device without interfering with the screen content and the device content; the annotation presentation method can interactively superimpose the device content and the screen content, and can be directly moved so that the user can display the content synchronized from the device at any position. It has diverse functions and a wide range of uses.
[0038] The undisclosed parts in the present invention are all prior art, and their specific structures, materials and working principles are not described in detail. Although the embodiments of the present invention have been shown and described, it is understood by those skilled in the art that various changes, modifications, substitutions and variations can be made to these embodiments without departing from the principles and spirit of the present invention, and the scope of the present invention is defined by the attached claims and their equivalents.
Claims
1. A method for drawing a floating transparent window based on a multi-point input device, characterized in that: It includes a multi-point input device, a data transceiver module, a drawing module, a presentation module and a display terminal. The data transceiver module receives the data written by the multi-point input device and sends it to the drawing module for drawing. Finally, the drawing drawn by the drawing module is displayed on the display terminal through the presentation module. The presenting module includes three presenting modes, each of which requires displaying drawings. The displaying drawing mode is to display the line objects established in the drawing module in this module through the display terminal, specifically: 1) Initialization: Define the size (W, H) to be displayed according to the device used by the data transceiver module; 2) The drawing presentation method uses InkCanvas to display lines and implements multi-page management (upper and lower page switching); 3) Normal presentation mode: Displayed on the display terminal according to the size of (W, H), and lines can be drawn using the mouse in the InkCanvas; 4) Picture-in-picture presentation: Place the InkCanvas in a small top window with adjustable position and transparency, and take a screenshot of the entire display terminal’s display interface; 5) Annotation presentation method: Place the InkCanvas in a top-level fully transparent window. The window size is displayed on the PC screen according to the size of (W, H). At the same time, the display interface of the entire display terminal can be captured.
2. The method for drawing a floating transparent window based on a multi-point input device according to claim 1, characterized in that: The data received by the data transceiver module includes brush data and erase data with erase size, and the data received by the data transceiver module also includes other data written by various common PCs and external devices.
3. The method for drawing a floating transparent window based on a multi-point input device according to claim 2, characterized in that: The brush data includes input data with IDs of multi-point input and single-point input, and the input data includes a press command, a move command, and a pop-up command.
4. The method for drawing a floating transparent window based on a multi-point input device according to claim 3, characterized in that: The drawing module includes a line drawing module and an wiping module. When the drawing module receives the brush data sent by the data transceiver module, the line drawing module processes the data in the following manner: S1. After the line drawing module is initialized, two array drawing object arrays are first established, and a press flag array (indicating whether the corresponding input data with id executes the press command), and the input data of single-point input is processed below (the processing method of input data of multi-point input is the same); S2. When there is a press command in the brush data, the corresponding id will be set for it, and the corresponding id will also be set for the pop-up command; S3, when the press command is executed, a line object is created, and when the move command is executed, the line object adds the moving point, and displays it on the display terminal through the presentation module; S4. When the number of points in a line object exceeds the set upper limit, the line object is re-established, and the line object that has been drawn will not be destroyed.
5. The method for drawing a floating transparent window based on a multi-point input device according to claim 1, characterized in that: When the drawing module receives the erasing data sent by the data transceiver module, the drawing module uses the erasing module to erase the brush currently displayed on the presentation module according to the erasing size.
