Currently, I’m facing the problem with scale9path ! I want the result as the image below :
Size : 1363,812
I implemented two ways. But It gives the result not as I expected!
Method 01: I loaded .csb file !
Method 02: I created Scale9Sprite
auto popupBackground = Scale9Sprite::createWithSpriteFrameName("popup/popup_bg.png"); popupBackground->setContentSize(Size(1363, 812)); popupBackground->setCapInsets(Rect(129, 79, 134, 84)); popupBackground->setPosition(m_origin + m_visibleSize / 2); this->addChild(popupBackground);
Both methods give the same result
Could someone give me the solution for this problem?