title: Image Filter by JHlabs in Android
body: <p>I applied several filter of androidjhlabs.jar and its work for me also.
  Here is the filter that works:
  <strong>GaussianFilter
  ContrastFilter
  InverFilter
  GrayScalFilter
  MarbleFilter
  WeaveFilter
  GainFilter
  SolarFilter
  HSBFilter</strong>
  but i tried some other filter that cant give me proper output some image got converted into black some got converted into white that means i didn't know proper scale ,Randomness,Amount,Turbulence and Gridtype etc.
  I tried water filter but its applied only in center point means not in hole image.
  here is the code:</p>
  
  <pre><code>public static Bitmap setWaterFilter(Bitmap src)
  {
  int width=src.getWidth();
  
  int height=src.getHeight();
  
  int pixel;
  
  WaterFilter filter=new WaterFilter();
  
  int[] bittoarr = AndroidUtils.bitmapToIntArray(src);
  
  int[] result=filter.filter(bittoarr, width, height);
  
  Bitmap applied = Bitmap.createBitmap(result, width, height,
  
  Config.ARGB_8888);
  
  return applied;
  }
  </code></pre>
  
  <p>and i passed source like this:</p>
  
  <pre><code>Bitmap bitmap = BitmapFactory.decodeResource(getResources(), R.drawable.px);
  bitmap=Effects.setWaterFilter(bitmap);
  im.setImageBitmap(bitmap);
  </code></pre>
  
  <p>Any one know how to solve it.means other filter also like BoxBlur,Crop also.</p>