1

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

Mihir Palkhiwala
  • 2,586
  • 3
  • 37
  • 47

2 Answers2

1

seems size is not proper . use dip and scaleType fitXY if its imageView . or recalculate and reset x,y cordinates if drawing bitmap or canvas

Shailendra Singh Rajawat
  • 8,172
  • 3
  • 35
  • 40
1

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.

Adinia
  • 3,722
  • 5
  • 40
  • 58