Rectangular picture generating method and device

A technology of rectangles and pictures, applied in the computer field, can solve problems such as large storage resources, and achieve the effects of saving storage resources, strong scalability and flexibility

Active Publication Date: 2015-09-30
GUANGDONG XIAOTIANCAI TECH CO LTD
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The embodiment of the present invention provides a method and device for generating a rectangular picture, which overcomes the pr

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
  • Rectangular picture generating method and device
  • Rectangular picture generating method and device
  • Rectangular picture generating method and device

Examples

Experimental program
Comparison scheme
Effect test

Example Embodiment

[0025] Embodiment one

[0026] An embodiment of the present invention provides a method for generating a rectangular picture, such as figure 1 As shown, the method includes:

[0027] Step 101, obtaining a white rectangle picture;

[0028] Wherein, the operation of the white rectangular picture obtained in step 101 may specifically be: copy a 100*100 white rectangular picture (such as MetaPic.png) stored in the local resource folder of the software (such as a game) to the internal memory , complete the following stretching and coloring operations on the white rectangle image in memory. It should be noted that a rectangular solid-color image has the characteristics that it will not be distorted by arbitrary stretching, and the shape of a curve, such as a circle, will become blurred after being placed to a certain extent. A rectangle is composed of vertical and horizontal lines. Stretching and shrinking does not change the lines of the rectangle. It should be understood that ...

Example Embodiment

[0040] Embodiment two

[0041] The embodiment of the present invention provides a method for generating a rectangular picture. The solution provided by the embodiment of the present invention belongs to the same inventive concept as the technical solution provided by the first embodiment. The difference is that the solution provided by this embodiment is for a specific Game rules, and make corresponding adjustments.

[0042] The example game in the embodiment of the present invention is the main body of the main character of the game who eliminates obstacles. When the game starts, the main character of the game (such as a chameleon) runs like a front, and an obstacle is generated in front, and the obstacle has a random number of 1 to 3 (i.e. 1~3) colors. like figure 2 , 3As shown, a certain number of colored rectangles are generated at the bottom of the screen. Click the rectangle, and a circle with the same color as the clicked rectangle will appear to spread outward from...

Example Embodiment

[0058] Embodiment Three

[0059] A device for generating a rectangular picture provided by an embodiment of the present invention, such as Figure 5 As shown, the device includes: an acquisition unit 301, a stretching unit 302, a coloring unit 303, and a display unit 304;

[0060] The acquisition unit 301 is configured to acquire a white rectangle picture;

[0061] The stretching unit 302 is configured to stretch the white rectangle picture according to the size of the target rectangle picture;

[0062] The coloring unit 303 is configured to color the stretched white rectangle picture according to the color of the target rectangle picture so as to generate a rectangle picture conforming to the size and color of the target rectangle;

[0063] The display unit 304 is configured to display the produced rectangular picture.

[0064] Based on the above description of the device for generating a rectangular picture provided in Embodiment 3 of the present invention, the device str...

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

An embodiment of the invention discloses a rectangular picture generating method and device. The method includes: acquiring a white rectangular picture; according to size of a target rectangular picture, drawing the white rectangular picture; according to color of the target rectangular picture, coloring the white rectangular picture after being drawn to generate a rectangular picture conforming to the target rectangular picture in size and color; displaying the generated rectangular picture. Compared with the prior art, the rectangular picture generating method has the advantages that pictures in each color do not need to be stored fully, so that storage resources are saved greatly; further, the while rectangular picture is drawn and colored, so that various pictures different in size and color can be acquired, and the method has high expansion capability and flexibility.

Description

technical field [0001] The invention relates to the field of computer technology, in particular to a method and device for generating a rectangular picture. Background technique [0002] The rapid development of computer technology provides users with more enjoyment, especially the application of image technology in various fields, which makes users have a more comfortable experience visually. For example, in games, excellent picture display technology makes players have a very pleasant gaming experience. Some games in the prior art require the player to click on the rectangular frame corresponding to the color of the obstacle in the game to eliminate the obstacle in the game. During the display process of the game, the device needs to display Multiple rectangular pictures of different colors. At the same time, the size of the displayed rectangular picture is also limited by the level of the game level. For games at different levels, the size of the displayed rectangular pi...

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/40
Inventor 季辉
Owner GUANGDONG XIAOTIANCAI 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