2012-05-15 26 views
0

我想繪製比沒有平滑的原始圖像大5倍的texture2d。繪製沒有平滑的放大圖像

繪圖線:

spriteBatch.Draw(texture, new Vector2(0, 0), null, Color.White, 0, Vector2.Zero, 
5f, SpriteEffects.None, 0); 

結果是經縮放的平滑圖像。添加this.GraphicsDevice.SamplerStates[0] = SamplerState.PointClamp;沒有幫助。

回答

0

你想要的是點紋理過濾。看看here