Android : Anti aliasing after down sampling image?

on Friday, August 15, 2014


I have to develop an App that select pictures that are saved in SD card,resize it's dimensions less than dimensions of screen and show it.I did it in a way that is look like this answer.It means that I first use options.inSampleSize and options.inJustDecodeBounds = true; to downsample image without loading large bitmap to memory.Then I use matrix.postScale and Bitmap.createBitmap(downSampledBitmap,int,int, int,int, matrix, true); to resize downsampled bitmap to desired size.


But the result has aliasing effects yet.You can compare the result of my try and native gallery of android here:


My try:


My try


Gallery result:


gallery result


As you see my try looks like a wrinkled paper!Is there a way to solve this problem or low it's effects?


0 comments:

Post a Comment