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?
Resizing image with xna
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).
How i use the SamplerState.PointClamp?
You set it in the Begin method of your SpriteBatch (the third argument):
http://msdn.microsoft.com/en-us/library/ff433699.aspx
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement