Method and device used for drawing image

A technology for drawing images and users, which is applied in the field of drawing images, and can solve problems such as consistent thickness of strokes and poor writing effect

Active Publication Date: 2018-02-23
BEIJING JINGDONG SHANGKE INFORMATION TECH CO LTD +1
View PDF5 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] However, the existing HTML5-based image drawing method draws strokes that are consistent in thickness and stiff, and the writing effect is poor, which cannot meet people's needs for simulated writing

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
  • Method and device used for drawing image
  • Method and device used for drawing image
  • Method and device used for drawing image

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0051] The application will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain related inventions, rather than to limit the invention. It should also be noted that, for the convenience of description, only the parts related to the related invention are shown in the drawings.

[0052] It should be noted that, in the case of no conflict, the embodiments in the present application and the features in the embodiments can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and embodiments.

[0053] continue to refer figure 1 , shows a flow 100 of an embodiment of the method for rendering an image according to the present application. The method for drawing an image in this embodiment includes the following steps:

[0054] Step 101, acquiring the coordinate seq...

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

The invention discloses a method and a device used for drawing an image. One specific implementation way of the method comprises the following steps that: obtaining a coordinate sequence in a canvas coordinate system when a contact point controlled by a user moves on a canvas; obtaining the first abscissa axis radius, the first vertical axis radius and the first included angle of a first ellipse corresponding to each coordinate in the coordinate sequence; detecting whether the following conditions are met or not: all first abscissa axis radiuses are equal, all first vertical axis radiuses areequal and all first included angles are equal; responding when the above conditions are met, and determining the second abscissa axis radius, the second vertical axis radius and the second included angle of a second ellipse determined by every two adjacent coordinates; and on the basis of each second abscissa axis radius, each second vertical axis radius and each second included angle, drawing animage on the canvas. By use of the implementation way, a phenomenon that stroke thickness is consistent and stiff when the image is drawn is changed, the simulation drawing of the image is realized, and the writing experience of the user on the canvas is improved.

Description

technical field [0001] The present application relates to the field of computer technology, in particular to the field of web page drawing, and in particular to a method and device for drawing images. Background technique [0002] The development of the Internet has increased the demand for Web applications, and the release of the HTML5 (HyperText Markup Language5, fifth version of Hypertext Markup Language) standard allows users to experience richer Web applications. HTML5 provides the canvas tag element to realize the canvas function, and the canvas tag element can draw images by relying on the function statements of the scripting language JavaScript required for editing Web pages. [0003] However, the existing HTML5-based image drawing method draws strokes that are uniform in thickness and stiff, and the writing effect is poor, which cannot meet people's needs for simulated writing. Contents of the invention [0004] The purpose of the present application is to propos...

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
IPC IPC(8): G06T11/20G06F3/0488
CPCG06F3/04883G06T11/203
Inventor 王凯
Owner BEIJING JINGDONG SHANGKE INFORMATION TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products