Jump to content
  • Advertisement
Sign in to follow this  
MisteRnoOrOnha

Resizing image with xna

This topic is 2148 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi ladies and gentlemans, now i'm here do ask how can i resize an image in XNA without lose quality? I'm use the draw method but the image appears on screen with a giant blur, how can i remove this?

Share this post


Link to post
Share on other sites
Advertisement

Are you making the image bigger or smaller?

How are you drawing the image?

What SamplerState are you using?

 

Edit: If you're trying to enlarge a small image and keep sharp pixel edges, you need to use point sampling. (SamplerState.PointClamp or SamplerState.PointWrap).

Edited by phil_t

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!