private static double normalize( double value ) {
			return Math.floor( value + 0.25 ) + 0.25;
		}
Scales a rectangle in the same way as the JRE does in
sun.java2d.pipe.PixelToParallelogramConverter.fillRectangle(),
which is used by Graphics.fillRect().

This is a copy of HiDPIUtils.scale()
flatlaf-testing/src/main/java/com/formdev/flatlaf/testing/FlatPaintingStringTest.java