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

Author Topic: why is my sprite blurred?  (Read 2512 times)

0 Members and 1 Guest are viewing this topic.

blueeyedlion

  • Jr. Member
  • **
  • Posts: 61
    • View Profile
why is my sprite blurred?
« on: June 21, 2011, 09:22:29 pm »
I made a simple sprite in paint, and when I displayed it in SFML, it was a bit blurred.  How do I display the sprite exactly as I made it in paint, to the pixel?

Hiura

  • SFML Team
  • Hero Member
  • *****
  • Posts: 4321
    • View Profile
    • Email
SFML / OS X developer

blueeyedlion

  • Jr. Member
  • **
  • Posts: 61
    • View Profile
why is my sprite blurred?
« Reply #2 on: June 22, 2011, 01:41:55 am »
Thanks, that worked.  My next question is:  is there a way to display a sprite that is not a rectangle?  For example, can I display a sprite that is ring shaped, but not overlap what is beneath the hole?

and I couldn't find anything with search.

Lo-X

  • Hero Member
  • *****
  • Posts: 618
    • View Profile
    • My personal website, with CV, portfolio and projects
why is my sprite blurred?
« Reply #3 on: June 22, 2011, 04:24:04 am »
if you had tried it with a simple png image with transparency, you would know that it works :)

Relic

  • Newbie
  • *
  • Posts: 43
    • View Profile
why is my sprite blurred?
« Reply #4 on: June 22, 2011, 05:14:42 am »
For jpeg or bmp images you can mask the part of the image that must be transparent using Image::CreateMaskFromColor(..) method.

 

anything