OnTopReplica icon indicating copy to clipboard operation
OnTopReplica copied to clipboard

Allow sharp pixelated rendering

Open mathiasbynens opened this issue 1 year ago • 1 comments

For pixel art games, it would be lovely if it was possible to enable "pixelated" rendering, i.e. no anti-aliasing or smoothing for the zoomed-in replica. Similar to image-rendering: pixelated; in CSS.

I suspect this might be possible by applying System.Drawing.Drawing2D.SmoothingMode.None and System.Drawing.Drawing2D.InterpolationMode.NearestNeighbor.

mathiasbynens avatar Mar 22 '23 21:03 mathiasbynens

that would be great

skeddles avatar Apr 21 '23 22:04 skeddles