Mercurial > cgi-bin > hgweb.cgi > ImagePrep
diff src/name/blackcap/imageprep/RotateDialog.kt @ 8:b5fcabce391f
Use bicubic interpolation, like Gimp.
author | David Barts <n5jrn@me.com> |
---|---|
date | Fri, 17 Jul 2020 22:56:00 -0700 |
parents | 9129ae110146 |
children | 1f824742e1fa |
line wrap: on
line diff
--- a/src/name/blackcap/imageprep/RotateDialog.kt Fri Jul 17 19:56:25 2020 -0700 +++ b/src/name/blackcap/imageprep/RotateDialog.kt Fri Jul 17 22:56:00 2020 -0700 @@ -132,7 +132,7 @@ val nHeight = (imageIn.height * ratio).toInt() val imageOut = BufferedImage(nWidth, nHeight, BufferedImage.TYPE_INT_RGB) val graphics = imageOut.createGraphics().apply { - setRenderingHint(RenderingHints.KEY_INTERPOLATION, RenderingHints.VALUE_INTERPOLATION_BILINEAR) + setRenderingHint(RenderingHints.KEY_INTERPOLATION, RenderingHints.VALUE_INTERPOLATION_BICUBIC) setRenderingHint(RenderingHints.KEY_RENDERING, RenderingHints.VALUE_RENDER_QUALITY) setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON) }