Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Splicing together images?  (Read 1916 times)

0 Members and 1 Guest are viewing this topic.

RobotGymnast

  • Jr. Member
  • **
  • Posts: 56
    • View Profile
Splicing together images?
« 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.

JAssange

  • Full Member
  • ***
  • Posts: 104
    • View Profile
Re: Splicing together images?
« Reply #1 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.

RobotGymnast

  • Jr. Member
  • **
  • Posts: 56
    • View Profile
Re: Splicing together images?
« Reply #2 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?

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Splicing together images?
« Reply #3 on: February 04, 2011, 02:10:11 pm »
sf::Image::Copy.
Laurent Gomila - SFML developer