Method and device for lossless amplification of irregular picture based on cocos2dx
An irregular and picture-based technology, applied in the computer field, can solve the problems of irregular pictures that cannot be stretched and zoomed in, stretching ratio distortion, etc.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0026] Please refer to Figure 1 , a method of non-destructive enlargement of irregular pictures based on cocos2dx, including steps:
[0027] S1. Obtain the irregular original image to be processed in cocos2dx for directed distance field processing, and obtain the processed image;
[0028] The processed image is an SDF image.
[0029] Specifically, the information stored in the normal picture is color information, and after the directed distance field processing, the picture is stored as distance information, and the distance information is expressed as the distance from each point in the irregular picture to the inside of the irregular picture, that is, the picture becomes a vector map, and the processed picture is a solid color picture.
[0030] Because the picture is a solid color picture, there is no need to store the picture color information, which is smaller than the original picture and saves a lot of memory resources.
[0031] S2, according to the distance information of eac...
Embodiment 2
[0040] Please refer to Figure 2 , based on cocos2dx lossless enlargement of the irregular picture apparatus 1, comprising memory 2, processor 3 and stored on memory 2 and may run on the processor 3 computer program, the processor 3 implements the various steps in Example I when executing the program.
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 

