Mercurial > cgi-bin > hgweb.cgi > ImagePrep
changeset 8:b5fcabce391f
Use bicubic interpolation, like Gimp.
author | David Barts <n5jrn@me.com> |
---|---|
date | Fri, 17 Jul 2020 22:56:00 -0700 |
parents | 801cdc780ca8 |
children | 9e9fe34052a6 |
files | src/name/blackcap/imageprep/RotateDialog.kt |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
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) }