摘要:
1、算法将对rgb 值依次做better处理,同时再下一步用到上一步已经处理好的值。 public Bitmap render(Bitmap bitmap) { if(bitmap == null)return null; int width = bitmap.getWidth(); int height = bitmap.getHeight(); int[] pixels = new int[width * height]; bitmap.getPixels(pixels ,0 , width , 0 , 0 , width , height); for... 阅读全文
摘要:
1、怀旧特效算法:r = 0.393r +0.769g+0.189bg = 0.349r + 0.686g +0.168bb = 0.272r +0.534g +0.131b2、算法的一般实现: public Bitmap render(Bitmap bitmap) { if(bitmap == null)return null; int width = bitmap.getWidth(); int height = bitmap.getHeight(); int[] pixels = new int[width * height]; bitmap.getPix... 阅读全文