CN111798379A - Method and system for realizing high-speed preview of graph - Google Patents

Method and system for realizing high-speed preview of graph Download PDF

Info

Publication number
CN111798379A
CN111798379A CN202010699277.3A CN202010699277A CN111798379A CN 111798379 A CN111798379 A CN 111798379A CN 202010699277 A CN202010699277 A CN 202010699277A CN 111798379 A CN111798379 A CN 111798379A
Authority
CN
China
Prior art keywords
coordinate
zooming
graph
target
initial
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010699277.3A
Other languages
Chinese (zh)
Inventor
吴振涛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Xuanshi Intelligent Technology Co ltd
Original Assignee
Guangzhou Xuanshi Intelligent Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Xuanshi Intelligent Technology Co ltd filed Critical Guangzhou Xuanshi Intelligent Technology Co ltd
Priority to CN202010699277.3A priority Critical patent/CN111798379A/en
Publication of CN111798379A publication Critical patent/CN111798379A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformation in the plane of the image
    • G06T3/60Rotation of a whole image or part thereof
    • G06T3/604Rotation of a whole image or part thereof using a CORDIC [COordinate Rotation Digital Compute] device
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T1/00General purpose image data processing
    • G06T1/20Processor architectures; Processor configuration, e.g. pipelining
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/20Drawing from basic elements, e.g. lines or circles
    • G06T11/206Drawing of charts or graphs
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformation in the plane of the image
    • G06T3/40Scaling the whole image or part thereof
    • G06T3/4084Transform-based scaling, e.g. FFT domain scaling

Abstract

The invention relates to the technical field of image processing, and discloses a method and a system for realizing high-speed preview of a graph, wherein an initial graph is drawn by adopting a Canvas plug-in according to an instruction input by a user; acquiring a first coordinate corresponding to the initial graph; converting the first coordinates to second coordinates corresponding to OpenGL (Open Graphics Library); drawing a target graph according to the second coordinate; and outputting the target graph for the user to preview. Therefore, fine graphs are drawn based on the Canvas plug-in, and then the graphs are efficiently moved and output by adopting OpenGL, so that the operated graphs can be displayed at high speed for users to preview after the users operate, and the use experience of the users is improved.

Description

Method and system for realizing high-speed preview of graph
Technical Field
The invention relates to the technical field of image processing, in particular to a method and a system for realizing high-speed preview of a graph.
Background
When a conference whiteboard is used for presentation, in addition to drawing a line pattern on the conference whiteboard, the pattern often needs to be dragged or zoomed. The existing conference whiteboard is limited by algorithm efficiency, higher delay exists when dragging or zooming operation is carried out, and user experience is poor.
Disclosure of Invention
The invention discloses a method and a system for realizing high-speed preview of a graph, wherein a Canvas plug-in is adopted to draw an initial graph according to an instruction input by a user; acquiring a first coordinate corresponding to the initial graph; converting the first coordinates to second coordinates corresponding to OpenGL (Open Graphics Library); drawing a target graph according to the second coordinate; and outputting the target graph for the user to preview. Therefore, fine graphs are drawn based on the Canvas plug-in, and then the graphs are efficiently moved and output by adopting OpenGL, so that the operated graphs can be displayed at high speed for users to preview after the users operate, and the use experience of the users is improved.
The first aspect of the embodiment of the invention discloses a method for realizing high-speed preview of a graph, which comprises the following steps:
adopting a Canvas plug-in to draw an initial graph according to an instruction input by a user;
acquiring a first coordinate corresponding to the initial graph;
converting the first coordinates to second coordinates corresponding to OpenGL (Open Graphics Library);
drawing a target graph according to the second coordinate;
and outputting the target graph for a user to preview.
As an optional implementation manner, in the first aspect of the embodiment of the present invention, the converting the first coordinate into a second coordinate corresponding to OpenGL (Open Graphics Library) includes:
adopting OpenGL to construct a four-quadrant coordinate system;
and substituting the first coordinate into a lower right quadrant of the four-quadrant coordinate system according to a preset conversion ratio to obtain a second coordinate corresponding to OpenGL.
As an optional implementation manner, in the first aspect of the embodiment of the present invention, the method further includes:
monitoring whether the instruction input by the user is a zooming instruction;
if the situation that the user inputs a zooming instruction is monitored, acquiring a zooming magnification and a zooming center which are included in the zooming instruction;
adjusting the second coordinate according to the zooming magnification and the zooming center to obtain an initial zooming coordinate;
moving the initial zooming coordinate in the four-quadrant coordinate system to obtain a target zooming coordinate;
drawing a target zooming graph according to the target zooming coordinate;
and outputting the target zooming graph for the user to preview.
As an optional implementation manner, in the first aspect of the embodiment of the present invention, the moving the initial zoom coordinate in the four-quadrant coordinate system to obtain the target zoom coordinate includes:
calculating offset according to the zooming magnification and the zooming center, wherein the offset comprises longitudinal offset and transverse offset;
and moving the initial zooming coordinate in the four-quadrant coordinate system according to the offset to obtain the target zooming coordinate.
As an optional implementation manner, in the first aspect of the embodiment of the present invention, the OpenGL runs based on a GPU (Graphics Processing Unit).
The second aspect of the embodiments of the present invention discloses a system for implementing high-speed preview of graphics, which includes:
the initial drawing unit is used for drawing an initial graph by adopting a Canvas plug-in according to an instruction input by a user;
the coordinate acquisition unit is used for acquiring a first coordinate corresponding to the initial graph;
a coordinate conversion unit configured to convert the first coordinate into a second coordinate corresponding to OpenGL (Open graphics library);
the graph drawing unit is used for drawing a target graph according to the second coordinate;
and the graphic output unit is used for outputting the target graphic for the user to preview.
As an alternative implementation, in a second aspect of the embodiment of the present invention, the coordinate conversion unit includes:
the coordinate constructing subunit is used for constructing a four-quadrant coordinate system by adopting OpenGL;
and the coordinate substitution subunit is used for substituting the first coordinate into the lower right quadrant of the four-quadrant coordinate system according to a preset conversion ratio to obtain a second coordinate corresponding to OpenGL.
As an optional implementation manner, in the second aspect of the embodiment of the present invention, the system further includes:
the zooming monitoring unit is used for monitoring whether the instruction input by the user is a zooming instruction;
the data acquisition unit is used for acquiring a zooming magnification and a zooming center which are included in the zooming instruction when the fact that the user inputs the zooming instruction is monitored;
the initial zooming unit is used for adjusting the second coordinate according to the zooming magnification and the zooming center to obtain an initial zooming coordinate;
the graph moving unit is used for moving the initial zooming coordinate in the four-quadrant coordinate system to obtain a target zooming coordinate;
the graph drawing unit is also used for drawing a target zooming graph according to the target zooming coordinate;
the graphic output unit is further used for outputting the target zooming graphic for a user to preview.
As an alternative implementation, in a second aspect of the embodiments of the present invention, the graphics mobile unit includes:
the offset calculation unit is used for calculating an offset according to the zooming magnification and the zooming center, wherein the offset comprises a longitudinal offset and a transverse offset;
and the graph moving subunit is used for moving the initial zooming coordinate in the four-quadrant coordinate system according to the offset to obtain the target zooming coordinate.
As an optional implementation manner, in the second aspect of the embodiment of the present invention, the OpenGL runs based on a GPU (Graphics Processing Unit).
Compared with the prior art, the embodiment of the invention has the following beneficial effects:
in the embodiment of the invention, a Canvas plug-in is adopted to draw an initial graph according to an instruction input by a user; acquiring a first coordinate corresponding to the initial graph; converting the first coordinates to second coordinates corresponding to OpenGL (Open Graphics Library); drawing a target graph according to the second coordinate; and outputting the target graph for the user to preview. Therefore, fine graphs are drawn based on the Canvas plug-in, and then the graphs are efficiently moved and output by adopting OpenGL, so that the operated graphs can be displayed at high speed for users to preview after the users operate, and the use experience of the users is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without creative efforts.
FIG. 1 is a flow chart illustrating a method for implementing high-speed preview of a graphic according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of a four-quadrant coordinate system constructed by OpenGL disclosed in the embodiments of the present invention;
FIG. 3 is a schematic diagram illustrating a zoom operation performed according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a method for implementing high-speed preview of a graphic according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the terms "first", "second", "third" and "fourth" etc. in the description and claims of the present invention are used for distinguishing different objects, and are not used for describing a specific order. The terms "comprises," "comprising," and any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
The embodiment of the invention discloses a method for realizing high-speed preview of a graph, which comprises the steps of setting a writing tool and writing parameters of the writing tool according to an instruction input by a user, recording a writing path in the writing process of the user, monitoring the writing speed of the user, determining a writing effect by integrating the writing parameters, the writing path and the writing speed, smoothing the writing effect, and finally obtaining a writing pattern to output. Therefore, after the writing effect is processed based on the writing speed, the writing pattern can generate the variation of line thickness according to the non-use of the writing speed, and therefore diversified writing effects can be realized in practical use.
Example one
Referring to fig. 1, fig. 2 and fig. 3, as shown in fig. 1, a method for implementing high-speed preview of a graphic according to an embodiment of the present invention may include the following steps.
101. And drawing the initial graph by adopting a Canvas plug-in according to the instruction input by the user.
In the embodiment of the invention, the Canvas plug-in is more convenient in drawing function and has finer drawing effect, so that the Canvas plug-in is adopted to draw the initial graph according to the instruction input by the user. In the Canvas plugin, its coordinate system starts from the origin and extends in the positive direction of the x-axis and the negative direction of the y-axis.
102. And acquiring a first coordinate corresponding to the initial graph.
In the embodiment of the invention, after the user draws the initial graph based on the Canvas plugin, the first coordinate corresponding to the initial graph drawn by the user in the coordinate system drawn by the Canvas plugin is obtained.
103. The first coordinates are converted to second coordinates corresponding to OpenGL (Open Graphics Library).
In the embodiment of the invention, the OpenGL is adopted to realize the graphics conversion and movement functions, because the OpenGL has higher efficiency in the graphics conversion and movement compared with a Canvas plug-in when working by a GPU.
As an optional implementation, OpenGL is adopted to construct a four-quadrant coordinate system; and substituting the first coordinate into a lower right quadrant of a four-quadrant coordinate system according to a preset conversion ratio to obtain a second coordinate corresponding to OpenGL. Specifically, OpenGL constructs a four-quadrant coordinate system starting from an origin and extending in two directions to an x axis and a y axis, selects a lower right quadrant of the four-quadrant coordinate system for drawing a graph in order to align and convert the coordinate system, substitutes a first coordinate into the lower right quadrant, and sets a conversion ratio of 1 in order to make a graph in the Canvas plugin fully cover a display interface: 2, so that the coordinate center of the converted graph is the center of a four-quadrant coordinate system, and a second coordinate corresponding to OpenGL after the first coordinate conversion is obtained. As can be seen, OpenGL can efficiently and quickly convert graphics drawn in a Canvas plug-in with the assistance of a GPU.
104. And drawing the target graph according to the second coordinate.
In the embodiment of the present invention, after the second coordinate corresponding to the OpenGL is obtained through conversion, the target graph can be drawn according to the second coordinate.
105. And outputting the target graph for the user to preview.
In the embodiment of the invention, the OpenGL four-quadrant coordinate system is set to correspond to the actual size of the used display tool, and the target graph can be output for the user to preview after the second coordinate corresponding to OpenGL is obtained through conversion.
In the embodiment of the invention, the user can perform zooming and moving operations besides drawing operations on display tools such as a conference whiteboard and the like.
As an optional implementation manner, whether the instruction input by the user is a zooming instruction is monitored; if the situation that a user inputs a zooming instruction is monitored, acquiring a zooming magnification and a zooming center which are included in the zooming instruction; adjusting the second coordinate according to the zooming ratio and the zooming center to obtain an initial zooming coordinate; moving the initial zooming coordinate in a four-quadrant coordinate system to obtain a target zooming coordinate; drawing a target zooming graph according to the target zooming coordinate; and outputting the target scaling graph for the user to preview. Specifically, when a zoom instruction input by a user is monitored, a zoom ratio and a zoom center can be obtained according to coordinates related to the zoom instruction input by the user, a glsurface view tool is adopted in OpenGL to realize image zooming, and the glsurface view realizes image zooming based on a view distance principle, for example, when the view distance is 1 time, the image moves by 1 unit, and the image actually moves by 1 unit in a viewport; when the visual distance is 2 times, the graph moves by 1 unit, the graph actually moves by 1/2 units in the viewport, the visual distance is inversely proportional to the zoom magnification, the zoom center is always unchanged, and the second coordinate is zoomed and adjusted according to the zoom magnification and the zoom center to obtain an initial zoom coordinate; it can be understood that after zooming, the image deforms in equal proportion, but the position of the image is limited by the center of the zoom, and the position of the image needs to be corrected, wherein the offset is calculated according to the zoom ratio and the zoom center, the offset comprises a longitudinal offset and a transverse offset, and the initial zoom coordinate is moved in a four-quadrant coordinate system according to the offset to obtain a target zoom coordinate; assuming that the resolution of the display tool is 1920 × 1080 and the length of the long side of the graphic is scale, the zoomed graphic is shifted by (1-scale) unit on the x-axis, and at this time, the zoom center is adjusted to the origin of the four-quadrant coordinate system, and the unit of (-1920 × 1-scale)) needs to be shifted on the x-axis, and the movement amount should be (-1920 × 1-scale) zoom magnification in consideration of the view distance factor of GLSurfaceView, so that the target zoomed graphic can be accurately displayed on the target position of the display tool with high efficiency.
It can be seen that, in implementing the method for implementing high-speed preview of graphics described in fig. 1, the Canvas plug-in is used to draw the initial graphics according to the instruction input by the user; acquiring a first coordinate corresponding to the initial graph; converting the first coordinates to second coordinates corresponding to OpenGL (Open Graphics Library); drawing a target graph according to the second coordinate; and outputting the target graph for the user to preview. Therefore, fine graphs are drawn based on the Canvas plug-in, and then the graphs are efficiently moved and output by adopting OpenGL, so that the operated graphs can be displayed at high speed for users to preview after the users operate, and the use experience of the users is improved.
It should be understood that, the display tool illustrated in the embodiment of the present invention is a conference whiteboard, and an android platform is adopted, so that each method in the embodiment of the present invention is implemented based on underlying codes of an android operating system, and for conference whiteboards adopting different operating platforms, corresponding underlying codes may be constructed based on the method and the idea set forth in the embodiment of the present invention to implement the same function.
Example two
Referring to fig. 4, fig. 4 is a schematic structural diagram of a system for implementing high-speed graphics preview (hereinafter, referred to as "system") according to an embodiment of the present invention. The system may include:
an initial drawing unit 401, configured to draw an initial graph by using a Canvas plug-in according to an instruction input by a user;
a coordinate obtaining unit 402, configured to obtain a first coordinate corresponding to the initial graph;
a coordinate conversion unit 403 for converting the first coordinate into a second coordinate corresponding to OpenGL (Open graphics library);
a zoom monitoring unit 404, configured to monitor whether an instruction input by a user is a zoom instruction;
a data obtaining unit 405, configured to obtain a zoom magnification and a zoom center included in a zoom instruction when it is monitored that a user inputs the zoom instruction;
an initial scaling unit 406, configured to adjust the second coordinate according to the scaling factor and the scaling center to obtain an initial scaling coordinate;
a graph moving unit 407, configured to move the initial scaling coordinate in a four-quadrant coordinate system to obtain a target scaling coordinate;
a drawing unit 408 for drawing the target figure in accordance with the second coordinates, and for drawing the target zoom figure in accordance with the target zoom coordinates;
a graphic output unit 409 for outputting the target graphic for user preview and for outputting the target zoom graphic for user preview.
The coordinate conversion unit 403 includes:
a coordinate construction subunit 4031, configured to construct a four-quadrant coordinate system by using OpenGL;
and a coordinate substituting subunit 4032, configured to substitute the first coordinate into a lower right quadrant of the four-quadrant coordinate system according to a preset conversion ratio, so as to obtain a second coordinate corresponding to OpenGL.
And, the graphic moving unit 407 includes:
the offset calculation unit 4071 is configured to calculate an offset according to the zoom ratio and the zoom center, where the offset includes a longitudinal offset and a lateral offset;
the graph moving subunit 4072 is configured to move the initial scaling coordinate in the four-quadrant coordinate system according to the offset to obtain a target scaling coordinate.
As an optional implementation manner, the coordinate constructing subunit 4031 adopts OpenGL to construct a four-quadrant coordinate system; according to a preset conversion ratio, the coordinate substituting subunit 4032 substitutes the first coordinate into the lower right quadrant of the four-quadrant coordinate system to obtain a second coordinate corresponding to OpenGL. Specifically, the coordinate construction subunit 4031 constructs a four-quadrant coordinate system starting from the origin and extending in both directions along the x-axis and the y-axis, and in order to facilitate alignment and conversion of the coordinate system, a lower right quadrant of the four-quadrant coordinate system is selected for drawing a graph, and a first coordinate is substituted into the lower right quadrant, and in order to make the graph in the Canvas plugin fully cover the display interface, a conversion ratio of 1 is set: 2, so that the coordinate center of the converted graph is the center of a four-quadrant coordinate system, and a second coordinate corresponding to OpenGL after the first coordinate conversion is obtained. As can be seen, OpenGL can efficiently and quickly convert graphics drawn in a Canvas plug-in with the assistance of a GPU.
As an alternative embodiment, the zooming monitoring unit 404 monitors whether the instruction input by the user is a zooming instruction; if it is monitored that the user inputs a zoom instruction, the data obtaining unit 405 obtains a zoom magnification and a zoom center included in the zoom instruction; the initial zooming unit 406 adjusts the second coordinate according to the zooming magnification and the zooming center to obtain an initial zooming coordinate; the graph moving unit 407 moves the initial scaling coordinate in the four-quadrant coordinate system to obtain a target scaling coordinate; the graphic drawing unit 408 draws a target zoom graphic according to the target zoom coordinate; the graphic output unit 409 outputs the target zoom graphic for the user to preview. Specifically, when the zoom monitoring unit 404 monitors that a zoom instruction is input by a user, the data obtaining unit 405 may obtain a zoom ratio and a zoom center according to coordinates related to the zoom instruction input by the user, the initial zoom unit 406 implements image zooming in OpenGL by using a GLSurfaceView tool, and the GLSurfaceView implements image zooming based on a view distance principle, for example, when the view distance is 1 time, the image moves by 1 unit, and the image actually moves by 1 unit in the viewport; when the visual distance is 2 times, the graph moves by 1 unit, the graph actually moves by 1/2 units in the viewport, the visual distance is inversely proportional to the zoom magnification, the zoom center is always unchanged, and the second coordinate is zoomed and adjusted according to the zoom magnification and the zoom center to obtain an initial zoom coordinate; it can be understood that after zooming, the graphics are deformed in equal proportion, but the zoom center is restricted, and the position of the graphics needs to be corrected, here, the offset calculating subunit 4071 calculates the offset according to the zoom magnification and the zoom center, the offset includes the longitudinal offset and the transverse offset, and the graphics moving subunit 4072 moves the initial zoom coordinate in the four-quadrant coordinate system according to the offset to obtain the target zoom coordinate; assuming that the resolution of the display tool is 1920 × 1080 and the length of the long side of the graphic is scale, the zoomed graphic is shifted by (1-scale) unit on the x-axis, and at this time, the zoom center is adjusted to the origin of the four-quadrant coordinate system, and the unit of (-1920 × 1-scale)) needs to be shifted on the x-axis, and the movement amount should be (-1920 × 1-scale) zoom magnification in consideration of the view distance factor of GLSurfaceView, so that the target zoomed graphic can be accurately displayed on the target position of the display tool with high efficiency.
The method and system for implementing high-speed preview of graphics disclosed in the embodiments of the present invention are described in detail above, and the principle and implementation manner of the present invention are explained in this document by applying specific examples, and the description of the above embodiments is only used to help understanding the method and core idea of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (10)

1. A method for realizing high-speed preview of graphics is characterized by comprising the following steps:
adopting a Canvas plug-in to draw an initial graph according to an instruction input by a user;
acquiring a first coordinate corresponding to the initial graph;
converting the first coordinates to second coordinates corresponding to OpenGL (Open Graphics Library);
drawing a target graph according to the second coordinate;
and outputting the target graph for a user to preview.
2. The method of claim 1, wherein the converting the first coordinate to a second coordinate corresponding to OpenGL (Open Graphics Library) comprises:
adopting OpenGL to construct a four-quadrant coordinate system;
and substituting the first coordinate into a lower right quadrant of the four-quadrant coordinate system according to a preset conversion ratio to obtain a second coordinate corresponding to OpenGL.
3. The method of claim 2, further comprising:
monitoring whether the instruction input by the user is a zooming instruction;
if the situation that the user inputs a zooming instruction is monitored, acquiring a zooming magnification and a zooming center which are included in the zooming instruction;
adjusting the second coordinate according to the zooming magnification and the zooming center to obtain an initial zooming coordinate;
moving the initial zooming coordinate in the four-quadrant coordinate system to obtain a target zooming coordinate;
drawing a target zooming graph according to the target zooming coordinate;
and outputting the target zooming graph for the user to preview.
4. The method of claim 3, wherein moving the initial zoom coordinate in the four-quadrant coordinate system to obtain a target zoom coordinate comprises:
calculating offset according to the zooming magnification and the zooming center, wherein the offset comprises longitudinal offset and transverse offset;
and moving the initial zooming coordinate in the four-quadrant coordinate system according to the offset to obtain the target zooming coordinate.
5. The method according to any one of claims 1 to 4, wherein OpenGL runs on a GPU (Graphics Processing Unit).
6. A system for enabling high-speed previewing of graphics, comprising:
the initial drawing unit is used for drawing an initial graph by adopting a Canvas plug-in according to an instruction input by a user;
the coordinate acquisition unit is used for acquiring a first coordinate corresponding to the initial graph;
a coordinate conversion unit configured to convert the first coordinate into a second coordinate corresponding to OpenGL (Open Graphics Library);
the graph drawing unit is used for drawing a target graph according to the second coordinate;
and the graphic output unit is used for outputting the target graphic for the user to preview.
7. The system according to claim 6, wherein the coordinate conversion unit comprises:
the coordinate constructing subunit is used for constructing a four-quadrant coordinate system by adopting OpenGL;
and the coordinate substitution subunit is used for substituting the first coordinate into the lower right quadrant of the four-quadrant coordinate system according to a preset conversion ratio to obtain a second coordinate corresponding to OpenGL.
8. The system of claim 7, further comprising:
the zooming monitoring unit is used for monitoring whether the instruction input by the user is a zooming instruction;
the data acquisition unit is used for acquiring a zooming magnification and a zooming center which are included in the zooming instruction when the fact that the user inputs the zooming instruction is monitored;
the initial zooming unit is used for adjusting the second coordinate according to the zooming magnification and the zooming center to obtain an initial zooming coordinate;
the graph moving unit is used for moving the initial zooming coordinate in the four-quadrant coordinate system to obtain a target zooming coordinate;
the graph drawing unit is also used for drawing a target zooming graph according to the target zooming coordinate;
the graphic output unit is further used for outputting the target zooming graphic for a user to preview.
9. The system of claim 8, wherein the graphics mobile unit comprises:
the offset calculation unit is used for calculating an offset according to the zooming magnification and the zooming center, wherein the offset comprises a longitudinal offset and a transverse offset;
and the graph moving subunit is used for moving the initial zooming coordinate in the four-quadrant coordinate system according to the offset to obtain the target zooming coordinate.
10. The system according to any one of claims 6 to 9, wherein the OpenGL runs on a GPU (Graphics Processing Unit).
CN202010699277.3A 2020-07-20 2020-07-20 Method and system for realizing high-speed preview of graph Pending CN111798379A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010699277.3A CN111798379A (en) 2020-07-20 2020-07-20 Method and system for realizing high-speed preview of graph

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010699277.3A CN111798379A (en) 2020-07-20 2020-07-20 Method and system for realizing high-speed preview of graph

Publications (1)

Publication Number Publication Date
CN111798379A true CN111798379A (en) 2020-10-20

Family

ID=72808048

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010699277.3A Pending CN111798379A (en) 2020-07-20 2020-07-20 Method and system for realizing high-speed preview of graph

Country Status (1)

Country Link
CN (1) CN111798379A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112764650A (en) * 2021-01-29 2021-05-07 久瓴(江苏)数字智能科技有限公司 Graph scaling method and device, electronic equipment and storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160300381A1 (en) * 2015-04-07 2016-10-13 Samsung Electronics Co., Ltd. Display apparatus and control method thereof
CN107239266A (en) * 2016-03-29 2017-10-10 罗森伯格技术(昆山)有限公司 A kind of method and device for showing CAD diagram paper without plug-in unit in WEB front-end
CN107888845A (en) * 2017-11-14 2018-04-06 腾讯数码(天津)有限公司 A kind of method of video image processing, device and terminal
CN108133454A (en) * 2016-12-01 2018-06-08 阿里巴巴集团控股有限公司 Model space geometric image switching method, device, system and interactive device
US20180342085A1 (en) * 2014-11-26 2018-11-29 John Balestrieri Methods for Creating a Simulated Watercolor-Painted Image from a Source Image
CN110297568A (en) * 2018-03-22 2019-10-01 阿里巴巴集团控股有限公司 Electronic white board realization method, device, equipment and storage medium
CN110544290A (en) * 2019-09-06 2019-12-06 广东省城乡规划设计研究院 data rendering method and device
CN110706326A (en) * 2019-09-02 2020-01-17 广东省城乡规划设计研究院 Data display method and device

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180342085A1 (en) * 2014-11-26 2018-11-29 John Balestrieri Methods for Creating a Simulated Watercolor-Painted Image from a Source Image
US20160300381A1 (en) * 2015-04-07 2016-10-13 Samsung Electronics Co., Ltd. Display apparatus and control method thereof
CN107239266A (en) * 2016-03-29 2017-10-10 罗森伯格技术(昆山)有限公司 A kind of method and device for showing CAD diagram paper without plug-in unit in WEB front-end
CN108133454A (en) * 2016-12-01 2018-06-08 阿里巴巴集团控股有限公司 Model space geometric image switching method, device, system and interactive device
CN107888845A (en) * 2017-11-14 2018-04-06 腾讯数码(天津)有限公司 A kind of method of video image processing, device and terminal
CN110297568A (en) * 2018-03-22 2019-10-01 阿里巴巴集团控股有限公司 Electronic white board realization method, device, equipment and storage medium
CN110706326A (en) * 2019-09-02 2020-01-17 广东省城乡规划设计研究院 Data display method and device
CN110544290A (en) * 2019-09-06 2019-12-06 广东省城乡规划设计研究院 data rendering method and device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112764650A (en) * 2021-01-29 2021-05-07 久瓴(江苏)数字智能科技有限公司 Graph scaling method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN104252294B (en) Computer system and its operating method with the mouse apparatus with screen size adjustment DPI
CN104898947B (en) A kind of method that GDI electronics map vector scaling and translation are realized based on mouse position
US20120026198A1 (en) Zoom processing device, zoom processing method, and computer program
JP6071866B2 (en) Display control device, display device, imaging system, display control method, and program
CN103927171B (en) Method and system for implementing multi-screen preview on stereoscopic desktops
CN103853452A (en) Method and system for realizing multi-screen switchover of stereo desktop
WO2010095204A1 (en) Interface controller and method thereof
CN111798379A (en) Method and system for realizing high-speed preview of graph
CN110007786B (en) Method and related device for optimizing handle mapping to mouse sensitivity
CN103838429A (en) Method and system for conducting drawing on touch screen to achieve writing brush effect
JP6240135B2 (en) Image processing apparatus, image processing method, and program
CN107909633B (en) Virtual mouse drawing tool and drawing method
CN106648360B (en) Positioning method and device of 3D ball machine
JP6432449B2 (en) Information processing apparatus, information processing program, and information processing method
CN109814704B (en) Video data processing method and device
CN111435589A (en) Target display method and device and target display system
JPWO2016092588A1 (en) Drawing apparatus and drawing method
KR101709529B1 (en) Apparatus and method for controlling image screen using portable terminal
CN104965654B (en) A kind of method and system of head portrait adjustment
CN104571817B (en) Collecting method and device for moving GIS platform
US20130093668A1 (en) Methods and apparatus for transmitting/receiving calligraphed writing message
CN105446618B (en) Operation interface sliding method and system
CN103616989A (en) Method and device for automatically adjusting position of cursor and mobile terminal
CN104616246B (en) A kind of method, apparatus and terminal device for handling image
CN214586816U (en) Somatosensory mouse intelligent pen, computer equipment and mouse pointer control system

Legal Events

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