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

Author Topic: copy sf::Image into another with scaling ?  (Read 1396 times)

0 Members and 1 Guest are viewing this topic.

dydya-stepa

  • Jr. Member
  • **
  • Posts: 82
    • View Profile
copy sf::Image into another with scaling ?
« on: October 23, 2011, 03:16:25 pm »
is there something out of the box in sfml 2.0 ?

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
copy sf::Image into another with scaling ?
« Reply #1 on: October 23, 2011, 04:57:39 pm »
Nop. But why do you want to do that? If it's for drawing, you'd better apply a scale to the corresponding sprite.
Laurent Gomila - SFML developer

dydya-stepa

  • Jr. Member
  • **
  • Posts: 82
    • View Profile
copy sf::Image into another with scaling ?
« Reply #2 on: October 29, 2011, 12:29:05 pm »
i want to create a texture atlas - combine several images into one image. algorithm may scale images a bit if they do not fit. i can't change the algorithm - 3rd party library.

 

anything