-
Notifications
You must be signed in to change notification settings - Fork 52
Image Category
cesarferreira edited this page Oct 24, 2014
·
6 revisions
Image Utils
QuickUtils.image.__method__
Returns a copy of the image with a blur
QuickUtils.image.blur(mBitmap, radius); // 0 <= radius <= 25
Don't forget to add this to your build.gradle
:
defaultConfig {
...
renderscriptTargetApi 19
renderscriptSupportMode true
}
dependencies {
...
compile 'com.android.support:appcompat-v7:19.+'
compile 'com.android.support:support-v4:19.1.0'
compile 'com.android.support:support-v13:19.+'
}
QuickUtils.image.getBitmapByImageURL(imageURL, new OnEventListener<Bitmap>() {
@Override
public void onSuccess(Bitmap bitmap) {
imageView.setImageBitmap(bitmap);
}
@Override
public void onFailure(Exception e) {
QuickUtils.system.toast("ERROR FETCHING IMAGE");
}
});
QuickUtils.image.convertDrawableToBitmap(drawable);
QuickUtils.image.convertImageResourceToBitmap(context, R.id.imageBackground);