How to turn off the anti-sawtooth function?

Hi, everyone!
I’m using the function of spriteBatch to scale the picture:
spriteBatch.Draw(texture, location, sourceRectangle, Color.White,angle, new Vector2(texture.Width / Columns / 2, texture.Height / Rows / 2), scale, effects,1);
However,the picture was bad because of the anti-sawtooth’s effect.


My question is how to turn off the anti-sawtooth function.
Should I change the arguments of Draw function or something else?
I will appreciate if anyone could reply! :grinning:

_spriteBatch.Begin(samplerState: SamplerState.PointClamp);

Thanks!

1 Like