AndroidPub

The (retired) Pub(lication) for Android & Tech, focused on Development

Follow publication

Member-only story

Fastest Image Blur in Android Using Fresco.

Blurring image helps to reveal colors by hiding shapes and shadows on images,Some of the major advantages of using blur image are:

i. hiding boring shapes that have interesting colors in image.

ii.hiding unwanted details on interesting shapes.

We can do image blur in different ways, but Fresco and Picasso android library have provided really awesome blur effect on Images in simplest and easiest way.

What is Fresco Library in android?

  • Fresco is a powerful library for displaying images in Android, supporting applications all the way back to GingerBread (API 9). It downloads and caches remote images in a memory efficient manner, using a special region of non-garbage collected memory on Android called ashmem.
  • For more… http://frescolib.org/
  • Lets get started!!!
  • Step 1:Create Android Project and add fresco library dependency on build.gradle of module and sync project.
dependencies {
compile 'jp.wasabeef:fresco-processors:2.1.0'
}
  • Step 2:Initialize fresco inside your onCreate() method of MainActivity.java
@Override
protected void
onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
//initialize fresco
Fresco.initialize(this);
setContentView(R.layout.activity_main);

}
  • Step 3: Inside your activity_main.xml add SimpleDraweeView…

The author made this story available to Medium members only.
If you’re new to Medium, create a new account to read this story on us.

Or, continue in mobile web

Already have an account? Sign in

AndroidPub
AndroidPub

Published in AndroidPub

The (retired) Pub(lication) for Android & Tech, focused on Development

Youbaraj POUDEL
Youbaraj POUDEL

Written by Youbaraj POUDEL

Android Software Engineer (Contributor), Writer

No responses yet

Write a response