How to get a good quality thumbnail

后端 未结 5 456
-上瘾入骨i
-上瘾入骨i 2020-12-09 10:15

I am trying to create a high quality thumbnail of this image, with Java and Scalr 3.2

\"full

5条回答
  •  长情又很酷
    2020-12-09 10:21

    If you want high quality result, so use [RapidDecoder][1] library. It is simple as follow:

    import rapid.decoder.BitmapDecoder; ... Bitmap bitmap = BitmapDecoder.from(getResources(), R.drawable.image) .scale(width, height) .useBuiltInDecoder(true) .decode(); Don't forget to use builtin decoder if you want to scale down less than 50% and a HQ result.

提交回复
热议问题