No, we don't always render at integer coordinates. If you place a
control at 10,10 and disable pixel snapping, it'll end up at 12.5,12.5
(with 125% scaling) in render coordinates.
The process of coloring pixels on the output texture based on triangle
polygons is called rasterization. For each pixe
value of 10.4 (scale 1.25). As we can just
render on a whole pixel, what will happen?
- Marius
*Gesendet:* Dienstag, 28. September 2021 um 01:57 Uhr
*Von:* "Kevin Rushforth"
*An:* openjfx-dev@openjdk.java.net
*Betreff:* Re: JavaFX snapping and scale
The basic idea behind snapping to pixel
Kevin Rushforth"
An: openjfx-dev@openjdk.java.net
Betreff: Re: JavaFX snapping and scale
The basic idea behind snapping to pixel boundaries (which is optional,
but on by default) is that 2D primitives will look more crisp if they
are rendered on whole pixel boundaries. When there i
The basic idea behind snapping to pixel boundaries (which is optional,
but on by default) is that 2D primitives will look more crisp if they
are rendered on whole pixel boundaries. When there is no HiDPI involved,
the operation of snapping to a pixel boundary can be done with a simple
floor, ro
I recently tried to fix "TableView: visual glitch at borders on
horizontal scrolling".
Ticket: [1]https://bugs.openjdk.java.net/browse/JDK-8218745
PR: [2]https://github.com/openjdk/jfx/pull/630
As also written in the PR I have problems understanding the
snapping/scaling of JavaFX