1
Graphics / Save a sf::Sprite
« on: July 08, 2008, 06:30:20 pm »
Hey,
is there any way to save a sf::Sprite?
I need to save it to a png file to continue working with it.
Thanks in advance,
Dummie
is there any way to save a sf::Sprite?
Code: [Select]
sf::Sprite spr(img);
sf::Rect<int> rect;
rect.Left = imgX1;
rect.Right = imgX2;
rect.Bottom = imgY2;
rect.Top = imgY1;
spr.SetSubRect(rect);
spr.Resize(32, 32);
// Save???
I need to save it to a png file to continue working with it.
Thanks in advance,
Dummie