Search code examples
androidcocos2d-iphonegame-developmentcocos2d-android

Rounded Image cutting form all side


I am creating a game in cocos2d-android. all the images i use in Sprite shows me proper output except rounded image.

Rounded images are cut from all the side.

i test same image in cocos2d-iPhone, which shows me perfect output.

How to solve this rounded image issue.

EDIT :

Actual Image:

Actual Image

Result Image:

Result Image


Solution

  • Maybe the issue is there in cocos-2d source code.
    But as a temporary solution, you can modify that image with 5px transparent border.
    And try to use that new image. It will solve your problem.