package at.favre.lib.dali.blur; import android.graphics.Bitmap; /** * Interface for a blur algorithm */ public interface IBlur { //threshold for live blurring public static final int MS_THRESHOLD_FOR_SMOOTH = 16; /** * Takes a bitmap and blurs it with the given blur radius. This will NOT copy the original * but reuses it, so if this instance will be used somewhere else, manual copying is needed. * * @param radius blurradius, keep in mind some algorithms don't take all values (e.g. ScriptIntrinsicBlur will only take 1-25) * @param original * @return blurred original bitmap */ public Bitmap blur(int radius, Bitmap original); }