Unlock instant, AI-driven research and patent intelligence for your innovation.

Focus frame drawing method and device based on HTML (Hypertext Markup Language) canvas

A focus frame and focus element technology, applied in the focus frame drawing method and device field based on HTML canvas, can solve the problems of affecting processing speed and memory, increasing focus frame pictures, and more storage space, so as to reduce the cumbersome workload and avoid The workload is cumbersome and the effect of saving storage space

Inactive Publication Date: 2016-12-21
HISENSE VISUAL TECH CO LTD
View PDF4 Cites 6 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0008] Specifically, although drawing the focus frame picture into Canvas can realize diversified focus frame drawing, it does not support the dynamic change of the focus frame size, that is, for focus elements of different sizes, it is still necessary to prepare the Matching pictures, and there are many sizes and types of focus elements involved in the UI. For each size type of focus element, dynamically select the appropriate picture to complete the drawing of the focus frame
Although this method can save the drawing work of the code, it increases the number of UI focus frame pictures (that is, material source files) and takes up more storage space, and the number of pictures that the UI needs to read, decode and draw at runtime More, affecting processing speed and memory

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
  • Focus frame drawing method and device based on HTML (Hypertext Markup Language) canvas
  • Focus frame drawing method and device based on HTML (Hypertext Markup Language) canvas
  • Focus frame drawing method and device based on HTML (Hypertext Markup Language) canvas

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0038] In order to make the purpose, technical solutions and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings. Obviously, the described embodiments are only some of the embodiments of the present invention, rather than all of them. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

[0039] The technical solution involved in the present invention is mainly applied to the UI of smart terminal devices such as smart phones and smart TVs in HTML canvas, to draw corresponding focus frames for focus elements of different sizes through the determined focus frame pictures, without loading and using multiple sizes type of focus frame image, thereby avoiding the problem of a large amount of development caused by using pure cod...

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 relates to the technical field of Web front-end development, in particular to a focus frame drawing method and device based on a HTML (Hypertext Markup Language) canvas. While code drawing avoidance is guaranteed, storage space and operation memory are saved, and processing speed is improved. In the method, on the basis of a selected focus frame picture, at least one local picture is determined for the focus element of the focus frame to be drawn in the selected focus frame picture, the position of each local picture is determined according to the position of the focus element, and the corresponding local picture is drawn on the determined position to obtain the focus frame of the focus element. According to the scheme, the complexity of focus frame drawing is lowered, a personalized focus frame is flexibly compatible, and various types of focus frames are drawn. In addition, not all of the focus frames of various sizes are needed to be drawn and stored so as to avoid drawing a great quantity of drawing codes. In addition, each type of focus frame only uses one focus frame picture, not overmany focus frame pictures are needed to be stored, storage space is saved, and processing speed and memory can be guaranteed.

Description

technical field [0001] The invention relates to the technical field of Web front-end development, in particular to a method and device for drawing a focus frame based on HTML canvas. Background technique [0002] The HTML5 standard has brought revolutionary changes to Web front-end development, greatly improving the richness and interactivity of web page display. Due to the cross-platform nature of the browser engine and the convenience of JavaScript script development and debugging, the Web front-end development technology is not only used for the development of web pages, but also for the front-end development of the user interface UI of mobile terminals and smart devices. Therefore, with the implementation of the HTML5 standard, more and more manufacturers have begun to adopt the browser-based Web UI development model in the UI field of smart terminals. Among them, Canvas is a new tag in the HTML5 standard. The drawing application programming interface API provided by it...

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/986
Inventor 曹通仲维
Owner HISENSE VISUAL TECH CO LTD