ebiten icon indicating copy to clipboard operation
ebiten copied to clipboard

ebiten: add `FilterCrispScaling`

Open hajimehoshi opened this issue 1 year ago • 2 comments

Operating System

  • [ ] Windows
  • [ ] macOS
  • [ ] Linux
  • [ ] FreeBSD
  • [ ] OpenBSD
  • [ ] Android
  • [ ] iOS
  • [ ] Nintendo Switch
  • [ ] PlayStation 5
  • [ ] Xbox
  • [ ] Web Browsers

What feature would you like to be added?

We propose to add a new filter FilterCripsScaling, which enlarges the image without losing crisp edges and without being blurred. This is the same scaling as the current Ebitengine screen's scaling.

The current problem is that the filter might not work well when rotating.

In the future, we might be able to replace the default filter from FilterNearest, but we are not sure.

Why is this needed?

To provide a better scaling instead of FilterNearest.

hajimehoshi avatar Nov 01 '23 13:11 hajimehoshi