Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow sharp pixelated rendering #140

Open
mathiasbynens opened this issue Mar 22, 2023 · 1 comment
Open

Allow sharp pixelated rendering #140

mathiasbynens opened this issue Mar 22, 2023 · 1 comment

Comments

@mathiasbynens
Copy link

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.

@skeddles
Copy link

that would be great

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants