With sfml2 maybe something like this :
-create a Sprite with your image.
-resize the Sprite.
-make a renderImage with the resized Sprite.
sf::RenderImage resizeImage(sf::Image p_image,float p_width, float p_height)
{
sf::Sprite spriteTmp(p_image)
spriteTmp.Resize(p_width, p_height);
sf::RenderImage image;
image.Clear(sf::Color(0,0,0,255));
image.Draw(spriteTmp);
image.display();
return image;
}
and
if (!sf::RenderImage::IsAvailable())
{
return EXIT_FAILURE;
}
sf::Image newImage( reziseImage(myBaseImage,newWidth,newHeight).GetImage());
in sfml1.6 i don't know.