Sign in to follow this  

Resizing image with xna

This topic is 1818 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

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