Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problems with NinePatchRect shrinking. #37027

Closed
qq715152910 opened this issue Mar 13, 2020 · 2 comments
Closed

Problems with NinePatchRect shrinking. #37027

qq715152910 opened this issue Mar 13, 2020 · 2 comments
Labels

Comments

@qq715152910
Copy link

qq715152910 commented Mar 13, 2020

Problems with NinePatchRect shrinking.

Test:

1.Use a 640x479 resolution picture, set the corner borders, and set the stretch to on.
2.Set rect_size to greater than 640x479, the corners and borders are normal.
3. Set rect_size to less than 640x479, the corners and border cannot maintain the original size,and the pixels are completely distorted.
Cocos and Unity will not have such a similar problem.

Error:
Set rect_size <640x479,
When reduced to 363x455, the corners and border cannot maintain the original size, and the pixels are completely distorted.

Demo:
Demo-Download

Bottleneck:
This will cause confusion for some 2D developers. If the picture is reduced from the original size to the specified size and the corners and borders remain the same, this is definitely a bottleneck for now.

Suggest:
Add an Option to the Control-> NinePatchRect property menu to let developers freely choose whether it is turned on to reduce the size and keep the corner borders unchanged. At present, this will be the demand of many 2D developers.

@rsubtil
Copy link
Contributor

rsubtil commented Mar 13, 2020

Can you provide a sample project replicating this? I tried, but I probably didn't understood the issue, and couldn't reproduce it.

@qq715152910
Copy link
Author

qq715152910 commented Mar 13, 2020

When zooming out, the border cannot maintain the original size, and the pixels are completely distorted.
Demo-Download

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants