user1922137
user1922137

Reputation:

android - how to smooth bitmap after scaling

Using the tutorial "loading large bitmaps efficiently", I scaled a large bitmap and used it in an ImageView. But, after down sampling the bitmap, it's quality dramatically decreases. In Actionscript, the Bitmap object has smoothing property to solve this problem. Is there any alternative in android (java)?

Upvotes: 0

Views: 1275

Answers (1)

MadEqua
MadEqua

Reputation: 1142

You can create a BitmapDrawble sending it your Bitmap. BitmapDrawble has methods like setFilterBitmap(boolean filter) and setAntiAlias(boolean aa) that may suit your needs.

ImageView can easily receive BitmapDrawbles via setImageDrawable(Drawable drawable).

Upvotes: 1

Related Questions