سؤال

I want to scale this file

enter image description here

to create rectangles with diffrent sizes without cutting it to 4 or 9 peace. I know that in iOS it is possible, but it is in andengine? How I can tell to andengine "scale only green part"?

هل كانت مفيدة؟

المحلول

Android (and AndEngine) use 9-patch images to do this type of scaling. http://developer.android.com/guide/topics/graphics/2d-graphics.html#nine-patch

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top