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

Method and device for generating Sprite chart

A technology in pictures and pictures, applied in the field of communication, can solve problems such as poor scalability and cumbersome picture synthesis process, and achieve the effect of simplifying the synthesis process and increasing scalability

Pending Publication Date: 2020-06-30
CHINA MOBILEHANGZHOUINFORMATION TECH CO LTD +1
View PDF9 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] However, the inventor found that the method of generating the sprite image through the image processing software of photoshop requires professionals to manually synthesize the pictures, resulting in a cumbersome process of picture synthesis
Although the way of professional sprite image generation software does not require manual operation, each software only supports fixed image layouts, such as horizontal layout, vertical layout, etc., and the scalability is poor

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 generating Sprite chart
  • Method and device for generating Sprite chart
  • Method and device for generating Sprite chart

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0063] The following will clearly and completely describe the technical solutions in the embodiments of the present application with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, not all of them. Based on the embodiments of the present application, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present application.

[0064] The method for generating a sprite image provided by the embodiment of the present invention can be applied on a server or a terminal.

[0065] In order to ensure the accuracy of sprite image synthesis, the server is an application server or cloud server with strong computing power; the terminal can be a mobile phone, smart phone, notebook computer, digital broadcast receiver, personal digital assistant with strong computing power (PDA), tablet ...

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 for generating a Sprite chart. The method comprises the steps of obtaining a picture size of at least one to-be-synthesized picture; obtaining a picture according to a preset binary tree layout algorithm and a picture size, and performing synthesis layout on the at least one to-be-synthesized picture, and obtaining region information of the target synthesis region and position information of the at least one to-be-synthesized picture in the target synthesis region, and obtaining a Sprite picture of the at least one to-be-synthesized picture according to the region information of the target synthesis region and the position information of the at least one to-be-synthesized picture in the target synthesis region. A binary tree layout algorithm capable of supporting multiple operating systems is adopted to simplify the picture synthesis process, the arrangement and layout of to-be-synthesized pictures can be customized, and the expandability of the picture arrangement mode is improved to meet different application requirements.

Description

technical field [0001] The present application relates to the field of communication technologies, and in particular to a method and device for generating a sprite map. Background technique [0002] Sprite images, also called CSS sprites, are a Cascading Style Sheets (CSS) image synthesis technology. More than 90% of the current website development will use small icons. Calling and displaying multiple small icons is a common operation in front-end development. If each small icon calls a picture for display, it means that the display of each small icon Both generate an HTTP request, but each HTTP request requires a certain performance overhead. In order to reduce the number of HTTP requests and speed up the display of webpage content, many websites use navigation bar icons and login box pictures that are not label, but a CSS sprite map. The CSS sprite image allows the images of multiple small icons involved in a page with multiple small icons to be included in a large ima...

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): G06F16/958G06T11/60
CPCG06T11/60
Inventor 李杨张炜
Owner CHINA MOBILEHANGZHOUINFORMATION TECH CO LTD