public static int [ ] onStackBlurPixels ( int [ ] pix , int w , int h , int radius ) { if ( radius < 0 || radius > 256 ) { throw new RuntimeException ( "Blur bitmap radius must >= 1 and <=256." ) ; } if ( pix == null ) { throw new RuntimeException ( "Blur bitmap pix isn't null." ) ; } if ( pix . length < w * h ) { throw new RuntimeException ( "Blur bitmap pix length must >= w * h." ) ; } // Jni Pixels Blur nativeStackBlurPixels ( pix , w , h , radius ) ; return ( pix ) ; }
StackBlur By Jni Pixels