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

Author Topic: RenderWindow.SetSize blurs images  (Read 3312 times)

0 Members and 1 Guest are viewing this topic.

SuperV1234

  • SFML Team
  • Full Member
  • *****
  • Posts: 190
    • View Profile
RenderWindow.SetSize blurs images
« on: April 26, 2011, 01:22:49 pm »
Is it possible to make the RenderWindow.SetSize command resize without blurring the images?

Similar as using Image.Smooth = false, but for the whole window.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
RenderWindow.SetSize blurs images
« Reply #1 on: April 26, 2011, 01:28:15 pm »
It is Image::SetSmooth that blurs your scene, so you must call SetSmooth(false) for every image.
Laurent Gomila - SFML developer

shiroaisu

  • Newbie
  • *
  • Posts: 28
    • View Profile
Re: RenderWindow.SetSize blurs images
« Reply #2 on: June 13, 2011, 06:26:36 pm »
Quote from: "SuperV1234"
Is it possible to make the RenderWindow.SetSize command resize without blurring the images?

Similar as using Image.Smooth = false, but for the whole window.


I think there is no way to prevent it, the window has one resolution, and if u stretch it it will blur due to antialiasing (i believe). you can try turn off antialiasing but im not sure if it is already off by default.

To change the windows resolution try to use .Create(..) instead.

sory if that wasnt what u meant, but hope i helped.

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11034
    • View Profile
    • development blog
    • Email
Re: RenderWindow.SetSize blurs images
« Reply #3 on: November 25, 2013, 01:15:29 pm »
Please open your own thread instead of bumping 2 years old threads, unless it's really about the exact same subject, which is not the case here.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

jokoon

  • Newbie
  • *
  • Posts: 35
    • View Profile
Re: RenderWindow.SetSize blurs images
« Reply #4 on: November 25, 2013, 01:50:31 pm »
Sorry I did not find the results I wanted when I searched, found some after posting. Deleted my reply.

 

anything