简体   繁体   中英

AndEngine GLES2 scale without touching corner

I want to scale this file

在此处输入图片说明

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM