上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 19 下一页

2014年7月11日

光照效果函数

摘要: // 光照效果函数 public static Bitmap changeToLight(Bitmap bitmap) { int width = bitmap.getWidth(); int height = bitmap.getHeight(); int pixColor = 0; in... 阅读全文

posted @ 2014-07-11 12:24 clarenceV1 阅读(336) 评论(0) 推荐(0) 编辑

冰冻效果

摘要: //冰冻效果 public static Bitmap changeToIce(Bitmap bitmap){ int width = bitmap.getWidth(); int height = bitmap.getHeight(); int dst[] = new int[w... 阅读全文

posted @ 2014-07-11 12:03 clarenceV1 阅读(223) 评论(0) 推荐(0) 编辑

反色效果函数

摘要: // 反色效果函数 public static Bitmap chageToInvert(Bitmap bitmap) { int width = bitmap.getWidth(); int height = bitmap.getHeight(); int colorArray[] = ... 阅读全文

posted @ 2014-07-11 12:03 clarenceV1 阅读(426) 评论(0) 推荐(0) 编辑

哈哈镜效果

摘要: //哈哈镜效果 public static Bitmap changeToHaha(Bitmap bitmap){ int centerX = bitmap.getWidth() / 2; int centerY = bitmap.getHeight() / 2; float radius =... 阅读全文

posted @ 2014-07-11 12:02 clarenceV1 阅读(406) 评论(0) 推荐(0) 编辑

黑白效果函数

摘要: // 黑白效果函数 public static Bitmap changeToGray(Bitmap bitmap,boolean r, boolean g, boolean b) { int width, height; width = bitmap.getWidth(); height... 阅读全文

posted @ 2014-07-11 12:01 clarenceV1 阅读(146) 评论(0) 推荐(0) 编辑

羽化效果

摘要: // 羽化效果 public static Bitmap changeToEclosion(Bitmap bitmap) { int width = bitmap.getWidth(); int height = bitmap.getHeight(); int dst[] = new int[... 阅读全文

posted @ 2014-07-11 11:58 clarenceV1 阅读(252) 评论(0) 推荐(0) 编辑

拼图效果

摘要: public static Bitmap getComponseBitmap(Bitmap src, Bitmap src2){ if(src == null || src2 == null) return null; int width = src.getWidth(); int h... 阅读全文

posted @ 2014-07-11 11:57 clarenceV1 阅读(114) 评论(0) 推荐(0) 编辑

卡通效果

摘要: // 卡通效果 public static Bitmap changeToCarton(Bitmap bitmap) { int width = bitmap.getWidth(); int height = bitmap.getHeight(); int dst[] = new int[wi... 阅读全文

posted @ 2014-07-11 11:56 clarenceV1 阅读(145) 评论(0) 推荐(0) 编辑

版画效果函数

摘要: public static Bitmap changeToBlock(Bitmap bitmap) { int width = bitmap.getWidth(); int height = bitmap.getHeight(); int dst[] = new int[width * hei... 阅读全文

posted @ 2014-07-11 11:54 clarenceV1 阅读(143) 评论(0) 推荐(0) 编辑

2014年7月9日

Android 编程下去除 ListView 上下边界蓝色或黄色阴影

摘要: 默认的情况下,在 ListView 滑动到顶部或者是底部的时候,会有黄色或者蓝色的阴影出现。在不同的版本上解决的方法是不同的,在 2.3 版本之前可以在 ListView 的属性中通过设置android:fadingEdge="none"来解决问题,但是在 2.3 及以上版本这中方法是无效的,这里,... 阅读全文

posted @ 2014-07-09 17:13 clarenceV1 阅读(247) 评论(0) 推荐(0) 编辑

上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 19 下一页

导航