¡@

Home 

2014/10/16 ¤W¤È 08:23:27

android Programming Glossary: sampledsrcbitmap

Quality problems when resizing an image at runtime

http://stackoverflow.com/questions/4231817/quality-problems-when-resizing-an-image-at-runtime

2 srcHeight 2 scale 2 options.inJustDecodeBounds false options.inDither false options.inSampleSize scale Bitmap sampledSrcBitmap BitmapFactory.decodeFile imageFilePathString options Then I am doing the actual scaling with Bitmap scaledBitmap Bitmap.createScaledBitmap.. imageFilePathString options Then I am doing the actual scaling with Bitmap scaledBitmap Bitmap.createScaledBitmap sampledSrcBitmap desiredWidth desiredHeight false Lastly the new resized image is saved to disk with FileOutputStream out new FileOutputStream.. at it it has that quality issue linked above and looks terrible. If I skip the createScaledBitmap and just save the sampledSrcBitmap right back to disk there is no problem it seems to only happen if the size changes. I have tried as you can see in the code..