SFML community forums

General => Feature requests => Topic started by: Cuban-Pete on June 28, 2011, 06:32:54 pm

Title: [Not needed] sf::Image Append
Post by: Cuban-Pete on June 28, 2011, 06:32:54 pm
I would like to see an image operator that appends images together.

I tried myself this and it's pretty difficult. Well, appending vertically (same width images) is not a problem, but horizontal it is.

If it is not on the agenda, I might try to create my own - if you guys want to help that is.  :roll:   :)  Perhaps I will start with a AppendVertical function.  :P
Title: [Not needed] sf::Image Append
Post by: Nexus on June 28, 2011, 06:42:39 pm
I don't think this is SFML's task, but it isn't difficult to achieve on user side. Just create a third image big enough to contain both images, and copy the pixels using sf::Image::Copy().
Title: [Not needed] sf::Image Append
Post by: Cuban-Pete on June 28, 2011, 07:00:31 pm
Awesome! That sf::Image::Copy() works like charm!  Thanks :D