how to alias or smooth scaled down image in android -


i'm setting larger image imageview in android using android universal imageloader. however, i'm getting jagged or non-smooth edges when image gets scaled down. there option can set in imageview have smoother edges when scaling down of image?

you can try setting imagescaletype , can set bitmap.config argb_8888 better photos.

displayimageoption options = new displayimageoptions.builder().showstubimage(r.drawable.ic_launcher).showimageforemptyuri(             r.drawable.ic_launcher).showimageonfail(r.drawable.ic_launcher).cacheinmemory()             .resetviewbeforeloading().showstubimage(r.drawable.ic_launcher).imagescaletype(                     imagescaletype.exactly).cacheondisc().bitmapconfig(bitmap.config.rgb_565).build(); 

Comments

Popular posts from this blog

node.js - Bad Request - node js ajax post -

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -