CCSprite* pSprite = CCSprite::create(“HelloWorld.png”);
CCScale9Sprite *sprite = CCScale9Sprite::create();
CCSpriteBatchNode * batchnode = CCSpriteBatchNode::createWithTexture(pSprite->getTexture(), 9);
sprite->updateWithBatchNode(batchnode, pSprite->getTextureRect(), false, CCRectZero);
this->addChild(sprite);