Comments (1)
Hi @whistler-1, really sorry for sucha delayed reply to this ticket. Due to the nature of pixel art, scaling up by a non-whole number will necessarily cause those sorts of chunky artifacts, as you've pointed out.
I'm thinking the following might work, based somewhat on this Stackoverflow answer:
- in the
paint
method get theWindow
of theComponent
- from the
Window
get thescaleX
andscaleY
of theGraphicsConfiguration
- call
.scale(Math.round(scaleX) / scaleX, Math.round(scaleY) / scaleY)
on theGraphics2D
object which should then result in the scale being rounded to the nearest integer value
I'm not at all familiar with how Windows scaling works under the hood or how it interacts with Java so I might be mistaken about the above, but it seems promising to me, and worth a try. Does it seems reasonable to you, or am I missing something obvious?
If it work, this could easily be made another configurable option, something like "force integer dispay scaling".
from intellij-pokemon-progress.
Related Issues (20)
- Getting IDE Fatal Errors HOT 3
- Why not center it HOT 4
- svg support HOT 4
- Chosen Pokemon is randomised but the tooltip doesn't change HOT 2
- Add a way to select / deselect whole generations in settings HOT 3
- Possibility of having multiple themes for the gradient HOT 6
- Broken unicode text when building on Windows systems HOT 1
- Add a refresh/randomize button in the preview panel HOT 1
- Allow fixed progress bar size HOT 7
- Tooltip should show fullsize preview of the Pokémon HOT 1
- Tried to Uninstall it But it got Installed again and again HOT 1
- Misc New Pokemon
- Can't replace loader icon without restarting IDE. HOT 5
- Adding the possibility to switch language for pokemon names HOT 1
- Not work in 2023 version HOT 1
- It does not work when I have only one Pokemon selected [Rider] HOT 2
- Maintenance tasks for compatibility with newer IDEA versions HOT 1
- One Pokemon Request
- Cramorant Pokémon Request
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from intellij-pokemon-progress.