Reputation:
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
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