创建精灵--九宫格

CCScale9Sprite* pBGPicFrame = CCScale9Sprite::create((g_ImgPath + "23.png").c_str());
    CC_ERROR(pBGPicFrame, "【CActiveSetInfoLayer::ShowRight】pBGPicFrame is null !");
    pBGPicFrame->setContentSize(CCSizeMake(280, 779));
    pBGPicFrame->setAnchorPoint(ccp(0, 0));
    pBGPicFrame->setPosition(ccp(360, 58));
    this->addChild(pBGPicFrame);

 

你可能感兴趣的:(创建)