I got problem with images smoothness during render on scale down. I got static view render of 4K (3840x2160), then I scale it down depending on the user’s resolution. Everything looks fine on equal scales (100%, 50%, 25%, etc.) but issues start occuring on non-equal, like 33.3% and so on.
Original image size is 3840x2160, so I create core RenderTarget2D
with this size, then draw image and scale whole view into target resolution
// Create 4K RenderTarget
RenderTarget2D View = new RenderTarget2D(GraphicsDevice, 3840, 2160);
// In Draw( ) function, I draw image on View RenderTarget
GraphicsDevice.SetRenderTarget(View);
// ...
spriteBatch.Draw(Image, Vector2.Zero, Color.White);
// Then I draw whole View onto screen
GraphicsDevice.SetRenderTarget(null);
// ...
spriteBatch.Draw(View, new Rectangle(0, 0, 1280, 720), Color.White);
If my target resolution is 1920x1080 (scale is equal 50% of 4K render) it looks nice and smooth
The problem occurs if scale is not a multiple of 4K resolution. For example, this is how it looks for 1280x720 (which is 33.3% of the 4K view). As you can see, edges are no longer smooth and lines are broken, which don’t look nice
Is there anything I can do to prevent this and smooth the image?