SFML community forums

Help => Graphics => Topic started by: RobotGymnast on February 04, 2011, 03:51:19 am

Title: Splicing together images?
Post by: RobotGymnast on February 04, 2011, 03:51:19 am
Is there a way to tile an image or splice together multiple images? I have a simple .PNG of a stone wall which can be tiled, but I can't figure out how to tile it to a certain size.
Title: Re: Splicing together images?
Post by: JAssange on February 04, 2011, 12:39:12 pm
Quote from: "RobotGymnast"
Is there a way to tile an image or splice together multiple images? I have a simple .PNG of a stone wall which can be tiled, but I can't figure out how to tile it to a certain size.

Set the Subrect and draw repeatedly.
Title: Re: Splicing together images?
Post by: RobotGymnast on February 04, 2011, 12:47:00 pm
Quote from: "JAssange"
Quote from: "RobotGymnast"
Is there a way to tile an image or splice together multiple images? I have a simple .PNG of a stone wall which can be tiled, but I can't figure out how to tile it to a certain size.

Set the Subrect and draw repeatedly.


Is there a way to only do this once? Say, to save the tiled image as an Image?
Title: Splicing together images?
Post by: Laurent on February 04, 2011, 02:10:11 pm
sf::Image::Copy.