Method and device for rendering an image

A technology for drawing images and radii, applied in the field of drawing images, can solve problems such as poor writing effect and uniform stroke thickness, and achieve the effect of changing the uniform stroke thickness, improving writing experience, and realizing the effect of simulated drawing.

Active Publication Date: 2021-07-20
BEIJING JINGDONG SHANGKE INFORMATION TECH CO LTD +1
View PDF5 Cites 0 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 for rendering an image
  • Method and device for rendering an image
  • Method and device for rendering an 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 present application discloses methods and apparatuses for rendering images. A specific implementation of the method includes: acquiring a coordinate sequence in the canvas coordinate system when a touch point controlled by the user moves on the canvas; acquiring the first horizontal axis radius of the first ellipse corresponding to each coordinate in the coordinate sequence , the radius of the first vertical axis, and the first included angle; check whether the following conditions are met: the radius of each first horizontal axis is equal, the radius of each first vertical axis is equal, and the first included angle is equal; in response to the above The conditions are all satisfied, and the second horizontal axis radius, the second vertical axis radius and the second included angle of the second ellipse determined by each two adjacent coordinates are determined; based on each second horizontal axis radius, each second vertical axis radius and Each second angle draws the image on the canvas. This embodiment changes the previous phenomenon that the thickness of strokes is uniform and stiff when drawing an image, realizes the simulated drawing of the image, and improves the user's writing experience on the canvas.

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
Patent Type & Authority Patents(China)
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