I load an image with:
sf::Image img;
sf::Sprite sprite;
img.LoadFromFile("myimage.png"); // An image of 480x530 px
img.SetSmooth(0);
sprite.SetImage(img);
sprite.SetPosition(0, 0);
sprite.Resize(480, 530);
and when I show it with App.Draw (sprite); there's no problem. But then I change the image with:
img.LoadFromFile("biggerimage.png"); // An image of 500x500 px
sprite.SetImage(img);
sprite.Resize(480, 530);
then the image looks 500x500 size but cutted to 480x530, so it looks ugly.
How can I change an sprite image into a bigger image and resize it correctly?