图片拉伸不变形的9妹
// 图片拉伸不变形的9妹 auto scale = Scale9Sprite::create("res/button.png"); scale->setContentSize(Size(76,33));setPosition(Point200500thisaddChild(scale);
记得导入
#include"extensions/cocos-ext.h"
usingnamespaceextension;
原文链接:https://www.f2er.com/cocos2dx/339853.html