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
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[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 the size of the white rec...
Embodiment 2
[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 the body of the chameleo...
Embodiment 3
[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 stretches the white rectangula...
PUM

Abstract
Description
Claims
Application Information

- Generate Ideas
- Intellectual Property
- Life Sciences
- Materials
- Tech Scout
- Unparalleled Data Quality
- Higher Quality Content
- 60% Fewer Hallucinations
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2025 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com