Yes, the doc told me:
sf::Image img;
static_cast<sf::RenderImage>(img);
:wink:
I've just been looking in the src, I have to rebuild the doc with something. I thought the doc was not complete?
What's wrong with this:
sf::Image img(w,h,sf::Color(0,0,0,0));
sf::Sprite sprt(img);
sf::RenderTarget RT;
sf::Renderer rendr(RT);
rendr.SetTexture(img);
sf::RenderImage RI;
RI.create(w,h,32);
sprt.Render(RT,rendr);
img=sprt.GetImage();
img.SaveToFile("img.png");