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

Picture generation method and device

A graphics generation and graphics technology, applied in the field of browsers, can solve the problems of large file size, waste of system processing resources, cumbersome operations, etc., and achieve the effect of simple data processing, saving system processing resources, and small size

Active Publication Date: 2015-07-22
TENCENT TECH (SHENZHEN) CO LTD
View PDF5 Cites 6 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

In this processing method, the background graphic of the stamp itself has a large file size, and the background graphic of the above stamp is composed of 4 zigzag graphics instead of a complete graphic, so in the process of making the graphic of the stamp based on the above background graphic, it is necessary to Simultaneously process 4 graphics, the operation is cumbersome and wastes system processing resources

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
  • Picture generation method and device
  • Picture generation method and device
  • Picture generation method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0030] The technical solutions of the present invention will be further described below in conjunction with the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.

[0031] An embodiment of the present invention provides a first embodiment of a graph generation method; figure 1 As shown, the graphic generation method of the present invention comprises the following steps:

[0032] Step S01, monitoring the operation event triggered by the user to generate a stamp edge style graphic based on the browser, calling the radial gradient style graphic in the browser's cascading style sheet;

[0033] In the graphics generation method of this embodiment, the browser renders the HTML (Hypertext Markup Language, Hypertext Markup Language) structure and cascading style sheets in the web (network) page to generate the stamp frame graphics. Th...

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 picture generation method and device. According to the embodiment of the picture generation method and device, a postage stamp frame picture is generated based on a html structure and a cascading style sheet in a browser rendering web page. For example, through the utilization of a radial gradient schema picture in the cascading style sheet, the initial color value corresponding to the radial gradient schema picture is set into a same color value, and a uniform circular schema picture with same color value is acquired. The attribute parameter corresponding to the uniform circular schema picture is adjusted according to a preset parameter value, and a jagged picture with a postage stamp edge style is generated. According to the embodiment of the picture generation method and device, the generated jagged picture with the postage stamp edge style is a vector diagram generated by the cascading style sheet, the traditional mode that a bitmap file is used as background is replaced, data processing is simple and fast, the system processing resource is saved, the data processing efficiency is improved, and at the same time the occupied size of the picture is comparatively small.

Description

technical field [0001] The present invention relates to browser technology, in particular to a method and device for generating graphics for the style of stamp edges. Background technique [0002] For the special-purpose graphics of stamps, due to the fixed and particularity of the edge style, PNG (Portable Network Graphic, portable network image file format), JPG (Joint Picture Group, a image compression format), GIF (Graphics Interchange Format, Graphics Interchange Format) and other formats of zigzag graphics as the background; because the size of the content graphics in the stamp is uncertain, four zigzag graphics are used in the four directions of up, down, left, and right Background graphics for postage stamps. In this processing method, the background graphic of the stamp itself has a large file size, and the background graphic of the above stamp is composed of 4 zigzag graphics instead of a complete graphic, so in the process of making the graphic of the stamp based...

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): G06F3/0481
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