Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Data drawing method and device

A data and data group technology, applied in the field of communication, can solve the problems of long data image display time, display delay, long data image time, etc., to achieve the effect of shortening the display time, shortening the time, and slowing down the display delay

Inactive Publication Date: 2017-08-01
TENCENT TECH (SHENZHEN) CO LTD
View PDF6 Cites 16 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The embodiment of the present invention provides a data drawing method and device, which can solve the technical problems that the time for drawing data images is relatively long when using Canvas to draw a large amount of data images, which will lead to a long display time of data images and obvious display delays

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Data drawing method and device
  • Data drawing method and device
  • Data drawing method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0024] This embodiment will be described from the perspective of a data rendering device, and the data rendering device may specifically be integrated into a terminal or other devices that need to perform data rendering.

[0025] A data drawing method, characterized in that it comprises: setting multiple drawing canvases on the browser, then acquiring multiple data to be drawn, and grouping the multiple data to be drawn to obtain multiple data groups, Wherein, the data group is composed of at least one data to be drawn, and the number is equal to the number of the drawing picture, respectively assigning a corresponding data group to each drawing canvas, wherein, a data group corresponds to a drawing canvas, and the drawing canvas is used Image plotting is performed on the data set corresponding to it.

[0026] Such as figure 1 As shown, the specific flow of the data drawing can be as follows:

[0027] 101. Set multiple drawing canvases on the browser.

[0028] The browser m...

Embodiment 2

[0047] According to the method described in Embodiment 1, an example will be given below for further detailed description.

[0048] In this embodiment, it will be described in detail by taking the data to be drawn as the positioning data, setting n-layer canvases, and integrating the data drawing device into the terminal as examples.

[0049] Such as figure 2 As shown, a data drawing method, the specific process can be as follows:

[0050] 201. The terminal sets n layers of canvases on the browser, where n is a positive integer greater than 1.

[0051] For example, set up 10 overlapping layers of canvas on the QQ browser.

[0052] Among them, the value of n can be determined by the preset image display time and the total amount of positioning data. For example, when the display time of 1 / a canvas data is less than or equal to the preset image display time, it is determined at this time that n=a, and a is A positive integer greater than 1.

[0053] 202. The terminal acquir...

Embodiment 3

[0066] In order to better implement the above method, an embodiment of the present invention also provides a data drawing device, such as image 3 As shown, the data plotting device may also include a setting unit 301, a grouping unit 302, an allocation unit 303, and a plotting unit 304, as follows:

[0067] A setting unit 301, configured to set multiple drawing canvases on the browser;

[0068] The grouping unit 302 is configured to acquire a plurality of data to be drawn, and group the plurality of data to be drawn to obtain a plurality of data groups, wherein the data group is composed of at least one data to be drawn, and the number is the same as that of the drawing picture equal in number;

[0069] An allocating unit 303, configured to allocate corresponding data groups to each drawing canvas, wherein one data group corresponds to one drawing canvas;

[0070] The drawing unit 304 is configured to use the drawing canvas to perform image drawing on the corresponding data...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

Embodiments of the invention disclose a data drawing method and device. The method comprises the following steps of: setting a plurality of drawing canvases on a browser; obtaining a plurality of pieces of to-be-drawn data; and grouping the plurality of pieces of to-be-drawn data to obtain a plurality of data groups, wherein each data group consists of at least one piece of to-be-drawn data, the quantity of the data groups is equal to the quantity of the drawing canvases, corresponding data groups are distributed to the drawing canvases, each data group corresponds to one drawing canvas which is adopted to carry out image drawing on the corresponding data group. According to the method and device, the time, for drawing data images, of the drawing canvases (such as canvas) can be shortened; and compared with the prior art, the method and device have the effects of shortening the data image display time and retarding the display delay.

Description

technical field [0001] The present invention relates to the field of communication technology, in particular to a data rendering method and device. Background technique [0002] HTML5 is the latest revised version of HTML (Hyper Text Markup Language), referred to as H5, and was established by the World Wide Web Consortium (W3C) in October 2014. The goal is to replace the HTML 4.01 and XHTML 1.0 standards formulated in 1999, in order to make the network standards meet the contemporary network needs when Internet applications are developing rapidly. [0003] Canvas is an efficient drawing canvas provided by h5, which can use JavaScript scripts to draw graphics on web pages, such as drawing pictures, compositing photos, creating animations and even real-time video processing and rendering. [0004] During the research and practice of the prior art, the inventors of the present invention found that the image of the data will not be displayed until all the images of the data to ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F17/30
CPCG06F16/838G06F16/9577G06T11/60G06F16/9574G06F16/958G06T11/206G06F16/00
Inventor 李一非
Owner TENCENT TECH (SHENZHEN) CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products