package com.benz.fastblur; import android.graphics.Bitmap; public class Fast2Blur { static { System.loadLibrary("bitmap2Blur"); } public static void build(Bitmap bitmap, int blurLevel) throws Exception { if (blurLevel <= 0 || blurLevel >= 100) { throw new Exception("blurLevel must be ( >0 && <100 )"); } else { buildBlur(bitmap, blurLevel); } } private static native void buildBlur(Bitmap bitmap, int blurLevel); }