We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When Run Code:
RenderTexture* pRender = RenderTexture::create( static_cast<int>(tmpSprite->getContentSize().width), static_cast<int>(tmpSprite->getContentSize().height), backend::PixelFormat::RGBA8888); // pRender->setSprite(tmpSprite); pRender->begin(); tmpSprite->visit(); pRender->end(); pRender->newImage([role](Image* image) { auto polygon = ImageAutoPolygon::generatePolygon(image); role->initWithPolygon(polygon); // role->updatePoly(); role->setVisible(true); });
In line auto polygon = ImageAutoPolygon::generatePolygon(image); You Will get a incomplete Image Instance Because Image::_data is null data Like This:
auto polygon = ImageAutoPolygon::generatePolygon(image);
When Use
The text was updated successfully, but these errors were encountered:
Fix: Null Image Data In RenderTexture::newImage Callback Error(cocos2…
cda47ac
…d#20776)
No branches or pull requests
When Run Code:
In line
auto polygon = ImageAutoPolygon::generatePolygon(image);
You Will get a incomplete Image Instance
Because Image::_data is null data
Like This:
When Use
The text was updated successfully, but these errors were encountered: